CreateJS / EaselJS

The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with the HTML5 Canvas element much easier.
http://createjs.com/
MIT License
8.11k stars 1.97k forks source link

Request to make a property for animation properties #1039

Closed danzen closed 3 years ago

danzen commented 4 years ago

I really have not figured out how to do pull requests... but there is one line of code that would be helpful to add. We would like to dynamically change properties before looping an animation. If we could get access to the properties and values being animated then we can. We are doing this in ZIM right now with a customized version of CreateJS. Here is where we made the one line update:

if (inject = this._injected) {
    this._injected = null;
    this._appendProps(inject, step, false);
}
this.step = step; // inserted by Dan Zen to help dynamically adjust tweens
danzen commented 3 years ago

This has been added https://github.com/CreateJS/TweenJS/commit/6df2b9ce7e68d3d824cc490b67cab2bc3204810a