@esotericsoftware/spine-core 4.2.34 → 4.2.36
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 +12 -1
- package/dist/Animation.js +56 -25
- package/dist/AnimationState.js +9 -3
- package/dist/Bone.d.ts +2 -1
- package/dist/Bone.js +17 -15
- package/dist/BoneData.d.ts +2 -2
- package/dist/BoneData.js +10 -10
- package/dist/IkConstraint.js +10 -8
- package/dist/IkConstraintData.js +2 -2
- package/dist/PhysicsConstraint.d.ts +6 -0
- package/dist/PhysicsConstraint.js +55 -27
- package/dist/PhysicsConstraintData.d.ts +1 -0
- package/dist/PhysicsConstraintData.js +2 -1
- package/dist/Skeleton.d.ts +4 -1
- package/dist/Skeleton.js +13 -3
- package/dist/SkeletonBinary.js +80 -41
- package/dist/SkeletonData.d.ts +4 -1
- package/dist/SkeletonData.js +5 -2
- package/dist/SkeletonJson.js +28 -8
- package/dist/SlotData.d.ts +2 -0
- package/dist/SlotData.js +3 -1
- package/dist/TransformConstraint.js +5 -11
- package/dist/iife/spine-core.js +277 -129
- package/dist/iife/spine-core.js.map +3 -3
- package/dist/iife/spine-core.min.js +2 -2
- package/package.json +1 -1
package/dist/Animation.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { HasTextureRegion } from "./attachments/HasTextureRegion.js";
|
|
|
35
35
|
import { SequenceMode } from "./attachments/Sequence.js";
|
|
36
36
|
import { PhysicsConstraint } from "./PhysicsConstraint.js";
|
|
37
37
|
import { PhysicsConstraintData } from "./PhysicsConstraintData.js";
|
|
38
|
+
import { Inherit } from "./BoneData.js";
|
|
38
39
|
/** A simple container for a list of timelines and a name. */
|
|
39
40
|
export declare class Animation {
|
|
40
41
|
/** The animation's name, which is unique across all animations in the skeleton. */
|
|
@@ -226,6 +227,16 @@ export declare class ShearYTimeline extends CurveTimeline1 implements BoneTimeli
|
|
|
226
227
|
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
227
228
|
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
228
229
|
}
|
|
230
|
+
export declare class InheritTimeline extends Timeline implements BoneTimeline {
|
|
231
|
+
boneIndex: number;
|
|
232
|
+
constructor(frameCount: number, boneIndex: number);
|
|
233
|
+
getFrameEntries(): number;
|
|
234
|
+
/** Sets the transform mode for the specified frame.
|
|
235
|
+
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
236
|
+
* @param time The frame time in seconds. */
|
|
237
|
+
setFrame(frame: number, time: number, inherit: Inherit): void;
|
|
238
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
239
|
+
}
|
|
229
240
|
/** Changes a slot's {@link Slot#color}. */
|
|
230
241
|
export declare class RGBATimeline extends CurveTimeline implements SlotTimeline {
|
|
231
242
|
slotIndex: number;
|
|
@@ -326,7 +337,7 @@ export declare class DrawOrderTimeline extends Timeline {
|
|
|
326
337
|
/** Changes an IK constraint's {@link IkConstraint#mix}, {@link IkConstraint#softness},
|
|
327
338
|
* {@link IkConstraint#bendDirection}, {@link IkConstraint#stretch}, and {@link IkConstraint#compress}. */
|
|
328
339
|
export declare class IkConstraintTimeline extends CurveTimeline {
|
|
329
|
-
/** The index of the IK constraint in {@link Skeleton#getIkConstraints()} that will be changed when this timeline is */
|
|
340
|
+
/** The index of the IK constraint in {@link Skeleton#getIkConstraints()} that will be changed when this timeline is applied */
|
|
330
341
|
constraintIndex: number;
|
|
331
342
|
constructor(frameCount: number, bezierCount: number, ikConstraintIndex: number);
|
|
332
343
|
getFrameEntries(): number;
|