mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Fix problem with group selrect
This commit is contained in:
parent
ece11c5958
commit
ce675097b1
@ -414,7 +414,11 @@
|
|||||||
(gco/transform-points shape-center (:transform group (gmt/matrix))))
|
(gco/transform-points shape-center (:transform group (gmt/matrix))))
|
||||||
|
|
||||||
;; Calculate the new selrect
|
;; Calculate the new selrect
|
||||||
new-selrect (grc/points->rect base-points)]
|
sr-transform (gmt/transform-in (gco/points->center new-points) (:transform-inverse group (gmt/matrix)))
|
||||||
|
new-selrect
|
||||||
|
(-> new-points
|
||||||
|
(gco/transform-points sr-transform)
|
||||||
|
(grc/points->rect))]
|
||||||
|
|
||||||
;; Updates the shape and the applytransform-rect will update the other properties
|
;; Updates the shape and the applytransform-rect will update the other properties
|
||||||
(-> group
|
(-> group
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user