@esotericsoftware/spine-webgl 4.0.14 → 4.0.18

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.
@@ -1,9 +1,6 @@
1
1
  var spine = (() => {
2
2
  var __defProp = Object.defineProperty;
3
3
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
4
- var __require = typeof require !== "undefined" ? require : (x) => {
5
- throw new Error('Dynamic require of "' + x + '" is not supported');
6
- };
7
4
  var __export = (target, all) => {
8
5
  __markAsModule(target);
9
6
  for (var name in all)
@@ -556,6 +553,8 @@ var spine = (() => {
556
553
  constructor(name) {
557
554
  super(name);
558
555
  this.id = _VertexAttachment.nextID++;
556
+ this.bones = null;
557
+ this.vertices = null;
559
558
  this.worldVerticesLength = 0;
560
559
  this.deformAttachment = this;
561
560
  }
@@ -638,6 +637,8 @@ var spine = (() => {
638
637
  // spine-core/src/Animation.ts
639
638
  var Animation = class {
640
639
  constructor(name, timelines, duration) {
640
+ this.timelines = null;
641
+ this.timelineIds = null;
641
642
  if (!name)
642
643
  throw new Error("name cannot be null.");
643
644
  this.name = name;
@@ -706,6 +707,8 @@ var spine = (() => {
706
707
  };
707
708
  var Timeline = class {
708
709
  constructor(frameCount, propertyIds) {
710
+ this.propertyIds = null;
711
+ this.frames = null;
709
712
  this.propertyIds = propertyIds;
710
713
  this.frames = Utils.newFloatArray(frameCount * this.getFrameEntries());
711
714
  }
@@ -739,6 +742,7 @@ var spine = (() => {
739
742
  var CurveTimeline = class extends Timeline {
740
743
  constructor(frameCount, bezierCount, propertyIds) {
741
744
  super(frameCount, propertyIds);
745
+ this.curves = null;
742
746
  this.curves = Utils.newFloatArray(frameCount + bezierCount * 18);
743
747
  this.curves[frameCount - 1] = 1;
744
748
  }
@@ -1798,6 +1802,8 @@ var spine = (() => {
1798
1802
  Property.deform + "|" + slotIndex + "|" + attachment.id
1799
1803
  ]);
1800
1804
  this.slotIndex = 0;
1805
+ this.attachment = null;
1806
+ this.vertices = null;
1801
1807
  this.slotIndex = slotIndex;
1802
1808
  this.attachment = attachment;
1803
1809
  this.vertices = new Array(frameCount);
@@ -2014,6 +2020,7 @@ var spine = (() => {
2014
2020
  var _EventTimeline = class extends Timeline {
2015
2021
  constructor(frameCount) {
2016
2022
  super(frameCount, _EventTimeline.propertyIds);
2023
+ this.events = null;
2017
2024
  this.events = new Array(frameCount);
2018
2025
  }
2019
2026
  getFrameCount() {
@@ -2056,6 +2063,7 @@ var spine = (() => {
2056
2063
  var _DrawOrderTimeline = class extends Timeline {
2057
2064
  constructor(frameCount) {
2058
2065
  super(frameCount, _DrawOrderTimeline.propertyIds);
2066
+ this.drawOrders = null;
2059
2067
  this.drawOrders = new Array(frameCount);
2060
2068
  }
2061
2069
  getFrameCount() {
@@ -2094,6 +2102,7 @@ var spine = (() => {
2094
2102
  super(frameCount, bezierCount, [
2095
2103
  Property.ikConstraint + "|" + ikConstraintIndex
2096
2104
  ]);
2105
+ this.ikConstraintIndex = 0;
2097
2106
  this.ikConstraintIndex = ikConstraintIndex;
2098
2107
  }
2099
2108
  getFrameEntries() {
@@ -2179,6 +2188,7 @@ var spine = (() => {
2179
2188
  super(frameCount, bezierCount, [
2180
2189
  Property.transformConstraint + "|" + transformConstraintIndex
2181
2190
  ]);
2191
+ this.transformConstraintIndex = 0;
2182
2192
  this.transformConstraintIndex = transformConstraintIndex;
2183
2193
  }
2184
2194
  getFrameEntries() {
@@ -2278,6 +2288,7 @@ var spine = (() => {
2278
2288
  var PathConstraintPositionTimeline = class extends CurveTimeline1 {
2279
2289
  constructor(frameCount, bezierCount, pathConstraintIndex) {
2280
2290
  super(frameCount, bezierCount, Property.pathConstraintPosition + "|" + pathConstraintIndex);
2291
+ this.pathConstraintIndex = 0;
2281
2292
  this.pathConstraintIndex = pathConstraintIndex;
2282
2293
  }
2283
2294
  apply(skeleton, lastTime, time, firedEvents, alpha, blend, direction) {
@@ -2408,6 +2419,7 @@ var spine = (() => {
2408
2419
  // spine-core/src/AnimationState.ts
2409
2420
  var AnimationState = class {
2410
2421
  constructor(data) {
2422
+ this.data = null;
2411
2423
  this.tracks = new Array();
2412
2424
  this.timeScale = 1;
2413
2425
  this.unkeyedState = 0;
@@ -2886,6 +2898,7 @@ var spine = (() => {
2886
2898
  }
2887
2899
  trackEntry(trackIndex, animation, loop, last) {
2888
2900
  let entry = this.trackEntryPool.obtain();
2901
+ entry.reset();
2889
2902
  entry.trackIndex = trackIndex;
2890
2903
  entry.animation = animation;
2891
2904
  entry.loop = loop;
@@ -2996,6 +3009,34 @@ var spine = (() => {
2996
3009
  };
2997
3010
  var TrackEntry = class {
2998
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;
2999
3040
  this.mixBlend = MixBlend.replace;
3000
3041
  this.timelineMode = new Array();
3001
3042
  this.timelineHoldMix = new Array();
@@ -3046,6 +3087,7 @@ var spine = (() => {
3046
3087
  constructor(animState) {
3047
3088
  this.objects = [];
3048
3089
  this.drainDisabled = false;
3090
+ this.animState = null;
3049
3091
  this.animState = animState;
3050
3092
  }
3051
3093
  start(entry) {
@@ -3172,6 +3214,7 @@ var spine = (() => {
3172
3214
  // spine-core/src/AnimationStateData.ts
3173
3215
  var AnimationStateData = class {
3174
3216
  constructor(skeletonData) {
3217
+ this.skeletonData = null;
3175
3218
  this.animationToMixTime = {};
3176
3219
  this.defaultMix = 0;
3177
3220
  if (!skeletonData)
@@ -3220,6 +3263,7 @@ var spine = (() => {
3220
3263
  var ClippingAttachment = class extends VertexAttachment {
3221
3264
  constructor(name) {
3222
3265
  super(name);
3266
+ this.endSlot = null;
3223
3267
  this.color = new Color(0.2275, 0.2275, 0.8078, 1);
3224
3268
  }
3225
3269
  copy() {
@@ -3443,6 +3487,7 @@ var spine = (() => {
3443
3487
  };
3444
3488
  var TextureAtlasReader = class {
3445
3489
  constructor(text) {
3490
+ this.lines = null;
3446
3491
  this.index = 0;
3447
3492
  this.lines = text.split(/\r\n|\r|\n/);
3448
3493
  }
@@ -3476,10 +3521,15 @@ var spine = (() => {
3476
3521
  };
3477
3522
  var TextureAtlasPage = class {
3478
3523
  constructor() {
3524
+ this.name = null;
3479
3525
  this.minFilter = TextureFilter.Nearest;
3480
3526
  this.magFilter = TextureFilter.Nearest;
3481
3527
  this.uWrap = TextureWrap.ClampToEdge;
3482
3528
  this.vWrap = TextureWrap.ClampToEdge;
3529
+ this.texture = null;
3530
+ this.width = 0;
3531
+ this.height = 0;
3532
+ this.pma = false;
3483
3533
  }
3484
3534
  setTexture(texture) {
3485
3535
  this.texture = texture;
@@ -3488,13 +3538,38 @@ var spine = (() => {
3488
3538
  }
3489
3539
  };
3490
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
+ }
3491
3556
  };
3492
3557
 
3493
3558
  // spine-core/src/attachments/MeshAttachment.ts
3494
3559
  var MeshAttachment = class extends VertexAttachment {
3495
3560
  constructor(name) {
3496
3561
  super(name);
3562
+ this.region = null;
3563
+ this.path = null;
3564
+ this.regionUVs = null;
3565
+ this.uvs = null;
3566
+ this.triangles = null;
3497
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;
3498
3573
  this.tempColor = new Color(0, 0, 0, 0);
3499
3574
  }
3500
3575
  updateUVs() {
@@ -3609,6 +3684,7 @@ var spine = (() => {
3609
3684
  var PathAttachment = class extends VertexAttachment {
3610
3685
  constructor(name) {
3611
3686
  super(name);
3687
+ this.lengths = null;
3612
3688
  this.closed = false;
3613
3689
  this.constantSpeed = false;
3614
3690
  this.color = new Color(1, 1, 1, 1);
@@ -3629,6 +3705,9 @@ var spine = (() => {
3629
3705
  var PointAttachment = class extends VertexAttachment {
3630
3706
  constructor(name) {
3631
3707
  super(name);
3708
+ this.x = 0;
3709
+ this.y = 0;
3710
+ this.rotation = 0;
3632
3711
  this.color = new Color(0.38, 0.94, 0, 1);
3633
3712
  }
3634
3713
  computeWorldPosition(bone, point) {
@@ -3664,6 +3743,9 @@ var spine = (() => {
3664
3743
  this.width = 0;
3665
3744
  this.height = 0;
3666
3745
  this.color = new Color(1, 1, 1, 1);
3746
+ this.path = null;
3747
+ this.rendererObject = null;
3748
+ this.region = null;
3667
3749
  this.offset = Utils.newFloatArray(8);
3668
3750
  this.uvs = Utils.newFloatArray(8);
3669
3751
  this.tempColor = new Color(1, 1, 1, 1);
@@ -3801,6 +3883,7 @@ var spine = (() => {
3801
3883
  // spine-core/src/AtlasAttachmentLoader.ts
3802
3884
  var AtlasAttachmentLoader = class {
3803
3885
  constructor(atlas) {
3886
+ this.atlas = null;
3804
3887
  this.atlas = atlas;
3805
3888
  }
3806
3889
  newRegionAttachment(skin, name, path) {
@@ -3838,6 +3921,10 @@ var spine = (() => {
3838
3921
  // spine-core/src/BoneData.ts
3839
3922
  var BoneData = class {
3840
3923
  constructor(index, name, parent) {
3924
+ this.index = 0;
3925
+ this.name = null;
3926
+ this.parent = null;
3927
+ this.length = 0;
3841
3928
  this.x = 0;
3842
3929
  this.y = 0;
3843
3930
  this.rotation = 0;
@@ -3869,6 +3956,9 @@ var spine = (() => {
3869
3956
  // spine-core/src/Bone.ts
3870
3957
  var Bone = class {
3871
3958
  constructor(data, skeleton, parent) {
3959
+ this.data = null;
3960
+ this.skeleton = null;
3961
+ this.parent = null;
3872
3962
  this.children = new Array();
3873
3963
  this.x = 0;
3874
3964
  this.y = 0;
@@ -4121,6 +4211,7 @@ var spine = (() => {
4121
4211
  // spine-core/src/AssetManagerBase.ts
4122
4212
  var AssetManagerBase = class {
4123
4213
  constructor(textureLoader, pathPrefix = "", downloader = null) {
4214
+ this.pathPrefix = null;
4124
4215
  this.assets = {};
4125
4216
  this.errors = {};
4126
4217
  this.toLoad = 0;
@@ -4204,7 +4295,7 @@ var spine = (() => {
4204
4295
  image.src = path;
4205
4296
  }
4206
4297
  }
4207
- loadTextureAtlas(path, success = null, error = null) {
4298
+ loadTextureAtlas(path, success = null, error = null, fileAlias = null) {
4208
4299
  let index = path.lastIndexOf("/");
4209
4300
  let parent = index >= 0 ? path.substring(0, index + 1) : "";
4210
4301
  path = this.start(path);
@@ -4213,7 +4304,7 @@ var spine = (() => {
4213
4304
  let atlas = new TextureAtlas(atlasText);
4214
4305
  let toLoad = atlas.pages.length, abort = false;
4215
4306
  for (let page of atlas.pages) {
4216
- this.loadTexture(parent + page.name, (imagePath, texture) => {
4307
+ this.loadTexture(fileAlias == null ? parent + page.name : fileAlias[page.name], (imagePath, texture) => {
4217
4308
  if (!abort) {
4218
4309
  page.setTexture(texture);
4219
4310
  if (--toLoad == 0)
@@ -4360,7 +4451,7 @@ var spine = (() => {
4360
4451
  this.finish(url, request.status, request.response);
4361
4452
  };
4362
4453
  request.onload = () => {
4363
- if (request.status == 200)
4454
+ if (request.status == 200 || request.status == 0)
4364
4455
  this.finish(url, 200, new Uint8Array(request.response));
4365
4456
  else
4366
4457
  onerror();
@@ -4381,7 +4472,7 @@ var spine = (() => {
4381
4472
  finish(url, status, data) {
4382
4473
  let callbacks = this.callbacks[url];
4383
4474
  delete this.callbacks[url];
4384
- let args = status == 200 ? [data] : [status, data];
4475
+ let args = status == 200 || status == 0 ? [data] : [status, data];
4385
4476
  for (let i = args.length - 1, n = callbacks.length; i < n; i += 2)
4386
4477
  callbacks[i].apply(null, args);
4387
4478
  }
@@ -4390,6 +4481,13 @@ var spine = (() => {
4390
4481
  // spine-core/src/Event.ts
4391
4482
  var Event = class {
4392
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;
4393
4491
  if (!data)
4394
4492
  throw new Error("data cannot be null.");
4395
4493
  this.time = time;
@@ -4400,6 +4498,13 @@ var spine = (() => {
4400
4498
  // spine-core/src/EventData.ts
4401
4499
  var EventData = class {
4402
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;
4403
4508
  this.name = name;
4404
4509
  }
4405
4510
  };
@@ -4407,6 +4512,9 @@ var spine = (() => {
4407
4512
  // spine-core/src/IkConstraint.ts
4408
4513
  var IkConstraint = class {
4409
4514
  constructor(data, skeleton) {
4515
+ this.data = null;
4516
+ this.bones = null;
4517
+ this.target = null;
4410
4518
  this.bendDirection = 0;
4411
4519
  this.compress = false;
4412
4520
  this.stretch = false;
@@ -4645,6 +4753,7 @@ var spine = (() => {
4645
4753
  constructor(name) {
4646
4754
  super(name, 0, false);
4647
4755
  this.bones = new Array();
4756
+ this.target = null;
4648
4757
  this.bendDirection = 1;
4649
4758
  this.compress = false;
4650
4759
  this.stretch = false;
@@ -4659,6 +4768,13 @@ var spine = (() => {
4659
4768
  constructor(name) {
4660
4769
  super(name, 0, false);
4661
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;
4662
4778
  this.mixRotate = 0;
4663
4779
  this.mixX = 0;
4664
4780
  this.mixY = 0;
@@ -4686,6 +4802,9 @@ var spine = (() => {
4686
4802
  // spine-core/src/PathConstraint.ts
4687
4803
  var _PathConstraint = class {
4688
4804
  constructor(data, skeleton) {
4805
+ this.data = null;
4806
+ this.bones = null;
4807
+ this.target = null;
4689
4808
  this.position = 0;
4690
4809
  this.spacing = 0;
4691
4810
  this.mixRotate = 0;
@@ -5105,6 +5224,13 @@ var spine = (() => {
5105
5224
  // spine-core/src/Slot.ts
5106
5225
  var Slot = class {
5107
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;
5108
5234
  this.deform = new Array();
5109
5235
  if (!data)
5110
5236
  throw new Error("data cannot be null.");
@@ -5153,6 +5279,9 @@ var spine = (() => {
5153
5279
  // spine-core/src/TransformConstraint.ts
5154
5280
  var TransformConstraint = class {
5155
5281
  constructor(data, skeleton) {
5282
+ this.data = null;
5283
+ this.bones = null;
5284
+ this.target = null;
5156
5285
  this.mixRotate = 0;
5157
5286
  this.mixX = 0;
5158
5287
  this.mixY = 0;
@@ -5360,7 +5489,16 @@ var spine = (() => {
5360
5489
  // spine-core/src/Skeleton.ts
5361
5490
  var Skeleton = class {
5362
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;
5363
5499
  this._updateCache = new Array();
5500
+ this.skin = null;
5501
+ this.color = null;
5364
5502
  this.time = 0;
5365
5503
  this.scaleX = 1;
5366
5504
  this.scaleY = 1;
@@ -5823,15 +5961,25 @@ var spine = (() => {
5823
5961
  // spine-core/src/SkeletonData.ts
5824
5962
  var SkeletonData = class {
5825
5963
  constructor() {
5964
+ this.name = null;
5826
5965
  this.bones = new Array();
5827
5966
  this.slots = new Array();
5828
5967
  this.skins = new Array();
5968
+ this.defaultSkin = null;
5829
5969
  this.events = new Array();
5830
5970
  this.animations = new Array();
5831
5971
  this.ikConstraints = new Array();
5832
5972
  this.transformConstraints = new Array();
5833
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;
5834
5980
  this.fps = 0;
5981
+ this.imagesPath = null;
5982
+ this.audioPath = null;
5835
5983
  }
5836
5984
  findBone(boneName) {
5837
5985
  if (!boneName)
@@ -5925,7 +6073,7 @@ var spine = (() => {
5925
6073
 
5926
6074
  // spine-core/src/Skin.ts
5927
6075
  var SkinEntry = class {
5928
- constructor(slotIndex, name, attachment) {
6076
+ constructor(slotIndex = 0, name = null, attachment = null) {
5929
6077
  this.slotIndex = slotIndex;
5930
6078
  this.name = name;
5931
6079
  this.attachment = attachment;
@@ -5933,6 +6081,7 @@ var spine = (() => {
5933
6081
  };
5934
6082
  var Skin = class {
5935
6083
  constructor(name) {
6084
+ this.name = null;
5936
6085
  this.attachments = new Array();
5937
6086
  this.bones = Array();
5938
6087
  this.constraints = new Array();
@@ -6083,7 +6232,13 @@ var spine = (() => {
6083
6232
  // spine-core/src/SlotData.ts
6084
6233
  var SlotData = class {
6085
6234
  constructor(index, name, boneData) {
6235
+ this.index = 0;
6236
+ this.name = null;
6237
+ this.boneData = null;
6086
6238
  this.color = new Color(1, 1, 1, 1);
6239
+ this.darkColor = null;
6240
+ this.attachmentName = null;
6241
+ this.blendMode = null;
6087
6242
  if (index < 0)
6088
6243
  throw new Error("index must be >= 0.");
6089
6244
  if (!name)
@@ -6108,6 +6263,7 @@ var spine = (() => {
6108
6263
  constructor(name) {
6109
6264
  super(name, 0, false);
6110
6265
  this.bones = new Array();
6266
+ this.target = null;
6111
6267
  this.mixRotate = 0;
6112
6268
  this.mixX = 0;
6113
6269
  this.mixY = 0;
@@ -6129,6 +6285,7 @@ var spine = (() => {
6129
6285
  var SkeletonBinary = class {
6130
6286
  constructor(attachmentLoader) {
6131
6287
  this.scale = 1;
6288
+ this.attachmentLoader = null;
6132
6289
  this.linkedMeshes = new Array();
6133
6290
  this.attachmentLoader = attachmentLoader;
6134
6291
  }
@@ -7804,6 +7961,7 @@ var spine = (() => {
7804
7961
  // spine-core/src/SkeletonJson.ts
7805
7962
  var SkeletonJson = class {
7806
7963
  constructor(attachmentLoader) {
7964
+ this.attachmentLoader = null;
7807
7965
  this.scale = 1;
7808
7966
  this.linkedMeshes = new Array();
7809
7967
  this.attachmentLoader = attachmentLoader;
@@ -9265,6 +9423,7 @@ var spine = (() => {
9265
9423
  this.touch1 = null;
9266
9424
  this.initialPinchDistance = 0;
9267
9425
  this.listeners = new Array();
9426
+ this.eventListeners = [];
9268
9427
  this.element = element;
9269
9428
  this.setupCallbacks(element);
9270
9429
  }
@@ -9972,6 +10131,8 @@ var spine = (() => {
9972
10131
  gl.blendFuncSeparate(this.srcColorBlend, this.dstBlend, this.srcAlphaBlend, this.dstBlend);
9973
10132
  }
9974
10133
  setBlendMode(srcColorBlend, srcAlphaBlend, dstBlend) {
10134
+ if (this.srcColorBlend == srcColorBlend && this.srcAlphaBlend == srcAlphaBlend && this.dstBlend == dstBlend)
10135
+ return;
9975
10136
  this.srcColorBlend = srcColorBlend;
9976
10137
  this.srcAlphaBlend = srcAlphaBlend;
9977
10138
  this.dstBlend = dstBlend;
@@ -10829,6 +10990,13 @@ var spine = (() => {
10829
10990
  this.skeletonRenderer = new SkeletonRenderer(this.context, twoColorTint);
10830
10991
  this.skeletonDebugRenderer = new SkeletonDebugRenderer(this.context);
10831
10992
  }
10993
+ dispose() {
10994
+ this.batcher.dispose();
10995
+ this.batcherShader.dispose();
10996
+ this.shapes.dispose();
10997
+ this.shapesShader.dispose();
10998
+ this.skeletonDebugRenderer.dispose();
10999
+ }
10832
11000
  begin() {
10833
11001
  this.camera.update();
10834
11002
  this.enableRenderer(this.batcher);
@@ -11225,13 +11393,6 @@ var spine = (() => {
11225
11393
  } else
11226
11394
  this.activeRenderer = this.skeletonDebugRenderer;
11227
11395
  }
11228
- dispose() {
11229
- this.batcher.dispose();
11230
- this.batcherShader.dispose();
11231
- this.shapes.dispose();
11232
- this.shapesShader.dispose();
11233
- this.skeletonDebugRenderer.dispose();
11234
- }
11235
11396
  };
11236
11397
  var ResizeMode;
11237
11398
  (function(ResizeMode2) {
@@ -11276,6 +11437,10 @@ var spine = (() => {
11276
11437
  spinnerImage.onload = onload;
11277
11438
  }
11278
11439
  }
11440
+ dispose() {
11441
+ this.logo.dispose();
11442
+ this.spinner.dispose();
11443
+ }
11279
11444
  draw(complete = false) {
11280
11445
  if (loaded < 2 || complete && this.fadeOut > FADE_OUT)
11281
11446
  return;