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,28 @@
|
|
|
1
|
+
import { ConstraintData } from './Constraint';
|
|
2
|
+
import type { SlotData } from './SlotData';
|
|
3
|
+
import type { BoneData } from './BoneData';
|
|
4
|
+
import type { RotateMode, PositionMode } from '@pixi-spine/base';
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class PathConstraintData extends ConstraintData {
|
|
9
|
+
bones: BoneData[];
|
|
10
|
+
target: SlotData;
|
|
11
|
+
positionMode: PositionMode;
|
|
12
|
+
spacingMode: SpacingMode;
|
|
13
|
+
rotateMode: RotateMode;
|
|
14
|
+
offsetRotation: number;
|
|
15
|
+
position: number;
|
|
16
|
+
spacing: number;
|
|
17
|
+
rotateMix: number;
|
|
18
|
+
translateMix: number;
|
|
19
|
+
constructor(name: string);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare enum SpacingMode {
|
|
25
|
+
Length = 0,
|
|
26
|
+
Fixed = 1,
|
|
27
|
+
Percent = 2
|
|
28
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Attachment } from './attachments';
|
|
2
|
+
import { Bone } from './Bone';
|
|
3
|
+
import { Slot } from './Slot';
|
|
4
|
+
import type { Updatable } from './Updatable';
|
|
5
|
+
import type { SkeletonData } from './SkeletonData';
|
|
6
|
+
import { IkConstraint } from './IkConstraint';
|
|
7
|
+
import { TransformConstraint } from './TransformConstraint';
|
|
8
|
+
import { PathConstraint } from './PathConstraint';
|
|
9
|
+
import type { Skin } from './Skin';
|
|
10
|
+
import { Color, Vector2, ISkeleton } from '@pixi-spine/base';
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare class Skeleton implements ISkeleton<SkeletonData, Bone, Slot, Skin> {
|
|
15
|
+
data: SkeletonData;
|
|
16
|
+
bones: Array<Bone>;
|
|
17
|
+
slots: Array<Slot>;
|
|
18
|
+
drawOrder: Array<Slot>;
|
|
19
|
+
ikConstraints: Array<IkConstraint>;
|
|
20
|
+
transformConstraints: Array<TransformConstraint>;
|
|
21
|
+
pathConstraints: Array<PathConstraint>;
|
|
22
|
+
_updateCache: Updatable[];
|
|
23
|
+
updateCacheReset: Updatable[];
|
|
24
|
+
skin: Skin;
|
|
25
|
+
color: Color;
|
|
26
|
+
time: number;
|
|
27
|
+
scaleX: number;
|
|
28
|
+
scaleY: number;
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
constructor(data: SkeletonData);
|
|
32
|
+
updateCache(): void;
|
|
33
|
+
sortIkConstraint(constraint: IkConstraint): void;
|
|
34
|
+
sortPathConstraint(constraint: PathConstraint): void;
|
|
35
|
+
sortTransformConstraint(constraint: TransformConstraint): void;
|
|
36
|
+
sortPathConstraintAttachment(skin: Skin, slotIndex: number, slotBone: Bone): void;
|
|
37
|
+
sortPathConstraintAttachmentWith(attachment: Attachment, slotBone: Bone): void;
|
|
38
|
+
sortBone(bone: Bone): void;
|
|
39
|
+
sortReset(bones: Array<Bone>): void;
|
|
40
|
+
/** Updates the world transform for each bone and applies constraints. */
|
|
41
|
+
updateWorldTransform(): void;
|
|
42
|
+
/** Sets the bones, constraints, and slots to their setup pose values. */
|
|
43
|
+
setToSetupPose(): void;
|
|
44
|
+
/** Sets the bones and constraints to their setup pose values. */
|
|
45
|
+
setBonesToSetupPose(): void;
|
|
46
|
+
setSlotsToSetupPose(): void;
|
|
47
|
+
/** @return May return null. */
|
|
48
|
+
getRootBone(): Bone;
|
|
49
|
+
/** @return May be null. */
|
|
50
|
+
findBone(boneName: string): Bone;
|
|
51
|
+
/** @return -1 if the bone was not found. */
|
|
52
|
+
findBoneIndex(boneName: string): number;
|
|
53
|
+
/** @return May be null. */
|
|
54
|
+
findSlot(slotName: string): Slot;
|
|
55
|
+
/** @return -1 if the bone was not found. */
|
|
56
|
+
findSlotIndex(slotName: string): number;
|
|
57
|
+
/** Sets a skin by name.
|
|
58
|
+
* @see #setSkin(Skin) */
|
|
59
|
+
setSkinByName(skinName: string): void;
|
|
60
|
+
/** Sets the skin used to look up attachments before looking in the {@link SkeletonData#getDefaultSkin() default skin}.
|
|
61
|
+
* Attachments from the new skin are attached if the corresponding attachment from the old skin was attached. If there was no
|
|
62
|
+
* old skin, each slot's setup mode attachment is attached from the new skin.
|
|
63
|
+
* @param newSkin May be null. */
|
|
64
|
+
setSkin(newSkin: Skin): void;
|
|
65
|
+
/** @return May be null. */
|
|
66
|
+
getAttachmentByName(slotName: string, attachmentName: string): Attachment;
|
|
67
|
+
/** @return May be null. */
|
|
68
|
+
getAttachment(slotIndex: number, attachmentName: string): Attachment;
|
|
69
|
+
/** @param attachmentName May be null. */
|
|
70
|
+
setAttachment(slotName: string, attachmentName?: string): void;
|
|
71
|
+
/** @return May be null. */
|
|
72
|
+
findIkConstraint(constraintName: string): IkConstraint;
|
|
73
|
+
/** @return May be null. */
|
|
74
|
+
findTransformConstraint(constraintName: string): TransformConstraint;
|
|
75
|
+
/** @return May be null. */
|
|
76
|
+
findPathConstraint(constraintName: string): PathConstraint;
|
|
77
|
+
/** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose.
|
|
78
|
+
* @param offset The distance from the skeleton origin to the bottom left corner of the AABB.
|
|
79
|
+
* @param size The width and height of the AABB.
|
|
80
|
+
* @param temp Working memory */
|
|
81
|
+
getBounds(offset: Vector2, size: Vector2, temp?: Array<number>): void;
|
|
82
|
+
update(delta: number): void;
|
|
83
|
+
get flipX(): boolean;
|
|
84
|
+
set flipX(value: boolean);
|
|
85
|
+
get flipY(): boolean;
|
|
86
|
+
set flipY(value: boolean);
|
|
87
|
+
private static deprecatedWarning1;
|
|
88
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { AttachmentLoader } from './attachments';
|
|
2
|
+
import { SkeletonData } from './SkeletonData';
|
|
3
|
+
import { SpacingMode } from './PathConstraintData';
|
|
4
|
+
import { CurveTimeline } from './Animation';
|
|
5
|
+
import { PositionMode, RotateMode, TransformMode } from '@pixi-spine/base';
|
|
6
|
+
import { BLEND_MODES } from '@pixi-spine/base';
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare class SkeletonBinary {
|
|
11
|
+
static AttachmentTypeValues: number[];
|
|
12
|
+
static TransformModeValues: TransformMode[];
|
|
13
|
+
static PositionModeValues: PositionMode[];
|
|
14
|
+
static SpacingModeValues: SpacingMode[];
|
|
15
|
+
static RotateModeValues: RotateMode[];
|
|
16
|
+
static BlendModeValues: BLEND_MODES[];
|
|
17
|
+
static BONE_ROTATE: number;
|
|
18
|
+
static BONE_TRANSLATE: number;
|
|
19
|
+
static BONE_SCALE: number;
|
|
20
|
+
static BONE_SHEAR: number;
|
|
21
|
+
static SLOT_ATTACHMENT: number;
|
|
22
|
+
static SLOT_COLOR: number;
|
|
23
|
+
static SLOT_TWO_COLOR: number;
|
|
24
|
+
static PATH_POSITION: number;
|
|
25
|
+
static PATH_SPACING: number;
|
|
26
|
+
static PATH_MIX: number;
|
|
27
|
+
static CURVE_LINEAR: number;
|
|
28
|
+
static CURVE_STEPPED: number;
|
|
29
|
+
static CURVE_BEZIER: number;
|
|
30
|
+
attachmentLoader: AttachmentLoader;
|
|
31
|
+
scale: number;
|
|
32
|
+
private linkedMeshes;
|
|
33
|
+
constructor(attachmentLoader: AttachmentLoader);
|
|
34
|
+
readSkeletonData(binary: Uint8Array): SkeletonData;
|
|
35
|
+
private readSkin;
|
|
36
|
+
private readAttachment;
|
|
37
|
+
private readVertices;
|
|
38
|
+
private readFloatArray;
|
|
39
|
+
private readShortArray;
|
|
40
|
+
private readAnimation;
|
|
41
|
+
private readCurve;
|
|
42
|
+
setCurve(timeline: CurveTimeline, frameIndex: number, cx1: number, cy1: number, cx2: number, cy2: number): void;
|
|
43
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BoundingBoxAttachment } from './attachments';
|
|
2
|
+
import { SkeletonBoundsBase } from '@pixi-spine/base';
|
|
3
|
+
/** Collects each visible {@link BoundingBoxAttachment} and computes the world vertices for its polygon. The polygon vertices are
|
|
4
|
+
* provided along with convenience methods for doing hit detection.
|
|
5
|
+
* @public
|
|
6
|
+
* */
|
|
7
|
+
export declare class SkeletonBounds extends SkeletonBoundsBase<BoundingBoxAttachment> {
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ISkeletonData } from '@pixi-spine/base';
|
|
2
|
+
import type { Animation } from './Animation';
|
|
3
|
+
import type { BoneData } from './BoneData';
|
|
4
|
+
import type { SlotData } from './SlotData';
|
|
5
|
+
import type { Skin } from './Skin';
|
|
6
|
+
import type { EventData } from './EventData';
|
|
7
|
+
import type { IkConstraintData } from './IkConstraintData';
|
|
8
|
+
import type { TransformConstraintData } from './TransformConstraintData';
|
|
9
|
+
import type { PathConstraintData } from './PathConstraintData';
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare class SkeletonData implements ISkeletonData<BoneData, SlotData, Skin, Animation, EventData, IkConstraintData, TransformConstraintData, PathConstraintData> {
|
|
14
|
+
name: string;
|
|
15
|
+
bones: BoneData[];
|
|
16
|
+
slots: SlotData[];
|
|
17
|
+
skins: Skin[];
|
|
18
|
+
defaultSkin: Skin;
|
|
19
|
+
events: EventData[];
|
|
20
|
+
animations: Animation[];
|
|
21
|
+
ikConstraints: IkConstraintData[];
|
|
22
|
+
transformConstraints: TransformConstraintData[];
|
|
23
|
+
pathConstraints: PathConstraintData[];
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
version: string;
|
|
29
|
+
hash: string;
|
|
30
|
+
fps: number;
|
|
31
|
+
imagesPath: string;
|
|
32
|
+
audioPath: string;
|
|
33
|
+
findBone(boneName: string): BoneData;
|
|
34
|
+
findBoneIndex(boneName: string): number;
|
|
35
|
+
findSlot(slotName: string): SlotData;
|
|
36
|
+
findSlotIndex(slotName: string): number;
|
|
37
|
+
findSkin(skinName: string): Skin;
|
|
38
|
+
findEvent(eventDataName: string): EventData;
|
|
39
|
+
findAnimation(animationName: string): Animation;
|
|
40
|
+
findIkConstraint(constraintName: string): IkConstraintData;
|
|
41
|
+
findTransformConstraint(constraintName: string): TransformConstraintData;
|
|
42
|
+
findPathConstraint(constraintName: string): PathConstraintData;
|
|
43
|
+
findPathConstraintIndex(pathConstraintName: string): number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Attachment, AttachmentLoader, VertexAttachment } from './attachments';
|
|
2
|
+
import { SkeletonData } from './SkeletonData';
|
|
3
|
+
import { SpacingMode } from './PathConstraintData';
|
|
4
|
+
import { Skin } from './Skin';
|
|
5
|
+
import { CurveTimeline } from './Animation';
|
|
6
|
+
import { PositionMode, RotateMode, TransformMode } from '@pixi-spine/base';
|
|
7
|
+
import { BLEND_MODES } from '@pixi-spine/base';
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare class SkeletonJson {
|
|
12
|
+
attachmentLoader: AttachmentLoader;
|
|
13
|
+
scale: number;
|
|
14
|
+
private linkedMeshes;
|
|
15
|
+
constructor(attachmentLoader: AttachmentLoader);
|
|
16
|
+
readSkeletonData(json: string | any): SkeletonData;
|
|
17
|
+
readAttachment(map: any, skin: Skin, slotIndex: number, name: string, skeletonData: SkeletonData): Attachment;
|
|
18
|
+
readVertices(map: any, attachment: VertexAttachment, verticesLength: number): void;
|
|
19
|
+
readAnimation(map: any, name: string, skeletonData: SkeletonData): void;
|
|
20
|
+
readCurve(map: any, timeline: CurveTimeline, frameIndex: number): void;
|
|
21
|
+
getValue(map: any, prop: string, defaultValue: any): any;
|
|
22
|
+
static blendModeFromString(str: string): BLEND_MODES;
|
|
23
|
+
static positionModeFromString(str: string): PositionMode;
|
|
24
|
+
static spacingModeFromString(str: string): SpacingMode;
|
|
25
|
+
static rotateModeFromString(str: string): RotateMode;
|
|
26
|
+
static transformModeFromString(str: string): TransformMode;
|
|
27
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Attachment } from './attachments';
|
|
2
|
+
import type { BoneData } from './BoneData';
|
|
3
|
+
import type { ConstraintData } from './Constraint';
|
|
4
|
+
import type { Skeleton } from './Skeleton';
|
|
5
|
+
import type { StringMap, ISkin } from '@pixi-spine/base';
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class SkinEntry {
|
|
10
|
+
slotIndex: number;
|
|
11
|
+
name: string;
|
|
12
|
+
attachment: Attachment;
|
|
13
|
+
constructor(slotIndex: number, name: string, attachment: Attachment);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare class Skin implements ISkin {
|
|
19
|
+
name: string;
|
|
20
|
+
attachments: StringMap<Attachment>[];
|
|
21
|
+
bones: BoneData[];
|
|
22
|
+
constraints: ConstraintData[];
|
|
23
|
+
constructor(name: string);
|
|
24
|
+
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
|
|
25
|
+
addSkin(skin: Skin): void;
|
|
26
|
+
copySkin(skin: Skin): void;
|
|
27
|
+
/** @return May be null. */
|
|
28
|
+
getAttachment(slotIndex: number, name: string): Attachment;
|
|
29
|
+
removeAttachment(slotIndex: number, name: string): void;
|
|
30
|
+
getAttachments(): Array<SkinEntry>;
|
|
31
|
+
getAttachmentsForSlot(slotIndex: number, attachments: Array<SkinEntry>): void;
|
|
32
|
+
clear(): void;
|
|
33
|
+
/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
|
|
34
|
+
attachAll(skeleton: Skeleton, oldSkin: Skin): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Color, ISlot } from '@pixi-spine/base';
|
|
2
|
+
import type { Attachment } from './attachments/Attachment';
|
|
3
|
+
import type { Bone } from './Bone';
|
|
4
|
+
import type { SlotData } from './SlotData';
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class Slot implements ISlot {
|
|
9
|
+
blendMode: number;
|
|
10
|
+
data: SlotData;
|
|
11
|
+
bone: Bone;
|
|
12
|
+
color: Color;
|
|
13
|
+
darkColor: Color;
|
|
14
|
+
attachment: Attachment;
|
|
15
|
+
private attachmentTime;
|
|
16
|
+
attachmentState: number;
|
|
17
|
+
deform: number[];
|
|
18
|
+
constructor(data: SlotData, bone: Bone);
|
|
19
|
+
/** @return May be null. */
|
|
20
|
+
getAttachment(): Attachment;
|
|
21
|
+
/** Sets the attachment and if it changed, resets {@link #getAttachmentTime()} and clears {@link #getAttachmentVertices()}.
|
|
22
|
+
* @param attachment May be null. */
|
|
23
|
+
setAttachment(attachment: Attachment): void;
|
|
24
|
+
setAttachmentTime(time: number): void;
|
|
25
|
+
/** Returns the time since the attachment was set. */
|
|
26
|
+
getAttachmentTime(): number;
|
|
27
|
+
setToSetupPose(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Color } from '@pixi-spine/base';
|
|
2
|
+
import type { ISlotData } from '@pixi-spine/base';
|
|
3
|
+
import { BLEND_MODES } from '@pixi-spine/base';
|
|
4
|
+
import type { BoneData } from './BoneData';
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class SlotData implements ISlotData {
|
|
9
|
+
index: number;
|
|
10
|
+
name: string;
|
|
11
|
+
boneData: BoneData;
|
|
12
|
+
color: Color;
|
|
13
|
+
darkColor: Color;
|
|
14
|
+
attachmentName: string;
|
|
15
|
+
blendMode: BLEND_MODES;
|
|
16
|
+
constructor(index: number, name: string, boneData: BoneData);
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Updatable } from './Updatable';
|
|
2
|
+
import type { TransformConstraintData } from './TransformConstraintData';
|
|
3
|
+
import type { Bone } from './Bone';
|
|
4
|
+
import { Vector2 } from '@pixi-spine/base';
|
|
5
|
+
import type { Skeleton } from './Skeleton';
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class TransformConstraint implements Updatable {
|
|
10
|
+
data: TransformConstraintData;
|
|
11
|
+
bones: Array<Bone>;
|
|
12
|
+
target: Bone;
|
|
13
|
+
rotateMix: number;
|
|
14
|
+
translateMix: number;
|
|
15
|
+
scaleMix: number;
|
|
16
|
+
shearMix: number;
|
|
17
|
+
temp: Vector2;
|
|
18
|
+
active: boolean;
|
|
19
|
+
constructor(data: TransformConstraintData, skeleton: Skeleton);
|
|
20
|
+
isActive(): boolean;
|
|
21
|
+
apply(): void;
|
|
22
|
+
update(): void;
|
|
23
|
+
applyAbsoluteWorld(): void;
|
|
24
|
+
applyRelativeWorld(): void;
|
|
25
|
+
applyAbsoluteLocal(): void;
|
|
26
|
+
applyRelativeLocal(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BoneData } from './BoneData';
|
|
2
|
+
import { ConstraintData } from './Constraint';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class TransformConstraintData extends ConstraintData {
|
|
7
|
+
bones: BoneData[];
|
|
8
|
+
target: BoneData;
|
|
9
|
+
rotateMix: number;
|
|
10
|
+
translateMix: number;
|
|
11
|
+
scaleMix: number;
|
|
12
|
+
shearMix: number;
|
|
13
|
+
offsetRotation: number;
|
|
14
|
+
offsetX: number;
|
|
15
|
+
offsetY: number;
|
|
16
|
+
offsetScaleX: number;
|
|
17
|
+
offsetScaleY: number;
|
|
18
|
+
offsetShearY: number;
|
|
19
|
+
relative: boolean;
|
|
20
|
+
local: boolean;
|
|
21
|
+
constructor(name: string);
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Skeleton } from './Skeleton';
|
|
2
|
+
import type { Color, Vector2 } from '@pixi-spine/base';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface VertexEffect {
|
|
7
|
+
begin(skeleton: Skeleton): void;
|
|
8
|
+
transform(position: Vector2, uv: Vector2, light: Color, dark: Color): void;
|
|
9
|
+
end(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AttachmentType } from '@pixi-spine/base';
|
|
2
|
+
import type { IAttachment, ArrayLike } from '@pixi-spine/base';
|
|
3
|
+
import type { Slot } from '../Slot';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class Attachment implements IAttachment {
|
|
8
|
+
name: string;
|
|
9
|
+
type: AttachmentType;
|
|
10
|
+
constructor(name: string);
|
|
11
|
+
abstract copy(): Attachment;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare abstract class VertexAttachment extends Attachment {
|
|
17
|
+
private static nextID;
|
|
18
|
+
id: number;
|
|
19
|
+
bones: Array<number>;
|
|
20
|
+
vertices: ArrayLike<number>;
|
|
21
|
+
worldVerticesLength: number;
|
|
22
|
+
deformAttachment: VertexAttachment;
|
|
23
|
+
constructor(name: string);
|
|
24
|
+
computeWorldVerticesOld(slot: Slot, worldVertices: ArrayLike<number>): void;
|
|
25
|
+
/** Transforms local vertices to world coordinates.
|
|
26
|
+
* @param start The index of the first local vertex value to transform. Each vertex has 2 values, x and y.
|
|
27
|
+
* @param count The number of world vertex values to output. Must be <= {@link #getWorldVerticesLength()} - start.
|
|
28
|
+
* @param worldVertices The output world vertices. Must have a length >= offset + count.
|
|
29
|
+
* @param offset The worldVertices index to begin writing values. */
|
|
30
|
+
computeWorldVertices(slot: Slot, start: number, count: number, worldVertices: ArrayLike<number>, offset: number, stride: number): void;
|
|
31
|
+
copyTo(attachment: VertexAttachment): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Skin } from '../Skin';
|
|
2
|
+
import type { RegionAttachment } from './RegionAttachment';
|
|
3
|
+
import type { MeshAttachment } from './MeshAttachment';
|
|
4
|
+
import type { BoundingBoxAttachment } from './BoundingBoxAttachment';
|
|
5
|
+
import type { PathAttachment } from './PathAttachment';
|
|
6
|
+
import type { PointAttachment } from './PointAttachment';
|
|
7
|
+
import type { ClippingAttachment } from './ClippingAttachment';
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface AttachmentLoader {
|
|
12
|
+
/** @return May be null to not load an attachment. */
|
|
13
|
+
newRegionAttachment(skin: Skin, name: string, path: string): RegionAttachment;
|
|
14
|
+
/** @return May be null to not load an attachment. */
|
|
15
|
+
newMeshAttachment(skin: Skin, name: string, path: string): MeshAttachment;
|
|
16
|
+
/** @return May be null to not load an attachment. */
|
|
17
|
+
newBoundingBoxAttachment(skin: Skin, name: string): BoundingBoxAttachment;
|
|
18
|
+
/** @return May be null to not load an attachment */
|
|
19
|
+
newPathAttachment(skin: Skin, name: string): PathAttachment;
|
|
20
|
+
/** @return May be null to not load an attachment */
|
|
21
|
+
newPointAttachment(skin: Skin, name: string): PointAttachment;
|
|
22
|
+
/** @return May be null to not load an attachment */
|
|
23
|
+
newClippingAttachment(skin: Skin, name: string): ClippingAttachment;
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Attachment, VertexAttachment } from './Attachment';
|
|
2
|
+
import { AttachmentType, Color } from '@pixi-spine/base';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class BoundingBoxAttachment extends VertexAttachment {
|
|
7
|
+
type: AttachmentType;
|
|
8
|
+
color: Color;
|
|
9
|
+
constructor(name: string);
|
|
10
|
+
copy(): Attachment;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Attachment, VertexAttachment } from './Attachment';
|
|
2
|
+
import { AttachmentType, Color, IClippingAttachment } from '@pixi-spine/base';
|
|
3
|
+
import type { SlotData } from '../SlotData';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class ClippingAttachment extends VertexAttachment implements IClippingAttachment {
|
|
8
|
+
type: AttachmentType;
|
|
9
|
+
endSlot: SlotData;
|
|
10
|
+
color: Color;
|
|
11
|
+
constructor(name: string);
|
|
12
|
+
copy(): Attachment;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Attachment, VertexAttachment } from './Attachment';
|
|
2
|
+
import { AttachmentType, Color, IMeshAttachment, TextureRegion } from '@pixi-spine/base';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class MeshAttachment extends VertexAttachment implements IMeshAttachment {
|
|
7
|
+
type: AttachmentType;
|
|
8
|
+
region: TextureRegion;
|
|
9
|
+
path: string;
|
|
10
|
+
regionUVs: Float32Array;
|
|
11
|
+
triangles: Array<number>;
|
|
12
|
+
color: Color;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
hullLength: number;
|
|
16
|
+
edges: Array<number>;
|
|
17
|
+
private parentMesh;
|
|
18
|
+
tempColor: Color;
|
|
19
|
+
constructor(name: string);
|
|
20
|
+
getParentMesh(): MeshAttachment;
|
|
21
|
+
/** @param parentMesh May be null. */
|
|
22
|
+
setParentMesh(parentMesh: MeshAttachment): void;
|
|
23
|
+
copy(): Attachment;
|
|
24
|
+
newLinkedMesh(): MeshAttachment;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Attachment, VertexAttachment } from './Attachment';
|
|
2
|
+
import { AttachmentType, Color } from '@pixi-spine/base';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class PathAttachment extends VertexAttachment {
|
|
7
|
+
type: AttachmentType;
|
|
8
|
+
lengths: Array<number>;
|
|
9
|
+
closed: boolean;
|
|
10
|
+
constantSpeed: boolean;
|
|
11
|
+
color: Color;
|
|
12
|
+
constructor(name: string);
|
|
13
|
+
copy(): Attachment;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Attachment, VertexAttachment } from './Attachment';
|
|
2
|
+
import { AttachmentType, Color, Vector2 } from '@pixi-spine/base';
|
|
3
|
+
import type { Bone } from '../Bone';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class PointAttachment extends VertexAttachment {
|
|
8
|
+
type: AttachmentType;
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
rotation: number;
|
|
12
|
+
color: Color;
|
|
13
|
+
constructor(name: string);
|
|
14
|
+
computeWorldPosition(bone: Bone, point: Vector2): Vector2;
|
|
15
|
+
computeWorldRotation(bone: Bone): number;
|
|
16
|
+
copy(): Attachment;
|
|
17
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Attachment } from './Attachment';
|
|
2
|
+
import { AttachmentType, ArrayLike, Color, TextureRegion, IRegionAttachment } from '@pixi-spine/base';
|
|
3
|
+
import type { Bone } from '../Bone';
|
|
4
|
+
import { Slot } from '../Slot';
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class RegionAttachment extends Attachment implements IRegionAttachment {
|
|
9
|
+
type: AttachmentType;
|
|
10
|
+
static OX1: number;
|
|
11
|
+
static OY1: number;
|
|
12
|
+
static OX2: number;
|
|
13
|
+
static OY2: number;
|
|
14
|
+
static OX3: number;
|
|
15
|
+
static OY3: number;
|
|
16
|
+
static OX4: number;
|
|
17
|
+
static OY4: number;
|
|
18
|
+
static X1: number;
|
|
19
|
+
static Y1: number;
|
|
20
|
+
static C1R: number;
|
|
21
|
+
static C1G: number;
|
|
22
|
+
static C1B: number;
|
|
23
|
+
static C1A: number;
|
|
24
|
+
static U1: number;
|
|
25
|
+
static V1: number;
|
|
26
|
+
static X2: number;
|
|
27
|
+
static Y2: number;
|
|
28
|
+
static C2R: number;
|
|
29
|
+
static C2G: number;
|
|
30
|
+
static C2B: number;
|
|
31
|
+
static C2A: number;
|
|
32
|
+
static U2: number;
|
|
33
|
+
static V2: number;
|
|
34
|
+
static X3: number;
|
|
35
|
+
static Y3: number;
|
|
36
|
+
static C3R: number;
|
|
37
|
+
static C3G: number;
|
|
38
|
+
static C3B: number;
|
|
39
|
+
static C3A: number;
|
|
40
|
+
static U3: number;
|
|
41
|
+
static V3: number;
|
|
42
|
+
static X4: number;
|
|
43
|
+
static Y4: number;
|
|
44
|
+
static C4R: number;
|
|
45
|
+
static C4G: number;
|
|
46
|
+
static C4B: number;
|
|
47
|
+
static C4A: number;
|
|
48
|
+
static U4: number;
|
|
49
|
+
static V4: number;
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
scaleX: number;
|
|
53
|
+
scaleY: number;
|
|
54
|
+
rotation: number;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
color: Color;
|
|
58
|
+
path: string;
|
|
59
|
+
rendererObject: any;
|
|
60
|
+
region: TextureRegion;
|
|
61
|
+
offset: import("@pixi-spine/base").NumberArrayLike;
|
|
62
|
+
uvs: import("@pixi-spine/base").NumberArrayLike;
|
|
63
|
+
tempColor: Color;
|
|
64
|
+
constructor(name: string);
|
|
65
|
+
updateOffset(): void;
|
|
66
|
+
setRegion(region: TextureRegion): void;
|
|
67
|
+
computeWorldVertices(bone: Bone | Slot, worldVertices: ArrayLike<number>, offset: number, stride: number): void;
|
|
68
|
+
copy(): Attachment;
|
|
69
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './Attachment';
|
|
2
|
+
export * from './AttachmentLoader';
|
|
3
|
+
export * from './BoundingBoxAttachment';
|
|
4
|
+
export * from './ClippingAttachment';
|
|
5
|
+
export * from './MeshAttachment';
|
|
6
|
+
export * from './PathAttachment';
|
|
7
|
+
export * from './PointAttachment';
|
|
8
|
+
export * from './RegionAttachment';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VertexEffect } from '../VertexEffect';
|
|
2
|
+
import type { Skeleton } from '../Skeleton';
|
|
3
|
+
import { Color, Vector2 } from '@pixi-spine/base';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class JitterEffect implements VertexEffect {
|
|
8
|
+
jitterX: number;
|
|
9
|
+
jitterY: number;
|
|
10
|
+
constructor(jitterX: number, jitterY: number);
|
|
11
|
+
begin(skeleton: Skeleton): void;
|
|
12
|
+
transform(position: Vector2, uv: Vector2, light: Color, dark: Color): void;
|
|
13
|
+
end(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VertexEffect } from '../VertexEffect';
|
|
2
|
+
import type { Skeleton } from '../Skeleton';
|
|
3
|
+
import { Color, PowOut, Vector2 } from '@pixi-spine/base';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class SwirlEffect implements VertexEffect {
|
|
8
|
+
static interpolation: PowOut;
|
|
9
|
+
centerX: number;
|
|
10
|
+
centerY: number;
|
|
11
|
+
radius: number;
|
|
12
|
+
angle: number;
|
|
13
|
+
private worldX;
|
|
14
|
+
private worldY;
|
|
15
|
+
constructor(radius: number);
|
|
16
|
+
begin(skeleton: Skeleton): void;
|
|
17
|
+
transform(position: Vector2, uv: Vector2, light: Color, dark: Color): void;
|
|
18
|
+
end(): void;
|
|
19
|
+
}
|