mirror of
https://github.com/penpot/penpot.git
synced 2025-02-09 08:38:15 -05:00
Start using outer-rect function on selrect component.
This commit is contained in:
parent
847075cdc8
commit
48b38281a6
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@
|
||||||
(defn shapes-selrect-render
|
(defn shapes-selrect-render
|
||||||
[own shapes]
|
[own shapes]
|
||||||
(when (seq shapes)
|
(when (seq shapes)
|
||||||
(let [shapes (map sh/resolve-position shapes)
|
(let [{:keys [width height x y]} (sh/outer-rect shapes)]
|
||||||
{:keys [width height x y]} (sh/group-size-and-position shapes)]
|
|
||||||
(html
|
(html
|
||||||
[:g.controls
|
[:g.controls
|
||||||
[:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
|
[:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
|
||||||
|
|
Loading…
Add table
Reference in a new issue