0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 00:28:20 -05:00

Changes to selection

This commit is contained in:
alonso.torres 2020-04-28 11:02:37 +02:00
parent 511335ba33
commit 85b17442de

View file

@ -38,7 +38,7 @@
:on-mouse-down on-click :on-mouse-down on-click
:r r :r r
:style {:fillOpacity "1" :style {:fillOpacity "1"
:strokeWidth "2px" :strokeWidth "1px"
:vectorEffect "non-scaling-stroke"} :vectorEffect "non-scaling-stroke"}
:fill "#ffffff" :fill "#ffffff"
:stroke "#1FDEA7" :stroke "#1FDEA7"
@ -71,7 +71,7 @@
(mf/defc controls (mf/defc controls
[{:keys [shape zoom on-resize on-rotate] :as props}] [{:keys [shape zoom on-resize on-rotate] :as props}]
(let [{:keys [x y width height rotation] :as shape} (geom/shape->rect-shape shape) (let [{:keys [x y width height rotation] :as shape} (geom/shape->rect-shape shape)
radius (if (> (max width height) handler-size-threshold) 6.0 4.0) radius (if (> (max width height) handler-size-threshold) 4.0 4.0)
transform (geom/transform-matrix shape) transform (geom/transform-matrix shape)
resize-handlers {:top [(+ x (/ width 2 )) y] resize-handlers {:top [(+ x (/ width 2 )) y]
@ -88,7 +88,7 @@
:x x :y y :x x :y y
:width width :width width
:height height :height height
:stroke-dasharray (str (/ 8.0 zoom) "," (/ 5 zoom)) ;;:stroke-dasharray (str (/ 8.0 zoom) "," (/ 5 zoom))
:vector-effect "non-scaling-stroke" :vector-effect "non-scaling-stroke"
:style {:stroke "#1FDEA7" :style {:stroke "#1FDEA7"
:fill "transparent" :fill "transparent"