@esotericsoftware/spine-core 4.1.2 → 4.1.6

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 (96) hide show
  1. package/dist/Animation.d.ts +382 -382
  2. package/dist/Animation.js +2058 -2031
  3. package/dist/AnimationState.d.ts +396 -396
  4. package/dist/AnimationState.js +1083 -959
  5. package/dist/AnimationStateData.d.ts +51 -51
  6. package/dist/AnimationStateData.js +72 -70
  7. package/dist/AssetManagerBase.d.ts +74 -72
  8. package/dist/AssetManagerBase.js +304 -303
  9. package/dist/AtlasAttachmentLoader.d.ts +53 -53
  10. package/dist/AtlasAttachmentLoader.js +95 -94
  11. package/dist/Bone.d.ts +138 -138
  12. package/dist/Bone.js +340 -334
  13. package/dist/BoneData.d.ts +72 -72
  14. package/dist/BoneData.js +82 -74
  15. package/dist/ConstraintData.d.ts +35 -35
  16. package/dist/ConstraintData.js +36 -36
  17. package/dist/Event.d.ts +44 -44
  18. package/dist/Event.js +49 -42
  19. package/dist/EventData.d.ts +41 -41
  20. package/dist/EventData.js +44 -37
  21. package/dist/IkConstraint.d.ts +64 -64
  22. package/dist/IkConstraint.js +291 -285
  23. package/dist/IkConstraintData.d.ts +54 -54
  24. package/dist/IkConstraintData.js +56 -54
  25. package/dist/PathConstraint.d.ts +71 -71
  26. package/dist/PathConstraint.js +475 -469
  27. package/dist/PathConstraintData.d.ts +80 -80
  28. package/dist/PathConstraintData.js +84 -70
  29. package/dist/Skeleton.d.ts +152 -152
  30. package/dist/Skeleton.js +581 -563
  31. package/dist/SkeletonBinary.d.ts +68 -68
  32. package/dist/SkeletonBinary.js +1132 -1131
  33. package/dist/SkeletonBounds.d.ts +77 -77
  34. package/dist/SkeletonBounds.js +218 -218
  35. package/dist/SkeletonClipping.d.ts +50 -50
  36. package/dist/SkeletonClipping.js +323 -323
  37. package/dist/SkeletonData.d.ts +114 -114
  38. package/dist/SkeletonData.js +190 -167
  39. package/dist/SkeletonJson.d.ts +53 -53
  40. package/dist/SkeletonJson.js +954 -953
  41. package/dist/Skin.d.ts +71 -71
  42. package/dist/Skin.js +203 -201
  43. package/dist/Slot.d.ts +69 -69
  44. package/dist/Slot.js +97 -85
  45. package/dist/SlotData.d.ts +57 -57
  46. package/dist/SlotData.js +68 -55
  47. package/dist/Texture.d.ts +69 -69
  48. package/dist/Texture.js +72 -72
  49. package/dist/TextureAtlas.d.ts +65 -65
  50. package/dist/TextureAtlas.js +267 -246
  51. package/dist/TransformConstraint.d.ts +60 -60
  52. package/dist/TransformConstraint.js +246 -240
  53. package/dist/TransformConstraintData.d.ts +60 -60
  54. package/dist/TransformConstraintData.js +62 -60
  55. package/dist/Triangulator.d.ts +43 -43
  56. package/dist/Triangulator.js +243 -243
  57. package/dist/Updatable.d.ts +37 -37
  58. package/dist/Updatable.js +29 -29
  59. package/dist/Utils.d.ts +168 -168
  60. package/dist/Utils.js +403 -403
  61. package/dist/VertexEffect.d.ts +35 -35
  62. package/dist/VertexEffect.js +29 -29
  63. package/dist/attachments/Attachment.d.ts +72 -72
  64. package/dist/attachments/Attachment.js +149 -141
  65. package/dist/attachments/AttachmentLoader.d.ts +54 -54
  66. package/dist/attachments/AttachmentLoader.js +29 -29
  67. package/dist/attachments/BoundingBoxAttachment.d.ts +40 -40
  68. package/dist/attachments/BoundingBoxAttachment.js +47 -47
  69. package/dist/attachments/ClippingAttachment.d.ts +42 -42
  70. package/dist/attachments/ClippingAttachment.js +51 -48
  71. package/dist/attachments/HasTextureRegion.d.ts +44 -44
  72. package/dist/attachments/HasTextureRegion.js +29 -29
  73. package/dist/attachments/MeshAttachment.d.ts +79 -79
  74. package/dist/attachments/MeshAttachment.js +189 -167
  75. package/dist/attachments/PathAttachment.d.ts +47 -47
  76. package/dist/attachments/PathAttachment.js +59 -57
  77. package/dist/attachments/PointAttachment.d.ts +48 -48
  78. package/dist/attachments/PointAttachment.js +66 -63
  79. package/dist/attachments/RegionAttachment.d.ts +111 -111
  80. package/dist/attachments/RegionAttachment.js +204 -199
  81. package/dist/attachments/Sequence.d.ts +55 -55
  82. package/dist/attachments/Sequence.js +90 -90
  83. package/dist/attachments/index.d.ts +8 -8
  84. package/dist/attachments/index.js +8 -8
  85. package/dist/iife/spine-core.js +178 -8
  86. package/dist/iife/spine-core.js.map +2 -2
  87. package/dist/iife/spine-core.min.js +2 -2
  88. package/dist/index.d.ts +42 -42
  89. package/dist/index.js +42 -42
  90. package/dist/polyfills.d.ts +29 -29
  91. package/dist/polyfills.js +38 -38
  92. package/dist/vertexeffects/JitterEffect.d.ts +39 -39
  93. package/dist/vertexeffects/JitterEffect.js +45 -45
  94. package/dist/vertexeffects/SwirlEffect.d.ts +44 -44
  95. package/dist/vertexeffects/SwirlEffect.js +60 -60
  96. package/package.json +32 -32
@@ -510,6 +510,8 @@ var spine = (() => {
510
510
  constructor(name) {
511
511
  super(name);
512
512
  this.id = _VertexAttachment.nextID++;
513
+ this.bones = null;
514
+ this.vertices = null;
513
515
  this.worldVerticesLength = 0;
514
516
  this.timelineAttahment = this;
515
517
  }
@@ -655,6 +657,8 @@ var spine = (() => {
655
657
  // spine-core/src/Animation.ts
656
658
  var Animation = class {
657
659
  constructor(name, timelines, duration) {
660
+ this.timelines = null;
661
+ this.timelineIds = null;
658
662
  if (!name)
659
663
  throw new Error("name cannot be null.");
660
664
  this.name = name;
@@ -724,6 +728,8 @@ var spine = (() => {
724
728
  };
725
729
  var Timeline = class {
726
730
  constructor(frameCount, propertyIds) {
731
+ this.propertyIds = null;
732
+ this.frames = null;
727
733
  this.propertyIds = propertyIds;
728
734
  this.frames = Utils.newFloatArray(frameCount * this.getFrameEntries());
729
735
  }
@@ -757,6 +763,7 @@ var spine = (() => {
757
763
  var CurveTimeline = class extends Timeline {
758
764
  constructor(frameCount, bezierCount, propertyIds) {
759
765
  super(frameCount, propertyIds);
766
+ this.curves = null;
760
767
  this.curves = Utils.newFloatArray(frameCount + bezierCount * 18);
761
768
  this.curves[frameCount - 1] = 1;
762
769
  }
@@ -1816,6 +1823,8 @@ var spine = (() => {
1816
1823
  Property.deform + "|" + slotIndex + "|" + attachment.id
1817
1824
  ]);
1818
1825
  this.slotIndex = 0;
1826
+ this.attachment = null;
1827
+ this.vertices = null;
1819
1828
  this.slotIndex = slotIndex;
1820
1829
  this.attachment = attachment;
1821
1830
  this.vertices = new Array(frameCount);
@@ -2032,6 +2041,7 @@ var spine = (() => {
2032
2041
  var _EventTimeline = class extends Timeline {
2033
2042
  constructor(frameCount) {
2034
2043
  super(frameCount, _EventTimeline.propertyIds);
2044
+ this.events = null;
2035
2045
  this.events = new Array(frameCount);
2036
2046
  }
2037
2047
  getFrameCount() {
@@ -2074,6 +2084,7 @@ var spine = (() => {
2074
2084
  var _DrawOrderTimeline = class extends Timeline {
2075
2085
  constructor(frameCount) {
2076
2086
  super(frameCount, _DrawOrderTimeline.propertyIds);
2087
+ this.drawOrders = null;
2077
2088
  this.drawOrders = new Array(frameCount);
2078
2089
  }
2079
2090
  getFrameCount() {
@@ -2112,6 +2123,7 @@ var spine = (() => {
2112
2123
  super(frameCount, bezierCount, [
2113
2124
  Property.ikConstraint + "|" + ikConstraintIndex
2114
2125
  ]);
2126
+ this.ikConstraintIndex = 0;
2115
2127
  this.ikConstraintIndex = ikConstraintIndex;
2116
2128
  }
2117
2129
  getFrameEntries() {
@@ -2197,6 +2209,7 @@ var spine = (() => {
2197
2209
  super(frameCount, bezierCount, [
2198
2210
  Property.transformConstraint + "|" + transformConstraintIndex
2199
2211
  ]);
2212
+ this.transformConstraintIndex = 0;
2200
2213
  this.transformConstraintIndex = transformConstraintIndex;
2201
2214
  }
2202
2215
  getFrameEntries() {
@@ -2296,6 +2309,7 @@ var spine = (() => {
2296
2309
  var PathConstraintPositionTimeline = class extends CurveTimeline1 {
2297
2310
  constructor(frameCount, bezierCount, pathConstraintIndex) {
2298
2311
  super(frameCount, bezierCount, Property.pathConstraintPosition + "|" + pathConstraintIndex);
2312
+ this.pathConstraintIndex = 0;
2299
2313
  this.pathConstraintIndex = pathConstraintIndex;
2300
2314
  }
2301
2315
  apply(skeleton, lastTime, time, firedEvents, alpha, blend, direction) {
@@ -2477,17 +2491,25 @@ var spine = (() => {
2477
2491
  case SequenceMode.loop:
2478
2492
  index %= count;
2479
2493
  break;
2480
- case SequenceMode.pingpong:
2494
+ case SequenceMode.pingpong: {
2481
2495
  let n = (count << 1) - 2;
2482
2496
  index %= n;
2483
2497
  if (index >= count)
2484
2498
  index = n - index;
2485
2499
  break;
2500
+ }
2486
2501
  case SequenceMode.onceReverse:
2487
2502
  index = Math.max(count - 1 - index, 0);
2488
2503
  break;
2489
2504
  case SequenceMode.loopReverse:
2490
2505
  index = count - 1 - index % count;
2506
+ break;
2507
+ case SequenceMode.pingpongReverse: {
2508
+ let n = (count << 1) - 2;
2509
+ index = (index + count - 1) % n;
2510
+ if (index >= count)
2511
+ index = n - index;
2512
+ }
2491
2513
  }
2492
2514
  }
2493
2515
  slot.sequenceIndex = index;
@@ -2501,6 +2523,7 @@ var spine = (() => {
2501
2523
  // spine-core/src/AnimationState.ts
2502
2524
  var AnimationState = class {
2503
2525
  constructor(data) {
2526
+ this.data = null;
2504
2527
  this.tracks = new Array();
2505
2528
  this.timeScale = 1;
2506
2529
  this.unkeyedState = 0;
@@ -2979,6 +3002,7 @@ var spine = (() => {
2979
3002
  }
2980
3003
  trackEntry(trackIndex, animation, loop, last) {
2981
3004
  let entry = this.trackEntryPool.obtain();
3005
+ entry.reset();
2982
3006
  entry.trackIndex = trackIndex;
2983
3007
  entry.animation = animation;
2984
3008
  entry.loop = loop;
@@ -3089,6 +3113,34 @@ var spine = (() => {
3089
3113
  };
3090
3114
  var TrackEntry = class {
3091
3115
  constructor() {
3116
+ this.animation = null;
3117
+ this.previous = null;
3118
+ this.next = null;
3119
+ this.mixingFrom = null;
3120
+ this.mixingTo = null;
3121
+ this.listener = null;
3122
+ this.trackIndex = 0;
3123
+ this.loop = false;
3124
+ this.holdPrevious = false;
3125
+ this.reverse = false;
3126
+ this.eventThreshold = 0;
3127
+ this.attachmentThreshold = 0;
3128
+ this.drawOrderThreshold = 0;
3129
+ this.animationStart = 0;
3130
+ this.animationEnd = 0;
3131
+ this.animationLast = 0;
3132
+ this.nextAnimationLast = 0;
3133
+ this.delay = 0;
3134
+ this.trackTime = 0;
3135
+ this.trackLast = 0;
3136
+ this.nextTrackLast = 0;
3137
+ this.trackEnd = 0;
3138
+ this.timeScale = 0;
3139
+ this.alpha = 0;
3140
+ this.mixTime = 0;
3141
+ this.mixDuration = 0;
3142
+ this.interruptAlpha = 0;
3143
+ this.totalAlpha = 0;
3092
3144
  this.mixBlend = MixBlend.replace;
3093
3145
  this.timelineMode = new Array();
3094
3146
  this.timelineHoldMix = new Array();
@@ -3139,6 +3191,7 @@ var spine = (() => {
3139
3191
  constructor(animState) {
3140
3192
  this.objects = [];
3141
3193
  this.drainDisabled = false;
3194
+ this.animState = null;
3142
3195
  this.animState = animState;
3143
3196
  }
3144
3197
  start(entry) {
@@ -3265,6 +3318,7 @@ var spine = (() => {
3265
3318
  // spine-core/src/AnimationStateData.ts
3266
3319
  var AnimationStateData = class {
3267
3320
  constructor(skeletonData) {
3321
+ this.skeletonData = null;
3268
3322
  this.animationToMixTime = {};
3269
3323
  this.defaultMix = 0;
3270
3324
  if (!skeletonData)
@@ -3313,6 +3367,7 @@ var spine = (() => {
3313
3367
  var ClippingAttachment = class extends VertexAttachment {
3314
3368
  constructor(name) {
3315
3369
  super(name);
3370
+ this.endSlot = null;
3316
3371
  this.color = new Color(0.2275, 0.2275, 0.8078, 1);
3317
3372
  }
3318
3373
  copy() {
@@ -3536,6 +3591,7 @@ var spine = (() => {
3536
3591
  };
3537
3592
  var TextureAtlasReader = class {
3538
3593
  constructor(text) {
3594
+ this.lines = null;
3539
3595
  this.index = 0;
3540
3596
  this.lines = text.split(/\r\n|\r|\n/);
3541
3597
  }
@@ -3569,10 +3625,15 @@ var spine = (() => {
3569
3625
  };
3570
3626
  var TextureAtlasPage = class {
3571
3627
  constructor() {
3628
+ this.name = null;
3572
3629
  this.minFilter = TextureFilter.Nearest;
3573
3630
  this.magFilter = TextureFilter.Nearest;
3574
3631
  this.uWrap = TextureWrap.ClampToEdge;
3575
3632
  this.vWrap = TextureWrap.ClampToEdge;
3633
+ this.texture = null;
3634
+ this.width = 0;
3635
+ this.height = 0;
3636
+ this.pma = false;
3576
3637
  }
3577
3638
  setTexture(texture) {
3578
3639
  this.texture = texture;
@@ -3581,13 +3642,39 @@ var spine = (() => {
3581
3642
  }
3582
3643
  };
3583
3644
  var TextureAtlasRegion = class extends TextureRegion {
3645
+ constructor() {
3646
+ super(...arguments);
3647
+ this.page = null;
3648
+ this.name = null;
3649
+ this.x = 0;
3650
+ this.y = 0;
3651
+ this.offsetX = 0;
3652
+ this.offsetY = 0;
3653
+ this.originalWidth = 0;
3654
+ this.originalHeight = 0;
3655
+ this.index = 0;
3656
+ this.degrees = 0;
3657
+ this.names = null;
3658
+ this.values = null;
3659
+ }
3584
3660
  };
3585
3661
 
3586
3662
  // spine-core/src/attachments/MeshAttachment.ts
3587
3663
  var MeshAttachment = class extends VertexAttachment {
3588
3664
  constructor(name) {
3589
3665
  super(name);
3666
+ this.region = null;
3667
+ this.path = null;
3668
+ this.regionUVs = null;
3669
+ this.uvs = null;
3670
+ this.triangles = null;
3590
3671
  this.color = new Color(1, 1, 1, 1);
3672
+ this.width = 0;
3673
+ this.height = 0;
3674
+ this.hullLength = 0;
3675
+ this.edges = null;
3676
+ this.parentMesh = null;
3677
+ this.sequence = null;
3591
3678
  this.tempColor = new Color(0, 0, 0, 0);
3592
3679
  }
3593
3680
  updateRegion() {
@@ -3678,7 +3765,7 @@ var spine = (() => {
3678
3765
  copy.triangles = new Array(this.triangles.length);
3679
3766
  Utils.arrayCopy(this.triangles, 0, copy.triangles, 0, this.triangles.length);
3680
3767
  copy.hullLength = this.hullLength;
3681
- copy.sequence = this.sequence.copy();
3768
+ copy.sequence = this.sequence != null ? this.sequence.copy() : null;
3682
3769
  if (this.edges) {
3683
3770
  copy.edges = new Array(this.edges.length);
3684
3771
  Utils.arrayCopy(this.edges, 0, copy.edges, 0, this.edges.length);
@@ -3709,6 +3796,7 @@ var spine = (() => {
3709
3796
  var PathAttachment = class extends VertexAttachment {
3710
3797
  constructor(name) {
3711
3798
  super(name);
3799
+ this.lengths = null;
3712
3800
  this.closed = false;
3713
3801
  this.constantSpeed = false;
3714
3802
  this.color = new Color(1, 1, 1, 1);
@@ -3729,6 +3817,9 @@ var spine = (() => {
3729
3817
  var PointAttachment = class extends VertexAttachment {
3730
3818
  constructor(name) {
3731
3819
  super(name);
3820
+ this.x = 0;
3821
+ this.y = 0;
3822
+ this.rotation = 0;
3732
3823
  this.color = new Color(0.38, 0.94, 0, 1);
3733
3824
  }
3734
3825
  computeWorldPosition(bone, point) {
@@ -3764,6 +3855,10 @@ var spine = (() => {
3764
3855
  this.width = 0;
3765
3856
  this.height = 0;
3766
3857
  this.color = new Color(1, 1, 1, 1);
3858
+ this.path = null;
3859
+ this.rendererObject = null;
3860
+ this.region = null;
3861
+ this.sequence = null;
3767
3862
  this.offset = Utils.newFloatArray(8);
3768
3863
  this.uvs = Utils.newFloatArray(8);
3769
3864
  this.tempColor = new Color(1, 1, 1, 1);
@@ -3861,7 +3956,7 @@ var spine = (() => {
3861
3956
  Utils.arrayCopy(this.uvs, 0, copy.uvs, 0, 8);
3862
3957
  Utils.arrayCopy(this.offset, 0, copy.offset, 0, 8);
3863
3958
  copy.color.setFromColor(this.color);
3864
- copy.sequence = this.sequence.copy();
3959
+ copy.sequence = this.sequence != null ? this.sequence.copy() : null;
3865
3960
  return copy;
3866
3961
  }
3867
3962
  };
@@ -3902,6 +3997,7 @@ var spine = (() => {
3902
3997
  // spine-core/src/AtlasAttachmentLoader.ts
3903
3998
  var AtlasAttachmentLoader = class {
3904
3999
  constructor(atlas) {
4000
+ this.atlas = null;
3905
4001
  this.atlas = atlas;
3906
4002
  }
3907
4003
  loadSequence(name, basePath, sequence) {
@@ -3957,6 +4053,10 @@ var spine = (() => {
3957
4053
  // spine-core/src/BoneData.ts
3958
4054
  var BoneData = class {
3959
4055
  constructor(index, name, parent) {
4056
+ this.index = 0;
4057
+ this.name = null;
4058
+ this.parent = null;
4059
+ this.length = 0;
3960
4060
  this.x = 0;
3961
4061
  this.y = 0;
3962
4062
  this.rotation = 0;
@@ -3988,6 +4088,9 @@ var spine = (() => {
3988
4088
  // spine-core/src/Bone.ts
3989
4089
  var Bone = class {
3990
4090
  constructor(data, skeleton, parent) {
4091
+ this.data = null;
4092
+ this.skeleton = null;
4093
+ this.parent = null;
3991
4094
  this.children = new Array();
3992
4095
  this.x = 0;
3993
4096
  this.y = 0;
@@ -4240,6 +4343,7 @@ var spine = (() => {
4240
4343
  // spine-core/src/AssetManagerBase.ts
4241
4344
  var AssetManagerBase = class {
4242
4345
  constructor(textureLoader, pathPrefix = "", downloader = null) {
4346
+ this.pathPrefix = null;
4243
4347
  this.assets = {};
4244
4348
  this.errors = {};
4245
4349
  this.toLoad = 0;
@@ -4323,7 +4427,7 @@ var spine = (() => {
4323
4427
  image.src = path;
4324
4428
  }
4325
4429
  }
4326
- loadTextureAtlas(path, success = null, error = null) {
4430
+ loadTextureAtlas(path, success = null, error = null, fileAlias = null) {
4327
4431
  let index = path.lastIndexOf("/");
4328
4432
  let parent = index >= 0 ? path.substring(0, index + 1) : "";
4329
4433
  path = this.start(path);
@@ -4332,7 +4436,7 @@ var spine = (() => {
4332
4436
  let atlas = new TextureAtlas(atlasText);
4333
4437
  let toLoad = atlas.pages.length, abort = false;
4334
4438
  for (let page of atlas.pages) {
4335
- this.loadTexture(parent + page.name, (imagePath, texture) => {
4439
+ this.loadTexture(fileAlias == null ? parent + page.name : fileAlias[page.name], (imagePath, texture) => {
4336
4440
  if (!abort) {
4337
4441
  page.setTexture(texture);
4338
4442
  if (--toLoad == 0)
@@ -4479,7 +4583,7 @@ var spine = (() => {
4479
4583
  this.finish(url, request.status, request.response);
4480
4584
  };
4481
4585
  request.onload = () => {
4482
- if (request.status == 200)
4586
+ if (request.status == 200 || request.status == 0)
4483
4587
  this.finish(url, 200, new Uint8Array(request.response));
4484
4588
  else
4485
4589
  onerror();
@@ -4500,7 +4604,7 @@ var spine = (() => {
4500
4604
  finish(url, status, data) {
4501
4605
  let callbacks = this.callbacks[url];
4502
4606
  delete this.callbacks[url];
4503
- let args = status == 200 ? [data] : [status, data];
4607
+ let args = status == 200 || status == 0 ? [data] : [status, data];
4504
4608
  for (let i = args.length - 1, n = callbacks.length; i < n; i += 2)
4505
4609
  callbacks[i].apply(null, args);
4506
4610
  }
@@ -4509,6 +4613,13 @@ var spine = (() => {
4509
4613
  // spine-core/src/Event.ts
4510
4614
  var Event = class {
4511
4615
  constructor(time, data) {
4616
+ this.data = null;
4617
+ this.intValue = 0;
4618
+ this.floatValue = 0;
4619
+ this.stringValue = null;
4620
+ this.time = 0;
4621
+ this.volume = 0;
4622
+ this.balance = 0;
4512
4623
  if (!data)
4513
4624
  throw new Error("data cannot be null.");
4514
4625
  this.time = time;
@@ -4519,6 +4630,13 @@ var spine = (() => {
4519
4630
  // spine-core/src/EventData.ts
4520
4631
  var EventData = class {
4521
4632
  constructor(name) {
4633
+ this.name = null;
4634
+ this.intValue = 0;
4635
+ this.floatValue = 0;
4636
+ this.stringValue = null;
4637
+ this.audioPath = null;
4638
+ this.volume = 0;
4639
+ this.balance = 0;
4522
4640
  this.name = name;
4523
4641
  }
4524
4642
  };
@@ -4526,6 +4644,9 @@ var spine = (() => {
4526
4644
  // spine-core/src/IkConstraint.ts
4527
4645
  var IkConstraint = class {
4528
4646
  constructor(data, skeleton) {
4647
+ this.data = null;
4648
+ this.bones = null;
4649
+ this.target = null;
4529
4650
  this.bendDirection = 0;
4530
4651
  this.compress = false;
4531
4652
  this.stretch = false;
@@ -4764,6 +4885,7 @@ var spine = (() => {
4764
4885
  constructor(name) {
4765
4886
  super(name, 0, false);
4766
4887
  this.bones = new Array();
4888
+ this.target = null;
4767
4889
  this.bendDirection = 1;
4768
4890
  this.compress = false;
4769
4891
  this.stretch = false;
@@ -4778,6 +4900,13 @@ var spine = (() => {
4778
4900
  constructor(name) {
4779
4901
  super(name, 0, false);
4780
4902
  this.bones = new Array();
4903
+ this.target = null;
4904
+ this.positionMode = null;
4905
+ this.spacingMode = null;
4906
+ this.rotateMode = null;
4907
+ this.offsetRotation = 0;
4908
+ this.position = 0;
4909
+ this.spacing = 0;
4781
4910
  this.mixRotate = 0;
4782
4911
  this.mixX = 0;
4783
4912
  this.mixY = 0;
@@ -4805,6 +4934,9 @@ var spine = (() => {
4805
4934
  // spine-core/src/PathConstraint.ts
4806
4935
  var _PathConstraint = class {
4807
4936
  constructor(data, skeleton) {
4937
+ this.data = null;
4938
+ this.bones = null;
4939
+ this.target = null;
4808
4940
  this.position = 0;
4809
4941
  this.spacing = 0;
4810
4942
  this.mixRotate = 0;
@@ -5224,6 +5356,12 @@ var spine = (() => {
5224
5356
  // spine-core/src/Slot.ts
5225
5357
  var Slot = class {
5226
5358
  constructor(data, bone) {
5359
+ this.data = null;
5360
+ this.bone = null;
5361
+ this.color = null;
5362
+ this.darkColor = null;
5363
+ this.attachment = null;
5364
+ this.attachmentState = 0;
5227
5365
  this.deform = new Array();
5228
5366
  if (!data)
5229
5367
  throw new Error("data cannot be null.");
@@ -5266,6 +5404,9 @@ var spine = (() => {
5266
5404
  // spine-core/src/TransformConstraint.ts
5267
5405
  var TransformConstraint = class {
5268
5406
  constructor(data, skeleton) {
5407
+ this.data = null;
5408
+ this.bones = null;
5409
+ this.target = null;
5269
5410
  this.mixRotate = 0;
5270
5411
  this.mixX = 0;
5271
5412
  this.mixY = 0;
@@ -5473,7 +5614,16 @@ var spine = (() => {
5473
5614
  // spine-core/src/Skeleton.ts
5474
5615
  var Skeleton = class {
5475
5616
  constructor(data) {
5617
+ this.data = null;
5618
+ this.bones = null;
5619
+ this.slots = null;
5620
+ this.drawOrder = null;
5621
+ this.ikConstraints = null;
5622
+ this.transformConstraints = null;
5623
+ this.pathConstraints = null;
5476
5624
  this._updateCache = new Array();
5625
+ this.skin = null;
5626
+ this.color = null;
5477
5627
  this.scaleX = 1;
5478
5628
  this.scaleY = 1;
5479
5629
  this.x = 0;
@@ -5932,15 +6082,25 @@ var spine = (() => {
5932
6082
  // spine-core/src/SkeletonData.ts
5933
6083
  var SkeletonData = class {
5934
6084
  constructor() {
6085
+ this.name = null;
5935
6086
  this.bones = new Array();
5936
6087
  this.slots = new Array();
5937
6088
  this.skins = new Array();
6089
+ this.defaultSkin = null;
5938
6090
  this.events = new Array();
5939
6091
  this.animations = new Array();
5940
6092
  this.ikConstraints = new Array();
5941
6093
  this.transformConstraints = new Array();
5942
6094
  this.pathConstraints = new Array();
6095
+ this.x = 0;
6096
+ this.y = 0;
6097
+ this.width = 0;
6098
+ this.height = 0;
6099
+ this.version = null;
6100
+ this.hash = null;
5943
6101
  this.fps = 0;
6102
+ this.imagesPath = null;
6103
+ this.audioPath = null;
5944
6104
  }
5945
6105
  findBone(boneName) {
5946
6106
  if (!boneName)
@@ -6034,7 +6194,7 @@ var spine = (() => {
6034
6194
 
6035
6195
  // spine-core/src/Skin.ts
6036
6196
  var SkinEntry = class {
6037
- constructor(slotIndex, name, attachment) {
6197
+ constructor(slotIndex = 0, name = null, attachment = null) {
6038
6198
  this.slotIndex = slotIndex;
6039
6199
  this.name = name;
6040
6200
  this.attachment = attachment;
@@ -6042,6 +6202,7 @@ var spine = (() => {
6042
6202
  };
6043
6203
  var Skin = class {
6044
6204
  constructor(name) {
6205
+ this.name = null;
6045
6206
  this.attachments = new Array();
6046
6207
  this.bones = Array();
6047
6208
  this.constraints = new Array();
@@ -6192,7 +6353,13 @@ var spine = (() => {
6192
6353
  // spine-core/src/SlotData.ts
6193
6354
  var SlotData = class {
6194
6355
  constructor(index, name, boneData) {
6356
+ this.index = 0;
6357
+ this.name = null;
6358
+ this.boneData = null;
6195
6359
  this.color = new Color(1, 1, 1, 1);
6360
+ this.darkColor = null;
6361
+ this.attachmentName = null;
6362
+ this.blendMode = null;
6196
6363
  if (index < 0)
6197
6364
  throw new Error("index must be >= 0.");
6198
6365
  if (!name)
@@ -6217,6 +6384,7 @@ var spine = (() => {
6217
6384
  constructor(name) {
6218
6385
  super(name, 0, false);
6219
6386
  this.bones = new Array();
6387
+ this.target = null;
6220
6388
  this.mixRotate = 0;
6221
6389
  this.mixX = 0;
6222
6390
  this.mixY = 0;
@@ -6238,6 +6406,7 @@ var spine = (() => {
6238
6406
  var SkeletonBinary = class {
6239
6407
  constructor(attachmentLoader) {
6240
6408
  this.scale = 1;
6409
+ this.attachmentLoader = null;
6241
6410
  this.linkedMeshes = new Array();
6242
6411
  this.attachmentLoader = attachmentLoader;
6243
6412
  }
@@ -7949,6 +8118,7 @@ var spine = (() => {
7949
8118
  // spine-core/src/SkeletonJson.ts
7950
8119
  var SkeletonJson = class {
7951
8120
  constructor(attachmentLoader) {
8121
+ this.attachmentLoader = null;
7952
8122
  this.scale = 1;
7953
8123
  this.linkedMeshes = new Array();
7954
8124
  this.attachmentLoader = attachmentLoader;