Fix build chain so that we now have multiple builds. Details below:
- svg.js: The esm bundle
- svg.min.js: The bundle for all browsers for maximum support
- svg.node.js: The bundle for node
- polyfill.js: Using svg.min.js requires this polyfill in case the Browser does not understand all of ./config/polyfillList.js
- polyfillIE.js: This is required when you use IE11 (polyfill.js still required)
Please note, that not all test pass for IE11 due to its rounding issues and wrong calculation of bbox.
Also note, that `defaultPrevented` is not working for CustomEvents in IE11.
- 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)
fixed lots of bugs in the timeline. Its now working as expected in all cases.
- refactor code into functions
- handle timeSource correctly
- allow for immediate updates
- Runners dont know about their delay anymore. Thats far more simple.
- Timeline is paused on creation
Refactored the getOrigin helper to help fix the relative affine animations
This commit refactors the getOrigin helper, in order to send the origin to the correct
space. The origin should be expressed in the space of the last animation.
Changes
=======
- Refactored the getOrigin helper
- Added a simple example to the dirty file to test multiple transformations
Fixed the relative non-affine transform animations
This commit uncovered an issue with the relative non-affine transformations. It is
now correctly fixed and working. Next we should fix the affine transforms as well.
Changes
=======
- Fixed the relative non-affine transformation animations
Added a simple example for relative declarative animations
This commit adds an example that demonstrates how I'd imagine declarative animations
should work and how they should mirror what imperative animations would do
Changes
=======
- Added a simple declarative example
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
Runners now work with absolute and relative transformations
This commit finally gets transformations workin in both absolute and
relative mode. This is the last **major** hurdle for the new
animation module, so we just need to clean it up and fix some bugs 🐞