mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 20:28:11 +00:00
Start using outer-rect function on selrect component.
This commit is contained in:
parent
847075cdc8
commit
48b38281a6
@ -49,8 +49,7 @@
|
||||
(defn shapes-selrect-render
|
||||
[own shapes]
|
||||
(when (seq shapes)
|
||||
(let [shapes (map sh/resolve-position shapes)
|
||||
{:keys [width height x y]} (sh/group-size-and-position shapes)]
|
||||
(let [{:keys [width height x y]} (sh/outer-rect shapes)]
|
||||
(html
|
||||
[:g.controls
|
||||
[:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user