File tree 2 files changed +4
-4
lines changed
src/renderer/element/impl/container
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 98
98
(when (and transform-active pivot-point)
99
99
[overlay/times pivot-point])])
100
100
101
- (when (and ( or (= tool :edit )
102
- (= primary-tool :edit ) ))
101
+ (when (or (= tool :edit )
102
+ (= primary-tool :edit ))
103
103
(for [el selected-elements]
104
104
^{:key (str (:id el) " -edit-points" )}
105
105
[:g
Original file line number Diff line number Diff line change 19
19
SVG elements."
20
20
:attrs [:transform ]})
21
21
22
- (defn- translate
22
+ (defn translate!
23
23
[transform [x y]]
24
24
(let [g (js/document.createElementNS " http://www.w3.org/2000/svg" " g" )
25
25
_ (.setAttributeNS g nil " transform" (or transform " " ))
30
30
31
31
(defmethod hierarchy /translate :g
32
32
[el offset]
33
- (update-in el [:attrs :transform ] translate offset))
33
+ (update-in el [:attrs :transform ] translate! offset))
34
34
35
35
(defmethod hierarchy /render :g
36
36
[el]
You can’t perform that action at this time.
0 commit comments