mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 08:01:37 +02:00
Fix bug introduced in previous commit.
This commit is contained in:
parent
48cb96221e
commit
9f512abaeb
1 changed files with 15 additions and 14 deletions
|
@ -48,6 +48,7 @@
|
||||||
|
|
||||||
(defn shapes-selrect-render
|
(defn shapes-selrect-render
|
||||||
[own shapes]
|
[own shapes]
|
||||||
|
(when (seq shapes)
|
||||||
(let [[width height x y] (sh/group-size-and-position shapes)]
|
(let [[width height x y] (sh/group-size-and-position shapes)]
|
||||||
(html
|
(html
|
||||||
[:g.controls
|
[:g.controls
|
||||||
|
@ -61,7 +62,7 @@
|
||||||
[:circle.bottom-left (merge default-selection-props
|
[:circle.bottom-left (merge default-selection-props
|
||||||
{:cx x :cy (+ y height)})]
|
{:cx x :cy (+ y height)})]
|
||||||
[:circle.bottom-right (merge default-selection-props
|
[:circle.bottom-right (merge default-selection-props
|
||||||
{:cx (+ x width) :cy (+ y height)})]])))
|
{:cx (+ x width) :cy (+ y height)})]]))))
|
||||||
|
|
||||||
(def ^:static shapes-selrect
|
(def ^:static shapes-selrect
|
||||||
(mx/component
|
(mx/component
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue