Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made AnimationStateListener functions optional #413

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/runtime-4.0/src/core/AnimationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1179,24 +1179,24 @@ export enum EventType {
* */
export interface AnimationStateListener extends IAnimationStateListener {
/** Invoked when this entry has been set as the current entry. */
start (entry: TrackEntry): void;
start? (entry: TrackEntry): void;

/** Invoked when another entry has replaced this entry as the current entry. This entry may continue being applied for
* mixing. */
interrupt (entry: TrackEntry): void;
interrupt? (entry: TrackEntry): void;

/** Invoked when this entry is no longer the current entry and will never be applied again. */
end (entry: TrackEntry): void;
end? (entry: TrackEntry): void;

/** Invoked when this entry will be disposed. This may occur without the entry ever being set as the current entry.
* References to the entry should not be kept after dispose is called, as it may be destroyed or reused. */
dispose (entry: TrackEntry): void;
dispose? (entry: TrackEntry): void;

/** Invoked every time this entry's animation completes a loop. */
complete (entry: TrackEntry): void;
complete? (entry: TrackEntry): void;

/** Invoked when this entry's animation triggers an event. */
event (entry: TrackEntry, event: Event): void;
event? (entry: TrackEntry, event: Event): void;
}

/**
Expand Down