0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Convert stroke to event

This commit is contained in:
Florian Schroedl 2024-07-05 08:55:01 +02:00
parent c7a46c31b4
commit 0fad53ea6c

View file

@ -71,10 +71,9 @@
(defn update-stroke-width
[value shape-ids]
(st/emit!
(dch/update-shapes shape-ids (fn [shape]
(when (seq (:strokes shape))
(assoc-in shape [:strokes 0 :stroke-width] value))))))
(dch/update-shapes shape-ids (fn [shape]
(when (seq (:strokes shape))
(assoc-in shape [:strokes 0 :stroke-width] value)))))
(defn update-rotation [value shape-ids]
(ptk/reify ::update-shape-dimensions