UNPKG

894 BJavaScriptView Raw
1import { __extends } from "tslib";
2import { FederatedEvent } from './FederatedEvent';
3/**
4 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent
5 */
6
7var AnimationEvent =
8/** @class */
9function (_super) {
10 __extends(AnimationEvent, _super);
11
12 function AnimationEvent(manager, target, currentTime, timelineTime) {
13 var _this = _super.call(this, manager) || this;
14
15 _this.currentTime = currentTime;
16 _this.timelineTime = timelineTime; // @ts-ignore
17
18 _this.target = target;
19 _this.type = 'finish';
20 _this.bubbles = false; // @ts-ignore
21
22 _this.currentTarget = target;
23 _this.defaultPrevented = false;
24 _this.eventPhase = _this.AT_TARGET;
25 _this.timeStamp = Date.now();
26 _this.currentTime = currentTime;
27 _this.timelineTime = timelineTime;
28 return _this;
29 }
30
31 return AnimationEvent;
32}(FederatedEvent);
33
34export { AnimationEvent };
\No newline at end of file