mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Fix selection rect of drawing circle.
This commit is contained in:
parent
12f40744d2
commit
ead0fd53e3
2 changed files with 2 additions and 2 deletions
|
@ -521,7 +521,7 @@
|
||||||
(selection-rect-generic state shape))))
|
(selection-rect-generic state shape))))
|
||||||
|
|
||||||
(defn- selection-rect-generic
|
(defn- selection-rect-generic
|
||||||
[state {:keys [id x1 y1 x2 y2] :as shape}]
|
[state {:keys [id] :as shape}]
|
||||||
(let [{:keys [displacement resize]} (get-in state [:workspace :modifiers id])]
|
(let [{:keys [displacement resize]} (get-in state [:workspace :modifiers id])]
|
||||||
(-> (shape->rect-shape shape)
|
(-> (shape->rect-shape shape)
|
||||||
(assoc :type :rect :id id)
|
(assoc :type :rect :id id)
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
(mx/defc generic-draw-area
|
(mx/defc generic-draw-area
|
||||||
[shape zoom]
|
[shape zoom]
|
||||||
(let [{:keys [x1 y1 width height]} (geom/size shape)]
|
(let [{:keys [x1 y1 width height]} (geom/selection-rect shape)]
|
||||||
[:g
|
[:g
|
||||||
(-> (assoc shape :drawing? true)
|
(-> (assoc shape :drawing? true)
|
||||||
(shapes/render-component))
|
(shapes/render-component))
|
||||||
|
|
Loading…
Reference in a new issue