0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

Layout Shape resize controls

This commit is contained in:
Juan de la Cruz 2016-01-21 08:03:39 +01:00
parent c2bc392178
commit 970074d7d6

View file

@ -42,9 +42,9 @@
:vectorEffect "non-scaling-stroke"}) :vectorEffect "non-scaling-stroke"})
(def ^:private default-selection-props (def ^:private default-selection-props
{:r 4 :style selection-circle-style {:r 5 :style selection-circle-style
:fill "lavender" :fill "#333"
:stroke "gray"}) :stroke "#333"})
(defn shapes-selrect-render (defn shapes-selrect-render
[own shapes] [own shapes]
@ -53,9 +53,9 @@
{:keys [width height x y]} (sh/group-size-and-position 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 [:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
:style {:stroke "black" :fill "transparent" :style {:stroke "#333" :fill "transparent"
:stroke-opacity "0.5"}}] :stroke-opacity "1"}}]
[:circle.top-left (merge default-selection-props [:circle.top-left (merge default-selection-props
{:cx x :cy y})] {:cx x :cy y})]
[:circle.top-right (merge default-selection-props [:circle.top-right (merge default-selection-props