You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
817 B
33 lines
817 B
export class BaseEvent {
|
|
constructor(type) {
|
|
this.type = type;
|
|
}
|
|
}
|
|
export class GraphLifeCycleEvent extends BaseEvent {
|
|
constructor(type, data) {
|
|
super(type);
|
|
this.data = data;
|
|
}
|
|
}
|
|
export class AnimateEvent extends BaseEvent {
|
|
constructor(type, animationType, animation, data) {
|
|
super(type);
|
|
this.animationType = animationType;
|
|
this.animation = animation;
|
|
this.data = data;
|
|
}
|
|
}
|
|
export class ElementLifeCycleEvent extends BaseEvent {
|
|
constructor(type, elementType, data) {
|
|
super(type);
|
|
this.elementType = elementType;
|
|
this.data = data;
|
|
}
|
|
}
|
|
export class ViewportEvent extends BaseEvent {
|
|
constructor(type, data) {
|
|
super(type);
|
|
this.data = data;
|
|
}
|
|
}
|
|
//# sourceMappingURL=events.js.map
|