Skip to content

Commit a27339b

Browse files
committed
change stroke width of bounding box
1 parent 68a384b commit a27339b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/renderer/utils/overlay.cljs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
[renderer.utils.hiccup :refer [Hiccup]]
1919
[renderer.utils.math :as math :refer [Vec2]]))
2020

21-
(m/=> point-of-interest [:-> Vec2 Hiccup any?])
22-
(defn point-of-interest
23-
"Simple dot used for debugging purposes."
21+
(m/=> dot [:-> Vec2 Hiccup any?])
22+
(defn dot
2423
[[x y] & children]
2524
(let [zoom @(rf/subscribe [::document.s/zoom])]
2625
(into [:circle {:cx x
@@ -144,7 +143,7 @@
144143
(let [zoom @(rf/subscribe [::document.s/zoom])
145144
[x1 y1 _x2 _y2] bounds
146145
[width height] (bounds/->dimensions bounds)
147-
stroke-width (/ 2 zoom)
146+
stroke-width (/ 1 zoom)
148147
stroke-dasharray (/ theme.db/dash-size zoom)
149148
attrs {:x x1
150149
:y y1
@@ -184,5 +183,5 @@
184183
(when-let [pos (element.hierarchy/centroid el)]
185184
(let [offset (element/offset el)
186185
pos (mat/add offset pos)]
187-
[point-of-interest pos
186+
[dot pos
188187
[:title "Centroid"]])))

0 commit comments

Comments
 (0)