@esotericsoftware/spine-core 4.2.25 → 4.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Animation.d.ts +109 -16
- package/dist/Animation.js +392 -322
- package/dist/AnimationState.d.ts +21 -12
- package/dist/AnimationState.js +191 -168
- package/dist/AnimationStateData.d.ts +3 -3
- package/dist/AnimationStateData.js +6 -4
- package/dist/AssetManagerBase.d.ts +3 -3
- package/dist/AssetManagerBase.js +11 -11
- package/dist/AtlasAttachmentLoader.d.ts +10 -10
- package/dist/AtlasAttachmentLoader.js +8 -7
- package/dist/Bone.d.ts +19 -15
- package/dist/Bone.js +127 -106
- package/dist/BoneData.d.ts +6 -2
- package/dist/BoneData.js +37 -31
- package/dist/ConstraintData.js +4 -1
- package/dist/Event.d.ts +1 -1
- package/dist/Event.js +8 -7
- package/dist/EventData.js +8 -7
- package/dist/IkConstraint.d.ts +6 -5
- package/dist/IkConstraint.js +39 -22
- package/dist/IkConstraintData.d.ts +2 -2
- package/dist/IkConstraintData.js +20 -20
- package/dist/PathConstraint.d.ts +8 -7
- package/dist/PathConstraint.js +39 -29
- package/dist/PathConstraintData.d.ts +3 -3
- package/dist/PathConstraintData.js +21 -21
- package/dist/PhysicsConstraint.d.ts +74 -0
- package/dist/PhysicsConstraint.js +267 -0
- package/dist/PhysicsConstraintData.d.ts +61 -0
- package/dist/PhysicsConstraintData.js +68 -0
- package/dist/Skeleton.d.ts +36 -12
- package/dist/Skeleton.js +121 -90
- package/dist/SkeletonBinary.d.ts +2 -2
- package/dist/SkeletonBinary.js +30 -19
- package/dist/SkeletonBounds.d.ts +3 -3
- package/dist/SkeletonBounds.js +18 -20
- package/dist/SkeletonClipping.d.ts +3 -3
- package/dist/SkeletonClipping.js +11 -13
- package/dist/SkeletonData.d.ts +14 -7
- package/dist/SkeletonData.js +64 -50
- package/dist/SkeletonJson.d.ts +5 -5
- package/dist/SkeletonJson.js +26 -20
- package/dist/Skin.d.ts +7 -5
- package/dist/Skin.js +13 -5
- package/dist/Slot.d.ts +5 -5
- package/dist/Slot.js +23 -16
- package/dist/SlotData.d.ts +4 -2
- package/dist/SlotData.js +20 -14
- package/dist/Texture.js +14 -14
- package/dist/TextureAtlas.d.ts +3 -3
- package/dist/TextureAtlas.js +30 -27
- package/dist/TransformConstraint.d.ts +7 -6
- package/dist/TransformConstraint.js +28 -13
- package/dist/TransformConstraintData.d.ts +2 -2
- package/dist/TransformConstraintData.js +26 -26
- package/dist/Triangulator.d.ts +1 -1
- package/dist/Triangulator.js +13 -15
- package/dist/Updatable.d.ts +9 -4
- package/dist/Utils.d.ts +4 -2
- package/dist/Utils.js +41 -35
- package/dist/attachments/Attachment.d.ts +2 -2
- package/dist/attachments/Attachment.js +20 -19
- package/dist/attachments/AttachmentLoader.d.ts +8 -8
- package/dist/attachments/BoundingBoxAttachment.d.ts +2 -2
- package/dist/attachments/BoundingBoxAttachment.js +4 -4
- package/dist/attachments/ClippingAttachment.d.ts +3 -3
- package/dist/attachments/ClippingAttachment.js +10 -10
- package/dist/attachments/HasTextureRegion.d.ts +3 -3
- package/dist/attachments/MeshAttachment.d.ts +6 -6
- package/dist/attachments/MeshAttachment.js +29 -27
- package/dist/attachments/PathAttachment.d.ts +2 -2
- package/dist/attachments/PathAttachment.js +13 -13
- package/dist/attachments/PointAttachment.d.ts +3 -3
- package/dist/attachments/PointAttachment.js +13 -13
- package/dist/attachments/RegionAttachment.d.ts +6 -6
- package/dist/attachments/RegionAttachment.js +62 -60
- package/dist/attachments/Sequence.d.ts +3 -3
- package/dist/attachments/Sequence.js +9 -8
- package/dist/attachments/index.d.ts +8 -8
- package/dist/attachments/index.js +9 -9
- package/dist/iife/spine-core.js +1658 -1178
- package/dist/iife/spine-core.js.map +4 -4
- package/dist/iife/spine-core.min.js +2 -2
- package/dist/index.d.ts +39 -39
- package/dist/index.js +40 -40
- package/package.json +3 -2
package/dist/AnimationState.d.ts
CHANGED
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
27
27
|
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
28
|
*****************************************************************************/
|
|
29
|
-
import { Animation, MixBlend, AttachmentTimeline, RotateTimeline } from "./Animation";
|
|
30
|
-
import { AnimationStateData } from "./AnimationStateData";
|
|
31
|
-
import { Skeleton } from "./Skeleton";
|
|
32
|
-
import { Slot } from "./Slot";
|
|
33
|
-
import { StringSet, Pool } from "./Utils";
|
|
34
|
-
import { Event } from "./Event";
|
|
29
|
+
import { Animation, MixBlend, AttachmentTimeline, RotateTimeline } from "./Animation.js";
|
|
30
|
+
import { AnimationStateData } from "./AnimationStateData.js";
|
|
31
|
+
import { Skeleton } from "./Skeleton.js";
|
|
32
|
+
import { Slot } from "./Slot.js";
|
|
33
|
+
import { StringSet, Pool } from "./Utils.js";
|
|
34
|
+
import { Event } from "./Event.js";
|
|
35
35
|
/** Applies animations over time, queues animations for later playback, mixes (crossfading) between animations, and applies
|
|
36
36
|
* multiple animations on top of each other (layering).
|
|
37
37
|
*
|
|
@@ -202,11 +202,14 @@ export declare class TrackEntry {
|
|
|
202
202
|
/** When the mix percentage ({@link #mixtime} / {@link #mixDuration}) is less than the
|
|
203
203
|
* `attachmentThreshold`, attachment timelines are applied while this animation is being mixed out. Defaults to
|
|
204
204
|
* 0, so attachment timelines are not applied while this animation is being mixed out. */
|
|
205
|
-
|
|
206
|
-
/** When
|
|
207
|
-
*
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
mixAttachmentThreshold: number;
|
|
206
|
+
/** When {@link #getAlpha()} is greater than <code>alphaAttachmentThreshold</code>, attachment timelines are applied.
|
|
207
|
+
* Defaults to 0, so attachment timelines are always applied. */
|
|
208
|
+
alphaAttachmentThreshold: number;
|
|
209
|
+
/** When the mix percentage ({@link #getMixTime()} / {@link #getMixDuration()}) is less than the
|
|
210
|
+
* <code>mixDrawOrderThreshold</code>, draw order timelines are applied while this animation is being mixed out. Defaults to
|
|
211
|
+
* 0, so draw order timelines are not applied while this animation is being mixed out. */
|
|
212
|
+
mixDrawOrderThreshold: number;
|
|
210
213
|
/** Seconds when this animation starts, both initially and after looping. Defaults to 0.
|
|
211
214
|
*
|
|
212
215
|
* When changing the `animationStart` time, it often makes sense to set {@link #animationLast} to the same
|
|
@@ -276,9 +279,11 @@ export declare class TrackEntry {
|
|
|
276
279
|
* When using {@link AnimationState#addAnimation()} with a `delay` <= 0, note the
|
|
277
280
|
* {@link #delay} is set using the mix duration from the {@link AnimationStateData}, not a mix duration set
|
|
278
281
|
* afterward. */
|
|
279
|
-
|
|
282
|
+
_mixDuration: number;
|
|
280
283
|
interruptAlpha: number;
|
|
281
284
|
totalAlpha: number;
|
|
285
|
+
get mixDuration(): number;
|
|
286
|
+
set mixDuration(mixDuration: number);
|
|
282
287
|
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|
|
283
288
|
* replaces the values from the lower tracks with the animation values. {@link MixBlend#add} adds the animation values to
|
|
284
289
|
* the values from the lower tracks.
|
|
@@ -308,6 +313,10 @@ export declare class TrackEntry {
|
|
|
308
313
|
* long way. TrackEntry chooses the short way the first time it is applied and remembers that direction. */
|
|
309
314
|
resetRotationDirections(): void;
|
|
310
315
|
getTrackComplete(): number;
|
|
316
|
+
/** Returns true if this track entry has been applied at least once.
|
|
317
|
+
* <p>
|
|
318
|
+
* See {@link AnimationState#apply(Skeleton)}. */
|
|
319
|
+
wasApplied(): boolean;
|
|
311
320
|
}
|
|
312
321
|
export declare class EventQueue {
|
|
313
322
|
objects: Array<any>;
|