mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 21:19:49 +00:00
Setup shape proportions when it is added to the page.
This commit is contained in:
parent
84ef0a75e1
commit
20cfae2a17
@ -30,7 +30,8 @@
|
|||||||
udp/IPageUpdate
|
udp/IPageUpdate
|
||||||
rs/UpdateEvent
|
rs/UpdateEvent
|
||||||
(-apply-update [_ state]
|
(-apply-update [_ state]
|
||||||
(let [page (get-in state [:workspace :page])]
|
(let [page (get-in state [:workspace :page])
|
||||||
|
shape (geom/setup-proportions shape)]
|
||||||
(stsh/assoc-shape-to-page state shape page)))))
|
(stsh/assoc-shape-to-page state shape page)))))
|
||||||
|
|
||||||
(defn delete-shape
|
(defn delete-shape
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user