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.

Potentially problematic release.


This version of simple-pixi-spine might be problematic. Click here for more details.

Files changed (235) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +200 -0
  3. package/dist/simple-pixi-spine.js +37 -0
  4. package/dist/simple-pixi-spine.js.map +7 -0
  5. package/dist/simple-pixi-spine.mjs +37 -0
  6. package/dist/simple-pixi-spine.mjs.map +7 -0
  7. package/dist/types/build.d.mts +1 -0
  8. package/dist/types/bundles/pixi-spine/rollup.config.d.mts +2 -0
  9. package/dist/types/bundles/pixi-spine/src/index.d.ts +5 -0
  10. package/dist/types/packages/base/src/SpineBase.d.ts +167 -0
  11. package/dist/types/packages/base/src/SpineDebugRenderer.d.ts +60 -0
  12. package/dist/types/packages/base/src/core/AttachmentType.d.ts +12 -0
  13. package/dist/types/packages/base/src/core/BinaryInput.d.ts +18 -0
  14. package/dist/types/packages/base/src/core/IAnimation.d.ts +131 -0
  15. package/dist/types/packages/base/src/core/IConstraint.d.ts +93 -0
  16. package/dist/types/packages/base/src/core/ISkeleton.d.ts +237 -0
  17. package/dist/types/packages/base/src/core/SkeletonBoundsBase.d.ts +51 -0
  18. package/dist/types/packages/base/src/core/TextureAtlas.d.ts +41 -0
  19. package/dist/types/packages/base/src/core/TextureRegion.d.ts +55 -0
  20. package/dist/types/packages/base/src/core/Utils.d.ts +198 -0
  21. package/dist/types/packages/base/src/core/versions.d.ts +15 -0
  22. package/dist/types/packages/base/src/index.d.ts +14 -0
  23. package/dist/types/packages/base/src/settings.d.ts +19 -0
  24. package/dist/types/packages/loader-3.8/src/index.d.ts +2 -0
  25. package/dist/types/packages/loader-4.0/src/index.d.ts +2 -0
  26. package/dist/types/packages/loader-4.1/src/index.d.ts +2 -0
  27. package/dist/types/packages/loader-4.2/src/index.d.ts +2 -0
  28. package/dist/types/packages/loader-base/src/SpineLoaderAbstract.d.ts +36 -0
  29. package/dist/types/packages/loader-base/src/atlasLoader.d.ts +5 -0
  30. package/dist/types/packages/loader-base/src/index.d.ts +4 -0
  31. package/dist/types/packages/loader-uni/src/Spine.d.ts +15 -0
  32. package/dist/types/packages/loader-uni/src/SpineLoader.d.ts +10 -0
  33. package/dist/types/packages/loader-uni/src/index.d.ts +3 -0
  34. package/dist/types/packages/runtime-3.7/src/Spine.d.ts +11 -0
  35. package/dist/types/packages/runtime-3.7/src/core/Animation.d.ts +307 -0
  36. package/dist/types/packages/runtime-3.7/src/core/AnimationState.d.ts +175 -0
  37. package/dist/types/packages/runtime-3.7/src/core/AnimationStateData.d.ts +17 -0
  38. package/dist/types/packages/runtime-3.7/src/core/AtlasAttachmentLoader.d.ts +20 -0
  39. package/dist/types/packages/runtime-3.7/src/core/Bone.d.ts +58 -0
  40. package/dist/types/packages/runtime-3.7/src/core/BoneData.d.ts +19 -0
  41. package/dist/types/packages/runtime-3.7/src/core/Constraint.d.ts +7 -0
  42. package/dist/types/packages/runtime-3.7/src/core/Event.d.ts +15 -0
  43. package/dist/types/packages/runtime-3.7/src/core/EventData.d.ts +14 -0
  44. package/dist/types/packages/runtime-3.7/src/core/IkConstraint.d.ts +27 -0
  45. package/dist/types/packages/runtime-3.7/src/core/IkConstraintData.d.ts +16 -0
  46. package/dist/types/packages/runtime-3.7/src/core/PathConstraint.d.ts +36 -0
  47. package/dist/types/packages/runtime-3.7/src/core/PathConstraintData.d.ts +29 -0
  48. package/dist/types/packages/runtime-3.7/src/core/Skeleton.d.ts +88 -0
  49. package/dist/types/packages/runtime-3.7/src/core/SkeletonBounds.d.ts +8 -0
  50. package/dist/types/packages/runtime-3.7/src/core/SkeletonData.d.ts +41 -0
  51. package/dist/types/packages/runtime-3.7/src/core/SkeletonJson.d.ts +27 -0
  52. package/dist/types/packages/runtime-3.7/src/core/Skin.d.ts +16 -0
  53. package/dist/types/packages/runtime-3.7/src/core/Slot.d.ts +27 -0
  54. package/dist/types/packages/runtime-3.7/src/core/SlotData.d.ts +17 -0
  55. package/dist/types/packages/runtime-3.7/src/core/TransformConstraint.d.ts +26 -0
  56. package/dist/types/packages/runtime-3.7/src/core/TransformConstraintData.d.ts +23 -0
  57. package/dist/types/packages/runtime-3.7/src/core/Updatable.d.ts +6 -0
  58. package/dist/types/packages/runtime-3.7/src/core/VertexEffect.d.ts +10 -0
  59. package/dist/types/packages/runtime-3.7/src/core/attachments/Attachment.d.ts +30 -0
  60. package/dist/types/packages/runtime-3.7/src/core/attachments/AttachmentLoader.d.ts +24 -0
  61. package/dist/types/packages/runtime-3.7/src/core/attachments/BoundingBoxAttachment.d.ts +10 -0
  62. package/dist/types/packages/runtime-3.7/src/core/attachments/ClippingAttachment.d.ts +12 -0
  63. package/dist/types/packages/runtime-3.7/src/core/attachments/MeshAttachment.d.ts +23 -0
  64. package/dist/types/packages/runtime-3.7/src/core/attachments/PathAttachment.d.ts +13 -0
  65. package/dist/types/packages/runtime-3.7/src/core/attachments/PointAttachment.d.ts +16 -0
  66. package/dist/types/packages/runtime-3.7/src/core/attachments/RegionAttachment.d.ts +68 -0
  67. package/dist/types/packages/runtime-3.7/src/core/attachments/index.d.ts +8 -0
  68. package/dist/types/packages/runtime-3.7/src/core/vertexeffects/JitterEffect.d.ts +14 -0
  69. package/dist/types/packages/runtime-3.7/src/core/vertexeffects/SwirlEffect.d.ts +19 -0
  70. package/dist/types/packages/runtime-3.7/src/index.d.ts +28 -0
  71. package/dist/types/packages/runtime-3.8/src/Spine.d.ts +11 -0
  72. package/dist/types/packages/runtime-3.8/src/core/Animation.d.ts +400 -0
  73. package/dist/types/packages/runtime-3.8/src/core/AnimationState.d.ts +401 -0
  74. package/dist/types/packages/runtime-3.8/src/core/AnimationStateData.d.ts +17 -0
  75. package/dist/types/packages/runtime-3.8/src/core/AtlasAttachmentLoader.d.ts +20 -0
  76. package/dist/types/packages/runtime-3.8/src/core/Bone.d.ts +58 -0
  77. package/dist/types/packages/runtime-3.8/src/core/BoneData.d.ts +21 -0
  78. package/dist/types/packages/runtime-3.8/src/core/Constraint.d.ts +9 -0
  79. package/dist/types/packages/runtime-3.8/src/core/Event.d.ts +15 -0
  80. package/dist/types/packages/runtime-3.8/src/core/EventData.d.ts +14 -0
  81. package/dist/types/packages/runtime-3.8/src/core/IkConstraint.d.ts +30 -0
  82. package/dist/types/packages/runtime-3.8/src/core/IkConstraintData.d.ts +17 -0
  83. package/dist/types/packages/runtime-3.8/src/core/PathConstraint.d.ts +37 -0
  84. package/dist/types/packages/runtime-3.8/src/core/PathConstraintData.d.ts +28 -0
  85. package/dist/types/packages/runtime-3.8/src/core/Skeleton.d.ts +88 -0
  86. package/dist/types/packages/runtime-3.8/src/core/SkeletonBinary.d.ts +43 -0
  87. package/dist/types/packages/runtime-3.8/src/core/SkeletonBounds.d.ts +8 -0
  88. package/dist/types/packages/runtime-3.8/src/core/SkeletonData.d.ts +44 -0
  89. package/dist/types/packages/runtime-3.8/src/core/SkeletonJson.d.ts +27 -0
  90. package/dist/types/packages/runtime-3.8/src/core/Skin.d.ts +35 -0
  91. package/dist/types/packages/runtime-3.8/src/core/Slot.d.ts +28 -0
  92. package/dist/types/packages/runtime-3.8/src/core/SlotData.d.ts +17 -0
  93. package/dist/types/packages/runtime-3.8/src/core/TransformConstraint.d.ts +27 -0
  94. package/dist/types/packages/runtime-3.8/src/core/TransformConstraintData.d.ts +22 -0
  95. package/dist/types/packages/runtime-3.8/src/core/Updatable.d.ts +7 -0
  96. package/dist/types/packages/runtime-3.8/src/core/VertexEffect.d.ts +10 -0
  97. package/dist/types/packages/runtime-3.8/src/core/attachments/Attachment.d.ts +32 -0
  98. package/dist/types/packages/runtime-3.8/src/core/attachments/AttachmentLoader.d.ts +24 -0
  99. package/dist/types/packages/runtime-3.8/src/core/attachments/BoundingBoxAttachment.d.ts +11 -0
  100. package/dist/types/packages/runtime-3.8/src/core/attachments/ClippingAttachment.d.ts +13 -0
  101. package/dist/types/packages/runtime-3.8/src/core/attachments/MeshAttachment.d.ts +25 -0
  102. package/dist/types/packages/runtime-3.8/src/core/attachments/PathAttachment.d.ts +14 -0
  103. package/dist/types/packages/runtime-3.8/src/core/attachments/PointAttachment.d.ts +17 -0
  104. package/dist/types/packages/runtime-3.8/src/core/attachments/RegionAttachment.d.ts +69 -0
  105. package/dist/types/packages/runtime-3.8/src/core/attachments/index.d.ts +8 -0
  106. package/dist/types/packages/runtime-3.8/src/core/vertexeffects/JitterEffect.d.ts +14 -0
  107. package/dist/types/packages/runtime-3.8/src/core/vertexeffects/SwirlEffect.d.ts +19 -0
  108. package/dist/types/packages/runtime-3.8/src/index.d.ts +29 -0
  109. package/dist/types/packages/runtime-4.0/src/Spine.d.ts +11 -0
  110. package/dist/types/packages/runtime-4.0/src/core/Animation.d.ts +366 -0
  111. package/dist/types/packages/runtime-4.0/src/core/AnimationState.d.ts +369 -0
  112. package/dist/types/packages/runtime-4.0/src/core/AnimationStateData.d.ts +25 -0
  113. package/dist/types/packages/runtime-4.0/src/core/AtlasAttachmentLoader.d.ts +20 -0
  114. package/dist/types/packages/runtime-4.0/src/core/Bone.d.ts +104 -0
  115. package/dist/types/packages/runtime-4.0/src/core/BoneData.d.ts +38 -0
  116. package/dist/types/packages/runtime-4.0/src/core/ConstraintData.d.ts +9 -0
  117. package/dist/types/packages/runtime-4.0/src/core/Event.d.ts +19 -0
  118. package/dist/types/packages/runtime-4.0/src/core/EventData.d.ts +16 -0
  119. package/dist/types/packages/runtime-4.0/src/core/IkConstraint.d.ts +38 -0
  120. package/dist/types/packages/runtime-4.0/src/core/IkConstraintData.d.ts +28 -0
  121. package/dist/types/packages/runtime-4.0/src/core/PathConstraint.d.ts +45 -0
  122. package/dist/types/packages/runtime-4.0/src/core/PathConstraintData.d.ts +42 -0
  123. package/dist/types/packages/runtime-4.0/src/core/Skeleton.d.ts +149 -0
  124. package/dist/types/packages/runtime-4.0/src/core/SkeletonBinary.d.ts +28 -0
  125. package/dist/types/packages/runtime-4.0/src/core/SkeletonBounds.d.ts +8 -0
  126. package/dist/types/packages/runtime-4.0/src/core/SkeletonData.d.ts +94 -0
  127. package/dist/types/packages/runtime-4.0/src/core/SkeletonJson.d.ts +26 -0
  128. package/dist/types/packages/runtime-4.0/src/core/Skin.d.ts +47 -0
  129. package/dist/types/packages/runtime-4.0/src/core/Slot.d.ts +45 -0
  130. package/dist/types/packages/runtime-4.0/src/core/SlotData.d.ts +26 -0
  131. package/dist/types/packages/runtime-4.0/src/core/TransformConstraint.d.ts +34 -0
  132. package/dist/types/packages/runtime-4.0/src/core/TransformConstraintData.d.ts +34 -0
  133. package/dist/types/packages/runtime-4.0/src/core/Updatable.d.ts +11 -0
  134. package/dist/types/packages/runtime-4.0/src/core/VertexEffect.d.ts +10 -0
  135. package/dist/types/packages/runtime-4.0/src/core/attachments/Attachment.d.ts +52 -0
  136. package/dist/types/packages/runtime-4.0/src/core/attachments/AttachmentLoader.d.ts +24 -0
  137. package/dist/types/packages/runtime-4.0/src/core/attachments/BoundingBoxAttachment.d.ts +11 -0
  138. package/dist/types/packages/runtime-4.0/src/core/attachments/ClippingAttachment.d.ts +15 -0
  139. package/dist/types/packages/runtime-4.0/src/core/attachments/MeshAttachment.d.ts +38 -0
  140. package/dist/types/packages/runtime-4.0/src/core/attachments/PathAttachment.d.ts +20 -0
  141. package/dist/types/packages/runtime-4.0/src/core/attachments/PointAttachment.d.ts +19 -0
  142. package/dist/types/packages/runtime-4.0/src/core/attachments/RegionAttachment.d.ts +89 -0
  143. package/dist/types/packages/runtime-4.0/src/core/attachments/index.d.ts +8 -0
  144. package/dist/types/packages/runtime-4.0/src/core/vertexeffects/JitterEffect.d.ts +14 -0
  145. package/dist/types/packages/runtime-4.0/src/core/vertexeffects/SwirlEffect.d.ts +19 -0
  146. package/dist/types/packages/runtime-4.0/src/index.d.ts +29 -0
  147. package/dist/types/packages/runtime-4.1/src/Spine.d.ts +11 -0
  148. package/dist/types/packages/runtime-4.1/src/core/Animation.d.ts +386 -0
  149. package/dist/types/packages/runtime-4.1/src/core/AnimationState.d.ts +371 -0
  150. package/dist/types/packages/runtime-4.1/src/core/AnimationStateData.d.ts +25 -0
  151. package/dist/types/packages/runtime-4.1/src/core/AtlasAttachmentLoader.d.ts +17 -0
  152. package/dist/types/packages/runtime-4.1/src/core/Bone.d.ts +104 -0
  153. package/dist/types/packages/runtime-4.1/src/core/BoneData.d.ts +38 -0
  154. package/dist/types/packages/runtime-4.1/src/core/ConstraintData.d.ts +9 -0
  155. package/dist/types/packages/runtime-4.1/src/core/Event.d.ts +19 -0
  156. package/dist/types/packages/runtime-4.1/src/core/EventData.d.ts +16 -0
  157. package/dist/types/packages/runtime-4.1/src/core/IkConstraint.d.ts +38 -0
  158. package/dist/types/packages/runtime-4.1/src/core/IkConstraintData.d.ts +30 -0
  159. package/dist/types/packages/runtime-4.1/src/core/PathConstraint.d.ts +45 -0
  160. package/dist/types/packages/runtime-4.1/src/core/PathConstraintData.d.ts +44 -0
  161. package/dist/types/packages/runtime-4.1/src/core/Skeleton.d.ts +143 -0
  162. package/dist/types/packages/runtime-4.1/src/core/SkeletonBinary.d.ts +31 -0
  163. package/dist/types/packages/runtime-4.1/src/core/SkeletonBounds.d.ts +8 -0
  164. package/dist/types/packages/runtime-4.1/src/core/SkeletonData.d.ts +94 -0
  165. package/dist/types/packages/runtime-4.1/src/core/SkeletonJson.d.ts +28 -0
  166. package/dist/types/packages/runtime-4.1/src/core/Skin.d.ts +47 -0
  167. package/dist/types/packages/runtime-4.1/src/core/Slot.d.ts +44 -0
  168. package/dist/types/packages/runtime-4.1/src/core/SlotData.d.ts +26 -0
  169. package/dist/types/packages/runtime-4.1/src/core/TransformConstraint.d.ts +34 -0
  170. package/dist/types/packages/runtime-4.1/src/core/TransformConstraintData.d.ts +36 -0
  171. package/dist/types/packages/runtime-4.1/src/core/Updatable.d.ts +11 -0
  172. package/dist/types/packages/runtime-4.1/src/core/attachments/Attachment.d.ts +53 -0
  173. package/dist/types/packages/runtime-4.1/src/core/attachments/AttachmentLoader.d.ts +25 -0
  174. package/dist/types/packages/runtime-4.1/src/core/attachments/BoundingBoxAttachment.d.ts +11 -0
  175. package/dist/types/packages/runtime-4.1/src/core/attachments/ClippingAttachment.d.ts +17 -0
  176. package/dist/types/packages/runtime-4.1/src/core/attachments/MeshAttachment.d.ts +42 -0
  177. package/dist/types/packages/runtime-4.1/src/core/attachments/PathAttachment.d.ts +20 -0
  178. package/dist/types/packages/runtime-4.1/src/core/attachments/PointAttachment.d.ts +19 -0
  179. package/dist/types/packages/runtime-4.1/src/core/attachments/RegionAttachment.d.ts +82 -0
  180. package/dist/types/packages/runtime-4.1/src/core/attachments/Sequence.d.ts +35 -0
  181. package/dist/types/packages/runtime-4.1/src/core/attachments/index.d.ts +9 -0
  182. package/dist/types/packages/runtime-4.1/src/index.d.ts +26 -0
  183. package/dist/types/packages/runtime-4.2/src/Spine.d.ts +11 -0
  184. package/dist/types/packages/runtime-4.2/src/core/Animation.d.ts +544 -0
  185. package/dist/types/packages/runtime-4.2/src/core/AnimationState.d.ts +405 -0
  186. package/dist/types/packages/runtime-4.2/src/core/AnimationStateData.d.ts +25 -0
  187. package/dist/types/packages/runtime-4.2/src/core/AtlasAttachmentLoader.d.ts +20 -0
  188. package/dist/types/packages/runtime-4.2/src/core/Bone.d.ts +117 -0
  189. package/dist/types/packages/runtime-4.2/src/core/BoneData.d.ts +42 -0
  190. package/dist/types/packages/runtime-4.2/src/core/ConstraintData.d.ts +9 -0
  191. package/dist/types/packages/runtime-4.2/src/core/Event.d.ts +18 -0
  192. package/dist/types/packages/runtime-4.2/src/core/EventData.d.ts +15 -0
  193. package/dist/types/packages/runtime-4.2/src/core/IkConstraint.d.ts +40 -0
  194. package/dist/types/packages/runtime-4.2/src/core/IkConstraintData.d.ts +30 -0
  195. package/dist/types/packages/runtime-4.2/src/core/PathConstraint.d.ts +47 -0
  196. package/dist/types/packages/runtime-4.2/src/core/PathConstraintData.d.ts +62 -0
  197. package/dist/types/packages/runtime-4.2/src/core/PhysicsConstraint.d.ts +54 -0
  198. package/dist/types/packages/runtime-4.2/src/core/PhysicsConstraintData.d.ts +35 -0
  199. package/dist/types/packages/runtime-4.2/src/core/Skeleton.d.ts +160 -0
  200. package/dist/types/packages/runtime-4.2/src/core/SkeletonBinary.d.ts +43 -0
  201. package/dist/types/packages/runtime-4.2/src/core/SkeletonBounds.d.ts +51 -0
  202. package/dist/types/packages/runtime-4.2/src/core/SkeletonClipping.d.ts +38 -0
  203. package/dist/types/packages/runtime-4.2/src/core/SkeletonData.d.ts +101 -0
  204. package/dist/types/packages/runtime-4.2/src/core/SkeletonJson.d.ts +23 -0
  205. package/dist/types/packages/runtime-4.2/src/core/Skin.d.ts +49 -0
  206. package/dist/types/packages/runtime-4.2/src/core/Slot.d.ts +44 -0
  207. package/dist/types/packages/runtime-4.2/src/core/SlotData.d.ts +28 -0
  208. package/dist/types/packages/runtime-4.2/src/core/TransformConstraint.d.ts +33 -0
  209. package/dist/types/packages/runtime-4.2/src/core/TransformConstraintData.d.ts +34 -0
  210. package/dist/types/packages/runtime-4.2/src/core/Triangulator.d.ts +18 -0
  211. package/dist/types/packages/runtime-4.2/src/core/Updatable.d.ts +16 -0
  212. package/dist/types/packages/runtime-4.2/src/core/attachments/Attachment.d.ts +49 -0
  213. package/dist/types/packages/runtime-4.2/src/core/attachments/AttachmentLoader.d.ts +27 -0
  214. package/dist/types/packages/runtime-4.2/src/core/attachments/BoundingBoxAttachment.d.ts +12 -0
  215. package/dist/types/packages/runtime-4.2/src/core/attachments/ClippingAttachment.d.ts +16 -0
  216. package/dist/types/packages/runtime-4.2/src/core/attachments/MeshAttachment.d.ts +46 -0
  217. package/dist/types/packages/runtime-4.2/src/core/attachments/PathAttachment.d.ts +19 -0
  218. package/dist/types/packages/runtime-4.2/src/core/attachments/PointAttachment.d.ts +20 -0
  219. package/dist/types/packages/runtime-4.2/src/core/attachments/RegionAttachment.d.ts +80 -0
  220. package/dist/types/packages/runtime-4.2/src/core/attachments/Sequence.d.ts +35 -0
  221. package/dist/types/packages/runtime-4.2/src/core/attachments/index.d.ts +9 -0
  222. package/dist/types/packages/runtime-4.2/src/core/index.d.ts +29 -0
  223. package/dist/types/packages/runtime-4.2/src/core/polyfills.d.ts +1 -0
  224. package/dist/types/packages/runtime-4.2/src/index.d.ts +3 -0
  225. package/dist/types/src/BinaryInput.d.ts +84 -0
  226. package/dist/types/src/SkelToJson.d.ts +15 -0
  227. package/dist/types/src/SkelToJson21.d.ts +10 -0
  228. package/dist/types/src/SkelToJson34And35.d.ts +10 -0
  229. package/dist/types/src/SkelToJson36And37.d.ts +10 -0
  230. package/dist/types/src/SkelToJsonCommon.d.ts +24 -0
  231. package/dist/types/src/TextureHelper.d.ts +29 -0
  232. package/dist/types/src/VersionDetector.d.ts +28 -0
  233. package/dist/types/src/index.d.ts +80 -0
  234. package/dist/types/src/types.d.ts +161 -0
  235. package/package.json +29 -0
@@ -0,0 +1,14 @@
1
+ import type { IEventData } from '@pixi-spine/base';
2
+ /**
3
+ * @public
4
+ */
5
+ export declare class EventData implements IEventData {
6
+ name: string;
7
+ intValue: number;
8
+ floatValue: number;
9
+ stringValue: string;
10
+ audioPath: string;
11
+ volume: number;
12
+ balance: number;
13
+ constructor(name: string);
14
+ }
@@ -0,0 +1,27 @@
1
+ import type { Constraint } from './Constraint';
2
+ import type { IkConstraintData } from './IkConstraintData';
3
+ import type { Bone } from './Bone';
4
+ import type { Skeleton } from './Skeleton';
5
+ /**
6
+ * @public
7
+ */
8
+ export declare class IkConstraint implements Constraint {
9
+ data: IkConstraintData;
10
+ bones: Array<Bone>;
11
+ target: Bone;
12
+ bendDirection: number;
13
+ compress: boolean;
14
+ stretch: boolean;
15
+ mix: number;
16
+ constructor(data: IkConstraintData, skeleton: Skeleton);
17
+ getOrder(): number;
18
+ apply(): void;
19
+ update(): void;
20
+ /** Adjusts the bone rotation so the tip is as close to the target position as possible. The target is specified in the world
21
+ * coordinate system. */
22
+ apply1(bone: Bone, targetX: number, targetY: number, compress: boolean, stretch: boolean, uniform: boolean, alpha: number): void;
23
+ /** Adjusts the parent and child bone rotations so the tip of the child is as close to the target position as possible. The
24
+ * target is specified in the world coordinate system.
25
+ * @param child A direct descendant of the parent bone. */
26
+ apply2(parent: Bone, child: Bone, targetX: number, targetY: number, bendDir: number, stretch: boolean, alpha: number): void;
27
+ }
@@ -0,0 +1,16 @@
1
+ import type { BoneData } from './BoneData';
2
+ /**
3
+ * @public
4
+ */
5
+ export declare class IkConstraintData {
6
+ name: string;
7
+ order: number;
8
+ bones: BoneData[];
9
+ target: BoneData;
10
+ bendDirection: number;
11
+ compress: boolean;
12
+ stretch: boolean;
13
+ uniform: boolean;
14
+ mix: number;
15
+ constructor(name: string);
16
+ }
@@ -0,0 +1,36 @@
1
+ import { PathAttachment } from './attachments';
2
+ import type { Constraint } from './Constraint';
3
+ import { PathConstraintData } from './PathConstraintData';
4
+ import type { Bone } from './Bone';
5
+ import type { Slot } from './Slot';
6
+ import type { Skeleton } from './Skeleton';
7
+ /**
8
+ * @public
9
+ */
10
+ export declare class PathConstraint implements Constraint {
11
+ static NONE: number;
12
+ static BEFORE: number;
13
+ static AFTER: number;
14
+ static epsilon: number;
15
+ data: PathConstraintData;
16
+ bones: Array<Bone>;
17
+ target: Slot;
18
+ position: number;
19
+ spacing: number;
20
+ rotateMix: number;
21
+ translateMix: number;
22
+ spaces: number[];
23
+ positions: number[];
24
+ world: number[];
25
+ curves: number[];
26
+ lengths: number[];
27
+ segments: number[];
28
+ constructor(data: PathConstraintData, skeleton: Skeleton);
29
+ apply(): void;
30
+ update(): void;
31
+ computeWorldPositions(path: PathAttachment, spacesCount: number, tangents: boolean, percentPosition: boolean, percentSpacing: boolean): number[];
32
+ addBeforePosition(p: number, temp: Array<number>, i: number, out: Array<number>, o: number): void;
33
+ addAfterPosition(p: number, temp: Array<number>, i: number, out: Array<number>, o: number): void;
34
+ addCurvePosition(p: number, x1: number, y1: number, cx1: number, cy1: number, cx2: number, cy2: number, x2: number, y2: number, out: Array<number>, o: number, tangents: boolean): void;
35
+ getOrder(): number;
36
+ }
@@ -0,0 +1,29 @@
1
+ import type { SlotData } from './SlotData';
2
+ import type { BoneData } from './BoneData';
3
+ import type { RotateMode, PositionMode, IPathConstraintData } from '@pixi-spine/base';
4
+ /**
5
+ * @public
6
+ */
7
+ export declare class PathConstraintData implements IPathConstraintData {
8
+ name: string;
9
+ order: number;
10
+ bones: BoneData[];
11
+ target: SlotData;
12
+ positionMode: PositionMode;
13
+ spacingMode: SpacingMode;
14
+ rotateMode: RotateMode;
15
+ offsetRotation: number;
16
+ position: number;
17
+ spacing: number;
18
+ rotateMix: number;
19
+ translateMix: number;
20
+ constructor(name: string);
21
+ }
22
+ /**
23
+ * @public
24
+ */
25
+ export declare enum SpacingMode {
26
+ Length = 0,
27
+ Fixed = 1,
28
+ Percent = 2
29
+ }
@@ -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 | null): 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,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,41 @@
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
+ width: number;
25
+ height: number;
26
+ version: string;
27
+ hash: string;
28
+ fps: number;
29
+ imagesPath: string;
30
+ findBone(boneName: string): BoneData;
31
+ findBoneIndex(boneName: string): number;
32
+ findSlot(slotName: string): SlotData;
33
+ findSlotIndex(slotName: string): number;
34
+ findSkin(skinName: string): Skin;
35
+ findEvent(eventDataName: string): EventData;
36
+ findAnimation(animationName: string): Animation;
37
+ findIkConstraint(constraintName: string): IkConstraintData;
38
+ findTransformConstraint(constraintName: string): TransformConstraintData;
39
+ findPathConstraint(constraintName: string): PathConstraintData;
40
+ findPathConstraintIndex(pathConstraintName: string): number;
41
+ }
@@ -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,16 @@
1
+ import type { Attachment } from './attachments';
2
+ import type { Skeleton } from './Skeleton';
3
+ import type { StringMap, ISkin } from '@pixi-spine/base';
4
+ /**
5
+ * @public
6
+ */
7
+ export declare class Skin implements ISkin {
8
+ name: string;
9
+ attachments: StringMap<Attachment>[];
10
+ constructor(name: string);
11
+ addAttachment(slotIndex: number, name: string, attachment: Attachment): void;
12
+ /** @return May be null. */
13
+ getAttachment(slotIndex: number, name: string): Attachment;
14
+ /** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
15
+ attachAll(skeleton: Skeleton, oldSkin: Skin): void;
16
+ }
@@ -0,0 +1,27 @@
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
+ attachmentVertices: number[];
17
+ constructor(data: SlotData, bone: Bone);
18
+ /** @return May be null. */
19
+ getAttachment(): Attachment;
20
+ /** Sets the attachment and if it changed, resets {@link #getAttachmentTime()} and clears {@link #getAttachmentVertices()}.
21
+ * @param attachment May be null. */
22
+ setAttachment(attachment: Attachment): void;
23
+ setAttachmentTime(time: number): void;
24
+ /** Returns the time since the attachment was set. */
25
+ getAttachmentTime(): number;
26
+ setToSetupPose(): void;
27
+ }
@@ -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,26 @@
1
+ import type { Constraint } from './Constraint';
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 Constraint {
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
+ constructor(data: TransformConstraintData, skeleton: Skeleton);
19
+ apply(): void;
20
+ update(): void;
21
+ applyAbsoluteWorld(): void;
22
+ applyRelativeWorld(): void;
23
+ applyAbsoluteLocal(): void;
24
+ applyRelativeLocal(): void;
25
+ getOrder(): number;
26
+ }
@@ -0,0 +1,23 @@
1
+ import type { BoneData } from './BoneData';
2
+ /**
3
+ * @public
4
+ */
5
+ export declare class TransformConstraintData {
6
+ name: string;
7
+ order: number;
8
+ bones: BoneData[];
9
+ target: BoneData;
10
+ rotateMix: number;
11
+ translateMix: number;
12
+ scaleMix: number;
13
+ shearMix: number;
14
+ offsetRotation: number;
15
+ offsetX: number;
16
+ offsetY: number;
17
+ offsetScaleX: number;
18
+ offsetScaleY: number;
19
+ offsetShearY: number;
20
+ relative: boolean;
21
+ local: boolean;
22
+ constructor(name: string);
23
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export interface Updatable {
5
+ update(): void;
6
+ }
@@ -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,30 @@
1
+ import type { IAttachment, ArrayLike, AttachmentType } from '@pixi-spine/base';
2
+ import type { Slot } from '../Slot';
3
+ /**
4
+ * @public
5
+ */
6
+ export declare abstract class Attachment implements IAttachment {
7
+ name: string;
8
+ type: AttachmentType;
9
+ constructor(name: string);
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ export declare abstract class VertexAttachment extends Attachment {
15
+ private static nextID;
16
+ id: number;
17
+ bones: Array<number>;
18
+ vertices: ArrayLike<number>;
19
+ worldVerticesLength: number;
20
+ constructor(name: string);
21
+ computeWorldVerticesOld(slot: Slot, worldVertices: ArrayLike<number>): void;
22
+ /** Transforms local vertices to world coordinates.
23
+ * @param start The index of the first local vertex value to transform. Each vertex has 2 values, x and y.
24
+ * @param count The number of world vertex values to output. Must be <= {@link #getWorldVerticesLength()} - start.
25
+ * @param worldVertices The output world vertices. Must have a length >= offset + count.
26
+ * @param offset The worldVertices index to begin writing values. */
27
+ computeWorldVertices(slot: Slot, start: number, count: number, worldVertices: ArrayLike<number>, offset: number, stride: number): void;
28
+ /** Returns true if a deform originally applied to the specified attachment should be applied to this attachment. */
29
+ applyDeform(sourceAttachment: VertexAttachment): boolean;
30
+ }
@@ -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,10 @@
1
+ import { 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
+ }
@@ -0,0 +1,12 @@
1
+ import { 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
+ }
@@ -0,0 +1,23 @@
1
+ import { 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
+ uvs: ArrayLike<number>;
12
+ triangles: Array<number>;
13
+ color: Color;
14
+ hullLength: number;
15
+ private parentMesh;
16
+ inheritDeform: boolean;
17
+ tempColor: Color;
18
+ constructor(name: string);
19
+ applyDeform(sourceAttachment: VertexAttachment): boolean;
20
+ getParentMesh(): MeshAttachment;
21
+ /** @param parentMesh May be null. */
22
+ setParentMesh(parentMesh: MeshAttachment): void;
23
+ }
@@ -0,0 +1,13 @@
1
+ import { 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
+ }
@@ -0,0 +1,16 @@
1
+ import { 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
+ }
@@ -0,0 +1,68 @@
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
+ }
@@ -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
+ }