Skip to content

Commit b7a5285

Browse files
committed
remove unneeded bounds method
1 parent e1510a8 commit b7a5285

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/renderer/tool/container/svg.cljs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
[renderer.element.handlers :as element.h]
77
[renderer.element.subs :as-alias element.s]
88
[renderer.tool.base :as tool]
9-
[renderer.utils.pointer :as pointer]
10-
[renderer.utils.units :as units]))
9+
[renderer.utils.pointer :as pointer]))
1110

1211
(derive :svg ::tool/container)
1312

@@ -81,11 +80,6 @@
8180
(for [element (merge child-elements)]
8281
[tool/render element])]]))
8382

84-
(defmethod tool/bounds :svg
85-
[{{:keys [x y width height]} :attrs}]
86-
(let [[x y width height] (mapv units/unit->px [x y width height])]
87-
[x y (+ x width) (+ y height)]))
88-
8983
(defmethod tool/render-to-string :svg
9084
[{:keys [attrs children]}]
9185
(let [child-elements @(rf/subscribe [::element.s/filter-visible children])

0 commit comments

Comments
 (0)