| 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'; |