mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 07:21:38 +02:00
feat(frontend): initial work on react and rumext upgrade
This commit is contained in:
parent
ff00bdb3eb
commit
88f45fb618
33 changed files with 184 additions and 144 deletions
|
@ -76,13 +76,11 @@
|
|||
resize (gmt/multiply resize)
|
||||
displacement (gmt/multiply displacement))
|
||||
|
||||
moving? (boolean displacement)
|
||||
attrs {:id (str "shape-" id)
|
||||
:class (classnames :move-cursor moving?)
|
||||
:transform (str xfmt)}]
|
||||
[:g attrs
|
||||
(for [item (reverse items)
|
||||
:let [key (str item)]]
|
||||
moving? (boolean displacement)]
|
||||
[:g {:id (str "shape-" id)
|
||||
:class (classnames :move-cursor moving?)
|
||||
:transform (str xfmt)}
|
||||
(for [item (reverse items)]
|
||||
(-> (factory item)
|
||||
(mx/with-key key)))]))
|
||||
(mx/with-key (str item))))]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue