Allow to unselect the text alignment.

Defaulting to 'start' (rtl friendly).
This commit is contained in:
Andrey Antukh 2021-03-16 13:50:28 +01:00
parent ca52f4f8ea
commit 7bc91e7224
7 changed files with 298 additions and 216 deletions

View file

@ -47,7 +47,7 @@
(defn generate-paragraph-styles
[shape data]
(let [line-height (:line-height data)
text-align (:text-align data)
text-align (:text-align data "start")
grow-type (:grow-type shape)
base #js {:fontSize (str (:font-size txt/default-text-attrs) "px")