mirror of
https://github.com/penpot/penpot.git
synced 2026-04-26 19:58:09 +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
|
||||
rs/UpdateEvent
|
||||
(-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)))))
|
||||
|
||||
(defn delete-shape
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user