0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-25 08:16:49 -05:00

Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Andrey Antukh 2022-04-18 11:16:08 +02:00
commit c9937f6b91

View file

@ -8,7 +8,6 @@
(:require
[app.common.data :as d]
[app.common.geom.shapes :as gsh]
[app.common.math :as mth]
[app.config :as cfg]
[app.main.ui.context :as muc]
[app.main.ui.shapes.attrs :as attrs]
@ -52,12 +51,12 @@
[:> :g group-props
(for [[index data] (d/enumerate position-data)]
(let [y (if (cfg/check-browser? :safari)
(mth/round (- (:y data) (:height data)))
(mth/round (:y data)))
(- (:y data) (:height data))
(:y data))
alignment-bl (when (cfg/check-browser? :safari) "text-before-edge")
dominant-bl (when-not (cfg/check-browser? :safari) "ideographic")
props (-> #js {:x (mth/round (:x data))
props (-> #js {:x (:x data)
:y y
:alignmentBaseline alignment-bl
:dominantBaseline dominant-bl