simple-pixi-spine 0.1.0
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/LICENSE +21 -0
- package/README.md +200 -0
- package/dist/simple-pixi-spine.js +37 -0
- package/dist/simple-pixi-spine.js.map +7 -0
- package/dist/simple-pixi-spine.mjs +37 -0
- package/dist/simple-pixi-spine.mjs.map +7 -0
- package/dist/types/build.d.mts +1 -0
- package/dist/types/bundles/pixi-spine/rollup.config.d.mts +2 -0
- package/dist/types/bundles/pixi-spine/src/index.d.ts +5 -0
- package/dist/types/packages/base/src/SpineBase.d.ts +167 -0
- package/dist/types/packages/base/src/SpineDebugRenderer.d.ts +60 -0
- package/dist/types/packages/base/src/core/AttachmentType.d.ts +12 -0
- package/dist/types/packages/base/src/core/BinaryInput.d.ts +18 -0
- package/dist/types/packages/base/src/core/IAnimation.d.ts +131 -0
- package/dist/types/packages/base/src/core/IConstraint.d.ts +93 -0
- package/dist/types/packages/base/src/core/ISkeleton.d.ts +237 -0
- package/dist/types/packages/base/src/core/SkeletonBoundsBase.d.ts +51 -0
- package/dist/types/packages/base/src/core/TextureAtlas.d.ts +41 -0
- package/dist/types/packages/base/src/core/TextureRegion.d.ts +55 -0
- package/dist/types/packages/base/src/core/Utils.d.ts +198 -0
- package/dist/types/packages/base/src/core/versions.d.ts +15 -0
- package/dist/types/packages/base/src/index.d.ts +14 -0
- package/dist/types/packages/base/src/settings.d.ts +19 -0
- package/dist/types/packages/loader-3.8/src/index.d.ts +2 -0
- package/dist/types/packages/loader-4.0/src/index.d.ts +2 -0
- package/dist/types/packages/loader-4.1/src/index.d.ts +2 -0
- package/dist/types/packages/loader-4.2/src/index.d.ts +2 -0
- package/dist/types/packages/loader-base/src/SpineLoaderAbstract.d.ts +36 -0
- package/dist/types/packages/loader-base/src/atlasLoader.d.ts +5 -0
- package/dist/types/packages/loader-base/src/index.d.ts +4 -0
- package/dist/types/packages/loader-uni/src/Spine.d.ts +15 -0
- package/dist/types/packages/loader-uni/src/SpineLoader.d.ts +10 -0
- package/dist/types/packages/loader-uni/src/index.d.ts +3 -0
- package/dist/types/packages/runtime-3.7/src/Spine.d.ts +11 -0
- package/dist/types/packages/runtime-3.7/src/core/Animation.d.ts +307 -0
- package/dist/types/packages/runtime-3.7/src/core/AnimationState.d.ts +175 -0
- package/dist/types/packages/runtime-3.7/src/core/AnimationStateData.d.ts +17 -0
- package/dist/types/packages/runtime-3.7/src/core/AtlasAttachmentLoader.d.ts +20 -0
- package/dist/types/packages/runtime-3.7/src/core/Bone.d.ts +58 -0
- package/dist/types/packages/runtime-3.7/src/core/BoneData.d.ts +19 -0
- package/dist/types/packages/runtime-3.7/src/core/Constraint.d.ts +7 -0
- package/dist/types/packages/runtime-3.7/src/core/Event.d.ts +15 -0
- package/dist/types/packages/runtime-3.7/src/core/EventData.d.ts +14 -0
- package/dist/types/packages/runtime-3.7/src/core/IkConstraint.d.ts +27 -0
- package/dist/types/packages/runtime-3.7/src/core/IkConstraintData.d.ts +16 -0
- package/dist/types/packages/runtime-3.7/src/core/PathConstraint.d.ts +36 -0
- package/dist/types/packages/runtime-3.7/src/core/PathConstraintData.d.ts +29 -0
- package/dist/types/packages/runtime-3.7/src/core/Skeleton.d.ts +88 -0
- package/dist/types/packages/runtime-3.7/src/core/SkeletonBounds.d.ts +8 -0
- package/dist/types/packages/runtime-3.7/src/core/SkeletonData.d.ts +41 -0
- package/dist/types/packages/runtime-3.7/src/core/SkeletonJson.d.ts +27 -0
- package/dist/types/packages/runtime-3.7/src/core/Skin.d.ts +16 -0
- package/dist/types/packages/runtime-3.7/src/core/Slot.d.ts +27 -0
- package/dist/types/packages/runtime-3.7/src/core/SlotData.d.ts +17 -0
- package/dist/types/packages/runtime-3.7/src/core/TransformConstraint.d.ts +26 -0
- package/dist/types/packages/runtime-3.7/src/core/TransformConstraintData.d.ts +23 -0
- package/dist/types/packages/runtime-3.7/src/core/Updatable.d.ts +6 -0
- package/dist/types/packages/runtime-3.7/src/core/VertexEffect.d.ts +10 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/Attachment.d.ts +30 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/AttachmentLoader.d.ts +24 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/BoundingBoxAttachment.d.ts +10 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/ClippingAttachment.d.ts +12 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/MeshAttachment.d.ts +23 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/PathAttachment.d.ts +13 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/PointAttachment.d.ts +16 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/RegionAttachment.d.ts +68 -0
- package/dist/types/packages/runtime-3.7/src/core/attachments/index.d.ts +8 -0
- package/dist/types/packages/runtime-3.7/src/core/vertexeffects/JitterEffect.d.ts +14 -0
- package/dist/types/packages/runtime-3.7/src/core/vertexeffects/SwirlEffect.d.ts +19 -0
- package/dist/types/packages/runtime-3.7/src/index.d.ts +28 -0
- package/dist/types/packages/runtime-3.8/src/Spine.d.ts +11 -0
- package/dist/types/packages/runtime-3.8/src/core/Animation.d.ts +400 -0
- package/dist/types/packages/runtime-3.8/src/core/AnimationState.d.ts +401 -0
- package/dist/types/packages/runtime-3.8/src/core/AnimationStateData.d.ts +17 -0
- package/dist/types/packages/runtime-3.8/src/core/AtlasAttachmentLoader.d.ts +20 -0
- package/dist/types/packages/runtime-3.8/src/core/Bone.d.ts +58 -0
- package/dist/types/packages/runtime-3.8/src/core/BoneData.d.ts +21 -0
- package/dist/types/packages/runtime-3.8/src/core/Constraint.d.ts +9 -0
- package/dist/types/packages/runtime-3.8/src/core/Event.d.ts +15 -0
- package/dist/types/packages/runtime-3.8/src/core/EventData.d.ts +14 -0
- package/dist/types/packages/runtime-3.8/src/core/IkConstraint.d.ts +30 -0
- package/dist/types/packages/runtime-3.8/src/core/IkConstraintData.d.ts +17 -0
- package/dist/types/packages/runtime-3.8/src/core/PathConstraint.d.ts +37 -0
- package/dist/types/packages/runtime-3.8/src/core/PathConstraintData.d.ts +28 -0
- package/dist/types/packages/runtime-3.8/src/core/Skeleton.d.ts +88 -0
- package/dist/types/packages/runtime-3.8/src/core/SkeletonBinary.d.ts +43 -0
- package/dist/types/packages/runtime-3.8/src/core/SkeletonBounds.d.ts +8 -0
- package/dist/types/packages/runtime-3.8/src/core/SkeletonData.d.ts +44 -0
- package/dist/types/packages/runtime-3.8/src/core/SkeletonJson.d.ts +27 -0
- package/dist/types/packages/runtime-3.8/src/core/Skin.d.ts +35 -0
- package/dist/types/packages/runtime-3.8/src/core/Slot.d.ts +28 -0
- package/dist/types/packages/runtime-3.8/src/core/SlotData.d.ts +17 -0
- package/dist/types/packages/runtime-3.8/src/core/TransformConstraint.d.ts +27 -0
- package/dist/types/packages/runtime-3.8/src/core/TransformConstraintData.d.ts +22 -0
- package/dist/types/packages/runtime-3.8/src/core/Updatable.d.ts +7 -0
- package/dist/types/packages/runtime-3.8/src/core/VertexEffect.d.ts +10 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/Attachment.d.ts +32 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/AttachmentLoader.d.ts +24 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/BoundingBoxAttachment.d.ts +11 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/ClippingAttachment.d.ts +13 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/MeshAttachment.d.ts +25 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/PathAttachment.d.ts +14 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/PointAttachment.d.ts +17 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/RegionAttachment.d.ts +69 -0
- package/dist/types/packages/runtime-3.8/src/core/attachments/index.d.ts +8 -0
- package/dist/types/packages/runtime-3.8/src/core/vertexeffects/JitterEffect.d.ts +14 -0
- package/dist/types/packages/runtime-3.8/src/core/vertexeffects/SwirlEffect.d.ts +19 -0
- package/dist/types/packages/runtime-3.8/src/index.d.ts +29 -0
- package/dist/types/packages/runtime-4.0/src/Spine.d.ts +11 -0
- package/dist/types/packages/runtime-4.0/src/core/Animation.d.ts +366 -0
- package/dist/types/packages/runtime-4.0/src/core/AnimationState.d.ts +369 -0
- package/dist/types/packages/runtime-4.0/src/core/AnimationStateData.d.ts +25 -0
- package/dist/types/packages/runtime-4.0/src/core/AtlasAttachmentLoader.d.ts +20 -0
- package/dist/types/packages/runtime-4.0/src/core/Bone.d.ts +104 -0
- package/dist/types/packages/runtime-4.0/src/core/BoneData.d.ts +38 -0
- package/dist/types/packages/runtime-4.0/src/core/ConstraintData.d.ts +9 -0
- package/dist/types/packages/runtime-4.0/src/core/Event.d.ts +19 -0
- package/dist/types/packages/runtime-4.0/src/core/EventData.d.ts +16 -0
- package/dist/types/packages/runtime-4.0/src/core/IkConstraint.d.ts +38 -0
- package/dist/types/packages/runtime-4.0/src/core/IkConstraintData.d.ts +28 -0
- package/dist/types/packages/runtime-4.0/src/core/PathConstraint.d.ts +45 -0
- package/dist/types/packages/runtime-4.0/src/core/PathConstraintData.d.ts +42 -0
- package/dist/types/packages/runtime-4.0/src/core/Skeleton.d.ts +149 -0
- package/dist/types/packages/runtime-4.0/src/core/SkeletonBinary.d.ts +28 -0
- package/dist/types/packages/runtime-4.0/src/core/SkeletonBounds.d.ts +8 -0
- package/dist/types/packages/runtime-4.0/src/core/SkeletonData.d.ts +94 -0
- package/dist/types/packages/runtime-4.0/src/core/SkeletonJson.d.ts +26 -0
- package/dist/types/packages/runtime-4.0/src/core/Skin.d.ts +47 -0
- package/dist/types/packages/runtime-4.0/src/core/Slot.d.ts +45 -0
- package/dist/types/packages/runtime-4.0/src/core/SlotData.d.ts +26 -0
- package/dist/types/packages/runtime-4.0/src/core/TransformConstraint.d.ts +34 -0
- package/dist/types/packages/runtime-4.0/src/core/TransformConstraintData.d.ts +34 -0
- package/dist/types/packages/runtime-4.0/src/core/Updatable.d.ts +11 -0
- package/dist/types/packages/runtime-4.0/src/core/VertexEffect.d.ts +10 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/Attachment.d.ts +52 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/AttachmentLoader.d.ts +24 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/BoundingBoxAttachment.d.ts +11 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/ClippingAttachment.d.ts +15 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/MeshAttachment.d.ts +38 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/PathAttachment.d.ts +20 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/PointAttachment.d.ts +19 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/RegionAttachment.d.ts +89 -0
- package/dist/types/packages/runtime-4.0/src/core/attachments/index.d.ts +8 -0
- package/dist/types/packages/runtime-4.0/src/core/vertexeffects/JitterEffect.d.ts +14 -0
- package/dist/types/packages/runtime-4.0/src/core/vertexeffects/SwirlEffect.d.ts +19 -0
- package/dist/types/packages/runtime-4.0/src/index.d.ts +29 -0
- package/dist/types/packages/runtime-4.1/src/Spine.d.ts +11 -0
- package/dist/types/packages/runtime-4.1/src/core/Animation.d.ts +386 -0
- package/dist/types/packages/runtime-4.1/src/core/AnimationState.d.ts +371 -0
- package/dist/types/packages/runtime-4.1/src/core/AnimationStateData.d.ts +25 -0
- package/dist/types/packages/runtime-4.1/src/core/AtlasAttachmentLoader.d.ts +17 -0
- package/dist/types/packages/runtime-4.1/src/core/Bone.d.ts +104 -0
- package/dist/types/packages/runtime-4.1/src/core/BoneData.d.ts +38 -0
- package/dist/types/packages/runtime-4.1/src/core/ConstraintData.d.ts +9 -0
- package/dist/types/packages/runtime-4.1/src/core/Event.d.ts +19 -0
- package/dist/types/packages/runtime-4.1/src/core/EventData.d.ts +16 -0
- package/dist/types/packages/runtime-4.1/src/core/IkConstraint.d.ts +38 -0
- package/dist/types/packages/runtime-4.1/src/core/IkConstraintData.d.ts +30 -0
- package/dist/types/packages/runtime-4.1/src/core/PathConstraint.d.ts +45 -0
- package/dist/types/packages/runtime-4.1/src/core/PathConstraintData.d.ts +44 -0
- package/dist/types/packages/runtime-4.1/src/core/Skeleton.d.ts +143 -0
- package/dist/types/packages/runtime-4.1/src/core/SkeletonBinary.d.ts +31 -0
- package/dist/types/packages/runtime-4.1/src/core/SkeletonBounds.d.ts +8 -0
- package/dist/types/packages/runtime-4.1/src/core/SkeletonData.d.ts +94 -0
- package/dist/types/packages/runtime-4.1/src/core/SkeletonJson.d.ts +28 -0
- package/dist/types/packages/runtime-4.1/src/core/Skin.d.ts +47 -0
- package/dist/types/packages/runtime-4.1/src/core/Slot.d.ts +44 -0
- package/dist/types/packages/runtime-4.1/src/core/SlotData.d.ts +26 -0
- package/dist/types/packages/runtime-4.1/src/core/TransformConstraint.d.ts +34 -0
- package/dist/types/packages/runtime-4.1/src/core/TransformConstraintData.d.ts +36 -0
- package/dist/types/packages/runtime-4.1/src/core/Updatable.d.ts +11 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/Attachment.d.ts +53 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/AttachmentLoader.d.ts +25 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/BoundingBoxAttachment.d.ts +11 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/ClippingAttachment.d.ts +17 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/MeshAttachment.d.ts +42 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/PathAttachment.d.ts +20 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/PointAttachment.d.ts +19 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/RegionAttachment.d.ts +82 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/Sequence.d.ts +35 -0
- package/dist/types/packages/runtime-4.1/src/core/attachments/index.d.ts +9 -0
- package/dist/types/packages/runtime-4.1/src/index.d.ts +26 -0
- package/dist/types/packages/runtime-4.2/src/Spine.d.ts +11 -0
- package/dist/types/packages/runtime-4.2/src/core/Animation.d.ts +544 -0
- package/dist/types/packages/runtime-4.2/src/core/AnimationState.d.ts +405 -0
- package/dist/types/packages/runtime-4.2/src/core/AnimationStateData.d.ts +25 -0
- package/dist/types/packages/runtime-4.2/src/core/AtlasAttachmentLoader.d.ts +20 -0
- package/dist/types/packages/runtime-4.2/src/core/Bone.d.ts +117 -0
- package/dist/types/packages/runtime-4.2/src/core/BoneData.d.ts +42 -0
- package/dist/types/packages/runtime-4.2/src/core/ConstraintData.d.ts +9 -0
- package/dist/types/packages/runtime-4.2/src/core/Event.d.ts +18 -0
- package/dist/types/packages/runtime-4.2/src/core/EventData.d.ts +15 -0
- package/dist/types/packages/runtime-4.2/src/core/IkConstraint.d.ts +40 -0
- package/dist/types/packages/runtime-4.2/src/core/IkConstraintData.d.ts +30 -0
- package/dist/types/packages/runtime-4.2/src/core/PathConstraint.d.ts +47 -0
- package/dist/types/packages/runtime-4.2/src/core/PathConstraintData.d.ts +62 -0
- package/dist/types/packages/runtime-4.2/src/core/PhysicsConstraint.d.ts +54 -0
- package/dist/types/packages/runtime-4.2/src/core/PhysicsConstraintData.d.ts +35 -0
- package/dist/types/packages/runtime-4.2/src/core/Skeleton.d.ts +160 -0
- package/dist/types/packages/runtime-4.2/src/core/SkeletonBinary.d.ts +43 -0
- package/dist/types/packages/runtime-4.2/src/core/SkeletonBounds.d.ts +51 -0
- package/dist/types/packages/runtime-4.2/src/core/SkeletonClipping.d.ts +38 -0
- package/dist/types/packages/runtime-4.2/src/core/SkeletonData.d.ts +101 -0
- package/dist/types/packages/runtime-4.2/src/core/SkeletonJson.d.ts +23 -0
- package/dist/types/packages/runtime-4.2/src/core/Skin.d.ts +49 -0
- package/dist/types/packages/runtime-4.2/src/core/Slot.d.ts +44 -0
- package/dist/types/packages/runtime-4.2/src/core/SlotData.d.ts +28 -0
- package/dist/types/packages/runtime-4.2/src/core/TransformConstraint.d.ts +33 -0
- package/dist/types/packages/runtime-4.2/src/core/TransformConstraintData.d.ts +34 -0
- package/dist/types/packages/runtime-4.2/src/core/Triangulator.d.ts +18 -0
- package/dist/types/packages/runtime-4.2/src/core/Updatable.d.ts +16 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/Attachment.d.ts +49 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/AttachmentLoader.d.ts +27 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/BoundingBoxAttachment.d.ts +12 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/ClippingAttachment.d.ts +16 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/MeshAttachment.d.ts +46 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/PathAttachment.d.ts +19 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/PointAttachment.d.ts +20 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/RegionAttachment.d.ts +80 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/Sequence.d.ts +35 -0
- package/dist/types/packages/runtime-4.2/src/core/attachments/index.d.ts +9 -0
- package/dist/types/packages/runtime-4.2/src/core/index.d.ts +29 -0
- package/dist/types/packages/runtime-4.2/src/core/polyfills.d.ts +1 -0
- package/dist/types/packages/runtime-4.2/src/index.d.ts +3 -0
- package/dist/types/src/BinaryInput.d.ts +84 -0
- package/dist/types/src/SkelToJson.d.ts +15 -0
- package/dist/types/src/SkelToJson21.d.ts +10 -0
- package/dist/types/src/SkelToJson34And35.d.ts +10 -0
- package/dist/types/src/SkelToJson36And37.d.ts +10 -0
- package/dist/types/src/SkelToJsonCommon.d.ts +24 -0
- package/dist/types/src/TextureHelper.d.ts +29 -0
- package/dist/types/src/VersionDetector.d.ts +28 -0
- package/dist/types/src/index.d.ts +80 -0
- package/dist/types/src/types.d.ts +161 -0
- package/package.json +29 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from './core/attachments';
|
|
2
|
+
export * from './core/vertexeffects/JitterEffect';
|
|
3
|
+
export * from './core/vertexeffects/SwirlEffect';
|
|
4
|
+
export * from './core/Animation';
|
|
5
|
+
export * from './core/AnimationState';
|
|
6
|
+
export * from './core/AnimationStateData';
|
|
7
|
+
export * from './core/AtlasAttachmentLoader';
|
|
8
|
+
export * from './core/Bone';
|
|
9
|
+
export * from './core/BoneData';
|
|
10
|
+
export * from './core/Constraint';
|
|
11
|
+
export * from './core/Event';
|
|
12
|
+
export * from './core/EventData';
|
|
13
|
+
export * from './core/IkConstraint';
|
|
14
|
+
export * from './core/IkConstraintData';
|
|
15
|
+
export * from './core/PathConstraint';
|
|
16
|
+
export * from './core/PathConstraintData';
|
|
17
|
+
export * from './core/Skeleton';
|
|
18
|
+
export * from './core/SkeletonBinary';
|
|
19
|
+
export * from './core/SkeletonBounds';
|
|
20
|
+
export * from './core/SkeletonData';
|
|
21
|
+
export * from './core/SkeletonJson';
|
|
22
|
+
export * from './core/Skin';
|
|
23
|
+
export * from './core/Slot';
|
|
24
|
+
export * from './core/SlotData';
|
|
25
|
+
export * from './core/TransformConstraint';
|
|
26
|
+
export * from './core/TransformConstraintData';
|
|
27
|
+
export * from './core/Updatable';
|
|
28
|
+
export * from './core/VertexEffect';
|
|
29
|
+
export * from './Spine';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpineBase } from '@pixi-spine/base';
|
|
2
|
+
import { Skeleton } from './core/Skeleton';
|
|
3
|
+
import type { SkeletonData } from './core/SkeletonData';
|
|
4
|
+
import { AnimationState } from './core/AnimationState';
|
|
5
|
+
import { AnimationStateData } from './core/AnimationStateData';
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class Spine extends SpineBase<Skeleton, SkeletonData, AnimationState, AnimationStateData> {
|
|
10
|
+
createSkeleton(spineData: SkeletonData): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import type { Event } from './Event';
|
|
2
|
+
import type { Skeleton } from './Skeleton';
|
|
3
|
+
import { VertexAttachment } from './attachments';
|
|
4
|
+
import { NumberArrayLike, IAnimation, ITimeline, MixBlend, StringSet, MixDirection } from '@pixi-spine/base';
|
|
5
|
+
import type { Slot } from './Slot';
|
|
6
|
+
/**
|
|
7
|
+
* A simple container for a list of timelines and a name.
|
|
8
|
+
* @public
|
|
9
|
+
* */
|
|
10
|
+
export declare class Animation implements IAnimation<Timeline> {
|
|
11
|
+
/** The animation's name, which is unique across all animations in the skeleton. */
|
|
12
|
+
name: string;
|
|
13
|
+
timelines: Array<Timeline>;
|
|
14
|
+
timelineIds: StringSet;
|
|
15
|
+
/** The duration of the animation in seconds, which is the highest time of all keys in the timeline. */
|
|
16
|
+
duration: number;
|
|
17
|
+
constructor(name: string, timelines: Array<Timeline>, duration: number);
|
|
18
|
+
setTimelines(timelines: Array<Timeline>): void;
|
|
19
|
+
hasTimeline(ids: string[]): boolean;
|
|
20
|
+
/** Applies all the animation's timelines to the specified skeleton.
|
|
21
|
+
*
|
|
22
|
+
* See Timeline {@link Timeline#apply(Skeleton, float, float, Array, float, MixBlend, MixDirection)}.
|
|
23
|
+
* @param loop If true, the animation repeats after {@link #getDuration()}.
|
|
24
|
+
* @param events May be null to ignore fired events. */
|
|
25
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, loop: boolean, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
26
|
+
}
|
|
27
|
+
/** The interface for all timelines.
|
|
28
|
+
* @public
|
|
29
|
+
* */
|
|
30
|
+
export declare abstract class Timeline implements ITimeline {
|
|
31
|
+
propertyIds: string[];
|
|
32
|
+
frames: NumberArrayLike;
|
|
33
|
+
constructor(frameCount: number, propertyIds: string[]);
|
|
34
|
+
getPropertyIds(): string[];
|
|
35
|
+
getFrameEntries(): number;
|
|
36
|
+
getFrameCount(): number;
|
|
37
|
+
getDuration(): number;
|
|
38
|
+
abstract apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
39
|
+
static search1(frames: NumberArrayLike, time: number): number;
|
|
40
|
+
static search(frames: NumberArrayLike, time: number, step: number): number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export interface BoneTimeline {
|
|
46
|
+
/** The index of the bone in {@link Skeleton#bones} that will be changed. */
|
|
47
|
+
boneIndex: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export interface SlotTimeline {
|
|
53
|
+
/** The index of the slot in {@link Skeleton#slots} that will be changed. */
|
|
54
|
+
slotIndex: number;
|
|
55
|
+
}
|
|
56
|
+
/** The base class for timelines that use interpolation between key frame values.
|
|
57
|
+
* @public
|
|
58
|
+
* */
|
|
59
|
+
export declare abstract class CurveTimeline extends Timeline {
|
|
60
|
+
protected curves: NumberArrayLike;
|
|
61
|
+
constructor(frameCount: number, bezierCount: number, propertyIds: string[]);
|
|
62
|
+
/** Sets the specified key frame to linear interpolation. */
|
|
63
|
+
setLinear(frame: number): void;
|
|
64
|
+
/** Sets the specified key frame to stepped interpolation. */
|
|
65
|
+
setStepped(frame: number): void;
|
|
66
|
+
/** Shrinks the storage for Bezier curves, for use when <code>bezierCount</code> (specified in the constructor) was larger
|
|
67
|
+
* than the actual number of Bezier curves. */
|
|
68
|
+
shrink(bezierCount: number): void;
|
|
69
|
+
/** Stores the segments for the specified Bezier curve. For timelines that modify multiple values, there may be more than
|
|
70
|
+
* one curve per frame.
|
|
71
|
+
* @param bezier The ordinal of this Bezier curve for this timeline, between 0 and <code>bezierCount - 1</code> (specified
|
|
72
|
+
* in the constructor), inclusive.
|
|
73
|
+
* @param frame Between 0 and <code>frameCount - 1</code>, inclusive.
|
|
74
|
+
* @param value The index of the value for this frame that this curve is used for.
|
|
75
|
+
* @param time1 The time for the first key.
|
|
76
|
+
* @param value1 The value for the first key.
|
|
77
|
+
* @param cx1 The time for the first Bezier handle.
|
|
78
|
+
* @param cy1 The value for the first Bezier handle.
|
|
79
|
+
* @param cx2 The time of the second Bezier handle.
|
|
80
|
+
* @param cy2 The value for the second Bezier handle.
|
|
81
|
+
* @param time2 The time for the second key.
|
|
82
|
+
* @param value2 The value for the second key. */
|
|
83
|
+
setBezier(bezier: number, frame: number, value: number, time1: number, value1: number, cx1: number, cy1: number, cx2: number, cy2: number, time2: number, value2: number): void;
|
|
84
|
+
/** Returns the Bezier interpolated value for the specified time.
|
|
85
|
+
* @param frameIndex The index into {@link #getFrames()} for the values of the frame before <code>time</code>.
|
|
86
|
+
* @param valueOffset The offset from <code>frameIndex</code> to the value this curve is used for.
|
|
87
|
+
* @param i The index of the Bezier segments. See {@link #getCurveType(int)}. */
|
|
88
|
+
getBezierValue(time: number, frameIndex: number, valueOffset: number, i: number): number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare abstract class CurveTimeline1 extends CurveTimeline {
|
|
94
|
+
constructor(frameCount: number, bezierCount: number, propertyId: string);
|
|
95
|
+
getFrameEntries(): number;
|
|
96
|
+
/** Sets the time and value for the specified frame.
|
|
97
|
+
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
98
|
+
* @param time The frame time in seconds. */
|
|
99
|
+
setFrame(frame: number, time: number, value: number): void;
|
|
100
|
+
/** Returns the interpolated value for the specified time. */
|
|
101
|
+
getCurveValue(time: number): number;
|
|
102
|
+
}
|
|
103
|
+
/** The base class for a {@link CurveTimeline} which sets two properties.
|
|
104
|
+
* @public
|
|
105
|
+
* */
|
|
106
|
+
export declare abstract class CurveTimeline2 extends CurveTimeline {
|
|
107
|
+
/** @param bezierCount The maximum number of Bezier curves. See {@link #shrink(int)}.
|
|
108
|
+
* @param propertyIds Unique identifiers for the properties the timeline modifies. */
|
|
109
|
+
constructor(frameCount: number, bezierCount: number, propertyId1: string, propertyId2: string);
|
|
110
|
+
getFrameEntries(): number;
|
|
111
|
+
/** Sets the time and values for the specified frame.
|
|
112
|
+
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
113
|
+
* @param time The frame time in seconds. */
|
|
114
|
+
setFrame(frame: number, time: number, value1: number, value2: number): void;
|
|
115
|
+
}
|
|
116
|
+
/** Changes a bone's local {@link Bone#rotation}.
|
|
117
|
+
* @public
|
|
118
|
+
* */
|
|
119
|
+
export declare class RotateTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
120
|
+
boneIndex: number;
|
|
121
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
122
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
123
|
+
}
|
|
124
|
+
/** Changes a bone's local {@link Bone#x} and {@link Bone#y}.
|
|
125
|
+
* @public
|
|
126
|
+
* */
|
|
127
|
+
export declare class TranslateTimeline extends CurveTimeline2 implements BoneTimeline {
|
|
128
|
+
boneIndex: number;
|
|
129
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
130
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
131
|
+
}
|
|
132
|
+
/** Changes a bone's local {@link Bone#x}.
|
|
133
|
+
* @public
|
|
134
|
+
* */
|
|
135
|
+
export declare class TranslateXTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
136
|
+
boneIndex: number;
|
|
137
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
138
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
139
|
+
}
|
|
140
|
+
/** Changes a bone's local {@link Bone#x}.
|
|
141
|
+
* @public
|
|
142
|
+
* */
|
|
143
|
+
export declare class TranslateYTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
144
|
+
boneIndex: number;
|
|
145
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
146
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
147
|
+
}
|
|
148
|
+
/** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}.
|
|
149
|
+
* @public
|
|
150
|
+
* */
|
|
151
|
+
export declare class ScaleTimeline extends CurveTimeline2 implements BoneTimeline {
|
|
152
|
+
boneIndex: number;
|
|
153
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
154
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
155
|
+
}
|
|
156
|
+
/** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}.
|
|
157
|
+
* @public
|
|
158
|
+
* */
|
|
159
|
+
export declare class ScaleXTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
160
|
+
boneIndex: number;
|
|
161
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
162
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
163
|
+
}
|
|
164
|
+
/** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}.
|
|
165
|
+
* @public
|
|
166
|
+
* */
|
|
167
|
+
export declare class ScaleYTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
168
|
+
boneIndex: number;
|
|
169
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
170
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
171
|
+
}
|
|
172
|
+
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
|
|
173
|
+
* @public
|
|
174
|
+
* */
|
|
175
|
+
export declare class ShearTimeline extends CurveTimeline2 implements BoneTimeline {
|
|
176
|
+
boneIndex: number;
|
|
177
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
178
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
179
|
+
}
|
|
180
|
+
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
|
|
181
|
+
* @public
|
|
182
|
+
* */
|
|
183
|
+
export declare class ShearXTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
184
|
+
boneIndex: number;
|
|
185
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
186
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
187
|
+
}
|
|
188
|
+
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
|
|
189
|
+
* @public
|
|
190
|
+
* */
|
|
191
|
+
export declare class ShearYTimeline extends CurveTimeline1 implements BoneTimeline {
|
|
192
|
+
boneIndex: number;
|
|
193
|
+
constructor(frameCount: number, bezierCount: number, boneIndex: number);
|
|
194
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
195
|
+
}
|
|
196
|
+
/** Changes a slot's {@link Slot#color}.
|
|
197
|
+
* @public
|
|
198
|
+
* */
|
|
199
|
+
export declare class RGBATimeline extends CurveTimeline implements SlotTimeline {
|
|
200
|
+
slotIndex: number;
|
|
201
|
+
constructor(frameCount: number, bezierCount: number, slotIndex: number);
|
|
202
|
+
getFrameEntries(): number;
|
|
203
|
+
/** Sets the time in seconds, red, green, blue, and alpha for the specified key frame. */
|
|
204
|
+
setFrame(frame: number, time: number, r: number, g: number, b: number, a: number): void;
|
|
205
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
206
|
+
}
|
|
207
|
+
/** Changes a slot's {@link Slot#color}.
|
|
208
|
+
* @public
|
|
209
|
+
* */
|
|
210
|
+
export declare class RGBTimeline extends CurveTimeline implements SlotTimeline {
|
|
211
|
+
slotIndex: number;
|
|
212
|
+
constructor(frameCount: number, bezierCount: number, slotIndex: number);
|
|
213
|
+
getFrameEntries(): number;
|
|
214
|
+
/** Sets the time in seconds, red, green, blue, and alpha for the specified key frame. */
|
|
215
|
+
setFrame(frame: number, time: number, r: number, g: number, b: number): void;
|
|
216
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
217
|
+
}
|
|
218
|
+
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
|
|
219
|
+
* @public
|
|
220
|
+
* */
|
|
221
|
+
export declare class AlphaTimeline extends CurveTimeline1 implements SlotTimeline {
|
|
222
|
+
slotIndex: number;
|
|
223
|
+
constructor(frameCount: number, bezierCount: number, slotIndex: number);
|
|
224
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
225
|
+
}
|
|
226
|
+
/** Changes a slot's {@link Slot#color} and {@link Slot#darkColor} for two color tinting.
|
|
227
|
+
* @public
|
|
228
|
+
* */
|
|
229
|
+
export declare class RGBA2Timeline extends CurveTimeline implements SlotTimeline {
|
|
230
|
+
slotIndex: number;
|
|
231
|
+
constructor(frameCount: number, bezierCount: number, slotIndex: number);
|
|
232
|
+
getFrameEntries(): number;
|
|
233
|
+
/** Sets the time in seconds, light, and dark colors for the specified key frame. */
|
|
234
|
+
setFrame(frame: number, time: number, r: number, g: number, b: number, a: number, r2: number, g2: number, b2: number): void;
|
|
235
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
236
|
+
}
|
|
237
|
+
/** Changes a slot's {@link Slot#color} and {@link Slot#darkColor} for two color tinting.
|
|
238
|
+
* @public
|
|
239
|
+
* */
|
|
240
|
+
export declare class RGB2Timeline extends CurveTimeline implements SlotTimeline {
|
|
241
|
+
slotIndex: number;
|
|
242
|
+
constructor(frameCount: number, bezierCount: number, slotIndex: number);
|
|
243
|
+
getFrameEntries(): number;
|
|
244
|
+
/** Sets the time in seconds, light, and dark colors for the specified key frame. */
|
|
245
|
+
setFrame(frame: number, time: number, r: number, g: number, b: number, r2: number, g2: number, b2: number): void;
|
|
246
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
247
|
+
}
|
|
248
|
+
/** Changes a slot's {@link Slot#attachment}.
|
|
249
|
+
* @public
|
|
250
|
+
* */
|
|
251
|
+
export declare class AttachmentTimeline extends Timeline implements SlotTimeline {
|
|
252
|
+
slotIndex: number;
|
|
253
|
+
/** The attachment name for each key frame. May contain null values to clear the attachment. */
|
|
254
|
+
attachmentNames: Array<string>;
|
|
255
|
+
constructor(frameCount: number, slotIndex: number);
|
|
256
|
+
getFrameCount(): number;
|
|
257
|
+
/** Sets the time in seconds and the attachment name for the specified key frame. */
|
|
258
|
+
setFrame(frame: number, time: number, attachmentName: string): void;
|
|
259
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
260
|
+
setAttachment(skeleton: Skeleton, slot: Slot, attachmentName: string): void;
|
|
261
|
+
}
|
|
262
|
+
/** Changes a slot's {@link Slot#deform} to deform a {@link VertexAttachment}.
|
|
263
|
+
* @public
|
|
264
|
+
* */
|
|
265
|
+
export declare class DeformTimeline extends CurveTimeline implements SlotTimeline {
|
|
266
|
+
slotIndex: number;
|
|
267
|
+
/** The attachment that will be deformed. */
|
|
268
|
+
attachment: VertexAttachment;
|
|
269
|
+
/** The vertices for each key frame. */
|
|
270
|
+
vertices: Array<NumberArrayLike>;
|
|
271
|
+
constructor(frameCount: number, bezierCount: number, slotIndex: number, attachment: VertexAttachment);
|
|
272
|
+
getFrameCount(): number;
|
|
273
|
+
/** Sets the time in seconds and the vertices for the specified key frame.
|
|
274
|
+
* @param vertices Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights. */
|
|
275
|
+
setFrame(frame: number, time: number, vertices: NumberArrayLike): void;
|
|
276
|
+
/** @param value1 Ignored (0 is used for a deform timeline).
|
|
277
|
+
* @param value2 Ignored (1 is used for a deform timeline). */
|
|
278
|
+
setBezier(bezier: number, frame: number, value: number, time1: number, value1: number, cx1: number, cy1: number, cx2: number, cy2: number, time2: number, value2: number): void;
|
|
279
|
+
getCurvePercent(time: number, frame: number): number;
|
|
280
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
281
|
+
}
|
|
282
|
+
/** Fires an {@link Event} when specific animation times are reached.
|
|
283
|
+
* @public
|
|
284
|
+
* */
|
|
285
|
+
export declare class EventTimeline extends Timeline {
|
|
286
|
+
static propertyIds: string[];
|
|
287
|
+
/** The event for each key frame. */
|
|
288
|
+
events: Array<Event>;
|
|
289
|
+
constructor(frameCount: number);
|
|
290
|
+
getFrameCount(): number;
|
|
291
|
+
/** Sets the time in seconds and the event for the specified key frame. */
|
|
292
|
+
setFrame(frame: number, event: Event): void;
|
|
293
|
+
/** Fires events for frames > `lastTime` and <= `time`. */
|
|
294
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
295
|
+
}
|
|
296
|
+
/** Changes a skeleton's {@link Skeleton#drawOrder}.
|
|
297
|
+
* @public
|
|
298
|
+
* */
|
|
299
|
+
export declare class DrawOrderTimeline extends Timeline {
|
|
300
|
+
static propertyIds: string[];
|
|
301
|
+
/** The draw order for each key frame. See {@link #setFrame(int, float, int[])}. */
|
|
302
|
+
drawOrders: Array<Array<number>>;
|
|
303
|
+
constructor(frameCount: number);
|
|
304
|
+
getFrameCount(): number;
|
|
305
|
+
/** Sets the time in seconds and the draw order for the specified key frame.
|
|
306
|
+
* @param drawOrder For each slot in {@link Skeleton#slots}, the index of the new draw order. May be null to use setup pose
|
|
307
|
+
* draw order. */
|
|
308
|
+
setFrame(frame: number, time: number, drawOrder: Array<number>): void;
|
|
309
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
310
|
+
}
|
|
311
|
+
/** Changes an IK constraint's {@link IkConstraint#mix}, {@link IkConstraint#softness},
|
|
312
|
+
* {@link IkConstraint#bendDirection}, {@link IkConstraint#stretch}, and {@link IkConstraint#compress}.
|
|
313
|
+
* @public
|
|
314
|
+
* */
|
|
315
|
+
export declare class IkConstraintTimeline extends CurveTimeline {
|
|
316
|
+
/** The index of the IK constraint slot in {@link Skeleton#ikConstraints} that will be changed. */
|
|
317
|
+
ikConstraintIndex: number;
|
|
318
|
+
constructor(frameCount: number, bezierCount: number, ikConstraintIndex: number);
|
|
319
|
+
getFrameEntries(): number;
|
|
320
|
+
/** Sets the time in seconds, mix, softness, bend direction, compress, and stretch for the specified key frame. */
|
|
321
|
+
setFrame(frame: number, time: number, mix: number, softness: number, bendDirection: number, compress: boolean, stretch: boolean): void;
|
|
322
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
323
|
+
}
|
|
324
|
+
/** Changes a transform constraint's {@link TransformConstraint#rotateMix}, {@link TransformConstraint#translateMix},
|
|
325
|
+
* {@link TransformConstraint#scaleMix}, and {@link TransformConstraint#shearMix}.
|
|
326
|
+
* @public
|
|
327
|
+
* */
|
|
328
|
+
export declare class TransformConstraintTimeline extends CurveTimeline {
|
|
329
|
+
/** The index of the transform constraint slot in {@link Skeleton#transformConstraints} that will be changed. */
|
|
330
|
+
transformConstraintIndex: number;
|
|
331
|
+
constructor(frameCount: number, bezierCount: number, transformConstraintIndex: number);
|
|
332
|
+
getFrameEntries(): number;
|
|
333
|
+
/** The time in seconds, rotate mix, translate mix, scale mix, and shear mix for the specified key frame. */
|
|
334
|
+
setFrame(frame: number, time: number, mixRotate: number, mixX: number, mixY: number, mixScaleX: number, mixScaleY: number, mixShearY: number): void;
|
|
335
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
336
|
+
}
|
|
337
|
+
/** Changes a path constraint's {@link PathConstraint#position}.
|
|
338
|
+
* @public
|
|
339
|
+
* */
|
|
340
|
+
export declare class PathConstraintPositionTimeline extends CurveTimeline1 {
|
|
341
|
+
/** The index of the path constraint slot in {@link Skeleton#pathConstraints} that will be changed. */
|
|
342
|
+
pathConstraintIndex: number;
|
|
343
|
+
constructor(frameCount: number, bezierCount: number, pathConstraintIndex: number);
|
|
344
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
345
|
+
}
|
|
346
|
+
/** Changes a path constraint's {@link PathConstraint#spacing}.
|
|
347
|
+
* @public
|
|
348
|
+
* */
|
|
349
|
+
export declare class PathConstraintSpacingTimeline extends CurveTimeline1 {
|
|
350
|
+
/** The index of the path constraint slot in {@link Skeleton#getPathConstraints()} that will be changed. */
|
|
351
|
+
pathConstraintIndex: number;
|
|
352
|
+
constructor(frameCount: number, bezierCount: number, pathConstraintIndex: number);
|
|
353
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
354
|
+
}
|
|
355
|
+
/** Changes a transform constraint's {@link PathConstraint#getMixRotate()}, {@link PathConstraint#getMixX()}, and
|
|
356
|
+
* {@link PathConstraint#getMixY()}.
|
|
357
|
+
* @public
|
|
358
|
+
* */
|
|
359
|
+
export declare class PathConstraintMixTimeline extends CurveTimeline {
|
|
360
|
+
/** The index of the path constraint slot in {@link Skeleton#getPathConstraints()} that will be changed. */
|
|
361
|
+
pathConstraintIndex: number;
|
|
362
|
+
constructor(frameCount: number, bezierCount: number, pathConstraintIndex: number);
|
|
363
|
+
getFrameEntries(): number;
|
|
364
|
+
setFrame(frame: number, time: number, mixRotate: number, mixX: number, mixY: number): void;
|
|
365
|
+
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
|
|
366
|
+
}
|