mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 22:37:14 +02:00
✨ Make the attrs procesing of shapes uniform.
This commit is contained in:
parent
979c7dc2a0
commit
48d7ea4be4
9 changed files with 70 additions and 129 deletions
|
@ -12,7 +12,7 @@
|
|||
[uxbox.main.refs :as refs]
|
||||
[uxbox.main.ui.shapes.attrs :as attrs]
|
||||
[uxbox.main.ui.shapes.common :as common]
|
||||
[uxbox.util.interop :as interop]
|
||||
[uxbox.util.interop :as itr]
|
||||
[uxbox.util.geom.matrix :as gmt]
|
||||
[uxbox.util.geom.point :as gpt]))
|
||||
|
||||
|
@ -51,8 +51,8 @@
|
|||
(+ x (/ width 2))
|
||||
(+ y (/ height 2))))
|
||||
|
||||
props (-> (attrs/extract-style-attrs2 shape)
|
||||
(interop/obj-assign!
|
||||
props (-> (attrs/extract-style-attrs shape)
|
||||
(itr/obj-assign!
|
||||
#js {:x x
|
||||
:y y
|
||||
:transform transform
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue