diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-24 11:17:13 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-24 11:17:13 +0100 |
commit | 858f19e9f8b9ba26eee8d3aeb8ba8b5b5058472b (patch) | |
tree | fa0c355901bf93e6dc418a759f06ab7899e0452a /dirty.html | |
parent | 8555e13b252f07f8079b08c0b29f4399d389b1e0 (diff) | |
download | svg.js-858f19e9f8b9ba26eee8d3aeb8ba8b5b5058472b.tar.gz svg.js-858f19e9f8b9ba26eee8d3aeb8ba8b5b5058472b.zip |
Get rid of HTMLNode and Bare in favor of Dom
- words() and element() added to Dom
- svg() now returns the _parent_ of the imported element, when outerHTML is true (which means an element gets replaces)
Diffstat (limited to 'dirty.html')
-rw-r--r-- | dirty.html | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -210,9 +210,23 @@ canvas.rect(100, 100).on('click', (e) => { }) }) - console.log(schedule) + + + + + + + + + + + + + + + // var bla = SVG('<rect>').size(0, 0).move(200, 200).addTo('svg') // bla.animate().size(220, 200).queue(null, console.log) @@ -353,7 +367,7 @@ rectangle.animate().transform({ // // moon.animate(10000).loop().ease('-') // .transform({rotate: 360, origin: [500, 300]}, true) -// .transform({rotate: 1080, origin: [1000, 300]}, true) +// .transform({rotate: 3600, origin: [1000, 300]}, true) |