Ulrich-Matthias Schäfer
4009da2e22
fix origin bug
6 years ago
Saivan
739e2dff56
Add a few debugging statements
6 years ago
Saivan
ad2047507d
Modified the behaviour of absolute transforms
This commit slightly modifies the behaviour of absolute transforms,
we will get them working soon :D
6 years ago
Ulrich-Matthias Schäfer
5836ecaba4
fix origin for relative transformations
6 years ago
Saivan
6353b3d2f4
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
6 years ago
Ulrich-Matthias Schäfer
0f1feefa9e
make transformations retargatable for declaritive
6 years ago
Saivan
b59e540b2f
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 🐞
6 years ago
Ulrich-Matthias Schäfer
88e9411b99
fix merging of transformations
6 years ago
Ulrich-Matthias Schäfer
b160cf8d85
replace runner set with array and order array for faster access and saving of start time
6 years ago
Ulrich-Matthias Schäfer
1e25302f6f
transforms work with multiple elements too. Satisfy linter
6 years ago
Ulrich-Matthias Schäfer
977554fea5
transformation works now for ONE element. More work required
6 years ago
Ulrich-Matthias Schäfer
d0d4f86524
first tries to make transformations work
6 years ago
Saivan
52a00f2e86
Began implementing the transformation functions
6 years ago
Saivan
39cd3a29e2
The timelines continue function requests a step animation frame
6 years ago
Ulrich-Matthias Schäfer
b27370f0ca
renamed method names as suggested, added failing test
6 years ago
Saivan
a9dc2dd77a
Simplified the stepping logic to avoid detecting edge cases
6 years ago
Ulrich-Matthias Schäfer
c6373d31cd
implements Set for runners in timeline
6 years ago
Ulrich-Matthias Schäfer
d215d392ef
fix for the endvalue of the animation
6 years ago
Saivan
aa1a55f92a
Fixed the final position while swinging
6 years ago
Ulrich-Matthias Schäfer
4a09d9ddb3
add failing test
6 years ago
Ulrich-Matthias Schäfer
414c79599d
worked a bit on timeline, build example, found bug which needs a fix
6 years ago
Saivan
f20d66d212
The runners step was reimplemented with tests
6 years ago
Ulrich-Matthias Schäfer
599ab86152
fixed declaritive again, fromArray now works on all object instances
6 years ago
Ulrich-Matthias Schäfer
c59a502dc7
implemented EventTarget + runner does not loop forever anymore
6 years ago
Saivan
b3317d7150
Got looping working with only a single wait
6 years ago
Saivan
fe03601878
Looping is now working and code is generally cleaner
6 years ago
Ulrich-Matthias Schäfer
366038d4a5
fix declaritive
6 years ago
Saivan
7c65a664bb
Diagnosing the declarative animations and suggesting changes
6 years ago
Ulrich-Matthias Schäfer
8c4e55ee55
implement methods, reorganize runner, list questions
6 years ago
Saivan
be8320d4bf
Started planning the way events work and got Spring working
6 years ago
Saivan
a616ee51ee
Merge branch '776-new-fx' of github.com:svgdotjs/svg.js into 776-new-fx
6 years ago
Saivan
d0beb6dfde
Segmenting out some Controllers
6 years ago
Ulrich-Matthias Schäfer
6a85fb9939
satisfy linter
6 years ago
Saivan
cbf1359e0a
Fixed all of the low hanging problems so declarative works
6 years ago
Ulrich-Matthias Schäfer
69869d25c4
simple fix for morpharray
6 years ago
Ulrich-Matthias Schäfer
4d39baa3e4
fixed some more errores, make declaritive controllers partially work. added PID controller for testing reasons
6 years ago
Ulrich-Matthias Schäfer
ebf2a8bb39
go through specs and make fixes where needed
6 years ago
Ulrich-Matthias Schäfer
70a8fd5fac
fix runner and timeline so that it schedules animations correctly
6 years ago
Ulrich-Matthias Schäfer
acb8408fb9
Stuff is moving again after fixing several stuff
6 years ago
Saivan
71df781bd0
Should be the final redesign
6 years ago
Saivan
a41c1496ba
Added a few more use cases and such
6 years ago
Saivan
69b4111399
Most of the animations are working
6 years ago
Ulrich-Matthias Schäfer
837cc126d3
add requestAnimationFrame Mock and tests for the animator
6 years ago
Ulrich-Matthias Schäfer
82b3524c10
allow arrays of events to be passed to `on()` and `off`
6 years ago
Ulrich-Matthias Schäfer
db8f7fdd64
fixed small typo
6 years ago
Ulrich-Matthias Schäfer
601ab0e249
fixed morphing. Changed easing function so that it can handle strings
- error in Matrix constructor which ignores translateX (and more?)
- generelized all morphable objects so that they behave logical
- SVG.Morphable can handle all datatypes now
6 years ago
Saivan
685d53295d
The timeline is now decoupled from the real time
This commit allows the timeline to exist independently of the actual
time. This will allow it to be used to seek through an animation
with relative ease. We also made some architectural changes to the
timeline to support this.
Changes
=======
- Refactored the runner into its own file without exposing it to the
user (changed the gulpfile)
- The timeline no longer depends on the current time
- The user can supply absolute times to queue events
- Some more methods have been integrated into the timeline
6 years ago
Ulrich-Matthias Schäfer
8b80921347
make morphing work, fix inheritance, animations now work
6 years ago
Saivan
b5d2b9d142
More work on the timeline and morphables
6 years ago
Saivan
6d46e412ae
The animations work with the .queue method
6 years ago