@esotericsoftware/spine-core 4.0.12 → 4.1.1
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 +22 -3
- package/dist/Animation.js +87 -6
- package/dist/AnimationState.d.ts +8 -8
- package/dist/AnimationState.js +2 -2
- package/dist/AnimationStateData.d.ts +2 -2
- package/dist/AnimationStateData.js +2 -2
- package/dist/AssetManagerBase.d.ts +2 -2
- package/dist/AssetManagerBase.js +2 -2
- package/dist/AtlasAttachmentLoader.d.ts +6 -4
- package/dist/AtlasAttachmentLoader.js +35 -15
- package/dist/Bone.d.ts +2 -2
- package/dist/Bone.js +2 -2
- package/dist/BoneData.d.ts +2 -2
- package/dist/BoneData.js +2 -2
- package/dist/ConstraintData.d.ts +2 -2
- package/dist/ConstraintData.js +2 -2
- package/dist/Event.d.ts +2 -2
- package/dist/Event.js +2 -2
- package/dist/EventData.d.ts +2 -2
- package/dist/EventData.js +2 -2
- package/dist/IkConstraint.d.ts +2 -2
- package/dist/IkConstraint.js +2 -2
- package/dist/IkConstraintData.d.ts +2 -2
- package/dist/IkConstraintData.js +2 -2
- package/dist/PathConstraint.d.ts +2 -2
- package/dist/PathConstraint.js +2 -2
- package/dist/PathConstraintData.d.ts +2 -2
- package/dist/PathConstraintData.js +2 -2
- package/dist/Skeleton.d.ts +2 -8
- package/dist/Skeleton.js +4 -12
- package/dist/SkeletonBinary.d.ts +3 -2
- package/dist/SkeletonBinary.js +89 -52
- package/dist/SkeletonBounds.d.ts +2 -2
- package/dist/SkeletonBounds.js +2 -2
- package/dist/SkeletonClipping.d.ts +2 -2
- package/dist/SkeletonClipping.js +2 -2
- package/dist/SkeletonData.d.ts +2 -2
- package/dist/SkeletonData.js +2 -2
- package/dist/SkeletonJson.d.ts +4 -2
- package/dist/SkeletonJson.js +96 -59
- package/dist/Skin.d.ts +2 -2
- package/dist/Skin.js +2 -2
- package/dist/Slot.d.ts +8 -11
- package/dist/Slot.js +8 -17
- package/dist/SlotData.d.ts +2 -2
- package/dist/SlotData.js +2 -2
- package/dist/Texture.d.ts +2 -2
- package/dist/Texture.js +2 -2
- package/dist/TextureAtlas.d.ts +2 -2
- package/dist/TextureAtlas.js +2 -2
- package/dist/TransformConstraint.d.ts +2 -2
- package/dist/TransformConstraint.js +2 -2
- package/dist/TransformConstraintData.d.ts +2 -2
- package/dist/TransformConstraintData.js +2 -2
- package/dist/Triangulator.d.ts +2 -2
- package/dist/Triangulator.js +2 -2
- package/dist/Updatable.d.ts +2 -2
- package/dist/Updatable.js +2 -2
- package/dist/Utils.d.ts +2 -2
- package/dist/Utils.js +2 -2
- package/dist/VertexEffect.d.ts +2 -2
- package/dist/VertexEffect.js +2 -2
- package/dist/attachments/Attachment.d.ts +5 -4
- package/dist/attachments/Attachment.js +7 -6
- package/dist/attachments/AttachmentLoader.d.ts +5 -4
- package/dist/attachments/AttachmentLoader.js +2 -2
- package/dist/attachments/BoundingBoxAttachment.d.ts +2 -2
- package/dist/attachments/BoundingBoxAttachment.js +2 -2
- package/dist/attachments/ClippingAttachment.d.ts +2 -2
- package/dist/attachments/ClippingAttachment.js +2 -2
- package/dist/attachments/HasTextureRegion.d.ts +44 -0
- package/dist/attachments/HasTextureRegion.js +30 -0
- package/dist/attachments/MeshAttachment.d.ts +11 -6
- package/dist/attachments/MeshAttachment.js +15 -8
- package/dist/attachments/PathAttachment.d.ts +2 -2
- package/dist/attachments/PathAttachment.js +2 -2
- package/dist/attachments/PointAttachment.d.ts +2 -2
- package/dist/attachments/PointAttachment.js +2 -2
- package/dist/attachments/RegionAttachment.d.ts +17 -14
- package/dist/attachments/RegionAttachment.js +16 -14
- package/dist/attachments/Sequence.d.ts +55 -0
- package/dist/attachments/Sequence.js +91 -0
- package/dist/iife/spine-core.js +366 -143
- package/dist/iife/spine-core.js.map +3 -3
- package/dist/iife/spine-core.min.js +2 -2
- package/dist/polyfills.d.ts +2 -2
- package/dist/polyfills.js +2 -2
- package/dist/vertexeffects/JitterEffect.d.ts +2 -2
- package/dist/vertexeffects/JitterEffect.js +2 -2
- package/dist/vertexeffects/SwirlEffect.d.ts +2 -2
- package/dist/vertexeffects/SwirlEffect.js +2 -2
- package/package.json +2 -2
package/dist/Animation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/******************************************************************************
|
|
2
2
|
* Spine Runtimes License Agreement
|
|
3
|
-
* Last updated
|
|
3
|
+
* Last updated September 24, 2021. Replaces all prior versions.
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c) 2013-
|
|
5
|
+
* Copyright (c) 2013-2021, Esoteric Software LLC
|
|
6
6
|
*
|
|
7
7
|
* Integration of the Spine Runtimes into software or otherwise creating
|
|
8
8
|
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
27
27
|
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
28
|
*****************************************************************************/
|
|
29
|
-
import { VertexAttachment } from "./attachments/Attachment";
|
|
29
|
+
import { VertexAttachment, Attachment } from "./attachments/Attachment";
|
|
30
30
|
import { Skeleton } from "./Skeleton";
|
|
31
31
|
import { Slot } from "./Slot";
|
|
32
32
|
import { StringSet, NumberArrayLike } from "./Utils";
|
|
33
33
|
import { Event } from "./Event";
|
|
34
|
+
import { HasTextureRegion } from "./attachments/HasTextureRegion";
|
|
35
|
+
import { SequenceMode } from "./attachments/Sequence";
|
|
34
36
|
/** A simple container for a list of timelines and a name. */
|
|
35
37
|
export declare class Animation {
|
|
36
38
|
/** The animation's name, which is unique across all animations in the skeleton. */
|
|
@@ -361,3 +363,20 @@ export declare class PathConstraintMixTimeline extends CurveTimeline {
|
|
|
361
363
|
setFrame(frame: number, time: number, mixRotate: number, mixX: number, mixY: number): void;
|
|
362
364
|
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
363
365
|
}
|
|
366
|
+
/** Changes a slot's {@link Slot#getSequenceIndex()} for an attachment's {@link Sequence}. */
|
|
367
|
+
export declare class SequenceTimeline extends Timeline implements SlotTimeline {
|
|
368
|
+
static ENTRIES: number;
|
|
369
|
+
static MODE: number;
|
|
370
|
+
static DELAY: number;
|
|
371
|
+
slotIndex: number;
|
|
372
|
+
attachment: HasTextureRegion;
|
|
373
|
+
constructor(frameCount: number, slotIndex: number, attachment: HasTextureRegion);
|
|
374
|
+
getFrameEntries(): number;
|
|
375
|
+
getSlotIndex(): number;
|
|
376
|
+
getAttachment(): Attachment;
|
|
377
|
+
/** Sets the time, mode, index, and frame time for the specified frame.
|
|
378
|
+
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
379
|
+
* @param time Seconds between frames. */
|
|
380
|
+
setFrame(frame: number, time: number, mode: SequenceMode, index: number, delay: number): void;
|
|
381
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
382
|
+
}
|