mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 09:11:38 +02:00
Refactor shapes and selection rendering in order to be aware of rotation.
This commit is contained in:
parent
30df813edf
commit
c0a81d05eb
9 changed files with 278 additions and 283 deletions
|
@ -19,7 +19,6 @@
|
|||
[uxbox.util.geom.matrix :as gmt]
|
||||
[uxbox.util.mixins :as mx :include-macros true]))
|
||||
|
||||
|
||||
;; --- Helpers
|
||||
|
||||
(declare group-component)
|
||||
|
@ -70,8 +69,7 @@
|
|||
(let [xfmt (cond-> (or tmp-resize-xform (gmt/matrix))
|
||||
tmp-displacement (gmt/translate tmp-displacement))
|
||||
|
||||
props {:id (str id)
|
||||
:transform (str xfmt)}
|
||||
props {:id (str id) :transform (str xfmt)}
|
||||
|
||||
attrs (merge props (attrs/extract-style-attrs shape))]
|
||||
[:g attrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue