@esotericsoftware/spine-webgl 4.0.15 → 4.0.19

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 (40) hide show
  1. package/dist/AssetManager.d.ts +33 -33
  2. package/dist/AssetManager.js +37 -37
  3. package/dist/Camera.d.ts +49 -49
  4. package/dist/Camera.js +80 -80
  5. package/dist/CameraController.d.ts +34 -34
  6. package/dist/CameraController.js +95 -95
  7. package/dist/GLTexture.d.ts +46 -46
  8. package/dist/GLTexture.js +102 -102
  9. package/dist/Input.d.ts +57 -56
  10. package/dist/Input.js +212 -211
  11. package/dist/LoadingScreen.d.ts +44 -43
  12. package/dist/LoadingScreen.js +119 -115
  13. package/dist/Matrix4.d.ts +68 -68
  14. package/dist/Matrix4.js +321 -321
  15. package/dist/Mesh.d.ts +88 -88
  16. package/dist/Mesh.js +193 -193
  17. package/dist/PolygonBatcher.d.ts +53 -53
  18. package/dist/PolygonBatcher.js +120 -120
  19. package/dist/SceneRenderer.d.ts +73 -73
  20. package/dist/SceneRenderer.js +477 -477
  21. package/dist/Shader.d.ts +75 -75
  22. package/dist/Shader.js +262 -262
  23. package/dist/ShapeRenderer.d.ts +69 -69
  24. package/dist/ShapeRenderer.js +338 -338
  25. package/dist/SkeletonDebugRenderer.d.ts +60 -60
  26. package/dist/SkeletonDebugRenderer.js +222 -222
  27. package/dist/SkeletonRenderer.d.ts +49 -49
  28. package/dist/SkeletonRenderer.js +295 -295
  29. package/dist/SpineCanvas.d.ts +73 -73
  30. package/dist/SpineCanvas.js +82 -82
  31. package/dist/Vector3.d.ts +47 -47
  32. package/dist/Vector3.js +103 -103
  33. package/dist/WebGL.d.ts +44 -44
  34. package/dist/WebGL.js +96 -96
  35. package/dist/iife/spine-webgl.js +182 -16
  36. package/dist/iife/spine-webgl.js.map +2 -2
  37. package/dist/iife/spine-webgl.min.js +26 -26
  38. package/dist/index.d.ts +18 -18
  39. package/dist/index.js +18 -18
  40. package/package.json +34 -34
@@ -553,6 +553,8 @@ var spine = (() => {
553
553
  constructor(name) {
554
554
  super(name);
555
555
  this.id = _VertexAttachment.nextID++;
556
+ this.bones = null;
557
+ this.vertices = null;
556
558
  this.worldVerticesLength = 0;
557
559
  this.deformAttachment = this;
558
560
  }
@@ -635,6 +637,8 @@ var spine = (() => {
635
637
  // spine-core/src/Animation.ts
636
638
  var Animation = class {
637
639
  constructor(name, timelines, duration) {
640
+ this.timelines = null;
641
+ this.timelineIds = null;
638
642
  if (!name)
639
643
  throw new Error("name cannot be null.");
640
644
  this.name = name;
@@ -703,6 +707,8 @@ var spine = (() => {
703
707
  };
704
708
  var Timeline = class {
705
709
  constructor(frameCount, propertyIds) {
710
+ this.propertyIds = null;
711
+ this.frames = null;
706
712
  this.propertyIds = propertyIds;
707
713
  this.frames = Utils.newFloatArray(frameCount * this.getFrameEntries());
708
714
  }
@@ -736,6 +742,7 @@ var spine = (() => {
736
742
  var CurveTimeline = class extends Timeline {
737
743
  constructor(frameCount, bezierCount, propertyIds) {
738
744
  super(frameCount, propertyIds);
745
+ this.curves = null;
739
746
  this.curves = Utils.newFloatArray(frameCount + bezierCount * 18);
740
747
  this.curves[frameCount - 1] = 1;
741
748
  }
@@ -1072,8 +1079,8 @@ var spine = (() => {
1072
1079
  bone.scaleY = by + (Math.abs(y) * MathUtils.signum(by) - by) * alpha;
1073
1080
  break;
1074
1081
  case 3:
1075
- bone.scaleX = (x - bone.data.scaleX) * alpha;
1076
- bone.scaleY = (y - bone.data.scaleY) * alpha;
1082
+ bone.scaleX += (x - bone.data.scaleX) * alpha;
1083
+ bone.scaleY += (y - bone.data.scaleY) * alpha;
1077
1084
  }
1078
1085
  } else {
1079
1086
  switch (blend) {
@@ -1139,7 +1146,7 @@ var spine = (() => {
1139
1146
  bone.scaleX = bx + (Math.abs(x) * MathUtils.signum(bx) - bx) * alpha;
1140
1147
  break;
1141
1148
  case 3:
1142
- bone.scaleX = (x - bone.data.scaleX) * alpha;
1149
+ bone.scaleX += (x - bone.data.scaleX) * alpha;
1143
1150
  }
1144
1151
  } else {
1145
1152
  switch (blend) {
@@ -1200,7 +1207,7 @@ var spine = (() => {
1200
1207
  bone.scaleY = by + (Math.abs(y) * MathUtils.signum(by) - by) * alpha;
1201
1208
  break;
1202
1209
  case 3:
1203
- bone.scaleY = (y - bone.data.scaleY) * alpha;
1210
+ bone.scaleY += (y - bone.data.scaleY) * alpha;
1204
1211
  }
1205
1212
  } else {
1206
1213
  switch (blend) {
@@ -1795,6 +1802,8 @@ var spine = (() => {
1795
1802
  Property.deform + "|" + slotIndex + "|" + attachment.id
1796
1803
  ]);
1797
1804
  this.slotIndex = 0;
1805
+ this.attachment = null;
1806
+ this.vertices = null;
1798
1807
  this.slotIndex = slotIndex;
1799
1808
  this.attachment = attachment;
1800
1809
  this.vertices = new Array(frameCount);
@@ -2011,6 +2020,7 @@ var spine = (() => {
2011
2020
  var _EventTimeline = class extends Timeline {
2012
2021
  constructor(frameCount) {
2013
2022
  super(frameCount, _EventTimeline.propertyIds);
2023
+ this.events = null;
2014
2024
  this.events = new Array(frameCount);
2015
2025
  }
2016
2026
  getFrameCount() {
@@ -2053,6 +2063,7 @@ var spine = (() => {
2053
2063
  var _DrawOrderTimeline = class extends Timeline {
2054
2064
  constructor(frameCount) {
2055
2065
  super(frameCount, _DrawOrderTimeline.propertyIds);
2066
+ this.drawOrders = null;
2056
2067
  this.drawOrders = new Array(frameCount);
2057
2068
  }
2058
2069
  getFrameCount() {
@@ -2091,6 +2102,7 @@ var spine = (() => {
2091
2102
  super(frameCount, bezierCount, [
2092
2103
  Property.ikConstraint + "|" + ikConstraintIndex
2093
2104
  ]);
2105
+ this.ikConstraintIndex = 0;
2094
2106
  this.ikConstraintIndex = ikConstraintIndex;
2095
2107
  }
2096
2108
  getFrameEntries() {
@@ -2176,6 +2188,7 @@ var spine = (() => {
2176
2188
  super(frameCount, bezierCount, [
2177
2189
  Property.transformConstraint + "|" + transformConstraintIndex
2178
2190
  ]);
2191
+ this.transformConstraintIndex = 0;
2179
2192
  this.transformConstraintIndex = transformConstraintIndex;
2180
2193
  }
2181
2194
  getFrameEntries() {
@@ -2275,6 +2288,7 @@ var spine = (() => {
2275
2288
  var PathConstraintPositionTimeline = class extends CurveTimeline1 {
2276
2289
  constructor(frameCount, bezierCount, pathConstraintIndex) {
2277
2290
  super(frameCount, bezierCount, Property.pathConstraintPosition + "|" + pathConstraintIndex);
2291
+ this.pathConstraintIndex = 0;
2278
2292
  this.pathConstraintIndex = pathConstraintIndex;
2279
2293
  }
2280
2294
  apply(skeleton, lastTime, time, firedEvents, alpha, blend, direction) {
@@ -2405,6 +2419,7 @@ var spine = (() => {
2405
2419
  // spine-core/src/AnimationState.ts
2406
2420
  var AnimationState = class {
2407
2421
  constructor(data) {
2422
+ this.data = null;
2408
2423
  this.tracks = new Array();
2409
2424
  this.timeScale = 1;
2410
2425
  this.unkeyedState = 0;
@@ -2883,6 +2898,7 @@ var spine = (() => {
2883
2898
  }
2884
2899
  trackEntry(trackIndex, animation, loop, last) {
2885
2900
  let entry = this.trackEntryPool.obtain();
2901
+ entry.reset();
2886
2902
  entry.trackIndex = trackIndex;
2887
2903
  entry.animation = animation;
2888
2904
  entry.loop = loop;
@@ -2993,6 +3009,34 @@ var spine = (() => {
2993
3009
  };
2994
3010
  var TrackEntry = class {
2995
3011
  constructor() {
3012
+ this.animation = null;
3013
+ this.previous = null;
3014
+ this.next = null;
3015
+ this.mixingFrom = null;
3016
+ this.mixingTo = null;
3017
+ this.listener = null;
3018
+ this.trackIndex = 0;
3019
+ this.loop = false;
3020
+ this.holdPrevious = false;
3021
+ this.reverse = false;
3022
+ this.eventThreshold = 0;
3023
+ this.attachmentThreshold = 0;
3024
+ this.drawOrderThreshold = 0;
3025
+ this.animationStart = 0;
3026
+ this.animationEnd = 0;
3027
+ this.animationLast = 0;
3028
+ this.nextAnimationLast = 0;
3029
+ this.delay = 0;
3030
+ this.trackTime = 0;
3031
+ this.trackLast = 0;
3032
+ this.nextTrackLast = 0;
3033
+ this.trackEnd = 0;
3034
+ this.timeScale = 0;
3035
+ this.alpha = 0;
3036
+ this.mixTime = 0;
3037
+ this.mixDuration = 0;
3038
+ this.interruptAlpha = 0;
3039
+ this.totalAlpha = 0;
2996
3040
  this.mixBlend = MixBlend.replace;
2997
3041
  this.timelineMode = new Array();
2998
3042
  this.timelineHoldMix = new Array();
@@ -3043,6 +3087,7 @@ var spine = (() => {
3043
3087
  constructor(animState) {
3044
3088
  this.objects = [];
3045
3089
  this.drainDisabled = false;
3090
+ this.animState = null;
3046
3091
  this.animState = animState;
3047
3092
  }
3048
3093
  start(entry) {
@@ -3169,6 +3214,7 @@ var spine = (() => {
3169
3214
  // spine-core/src/AnimationStateData.ts
3170
3215
  var AnimationStateData = class {
3171
3216
  constructor(skeletonData) {
3217
+ this.skeletonData = null;
3172
3218
  this.animationToMixTime = {};
3173
3219
  this.defaultMix = 0;
3174
3220
  if (!skeletonData)
@@ -3217,6 +3263,7 @@ var spine = (() => {
3217
3263
  var ClippingAttachment = class extends VertexAttachment {
3218
3264
  constructor(name) {
3219
3265
  super(name);
3266
+ this.endSlot = null;
3220
3267
  this.color = new Color(0.2275, 0.2275, 0.8078, 1);
3221
3268
  }
3222
3269
  copy() {
@@ -3440,6 +3487,7 @@ var spine = (() => {
3440
3487
  };
3441
3488
  var TextureAtlasReader = class {
3442
3489
  constructor(text) {
3490
+ this.lines = null;
3443
3491
  this.index = 0;
3444
3492
  this.lines = text.split(/\r\n|\r|\n/);
3445
3493
  }
@@ -3473,10 +3521,15 @@ var spine = (() => {
3473
3521
  };
3474
3522
  var TextureAtlasPage = class {
3475
3523
  constructor() {
3524
+ this.name = null;
3476
3525
  this.minFilter = TextureFilter.Nearest;
3477
3526
  this.magFilter = TextureFilter.Nearest;
3478
3527
  this.uWrap = TextureWrap.ClampToEdge;
3479
3528
  this.vWrap = TextureWrap.ClampToEdge;
3529
+ this.texture = null;
3530
+ this.width = 0;
3531
+ this.height = 0;
3532
+ this.pma = false;
3480
3533
  }
3481
3534
  setTexture(texture) {
3482
3535
  this.texture = texture;
@@ -3485,13 +3538,38 @@ var spine = (() => {
3485
3538
  }
3486
3539
  };
3487
3540
  var TextureAtlasRegion = class extends TextureRegion {
3541
+ constructor() {
3542
+ super(...arguments);
3543
+ this.page = null;
3544
+ this.name = null;
3545
+ this.x = 0;
3546
+ this.y = 0;
3547
+ this.offsetX = 0;
3548
+ this.offsetY = 0;
3549
+ this.originalWidth = 0;
3550
+ this.originalHeight = 0;
3551
+ this.index = 0;
3552
+ this.degrees = 0;
3553
+ this.names = null;
3554
+ this.values = null;
3555
+ }
3488
3556
  };
3489
3557
 
3490
3558
  // spine-core/src/attachments/MeshAttachment.ts
3491
3559
  var MeshAttachment = class extends VertexAttachment {
3492
3560
  constructor(name) {
3493
3561
  super(name);
3562
+ this.region = null;
3563
+ this.path = null;
3564
+ this.regionUVs = null;
3565
+ this.uvs = null;
3566
+ this.triangles = null;
3494
3567
  this.color = new Color(1, 1, 1, 1);
3568
+ this.width = 0;
3569
+ this.height = 0;
3570
+ this.hullLength = 0;
3571
+ this.edges = null;
3572
+ this.parentMesh = null;
3495
3573
  this.tempColor = new Color(0, 0, 0, 0);
3496
3574
  }
3497
3575
  updateUVs() {
@@ -3606,6 +3684,7 @@ var spine = (() => {
3606
3684
  var PathAttachment = class extends VertexAttachment {
3607
3685
  constructor(name) {
3608
3686
  super(name);
3687
+ this.lengths = null;
3609
3688
  this.closed = false;
3610
3689
  this.constantSpeed = false;
3611
3690
  this.color = new Color(1, 1, 1, 1);
@@ -3626,6 +3705,9 @@ var spine = (() => {
3626
3705
  var PointAttachment = class extends VertexAttachment {
3627
3706
  constructor(name) {
3628
3707
  super(name);
3708
+ this.x = 0;
3709
+ this.y = 0;
3710
+ this.rotation = 0;
3629
3711
  this.color = new Color(0.38, 0.94, 0, 1);
3630
3712
  }
3631
3713
  computeWorldPosition(bone, point) {
@@ -3661,6 +3743,9 @@ var spine = (() => {
3661
3743
  this.width = 0;
3662
3744
  this.height = 0;
3663
3745
  this.color = new Color(1, 1, 1, 1);
3746
+ this.path = null;
3747
+ this.rendererObject = null;
3748
+ this.region = null;
3664
3749
  this.offset = Utils.newFloatArray(8);
3665
3750
  this.uvs = Utils.newFloatArray(8);
3666
3751
  this.tempColor = new Color(1, 1, 1, 1);
@@ -3798,6 +3883,7 @@ var spine = (() => {
3798
3883
  // spine-core/src/AtlasAttachmentLoader.ts
3799
3884
  var AtlasAttachmentLoader = class {
3800
3885
  constructor(atlas) {
3886
+ this.atlas = null;
3801
3887
  this.atlas = atlas;
3802
3888
  }
3803
3889
  newRegionAttachment(skin, name, path) {
@@ -3835,6 +3921,10 @@ var spine = (() => {
3835
3921
  // spine-core/src/BoneData.ts
3836
3922
  var BoneData = class {
3837
3923
  constructor(index, name, parent) {
3924
+ this.index = 0;
3925
+ this.name = null;
3926
+ this.parent = null;
3927
+ this.length = 0;
3838
3928
  this.x = 0;
3839
3929
  this.y = 0;
3840
3930
  this.rotation = 0;
@@ -3866,6 +3956,9 @@ var spine = (() => {
3866
3956
  // spine-core/src/Bone.ts
3867
3957
  var Bone = class {
3868
3958
  constructor(data, skeleton, parent) {
3959
+ this.data = null;
3960
+ this.skeleton = null;
3961
+ this.parent = null;
3869
3962
  this.children = new Array();
3870
3963
  this.x = 0;
3871
3964
  this.y = 0;
@@ -4118,6 +4211,7 @@ var spine = (() => {
4118
4211
  // spine-core/src/AssetManagerBase.ts
4119
4212
  var AssetManagerBase = class {
4120
4213
  constructor(textureLoader, pathPrefix = "", downloader = null) {
4214
+ this.pathPrefix = null;
4121
4215
  this.assets = {};
4122
4216
  this.errors = {};
4123
4217
  this.toLoad = 0;
@@ -4201,7 +4295,7 @@ var spine = (() => {
4201
4295
  image.src = path;
4202
4296
  }
4203
4297
  }
4204
- loadTextureAtlas(path, success = null, error = null) {
4298
+ loadTextureAtlas(path, success = null, error = null, fileAlias = null) {
4205
4299
  let index = path.lastIndexOf("/");
4206
4300
  let parent = index >= 0 ? path.substring(0, index + 1) : "";
4207
4301
  path = this.start(path);
@@ -4210,7 +4304,7 @@ var spine = (() => {
4210
4304
  let atlas = new TextureAtlas(atlasText);
4211
4305
  let toLoad = atlas.pages.length, abort = false;
4212
4306
  for (let page of atlas.pages) {
4213
- this.loadTexture(parent + page.name, (imagePath, texture) => {
4307
+ this.loadTexture(fileAlias == null ? parent + page.name : fileAlias[page.name], (imagePath, texture) => {
4214
4308
  if (!abort) {
4215
4309
  page.setTexture(texture);
4216
4310
  if (--toLoad == 0)
@@ -4357,7 +4451,7 @@ var spine = (() => {
4357
4451
  this.finish(url, request.status, request.response);
4358
4452
  };
4359
4453
  request.onload = () => {
4360
- if (request.status == 200)
4454
+ if (request.status == 200 || request.status == 0)
4361
4455
  this.finish(url, 200, new Uint8Array(request.response));
4362
4456
  else
4363
4457
  onerror();
@@ -4378,7 +4472,7 @@ var spine = (() => {
4378
4472
  finish(url, status, data) {
4379
4473
  let callbacks = this.callbacks[url];
4380
4474
  delete this.callbacks[url];
4381
- let args = status == 200 ? [data] : [status, data];
4475
+ let args = status == 200 || status == 0 ? [data] : [status, data];
4382
4476
  for (let i = args.length - 1, n = callbacks.length; i < n; i += 2)
4383
4477
  callbacks[i].apply(null, args);
4384
4478
  }
@@ -4387,6 +4481,13 @@ var spine = (() => {
4387
4481
  // spine-core/src/Event.ts
4388
4482
  var Event = class {
4389
4483
  constructor(time, data) {
4484
+ this.data = null;
4485
+ this.intValue = 0;
4486
+ this.floatValue = 0;
4487
+ this.stringValue = null;
4488
+ this.time = 0;
4489
+ this.volume = 0;
4490
+ this.balance = 0;
4390
4491
  if (!data)
4391
4492
  throw new Error("data cannot be null.");
4392
4493
  this.time = time;
@@ -4397,6 +4498,13 @@ var spine = (() => {
4397
4498
  // spine-core/src/EventData.ts
4398
4499
  var EventData = class {
4399
4500
  constructor(name) {
4501
+ this.name = null;
4502
+ this.intValue = 0;
4503
+ this.floatValue = 0;
4504
+ this.stringValue = null;
4505
+ this.audioPath = null;
4506
+ this.volume = 0;
4507
+ this.balance = 0;
4400
4508
  this.name = name;
4401
4509
  }
4402
4510
  };
@@ -4404,6 +4512,9 @@ var spine = (() => {
4404
4512
  // spine-core/src/IkConstraint.ts
4405
4513
  var IkConstraint = class {
4406
4514
  constructor(data, skeleton) {
4515
+ this.data = null;
4516
+ this.bones = null;
4517
+ this.target = null;
4407
4518
  this.bendDirection = 0;
4408
4519
  this.compress = false;
4409
4520
  this.stretch = false;
@@ -4642,6 +4753,7 @@ var spine = (() => {
4642
4753
  constructor(name) {
4643
4754
  super(name, 0, false);
4644
4755
  this.bones = new Array();
4756
+ this.target = null;
4645
4757
  this.bendDirection = 1;
4646
4758
  this.compress = false;
4647
4759
  this.stretch = false;
@@ -4656,6 +4768,13 @@ var spine = (() => {
4656
4768
  constructor(name) {
4657
4769
  super(name, 0, false);
4658
4770
  this.bones = new Array();
4771
+ this.target = null;
4772
+ this.positionMode = null;
4773
+ this.spacingMode = null;
4774
+ this.rotateMode = null;
4775
+ this.offsetRotation = 0;
4776
+ this.position = 0;
4777
+ this.spacing = 0;
4659
4778
  this.mixRotate = 0;
4660
4779
  this.mixX = 0;
4661
4780
  this.mixY = 0;
@@ -4683,6 +4802,9 @@ var spine = (() => {
4683
4802
  // spine-core/src/PathConstraint.ts
4684
4803
  var _PathConstraint = class {
4685
4804
  constructor(data, skeleton) {
4805
+ this.data = null;
4806
+ this.bones = null;
4807
+ this.target = null;
4686
4808
  this.position = 0;
4687
4809
  this.spacing = 0;
4688
4810
  this.mixRotate = 0;
@@ -5102,6 +5224,13 @@ var spine = (() => {
5102
5224
  // spine-core/src/Slot.ts
5103
5225
  var Slot = class {
5104
5226
  constructor(data, bone) {
5227
+ this.data = null;
5228
+ this.bone = null;
5229
+ this.color = null;
5230
+ this.darkColor = null;
5231
+ this.attachment = null;
5232
+ this.attachmentTime = 0;
5233
+ this.attachmentState = 0;
5105
5234
  this.deform = new Array();
5106
5235
  if (!data)
5107
5236
  throw new Error("data cannot be null.");
@@ -5150,6 +5279,9 @@ var spine = (() => {
5150
5279
  // spine-core/src/TransformConstraint.ts
5151
5280
  var TransformConstraint = class {
5152
5281
  constructor(data, skeleton) {
5282
+ this.data = null;
5283
+ this.bones = null;
5284
+ this.target = null;
5153
5285
  this.mixRotate = 0;
5154
5286
  this.mixX = 0;
5155
5287
  this.mixY = 0;
@@ -5357,7 +5489,16 @@ var spine = (() => {
5357
5489
  // spine-core/src/Skeleton.ts
5358
5490
  var Skeleton = class {
5359
5491
  constructor(data) {
5492
+ this.data = null;
5493
+ this.bones = null;
5494
+ this.slots = null;
5495
+ this.drawOrder = null;
5496
+ this.ikConstraints = null;
5497
+ this.transformConstraints = null;
5498
+ this.pathConstraints = null;
5360
5499
  this._updateCache = new Array();
5500
+ this.skin = null;
5501
+ this.color = null;
5361
5502
  this.time = 0;
5362
5503
  this.scaleX = 1;
5363
5504
  this.scaleY = 1;
@@ -5820,15 +5961,25 @@ var spine = (() => {
5820
5961
  // spine-core/src/SkeletonData.ts
5821
5962
  var SkeletonData = class {
5822
5963
  constructor() {
5964
+ this.name = null;
5823
5965
  this.bones = new Array();
5824
5966
  this.slots = new Array();
5825
5967
  this.skins = new Array();
5968
+ this.defaultSkin = null;
5826
5969
  this.events = new Array();
5827
5970
  this.animations = new Array();
5828
5971
  this.ikConstraints = new Array();
5829
5972
  this.transformConstraints = new Array();
5830
5973
  this.pathConstraints = new Array();
5974
+ this.x = 0;
5975
+ this.y = 0;
5976
+ this.width = 0;
5977
+ this.height = 0;
5978
+ this.version = null;
5979
+ this.hash = null;
5831
5980
  this.fps = 0;
5981
+ this.imagesPath = null;
5982
+ this.audioPath = null;
5832
5983
  }
5833
5984
  findBone(boneName) {
5834
5985
  if (!boneName)
@@ -5922,7 +6073,7 @@ var spine = (() => {
5922
6073
 
5923
6074
  // spine-core/src/Skin.ts
5924
6075
  var SkinEntry = class {
5925
- constructor(slotIndex, name, attachment) {
6076
+ constructor(slotIndex = 0, name = null, attachment = null) {
5926
6077
  this.slotIndex = slotIndex;
5927
6078
  this.name = name;
5928
6079
  this.attachment = attachment;
@@ -5930,6 +6081,7 @@ var spine = (() => {
5930
6081
  };
5931
6082
  var Skin = class {
5932
6083
  constructor(name) {
6084
+ this.name = null;
5933
6085
  this.attachments = new Array();
5934
6086
  this.bones = Array();
5935
6087
  this.constraints = new Array();
@@ -6080,7 +6232,13 @@ var spine = (() => {
6080
6232
  // spine-core/src/SlotData.ts
6081
6233
  var SlotData = class {
6082
6234
  constructor(index, name, boneData) {
6235
+ this.index = 0;
6236
+ this.name = null;
6237
+ this.boneData = null;
6083
6238
  this.color = new Color(1, 1, 1, 1);
6239
+ this.darkColor = null;
6240
+ this.attachmentName = null;
6241
+ this.blendMode = null;
6084
6242
  if (index < 0)
6085
6243
  throw new Error("index must be >= 0.");
6086
6244
  if (!name)
@@ -6105,6 +6263,7 @@ var spine = (() => {
6105
6263
  constructor(name) {
6106
6264
  super(name, 0, false);
6107
6265
  this.bones = new Array();
6266
+ this.target = null;
6108
6267
  this.mixRotate = 0;
6109
6268
  this.mixX = 0;
6110
6269
  this.mixY = 0;
@@ -6126,6 +6285,7 @@ var spine = (() => {
6126
6285
  var SkeletonBinary = class {
6127
6286
  constructor(attachmentLoader) {
6128
6287
  this.scale = 1;
6288
+ this.attachmentLoader = null;
6129
6289
  this.linkedMeshes = new Array();
6130
6290
  this.attachmentLoader = attachmentLoader;
6131
6291
  }
@@ -7801,6 +7961,7 @@ var spine = (() => {
7801
7961
  // spine-core/src/SkeletonJson.ts
7802
7962
  var SkeletonJson = class {
7803
7963
  constructor(attachmentLoader) {
7964
+ this.attachmentLoader = null;
7804
7965
  this.scale = 1;
7805
7966
  this.linkedMeshes = new Array();
7806
7967
  this.attachmentLoader = attachmentLoader;
@@ -9262,6 +9423,7 @@ var spine = (() => {
9262
9423
  this.touch1 = null;
9263
9424
  this.initialPinchDistance = 0;
9264
9425
  this.listeners = new Array();
9426
+ this.eventListeners = [];
9265
9427
  this.element = element;
9266
9428
  this.setupCallbacks(element);
9267
9429
  }
@@ -10828,6 +10990,13 @@ var spine = (() => {
10828
10990
  this.skeletonRenderer = new SkeletonRenderer(this.context, twoColorTint);
10829
10991
  this.skeletonDebugRenderer = new SkeletonDebugRenderer(this.context);
10830
10992
  }
10993
+ dispose() {
10994
+ this.batcher.dispose();
10995
+ this.batcherShader.dispose();
10996
+ this.shapes.dispose();
10997
+ this.shapesShader.dispose();
10998
+ this.skeletonDebugRenderer.dispose();
10999
+ }
10831
11000
  begin() {
10832
11001
  this.camera.update();
10833
11002
  this.enableRenderer(this.batcher);
@@ -11224,13 +11393,6 @@ var spine = (() => {
11224
11393
  } else
11225
11394
  this.activeRenderer = this.skeletonDebugRenderer;
11226
11395
  }
11227
- dispose() {
11228
- this.batcher.dispose();
11229
- this.batcherShader.dispose();
11230
- this.shapes.dispose();
11231
- this.shapesShader.dispose();
11232
- this.skeletonDebugRenderer.dispose();
11233
- }
11234
11396
  };
11235
11397
  var ResizeMode;
11236
11398
  (function(ResizeMode2) {
@@ -11275,6 +11437,10 @@ var spine = (() => {
11275
11437
  spinnerImage.onload = onload;
11276
11438
  }
11277
11439
  }
11440
+ dispose() {
11441
+ this.logo.dispose();
11442
+ this.spinner.dispose();
11443
+ }
11278
11444
  draw(complete = false) {
11279
11445
  if (loaded < 2 || complete && this.fadeOut > FADE_OUT)
11280
11446
  return;