diff --git a/frontend/src/app/main/ui/workspace/shapes/bool.cljs b/frontend/src/app/main/ui/workspace/shapes/bool.cljs index 536bd7fe68..db69d45585 100644 --- a/frontend/src/app/main/ui/workspace/shapes/bool.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/bool.cljs @@ -41,5 +41,5 @@ [:& bool-shape {:shape shape :childs childs}] (when *assert* - [:& wsd/shape-debug {:shape shape}])])))) + [:> wsd/shape-debug* {:shape shape}])])))) diff --git a/frontend/src/app/main/ui/workspace/shapes/common.cljs b/frontend/src/app/main/ui/workspace/shapes/common.cljs index e09092ca7f..43d3056d58 100644 --- a/frontend/src/app/main/ui/workspace/shapes/common.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/common.cljs @@ -25,4 +25,4 @@ [:> shape-container {:shape shape} [:& component {:shape shape}] (when *assert* - [:& wsd/shape-debug {:shape shape}])]))) + [:> wsd/shape-debug* {:shape shape}])]))) diff --git a/frontend/src/app/main/ui/workspace/shapes/debug.cljs b/frontend/src/app/main/ui/workspace/shapes/debug.cljs index a1a97e65dc..01800fcd8f 100644 --- a/frontend/src/app/main/ui/workspace/shapes/debug.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/debug.cljs @@ -23,7 +23,7 @@ [cuerdas.core :as str] [rumext.v2 :as mf])) -(mf/defc debug-bounding-boxes +(mf/defc debug-bounding-boxes* [{:keys [shape]}] (let [points (->> (:points shape) (map #(dm/fmt "%,%" (dm/get-prop % :x) (dm/get-prop % :y))) @@ -172,11 +172,11 @@ (when hp [:circle {:data-i i :key (dm/str "c13-" i) :cx (:x hp) :cy (:y hp) :r radius :fill "green"}])]))])) -(mf/defc shape-debug +(mf/defc shape-debug* [{:keys [shape]}] [:* (when ^boolean (dbg/enabled? :bounding-boxes) - [:& debug-bounding-boxes {:shape shape}]) + [:> debug-bounding-boxes* {:shape shape}]) (when (and ^boolean (dbg/enabled? :bool-shapes) ^boolean (cfh/bool-shape? shape)) diff --git a/frontend/src/app/main/ui/workspace/shapes/frame.cljs b/frontend/src/app/main/ui/workspace/shapes/frame.cljs index e6db4677a2..42af2a3ff0 100644 --- a/frontend/src/app/main/ui/workspace/shapes/frame.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/frame.cljs @@ -47,7 +47,7 @@ [:& shape-container {:shape shape :ref ref} [:& frame-shape {:shape shape :childs childs}] (when *assert* - [:& wsd/shape-debug {:shape shape}])])))) + [:> wsd/shape-debug* {:shape shape}])])))) (defn check-props [new-props old-props] @@ -230,5 +230,5 @@ [:& frame-shape {:shape shape :ref content-ref}]])] (when *assert* - [:& wsd/shape-debug {:shape shape}])])))) + [:> wsd/shape-debug* {:shape shape}])])))) diff --git a/frontend/src/app/main/ui/workspace/shapes/group.cljs b/frontend/src/app/main/ui/workspace/shapes/group.cljs index d98d58a2f7..6b44979565 100644 --- a/frontend/src/app/main/ui/workspace/shapes/group.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/group.cljs @@ -33,5 +33,5 @@ {:shape shape :childs childs}] (when *assert* - [:& wsd/shape-debug {:shape shape}])])))) + [:> wsd/shape-debug* {:shape shape}])])))) diff --git a/frontend/src/app/main/ui/workspace/shapes/path.cljs b/frontend/src/app/main/ui/workspace/shapes/path.cljs index 0f8da115b3..41c37e420d 100644 --- a/frontend/src/app/main/ui/workspace/shapes/path.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/path.cljs @@ -55,4 +55,4 @@ :pointer-events (when editing? "none")} [:& path/path-shape {:shape shape}] (when *assert* - [:& wsd/shape-debug {:shape shape}])])) + [:> wsd/shape-debug* {:shape shape}])])) diff --git a/frontend/src/app/main/ui/workspace/shapes/svg_raw.cljs b/frontend/src/app/main/ui/workspace/shapes/svg_raw.cljs index de1701e016..2eaa47ef4b 100644 --- a/frontend/src/app/main/ui/workspace/shapes/svg_raw.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/svg_raw.cljs @@ -29,7 +29,7 @@ [:& svg-raw-shape {:shape shape :childs childs}] (when *assert* - [:& wsd/shape-debug {:shape shape}])] + [:> wsd/shape-debug* {:shape shape}])] [:& svg-raw-shape {:shape shape :childs childs}]))))) diff --git a/frontend/src/app/main/ui/workspace/shapes/text.cljs b/frontend/src/app/main/ui/workspace/shapes/text.cljs index dfd2bcde83..601f5148fa 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text.cljs @@ -36,4 +36,4 @@ [:& text/text-shape {:shape shape}]] (when *assert* - [:& wsd/shape-debug {:shape shape}])])) + [:> wsd/shape-debug* {:shape shape}])]))