Merge pull request #6381 from penpot/alotor-perf-modifiers-refactor

 Apply modifiers changes into data
This commit is contained in:
Aitor Moreno 2025-05-06 15:52:57 +02:00 committed by GitHub
commit c45187eedd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 361 additions and 163 deletions

View file

@ -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