MCPcopy Index your code
hub / github.com/spritejs/spritejs / activateAnimations

Method activateAnimations

src/node/node.js:181–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 }
180
181 activateAnimations() {
182 const layer = this.layer;
183 if(layer) {
184 const animations = this[_animations];
185 animations.forEach((animation) => {
186 animation.baseTimeline = layer.timeline;
187 animation.play();
188 animation.finished.then(() => {
189 animations.delete(animation);
190 });
191 });
192 const children = this.children;
193 if(children) {
194 children.forEach((child) => {
195 if(child.activateAnimations) child.activateAnimations();
196 });
197 }
198 }
199 }
200
201 addEventListener(type, listener, options = {}) {
202 if(type === 'mousewheel') type = 'wheel';

Callers 2

connectMethod · 0.95
node.jsFile · 0.45

Calls 2

playMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected