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:
parent
c7a46c31b4
commit
0fad53ea6c
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue