mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 21:06:11 +02:00
✨ Add more incremental improvements to shapes rendering.
That helps for make a good foundation for proper canvas painting and manipulation.
This commit is contained in:
parent
1fa9faa314
commit
6483800e49
14 changed files with 144 additions and 339 deletions
|
@ -40,11 +40,11 @@
|
|||
(let [result (geom/resize-shape vid shape point lock?)
|
||||
scale (geom/calculate-scale-ratio shape result)
|
||||
mtx (geom/generate-resize-matrix vid shape scale)
|
||||
xfm (map #(dw/apply-temporal-resize % mtx))]
|
||||
xfm (map #(dw/assoc-temporal-modifier % mtx))]
|
||||
(apply st/emit! (sequence xfm ids))))
|
||||
|
||||
(on-end []
|
||||
(apply st/emit! (map dw/apply-resize ids)))
|
||||
(apply st/emit! (map dw/materialize-current-modifier ids)))
|
||||
|
||||
;; Unifies the instantaneous proportion lock modifier
|
||||
;; activated by Ctrl key and the shapes own proportion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue