mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Merge branch '3.7' into 3.8-beta
This commit is contained in:
commit
0908d552a1
@ -1232,7 +1232,8 @@ public class AnimationState {
|
||||
start, interrupt, end, dispose, complete, event
|
||||
}
|
||||
|
||||
/** The interface to implement for receiving TrackEntry events.
|
||||
/** The interface to implement for receiving TrackEntry events. It is always safe to call AnimationState methods when receiving
|
||||
* events.
|
||||
* <p>
|
||||
* See TrackEntry {@link TrackEntry#setListener(AnimationStateListener)} and AnimationState
|
||||
* {@link AnimationState#addListener(AnimationStateListener)}. */
|
||||
@ -1251,10 +1252,14 @@ public class AnimationState {
|
||||
* References to the entry should not be kept after <code>dispose</code> is called, as it may be destroyed or reused. */
|
||||
public void dispose (TrackEntry entry);
|
||||
|
||||
/** Invoked every time this entry's animation completes a loop. */
|
||||
/** Invoked every time this entry's animation completes a loop. Because this event is trigged in
|
||||
* {@link AnimationState#apply(Skeleton)}, any animations set in response to the event won't be applied until the next time
|
||||
* the AnimationState is applied. */
|
||||
public void complete (TrackEntry entry);
|
||||
|
||||
/** Invoked when this entry's animation triggers an event. */
|
||||
/** Invoked when this entry's animation triggers an event. Because this event is trigged in
|
||||
* {@link AnimationState#apply(Skeleton)}, any animations set in response to the event won't be applied until the next time
|
||||
* the AnimationState is applied. */
|
||||
public void event (TrackEntry entry, Event event);
|
||||
}
|
||||
|
||||
|
||||
2
spine-ts/build/spine-all.d.ts
vendored
2
spine-ts/build/spine-all.d.ts
vendored
@ -1876,7 +1876,7 @@ declare module spine {
|
||||
setupInput(): void;
|
||||
private play();
|
||||
private pause();
|
||||
private setAnimation(animation);
|
||||
setAnimation(animation: string): void;
|
||||
private percentageToWorldUnit(size, percentageOrAbsolute);
|
||||
private calculateAnimationViewport(animationName);
|
||||
}
|
||||
|
||||
@ -10987,7 +10987,7 @@ var spine;
|
||||
this.viewportTransitionStart = performance.now();
|
||||
this.animationState.clearTracks();
|
||||
this.skeleton.setToSetupPose();
|
||||
this.animationState.setAnimation(0, this.config.animation, true);
|
||||
this.animationState.setAnimation(0, animation, true);
|
||||
};
|
||||
SpinePlayer.prototype.percentageToWorldUnit = function (size, percentageOrAbsolute) {
|
||||
if (typeof percentageOrAbsolute === "string") {
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
spine-ts/build/spine-player.d.ts
vendored
2
spine-ts/build/spine-player.d.ts
vendored
@ -1786,7 +1786,7 @@ declare module spine {
|
||||
setupInput(): void;
|
||||
private play();
|
||||
private pause();
|
||||
private setAnimation(animation);
|
||||
setAnimation(animation: string): void;
|
||||
private percentageToWorldUnit(size, percentageOrAbsolute);
|
||||
private calculateAnimationViewport(animationName);
|
||||
}
|
||||
|
||||
@ -10324,7 +10324,7 @@ var spine;
|
||||
this.viewportTransitionStart = performance.now();
|
||||
this.animationState.clearTracks();
|
||||
this.skeleton.setToSetupPose();
|
||||
this.animationState.setAnimation(0, this.config.animation, true);
|
||||
this.animationState.setAnimation(0, animation, true);
|
||||
};
|
||||
SpinePlayer.prototype.percentageToWorldUnit = function (size, percentageOrAbsolute) {
|
||||
if (typeof percentageOrAbsolute === "string") {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1099,7 +1099,7 @@
|
||||
this.playButton.classList.add("spine-player-button-icon-play");
|
||||
}
|
||||
|
||||
private setAnimation (animation: string) {
|
||||
public setAnimation (animation: string) {
|
||||
// Determine viewport
|
||||
this.previousViewport = this.currentViewport;
|
||||
let animViewport = this.calculateAnimationViewport(animation);
|
||||
@ -1156,7 +1156,7 @@
|
||||
|
||||
this.animationState.clearTracks();
|
||||
this.skeleton.setToSetupPose();
|
||||
this.animationState.setAnimation(0, this.config.animation, true);
|
||||
this.animationState.setAnimation(0, animation, true);
|
||||
}
|
||||
|
||||
private percentageToWorldUnit(size: number, percentageOrAbsolute: string | number): number {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user