]> source.dussan.org Git - svg.js.git/commit
Allowed the origin to stay fixed as we animate transforms
authorSaivan <savian@me.com>
Tue, 26 Jun 2018 12:42:47 +0000 (22:42 +1000)
committerSaivan <savian@me.com>
Tue, 26 Jun 2018 12:42:47 +0000 (22:42 +1000)
commit6353b3d2f43f5899ebecab13b82ecadacdbb69b3
tree48c8795404e3e06d9c76cdc897465ac8b3c2f754
parent0f1feefa9e8738c09d3a55bc8d15d832db36753e
Allowed the origin to stay fixed as we animate transforms

This commit start to remove the expensive bbox calculation by assuming
that the origin stays at a fixed point during an animation. This is a
good assumption as transforms don't change the bbox of the element.

Changes
=======
- Refactor the Element.transform function
- Make a getOrigin function to call the bbox only one time
dirty.html
dist/svg.js
gulpfile.js
playgrounds/transforms/transforms.html
playgrounds/transforms/transforms.js
src/element.js
src/helpers.js
src/runner.js
src/transform.js