mirror of
https://github.com/penpot/penpot.git
synced 2026-09-18 18:06:14 +00:00
Revert "Remove update-radius-attrs event."
This reverts commit b1e9936aa6552bde75e9c7ffb0bcdfeedc98be56.
This commit is contained in:
parent
c22ac8e302
commit
1f73638018
@ -237,6 +237,17 @@
|
|||||||
(when color {:stroke color})
|
(when color {:stroke color})
|
||||||
(when opacity {:stroke-opacity opacity})))))
|
(when opacity {:stroke-opacity opacity})))))
|
||||||
|
|
||||||
|
(defn update-radius-attrs
|
||||||
|
[sid {:keys [rx ry] :as opts}]
|
||||||
|
(reify
|
||||||
|
udp/IPageUpdate
|
||||||
|
rs/UpdateEvent
|
||||||
|
(-apply-update [_ state]
|
||||||
|
(update-in state [:shapes-by-id sid]
|
||||||
|
merge
|
||||||
|
(when rx {:rx rx})
|
||||||
|
(when ry {:ry ry})))))
|
||||||
|
|
||||||
(defn hide-shape
|
(defn hide-shape
|
||||||
[sid]
|
[sid]
|
||||||
(reify
|
(reify
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user