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.
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,237 @@
1
+ import { Color, StringMap, Vector2 } from './Utils';
2
+ import type { Matrix } from 'pixi.js';
3
+ /**
4
+ * @public
5
+ */
6
+ export declare enum BLEND_MODES {
7
+ NORMAL = 0,
8
+ ADD = 1,
9
+ MULTIPLY = 2,
10
+ SCREEN = 3
11
+ }
12
+ import type { AttachmentType } from './AttachmentType';
13
+ import type { IAnimation, IEventData } from './IAnimation';
14
+ import type { IIkConstraintData, IPathConstraintData, ITransformConstraintData } from './IConstraint';
15
+ import type { TextureRegion } from './TextureRegion';
16
+ /** Determines how a bone inherits world transforms from parent bones.
17
+ * @public
18
+ * */
19
+ export declare enum TransformMode {
20
+ Normal = 0,
21
+ OnlyTranslation = 1,
22
+ NoRotationOrReflection = 2,
23
+ NoScale = 3,
24
+ NoScaleOrReflection = 4
25
+ }
26
+ /**
27
+ * @public
28
+ */
29
+ export interface IBone {
30
+ active: boolean;
31
+ data: IBoneData;
32
+ matrix?: Matrix;
33
+ }
34
+ /**
35
+ * @public
36
+ */
37
+ export interface ISkin {
38
+ name: string;
39
+ attachments: Array<StringMap<IAttachment>>;
40
+ getAttachment(slotIndex: number, name: string): IAttachment | null;
41
+ }
42
+ /**
43
+ * @public
44
+ */
45
+ export interface IAttachment {
46
+ name: string;
47
+ type: AttachmentType;
48
+ readonly sequence?: ISequence;
49
+ }
50
+ /**
51
+ * @public
52
+ */
53
+ export interface IHasTextureRegion {
54
+ /** The name used to find the {@link #region()}. */
55
+ path: string;
56
+ /** The region used to draw the attachment. After setting the region or if the region's properties are changed,
57
+ * {@link #updateRegion()} must be called. */
58
+ region: TextureRegion | null;
59
+ /** Updates any values the attachment calculates using the {@link #getRegion()}. Must be called after setting the
60
+ * {@link #getRegion()} or if the region's properties are changed. */
61
+ /** The color to tint the attachment. */
62
+ color: Color;
63
+ readonly sequence: ISequence | null;
64
+ }
65
+ /**
66
+ * @public
67
+ */
68
+ export interface ISequence {
69
+ id: number;
70
+ regions: TextureRegion[];
71
+ apply(slot: ISlot, attachment: IHasTextureRegion): void;
72
+ }
73
+ /**
74
+ * @public
75
+ */
76
+ export interface IVertexAttachment<Slot extends ISlot = ISlot> extends IAttachment {
77
+ id: number;
78
+ computeWorldVerticesOld(slot: Slot, worldVertices: ArrayLike<number>): void;
79
+ computeWorldVertices(slot: Slot, start: number, count: number, worldVertices: ArrayLike<number>, offset: number, stride: number): void;
80
+ worldVerticesLength: number;
81
+ }
82
+ /**
83
+ * @public
84
+ */
85
+ export interface IClippingAttachment extends IVertexAttachment {
86
+ endSlot?: ISlotData;
87
+ }
88
+ /**
89
+ * @public
90
+ */
91
+ export interface IRegionAttachment extends IAttachment {
92
+ region: TextureRegion;
93
+ color: Color;
94
+ x: any;
95
+ y: any;
96
+ scaleX: any;
97
+ scaleY: any;
98
+ rotation: any;
99
+ width: any;
100
+ height: number;
101
+ }
102
+ /**
103
+ * @public
104
+ */
105
+ export interface IMeshAttachment extends IVertexAttachment {
106
+ region: TextureRegion;
107
+ color: Color;
108
+ regionUVs: Float32Array;
109
+ triangles: number[];
110
+ hullLength: number;
111
+ }
112
+ /**
113
+ * @public
114
+ */
115
+ export interface ISlotData {
116
+ index: number;
117
+ name: string;
118
+ boneData: IBoneData;
119
+ color: Color;
120
+ darkColor: Color;
121
+ attachmentName: string;
122
+ blendMode: BLEND_MODES;
123
+ }
124
+ /**
125
+ * @public
126
+ */
127
+ export interface IBoneData {
128
+ index: number;
129
+ name: string;
130
+ parent: IBoneData;
131
+ length: number;
132
+ x: number;
133
+ y: number;
134
+ rotation: number;
135
+ scaleX: number;
136
+ scaleY: number;
137
+ shearX: number;
138
+ shearY: number;
139
+ transformMode: TransformMode;
140
+ }
141
+ /**
142
+ * @public
143
+ */
144
+ export interface ISlot {
145
+ getAttachment(): IAttachment;
146
+ data: ISlotData;
147
+ color: Color;
148
+ darkColor: Color;
149
+ blendMode: number;
150
+ bone: IBone;
151
+ sprites?: any;
152
+ currentSprite?: any;
153
+ currentSpriteName?: string;
154
+ meshes?: any;
155
+ currentMesh?: any;
156
+ currentMeshName?: string;
157
+ currentMeshId?: number;
158
+ currentGraphics?: any;
159
+ clippingContainer?: any;
160
+ hackRegion?: TextureRegion;
161
+ hackAttachment?: IAttachment;
162
+ }
163
+ /**
164
+ * @public
165
+ */
166
+ export interface ISkeleton<SkeletonData extends ISkeletonData = ISkeletonData, Bone extends IBone = IBone, Slot extends ISlot = ISlot, Skin extends ISkin = ISkin> {
167
+ bones: Bone[];
168
+ slots: Slot[];
169
+ drawOrder: Slot[];
170
+ skin: Skin;
171
+ data: SkeletonData;
172
+ x: number;
173
+ y: number;
174
+ updateWorldTransform(physics?: Physics): void;
175
+ setToSetupPose(): void;
176
+ findSlotIndex(slotName: string): number;
177
+ getAttachmentByName(slotName: string, attachmentName: string): IAttachment;
178
+ setBonesToSetupPose(): void;
179
+ setSlotsToSetupPose(): void;
180
+ findBone(boneName: string): Bone;
181
+ findSlot(slotName: string): Slot;
182
+ findBoneIndex(boneName: string): number;
183
+ findSlotIndex(slotName: string): number;
184
+ setSkinByName(skinName: string): void;
185
+ setAttachment(slotName: string, attachmentName: string): void;
186
+ getBounds(offset: Vector2, size: Vector2, temp: Array<number>): void;
187
+ }
188
+ /**
189
+ * @public
190
+ */
191
+ export interface ISkeletonParser {
192
+ scale: number;
193
+ }
194
+ /**
195
+ * @public
196
+ */
197
+ export interface ISkeletonData<BoneData extends IBoneData = IBoneData, SlotData extends ISlotData = ISlotData, Skin extends ISkin = ISkin, Animation extends IAnimation = IAnimation, EventData extends IEventData = IEventData, IkConstraintData extends IIkConstraintData = IIkConstraintData, TransformConstraintData extends ITransformConstraintData = ITransformConstraintData, PathConstraintData extends IPathConstraintData = IPathConstraintData> {
198
+ [x: string]: any;
199
+ name: string;
200
+ bones: BoneData[];
201
+ slots: SlotData[];
202
+ skins: Skin[];
203
+ defaultSkin: Skin;
204
+ events: EventData[];
205
+ animations: Animation[];
206
+ version: string;
207
+ hash: string;
208
+ width: number;
209
+ height: number;
210
+ ikConstraints: IkConstraintData[];
211
+ transformConstraints: TransformConstraintData[];
212
+ pathConstraints: PathConstraintData[];
213
+ findBone(boneName: string): BoneData | null;
214
+ findBoneIndex(boneName: string): number;
215
+ findSlot(slotName: string): SlotData | null;
216
+ findSlotIndex(slotName: string): number;
217
+ findSkin(skinName: string): Skin | null;
218
+ findEvent(eventDataName: string): EventData | null;
219
+ findAnimation(animationName: string): Animation | null;
220
+ findIkConstraint(constraintName: string): IkConstraintData | null;
221
+ findTransformConstraint(constraintName: string): TransformConstraintData | null;
222
+ findPathConstraint(constraintName: string): PathConstraintData | null;
223
+ }
224
+ /** Determines how physics and other non-deterministic updates are applied. */
225
+ /**
226
+ * @public
227
+ */
228
+ export declare enum Physics {
229
+ /** Physics are not updated or applied. */
230
+ none = 0,
231
+ /** Physics are reset to the current pose. */
232
+ reset = 1,
233
+ /** Physics are updated and the pose from physics is applied. */
234
+ update = 2,
235
+ /** Physics are not updated but the pose from physics is applied. */
236
+ pose = 3
237
+ }
@@ -0,0 +1,51 @@
1
+ import type { ISkeleton, IVertexAttachment } from './ISkeleton';
2
+ import { NumberArrayLike } from './Utils';
3
+ /** Collects each visible 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 SkeletonBoundsBase<BoundingBoxAttachment extends IVertexAttachment> {
8
+ /** The left edge of the axis aligned bounding box. */
9
+ minX: number;
10
+ /** The bottom edge of the axis aligned bounding box. */
11
+ minY: number;
12
+ /** The right edge of the axis aligned bounding box. */
13
+ maxX: number;
14
+ /** The top edge of the axis aligned bounding box. */
15
+ maxY: number;
16
+ /** The visible bounding boxes. */
17
+ boundingBoxes: BoundingBoxAttachment[];
18
+ /** The world vertices for the bounding box polygons. */
19
+ polygons: NumberArrayLike[];
20
+ private polygonPool;
21
+ /** Clears any previous polygons, finds all visible bounding box attachments, and computes the world vertices for each bounding
22
+ * box's polygon.
23
+ * @param updateAabb If true, the axis aligned bounding box containing all the polygons is computed. If false, the
24
+ * SkeletonBounds AABB methods will always return true. */
25
+ update(skeleton: ISkeleton, updateAabb: boolean): void;
26
+ aabbCompute(): void;
27
+ /** Returns true if the axis aligned bounding box contains the point. */
28
+ aabbContainsPoint(x: number, y: number): boolean;
29
+ /** Returns true if the axis aligned bounding box intersects the line segment. */
30
+ aabbIntersectsSegment(x1: number, y1: number, x2: number, y2: number): boolean;
31
+ /** Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds. */
32
+ aabbIntersectsSkeleton(bounds: SkeletonBoundsBase<BoundingBoxAttachment>): boolean;
33
+ /** Returns the first bounding box attachment that contains the point, or null. When doing many checks, it is usually more
34
+ * efficient to only call this method if {@link #aabbContainsPoint(float, float)} returns true.
35
+ * Cannot be done here because BoundingBoxAttachment is not a thing yet*/
36
+ containsPoint(x: number, y: number): BoundingBoxAttachment | null;
37
+ /** Returns true if the polygon contains the point. */
38
+ containsPointPolygon(polygon: NumberArrayLike, x: number, y: number): boolean;
39
+ /** Returns the first bounding box attachment that contains any part of the line segment, or null. When doing many checks, it
40
+ * is usually more efficient to only call this method if {@link #aabbIntersectsSegment()} returns
41
+ * true. */
42
+ intersectsSegment(x1: number, y1: number, x2: number, y2: number): BoundingBoxAttachment;
43
+ /** Returns true if the polygon contains any part of the line segment. */
44
+ intersectsSegmentPolygon(polygon: NumberArrayLike, x1: number, y1: number, x2: number, y2: number): boolean;
45
+ /** Returns the polygon for the specified bounding box, or null. */
46
+ getPolygon(boundingBox: BoundingBoxAttachment): NumberArrayLike;
47
+ /** The width of the axis aligned bounding box. */
48
+ getWidth(): number;
49
+ /** The height of the axis aligned bounding box. */
50
+ getHeight(): number;
51
+ }
@@ -0,0 +1,41 @@
1
+ import { Texture } from 'pixi.js';
2
+ import { TextureFilter, TextureRegion, TextureWrap } from './TextureRegion';
3
+ import type { TextureSource as BaseTexture } from 'pixi.js';
4
+ import type { Disposable, StringMap } from './Utils';
5
+ /**
6
+ * @public
7
+ */
8
+ export declare class TextureAtlas implements Disposable {
9
+ pages: TextureAtlasPage[];
10
+ regions: TextureAtlasRegion[];
11
+ constructor(atlasText?: string, textureLoader?: (path: string, loaderFunction: (tex: BaseTexture) => any) => any, callback?: (obj: TextureAtlas) => any);
12
+ addTexture(name: string, texture: Texture): TextureAtlasRegion;
13
+ addTextureHash(textures: StringMap<Texture>, stripExtension: boolean): void;
14
+ addSpineAtlas(atlasText: string, textureLoader: (path: string, loaderFunction: (tex: BaseTexture) => any) => any, callback: (obj: TextureAtlas) => any): void;
15
+ private load;
16
+ findRegion(name: string): TextureAtlasRegion;
17
+ dispose(): void;
18
+ }
19
+ /**
20
+ * @public
21
+ */
22
+ export declare class TextureAtlasPage {
23
+ name: string;
24
+ minFilter: TextureFilter;
25
+ magFilter: TextureFilter;
26
+ uWrap: TextureWrap;
27
+ vWrap: TextureWrap;
28
+ baseTexture: BaseTexture;
29
+ width: number;
30
+ height: number;
31
+ pma: boolean;
32
+ setFilters(): void;
33
+ }
34
+ /**
35
+ * @public
36
+ */
37
+ export declare class TextureAtlasRegion extends TextureRegion {
38
+ page: TextureAtlasPage;
39
+ name: string;
40
+ index: number;
41
+ }
@@ -0,0 +1,55 @@
1
+ import type { Texture, Rectangle } from 'pixi.js';
2
+ /**
3
+ * @public
4
+ */
5
+ export declare function filterFromString(text: string): TextureFilter;
6
+ /**
7
+ * @public
8
+ */
9
+ export declare function wrapFromString(text: string): TextureWrap;
10
+ /**
11
+ * @public
12
+ */
13
+ export declare enum TextureFilter {
14
+ Nearest = 9728,// WebGLRenderingContext.NEAREST
15
+ Linear = 9729,// WebGLRenderingContext.LINEAR
16
+ MipMap = 9987,// WebGLRenderingContext.LINEAR_MIPMAP_LINEAR
17
+ MipMapNearestNearest = 9984,// WebGLRenderingContext.NEAREST_MIPMAP_NEAREST
18
+ MipMapLinearNearest = 9985,// WebGLRenderingContext.LINEAR_MIPMAP_NEAREST
19
+ MipMapNearestLinear = 9986,// WebGLRenderingContext.NEAREST_MIPMAP_LINEAR
20
+ MipMapLinearLinear = 9987
21
+ }
22
+ /**
23
+ * @public
24
+ */
25
+ export declare enum TextureWrap {
26
+ MirroredRepeat = 33648,// WebGLRenderingContext.MIRRORED_REPEAT
27
+ ClampToEdge = 33071,// WebGLRenderingContext.CLAMP_TO_EDGE
28
+ Repeat = 10497
29
+ }
30
+ /**
31
+ * @public
32
+ */
33
+ export declare class TextureRegion {
34
+ texture: Texture;
35
+ size: Rectangle;
36
+ names: string[];
37
+ values: number[][];
38
+ renderObject: any;
39
+ get width(): number;
40
+ get height(): number;
41
+ get u(): number;
42
+ get v(): number;
43
+ get u2(): number;
44
+ get v2(): number;
45
+ get offsetX(): number;
46
+ get offsetY(): number;
47
+ get pixiOffsetY(): number;
48
+ get spineOffsetY(): number;
49
+ get originalWidth(): number;
50
+ get originalHeight(): number;
51
+ get x(): number;
52
+ get y(): number;
53
+ get rotate(): boolean;
54
+ get degrees(): number;
55
+ }
@@ -0,0 +1,198 @@
1
+ import type { ISkeleton } from './ISkeleton';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface StringMap<T> {
6
+ [key: string]: T;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export declare class IntSet {
12
+ array: number[];
13
+ add(value: number): boolean;
14
+ contains(value: number): boolean;
15
+ remove(value: number): void;
16
+ clear(): void;
17
+ }
18
+ /**
19
+ * @public
20
+ */
21
+ export declare class StringSet {
22
+ entries: StringMap<boolean>;
23
+ size: number;
24
+ add(value: string): boolean;
25
+ addAll(values: string[]): boolean;
26
+ contains(value: string): boolean;
27
+ clear(): void;
28
+ }
29
+ /**
30
+ * @public
31
+ */
32
+ export interface NumberArrayLike {
33
+ readonly length: number;
34
+ [n: number]: number;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export type IntArrayLike = Array<number> | Int16Array;
40
+ /**
41
+ * @public
42
+ */
43
+ export interface Disposable {
44
+ dispose(): void;
45
+ }
46
+ /**
47
+ * @public
48
+ */
49
+ export interface Restorable {
50
+ restore(): void;
51
+ }
52
+ /**
53
+ * @public
54
+ */
55
+ export declare class Color {
56
+ r: number;
57
+ g: number;
58
+ b: number;
59
+ a: number;
60
+ static WHITE: Color;
61
+ static RED: Color;
62
+ static GREEN: Color;
63
+ static BLUE: Color;
64
+ static MAGENTA: Color;
65
+ constructor(r?: number, g?: number, b?: number, a?: number);
66
+ set(r: number, g: number, b: number, a: number): this;
67
+ setFromColor(c: Color): this;
68
+ setFromString(hex: string): this;
69
+ add(r: number, g: number, b: number, a: number): this;
70
+ clamp(): this;
71
+ static rgba8888ToColor(color: Color, value: number): void;
72
+ static rgb888ToColor(color: Color, value: number): void;
73
+ static fromString(hex: string): Color;
74
+ }
75
+ /**
76
+ * @public
77
+ */
78
+ export declare class MathUtils {
79
+ static PI: number;
80
+ static PI2: number;
81
+ static invPI2: number;
82
+ static radiansToDegrees: number;
83
+ static radDeg: number;
84
+ static degreesToRadians: number;
85
+ static degRad: number;
86
+ static clamp(value: number, min: number, max: number): number;
87
+ static cosDeg(degrees: number): number;
88
+ static sinDeg(degrees: number): number;
89
+ static atan2Deg(y: number, x: number): number;
90
+ static signum(value: number): number;
91
+ static toInt(x: number): number;
92
+ static cbrt(x: number): number;
93
+ static randomTriangular(min: number, max: number): number;
94
+ static randomTriangularWith(min: number, max: number, mode: number): number;
95
+ static isPowerOfTwo(value: number): boolean;
96
+ }
97
+ /**
98
+ * @public
99
+ */
100
+ export declare abstract class Interpolation {
101
+ protected abstract applyInternal(a: number): number;
102
+ apply(start: number, end: number, a: number): number;
103
+ }
104
+ /**
105
+ * @public
106
+ */
107
+ export declare class Pow extends Interpolation {
108
+ protected power: number;
109
+ constructor(power: number);
110
+ applyInternal(a: number): number;
111
+ }
112
+ /**
113
+ * @public
114
+ */
115
+ export declare class PowOut extends Pow {
116
+ applyInternal(a: number): number;
117
+ }
118
+ /**
119
+ * @public
120
+ */
121
+ export declare class Utils {
122
+ static SUPPORTS_TYPED_ARRAYS: boolean;
123
+ static arrayCopy<T>(source: ArrayLike<T>, sourceStart: number, dest: ArrayLike<T>, destStart: number, numElements: number): void;
124
+ static arrayFill<T>(array: ArrayLike<T>, fromIndex: number, toIndex: number, value: T): void;
125
+ static setArraySize<T>(array: Array<T>, size: number, value?: any): Array<T>;
126
+ static ensureArrayCapacity<T>(array: Array<T>, size: number, value?: any): Array<T>;
127
+ static newArray<T>(size: number, defaultValue: T): Array<T>;
128
+ static newFloatArray(size: number): NumberArrayLike;
129
+ static newShortArray(size: number): IntArrayLike;
130
+ static toFloatArray(array: Array<number>): number[] | Float32Array;
131
+ static toSinglePrecision(value: number): number;
132
+ static webkit602BugfixHelper(alpha: number, blend: any): void;
133
+ static contains<T>(array: Array<T>, element: T, identity?: boolean): boolean;
134
+ static enumValue(type: any, name: string): any;
135
+ }
136
+ /**
137
+ * @public
138
+ */
139
+ export declare class DebugUtils {
140
+ static logBones(skeleton: ISkeleton): void;
141
+ }
142
+ /**
143
+ * @public
144
+ */
145
+ export declare class Pool<T> {
146
+ private items;
147
+ private instantiator;
148
+ constructor(instantiator: () => T);
149
+ obtain(): T;
150
+ free(item: T): void;
151
+ freeAll(items: ArrayLike<T>): void;
152
+ clear(): void;
153
+ }
154
+ /**
155
+ * @public
156
+ */
157
+ export declare class Vector2 {
158
+ x: number;
159
+ y: number;
160
+ constructor(x?: number, y?: number);
161
+ set(x: number, y: number): Vector2;
162
+ length(): number;
163
+ normalize(): this;
164
+ }
165
+ /**
166
+ * @public
167
+ */
168
+ export declare class TimeKeeper {
169
+ maxDelta: number;
170
+ framesPerSecond: number;
171
+ delta: number;
172
+ totalTime: number;
173
+ private lastTime;
174
+ private frameCount;
175
+ private frameTime;
176
+ update(): void;
177
+ }
178
+ /**
179
+ * @public
180
+ */
181
+ export interface ArrayLike<T> {
182
+ length: number;
183
+ [n: number]: T;
184
+ }
185
+ /**
186
+ * @public
187
+ */
188
+ export declare class WindowedMean {
189
+ values: Array<number>;
190
+ addedValues: number;
191
+ lastValue: number;
192
+ mean: number;
193
+ dirty: boolean;
194
+ constructor(windowSize?: number);
195
+ hasEnoughData(): boolean;
196
+ addValue(value: number): void;
197
+ getMean(): number;
198
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export declare enum SPINE_VERSION {
5
+ UNKNOWN = 0,
6
+ VER37 = 37,
7
+ VER38 = 38,
8
+ VER40 = 40,
9
+ VER41 = 41,
10
+ VER42 = 42
11
+ }
12
+ /**
13
+ * @public
14
+ */
15
+ export declare function detectSpineVersion(version: string): SPINE_VERSION;
@@ -0,0 +1,14 @@
1
+ /// <reference types="packages/base/global" />
2
+ export * from './core/AttachmentType';
3
+ export * from './core/BinaryInput';
4
+ export * from './core/IAnimation';
5
+ export * from './core/IConstraint';
6
+ export * from './core/ISkeleton';
7
+ export * from './core/SkeletonBoundsBase';
8
+ export * from './core/TextureAtlas';
9
+ export * from './core/TextureRegion';
10
+ export * from './core/Utils';
11
+ export * from './core/versions';
12
+ export * from './settings';
13
+ export * from './SpineBase';
14
+ export * from './SpineDebugRenderer';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export declare const settings: {
5
+ yDown: boolean;
6
+ /**
7
+ * pixi-spine gives option to not fail at certain parsing errors
8
+ * spine-ts fails here
9
+ */
10
+ FAIL_ON_NON_EXISTING_SKIN: boolean;
11
+ /**
12
+ * past Spine.globalAutoUpdate
13
+ */
14
+ GLOBAL_AUTO_UPDATE: boolean;
15
+ /**
16
+ * past Spine.globalDelayLimit
17
+ */
18
+ GLOBAL_DELAY_LIMIT: number;
19
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="packages/loader-3.8/global" />
2
+ import '@pixi-spine/loader-base';
@@ -0,0 +1,2 @@
1
+ /// <reference types="packages/loader-4.0/global" />
2
+ import '@pixi-spine/loader-base';
@@ -0,0 +1,2 @@
1
+ /// <reference types="packages/loader-4.1/global" />
2
+ import '@pixi-spine/loader-base';
@@ -0,0 +1,2 @@
1
+ /// <reference types="packages/loader-4.2/global" />
2
+ import '@pixi-spine/loader-base';
@@ -0,0 +1,36 @@
1
+ import { Texture, Loader, TextureSource as BaseTexture } from 'pixi.js';
2
+ import { ISkeletonData, ISkeletonParser, TextureAtlas } from '@pixi-spine/base';
3
+ /**
4
+ * This abstract class is used to create a spine loader specifically for a needed version
5
+ * @public
6
+ */
7
+ export declare abstract class SpineLoaderAbstract<SKD extends ISkeletonData> {
8
+ constructor();
9
+ abstract createJsonParser(): ISkeletonParser;
10
+ abstract createBinaryParser(): ISkeletonParser;
11
+ abstract parseData(parser: ISkeletonParser, atlas: TextureAtlas, dataToParse: any): ISpineResource<SKD>;
12
+ installLoader(): any;
13
+ }
14
+ /**
15
+ * The final spineData+spineAtlas object that can be used to create a Spine.
16
+ * @public
17
+ */
18
+ export interface ISpineResource<SKD extends ISkeletonData> {
19
+ spineData: SKD;
20
+ spineAtlas: TextureAtlas;
21
+ }
22
+ /**
23
+ * Metadata for loading spine assets
24
+ * @public
25
+ */
26
+ export interface ISpineMetadata {
27
+ spineSkeletonScale?: number;
28
+ spineAtlas?: Partial<TextureAtlas>;
29
+ spineAtlasAlias?: string[];
30
+ spineAtlasFile?: string;
31
+ atlasRawData?: string;
32
+ imageLoader?: (loader: Loader, path: string) => (path: string, callback: (tex: BaseTexture) => any) => any;
33
+ imageMetadata?: any;
34
+ images?: Record<string, Texture | BaseTexture>;
35
+ image?: Texture | BaseTexture;
36
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Ugly function to promisify the spine texture atlas loader function.
3
+ * @public
4
+ */
5
+ export declare const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject: (loader: any, atlasBasePath: string, imageMetadata: any) => (pageName: string, textureLoadedCallback: (tex: any) => any) => Promise<void>;