🐛 Fix problem with text displacement in Safari

This commit is contained in:
alonso.torres 2022-03-24 16:56:30 +01:00
parent 6e36f66dde
commit 5aa68c7052
3 changed files with 25 additions and 3 deletions

View file

@ -51,8 +51,8 @@
[:> :g group-props
(for [[index data] (d/enumerate position-data)]
(let [props (-> #js {:x (mth/round (:x data))
:y (mth/round (:y data))
:dominantBaseline "ideographic"
:y (mth/round (- (:y data) (:height data)))
:alignmentBaseline "text-before-edge"
:style (-> #js {:fontFamily (:font-family data)
:fontSize (:font-size data)
:fontWeight (:font-weight data)