File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/renderer/tool/container Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 6
6
[renderer.element.handlers :as element.h]
7
7
[renderer.element.subs :as-alias element.s]
8
8
[renderer.tool.base :as tool]
9
- [renderer.utils.pointer :as pointer]
10
- [renderer.utils.units :as units]))
9
+ [renderer.utils.pointer :as pointer]))
11
10
12
11
(derive :svg ::tool/container )
13
12
81
80
(for [element (merge child-elements)]
82
81
[tool/render element])]]))
83
82
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
-
89
83
(defmethod tool /render-to-string :svg
90
84
[{:keys [attrs children]}]
91
85
(let [child-elements @(rf/subscribe [::element.s/filter-visible children])
You can’t perform that action at this time.
0 commit comments