mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -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
|
(defn update-stroke-width
|
||||||
[value shape-ids]
|
[value shape-ids]
|
||||||
(st/emit!
|
(dch/update-shapes shape-ids (fn [shape]
|
||||||
(dch/update-shapes shape-ids (fn [shape]
|
(when (seq (:strokes shape))
|
||||||
(when (seq (:strokes shape))
|
(assoc-in shape [:strokes 0 :stroke-width] value)))))
|
||||||
(assoc-in shape [:strokes 0 :stroke-width] value))))))
|
|
||||||
|
|
||||||
(defn update-rotation [value shape-ids]
|
(defn update-rotation [value shape-ids]
|
||||||
(ptk/reify ::update-shape-dimensions
|
(ptk/reify ::update-shape-dimensions
|
||||||
|
|
Loading…
Reference in a new issue