mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 06:46:38 +02:00
🐛 Fix text justify align text left
This commit is contained in:
parent
3f5ac58c73
commit
08a5550547
3 changed files with 5 additions and 3 deletions
|
@ -94,6 +94,8 @@
|
|||
props (-> #js {:key (dm/str "text-" (:id shape) "-" index)
|
||||
:x (if rtl? (+ (:x data) (:width data)) (:x data))
|
||||
:y (- (:y data) (:height data))
|
||||
:textLength (:width data)
|
||||
:lengthAdjust "spacingAndGlyphs"
|
||||
:transform (position-data-transform shape data)
|
||||
:alignmentBaseline alignment-bl
|
||||
:dominantBaseline dominant-bl
|
||||
|
@ -104,8 +106,7 @@
|
|||
:textDecoration (:text-decoration data)
|
||||
:letterSpacing (:letter-spacing data)
|
||||
:fontStyle (:font-style data)
|
||||
:direction (:direction data)
|
||||
:whiteSpace "pre"}
|
||||
:direction (:direction data)}
|
||||
(obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))})
|
||||
shape (assoc shape :fills (:fills data))]
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
#{:app.main.data.workspace.notifications/handle-pointer-update
|
||||
:app.main.data.workspace.selection/change-hover-state})
|
||||
|
||||
(defonce ^:dynamic *debug* (atom #{#_:events}))
|
||||
(defonce ^:dynamic *debug* (atom #{#_:events #_:text-outline}))
|
||||
|
||||
(defn debug-all! [] (reset! *debug* debug-options))
|
||||
(defn debug-none! [] (reset! *debug* #{}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue