mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 08:18:23 +02:00
Merge pull request #6381 from penpot/alotor-perf-modifiers-refactor
✨ Apply modifiers changes into data
This commit is contained in:
commit
c45187eedd
7 changed files with 361 additions and 163 deletions
|
@ -374,8 +374,14 @@
|
|||
"Given a new set of points transformed, set up the rectangle so it keeps
|
||||
its properties. We adjust de x,y,width,height and create a custom transform"
|
||||
[shape transform-mtx]
|
||||
(if ^boolean (gmt/move? transform-mtx)
|
||||
(cond
|
||||
(nil? transform-mtx)
|
||||
shape
|
||||
|
||||
^boolean (gmt/move? transform-mtx)
|
||||
(apply-transform-move shape transform-mtx)
|
||||
|
||||
:else
|
||||
(apply-transform-generic shape transform-mtx)))
|
||||
|
||||
(defn- update-group-viewbox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue