@esotericsoftware/spine-core 4.2.25 → 4.2.27

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 (86) hide show
  1. package/dist/Animation.d.ts +109 -16
  2. package/dist/Animation.js +392 -322
  3. package/dist/AnimationState.d.ts +21 -12
  4. package/dist/AnimationState.js +191 -168
  5. package/dist/AnimationStateData.d.ts +3 -3
  6. package/dist/AnimationStateData.js +6 -4
  7. package/dist/AssetManagerBase.d.ts +3 -3
  8. package/dist/AssetManagerBase.js +11 -11
  9. package/dist/AtlasAttachmentLoader.d.ts +10 -10
  10. package/dist/AtlasAttachmentLoader.js +8 -7
  11. package/dist/Bone.d.ts +19 -15
  12. package/dist/Bone.js +127 -106
  13. package/dist/BoneData.d.ts +6 -2
  14. package/dist/BoneData.js +37 -31
  15. package/dist/ConstraintData.js +4 -1
  16. package/dist/Event.d.ts +1 -1
  17. package/dist/Event.js +8 -7
  18. package/dist/EventData.js +8 -7
  19. package/dist/IkConstraint.d.ts +6 -5
  20. package/dist/IkConstraint.js +39 -22
  21. package/dist/IkConstraintData.d.ts +2 -2
  22. package/dist/IkConstraintData.js +20 -20
  23. package/dist/PathConstraint.d.ts +8 -7
  24. package/dist/PathConstraint.js +39 -29
  25. package/dist/PathConstraintData.d.ts +3 -3
  26. package/dist/PathConstraintData.js +21 -21
  27. package/dist/PhysicsConstraint.d.ts +74 -0
  28. package/dist/PhysicsConstraint.js +267 -0
  29. package/dist/PhysicsConstraintData.d.ts +61 -0
  30. package/dist/PhysicsConstraintData.js +68 -0
  31. package/dist/Skeleton.d.ts +36 -12
  32. package/dist/Skeleton.js +121 -90
  33. package/dist/SkeletonBinary.d.ts +2 -2
  34. package/dist/SkeletonBinary.js +30 -19
  35. package/dist/SkeletonBounds.d.ts +3 -3
  36. package/dist/SkeletonBounds.js +18 -20
  37. package/dist/SkeletonClipping.d.ts +3 -3
  38. package/dist/SkeletonClipping.js +11 -13
  39. package/dist/SkeletonData.d.ts +14 -7
  40. package/dist/SkeletonData.js +64 -50
  41. package/dist/SkeletonJson.d.ts +5 -5
  42. package/dist/SkeletonJson.js +26 -20
  43. package/dist/Skin.d.ts +7 -5
  44. package/dist/Skin.js +13 -5
  45. package/dist/Slot.d.ts +5 -5
  46. package/dist/Slot.js +23 -16
  47. package/dist/SlotData.d.ts +4 -2
  48. package/dist/SlotData.js +20 -14
  49. package/dist/Texture.js +14 -14
  50. package/dist/TextureAtlas.d.ts +3 -3
  51. package/dist/TextureAtlas.js +30 -27
  52. package/dist/TransformConstraint.d.ts +7 -6
  53. package/dist/TransformConstraint.js +28 -13
  54. package/dist/TransformConstraintData.d.ts +2 -2
  55. package/dist/TransformConstraintData.js +26 -26
  56. package/dist/Triangulator.d.ts +1 -1
  57. package/dist/Triangulator.js +13 -15
  58. package/dist/Updatable.d.ts +9 -4
  59. package/dist/Utils.d.ts +4 -2
  60. package/dist/Utils.js +41 -35
  61. package/dist/attachments/Attachment.d.ts +2 -2
  62. package/dist/attachments/Attachment.js +20 -19
  63. package/dist/attachments/AttachmentLoader.d.ts +8 -8
  64. package/dist/attachments/BoundingBoxAttachment.d.ts +2 -2
  65. package/dist/attachments/BoundingBoxAttachment.js +4 -4
  66. package/dist/attachments/ClippingAttachment.d.ts +3 -3
  67. package/dist/attachments/ClippingAttachment.js +10 -10
  68. package/dist/attachments/HasTextureRegion.d.ts +3 -3
  69. package/dist/attachments/MeshAttachment.d.ts +6 -6
  70. package/dist/attachments/MeshAttachment.js +29 -27
  71. package/dist/attachments/PathAttachment.d.ts +2 -2
  72. package/dist/attachments/PathAttachment.js +13 -13
  73. package/dist/attachments/PointAttachment.d.ts +3 -3
  74. package/dist/attachments/PointAttachment.js +13 -13
  75. package/dist/attachments/RegionAttachment.d.ts +6 -6
  76. package/dist/attachments/RegionAttachment.js +62 -60
  77. package/dist/attachments/Sequence.d.ts +3 -3
  78. package/dist/attachments/Sequence.js +9 -8
  79. package/dist/attachments/index.d.ts +8 -8
  80. package/dist/attachments/index.js +9 -9
  81. package/dist/iife/spine-core.js +1658 -1178
  82. package/dist/iife/spine-core.js.map +4 -4
  83. package/dist/iife/spine-core.min.js +2 -2
  84. package/dist/index.d.ts +39 -39
  85. package/dist/index.js +40 -40
  86. package/package.json +3 -2
@@ -26,12 +26,12 @@
26
26
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
27
  * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
  *****************************************************************************/
29
- import { Animation, MixBlend, AttachmentTimeline, RotateTimeline } from "./Animation";
30
- import { AnimationStateData } from "./AnimationStateData";
31
- import { Skeleton } from "./Skeleton";
32
- import { Slot } from "./Slot";
33
- import { StringSet, Pool } from "./Utils";
34
- import { Event } from "./Event";
29
+ import { Animation, MixBlend, AttachmentTimeline, RotateTimeline } from "./Animation.js";
30
+ import { AnimationStateData } from "./AnimationStateData.js";
31
+ import { Skeleton } from "./Skeleton.js";
32
+ import { Slot } from "./Slot.js";
33
+ import { StringSet, Pool } from "./Utils.js";
34
+ import { Event } from "./Event.js";
35
35
  /** Applies animations over time, queues animations for later playback, mixes (crossfading) between animations, and applies
36
36
  * multiple animations on top of each other (layering).
37
37
  *
@@ -202,11 +202,14 @@ export declare class TrackEntry {
202
202
  /** When the mix percentage ({@link #mixtime} / {@link #mixDuration}) is less than the
203
203
  * `attachmentThreshold`, attachment timelines are applied while this animation is being mixed out. Defaults to
204
204
  * 0, so attachment timelines are not applied while this animation is being mixed out. */
205
- attachmentThreshold: number;
206
- /** When the mix percentage ({@link #mixTime} / {@link #mixDuration}) is less than the
207
- * `drawOrderThreshold`, draw order timelines are applied while this animation is being mixed out. Defaults to 0,
208
- * so draw order timelines are not applied while this animation is being mixed out. */
209
- drawOrderThreshold: number;
205
+ mixAttachmentThreshold: number;
206
+ /** When {@link #getAlpha()} is greater than <code>alphaAttachmentThreshold</code>, attachment timelines are applied.
207
+ * Defaults to 0, so attachment timelines are always applied. */
208
+ alphaAttachmentThreshold: number;
209
+ /** When the mix percentage ({@link #getMixTime()} / {@link #getMixDuration()}) is less than the
210
+ * <code>mixDrawOrderThreshold</code>, draw order timelines are applied while this animation is being mixed out. Defaults to
211
+ * 0, so draw order timelines are not applied while this animation is being mixed out. */
212
+ mixDrawOrderThreshold: number;
210
213
  /** Seconds when this animation starts, both initially and after looping. Defaults to 0.
211
214
  *
212
215
  * When changing the `animationStart` time, it often makes sense to set {@link #animationLast} to the same
@@ -276,9 +279,11 @@ export declare class TrackEntry {
276
279
  * When using {@link AnimationState#addAnimation()} with a `delay` <= 0, note the
277
280
  * {@link #delay} is set using the mix duration from the {@link AnimationStateData}, not a mix duration set
278
281
  * afterward. */
279
- mixDuration: number;
282
+ _mixDuration: number;
280
283
  interruptAlpha: number;
281
284
  totalAlpha: number;
285
+ get mixDuration(): number;
286
+ set mixDuration(mixDuration: number);
282
287
  /** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
283
288
  * replaces the values from the lower tracks with the animation values. {@link MixBlend#add} adds the animation values to
284
289
  * the values from the lower tracks.
@@ -308,6 +313,10 @@ export declare class TrackEntry {
308
313
  * long way. TrackEntry chooses the short way the first time it is applied and remembers that direction. */
309
314
  resetRotationDirections(): void;
310
315
  getTrackComplete(): number;
316
+ /** Returns true if this track entry has been applied at least once.
317
+ * <p>
318
+ * See {@link AnimationState#apply(Skeleton)}. */
319
+ wasApplied(): boolean;
311
320
  }
312
321
  export declare class EventQueue {
313
322
  objects: Array<any>;