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,544 @@
1
+ import { Attachment, VertexAttachment } from './attachments/Attachment.js';
2
+ import { SequenceMode } from './attachments/Sequence.js';
3
+ import { Event } from './Event.js';
4
+ import { PhysicsConstraint } from './PhysicsConstraint.js';
5
+ import { PhysicsConstraintData } from './PhysicsConstraintData.js';
6
+ import { Skeleton } from './Skeleton.js';
7
+ import { Slot } from './Slot.js';
8
+ import { IAnimation, IHasTextureRegion, ITimeline, NumberArrayLike, StringSet, TransformMode } from '@pixi-spine/base';
9
+ /** A simple container for a list of timelines and a name.
10
+ * @public
11
+ * */
12
+ export declare class Animation implements IAnimation<Timeline> {
13
+ /** The animation's name, which is unique across all animations in the skeleton. */
14
+ name: string;
15
+ timelines: Array<Timeline>;
16
+ timelineIds: StringSet;
17
+ /** The duration of the animation in seconds, which is the highest time of all keys in the timeline. */
18
+ duration: number;
19
+ constructor(name: string, timelines: Array<Timeline>, duration: number);
20
+ setTimelines(timelines: Array<Timeline>): void;
21
+ hasTimeline(ids: string[]): boolean;
22
+ /** Applies all the animation's timelines to the specified skeleton.
23
+ *
24
+ * See Timeline {@link Timeline#apply(Skeleton, float, float, Array, float, MixBlend, MixDirection)}.
25
+ * @param loop If true, the animation repeats after {@link #getDuration()}.
26
+ * @param events May be null to ignore fired events. */
27
+ apply(skeleton: Skeleton, lastTime: number, time: number, loop: boolean, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
28
+ }
29
+ /** Controls how a timeline value is mixed with the setup pose value or current pose value when a timeline's `alpha`
30
+ * < 1.
31
+ * @public
32
+ * See Timeline {@link Timeline#apply(Skeleton, float, float, Array, float, MixBlend, MixDirection)}. */
33
+ export declare enum MixBlend {
34
+ /** Transitions from the setup value to the timeline value (the current value is not used). Before the first key, the setup
35
+ * value is set. */
36
+ setup = 0,
37
+ /** Transitions from the current value to the timeline value. Before the first key, transitions from the current value to
38
+ * the setup value. Timelines which perform instant transitions, such as {@link DrawOrderTimeline} or
39
+ * {@link AttachmentTimeline}, use the setup value before the first key.
40
+ *
41
+ * `first` is intended for the first animations applied, not for animations layered on top of those. */
42
+ first = 1,
43
+ /** Transitions from the current value to the timeline value. No change is made before the first key (the current value is
44
+ * kept until the first key).
45
+ *
46
+ * `replace` is intended for animations layered on top of others, not for the first animations applied. */
47
+ replace = 2,
48
+ /** Transitions from the current value to the current value plus the timeline value. No change is made before the first key
49
+ * (the current value is kept until the first key).
50
+ *
51
+ * `add` is intended for animations layered on top of others, not for the first animations applied. Properties
52
+ * keyed by additive animations must be set manually or by another animation before applying the additive animations, else
53
+ * the property values will increase continually. */
54
+ add = 3
55
+ }
56
+ /** Indicates whether a timeline's `alpha` is mixing out over time toward 0 (the setup or current pose value) or
57
+ * mixing in toward 1 (the timeline's value).
58
+ * @public
59
+ * See Timeline {@link Timeline#apply(Skeleton, float, float, Array, float, MixBlend, MixDirection)}. */
60
+ export declare enum MixDirection {
61
+ mixIn = 0,
62
+ mixOut = 1
63
+ }
64
+ /** The interface for all timelines.
65
+ * @public
66
+ * */
67
+ export declare abstract class Timeline implements ITimeline {
68
+ propertyIds: string[];
69
+ frames: NumberArrayLike;
70
+ constructor(frameCount: number, propertyIds: string[]);
71
+ getPropertyIds(): string[];
72
+ getFrameEntries(): number;
73
+ getFrameCount(): number;
74
+ getDuration(): number;
75
+ abstract apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event> | null, alpha: number, blend: MixBlend, direction: MixDirection): void;
76
+ static search1(frames: NumberArrayLike, time: number): number;
77
+ static search(frames: NumberArrayLike, time: number, step: number): number;
78
+ }
79
+ /**
80
+ * @public
81
+ */
82
+ export interface BoneTimeline {
83
+ /** The index of the bone in {@link Skeleton#bones} that will be changed. */
84
+ boneIndex: number;
85
+ }
86
+ /**
87
+ * @public
88
+ */
89
+ export interface SlotTimeline {
90
+ /** The index of the slot in {@link Skeleton#slots} that will be changed. */
91
+ slotIndex: number;
92
+ }
93
+ /** The base class for timelines that use interpolation between key frame values.
94
+ * @public
95
+ * */
96
+ export declare abstract class CurveTimeline extends Timeline {
97
+ protected curves: NumberArrayLike;
98
+ constructor(frameCount: number, bezierCount: number, propertyIds: string[]);
99
+ /** Sets the specified key frame to linear interpolation. */
100
+ setLinear(frame: number): void;
101
+ /** Sets the specified key frame to stepped interpolation. */
102
+ setStepped(frame: number): void;
103
+ /** Shrinks the storage for Bezier curves, for use when <code>bezierCount</code> (specified in the constructor) was larger
104
+ * than the actual number of Bezier curves. */
105
+ shrink(bezierCount: number): void;
106
+ /** Stores the segments for the specified Bezier curve. For timelines that modify multiple values, there may be more than
107
+ * one curve per frame.
108
+ * @param bezier The ordinal of this Bezier curve for this timeline, between 0 and <code>bezierCount - 1</code> (specified
109
+ * in the constructor), inclusive.
110
+ * @param frame Between 0 and <code>frameCount - 1</code>, inclusive.
111
+ * @param value The index of the value for this frame that this curve is used for.
112
+ * @param time1 The time for the first key.
113
+ * @param value1 The value for the first key.
114
+ * @param cx1 The time for the first Bezier handle.
115
+ * @param cy1 The value for the first Bezier handle.
116
+ * @param cx2 The time of the second Bezier handle.
117
+ * @param cy2 The value for the second Bezier handle.
118
+ * @param time2 The time for the second key.
119
+ * @param value2 The value for the second key. */
120
+ setBezier(bezier: number, frame: number, value: number, time1: number, value1: number, cx1: number, cy1: number, cx2: number, cy2: number, time2: number, value2: number): void;
121
+ /** Returns the Bezier interpolated value for the specified time.
122
+ * @param frameIndex The index into {@link #getFrames()} for the values of the frame before <code>time</code>.
123
+ * @param valueOffset The offset from <code>frameIndex</code> to the value this curve is used for.
124
+ * @param i The index of the Bezier segments. See {@link #getCurveType(int)}. */
125
+ getBezierValue(time: number, frameIndex: number, valueOffset: number, i: number): number;
126
+ }
127
+ /**
128
+ * @public
129
+ */
130
+ export declare abstract class CurveTimeline1 extends CurveTimeline {
131
+ constructor(frameCount: number, bezierCount: number, propertyId: string);
132
+ getFrameEntries(): number;
133
+ /** Sets the time and value for the specified frame.
134
+ * @param frame Between 0 and <code>frameCount</code>, inclusive.
135
+ * @param time The frame time in seconds. */
136
+ setFrame(frame: number, time: number, value: number): void;
137
+ /** Returns the interpolated value for the specified time. */
138
+ getCurveValue(time: number): number;
139
+ getRelativeValue(time: number, alpha: number, blend: MixBlend, current: number, setup: number): number;
140
+ getAbsoluteValue(time: number, alpha: number, blend: MixBlend, current: number, setup: number): number;
141
+ getAbsoluteValue2(time: number, alpha: number, blend: MixBlend, current: number, setup: number, value: number): number;
142
+ getScaleValue(time: number, alpha: number, blend: MixBlend, direction: MixDirection, current: number, setup: number): number;
143
+ }
144
+ /** The base class for a {@link CurveTimeline} which sets two properties.
145
+ * @public
146
+ * */
147
+ export declare abstract class CurveTimeline2 extends CurveTimeline {
148
+ /** @param bezierCount The maximum number of Bezier curves. See {@link #shrink(int)}.
149
+ * @param propertyIds Unique identifiers for the properties the timeline modifies. */
150
+ constructor(frameCount: number, bezierCount: number, propertyId1: string, propertyId2: string);
151
+ getFrameEntries(): number;
152
+ /** Sets the time and values for the specified frame.
153
+ * @param frame Between 0 and <code>frameCount</code>, inclusive.
154
+ * @param time The frame time in seconds. */
155
+ setFrame(frame: number, time: number, value1: number, value2: number): void;
156
+ }
157
+ /** Changes a bone's local {@link Bone#rotation}.
158
+ * @public
159
+ * */
160
+ export declare class RotateTimeline extends CurveTimeline1 implements BoneTimeline {
161
+ boneIndex: number;
162
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
163
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event> | null, alpha: number, blend: MixBlend, direction: MixDirection): void;
164
+ }
165
+ /** Changes a bone's local {@link Bone#x} and {@link Bone#y}.
166
+ * @public
167
+ * */
168
+ export declare class TranslateTimeline extends CurveTimeline2 implements BoneTimeline {
169
+ boneIndex: number;
170
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
171
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
172
+ }
173
+ /** Changes a bone's local {@link Bone#x}.
174
+ * @public
175
+ * */
176
+ export declare class TranslateXTimeline extends CurveTimeline1 implements BoneTimeline {
177
+ boneIndex: number;
178
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
179
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
180
+ }
181
+ /** Changes a bone's local {@link Bone#x}.
182
+ * @public
183
+ * */
184
+ export declare class TranslateYTimeline extends CurveTimeline1 implements BoneTimeline {
185
+ boneIndex: number;
186
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
187
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
188
+ }
189
+ /** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}.
190
+ * @public
191
+ * */
192
+ export declare class ScaleTimeline extends CurveTimeline2 implements BoneTimeline {
193
+ boneIndex: number;
194
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
195
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
196
+ }
197
+ /** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}.
198
+ * @public
199
+ * */
200
+ export declare class ScaleXTimeline extends CurveTimeline1 implements BoneTimeline {
201
+ boneIndex: number;
202
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
203
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
204
+ }
205
+ /** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}.
206
+ * @public
207
+ * */
208
+ export declare class ScaleYTimeline extends CurveTimeline1 implements BoneTimeline {
209
+ boneIndex: number;
210
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
211
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
212
+ }
213
+ /** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
214
+ * @public
215
+ * */
216
+ export declare class ShearTimeline extends CurveTimeline2 implements BoneTimeline {
217
+ boneIndex: number;
218
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
219
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
220
+ }
221
+ /** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
222
+ * @public
223
+ * */
224
+ export declare class ShearXTimeline extends CurveTimeline1 implements BoneTimeline {
225
+ boneIndex: number;
226
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
227
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
228
+ }
229
+ /** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
230
+ * @public
231
+ * */
232
+ export declare class ShearYTimeline extends CurveTimeline1 implements BoneTimeline {
233
+ boneIndex: number;
234
+ constructor(frameCount: number, bezierCount: number, boneIndex: number);
235
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
236
+ }
237
+ /**
238
+ * @public
239
+ */
240
+ export declare class InheritTimeline extends Timeline implements BoneTimeline {
241
+ boneIndex: number;
242
+ constructor(frameCount: number, boneIndex: number);
243
+ getFrameEntries(): number;
244
+ /** Sets the transform mode for the specified frame.
245
+ * @param frame Between 0 and <code>frameCount</code>, inclusive.
246
+ * @param time The frame time in seconds. */
247
+ setFrame(frame: number, time: number, transformMode: TransformMode): void;
248
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
249
+ }
250
+ /** Changes a slot's {@link Slot#color}.
251
+ * @public
252
+ * */
253
+ export declare class RGBATimeline extends CurveTimeline implements SlotTimeline {
254
+ slotIndex: number;
255
+ constructor(frameCount: number, bezierCount: number, slotIndex: number);
256
+ getFrameEntries(): number;
257
+ /** Sets the time in seconds, red, green, blue, and alpha for the specified key frame. */
258
+ setFrame(frame: number, time: number, r: number, g: number, b: number, a: number): void;
259
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
260
+ }
261
+ /** Changes a slot's {@link Slot#color}.
262
+ * @public
263
+ * */
264
+ export declare class RGBTimeline extends CurveTimeline implements SlotTimeline {
265
+ slotIndex: number;
266
+ constructor(frameCount: number, bezierCount: number, slotIndex: number);
267
+ getFrameEntries(): number;
268
+ /** Sets the time in seconds, red, green, blue, and alpha for the specified key frame. */
269
+ setFrame(frame: number, time: number, r: number, g: number, b: number): void;
270
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
271
+ }
272
+ /** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}.
273
+ * @public
274
+ * */
275
+ export declare class AlphaTimeline extends CurveTimeline1 implements SlotTimeline {
276
+ slotIndex: number;
277
+ constructor(frameCount: number, bezierCount: number, slotIndex: number);
278
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
279
+ }
280
+ /** Changes a slot's {@link Slot#color} and {@link Slot#darkColor} for two color tinting.
281
+ * @public
282
+ * */
283
+ export declare class RGBA2Timeline extends CurveTimeline implements SlotTimeline {
284
+ slotIndex: number;
285
+ constructor(frameCount: number, bezierCount: number, slotIndex: number);
286
+ getFrameEntries(): number;
287
+ /** Sets the time in seconds, light, and dark colors for the specified key frame. */
288
+ setFrame(frame: number, time: number, r: number, g: number, b: number, a: number, r2: number, g2: number, b2: number): void;
289
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
290
+ }
291
+ /** Changes a slot's {@link Slot#color} and {@link Slot#darkColor} for two color tinting.
292
+ * @public
293
+ * */
294
+ export declare class RGB2Timeline extends CurveTimeline implements SlotTimeline {
295
+ slotIndex: number;
296
+ constructor(frameCount: number, bezierCount: number, slotIndex: number);
297
+ getFrameEntries(): number;
298
+ /** Sets the time in seconds, light, and dark colors for the specified key frame. */
299
+ setFrame(frame: number, time: number, r: number, g: number, b: number, r2: number, g2: number, b2: number): void;
300
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
301
+ }
302
+ /** Changes a slot's {@link Slot#attachment}.
303
+ * @public
304
+ * */
305
+ export declare class AttachmentTimeline extends Timeline implements SlotTimeline {
306
+ slotIndex: number;
307
+ /** The attachment name for each key frame. May contain null values to clear the attachment. */
308
+ attachmentNames: Array<string | null>;
309
+ constructor(frameCount: number, slotIndex: number);
310
+ getFrameCount(): number;
311
+ /** Sets the time in seconds and the attachment name for the specified key frame. */
312
+ setFrame(frame: number, time: number, attachmentName: string | null): void;
313
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
314
+ setAttachment(skeleton: Skeleton, slot: Slot, attachmentName: string | null): void;
315
+ }
316
+ /** Changes a slot's {@link Slot#deform} to deform a {@link VertexAttachment}.
317
+ * @public
318
+ * */
319
+ export declare class DeformTimeline extends CurveTimeline implements SlotTimeline {
320
+ slotIndex: number;
321
+ /** The attachment that will be deformed. */
322
+ attachment: VertexAttachment;
323
+ /** The vertices for each key frame. */
324
+ vertices: Array<NumberArrayLike>;
325
+ constructor(frameCount: number, bezierCount: number, slotIndex: number, attachment: VertexAttachment);
326
+ getFrameCount(): number;
327
+ /** Sets the time in seconds and the vertices for the specified key frame.
328
+ * @param vertices Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights. */
329
+ setFrame(frame: number, time: number, vertices: NumberArrayLike): void;
330
+ /** @param value1 Ignored (0 is used for a deform timeline).
331
+ * @param value2 Ignored (1 is used for a deform timeline). */
332
+ setBezier(bezier: number, frame: number, value: number, time1: number, value1: number, cx1: number, cy1: number, cx2: number, cy2: number, time2: number, value2: number): void;
333
+ getCurvePercent(time: number, frame: number): number;
334
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
335
+ }
336
+ /** Fires an {@link Event} when specific animation times are reached.
337
+ * @public
338
+ * */
339
+ export declare class EventTimeline extends Timeline {
340
+ static propertyIds: string[];
341
+ /** The event for each key frame. */
342
+ events: Array<Event>;
343
+ constructor(frameCount: number);
344
+ getFrameCount(): number;
345
+ /** Sets the time in seconds and the event for the specified key frame. */
346
+ setFrame(frame: number, event: Event): void;
347
+ /** Fires events for frames > `lastTime` and <= `time`. */
348
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
349
+ }
350
+ /** Changes a skeleton's {@link Skeleton#drawOrder}.
351
+ * @public
352
+ * */
353
+ export declare class DrawOrderTimeline extends Timeline {
354
+ static propertyIds: string[];
355
+ /** The draw order for each key frame. See {@link #setFrame(int, float, int[])}. */
356
+ drawOrders: Array<Array<number> | null>;
357
+ constructor(frameCount: number);
358
+ getFrameCount(): number;
359
+ /** Sets the time in seconds and the draw order for the specified key frame.
360
+ * @param drawOrder For each slot in {@link Skeleton#slots}, the index of the new draw order. May be null to use setup pose
361
+ * draw order. */
362
+ setFrame(frame: number, time: number, drawOrder: Array<number> | null): void;
363
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
364
+ }
365
+ /** Changes an IK constraint's {@link IkConstraint#mix}, {@link IkConstraint#softness},
366
+ * {@link IkConstraint#bendDirection}, {@link IkConstraint#stretch}, and {@link IkConstraint#compress}.
367
+ * @public
368
+ * */
369
+ export declare class IkConstraintTimeline extends CurveTimeline {
370
+ /** The index of the IK constraint in {@link Skeleton#getIkConstraints()} that will be changed when this timeline is applied */
371
+ constraintIndex: number;
372
+ constructor(frameCount: number, bezierCount: number, ikConstraintIndex: number);
373
+ getFrameEntries(): number;
374
+ /** Sets the time in seconds, mix, softness, bend direction, compress, and stretch for the specified key frame. */
375
+ setFrame(frame: number, time: number, mix: number, softness: number, bendDirection: number, compress: boolean, stretch: boolean): void;
376
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
377
+ }
378
+ /** Changes a transform constraint's {@link TransformConstraint#rotateMix}, {@link TransformConstraint#translateMix},
379
+ * {@link TransformConstraint#scaleMix}, and {@link TransformConstraint#shearMix}.
380
+ * @public
381
+ * */
382
+ export declare class TransformConstraintTimeline extends CurveTimeline {
383
+ /** The index of the transform constraint slot in {@link Skeleton#transformConstraints} that will be changed. */
384
+ constraintIndex: number;
385
+ constructor(frameCount: number, bezierCount: number, transformConstraintIndex: number);
386
+ getFrameEntries(): number;
387
+ /** The time in seconds, rotate mix, translate mix, scale mix, and shear mix for the specified key frame. */
388
+ setFrame(frame: number, time: number, mixRotate: number, mixX: number, mixY: number, mixScaleX: number, mixScaleY: number, mixShearY: number): void;
389
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
390
+ }
391
+ /** Changes a path constraint's {@link PathConstraint#position}.
392
+ * @public
393
+ * */
394
+ export declare class PathConstraintPositionTimeline extends CurveTimeline1 {
395
+ /** The index of the path constraint in {@link Skeleton#getPathConstraints()} that will be changed when this timeline is
396
+ * applied. */
397
+ constraintIndex: number;
398
+ constructor(frameCount: number, bezierCount: number, pathConstraintIndex: number);
399
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
400
+ }
401
+ /** Changes a path constraint's {@link PathConstraint#spacing}.
402
+ * @public
403
+ * */
404
+ export declare class PathConstraintSpacingTimeline extends CurveTimeline1 {
405
+ /** The index of the path constraint in {@link Skeleton#getPathConstraints()} that will be changed when this timeline is
406
+ * applied. */
407
+ constraintIndex: number;
408
+ constructor(frameCount: number, bezierCount: number, pathConstraintIndex: number);
409
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
410
+ }
411
+ /** Changes a transform constraint's {@link PathConstraint#getMixRotate()}, {@link PathConstraint#getMixX()}, and
412
+ * {@link PathConstraint#getMixY()}.
413
+ * @public
414
+ * */
415
+ export declare class PathConstraintMixTimeline extends CurveTimeline {
416
+ /** The index of the path constraint in {@link Skeleton#getPathConstraints()} that will be changed when this timeline is
417
+ * applied. */
418
+ constraintIndex: number;
419
+ constructor(frameCount: number, bezierCount: number, pathConstraintIndex: number);
420
+ getFrameEntries(): number;
421
+ setFrame(frame: number, time: number, mixRotate: number, mixX: number, mixY: number): void;
422
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
423
+ }
424
+ /** The base class for most {@link PhysicsConstraint} timelines.
425
+ * @public
426
+ * */
427
+ export declare abstract class PhysicsConstraintTimeline extends CurveTimeline1 {
428
+ /** The index of the physics constraint in {@link Skeleton#getPhysicsConstraints()} that will be changed when this timeline
429
+ * is applied, or -1 if all physics constraints in the skeleton will be changed. */
430
+ constraintIndex: number;
431
+ /** @param physicsConstraintIndex -1 for all physics constraints in the skeleton. */
432
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number, property: number);
433
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
434
+ abstract setup(constraint: PhysicsConstraint): number;
435
+ abstract get(constraint: PhysicsConstraint): number;
436
+ abstract set(constraint: PhysicsConstraint, value: number): void;
437
+ abstract global(constraint: PhysicsConstraintData): boolean;
438
+ }
439
+ /** Changes a physics constraint's {@link PhysicsConstraint#getInertia()}.
440
+ * @public
441
+ * */
442
+ export declare class PhysicsConstraintInertiaTimeline extends PhysicsConstraintTimeline {
443
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
444
+ setup(constraint: PhysicsConstraint): number;
445
+ get(constraint: PhysicsConstraint): number;
446
+ set(constraint: PhysicsConstraint, value: number): void;
447
+ global(constraint: PhysicsConstraintData): boolean;
448
+ }
449
+ /** Changes a physics constraint's {@link PhysicsConstraint#getStrength()}.
450
+ * @public
451
+ * */
452
+ export declare class PhysicsConstraintStrengthTimeline extends PhysicsConstraintTimeline {
453
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
454
+ setup(constraint: PhysicsConstraint): number;
455
+ get(constraint: PhysicsConstraint): number;
456
+ set(constraint: PhysicsConstraint, value: number): void;
457
+ global(constraint: PhysicsConstraintData): boolean;
458
+ }
459
+ /** Changes a physics constraint's {@link PhysicsConstraint#getDamping()}.
460
+ * @public
461
+ * */
462
+ export declare class PhysicsConstraintDampingTimeline extends PhysicsConstraintTimeline {
463
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
464
+ setup(constraint: PhysicsConstraint): number;
465
+ get(constraint: PhysicsConstraint): number;
466
+ set(constraint: PhysicsConstraint, value: number): void;
467
+ global(constraint: PhysicsConstraintData): boolean;
468
+ }
469
+ /** Changes a physics constraint's {@link PhysicsConstraint#getMassInverse()}. The timeline values are not inverted.
470
+ * @public
471
+ * */
472
+ export declare class PhysicsConstraintMassTimeline extends PhysicsConstraintTimeline {
473
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
474
+ setup(constraint: PhysicsConstraint): number;
475
+ get(constraint: PhysicsConstraint): number;
476
+ set(constraint: PhysicsConstraint, value: number): void;
477
+ global(constraint: PhysicsConstraintData): boolean;
478
+ }
479
+ /** Changes a physics constraint's {@link PhysicsConstraint#getWind()}.
480
+ * @public
481
+ * */
482
+ export declare class PhysicsConstraintWindTimeline extends PhysicsConstraintTimeline {
483
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
484
+ setup(constraint: PhysicsConstraint): number;
485
+ get(constraint: PhysicsConstraint): number;
486
+ set(constraint: PhysicsConstraint, value: number): void;
487
+ global(constraint: PhysicsConstraintData): boolean;
488
+ }
489
+ /** Changes a physics constraint's {@link PhysicsConstraint#getGravity()}.
490
+ * @public
491
+ * */
492
+ export declare class PhysicsConstraintGravityTimeline extends PhysicsConstraintTimeline {
493
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
494
+ setup(constraint: PhysicsConstraint): number;
495
+ get(constraint: PhysicsConstraint): number;
496
+ set(constraint: PhysicsConstraint, value: number): void;
497
+ global(constraint: PhysicsConstraintData): boolean;
498
+ }
499
+ /** Changes a physics constraint's {@link PhysicsConstraint#getMix()}.
500
+ * @public
501
+ * */
502
+ export declare class PhysicsConstraintMixTimeline extends PhysicsConstraintTimeline {
503
+ constructor(frameCount: number, bezierCount: number, physicsConstraintIndex: number);
504
+ setup(constraint: PhysicsConstraint): number;
505
+ get(constraint: PhysicsConstraint): number;
506
+ set(constraint: PhysicsConstraint, value: number): void;
507
+ global(constraint: PhysicsConstraintData): boolean;
508
+ }
509
+ /** Resets a physics constraint when specific animation times are reached.
510
+ * @public
511
+ * */
512
+ export declare class PhysicsConstraintResetTimeline extends Timeline {
513
+ private static propertyIds;
514
+ /** The index of the physics constraint in {@link Skeleton#getPhysicsConstraints()} that will be reset when this timeline is
515
+ * applied, or -1 if all physics constraints in the skeleton will be reset. */
516
+ constraintIndex: number;
517
+ /** @param physicsConstraintIndex -1 for all physics constraints in the skeleton. */
518
+ constructor(frameCount: number, physicsConstraintIndex: number);
519
+ getFrameCount(): number;
520
+ /** Sets the time for the specified frame.
521
+ * @param frame Between 0 and <code>frameCount</code>, inclusive. */
522
+ setFrame(frame: number, time: number): void;
523
+ /** Resets the physics constraint when frames > <code>lastTime</code> and <= <code>time</code>. */
524
+ apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
525
+ }
526
+ /** Changes a slot's {@link Slot#getSequenceIndex()} for an attachment's {@link Sequence}.
527
+ * @public
528
+ * */
529
+ export declare class SequenceTimeline extends Timeline implements SlotTimeline {
530
+ static ENTRIES: number;
531
+ static MODE: number;
532
+ static DELAY: number;
533
+ slotIndex: number;
534
+ attachment: IHasTextureRegion;
535
+ constructor(frameCount: number, slotIndex: number, attachment: IHasTextureRegion);
536
+ getFrameEntries(): number;
537
+ getSlotIndex(): number;
538
+ getAttachment(): Attachment;
539
+ /** Sets the time, mode, index, and frame time for the specified frame.
540
+ * @param frame Between 0 and <code>frameCount</code>, inclusive.
541
+ * @param time Seconds between frames. */
542
+ setFrame(frame: number, time: number, mode: SequenceMode, index: number, delay: number): void;
543
+ apply(skeleton: Skeleton, lastTime: number, time: number, events: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;
544
+ }