@eva/plugin-renderer-spine36 2.0.1-beta.31 → 2.0.1-beta.33

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.
@@ -427,7 +427,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
427
427
  return a;
428
428
  };
429
429
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
430
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== 'symbol' ? key + '' : key, value);
430
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
431
431
  var __async = (__this, __arguments, generator) => {
432
432
  return new Promise((resolve, reject) => {
433
433
  var fulfilled = value => {
@@ -448,26 +448,26 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
448
448
  step((generator = generator.apply(__this, __arguments)).next());
449
449
  });
450
450
  };
451
- if (typeof window !== 'undefined' && window.PIXI) {
451
+ if (typeof window !== "undefined" && window.PIXI) {
452
452
  const prevRequire = window.require;
453
453
  window.require = x => {
454
- if (prevRequire) return prevRequire(x);else if (x.startsWith('@pixi/') || x.startsWith('pixi.js')) return window.PIXI;
454
+ if (prevRequire) return prevRequire(x);else if (x.startsWith("@pixi/") || x.startsWith("pixi.js")) return window.PIXI;
455
455
  };
456
456
  }
457
457
  class Attachment {
458
458
  constructor(name) {
459
- __publicField(this, 'name');
460
- if (name == null) throw new Error('name cannot be null.');
459
+ __publicField(this, "name");
460
+ if (name == null) throw new Error("name cannot be null.");
461
461
  this.name = name;
462
462
  }
463
463
  }
464
464
  const _VertexAttachment = class _VertexAttachment extends Attachment {
465
465
  constructor(name) {
466
466
  super(name);
467
- __publicField(this, 'id', (_VertexAttachment.nextID++ & 65535) << 11);
468
- __publicField(this, 'bones');
469
- __publicField(this, 'vertices');
470
- __publicField(this, 'worldVerticesLength', 0);
467
+ __publicField(this, "id", (_VertexAttachment.nextID++ & 65535) << 11);
468
+ __publicField(this, "bones");
469
+ __publicField(this, "vertices");
470
+ __publicField(this, "worldVerticesLength", 0);
471
471
  }
472
472
  computeWorldVertices(slot, start, count, worldVertices, offset, stride) {
473
473
  count = offset + (count >> 1) * stride;
@@ -541,11 +541,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
541
541
  return this == sourceAttachment;
542
542
  }
543
543
  };
544
- __publicField(_VertexAttachment, 'nextID', 0);
544
+ __publicField(_VertexAttachment, "nextID", 0);
545
545
  let VertexAttachment = _VertexAttachment;
546
546
  class IntSet {
547
547
  constructor() {
548
- __publicField(this, 'array', new Array());
548
+ __publicField(this, "array", new Array());
549
549
  }
550
550
  add(value) {
551
551
  let contains = this.contains(value);
@@ -585,7 +585,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
585
585
  return this;
586
586
  }
587
587
  setFromString(hex) {
588
- hex = hex.charAt(0) == '#' ? hex.substr(1) : hex;
588
+ hex = hex.charAt(0) == "#" ? hex.substr(1) : hex;
589
589
  this.r = parseInt(hex.substr(0, 2), 16) / 255;
590
590
  this.g = parseInt(hex.substr(2, 2), 16) / 255;
591
591
  this.b = parseInt(hex.substr(4, 2), 16) / 255;
@@ -608,11 +608,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
608
608
  return this;
609
609
  }
610
610
  };
611
- __publicField(_Color, 'WHITE', new _Color(1, 1, 1, 1));
612
- __publicField(_Color, 'RED', new _Color(1, 0, 0, 1));
613
- __publicField(_Color, 'GREEN', new _Color(0, 1, 0, 1));
614
- __publicField(_Color, 'BLUE', new _Color(0, 0, 1, 1));
615
- __publicField(_Color, 'MAGENTA', new _Color(1, 0, 1, 1));
611
+ __publicField(_Color, "WHITE", new _Color(1, 1, 1, 1));
612
+ __publicField(_Color, "RED", new _Color(1, 0, 0, 1));
613
+ __publicField(_Color, "GREEN", new _Color(0, 1, 0, 1));
614
+ __publicField(_Color, "BLUE", new _Color(0, 0, 1, 1));
615
+ __publicField(_Color, "MAGENTA", new _Color(1, 0, 1, 1));
616
616
  let Color = _Color;
617
617
  const _MathUtils = class _MathUtils {
618
618
  static clamp(value, min, max) {
@@ -646,12 +646,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
646
646
  return max - Math.sqrt((1 - u) * d * (max - mode));
647
647
  }
648
648
  };
649
- __publicField(_MathUtils, 'PI', 3.1415927);
650
- __publicField(_MathUtils, 'PI2', _MathUtils.PI * 2);
651
- __publicField(_MathUtils, 'radiansToDegrees', 180 / _MathUtils.PI);
652
- __publicField(_MathUtils, 'radDeg', _MathUtils.radiansToDegrees);
653
- __publicField(_MathUtils, 'degreesToRadians', _MathUtils.PI / 180);
654
- __publicField(_MathUtils, 'degRad', _MathUtils.degreesToRadians);
649
+ __publicField(_MathUtils, "PI", 3.1415927);
650
+ __publicField(_MathUtils, "PI2", _MathUtils.PI * 2);
651
+ __publicField(_MathUtils, "radiansToDegrees", 180 / _MathUtils.PI);
652
+ __publicField(_MathUtils, "radDeg", _MathUtils.radiansToDegrees);
653
+ __publicField(_MathUtils, "degreesToRadians", _MathUtils.PI / 180);
654
+ __publicField(_MathUtils, "degRad", _MathUtils.degreesToRadians);
655
655
  let MathUtils = _MathUtils;
656
656
  class Interpolation {
657
657
  apply(start, end, a) {
@@ -661,7 +661,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
661
661
  class Pow extends Interpolation {
662
662
  constructor(power) {
663
663
  super();
664
- __publicField(this, 'power', 2);
664
+ __publicField(this, "power", 2);
665
665
  this.power = power;
666
666
  }
667
667
  applyInternal(a) {
@@ -727,20 +727,20 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
727
727
  }
728
728
  static webkit602BugfixHelper(alpha, pose) {}
729
729
  };
730
- __publicField(_Utils, 'SUPPORTS_TYPED_ARRAYS', typeof Float32Array !== 'undefined');
730
+ __publicField(_Utils, "SUPPORTS_TYPED_ARRAYS", typeof Float32Array !== "undefined");
731
731
  let Utils = _Utils;
732
732
  class DebugUtils {
733
733
  static logBones(skeleton) {
734
734
  for (let i = 0; i < skeleton.bones.length; i++) {
735
735
  let bone = skeleton.bones[i];
736
- console.log(bone.data.name + ', ' + bone.a + ', ' + bone.b + ', ' + bone.c + ', ' + bone.d + ', ' + bone.worldX + ', ' + bone.worldY);
736
+ console.log(bone.data.name + ", " + bone.a + ", " + bone.b + ", " + bone.c + ", " + bone.d + ", " + bone.worldX + ", " + bone.worldY);
737
737
  }
738
738
  }
739
739
  }
740
740
  class Pool {
741
741
  constructor(instantiator) {
742
- __publicField(this, 'items', new Array());
743
- __publicField(this, 'instantiator');
742
+ __publicField(this, "items", new Array());
743
+ __publicField(this, "instantiator");
744
744
  this.instantiator = instantiator;
745
745
  }
746
746
  obtain() {
@@ -786,13 +786,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
786
786
  }
787
787
  class TimeKeeper {
788
788
  constructor() {
789
- __publicField(this, 'maxDelta', 0.064);
790
- __publicField(this, 'framesPerSecond', 0);
791
- __publicField(this, 'delta', 0);
792
- __publicField(this, 'totalTime', 0);
793
- __publicField(this, 'lastTime', Date.now() / 1e3);
794
- __publicField(this, 'frameCount', 0);
795
- __publicField(this, 'frameTime', 0);
789
+ __publicField(this, "maxDelta", 0.064);
790
+ __publicField(this, "framesPerSecond", 0);
791
+ __publicField(this, "delta", 0);
792
+ __publicField(this, "totalTime", 0);
793
+ __publicField(this, "lastTime", Date.now() / 1e3);
794
+ __publicField(this, "frameCount", 0);
795
+ __publicField(this, "frameTime", 0);
796
796
  }
797
797
  update() {
798
798
  var now = Date.now() / 1e3;
@@ -811,11 +811,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
811
811
  }
812
812
  class WindowedMean {
813
813
  constructor(windowSize = 32) {
814
- __publicField(this, 'values');
815
- __publicField(this, 'addedValues', 0);
816
- __publicField(this, 'lastValue', 0);
817
- __publicField(this, 'mean', 0);
818
- __publicField(this, 'dirty', true);
814
+ __publicField(this, "values");
815
+ __publicField(this, "addedValues", 0);
816
+ __publicField(this, "lastValue", 0);
817
+ __publicField(this, "mean", 0);
818
+ __publicField(this, "dirty", true);
819
819
  this.values = new Array(windowSize);
820
820
  }
821
821
  hasEnoughData() {
@@ -845,17 +845,17 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
845
845
  }
846
846
  class Animation {
847
847
  constructor(name, timelines, duration) {
848
- __publicField(this, 'name');
849
- __publicField(this, 'timelines');
850
- __publicField(this, 'duration');
851
- if (name == null) throw new Error('name cannot be null.');
852
- if (timelines == null) throw new Error('timelines cannot be null.');
848
+ __publicField(this, "name");
849
+ __publicField(this, "timelines");
850
+ __publicField(this, "duration");
851
+ if (name == null) throw new Error("name cannot be null.");
852
+ if (timelines == null) throw new Error("timelines cannot be null.");
853
853
  this.name = name;
854
854
  this.timelines = timelines;
855
855
  this.duration = duration;
856
856
  }
857
857
  apply(skeleton, lastTime, time, loop, events, alpha, pose, direction) {
858
- if (skeleton == null) throw new Error('skeleton cannot be null.');
858
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
859
859
  if (loop && this.duration != 0) {
860
860
  time %= this.duration;
861
861
  if (lastTime > 0) lastTime %= this.duration;
@@ -880,38 +880,38 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
880
880
  }
881
881
  }
882
882
  var MixPose = (MixPose2 => {
883
- MixPose2[MixPose2['setup'] = 0] = 'setup';
884
- MixPose2[MixPose2['current'] = 1] = 'current';
885
- MixPose2[MixPose2['currentLayered'] = 2] = 'currentLayered';
883
+ MixPose2[MixPose2["setup"] = 0] = "setup";
884
+ MixPose2[MixPose2["current"] = 1] = "current";
885
+ MixPose2[MixPose2["currentLayered"] = 2] = "currentLayered";
886
886
  return MixPose2;
887
887
  })(MixPose || {});
888
888
  var MixDirection = (MixDirection2 => {
889
- MixDirection2[MixDirection2['in'] = 0] = 'in';
890
- MixDirection2[MixDirection2['out'] = 1] = 'out';
889
+ MixDirection2[MixDirection2["in"] = 0] = "in";
890
+ MixDirection2[MixDirection2["out"] = 1] = "out";
891
891
  return MixDirection2;
892
892
  })(MixDirection || {});
893
893
  var TimelineType = (TimelineType2 => {
894
- TimelineType2[TimelineType2['rotate'] = 0] = 'rotate';
895
- TimelineType2[TimelineType2['translate'] = 1] = 'translate';
896
- TimelineType2[TimelineType2['scale'] = 2] = 'scale';
897
- TimelineType2[TimelineType2['shear'] = 3] = 'shear';
898
- TimelineType2[TimelineType2['attachment'] = 4] = 'attachment';
899
- TimelineType2[TimelineType2['color'] = 5] = 'color';
900
- TimelineType2[TimelineType2['deform'] = 6] = 'deform';
901
- TimelineType2[TimelineType2['event'] = 7] = 'event';
902
- TimelineType2[TimelineType2['drawOrder'] = 8] = 'drawOrder';
903
- TimelineType2[TimelineType2['ikConstraint'] = 9] = 'ikConstraint';
904
- TimelineType2[TimelineType2['transformConstraint'] = 10] = 'transformConstraint';
905
- TimelineType2[TimelineType2['pathConstraintPosition'] = 11] = 'pathConstraintPosition';
906
- TimelineType2[TimelineType2['pathConstraintSpacing'] = 12] = 'pathConstraintSpacing';
907
- TimelineType2[TimelineType2['pathConstraintMix'] = 13] = 'pathConstraintMix';
908
- TimelineType2[TimelineType2['twoColor'] = 14] = 'twoColor';
894
+ TimelineType2[TimelineType2["rotate"] = 0] = "rotate";
895
+ TimelineType2[TimelineType2["translate"] = 1] = "translate";
896
+ TimelineType2[TimelineType2["scale"] = 2] = "scale";
897
+ TimelineType2[TimelineType2["shear"] = 3] = "shear";
898
+ TimelineType2[TimelineType2["attachment"] = 4] = "attachment";
899
+ TimelineType2[TimelineType2["color"] = 5] = "color";
900
+ TimelineType2[TimelineType2["deform"] = 6] = "deform";
901
+ TimelineType2[TimelineType2["event"] = 7] = "event";
902
+ TimelineType2[TimelineType2["drawOrder"] = 8] = "drawOrder";
903
+ TimelineType2[TimelineType2["ikConstraint"] = 9] = "ikConstraint";
904
+ TimelineType2[TimelineType2["transformConstraint"] = 10] = "transformConstraint";
905
+ TimelineType2[TimelineType2["pathConstraintPosition"] = 11] = "pathConstraintPosition";
906
+ TimelineType2[TimelineType2["pathConstraintSpacing"] = 12] = "pathConstraintSpacing";
907
+ TimelineType2[TimelineType2["pathConstraintMix"] = 13] = "pathConstraintMix";
908
+ TimelineType2[TimelineType2["twoColor"] = 14] = "twoColor";
909
909
  return TimelineType2;
910
910
  })(TimelineType || {});
911
911
  const _CurveTimeline = class _CurveTimeline {
912
912
  constructor(frameCount) {
913
- __publicField(this, 'curves');
914
- if (frameCount <= 0) throw new Error('frameCount must be > 0: ' + frameCount);
913
+ __publicField(this, "curves");
914
+ if (frameCount <= 0) throw new Error("frameCount must be > 0: " + frameCount);
915
915
  this.curves = Utils.newFloatArray((frameCount - 1) * _CurveTimeline.BEZIER_SIZE);
916
916
  }
917
917
  getFrameCount() {
@@ -983,16 +983,16 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
983
983
  return y + (1 - y) * (percent - x) / (1 - x);
984
984
  }
985
985
  };
986
- __publicField(_CurveTimeline, 'LINEAR', 0);
987
- __publicField(_CurveTimeline, 'STEPPED', 1);
988
- __publicField(_CurveTimeline, 'BEZIER', 2);
989
- __publicField(_CurveTimeline, 'BEZIER_SIZE', 10 * 2 - 1);
986
+ __publicField(_CurveTimeline, "LINEAR", 0);
987
+ __publicField(_CurveTimeline, "STEPPED", 1);
988
+ __publicField(_CurveTimeline, "BEZIER", 2);
989
+ __publicField(_CurveTimeline, "BEZIER_SIZE", 10 * 2 - 1);
990
990
  let CurveTimeline = _CurveTimeline;
991
991
  const _RotateTimeline = class _RotateTimeline extends CurveTimeline {
992
992
  constructor(frameCount) {
993
993
  super(frameCount);
994
- __publicField(this, 'boneIndex');
995
- __publicField(this, 'frames');
994
+ __publicField(this, "boneIndex");
995
+ __publicField(this, "frames");
996
996
  this.frames = Utils.newFloatArray(frameCount << 1);
997
997
  }
998
998
  getPropertyId() {
@@ -1043,16 +1043,16 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1043
1043
  }
1044
1044
  }
1045
1045
  };
1046
- __publicField(_RotateTimeline, 'ENTRIES', 2);
1047
- __publicField(_RotateTimeline, 'PREV_TIME', -2);
1048
- __publicField(_RotateTimeline, 'PREV_ROTATION', -1);
1049
- __publicField(_RotateTimeline, 'ROTATION', 1);
1046
+ __publicField(_RotateTimeline, "ENTRIES", 2);
1047
+ __publicField(_RotateTimeline, "PREV_TIME", -2);
1048
+ __publicField(_RotateTimeline, "PREV_ROTATION", -1);
1049
+ __publicField(_RotateTimeline, "ROTATION", 1);
1050
1050
  let RotateTimeline = _RotateTimeline;
1051
1051
  const _TranslateTimeline = class _TranslateTimeline extends CurveTimeline {
1052
1052
  constructor(frameCount) {
1053
1053
  super(frameCount);
1054
- __publicField(this, 'boneIndex');
1055
- __publicField(this, 'frames');
1054
+ __publicField(this, "boneIndex");
1055
+ __publicField(this, "frames");
1056
1056
  this.frames = Utils.newFloatArray(frameCount * _TranslateTimeline.ENTRIES);
1057
1057
  }
1058
1058
  getPropertyId() {
@@ -1102,12 +1102,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1102
1102
  }
1103
1103
  }
1104
1104
  };
1105
- __publicField(_TranslateTimeline, 'ENTRIES', 3);
1106
- __publicField(_TranslateTimeline, 'PREV_TIME', -3);
1107
- __publicField(_TranslateTimeline, 'PREV_X', -2);
1108
- __publicField(_TranslateTimeline, 'PREV_Y', -1);
1109
- __publicField(_TranslateTimeline, 'X', 1);
1110
- __publicField(_TranslateTimeline, 'Y', 2);
1105
+ __publicField(_TranslateTimeline, "ENTRIES", 3);
1106
+ __publicField(_TranslateTimeline, "PREV_TIME", -3);
1107
+ __publicField(_TranslateTimeline, "PREV_X", -2);
1108
+ __publicField(_TranslateTimeline, "PREV_Y", -1);
1109
+ __publicField(_TranslateTimeline, "X", 1);
1110
+ __publicField(_TranslateTimeline, "Y", 2);
1111
1111
  let TranslateTimeline = _TranslateTimeline;
1112
1112
  class ScaleTimeline extends TranslateTimeline {
1113
1113
  constructor(frameCount) {
@@ -1218,8 +1218,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1218
1218
  const _ColorTimeline = class _ColorTimeline extends CurveTimeline {
1219
1219
  constructor(frameCount) {
1220
1220
  super(frameCount);
1221
- __publicField(this, 'slotIndex');
1222
- __publicField(this, 'frames');
1221
+ __publicField(this, "slotIndex");
1222
+ __publicField(this, "frames");
1223
1223
  this.frames = Utils.newFloatArray(frameCount * _ColorTimeline.ENTRIES);
1224
1224
  }
1225
1225
  getPropertyId() {
@@ -1278,22 +1278,22 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1278
1278
  }
1279
1279
  }
1280
1280
  };
1281
- __publicField(_ColorTimeline, 'ENTRIES', 5);
1282
- __publicField(_ColorTimeline, 'PREV_TIME', -5);
1283
- __publicField(_ColorTimeline, 'PREV_R', -4);
1284
- __publicField(_ColorTimeline, 'PREV_G', -3);
1285
- __publicField(_ColorTimeline, 'PREV_B', -2);
1286
- __publicField(_ColorTimeline, 'PREV_A', -1);
1287
- __publicField(_ColorTimeline, 'R', 1);
1288
- __publicField(_ColorTimeline, 'G', 2);
1289
- __publicField(_ColorTimeline, 'B', 3);
1290
- __publicField(_ColorTimeline, 'A', 4);
1281
+ __publicField(_ColorTimeline, "ENTRIES", 5);
1282
+ __publicField(_ColorTimeline, "PREV_TIME", -5);
1283
+ __publicField(_ColorTimeline, "PREV_R", -4);
1284
+ __publicField(_ColorTimeline, "PREV_G", -3);
1285
+ __publicField(_ColorTimeline, "PREV_B", -2);
1286
+ __publicField(_ColorTimeline, "PREV_A", -1);
1287
+ __publicField(_ColorTimeline, "R", 1);
1288
+ __publicField(_ColorTimeline, "G", 2);
1289
+ __publicField(_ColorTimeline, "B", 3);
1290
+ __publicField(_ColorTimeline, "A", 4);
1291
1291
  let ColorTimeline = _ColorTimeline;
1292
1292
  const _TwoColorTimeline = class _TwoColorTimeline extends CurveTimeline {
1293
1293
  constructor(frameCount) {
1294
1294
  super(frameCount);
1295
- __publicField(this, 'slotIndex');
1296
- __publicField(this, 'frames');
1295
+ __publicField(this, "slotIndex");
1296
+ __publicField(this, "frames");
1297
1297
  this.frames = Utils.newFloatArray(frameCount * _TwoColorTimeline.ENTRIES);
1298
1298
  }
1299
1299
  getPropertyId() {
@@ -1379,28 +1379,28 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1379
1379
  }
1380
1380
  }
1381
1381
  };
1382
- __publicField(_TwoColorTimeline, 'ENTRIES', 8);
1383
- __publicField(_TwoColorTimeline, 'PREV_TIME', -8);
1384
- __publicField(_TwoColorTimeline, 'PREV_R', -7);
1385
- __publicField(_TwoColorTimeline, 'PREV_G', -6);
1386
- __publicField(_TwoColorTimeline, 'PREV_B', -5);
1387
- __publicField(_TwoColorTimeline, 'PREV_A', -4);
1388
- __publicField(_TwoColorTimeline, 'PREV_R2', -3);
1389
- __publicField(_TwoColorTimeline, 'PREV_G2', -2);
1390
- __publicField(_TwoColorTimeline, 'PREV_B2', -1);
1391
- __publicField(_TwoColorTimeline, 'R', 1);
1392
- __publicField(_TwoColorTimeline, 'G', 2);
1393
- __publicField(_TwoColorTimeline, 'B', 3);
1394
- __publicField(_TwoColorTimeline, 'A', 4);
1395
- __publicField(_TwoColorTimeline, 'R2', 5);
1396
- __publicField(_TwoColorTimeline, 'G2', 6);
1397
- __publicField(_TwoColorTimeline, 'B2', 7);
1382
+ __publicField(_TwoColorTimeline, "ENTRIES", 8);
1383
+ __publicField(_TwoColorTimeline, "PREV_TIME", -8);
1384
+ __publicField(_TwoColorTimeline, "PREV_R", -7);
1385
+ __publicField(_TwoColorTimeline, "PREV_G", -6);
1386
+ __publicField(_TwoColorTimeline, "PREV_B", -5);
1387
+ __publicField(_TwoColorTimeline, "PREV_A", -4);
1388
+ __publicField(_TwoColorTimeline, "PREV_R2", -3);
1389
+ __publicField(_TwoColorTimeline, "PREV_G2", -2);
1390
+ __publicField(_TwoColorTimeline, "PREV_B2", -1);
1391
+ __publicField(_TwoColorTimeline, "R", 1);
1392
+ __publicField(_TwoColorTimeline, "G", 2);
1393
+ __publicField(_TwoColorTimeline, "B", 3);
1394
+ __publicField(_TwoColorTimeline, "A", 4);
1395
+ __publicField(_TwoColorTimeline, "R2", 5);
1396
+ __publicField(_TwoColorTimeline, "G2", 6);
1397
+ __publicField(_TwoColorTimeline, "B2", 7);
1398
1398
  let TwoColorTimeline = _TwoColorTimeline;
1399
1399
  class AttachmentTimeline {
1400
1400
  constructor(frameCount) {
1401
- __publicField(this, 'slotIndex');
1402
- __publicField(this, 'frames');
1403
- __publicField(this, 'attachmentNames');
1401
+ __publicField(this, "slotIndex");
1402
+ __publicField(this, "frames");
1403
+ __publicField(this, "attachmentNames");
1404
1404
  this.frames = Utils.newFloatArray(frameCount);
1405
1405
  this.attachmentNames = new Array(frameCount);
1406
1406
  }
@@ -1439,10 +1439,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1439
1439
  class DeformTimeline extends CurveTimeline {
1440
1440
  constructor(frameCount) {
1441
1441
  super(frameCount);
1442
- __publicField(this, 'slotIndex');
1443
- __publicField(this, 'attachment');
1444
- __publicField(this, 'frames');
1445
- __publicField(this, 'frameVertices');
1442
+ __publicField(this, "slotIndex");
1443
+ __publicField(this, "attachment");
1444
+ __publicField(this, "frames");
1445
+ __publicField(this, "frameVertices");
1446
1446
  this.frames = Utils.newFloatArray(frameCount);
1447
1447
  this.frameVertices = new Array(frameCount);
1448
1448
  if (zeros == null) zeros = Utils.newFloatArray(64);
@@ -1541,8 +1541,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1541
1541
  }
1542
1542
  class EventTimeline {
1543
1543
  constructor(frameCount) {
1544
- __publicField(this, 'frames');
1545
- __publicField(this, 'events');
1544
+ __publicField(this, "frames");
1545
+ __publicField(this, "events");
1546
1546
  this.frames = Utils.newFloatArray(frameCount);
1547
1547
  this.events = new Array(frameCount);
1548
1548
  }
@@ -1579,8 +1579,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1579
1579
  }
1580
1580
  class DrawOrderTimeline {
1581
1581
  constructor(frameCount) {
1582
- __publicField(this, 'frames');
1583
- __publicField(this, 'drawOrders');
1582
+ __publicField(this, "frames");
1583
+ __publicField(this, "drawOrders");
1584
1584
  this.frames = Utils.newFloatArray(frameCount);
1585
1585
  this.drawOrders = new Array(frameCount);
1586
1586
  }
@@ -1617,8 +1617,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1617
1617
  const _IkConstraintTimeline = class _IkConstraintTimeline extends CurveTimeline {
1618
1618
  constructor(frameCount) {
1619
1619
  super(frameCount);
1620
- __publicField(this, 'ikConstraintIndex');
1621
- __publicField(this, 'frames');
1620
+ __publicField(this, "ikConstraintIndex");
1621
+ __publicField(this, "frames");
1622
1622
  this.frames = Utils.newFloatArray(frameCount * _IkConstraintTimeline.ENTRIES);
1623
1623
  }
1624
1624
  getPropertyId() {
@@ -1668,18 +1668,18 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1668
1668
  }
1669
1669
  }
1670
1670
  };
1671
- __publicField(_IkConstraintTimeline, 'ENTRIES', 3);
1672
- __publicField(_IkConstraintTimeline, 'PREV_TIME', -3);
1673
- __publicField(_IkConstraintTimeline, 'PREV_MIX', -2);
1674
- __publicField(_IkConstraintTimeline, 'PREV_BEND_DIRECTION', -1);
1675
- __publicField(_IkConstraintTimeline, 'MIX', 1);
1676
- __publicField(_IkConstraintTimeline, 'BEND_DIRECTION', 2);
1671
+ __publicField(_IkConstraintTimeline, "ENTRIES", 3);
1672
+ __publicField(_IkConstraintTimeline, "PREV_TIME", -3);
1673
+ __publicField(_IkConstraintTimeline, "PREV_MIX", -2);
1674
+ __publicField(_IkConstraintTimeline, "PREV_BEND_DIRECTION", -1);
1675
+ __publicField(_IkConstraintTimeline, "MIX", 1);
1676
+ __publicField(_IkConstraintTimeline, "BEND_DIRECTION", 2);
1677
1677
  let IkConstraintTimeline = _IkConstraintTimeline;
1678
1678
  const _TransformConstraintTimeline = class _TransformConstraintTimeline extends CurveTimeline {
1679
1679
  constructor(frameCount) {
1680
1680
  super(frameCount);
1681
- __publicField(this, 'transformConstraintIndex');
1682
- __publicField(this, 'frames');
1681
+ __publicField(this, "transformConstraintIndex");
1682
+ __publicField(this, "frames");
1683
1683
  this.frames = Utils.newFloatArray(frameCount * _TransformConstraintTimeline.ENTRIES);
1684
1684
  }
1685
1685
  getPropertyId() {
@@ -1750,22 +1750,22 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1750
1750
  }
1751
1751
  }
1752
1752
  };
1753
- __publicField(_TransformConstraintTimeline, 'ENTRIES', 5);
1754
- __publicField(_TransformConstraintTimeline, 'PREV_TIME', -5);
1755
- __publicField(_TransformConstraintTimeline, 'PREV_ROTATE', -4);
1756
- __publicField(_TransformConstraintTimeline, 'PREV_TRANSLATE', -3);
1757
- __publicField(_TransformConstraintTimeline, 'PREV_SCALE', -2);
1758
- __publicField(_TransformConstraintTimeline, 'PREV_SHEAR', -1);
1759
- __publicField(_TransformConstraintTimeline, 'ROTATE', 1);
1760
- __publicField(_TransformConstraintTimeline, 'TRANSLATE', 2);
1761
- __publicField(_TransformConstraintTimeline, 'SCALE', 3);
1762
- __publicField(_TransformConstraintTimeline, 'SHEAR', 4);
1753
+ __publicField(_TransformConstraintTimeline, "ENTRIES", 5);
1754
+ __publicField(_TransformConstraintTimeline, "PREV_TIME", -5);
1755
+ __publicField(_TransformConstraintTimeline, "PREV_ROTATE", -4);
1756
+ __publicField(_TransformConstraintTimeline, "PREV_TRANSLATE", -3);
1757
+ __publicField(_TransformConstraintTimeline, "PREV_SCALE", -2);
1758
+ __publicField(_TransformConstraintTimeline, "PREV_SHEAR", -1);
1759
+ __publicField(_TransformConstraintTimeline, "ROTATE", 1);
1760
+ __publicField(_TransformConstraintTimeline, "TRANSLATE", 2);
1761
+ __publicField(_TransformConstraintTimeline, "SCALE", 3);
1762
+ __publicField(_TransformConstraintTimeline, "SHEAR", 4);
1763
1763
  let TransformConstraintTimeline = _TransformConstraintTimeline;
1764
1764
  const _PathConstraintPositionTimeline = class _PathConstraintPositionTimeline extends CurveTimeline {
1765
1765
  constructor(frameCount) {
1766
1766
  super(frameCount);
1767
- __publicField(this, 'pathConstraintIndex');
1768
- __publicField(this, 'frames');
1767
+ __publicField(this, "pathConstraintIndex");
1768
+ __publicField(this, "frames");
1769
1769
  this.frames = Utils.newFloatArray(frameCount * _PathConstraintPositionTimeline.ENTRIES);
1770
1770
  }
1771
1771
  getPropertyId() {
@@ -1800,10 +1800,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1800
1800
  if (pose == 0) constraint.position = constraint.data.position + (position - constraint.data.position) * alpha;else constraint.position += (position - constraint.position) * alpha;
1801
1801
  }
1802
1802
  };
1803
- __publicField(_PathConstraintPositionTimeline, 'ENTRIES', 2);
1804
- __publicField(_PathConstraintPositionTimeline, 'PREV_TIME', -2);
1805
- __publicField(_PathConstraintPositionTimeline, 'PREV_VALUE', -1);
1806
- __publicField(_PathConstraintPositionTimeline, 'VALUE', 1);
1803
+ __publicField(_PathConstraintPositionTimeline, "ENTRIES", 2);
1804
+ __publicField(_PathConstraintPositionTimeline, "PREV_TIME", -2);
1805
+ __publicField(_PathConstraintPositionTimeline, "PREV_VALUE", -1);
1806
+ __publicField(_PathConstraintPositionTimeline, "VALUE", 1);
1807
1807
  let PathConstraintPositionTimeline = _PathConstraintPositionTimeline;
1808
1808
  class PathConstraintSpacingTimeline extends PathConstraintPositionTimeline {
1809
1809
  constructor(frameCount) {
@@ -1839,8 +1839,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1839
1839
  const _PathConstraintMixTimeline = class _PathConstraintMixTimeline extends CurveTimeline {
1840
1840
  constructor(frameCount) {
1841
1841
  super(frameCount);
1842
- __publicField(this, 'pathConstraintIndex');
1843
- __publicField(this, 'frames');
1842
+ __publicField(this, "pathConstraintIndex");
1843
+ __publicField(this, "frames");
1844
1844
  this.frames = Utils.newFloatArray(frameCount * _PathConstraintMixTimeline.ENTRIES);
1845
1845
  }
1846
1846
  getPropertyId() {
@@ -1890,25 +1890,25 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1890
1890
  }
1891
1891
  }
1892
1892
  };
1893
- __publicField(_PathConstraintMixTimeline, 'ENTRIES', 3);
1894
- __publicField(_PathConstraintMixTimeline, 'PREV_TIME', -3);
1895
- __publicField(_PathConstraintMixTimeline, 'PREV_ROTATE', -2);
1896
- __publicField(_PathConstraintMixTimeline, 'PREV_TRANSLATE', -1);
1897
- __publicField(_PathConstraintMixTimeline, 'ROTATE', 1);
1898
- __publicField(_PathConstraintMixTimeline, 'TRANSLATE', 2);
1893
+ __publicField(_PathConstraintMixTimeline, "ENTRIES", 3);
1894
+ __publicField(_PathConstraintMixTimeline, "PREV_TIME", -3);
1895
+ __publicField(_PathConstraintMixTimeline, "PREV_ROTATE", -2);
1896
+ __publicField(_PathConstraintMixTimeline, "PREV_TRANSLATE", -1);
1897
+ __publicField(_PathConstraintMixTimeline, "ROTATE", 1);
1898
+ __publicField(_PathConstraintMixTimeline, "TRANSLATE", 2);
1899
1899
  let PathConstraintMixTimeline = _PathConstraintMixTimeline;
1900
1900
  const _AnimationState = class _AnimationState {
1901
1901
  constructor(data) {
1902
- __publicField(this, 'data');
1903
- __publicField(this, 'tracks', new Array());
1904
- __publicField(this, 'events', new Array());
1905
- __publicField(this, 'listeners', new Array());
1906
- __publicField(this, 'queue', new EventQueue(this));
1907
- __publicField(this, 'propertyIDs', new IntSet());
1908
- __publicField(this, 'mixingTo', new Array());
1909
- __publicField(this, 'animationsChanged', false);
1910
- __publicField(this, 'timeScale', 1);
1911
- __publicField(this, 'trackEntryPool', new Pool(() => new TrackEntry()));
1902
+ __publicField(this, "data");
1903
+ __publicField(this, "tracks", new Array());
1904
+ __publicField(this, "events", new Array());
1905
+ __publicField(this, "listeners", new Array());
1906
+ __publicField(this, "queue", new EventQueue(this));
1907
+ __publicField(this, "propertyIDs", new IntSet());
1908
+ __publicField(this, "mixingTo", new Array());
1909
+ __publicField(this, "animationsChanged", false);
1910
+ __publicField(this, "timeScale", 1);
1911
+ __publicField(this, "trackEntryPool", new Pool(() => new TrackEntry()));
1912
1912
  this.data = data;
1913
1913
  }
1914
1914
  update(delta) {
@@ -1977,7 +1977,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
1977
1977
  return false;
1978
1978
  }
1979
1979
  apply(skeleton) {
1980
- if (skeleton == null) throw new Error('skeleton cannot be null.');
1980
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
1981
1981
  if (this.animationsChanged) this._animationsChanged();
1982
1982
  let events = this.events;
1983
1983
  let tracks = this.tracks;
@@ -2199,11 +2199,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2199
2199
  }
2200
2200
  setAnimation(trackIndex, animationName, loop) {
2201
2201
  let animation = this.data.skeletonData.findAnimation(animationName);
2202
- if (animation == null) throw new Error('Animation not found: ' + animationName);
2202
+ if (animation == null) throw new Error("Animation not found: " + animationName);
2203
2203
  return this.setAnimationWith(trackIndex, animation, loop);
2204
2204
  }
2205
2205
  setAnimationWith(trackIndex, animation, loop) {
2206
- if (animation == null) throw new Error('animation cannot be null.');
2206
+ if (animation == null) throw new Error("animation cannot be null.");
2207
2207
  let interrupt = true;
2208
2208
  let current = this.expandToIndex(trackIndex);
2209
2209
  if (current != null) {
@@ -2223,11 +2223,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2223
2223
  }
2224
2224
  addAnimation(trackIndex, animationName, loop, delay) {
2225
2225
  let animation = this.data.skeletonData.findAnimation(animationName);
2226
- if (animation == null) throw new Error('Animation not found: ' + animationName);
2226
+ if (animation == null) throw new Error("Animation not found: " + animationName);
2227
2227
  return this.addAnimationWith(trackIndex, animation, loop, delay);
2228
2228
  }
2229
2229
  addAnimationWith(trackIndex, animation, loop, delay) {
2230
- if (animation == null) throw new Error('animation cannot be null.');
2230
+ if (animation == null) throw new Error("animation cannot be null.");
2231
2231
  let last = this.expandToIndex(trackIndex);
2232
2232
  if (last != null) {
2233
2233
  while (last.next != null) last = last.next;
@@ -2325,7 +2325,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2325
2325
  return this.tracks[trackIndex];
2326
2326
  }
2327
2327
  addListener(listener) {
2328
- if (listener == null) throw new Error('listener cannot be null.');
2328
+ if (listener == null) throw new Error("listener cannot be null.");
2329
2329
  this.listeners.push(listener);
2330
2330
  }
2331
2331
  removeListener(listener) {
@@ -2339,41 +2339,41 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2339
2339
  this.queue.clear();
2340
2340
  }
2341
2341
  };
2342
- __publicField(_AnimationState, 'emptyAnimation', new Animation('<empty>', [], 0));
2343
- __publicField(_AnimationState, 'SUBSEQUENT', 0);
2344
- __publicField(_AnimationState, 'FIRST', 1);
2345
- __publicField(_AnimationState, 'DIP', 2);
2346
- __publicField(_AnimationState, 'DIP_MIX', 3);
2342
+ __publicField(_AnimationState, "emptyAnimation", new Animation("<empty>", [], 0));
2343
+ __publicField(_AnimationState, "SUBSEQUENT", 0);
2344
+ __publicField(_AnimationState, "FIRST", 1);
2345
+ __publicField(_AnimationState, "DIP", 2);
2346
+ __publicField(_AnimationState, "DIP_MIX", 3);
2347
2347
  let AnimationState = _AnimationState;
2348
2348
  class TrackEntry {
2349
2349
  constructor() {
2350
- __publicField(this, 'animation');
2351
- __publicField(this, 'next');
2352
- __publicField(this, 'mixingFrom');
2353
- __publicField(this, 'listener');
2354
- __publicField(this, 'trackIndex');
2355
- __publicField(this, 'loop');
2356
- __publicField(this, 'eventThreshold');
2357
- __publicField(this, 'attachmentThreshold');
2358
- __publicField(this, 'drawOrderThreshold');
2359
- __publicField(this, 'animationStart');
2360
- __publicField(this, 'animationEnd');
2361
- __publicField(this, 'animationLast');
2362
- __publicField(this, 'nextAnimationLast');
2363
- __publicField(this, 'delay');
2364
- __publicField(this, 'trackTime');
2365
- __publicField(this, 'trackLast');
2366
- __publicField(this, 'nextTrackLast');
2367
- __publicField(this, 'trackEnd');
2368
- __publicField(this, 'timeScale');
2369
- __publicField(this, 'alpha');
2370
- __publicField(this, 'mixTime');
2371
- __publicField(this, 'mixDuration');
2372
- __publicField(this, 'interruptAlpha');
2373
- __publicField(this, 'totalAlpha');
2374
- __publicField(this, 'timelineData', new Array());
2375
- __publicField(this, 'timelineDipMix', new Array());
2376
- __publicField(this, 'timelinesRotation', new Array());
2350
+ __publicField(this, "animation");
2351
+ __publicField(this, "next");
2352
+ __publicField(this, "mixingFrom");
2353
+ __publicField(this, "listener");
2354
+ __publicField(this, "trackIndex");
2355
+ __publicField(this, "loop");
2356
+ __publicField(this, "eventThreshold");
2357
+ __publicField(this, "attachmentThreshold");
2358
+ __publicField(this, "drawOrderThreshold");
2359
+ __publicField(this, "animationStart");
2360
+ __publicField(this, "animationEnd");
2361
+ __publicField(this, "animationLast");
2362
+ __publicField(this, "nextAnimationLast");
2363
+ __publicField(this, "delay");
2364
+ __publicField(this, "trackTime");
2365
+ __publicField(this, "trackLast");
2366
+ __publicField(this, "nextTrackLast");
2367
+ __publicField(this, "trackEnd");
2368
+ __publicField(this, "timeScale");
2369
+ __publicField(this, "alpha");
2370
+ __publicField(this, "mixTime");
2371
+ __publicField(this, "mixDuration");
2372
+ __publicField(this, "interruptAlpha");
2373
+ __publicField(this, "totalAlpha");
2374
+ __publicField(this, "timelineData", new Array());
2375
+ __publicField(this, "timelineDipMix", new Array());
2376
+ __publicField(this, "timelinesRotation", new Array());
2377
2377
  }
2378
2378
  reset() {
2379
2379
  this.next = null;
@@ -2439,9 +2439,9 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2439
2439
  }
2440
2440
  class EventQueue {
2441
2441
  constructor(animState) {
2442
- __publicField(this, 'objects', []);
2443
- __publicField(this, 'drainDisabled', false);
2444
- __publicField(this, 'animState');
2442
+ __publicField(this, "objects", []);
2443
+ __publicField(this, "drainDisabled", false);
2444
+ __publicField(this, "animState");
2445
2445
  this.animState = animState;
2446
2446
  }
2447
2447
  start(entry) {
@@ -2515,12 +2515,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2515
2515
  }
2516
2516
  }
2517
2517
  var EventType = (EventType2 => {
2518
- EventType2[EventType2['start'] = 0] = 'start';
2519
- EventType2[EventType2['interrupt'] = 1] = 'interrupt';
2520
- EventType2[EventType2['end'] = 2] = 'end';
2521
- EventType2[EventType2['dispose'] = 3] = 'dispose';
2522
- EventType2[EventType2['complete'] = 4] = 'complete';
2523
- EventType2[EventType2['event'] = 5] = 'event';
2518
+ EventType2[EventType2["start"] = 0] = "start";
2519
+ EventType2[EventType2["interrupt"] = 1] = "interrupt";
2520
+ EventType2[EventType2["end"] = 2] = "end";
2521
+ EventType2[EventType2["dispose"] = 3] = "dispose";
2522
+ EventType2[EventType2["complete"] = 4] = "complete";
2523
+ EventType2[EventType2["event"] = 5] = "event";
2524
2524
  return EventType2;
2525
2525
  })(EventType || {});
2526
2526
  class AnimationStateAdapter2 {
@@ -2533,27 +2533,27 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2533
2533
  }
2534
2534
  class AnimationStateData {
2535
2535
  constructor(skeletonData) {
2536
- __publicField(this, 'skeletonData');
2537
- __publicField(this, 'animationToMixTime', {});
2538
- __publicField(this, 'defaultMix', 0);
2539
- if (skeletonData == null) throw new Error('skeletonData cannot be null.');
2536
+ __publicField(this, "skeletonData");
2537
+ __publicField(this, "animationToMixTime", {});
2538
+ __publicField(this, "defaultMix", 0);
2539
+ if (skeletonData == null) throw new Error("skeletonData cannot be null.");
2540
2540
  this.skeletonData = skeletonData;
2541
2541
  }
2542
2542
  setMix(fromName, toName, duration) {
2543
2543
  let from = this.skeletonData.findAnimation(fromName);
2544
- if (from == null) throw new Error('Animation not found: ' + fromName);
2544
+ if (from == null) throw new Error("Animation not found: " + fromName);
2545
2545
  let to = this.skeletonData.findAnimation(toName);
2546
- if (to == null) throw new Error('Animation not found: ' + toName);
2546
+ if (to == null) throw new Error("Animation not found: " + toName);
2547
2547
  this.setMixWith(from, to, duration);
2548
2548
  }
2549
2549
  setMixWith(from, to, duration) {
2550
- if (from == null) throw new Error('from cannot be null.');
2551
- if (to == null) throw new Error('to cannot be null.');
2552
- let key = from.name + '.' + to.name;
2550
+ if (from == null) throw new Error("from cannot be null.");
2551
+ if (to == null) throw new Error("to cannot be null.");
2552
+ let key = from.name + "." + to.name;
2553
2553
  this.animationToMixTime[key] = duration;
2554
2554
  }
2555
2555
  getMix(from, to) {
2556
- let key = from.name + '.' + to.name;
2556
+ let key = from.name + "." + to.name;
2557
2557
  let value = this.animationToMixTime[key];
2558
2558
  return value === void 0 ? this.defaultMix : value;
2559
2559
  }
@@ -2561,29 +2561,29 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2561
2561
  class BoundingBoxAttachment extends VertexAttachment {
2562
2562
  constructor(name) {
2563
2563
  super(name);
2564
- __publicField(this, 'color', new Color(1, 1, 1, 1));
2564
+ __publicField(this, "color", new Color(1, 1, 1, 1));
2565
2565
  }
2566
2566
  }
2567
2567
  class ClippingAttachment extends VertexAttachment {
2568
2568
  constructor(name) {
2569
2569
  super(name);
2570
- __publicField(this, 'endSlot');
2571
- __publicField(this, 'color', new Color(0.2275, 0.2275, 0.8078, 1));
2570
+ __publicField(this, "endSlot");
2571
+ __publicField(this, "color", new Color(0.2275, 0.2275, 0.8078, 1));
2572
2572
  }
2573
2573
  }
2574
2574
  class MeshAttachment extends VertexAttachment {
2575
2575
  constructor(name) {
2576
2576
  super(name);
2577
- __publicField(this, 'region');
2578
- __publicField(this, 'path');
2579
- __publicField(this, 'regionUVs');
2580
- __publicField(this, 'uvs');
2581
- __publicField(this, 'triangles');
2582
- __publicField(this, 'color', new Color(1, 1, 1, 1));
2583
- __publicField(this, 'hullLength');
2584
- __publicField(this, 'parentMesh');
2585
- __publicField(this, 'inheritDeform', false);
2586
- __publicField(this, 'tempColor', new Color(0, 0, 0, 0));
2577
+ __publicField(this, "region");
2578
+ __publicField(this, "path");
2579
+ __publicField(this, "regionUVs");
2580
+ __publicField(this, "uvs");
2581
+ __publicField(this, "triangles");
2582
+ __publicField(this, "color", new Color(1, 1, 1, 1));
2583
+ __publicField(this, "hullLength");
2584
+ __publicField(this, "parentMesh");
2585
+ __publicField(this, "inheritDeform", false);
2586
+ __publicField(this, "tempColor", new Color(0, 0, 0, 0));
2587
2587
  }
2588
2588
  updateUVs() {
2589
2589
  let u = 0,
@@ -2636,19 +2636,19 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2636
2636
  class PathAttachment extends VertexAttachment {
2637
2637
  constructor(name) {
2638
2638
  super(name);
2639
- __publicField(this, 'lengths');
2640
- __publicField(this, 'closed', false);
2641
- __publicField(this, 'constantSpeed', false);
2642
- __publicField(this, 'color', new Color(1, 1, 1, 1));
2639
+ __publicField(this, "lengths");
2640
+ __publicField(this, "closed", false);
2641
+ __publicField(this, "constantSpeed", false);
2642
+ __publicField(this, "color", new Color(1, 1, 1, 1));
2643
2643
  }
2644
2644
  }
2645
2645
  class PointAttachment extends VertexAttachment {
2646
2646
  constructor(name) {
2647
2647
  super(name);
2648
- __publicField(this, 'x');
2649
- __publicField(this, 'y');
2650
- __publicField(this, 'rotation');
2651
- __publicField(this, 'color', new Color(0.38, 0.94, 0, 1));
2648
+ __publicField(this, "x");
2649
+ __publicField(this, "y");
2650
+ __publicField(this, "rotation");
2651
+ __publicField(this, "color", new Color(0.38, 0.94, 0, 1));
2652
2652
  }
2653
2653
  computeWorldPosition(bone, point) {
2654
2654
  point.x = this.x * bone.a + this.y * bone.b + bone.worldX;
@@ -2666,20 +2666,20 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2666
2666
  const _RegionAttachment = class _RegionAttachment extends Attachment {
2667
2667
  constructor(name) {
2668
2668
  super(name);
2669
- __publicField(this, 'x', 0);
2670
- __publicField(this, 'y', 0);
2671
- __publicField(this, 'scaleX', 1);
2672
- __publicField(this, 'scaleY', 1);
2673
- __publicField(this, 'rotation', 0);
2674
- __publicField(this, 'width', 0);
2675
- __publicField(this, 'height', 0);
2676
- __publicField(this, 'color', new Color(1, 1, 1, 1));
2677
- __publicField(this, 'path');
2678
- __publicField(this, 'rendererObject');
2679
- __publicField(this, 'region');
2680
- __publicField(this, 'offset', Utils.newFloatArray(8));
2681
- __publicField(this, 'uvs', Utils.newFloatArray(8));
2682
- __publicField(this, 'tempColor', new Color(1, 1, 1, 1));
2669
+ __publicField(this, "x", 0);
2670
+ __publicField(this, "y", 0);
2671
+ __publicField(this, "scaleX", 1);
2672
+ __publicField(this, "scaleY", 1);
2673
+ __publicField(this, "rotation", 0);
2674
+ __publicField(this, "width", 0);
2675
+ __publicField(this, "height", 0);
2676
+ __publicField(this, "color", new Color(1, 1, 1, 1));
2677
+ __publicField(this, "path");
2678
+ __publicField(this, "rendererObject");
2679
+ __publicField(this, "region");
2680
+ __publicField(this, "offset", Utils.newFloatArray(8));
2681
+ __publicField(this, "uvs", Utils.newFloatArray(8));
2682
+ __publicField(this, "tempColor", new Color(1, 1, 1, 1));
2683
2683
  }
2684
2684
  updateOffset() {
2685
2685
  let regionScaleX = this.width / this.region.originalWidth * this.scaleX;
@@ -2763,55 +2763,55 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2763
2763
  worldVertices[offset + 1] = offsetX * c + offsetY * d + y;
2764
2764
  }
2765
2765
  };
2766
- __publicField(_RegionAttachment, 'OX1', 0);
2767
- __publicField(_RegionAttachment, 'OY1', 1);
2768
- __publicField(_RegionAttachment, 'OX2', 2);
2769
- __publicField(_RegionAttachment, 'OY2', 3);
2770
- __publicField(_RegionAttachment, 'OX3', 4);
2771
- __publicField(_RegionAttachment, 'OY3', 5);
2772
- __publicField(_RegionAttachment, 'OX4', 6);
2773
- __publicField(_RegionAttachment, 'OY4', 7);
2774
- __publicField(_RegionAttachment, 'X1', 0);
2775
- __publicField(_RegionAttachment, 'Y1', 1);
2776
- __publicField(_RegionAttachment, 'C1R', 2);
2777
- __publicField(_RegionAttachment, 'C1G', 3);
2778
- __publicField(_RegionAttachment, 'C1B', 4);
2779
- __publicField(_RegionAttachment, 'C1A', 5);
2780
- __publicField(_RegionAttachment, 'U1', 6);
2781
- __publicField(_RegionAttachment, 'V1', 7);
2782
- __publicField(_RegionAttachment, 'X2', 8);
2783
- __publicField(_RegionAttachment, 'Y2', 9);
2784
- __publicField(_RegionAttachment, 'C2R', 10);
2785
- __publicField(_RegionAttachment, 'C2G', 11);
2786
- __publicField(_RegionAttachment, 'C2B', 12);
2787
- __publicField(_RegionAttachment, 'C2A', 13);
2788
- __publicField(_RegionAttachment, 'U2', 14);
2789
- __publicField(_RegionAttachment, 'V2', 15);
2790
- __publicField(_RegionAttachment, 'X3', 16);
2791
- __publicField(_RegionAttachment, 'Y3', 17);
2792
- __publicField(_RegionAttachment, 'C3R', 18);
2793
- __publicField(_RegionAttachment, 'C3G', 19);
2794
- __publicField(_RegionAttachment, 'C3B', 20);
2795
- __publicField(_RegionAttachment, 'C3A', 21);
2796
- __publicField(_RegionAttachment, 'U3', 22);
2797
- __publicField(_RegionAttachment, 'V3', 23);
2798
- __publicField(_RegionAttachment, 'X4', 24);
2799
- __publicField(_RegionAttachment, 'Y4', 25);
2800
- __publicField(_RegionAttachment, 'C4R', 26);
2801
- __publicField(_RegionAttachment, 'C4G', 27);
2802
- __publicField(_RegionAttachment, 'C4B', 28);
2803
- __publicField(_RegionAttachment, 'C4A', 29);
2804
- __publicField(_RegionAttachment, 'U4', 30);
2805
- __publicField(_RegionAttachment, 'V4', 31);
2766
+ __publicField(_RegionAttachment, "OX1", 0);
2767
+ __publicField(_RegionAttachment, "OY1", 1);
2768
+ __publicField(_RegionAttachment, "OX2", 2);
2769
+ __publicField(_RegionAttachment, "OY2", 3);
2770
+ __publicField(_RegionAttachment, "OX3", 4);
2771
+ __publicField(_RegionAttachment, "OY3", 5);
2772
+ __publicField(_RegionAttachment, "OX4", 6);
2773
+ __publicField(_RegionAttachment, "OY4", 7);
2774
+ __publicField(_RegionAttachment, "X1", 0);
2775
+ __publicField(_RegionAttachment, "Y1", 1);
2776
+ __publicField(_RegionAttachment, "C1R", 2);
2777
+ __publicField(_RegionAttachment, "C1G", 3);
2778
+ __publicField(_RegionAttachment, "C1B", 4);
2779
+ __publicField(_RegionAttachment, "C1A", 5);
2780
+ __publicField(_RegionAttachment, "U1", 6);
2781
+ __publicField(_RegionAttachment, "V1", 7);
2782
+ __publicField(_RegionAttachment, "X2", 8);
2783
+ __publicField(_RegionAttachment, "Y2", 9);
2784
+ __publicField(_RegionAttachment, "C2R", 10);
2785
+ __publicField(_RegionAttachment, "C2G", 11);
2786
+ __publicField(_RegionAttachment, "C2B", 12);
2787
+ __publicField(_RegionAttachment, "C2A", 13);
2788
+ __publicField(_RegionAttachment, "U2", 14);
2789
+ __publicField(_RegionAttachment, "V2", 15);
2790
+ __publicField(_RegionAttachment, "X3", 16);
2791
+ __publicField(_RegionAttachment, "Y3", 17);
2792
+ __publicField(_RegionAttachment, "C3R", 18);
2793
+ __publicField(_RegionAttachment, "C3G", 19);
2794
+ __publicField(_RegionAttachment, "C3B", 20);
2795
+ __publicField(_RegionAttachment, "C3A", 21);
2796
+ __publicField(_RegionAttachment, "U3", 22);
2797
+ __publicField(_RegionAttachment, "V3", 23);
2798
+ __publicField(_RegionAttachment, "X4", 24);
2799
+ __publicField(_RegionAttachment, "Y4", 25);
2800
+ __publicField(_RegionAttachment, "C4R", 26);
2801
+ __publicField(_RegionAttachment, "C4G", 27);
2802
+ __publicField(_RegionAttachment, "C4B", 28);
2803
+ __publicField(_RegionAttachment, "C4A", 29);
2804
+ __publicField(_RegionAttachment, "U4", 30);
2805
+ __publicField(_RegionAttachment, "V4", 31);
2806
2806
  let RegionAttachment = _RegionAttachment;
2807
2807
  class AtlasAttachmentLoader {
2808
2808
  constructor(atlas) {
2809
- __publicField(this, 'atlas');
2809
+ __publicField(this, "atlas");
2810
2810
  this.atlas = atlas;
2811
2811
  }
2812
2812
  newRegionAttachment(skin, name, path2) {
2813
2813
  let region = this.atlas.findRegion(path2);
2814
- if (region == null) throw new Error('Region not found in atlas: ' + path2 + ' (region attachment: ' + name + ')');
2814
+ if (region == null) throw new Error("Region not found in atlas: " + path2 + " (region attachment: " + name + ")");
2815
2815
  region.renderObject = region;
2816
2816
  let attachment = new RegionAttachment(name);
2817
2817
  attachment.setRegion(region);
@@ -2819,7 +2819,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2819
2819
  }
2820
2820
  newMeshAttachment(skin, name, path2) {
2821
2821
  let region = this.atlas.findRegion(path2);
2822
- if (region == null) throw new Error('Region not found in atlas: ' + path2 + ' (mesh attachment: ' + name + ')');
2822
+ if (region == null) throw new Error("Region not found in atlas: " + path2 + " (mesh attachment: " + name + ")");
2823
2823
  region.renderObject = region;
2824
2824
  let attachment = new MeshAttachment(name);
2825
2825
  attachment.region = region;
@@ -2840,63 +2840,63 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
2840
2840
  }
2841
2841
  class BoneData {
2842
2842
  constructor(index, name, parent) {
2843
- __publicField(this, 'index');
2844
- __publicField(this, 'name');
2845
- __publicField(this, 'parent');
2846
- __publicField(this, 'length');
2847
- __publicField(this, 'x', 0);
2848
- __publicField(this, 'y', 0);
2849
- __publicField(this, 'rotation', 0);
2850
- __publicField(this, 'scaleX', 1);
2851
- __publicField(this, 'scaleY', 1);
2852
- __publicField(this, 'shearX', 0);
2853
- __publicField(this, 'shearY', 0);
2854
- __publicField(this, 'transformMode', 0);
2855
- if (index < 0) throw new Error('index must be >= 0.');
2856
- if (name == null) throw new Error('name cannot be null.');
2843
+ __publicField(this, "index");
2844
+ __publicField(this, "name");
2845
+ __publicField(this, "parent");
2846
+ __publicField(this, "length");
2847
+ __publicField(this, "x", 0);
2848
+ __publicField(this, "y", 0);
2849
+ __publicField(this, "rotation", 0);
2850
+ __publicField(this, "scaleX", 1);
2851
+ __publicField(this, "scaleY", 1);
2852
+ __publicField(this, "shearX", 0);
2853
+ __publicField(this, "shearY", 0);
2854
+ __publicField(this, "transformMode", 0);
2855
+ if (index < 0) throw new Error("index must be >= 0.");
2856
+ if (name == null) throw new Error("name cannot be null.");
2857
2857
  this.index = index;
2858
2858
  this.name = name;
2859
2859
  this.parent = parent;
2860
2860
  }
2861
2861
  }
2862
2862
  var TransformMode = (TransformMode2 => {
2863
- TransformMode2[TransformMode2['Normal'] = 0] = 'Normal';
2864
- TransformMode2[TransformMode2['OnlyTranslation'] = 1] = 'OnlyTranslation';
2865
- TransformMode2[TransformMode2['NoRotationOrReflection'] = 2] = 'NoRotationOrReflection';
2866
- TransformMode2[TransformMode2['NoScale'] = 3] = 'NoScale';
2867
- TransformMode2[TransformMode2['NoScaleOrReflection'] = 4] = 'NoScaleOrReflection';
2863
+ TransformMode2[TransformMode2["Normal"] = 0] = "Normal";
2864
+ TransformMode2[TransformMode2["OnlyTranslation"] = 1] = "OnlyTranslation";
2865
+ TransformMode2[TransformMode2["NoRotationOrReflection"] = 2] = "NoRotationOrReflection";
2866
+ TransformMode2[TransformMode2["NoScale"] = 3] = "NoScale";
2867
+ TransformMode2[TransformMode2["NoScaleOrReflection"] = 4] = "NoScaleOrReflection";
2868
2868
  return TransformMode2;
2869
2869
  })(TransformMode || {});
2870
2870
  class Bone {
2871
2871
  constructor(data, skeleton, parent) {
2872
- __publicField(this, 'data');
2873
- __publicField(this, 'skeleton');
2874
- __publicField(this, 'parent');
2875
- __publicField(this, 'children', new Array());
2876
- __publicField(this, 'x', 0);
2877
- __publicField(this, 'y', 0);
2878
- __publicField(this, 'rotation', 0);
2879
- __publicField(this, 'scaleX', 0);
2880
- __publicField(this, 'scaleY', 0);
2881
- __publicField(this, 'shearX', 0);
2882
- __publicField(this, 'shearY', 0);
2883
- __publicField(this, 'ax', 0);
2884
- __publicField(this, 'ay', 0);
2885
- __publicField(this, 'arotation', 0);
2886
- __publicField(this, 'ascaleX', 0);
2887
- __publicField(this, 'ascaleY', 0);
2888
- __publicField(this, 'ashearX', 0);
2889
- __publicField(this, 'ashearY', 0);
2890
- __publicField(this, 'appliedValid', false);
2891
- __publicField(this, 'a', 0);
2892
- __publicField(this, 'b', 0);
2893
- __publicField(this, 'worldX', 0);
2894
- __publicField(this, 'c', 0);
2895
- __publicField(this, 'd', 0);
2896
- __publicField(this, 'worldY', 0);
2897
- __publicField(this, 'sorted', false);
2898
- if (data == null) throw new Error('data cannot be null.');
2899
- if (skeleton == null) throw new Error('skeleton cannot be null.');
2872
+ __publicField(this, "data");
2873
+ __publicField(this, "skeleton");
2874
+ __publicField(this, "parent");
2875
+ __publicField(this, "children", new Array());
2876
+ __publicField(this, "x", 0);
2877
+ __publicField(this, "y", 0);
2878
+ __publicField(this, "rotation", 0);
2879
+ __publicField(this, "scaleX", 0);
2880
+ __publicField(this, "scaleY", 0);
2881
+ __publicField(this, "shearX", 0);
2882
+ __publicField(this, "shearY", 0);
2883
+ __publicField(this, "ax", 0);
2884
+ __publicField(this, "ay", 0);
2885
+ __publicField(this, "arotation", 0);
2886
+ __publicField(this, "ascaleX", 0);
2887
+ __publicField(this, "ascaleY", 0);
2888
+ __publicField(this, "ashearX", 0);
2889
+ __publicField(this, "ashearY", 0);
2890
+ __publicField(this, "appliedValid", false);
2891
+ __publicField(this, "a", 0);
2892
+ __publicField(this, "b", 0);
2893
+ __publicField(this, "worldX", 0);
2894
+ __publicField(this, "c", 0);
2895
+ __publicField(this, "d", 0);
2896
+ __publicField(this, "worldY", 0);
2897
+ __publicField(this, "sorted", false);
2898
+ if (data == null) throw new Error("data cannot be null.");
2899
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
2900
2900
  this.data = data;
2901
2901
  this.skeleton = skeleton;
2902
2902
  this.parent = parent;
@@ -3148,7 +3148,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3148
3148
  }
3149
3149
  class Texture {
3150
3150
  constructor(image) {
3151
- __publicField(this, '_image');
3151
+ __publicField(this, "_image");
3152
3152
  this._image = image;
3153
3153
  }
3154
3154
  getImage() {
@@ -3156,19 +3156,19 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3156
3156
  }
3157
3157
  static filterFromString(text) {
3158
3158
  switch (text.toLowerCase()) {
3159
- case 'nearest':
3159
+ case "nearest":
3160
3160
  return 9728;
3161
- case 'linear':
3161
+ case "linear":
3162
3162
  return 9729;
3163
- case 'mipmap':
3163
+ case "mipmap":
3164
3164
  return 9987;
3165
- case 'mipmapnearestnearest':
3165
+ case "mipmapnearestnearest":
3166
3166
  return 9984;
3167
- case 'mipmaplinearnearest':
3167
+ case "mipmaplinearnearest":
3168
3168
  return 9985;
3169
- case 'mipmapnearestlinear':
3169
+ case "mipmapnearestlinear":
3170
3170
  return 9986;
3171
- case 'mipmaplinearlinear':
3171
+ case "mipmaplinearlinear":
3172
3172
  return 9987;
3173
3173
  default:
3174
3174
  throw new Error(`Unknown texture filter ${text}`);
@@ -3176,11 +3176,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3176
3176
  }
3177
3177
  static wrapFromString(text) {
3178
3178
  switch (text.toLowerCase()) {
3179
- case 'mirroredtepeat':
3179
+ case "mirroredtepeat":
3180
3180
  return 33648;
3181
- case 'clamptoedge':
3181
+ case "clamptoedge":
3182
3182
  return 33071;
3183
- case 'repeat':
3183
+ case "repeat":
3184
3184
  return 10497;
3185
3185
  default:
3186
3186
  throw new Error(`Unknown texture wrap ${text}`);
@@ -3188,36 +3188,36 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3188
3188
  }
3189
3189
  }
3190
3190
  var TextureFilter = (TextureFilter2 => {
3191
- TextureFilter2[TextureFilter2['Nearest'] = 9728] = 'Nearest';
3192
- TextureFilter2[TextureFilter2['Linear'] = 9729] = 'Linear';
3193
- TextureFilter2[TextureFilter2['MipMap'] = 9987] = 'MipMap';
3194
- TextureFilter2[TextureFilter2['MipMapNearestNearest'] = 9984] = 'MipMapNearestNearest';
3195
- TextureFilter2[TextureFilter2['MipMapLinearNearest'] = 9985] = 'MipMapLinearNearest';
3196
- TextureFilter2[TextureFilter2['MipMapNearestLinear'] = 9986] = 'MipMapNearestLinear';
3197
- TextureFilter2[TextureFilter2['MipMapLinearLinear'] = 9987] = 'MipMapLinearLinear';
3191
+ TextureFilter2[TextureFilter2["Nearest"] = 9728] = "Nearest";
3192
+ TextureFilter2[TextureFilter2["Linear"] = 9729] = "Linear";
3193
+ TextureFilter2[TextureFilter2["MipMap"] = 9987] = "MipMap";
3194
+ TextureFilter2[TextureFilter2["MipMapNearestNearest"] = 9984] = "MipMapNearestNearest";
3195
+ TextureFilter2[TextureFilter2["MipMapLinearNearest"] = 9985] = "MipMapLinearNearest";
3196
+ TextureFilter2[TextureFilter2["MipMapNearestLinear"] = 9986] = "MipMapNearestLinear";
3197
+ TextureFilter2[TextureFilter2["MipMapLinearLinear"] = 9987] = "MipMapLinearLinear";
3198
3198
  return TextureFilter2;
3199
3199
  })(TextureFilter || {});
3200
3200
  var TextureWrap = (TextureWrap2 => {
3201
- TextureWrap2[TextureWrap2['MirroredRepeat'] = 33648] = 'MirroredRepeat';
3202
- TextureWrap2[TextureWrap2['ClampToEdge'] = 33071] = 'ClampToEdge';
3203
- TextureWrap2[TextureWrap2['Repeat'] = 10497] = 'Repeat';
3201
+ TextureWrap2[TextureWrap2["MirroredRepeat"] = 33648] = "MirroredRepeat";
3202
+ TextureWrap2[TextureWrap2["ClampToEdge"] = 33071] = "ClampToEdge";
3203
+ TextureWrap2[TextureWrap2["Repeat"] = 10497] = "Repeat";
3204
3204
  return TextureWrap2;
3205
3205
  })(TextureWrap || {});
3206
3206
  class TextureRegion {
3207
3207
  constructor() {
3208
- __publicField(this, 'renderObject');
3209
- __publicField(this, 'u', 0);
3210
- __publicField(this, 'v', 0);
3211
- __publicField(this, 'u2', 0);
3212
- __publicField(this, 'v2', 0);
3213
- __publicField(this, 'width', 0);
3214
- __publicField(this, 'height', 0);
3215
- __publicField(this, 'rotate', false);
3216
- __publicField(this, 'offsetX', 0);
3217
- __publicField(this, 'offsetY', 0);
3218
- __publicField(this, 'originalWidth', 0);
3219
- __publicField(this, 'originalHeight', 0);
3220
- __publicField(this, 'texture');
3208
+ __publicField(this, "renderObject");
3209
+ __publicField(this, "u", 0);
3210
+ __publicField(this, "v", 0);
3211
+ __publicField(this, "u2", 0);
3212
+ __publicField(this, "v2", 0);
3213
+ __publicField(this, "width", 0);
3214
+ __publicField(this, "height", 0);
3215
+ __publicField(this, "rotate", false);
3216
+ __publicField(this, "offsetX", 0);
3217
+ __publicField(this, "offsetY", 0);
3218
+ __publicField(this, "originalWidth", 0);
3219
+ __publicField(this, "originalHeight", 0);
3220
+ __publicField(this, "texture");
3221
3221
  }
3222
3222
  }
3223
3223
  class FakeTexture extends Texture {
@@ -3227,12 +3227,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3227
3227
  }
3228
3228
  class TextureAtlas {
3229
3229
  constructor(atlasText, textureLoader) {
3230
- __publicField(this, 'pages', new Array());
3231
- __publicField(this, 'regions', new Array());
3230
+ __publicField(this, "pages", new Array());
3231
+ __publicField(this, "regions", new Array());
3232
3232
  this.load(atlasText, textureLoader);
3233
3233
  }
3234
3234
  load(atlasText, textureLoader) {
3235
- if (textureLoader == null) throw new Error('textureLoader cannot be null.');
3235
+ if (textureLoader == null) throw new Error("textureLoader cannot be null.");
3236
3236
  let reader = new TextureAtlasReader(atlasText);
3237
3237
  let tuple = new Array(4);
3238
3238
  let page = null;
@@ -3254,7 +3254,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3254
3254
  let direction = reader.readValue();
3255
3255
  page.uWrap = TextureWrap.ClampToEdge;
3256
3256
  page.vWrap = TextureWrap.ClampToEdge;
3257
- if (direction == 'x') page.uWrap = TextureWrap.Repeat;else if (direction == 'y') page.vWrap = TextureWrap.Repeat;else if (direction == 'xy') page.uWrap = page.vWrap = TextureWrap.Repeat;
3257
+ if (direction == "x") page.uWrap = TextureWrap.Repeat;else if (direction == "y") page.vWrap = TextureWrap.Repeat;else if (direction == "xy") page.uWrap = page.vWrap = TextureWrap.Repeat;
3258
3258
  page.texture = textureLoader(line);
3259
3259
  page.texture.setFilters(page.minFilter, page.magFilter);
3260
3260
  page.texture.setWraps(page.uWrap, page.vWrap);
@@ -3265,7 +3265,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3265
3265
  let region = new TextureAtlasRegion();
3266
3266
  region.name = line;
3267
3267
  region.page = page;
3268
- region.rotate = reader.readValue() == 'true';
3268
+ region.rotate = reader.readValue() == "true";
3269
3269
  reader.readTuple(tuple);
3270
3270
  let x = parseInt(tuple[0]);
3271
3271
  let y = parseInt(tuple[1]);
@@ -3317,8 +3317,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3317
3317
  }
3318
3318
  class TextureAtlasReader {
3319
3319
  constructor(text) {
3320
- __publicField(this, 'lines');
3321
- __publicField(this, 'index', 0);
3320
+ __publicField(this, "lines");
3321
+ __publicField(this, "index", 0);
3322
3322
  this.lines = text.split(/\r\n|\r|\n/);
3323
3323
  }
3324
3324
  readLine() {
@@ -3327,18 +3327,18 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3327
3327
  }
3328
3328
  readValue() {
3329
3329
  let line = this.readLine();
3330
- let colon = line.indexOf(':');
3331
- if (colon == -1) throw new Error('Invalid line: ' + line);
3330
+ let colon = line.indexOf(":");
3331
+ if (colon == -1) throw new Error("Invalid line: " + line);
3332
3332
  return line.substring(colon + 1).trim();
3333
3333
  }
3334
3334
  readTuple(tuple) {
3335
3335
  let line = this.readLine();
3336
- let colon = line.indexOf(':');
3337
- if (colon == -1) throw new Error('Invalid line: ' + line);
3336
+ let colon = line.indexOf(":");
3337
+ if (colon == -1) throw new Error("Invalid line: " + line);
3338
3338
  let i = 0,
3339
3339
  lastMatch = colon + 1;
3340
3340
  for (; i < 3; i++) {
3341
- let comma = line.indexOf(',', lastMatch);
3341
+ let comma = line.indexOf(",", lastMatch);
3342
3342
  if (comma == -1) break;
3343
3343
  tuple[i] = line.substr(lastMatch, comma - lastMatch).trim();
3344
3344
  lastMatch = comma + 1;
@@ -3349,14 +3349,14 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3349
3349
  }
3350
3350
  class TextureAtlasPage {
3351
3351
  constructor() {
3352
- __publicField(this, 'name');
3353
- __publicField(this, 'minFilter');
3354
- __publicField(this, 'magFilter');
3355
- __publicField(this, 'uWrap');
3356
- __publicField(this, 'vWrap');
3357
- __publicField(this, 'texture');
3358
- __publicField(this, 'width');
3359
- __publicField(this, 'height');
3352
+ __publicField(this, "name");
3353
+ __publicField(this, "minFilter");
3354
+ __publicField(this, "magFilter");
3355
+ __publicField(this, "uWrap");
3356
+ __publicField(this, "vWrap");
3357
+ __publicField(this, "texture");
3358
+ __publicField(this, "width");
3359
+ __publicField(this, "height");
3360
3360
  }
3361
3361
  setTexture(texture) {
3362
3362
  this.texture = texture;
@@ -3369,29 +3369,29 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3369
3369
  class TextureAtlasRegion extends TextureRegion {
3370
3370
  constructor() {
3371
3371
  super(...arguments);
3372
- __publicField(this, 'page');
3373
- __publicField(this, 'name');
3374
- __publicField(this, 'x');
3375
- __publicField(this, 'y');
3376
- __publicField(this, 'index');
3377
- __publicField(this, 'rotate');
3378
- __publicField(this, 'texture');
3372
+ __publicField(this, "page");
3373
+ __publicField(this, "name");
3374
+ __publicField(this, "x");
3375
+ __publicField(this, "y");
3376
+ __publicField(this, "index");
3377
+ __publicField(this, "rotate");
3378
+ __publicField(this, "texture");
3379
3379
  }
3380
3380
  }
3381
3381
  class AssetManager {
3382
- constructor(textureLoader, pathPrefix = '') {
3383
- __publicField(this, 'pathPrefix');
3384
- __publicField(this, 'textureLoader');
3385
- __publicField(this, 'assets', {});
3386
- __publicField(this, 'errors', {});
3387
- __publicField(this, 'toLoad', 0);
3388
- __publicField(this, 'loaded', 0);
3382
+ constructor(textureLoader, pathPrefix = "") {
3383
+ __publicField(this, "pathPrefix");
3384
+ __publicField(this, "textureLoader");
3385
+ __publicField(this, "assets", {});
3386
+ __publicField(this, "errors", {});
3387
+ __publicField(this, "toLoad", 0);
3388
+ __publicField(this, "loaded", 0);
3389
3389
  this.textureLoader = textureLoader;
3390
3390
  this.pathPrefix = pathPrefix;
3391
3391
  }
3392
3392
  static downloadText(url, success, error) {
3393
3393
  let request = new XMLHttpRequest();
3394
- request.open('GET', url, true);
3394
+ request.open("GET", url, true);
3395
3395
  request.onload = () => {
3396
3396
  if (request.status == 200) {
3397
3397
  success(request.responseText);
@@ -3406,8 +3406,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3406
3406
  }
3407
3407
  static downloadBinary(url, success, error) {
3408
3408
  let request = new XMLHttpRequest();
3409
- request.open('GET', url, true);
3410
- request.responseType = 'arraybuffer';
3409
+ request.open("GET", url, true);
3410
+ request.responseType = "arraybuffer";
3411
3411
  request.onload = () => {
3412
3412
  if (request.status == 200) {
3413
3413
  success(new Uint8Array(request.response));
@@ -3439,7 +3439,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3439
3439
  path2 = this.pathPrefix + path2;
3440
3440
  this.toLoad++;
3441
3441
  let img = new Image();
3442
- img.crossOrigin = 'anonymous';
3442
+ img.crossOrigin = "anonymous";
3443
3443
  img.onload = ev => {
3444
3444
  let texture = this.textureLoader(img);
3445
3445
  this.assets[path2] = texture;
@@ -3475,7 +3475,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3475
3475
  img.src = data;
3476
3476
  }
3477
3477
  loadTextureAtlas(path2, success = null, error = null) {
3478
- let parent = path2.lastIndexOf('/') >= 0 ? path2.substring(0, path2.lastIndexOf('/')) : '';
3478
+ let parent = path2.lastIndexOf("/") >= 0 ? path2.substring(0, path2.lastIndexOf("/")) : "";
3479
3479
  path2 = this.pathPrefix + path2;
3480
3480
  this.toLoad++;
3481
3481
  AssetManager.downloadText(path2, atlasData => {
@@ -3485,8 +3485,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3485
3485
  var atlasPages = new Array();
3486
3486
  try {
3487
3487
  let atlas = new TextureAtlas(atlasData, path22 => {
3488
- atlasPages.push(parent + '/' + path22);
3489
- let image = document.createElement('img');
3488
+ atlasPages.push(parent + "/" + path22);
3489
+ let image = document.createElement("img");
3490
3490
  image.width = 16;
3491
3491
  image.height = 16;
3492
3492
  return new FakeTexture(image);
@@ -3507,7 +3507,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3507
3507
  if (!pageLoadError) {
3508
3508
  try {
3509
3509
  let atlas = new TextureAtlas(atlasData, path22 => {
3510
- return this.get(parent + '/' + path22);
3510
+ return this.get(parent + "/" + path22);
3511
3511
  });
3512
3512
  this.assets[path2] = atlas;
3513
3513
  if (success) success(path2, atlas);
@@ -3583,34 +3583,34 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3583
3583
  }
3584
3584
  class Event {
3585
3585
  constructor(time, data) {
3586
- __publicField(this, 'data');
3587
- __publicField(this, 'intValue');
3588
- __publicField(this, 'floatValue');
3589
- __publicField(this, 'stringValue');
3590
- __publicField(this, 'time');
3591
- if (data == null) throw new Error('data cannot be null.');
3586
+ __publicField(this, "data");
3587
+ __publicField(this, "intValue");
3588
+ __publicField(this, "floatValue");
3589
+ __publicField(this, "stringValue");
3590
+ __publicField(this, "time");
3591
+ if (data == null) throw new Error("data cannot be null.");
3592
3592
  this.time = time;
3593
3593
  this.data = data;
3594
3594
  }
3595
3595
  }
3596
3596
  class EventData {
3597
3597
  constructor(name) {
3598
- __publicField(this, 'name');
3599
- __publicField(this, 'intValue');
3600
- __publicField(this, 'floatValue');
3601
- __publicField(this, 'stringValue');
3598
+ __publicField(this, "name");
3599
+ __publicField(this, "intValue");
3600
+ __publicField(this, "floatValue");
3601
+ __publicField(this, "stringValue");
3602
3602
  this.name = name;
3603
3603
  }
3604
3604
  }
3605
3605
  class IkConstraint {
3606
3606
  constructor(data, skeleton) {
3607
- __publicField(this, 'data');
3608
- __publicField(this, 'bones');
3609
- __publicField(this, 'target');
3610
- __publicField(this, 'mix', 1);
3611
- __publicField(this, 'bendDirection', 0);
3612
- if (data == null) throw new Error('data cannot be null.');
3613
- if (skeleton == null) throw new Error('skeleton cannot be null.');
3607
+ __publicField(this, "data");
3608
+ __publicField(this, "bones");
3609
+ __publicField(this, "target");
3610
+ __publicField(this, "mix", 1);
3611
+ __publicField(this, "bendDirection", 0);
3612
+ if (data == null) throw new Error("data cannot be null.");
3613
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
3614
3614
  this.data = data;
3615
3615
  this.mix = data.mix;
3616
3616
  this.bendDirection = data.bendDirection;
@@ -3797,66 +3797,66 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
3797
3797
  }
3798
3798
  class IkConstraintData {
3799
3799
  constructor(name) {
3800
- __publicField(this, 'name');
3801
- __publicField(this, 'order', 0);
3802
- __publicField(this, 'bones', new Array());
3803
- __publicField(this, 'target');
3804
- __publicField(this, 'bendDirection', 1);
3805
- __publicField(this, 'mix', 1);
3800
+ __publicField(this, "name");
3801
+ __publicField(this, "order", 0);
3802
+ __publicField(this, "bones", new Array());
3803
+ __publicField(this, "target");
3804
+ __publicField(this, "bendDirection", 1);
3805
+ __publicField(this, "mix", 1);
3806
3806
  this.name = name;
3807
3807
  }
3808
3808
  }
3809
3809
  class PathConstraintData {
3810
3810
  constructor(name) {
3811
- __publicField(this, 'name');
3812
- __publicField(this, 'order', 0);
3813
- __publicField(this, 'bones', new Array());
3814
- __publicField(this, 'target');
3815
- __publicField(this, 'positionMode');
3816
- __publicField(this, 'spacingMode');
3817
- __publicField(this, 'rotateMode');
3818
- __publicField(this, 'offsetRotation');
3819
- __publicField(this, 'position');
3820
- __publicField(this, 'spacing');
3821
- __publicField(this, 'rotateMix');
3822
- __publicField(this, 'translateMix');
3811
+ __publicField(this, "name");
3812
+ __publicField(this, "order", 0);
3813
+ __publicField(this, "bones", new Array());
3814
+ __publicField(this, "target");
3815
+ __publicField(this, "positionMode");
3816
+ __publicField(this, "spacingMode");
3817
+ __publicField(this, "rotateMode");
3818
+ __publicField(this, "offsetRotation");
3819
+ __publicField(this, "position");
3820
+ __publicField(this, "spacing");
3821
+ __publicField(this, "rotateMix");
3822
+ __publicField(this, "translateMix");
3823
3823
  this.name = name;
3824
3824
  }
3825
3825
  }
3826
3826
  var PositionMode = (PositionMode2 => {
3827
- PositionMode2[PositionMode2['Fixed'] = 0] = 'Fixed';
3828
- PositionMode2[PositionMode2['Percent'] = 1] = 'Percent';
3827
+ PositionMode2[PositionMode2["Fixed"] = 0] = "Fixed";
3828
+ PositionMode2[PositionMode2["Percent"] = 1] = "Percent";
3829
3829
  return PositionMode2;
3830
3830
  })(PositionMode || {});
3831
3831
  var SpacingMode = (SpacingMode2 => {
3832
- SpacingMode2[SpacingMode2['Length'] = 0] = 'Length';
3833
- SpacingMode2[SpacingMode2['Fixed'] = 1] = 'Fixed';
3834
- SpacingMode2[SpacingMode2['Percent'] = 2] = 'Percent';
3832
+ SpacingMode2[SpacingMode2["Length"] = 0] = "Length";
3833
+ SpacingMode2[SpacingMode2["Fixed"] = 1] = "Fixed";
3834
+ SpacingMode2[SpacingMode2["Percent"] = 2] = "Percent";
3835
3835
  return SpacingMode2;
3836
3836
  })(SpacingMode || {});
3837
3837
  var RotateMode = (RotateMode2 => {
3838
- RotateMode2[RotateMode2['Tangent'] = 0] = 'Tangent';
3839
- RotateMode2[RotateMode2['Chain'] = 1] = 'Chain';
3840
- RotateMode2[RotateMode2['ChainScale'] = 2] = 'ChainScale';
3838
+ RotateMode2[RotateMode2["Tangent"] = 0] = "Tangent";
3839
+ RotateMode2[RotateMode2["Chain"] = 1] = "Chain";
3840
+ RotateMode2[RotateMode2["ChainScale"] = 2] = "ChainScale";
3841
3841
  return RotateMode2;
3842
3842
  })(RotateMode || {});
3843
3843
  const _PathConstraint = class _PathConstraint {
3844
3844
  constructor(data, skeleton) {
3845
- __publicField(this, 'data');
3846
- __publicField(this, 'bones');
3847
- __publicField(this, 'target');
3848
- __publicField(this, 'position', 0);
3849
- __publicField(this, 'spacing', 0);
3850
- __publicField(this, 'rotateMix', 0);
3851
- __publicField(this, 'translateMix', 0);
3852
- __publicField(this, 'spaces', new Array());
3853
- __publicField(this, 'positions', new Array());
3854
- __publicField(this, 'world', new Array());
3855
- __publicField(this, 'curves', new Array());
3856
- __publicField(this, 'lengths', new Array());
3857
- __publicField(this, 'segments', new Array());
3858
- if (data == null) throw new Error('data cannot be null.');
3859
- if (skeleton == null) throw new Error('skeleton cannot be null.');
3845
+ __publicField(this, "data");
3846
+ __publicField(this, "bones");
3847
+ __publicField(this, "target");
3848
+ __publicField(this, "position", 0);
3849
+ __publicField(this, "spacing", 0);
3850
+ __publicField(this, "rotateMix", 0);
3851
+ __publicField(this, "translateMix", 0);
3852
+ __publicField(this, "spaces", new Array());
3853
+ __publicField(this, "positions", new Array());
3854
+ __publicField(this, "world", new Array());
3855
+ __publicField(this, "curves", new Array());
3856
+ __publicField(this, "lengths", new Array());
3857
+ __publicField(this, "segments", new Array());
3858
+ if (data == null) throw new Error("data cannot be null.");
3859
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
3860
3860
  this.data = data;
3861
3861
  this.bones = new Array();
3862
3862
  for (let i = 0, n = data.bones.length; i < n; i++) this.bones.push(skeleton.findBone(data.bones[i].name));
@@ -4215,22 +4215,22 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4215
4215
  return this.data.order;
4216
4216
  }
4217
4217
  };
4218
- __publicField(_PathConstraint, 'NONE', -1);
4219
- __publicField(_PathConstraint, 'BEFORE', -2);
4220
- __publicField(_PathConstraint, 'AFTER', -3);
4221
- __publicField(_PathConstraint, 'epsilon', 1e-5);
4218
+ __publicField(_PathConstraint, "NONE", -1);
4219
+ __publicField(_PathConstraint, "BEFORE", -2);
4220
+ __publicField(_PathConstraint, "AFTER", -3);
4221
+ __publicField(_PathConstraint, "epsilon", 1e-5);
4222
4222
  let PathConstraint = _PathConstraint;
4223
4223
  class Slot {
4224
4224
  constructor(data, bone) {
4225
- __publicField(this, 'data');
4226
- __publicField(this, 'bone');
4227
- __publicField(this, 'color');
4228
- __publicField(this, 'darkColor');
4229
- __publicField(this, 'attachment');
4230
- __publicField(this, 'attachmentTime');
4231
- __publicField(this, 'attachmentVertices', new Array());
4232
- if (data == null) throw new Error('data cannot be null.');
4233
- if (bone == null) throw new Error('bone cannot be null.');
4225
+ __publicField(this, "data");
4226
+ __publicField(this, "bone");
4227
+ __publicField(this, "color");
4228
+ __publicField(this, "darkColor");
4229
+ __publicField(this, "attachment");
4230
+ __publicField(this, "attachmentTime");
4231
+ __publicField(this, "attachmentVertices", new Array());
4232
+ if (data == null) throw new Error("data cannot be null.");
4233
+ if (bone == null) throw new Error("bone cannot be null.");
4234
4234
  this.data = data;
4235
4235
  this.bone = bone;
4236
4236
  this.color = new Color();
@@ -4263,16 +4263,16 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4263
4263
  }
4264
4264
  class TransformConstraint {
4265
4265
  constructor(data, skeleton) {
4266
- __publicField(this, 'data');
4267
- __publicField(this, 'bones');
4268
- __publicField(this, 'target');
4269
- __publicField(this, 'rotateMix', 0);
4270
- __publicField(this, 'translateMix', 0);
4271
- __publicField(this, 'scaleMix', 0);
4272
- __publicField(this, 'shearMix', 0);
4273
- __publicField(this, 'temp', new Vector2());
4274
- if (data == null) throw new Error('data cannot be null.');
4275
- if (skeleton == null) throw new Error('skeleton cannot be null.');
4266
+ __publicField(this, "data");
4267
+ __publicField(this, "bones");
4268
+ __publicField(this, "target");
4269
+ __publicField(this, "rotateMix", 0);
4270
+ __publicField(this, "translateMix", 0);
4271
+ __publicField(this, "scaleMix", 0);
4272
+ __publicField(this, "shearMix", 0);
4273
+ __publicField(this, "temp", new Vector2());
4274
+ if (data == null) throw new Error("data cannot be null.");
4275
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
4276
4276
  this.data = data;
4277
4277
  this.rotateMix = data.rotateMix;
4278
4278
  this.translateMix = data.translateMix;
@@ -4497,23 +4497,23 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4497
4497
  }
4498
4498
  class Skeleton {
4499
4499
  constructor(data) {
4500
- __publicField(this, 'data');
4501
- __publicField(this, 'bones');
4502
- __publicField(this, 'slots');
4503
- __publicField(this, 'drawOrder');
4504
- __publicField(this, 'ikConstraints');
4505
- __publicField(this, 'transformConstraints');
4506
- __publicField(this, 'pathConstraints');
4507
- __publicField(this, '_updateCache', new Array());
4508
- __publicField(this, 'updateCacheReset', new Array());
4509
- __publicField(this, 'skin');
4510
- __publicField(this, 'color');
4511
- __publicField(this, 'time', 0);
4512
- __publicField(this, 'flipX', false);
4513
- __publicField(this, 'flipY', false);
4514
- __publicField(this, 'x', 0);
4515
- __publicField(this, 'y', 0);
4516
- if (data == null) throw new Error('data cannot be null.');
4500
+ __publicField(this, "data");
4501
+ __publicField(this, "bones");
4502
+ __publicField(this, "slots");
4503
+ __publicField(this, "drawOrder");
4504
+ __publicField(this, "ikConstraints");
4505
+ __publicField(this, "transformConstraints");
4506
+ __publicField(this, "pathConstraints");
4507
+ __publicField(this, "_updateCache", new Array());
4508
+ __publicField(this, "updateCacheReset", new Array());
4509
+ __publicField(this, "skin");
4510
+ __publicField(this, "color");
4511
+ __publicField(this, "time", 0);
4512
+ __publicField(this, "flipX", false);
4513
+ __publicField(this, "flipY", false);
4514
+ __publicField(this, "x", 0);
4515
+ __publicField(this, "y", 0);
4516
+ if (data == null) throw new Error("data cannot be null.");
4517
4517
  this.data = data;
4518
4518
  this.bones = new Array();
4519
4519
  for (let i = 0; i < data.bones.length; i++) {
@@ -4734,7 +4734,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4734
4734
  return this.bones[0];
4735
4735
  }
4736
4736
  findBone(boneName) {
4737
- if (boneName == null) throw new Error('boneName cannot be null.');
4737
+ if (boneName == null) throw new Error("boneName cannot be null.");
4738
4738
  let bones = this.bones;
4739
4739
  for (let i = 0, n = bones.length; i < n; i++) {
4740
4740
  let bone = bones[i];
@@ -4743,13 +4743,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4743
4743
  return null;
4744
4744
  }
4745
4745
  findBoneIndex(boneName) {
4746
- if (boneName == null) throw new Error('boneName cannot be null.');
4746
+ if (boneName == null) throw new Error("boneName cannot be null.");
4747
4747
  let bones = this.bones;
4748
4748
  for (let i = 0, n = bones.length; i < n; i++) if (bones[i].data.name == boneName) return i;
4749
4749
  return -1;
4750
4750
  }
4751
4751
  findSlot(slotName) {
4752
- if (slotName == null) throw new Error('slotName cannot be null.');
4752
+ if (slotName == null) throw new Error("slotName cannot be null.");
4753
4753
  let slots = this.slots;
4754
4754
  for (let i = 0, n = slots.length; i < n; i++) {
4755
4755
  let slot = slots[i];
@@ -4758,14 +4758,14 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4758
4758
  return null;
4759
4759
  }
4760
4760
  findSlotIndex(slotName) {
4761
- if (slotName == null) throw new Error('slotName cannot be null.');
4761
+ if (slotName == null) throw new Error("slotName cannot be null.");
4762
4762
  let slots = this.slots;
4763
4763
  for (let i = 0, n = slots.length; i < n; i++) if (slots[i].data.name == slotName) return i;
4764
4764
  return -1;
4765
4765
  }
4766
4766
  setSkinByName(skinName) {
4767
4767
  let skin = this.data.findSkin(skinName);
4768
- if (skin == null) throw new Error('Skin not found: ' + skinName);
4768
+ if (skin == null) throw new Error("Skin not found: " + skinName);
4769
4769
  this.setSkin(skin);
4770
4770
  }
4771
4771
  setSkin(newSkin) {
@@ -4788,7 +4788,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4788
4788
  return this.getAttachment(this.data.findSlotIndex(slotName), attachmentName);
4789
4789
  }
4790
4790
  getAttachment(slotIndex, attachmentName) {
4791
- if (attachmentName == null) throw new Error('attachmentName cannot be null.');
4791
+ if (attachmentName == null) throw new Error("attachmentName cannot be null.");
4792
4792
  if (this.skin != null) {
4793
4793
  let attachment = this.skin.getAttachment(slotIndex, attachmentName);
4794
4794
  if (attachment != null) return attachment;
@@ -4797,7 +4797,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4797
4797
  return null;
4798
4798
  }
4799
4799
  setAttachment(slotName, attachmentName) {
4800
- if (slotName == null) throw new Error('slotName cannot be null.');
4800
+ if (slotName == null) throw new Error("slotName cannot be null.");
4801
4801
  let slots = this.slots;
4802
4802
  for (let i = 0, n = slots.length; i < n; i++) {
4803
4803
  let slot = slots[i];
@@ -4805,16 +4805,16 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4805
4805
  let attachment = null;
4806
4806
  if (attachmentName != null) {
4807
4807
  attachment = this.getAttachment(i, attachmentName);
4808
- if (attachment == null) throw new Error('Attachment not found: ' + attachmentName + ', for slot: ' + slotName);
4808
+ if (attachment == null) throw new Error("Attachment not found: " + attachmentName + ", for slot: " + slotName);
4809
4809
  }
4810
4810
  slot.setAttachment(attachment);
4811
4811
  return;
4812
4812
  }
4813
4813
  }
4814
- throw new Error('Slot not found: ' + slotName);
4814
+ throw new Error("Slot not found: " + slotName);
4815
4815
  }
4816
4816
  findIkConstraint(constraintName) {
4817
- if (constraintName == null) throw new Error('constraintName cannot be null.');
4817
+ if (constraintName == null) throw new Error("constraintName cannot be null.");
4818
4818
  let ikConstraints = this.ikConstraints;
4819
4819
  for (let i = 0, n = ikConstraints.length; i < n; i++) {
4820
4820
  let ikConstraint = ikConstraints[i];
@@ -4823,7 +4823,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4823
4823
  return null;
4824
4824
  }
4825
4825
  findTransformConstraint(constraintName) {
4826
- if (constraintName == null) throw new Error('constraintName cannot be null.');
4826
+ if (constraintName == null) throw new Error("constraintName cannot be null.");
4827
4827
  let transformConstraints = this.transformConstraints;
4828
4828
  for (let i = 0, n = transformConstraints.length; i < n; i++) {
4829
4829
  let constraint = transformConstraints[i];
@@ -4832,7 +4832,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4832
4832
  return null;
4833
4833
  }
4834
4834
  findPathConstraint(constraintName) {
4835
- if (constraintName == null) throw new Error('constraintName cannot be null.');
4835
+ if (constraintName == null) throw new Error("constraintName cannot be null.");
4836
4836
  let pathConstraints = this.pathConstraints;
4837
4837
  for (let i = 0, n = pathConstraints.length; i < n; i++) {
4838
4838
  let constraint = pathConstraints[i];
@@ -4841,8 +4841,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4841
4841
  return null;
4842
4842
  }
4843
4843
  getBounds(offset, size, temp) {
4844
- if (offset == null) throw new Error('offset cannot be null.');
4845
- if (size == null) throw new Error('size cannot be null.');
4844
+ if (offset == null) throw new Error("offset cannot be null.");
4845
+ if (size == null) throw new Error("size cannot be null.");
4846
4846
  let drawOrder = this.drawOrder;
4847
4847
  let minX = Number.POSITIVE_INFINITY,
4848
4848
  minY = Number.POSITIVE_INFINITY,
@@ -4883,18 +4883,18 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
4883
4883
  }
4884
4884
  class SkeletonBounds {
4885
4885
  constructor() {
4886
- __publicField(this, 'minX', 0);
4887
- __publicField(this, 'minY', 0);
4888
- __publicField(this, 'maxX', 0);
4889
- __publicField(this, 'maxY', 0);
4890
- __publicField(this, 'boundingBoxes', new Array());
4891
- __publicField(this, 'polygons', new Array());
4892
- __publicField(this, 'polygonPool', new Pool(() => {
4886
+ __publicField(this, "minX", 0);
4887
+ __publicField(this, "minY", 0);
4888
+ __publicField(this, "maxX", 0);
4889
+ __publicField(this, "maxY", 0);
4890
+ __publicField(this, "boundingBoxes", new Array());
4891
+ __publicField(this, "polygons", new Array());
4892
+ __publicField(this, "polygonPool", new Pool(() => {
4893
4893
  return Utils.newFloatArray(16);
4894
4894
  }));
4895
4895
  }
4896
4896
  update(skeleton, updateAabb) {
4897
- if (skeleton == null) throw new Error('skeleton cannot be null.');
4897
+ if (skeleton == null) throw new Error("skeleton cannot be null.");
4898
4898
  let boundingBoxes = this.boundingBoxes;
4899
4899
  let polygons = this.polygons;
4900
4900
  let polygonPool = this.polygonPool;
@@ -5024,7 +5024,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5024
5024
  return false;
5025
5025
  }
5026
5026
  getPolygon(boundingBox) {
5027
- if (boundingBox == null) throw new Error('boundingBox cannot be null.');
5027
+ if (boundingBox == null) throw new Error("boundingBox cannot be null.");
5028
5028
  let index = this.boundingBoxes.indexOf(boundingBox);
5029
5029
  return index == -1 ? null : this.polygons[index];
5030
5030
  }
@@ -5037,15 +5037,15 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5037
5037
  }
5038
5038
  class Triangulator {
5039
5039
  constructor() {
5040
- __publicField(this, 'convexPolygons', new Array());
5041
- __publicField(this, 'convexPolygonsIndices', new Array());
5042
- __publicField(this, 'indicesArray', new Array());
5043
- __publicField(this, 'isConcaveArray', new Array());
5044
- __publicField(this, 'triangles', new Array());
5045
- __publicField(this, 'polygonPool', new Pool(() => {
5040
+ __publicField(this, "convexPolygons", new Array());
5041
+ __publicField(this, "convexPolygonsIndices", new Array());
5042
+ __publicField(this, "indicesArray", new Array());
5043
+ __publicField(this, "isConcaveArray", new Array());
5044
+ __publicField(this, "triangles", new Array());
5045
+ __publicField(this, "polygonPool", new Pool(() => {
5046
5046
  return new Array();
5047
5047
  }));
5048
- __publicField(this, 'polygonIndicesPool', new Pool(() => {
5048
+ __publicField(this, "polygonIndicesPool", new Pool(() => {
5049
5049
  return new Array();
5050
5050
  }));
5051
5051
  }
@@ -5254,15 +5254,15 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5254
5254
  }
5255
5255
  class SkeletonClipping {
5256
5256
  constructor() {
5257
- __publicField(this, 'triangulator', new Triangulator());
5258
- __publicField(this, 'clippingPolygon', new Array());
5259
- __publicField(this, 'clipOutput', new Array());
5260
- __publicField(this, 'clippedVertices', new Array());
5261
- __publicField(this, 'clippedUVs', new Array());
5262
- __publicField(this, 'clippedTriangles', new Array());
5263
- __publicField(this, 'scratch', new Array());
5264
- __publicField(this, 'clipAttachment');
5265
- __publicField(this, 'clippingPolygons');
5257
+ __publicField(this, "triangulator", new Triangulator());
5258
+ __publicField(this, "clippingPolygon", new Array());
5259
+ __publicField(this, "clipOutput", new Array());
5260
+ __publicField(this, "clippedVertices", new Array());
5261
+ __publicField(this, "clippedUVs", new Array());
5262
+ __publicField(this, "clippedTriangles", new Array());
5263
+ __publicField(this, "scratch", new Array());
5264
+ __publicField(this, "clipAttachment");
5265
+ __publicField(this, "clippingPolygons");
5266
5266
  }
5267
5267
  clipStart(slot, clip) {
5268
5268
  if (this.clipAttachment != null) return 0;
@@ -5644,25 +5644,25 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5644
5644
  }
5645
5645
  class SkeletonData {
5646
5646
  constructor() {
5647
- __publicField(this, 'name');
5648
- __publicField(this, 'bones', new Array());
5649
- __publicField(this, 'slots', new Array());
5650
- __publicField(this, 'skins', new Array());
5651
- __publicField(this, 'defaultSkin');
5652
- __publicField(this, 'events', new Array());
5653
- __publicField(this, 'animations', new Array());
5654
- __publicField(this, 'ikConstraints', new Array());
5655
- __publicField(this, 'transformConstraints', new Array());
5656
- __publicField(this, 'pathConstraints', new Array());
5657
- __publicField(this, 'width');
5658
- __publicField(this, 'height');
5659
- __publicField(this, 'version');
5660
- __publicField(this, 'hash');
5661
- __publicField(this, 'fps', 0);
5662
- __publicField(this, 'imagesPath');
5647
+ __publicField(this, "name");
5648
+ __publicField(this, "bones", new Array());
5649
+ __publicField(this, "slots", new Array());
5650
+ __publicField(this, "skins", new Array());
5651
+ __publicField(this, "defaultSkin");
5652
+ __publicField(this, "events", new Array());
5653
+ __publicField(this, "animations", new Array());
5654
+ __publicField(this, "ikConstraints", new Array());
5655
+ __publicField(this, "transformConstraints", new Array());
5656
+ __publicField(this, "pathConstraints", new Array());
5657
+ __publicField(this, "width");
5658
+ __publicField(this, "height");
5659
+ __publicField(this, "version");
5660
+ __publicField(this, "hash");
5661
+ __publicField(this, "fps", 0);
5662
+ __publicField(this, "imagesPath");
5663
5663
  }
5664
5664
  findBone(boneName) {
5665
- if (boneName == null) throw new Error('boneName cannot be null.');
5665
+ if (boneName == null) throw new Error("boneName cannot be null.");
5666
5666
  let bones = this.bones;
5667
5667
  for (let i = 0, n = bones.length; i < n; i++) {
5668
5668
  let bone = bones[i];
@@ -5671,13 +5671,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5671
5671
  return null;
5672
5672
  }
5673
5673
  findBoneIndex(boneName) {
5674
- if (boneName == null) throw new Error('boneName cannot be null.');
5674
+ if (boneName == null) throw new Error("boneName cannot be null.");
5675
5675
  let bones = this.bones;
5676
5676
  for (let i = 0, n = bones.length; i < n; i++) if (bones[i].name == boneName) return i;
5677
5677
  return -1;
5678
5678
  }
5679
5679
  findSlot(slotName) {
5680
- if (slotName == null) throw new Error('slotName cannot be null.');
5680
+ if (slotName == null) throw new Error("slotName cannot be null.");
5681
5681
  let slots = this.slots;
5682
5682
  for (let i = 0, n = slots.length; i < n; i++) {
5683
5683
  let slot = slots[i];
@@ -5686,13 +5686,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5686
5686
  return null;
5687
5687
  }
5688
5688
  findSlotIndex(slotName) {
5689
- if (slotName == null) throw new Error('slotName cannot be null.');
5689
+ if (slotName == null) throw new Error("slotName cannot be null.");
5690
5690
  let slots = this.slots;
5691
5691
  for (let i = 0, n = slots.length; i < n; i++) if (slots[i].name == slotName) return i;
5692
5692
  return -1;
5693
5693
  }
5694
5694
  findSkin(skinName) {
5695
- if (skinName == null) throw new Error('skinName cannot be null.');
5695
+ if (skinName == null) throw new Error("skinName cannot be null.");
5696
5696
  let skins = this.skins;
5697
5697
  for (let i = 0, n = skins.length; i < n; i++) {
5698
5698
  let skin = skins[i];
@@ -5701,7 +5701,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5701
5701
  return null;
5702
5702
  }
5703
5703
  findEvent(eventDataName) {
5704
- if (eventDataName == null) throw new Error('eventDataName cannot be null.');
5704
+ if (eventDataName == null) throw new Error("eventDataName cannot be null.");
5705
5705
  let events = this.events;
5706
5706
  for (let i = 0, n = events.length; i < n; i++) {
5707
5707
  let event = events[i];
@@ -5710,7 +5710,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5710
5710
  return null;
5711
5711
  }
5712
5712
  findAnimation(animationName) {
5713
- if (animationName == null) throw new Error('animationName cannot be null.');
5713
+ if (animationName == null) throw new Error("animationName cannot be null.");
5714
5714
  let animations = this.animations;
5715
5715
  for (let i = 0, n = animations.length; i < n; i++) {
5716
5716
  let animation = animations[i];
@@ -5719,7 +5719,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5719
5719
  return null;
5720
5720
  }
5721
5721
  findIkConstraint(constraintName) {
5722
- if (constraintName == null) throw new Error('constraintName cannot be null.');
5722
+ if (constraintName == null) throw new Error("constraintName cannot be null.");
5723
5723
  let ikConstraints = this.ikConstraints;
5724
5724
  for (let i = 0, n = ikConstraints.length; i < n; i++) {
5725
5725
  let constraint = ikConstraints[i];
@@ -5728,7 +5728,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5728
5728
  return null;
5729
5729
  }
5730
5730
  findTransformConstraint(constraintName) {
5731
- if (constraintName == null) throw new Error('constraintName cannot be null.');
5731
+ if (constraintName == null) throw new Error("constraintName cannot be null.");
5732
5732
  let transformConstraints = this.transformConstraints;
5733
5733
  for (let i = 0, n = transformConstraints.length; i < n; i++) {
5734
5734
  let constraint = transformConstraints[i];
@@ -5737,7 +5737,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5737
5737
  return null;
5738
5738
  }
5739
5739
  findPathConstraint(constraintName) {
5740
- if (constraintName == null) throw new Error('constraintName cannot be null.');
5740
+ if (constraintName == null) throw new Error("constraintName cannot be null.");
5741
5741
  let pathConstraints = this.pathConstraints;
5742
5742
  for (let i = 0, n = pathConstraints.length; i < n; i++) {
5743
5743
  let constraint = pathConstraints[i];
@@ -5746,28 +5746,28 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5746
5746
  return null;
5747
5747
  }
5748
5748
  findPathConstraintIndex(pathConstraintName) {
5749
- if (pathConstraintName == null) throw new Error('pathConstraintName cannot be null.');
5749
+ if (pathConstraintName == null) throw new Error("pathConstraintName cannot be null.");
5750
5750
  let pathConstraints = this.pathConstraints;
5751
5751
  for (let i = 0, n = pathConstraints.length; i < n; i++) if (pathConstraints[i].name == pathConstraintName) return i;
5752
5752
  return -1;
5753
5753
  }
5754
5754
  }
5755
5755
  var BlendMode = (BlendMode2 => {
5756
- BlendMode2[BlendMode2['Normal'] = 0] = 'Normal';
5757
- BlendMode2[BlendMode2['Additive'] = 1] = 'Additive';
5758
- BlendMode2[BlendMode2['Multiply'] = 2] = 'Multiply';
5759
- BlendMode2[BlendMode2['Screen'] = 3] = 'Screen';
5756
+ BlendMode2[BlendMode2["Normal"] = 0] = "Normal";
5757
+ BlendMode2[BlendMode2["Additive"] = 1] = "Additive";
5758
+ BlendMode2[BlendMode2["Multiply"] = 2] = "Multiply";
5759
+ BlendMode2[BlendMode2["Screen"] = 3] = "Screen";
5760
5760
  return BlendMode2;
5761
5761
  })(BlendMode || {});
5762
5762
  class Skin {
5763
5763
  constructor(name) {
5764
- __publicField(this, 'name');
5765
- __publicField(this, 'attachments', new Array());
5766
- if (name == null) throw new Error('name cannot be null.');
5764
+ __publicField(this, "name");
5765
+ __publicField(this, "attachments", new Array());
5766
+ if (name == null) throw new Error("name cannot be null.");
5767
5767
  this.name = name;
5768
5768
  }
5769
5769
  addAttachment(slotIndex, name, attachment) {
5770
- if (attachment == null) throw new Error('attachment cannot be null.');
5770
+ if (attachment == null) throw new Error("attachment cannot be null.");
5771
5771
  let attachments = this.attachments;
5772
5772
  if (slotIndex >= attachments.length) attachments.length = slotIndex + 1;
5773
5773
  if (!attachments[slotIndex]) attachments[slotIndex] = {};
@@ -5799,16 +5799,16 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5799
5799
  }
5800
5800
  class SlotData {
5801
5801
  constructor(index, name, boneData) {
5802
- __publicField(this, 'index');
5803
- __publicField(this, 'name');
5804
- __publicField(this, 'boneData');
5805
- __publicField(this, 'color', new Color(1, 1, 1, 1));
5806
- __publicField(this, 'darkColor');
5807
- __publicField(this, 'attachmentName');
5808
- __publicField(this, 'blendMode');
5809
- if (index < 0) throw new Error('index must be >= 0.');
5810
- if (name == null) throw new Error('name cannot be null.');
5811
- if (boneData == null) throw new Error('boneData cannot be null.');
5802
+ __publicField(this, "index");
5803
+ __publicField(this, "name");
5804
+ __publicField(this, "boneData");
5805
+ __publicField(this, "color", new Color(1, 1, 1, 1));
5806
+ __publicField(this, "darkColor");
5807
+ __publicField(this, "attachmentName");
5808
+ __publicField(this, "blendMode");
5809
+ if (index < 0) throw new Error("index must be >= 0.");
5810
+ if (name == null) throw new Error("name cannot be null.");
5811
+ if (boneData == null) throw new Error("boneData cannot be null.");
5812
5812
  this.index = index;
5813
5813
  this.name = name;
5814
5814
  this.boneData = boneData;
@@ -5816,37 +5816,37 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5816
5816
  }
5817
5817
  class TransformConstraintData {
5818
5818
  constructor(name) {
5819
- __publicField(this, 'name');
5820
- __publicField(this, 'order', 0);
5821
- __publicField(this, 'bones', new Array());
5822
- __publicField(this, 'target');
5823
- __publicField(this, 'rotateMix', 0);
5824
- __publicField(this, 'translateMix', 0);
5825
- __publicField(this, 'scaleMix', 0);
5826
- __publicField(this, 'shearMix', 0);
5827
- __publicField(this, 'offsetRotation', 0);
5828
- __publicField(this, 'offsetX', 0);
5829
- __publicField(this, 'offsetY', 0);
5830
- __publicField(this, 'offsetScaleX', 0);
5831
- __publicField(this, 'offsetScaleY', 0);
5832
- __publicField(this, 'offsetShearY', 0);
5833
- __publicField(this, 'relative', false);
5834
- __publicField(this, 'local', false);
5835
- if (name == null) throw new Error('name cannot be null.');
5819
+ __publicField(this, "name");
5820
+ __publicField(this, "order", 0);
5821
+ __publicField(this, "bones", new Array());
5822
+ __publicField(this, "target");
5823
+ __publicField(this, "rotateMix", 0);
5824
+ __publicField(this, "translateMix", 0);
5825
+ __publicField(this, "scaleMix", 0);
5826
+ __publicField(this, "shearMix", 0);
5827
+ __publicField(this, "offsetRotation", 0);
5828
+ __publicField(this, "offsetX", 0);
5829
+ __publicField(this, "offsetY", 0);
5830
+ __publicField(this, "offsetScaleX", 0);
5831
+ __publicField(this, "offsetScaleY", 0);
5832
+ __publicField(this, "offsetShearY", 0);
5833
+ __publicField(this, "relative", false);
5834
+ __publicField(this, "local", false);
5835
+ if (name == null) throw new Error("name cannot be null.");
5836
5836
  this.name = name;
5837
5837
  }
5838
5838
  }
5839
5839
  class SkeletonJson {
5840
5840
  constructor(attachmentLoader) {
5841
- __publicField(this, 'attachmentLoader');
5842
- __publicField(this, 'scale', 1);
5843
- __publicField(this, 'linkedMeshes', new Array());
5841
+ __publicField(this, "attachmentLoader");
5842
+ __publicField(this, "scale", 1);
5843
+ __publicField(this, "linkedMeshes", new Array());
5844
5844
  this.attachmentLoader = attachmentLoader;
5845
5845
  }
5846
5846
  readSkeletonData(json) {
5847
5847
  let scale = this.scale;
5848
5848
  let skeletonData = new SkeletonData();
5849
- let root = typeof json === 'string' ? JSON.parse(json) : json;
5849
+ let root = typeof json === "string" ? JSON.parse(json) : json;
5850
5850
  let skeletonMap = root.skeleton;
5851
5851
  if (skeletonMap != null) {
5852
5852
  skeletonData.hash = skeletonMap.hash;
@@ -5860,21 +5860,21 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5860
5860
  for (let i = 0; i < root.bones.length; i++) {
5861
5861
  let boneMap = root.bones[i];
5862
5862
  let parent = null;
5863
- let parentName = this.getValue(boneMap, 'parent', null);
5863
+ let parentName = this.getValue(boneMap, "parent", null);
5864
5864
  if (parentName != null) {
5865
5865
  parent = skeletonData.findBone(parentName);
5866
- if (parent == null) throw new Error('Parent bone not found: ' + parentName);
5866
+ if (parent == null) throw new Error("Parent bone not found: " + parentName);
5867
5867
  }
5868
5868
  let data = new BoneData(skeletonData.bones.length, boneMap.name, parent);
5869
- data.length = this.getValue(boneMap, 'length', 0) * scale;
5870
- data.x = this.getValue(boneMap, 'x', 0) * scale;
5871
- data.y = this.getValue(boneMap, 'y', 0) * scale;
5872
- data.rotation = this.getValue(boneMap, 'rotation', 0);
5873
- data.scaleX = this.getValue(boneMap, 'scaleX', 1);
5874
- data.scaleY = this.getValue(boneMap, 'scaleY', 1);
5875
- data.shearX = this.getValue(boneMap, 'shearX', 0);
5876
- data.shearY = this.getValue(boneMap, 'shearY', 0);
5877
- data.transformMode = SkeletonJson.transformModeFromString(this.getValue(boneMap, 'transform', 'normal'));
5869
+ data.length = this.getValue(boneMap, "length", 0) * scale;
5870
+ data.x = this.getValue(boneMap, "x", 0) * scale;
5871
+ data.y = this.getValue(boneMap, "y", 0) * scale;
5872
+ data.rotation = this.getValue(boneMap, "rotation", 0);
5873
+ data.scaleX = this.getValue(boneMap, "scaleX", 1);
5874
+ data.scaleY = this.getValue(boneMap, "scaleY", 1);
5875
+ data.shearX = this.getValue(boneMap, "shearX", 0);
5876
+ data.shearY = this.getValue(boneMap, "shearY", 0);
5877
+ data.transformMode = SkeletonJson.transformModeFromString(this.getValue(boneMap, "transform", "normal"));
5878
5878
  skeletonData.bones.push(data);
5879
5879
  }
5880
5880
  }
@@ -5884,17 +5884,17 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5884
5884
  let slotName = slotMap.name;
5885
5885
  let boneName = slotMap.bone;
5886
5886
  let boneData = skeletonData.findBone(boneName);
5887
- if (boneData == null) throw new Error('Slot bone not found: ' + boneName);
5887
+ if (boneData == null) throw new Error("Slot bone not found: " + boneName);
5888
5888
  let data = new SlotData(skeletonData.slots.length, slotName, boneData);
5889
- let color = this.getValue(slotMap, 'color', null);
5889
+ let color = this.getValue(slotMap, "color", null);
5890
5890
  if (color != null) data.color.setFromString(color);
5891
- let dark = this.getValue(slotMap, 'dark', null);
5891
+ let dark = this.getValue(slotMap, "dark", null);
5892
5892
  if (dark != null) {
5893
5893
  data.darkColor = new Color(1, 1, 1, 1);
5894
5894
  data.darkColor.setFromString(dark);
5895
5895
  }
5896
- data.attachmentName = this.getValue(slotMap, 'attachment', null);
5897
- data.blendMode = SkeletonJson.blendModeFromString(this.getValue(slotMap, 'blend', 'normal'));
5896
+ data.attachmentName = this.getValue(slotMap, "attachment", null);
5897
+ data.blendMode = SkeletonJson.blendModeFromString(this.getValue(slotMap, "blend", "normal"));
5898
5898
  skeletonData.slots.push(data);
5899
5899
  }
5900
5900
  }
@@ -5902,18 +5902,18 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5902
5902
  for (let i = 0; i < root.ik.length; i++) {
5903
5903
  let constraintMap = root.ik[i];
5904
5904
  let data = new IkConstraintData(constraintMap.name);
5905
- data.order = this.getValue(constraintMap, 'order', 0);
5905
+ data.order = this.getValue(constraintMap, "order", 0);
5906
5906
  for (let j = 0; j < constraintMap.bones.length; j++) {
5907
5907
  let boneName = constraintMap.bones[j];
5908
5908
  let bone = skeletonData.findBone(boneName);
5909
- if (bone == null) throw new Error('IK bone not found: ' + boneName);
5909
+ if (bone == null) throw new Error("IK bone not found: " + boneName);
5910
5910
  data.bones.push(bone);
5911
5911
  }
5912
5912
  let targetName = constraintMap.target;
5913
5913
  data.target = skeletonData.findBone(targetName);
5914
- if (data.target == null) throw new Error('IK target bone not found: ' + targetName);
5915
- data.bendDirection = this.getValue(constraintMap, 'bendPositive', true) ? 1 : -1;
5916
- data.mix = this.getValue(constraintMap, 'mix', 1);
5914
+ if (data.target == null) throw new Error("IK target bone not found: " + targetName);
5915
+ data.bendDirection = this.getValue(constraintMap, "bendPositive", true) ? 1 : -1;
5916
+ data.mix = this.getValue(constraintMap, "mix", 1);
5917
5917
  skeletonData.ikConstraints.push(data);
5918
5918
  }
5919
5919
  }
@@ -5921,28 +5921,28 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5921
5921
  for (let i = 0; i < root.transform.length; i++) {
5922
5922
  let constraintMap = root.transform[i];
5923
5923
  let data = new TransformConstraintData(constraintMap.name);
5924
- data.order = this.getValue(constraintMap, 'order', 0);
5924
+ data.order = this.getValue(constraintMap, "order", 0);
5925
5925
  for (let j = 0; j < constraintMap.bones.length; j++) {
5926
5926
  let boneName = constraintMap.bones[j];
5927
5927
  let bone = skeletonData.findBone(boneName);
5928
- if (bone == null) throw new Error('Transform constraint bone not found: ' + boneName);
5928
+ if (bone == null) throw new Error("Transform constraint bone not found: " + boneName);
5929
5929
  data.bones.push(bone);
5930
5930
  }
5931
5931
  let targetName = constraintMap.target;
5932
5932
  data.target = skeletonData.findBone(targetName);
5933
- if (data.target == null) throw new Error('Transform constraint target bone not found: ' + targetName);
5934
- data.local = this.getValue(constraintMap, 'local', false);
5935
- data.relative = this.getValue(constraintMap, 'relative', false);
5936
- data.offsetRotation = this.getValue(constraintMap, 'rotation', 0);
5937
- data.offsetX = this.getValue(constraintMap, 'x', 0) * scale;
5938
- data.offsetY = this.getValue(constraintMap, 'y', 0) * scale;
5939
- data.offsetScaleX = this.getValue(constraintMap, 'scaleX', 0);
5940
- data.offsetScaleY = this.getValue(constraintMap, 'scaleY', 0);
5941
- data.offsetShearY = this.getValue(constraintMap, 'shearY', 0);
5942
- data.rotateMix = this.getValue(constraintMap, 'rotateMix', 1);
5943
- data.translateMix = this.getValue(constraintMap, 'translateMix', 1);
5944
- data.scaleMix = this.getValue(constraintMap, 'scaleMix', 1);
5945
- data.shearMix = this.getValue(constraintMap, 'shearMix', 1);
5933
+ if (data.target == null) throw new Error("Transform constraint target bone not found: " + targetName);
5934
+ data.local = this.getValue(constraintMap, "local", false);
5935
+ data.relative = this.getValue(constraintMap, "relative", false);
5936
+ data.offsetRotation = this.getValue(constraintMap, "rotation", 0);
5937
+ data.offsetX = this.getValue(constraintMap, "x", 0) * scale;
5938
+ data.offsetY = this.getValue(constraintMap, "y", 0) * scale;
5939
+ data.offsetScaleX = this.getValue(constraintMap, "scaleX", 0);
5940
+ data.offsetScaleY = this.getValue(constraintMap, "scaleY", 0);
5941
+ data.offsetShearY = this.getValue(constraintMap, "shearY", 0);
5942
+ data.rotateMix = this.getValue(constraintMap, "rotateMix", 1);
5943
+ data.translateMix = this.getValue(constraintMap, "translateMix", 1);
5944
+ data.scaleMix = this.getValue(constraintMap, "scaleMix", 1);
5945
+ data.shearMix = this.getValue(constraintMap, "shearMix", 1);
5946
5946
  skeletonData.transformConstraints.push(data);
5947
5947
  }
5948
5948
  }
@@ -5950,26 +5950,26 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5950
5950
  for (let i = 0; i < root.path.length; i++) {
5951
5951
  let constraintMap = root.path[i];
5952
5952
  let data = new PathConstraintData(constraintMap.name);
5953
- data.order = this.getValue(constraintMap, 'order', 0);
5953
+ data.order = this.getValue(constraintMap, "order", 0);
5954
5954
  for (let j = 0; j < constraintMap.bones.length; j++) {
5955
5955
  let boneName = constraintMap.bones[j];
5956
5956
  let bone = skeletonData.findBone(boneName);
5957
- if (bone == null) throw new Error('Transform constraint bone not found: ' + boneName);
5957
+ if (bone == null) throw new Error("Transform constraint bone not found: " + boneName);
5958
5958
  data.bones.push(bone);
5959
5959
  }
5960
5960
  let targetName = constraintMap.target;
5961
5961
  data.target = skeletonData.findSlot(targetName);
5962
- if (data.target == null) throw new Error('Path target slot not found: ' + targetName);
5963
- data.positionMode = SkeletonJson.positionModeFromString(this.getValue(constraintMap, 'positionMode', 'percent'));
5964
- data.spacingMode = SkeletonJson.spacingModeFromString(this.getValue(constraintMap, 'spacingMode', 'length'));
5965
- data.rotateMode = SkeletonJson.rotateModeFromString(this.getValue(constraintMap, 'rotateMode', 'tangent'));
5966
- data.offsetRotation = this.getValue(constraintMap, 'rotation', 0);
5967
- data.position = this.getValue(constraintMap, 'position', 0);
5962
+ if (data.target == null) throw new Error("Path target slot not found: " + targetName);
5963
+ data.positionMode = SkeletonJson.positionModeFromString(this.getValue(constraintMap, "positionMode", "percent"));
5964
+ data.spacingMode = SkeletonJson.spacingModeFromString(this.getValue(constraintMap, "spacingMode", "length"));
5965
+ data.rotateMode = SkeletonJson.rotateModeFromString(this.getValue(constraintMap, "rotateMode", "tangent"));
5966
+ data.offsetRotation = this.getValue(constraintMap, "rotation", 0);
5967
+ data.position = this.getValue(constraintMap, "position", 0);
5968
5968
  if (data.positionMode == PositionMode.Fixed) data.position *= scale;
5969
- data.spacing = this.getValue(constraintMap, 'spacing', 0);
5969
+ data.spacing = this.getValue(constraintMap, "spacing", 0);
5970
5970
  if (data.spacingMode == SpacingMode.Length || data.spacingMode == SpacingMode.Fixed) data.spacing *= scale;
5971
- data.rotateMix = this.getValue(constraintMap, 'rotateMix', 1);
5972
- data.translateMix = this.getValue(constraintMap, 'translateMix', 1);
5971
+ data.rotateMix = this.getValue(constraintMap, "rotateMix", 1);
5972
+ data.translateMix = this.getValue(constraintMap, "translateMix", 1);
5973
5973
  skeletonData.pathConstraints.push(data);
5974
5974
  }
5975
5975
  }
@@ -5979,7 +5979,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5979
5979
  let skin = new Skin(skinName);
5980
5980
  for (let slotName in skinMap) {
5981
5981
  let slotIndex = skeletonData.findSlotIndex(slotName);
5982
- if (slotIndex == -1) throw new Error('Slot not found: ' + slotName);
5982
+ if (slotIndex == -1) throw new Error("Slot not found: " + slotName);
5983
5983
  let slotMap = skinMap[slotName];
5984
5984
  for (let entryName in slotMap) {
5985
5985
  let attachment = this.readAttachment(slotMap[entryName], skin, slotIndex, entryName, skeletonData);
@@ -5987,15 +5987,15 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
5987
5987
  }
5988
5988
  }
5989
5989
  skeletonData.skins.push(skin);
5990
- if (skin.name == 'default') skeletonData.defaultSkin = skin;
5990
+ if (skin.name == "default") skeletonData.defaultSkin = skin;
5991
5991
  }
5992
5992
  }
5993
5993
  for (let i = 0, n = this.linkedMeshes.length; i < n; i++) {
5994
5994
  let linkedMesh = this.linkedMeshes[i];
5995
5995
  let skin = linkedMesh.skin == null ? skeletonData.defaultSkin : skeletonData.findSkin(linkedMesh.skin);
5996
- if (skin == null) throw new Error('Skin not found: ' + linkedMesh.skin);
5996
+ if (skin == null) throw new Error("Skin not found: " + linkedMesh.skin);
5997
5997
  let parent = skin.getAttachment(linkedMesh.slotIndex, linkedMesh.parent);
5998
- if (parent == null) throw new Error('Parent mesh not found: ' + linkedMesh.parent);
5998
+ if (parent == null) throw new Error("Parent mesh not found: " + linkedMesh.parent);
5999
5999
  linkedMesh.mesh.setParentMesh(parent);
6000
6000
  linkedMesh.mesh.updateUVs();
6001
6001
  }
@@ -6004,9 +6004,9 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6004
6004
  for (let eventName in root.events) {
6005
6005
  let eventMap = root.events[eventName];
6006
6006
  let data = new EventData(eventName);
6007
- data.intValue = this.getValue(eventMap, 'int', 0);
6008
- data.floatValue = this.getValue(eventMap, 'float', 0);
6009
- data.stringValue = this.getValue(eventMap, 'string', '');
6007
+ data.intValue = this.getValue(eventMap, "int", 0);
6008
+ data.floatValue = this.getValue(eventMap, "float", 0);
6009
+ data.stringValue = this.getValue(eventMap, "string", "");
6010
6010
  skeletonData.events.push(data);
6011
6011
  }
6012
6012
  }
@@ -6020,49 +6020,49 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6020
6020
  }
6021
6021
  readAttachment(map, skin, slotIndex, name, skeletonData) {
6022
6022
  let scale = this.scale;
6023
- name = this.getValue(map, 'name', name);
6024
- let type = this.getValue(map, 'type', 'region');
6023
+ name = this.getValue(map, "name", name);
6024
+ let type = this.getValue(map, "type", "region");
6025
6025
  switch (type) {
6026
- case 'region':
6026
+ case "region":
6027
6027
  {
6028
- let path2 = this.getValue(map, 'path', name);
6028
+ let path2 = this.getValue(map, "path", name);
6029
6029
  let region = this.attachmentLoader.newRegionAttachment(skin, name, path2);
6030
6030
  if (region == null) return null;
6031
6031
  region.path = path2;
6032
- region.x = this.getValue(map, 'x', 0) * scale;
6033
- region.y = this.getValue(map, 'y', 0) * scale;
6034
- region.scaleX = this.getValue(map, 'scaleX', 1);
6035
- region.scaleY = this.getValue(map, 'scaleY', 1);
6036
- region.rotation = this.getValue(map, 'rotation', 0);
6032
+ region.x = this.getValue(map, "x", 0) * scale;
6033
+ region.y = this.getValue(map, "y", 0) * scale;
6034
+ region.scaleX = this.getValue(map, "scaleX", 1);
6035
+ region.scaleY = this.getValue(map, "scaleY", 1);
6036
+ region.rotation = this.getValue(map, "rotation", 0);
6037
6037
  region.width = map.width * scale;
6038
6038
  region.height = map.height * scale;
6039
- let color = this.getValue(map, 'color', null);
6039
+ let color = this.getValue(map, "color", null);
6040
6040
  if (color != null) region.color.setFromString(color);
6041
6041
  region.updateOffset();
6042
6042
  return region;
6043
6043
  }
6044
- case 'boundingbox':
6044
+ case "boundingbox":
6045
6045
  {
6046
6046
  let box = this.attachmentLoader.newBoundingBoxAttachment(skin, name);
6047
6047
  if (box == null) return null;
6048
6048
  this.readVertices(map, box, map.vertexCount << 1);
6049
- let color = this.getValue(map, 'color', null);
6049
+ let color = this.getValue(map, "color", null);
6050
6050
  if (color != null) box.color.setFromString(color);
6051
6051
  return box;
6052
6052
  }
6053
- case 'mesh':
6054
- case 'linkedmesh':
6053
+ case "mesh":
6054
+ case "linkedmesh":
6055
6055
  {
6056
- let path2 = this.getValue(map, 'path', name);
6056
+ let path2 = this.getValue(map, "path", name);
6057
6057
  let mesh = this.attachmentLoader.newMeshAttachment(skin, name, path2);
6058
6058
  if (mesh == null) return null;
6059
6059
  mesh.path = path2;
6060
- let color = this.getValue(map, 'color', null);
6060
+ let color = this.getValue(map, "color", null);
6061
6061
  if (color != null) mesh.color.setFromString(color);
6062
- let parent = this.getValue(map, 'parent', null);
6062
+ let parent = this.getValue(map, "parent", null);
6063
6063
  if (parent != null) {
6064
- mesh.inheritDeform = this.getValue(map, 'deform', true);
6065
- this.linkedMeshes.push(new LinkedMesh(mesh, this.getValue(map, 'skin', null), slotIndex, parent));
6064
+ mesh.inheritDeform = this.getValue(map, "deform", true);
6065
+ this.linkedMeshes.push(new LinkedMesh(mesh, this.getValue(map, "skin", null), slotIndex, parent));
6066
6066
  return mesh;
6067
6067
  }
6068
6068
  let uvs = map.uvs;
@@ -6070,48 +6070,48 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6070
6070
  mesh.triangles = map.triangles;
6071
6071
  mesh.regionUVs = uvs;
6072
6072
  mesh.updateUVs();
6073
- mesh.hullLength = this.getValue(map, 'hull', 0) * 2;
6073
+ mesh.hullLength = this.getValue(map, "hull", 0) * 2;
6074
6074
  return mesh;
6075
6075
  }
6076
- case 'path':
6076
+ case "path":
6077
6077
  {
6078
6078
  let path2 = this.attachmentLoader.newPathAttachment(skin, name);
6079
6079
  if (path2 == null) return null;
6080
- path2.closed = this.getValue(map, 'closed', false);
6081
- path2.constantSpeed = this.getValue(map, 'constantSpeed', true);
6080
+ path2.closed = this.getValue(map, "closed", false);
6081
+ path2.constantSpeed = this.getValue(map, "constantSpeed", true);
6082
6082
  let vertexCount = map.vertexCount;
6083
6083
  this.readVertices(map, path2, vertexCount << 1);
6084
6084
  let lengths = Utils.newArray(vertexCount / 3, 0);
6085
6085
  for (let i = 0; i < map.lengths.length; i++) lengths[i] = map.lengths[i] * scale;
6086
6086
  path2.lengths = lengths;
6087
- let color = this.getValue(map, 'color', null);
6087
+ let color = this.getValue(map, "color", null);
6088
6088
  if (color != null) path2.color.setFromString(color);
6089
6089
  return path2;
6090
6090
  }
6091
- case 'point':
6091
+ case "point":
6092
6092
  {
6093
6093
  let point = this.attachmentLoader.newPointAttachment(skin, name);
6094
6094
  if (point == null) return null;
6095
- point.x = this.getValue(map, 'x', 0) * scale;
6096
- point.y = this.getValue(map, 'y', 0) * scale;
6097
- point.rotation = this.getValue(map, 'rotation', 0);
6098
- let color = this.getValue(map, 'color', null);
6095
+ point.x = this.getValue(map, "x", 0) * scale;
6096
+ point.y = this.getValue(map, "y", 0) * scale;
6097
+ point.rotation = this.getValue(map, "rotation", 0);
6098
+ let color = this.getValue(map, "color", null);
6099
6099
  if (color != null) point.color.setFromString(color);
6100
6100
  return point;
6101
6101
  }
6102
- case 'clipping':
6102
+ case "clipping":
6103
6103
  {
6104
6104
  let clip = this.attachmentLoader.newClippingAttachment(skin, name);
6105
6105
  if (clip == null) return null;
6106
- let end = this.getValue(map, 'end', null);
6106
+ let end = this.getValue(map, "end", null);
6107
6107
  if (end != null) {
6108
6108
  let slot = skeletonData.findSlot(end);
6109
- if (slot == null) throw new Error('Clipping end slot not found: ' + end);
6109
+ if (slot == null) throw new Error("Clipping end slot not found: " + end);
6110
6110
  clip.endSlot = slot;
6111
6111
  }
6112
6112
  let vertexCount = map.vertexCount;
6113
6113
  this.readVertices(map, clip, vertexCount << 1);
6114
- let color = this.getValue(map, 'color', null);
6114
+ let color = this.getValue(map, "color", null);
6115
6115
  if (color != null) clip.color.setFromString(color);
6116
6116
  return clip;
6117
6117
  }
@@ -6153,10 +6153,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6153
6153
  for (let slotName in map.slots) {
6154
6154
  let slotMap = map.slots[slotName];
6155
6155
  let slotIndex = skeletonData.findSlotIndex(slotName);
6156
- if (slotIndex == -1) throw new Error('Slot not found: ' + slotName);
6156
+ if (slotIndex == -1) throw new Error("Slot not found: " + slotName);
6157
6157
  for (let timelineName in slotMap) {
6158
6158
  let timelineMap = slotMap[timelineName];
6159
- if (timelineName == 'attachment') {
6159
+ if (timelineName == "attachment") {
6160
6160
  let timeline = new AttachmentTimeline(timelineMap.length);
6161
6161
  timeline.slotIndex = slotIndex;
6162
6162
  let frameIndex = 0;
@@ -6166,7 +6166,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6166
6166
  }
6167
6167
  timelines.push(timeline);
6168
6168
  duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]);
6169
- } else if (timelineName == 'color') {
6169
+ } else if (timelineName == "color") {
6170
6170
  let timeline = new ColorTimeline(timelineMap.length);
6171
6171
  timeline.slotIndex = slotIndex;
6172
6172
  let frameIndex = 0;
@@ -6180,7 +6180,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6180
6180
  }
6181
6181
  timelines.push(timeline);
6182
6182
  duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * ColorTimeline.ENTRIES]);
6183
- } else if (timelineName == 'twoColor') {
6183
+ } else if (timelineName == "twoColor") {
6184
6184
  let timeline = new TwoColorTimeline(timelineMap.length);
6185
6185
  timeline.slotIndex = slotIndex;
6186
6186
  let frameIndex = 0;
@@ -6196,7 +6196,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6196
6196
  }
6197
6197
  timelines.push(timeline);
6198
6198
  duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * TwoColorTimeline.ENTRIES]);
6199
- } else throw new Error('Invalid timeline type for a slot: ' + timelineName + ' (' + slotName + ')');
6199
+ } else throw new Error("Invalid timeline type for a slot: " + timelineName + " (" + slotName + ")");
6200
6200
  }
6201
6201
  }
6202
6202
  }
@@ -6204,10 +6204,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6204
6204
  for (let boneName in map.bones) {
6205
6205
  let boneMap = map.bones[boneName];
6206
6206
  let boneIndex = skeletonData.findBoneIndex(boneName);
6207
- if (boneIndex == -1) throw new Error('Bone not found: ' + boneName);
6207
+ if (boneIndex == -1) throw new Error("Bone not found: " + boneName);
6208
6208
  for (let timelineName in boneMap) {
6209
6209
  let timelineMap = boneMap[timelineName];
6210
- if (timelineName === 'rotate') {
6210
+ if (timelineName === "rotate") {
6211
6211
  let timeline = new RotateTimeline(timelineMap.length);
6212
6212
  timeline.boneIndex = boneIndex;
6213
6213
  let frameIndex = 0;
@@ -6219,10 +6219,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6219
6219
  }
6220
6220
  timelines.push(timeline);
6221
6221
  duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * RotateTimeline.ENTRIES]);
6222
- } else if (timelineName === 'translate' || timelineName === 'scale' || timelineName === 'shear') {
6222
+ } else if (timelineName === "translate" || timelineName === "scale" || timelineName === "shear") {
6223
6223
  let timeline = null;
6224
6224
  let timelineScale = 1;
6225
- if (timelineName === 'scale') timeline = new ScaleTimeline(timelineMap.length);else if (timelineName === 'shear') timeline = new ShearTimeline(timelineMap.length);else {
6225
+ if (timelineName === "scale") timeline = new ScaleTimeline(timelineMap.length);else if (timelineName === "shear") timeline = new ShearTimeline(timelineMap.length);else {
6226
6226
  timeline = new TranslateTimeline(timelineMap.length);
6227
6227
  timelineScale = scale;
6228
6228
  }
@@ -6230,15 +6230,15 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6230
6230
  let frameIndex = 0;
6231
6231
  for (let i = 0; i < timelineMap.length; i++) {
6232
6232
  let valueMap = timelineMap[i];
6233
- let x = this.getValue(valueMap, 'x', 0),
6234
- y = this.getValue(valueMap, 'y', 0);
6233
+ let x = this.getValue(valueMap, "x", 0),
6234
+ y = this.getValue(valueMap, "y", 0);
6235
6235
  timeline.setFrame(frameIndex, valueMap.time, x * timelineScale, y * timelineScale);
6236
6236
  this.readCurve(valueMap, timeline, frameIndex);
6237
6237
  frameIndex++;
6238
6238
  }
6239
6239
  timelines.push(timeline);
6240
6240
  duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * TranslateTimeline.ENTRIES]);
6241
- } else throw new Error('Invalid timeline type for a bone: ' + timelineName + ' (' + boneName + ')');
6241
+ } else throw new Error("Invalid timeline type for a bone: " + timelineName + " (" + boneName + ")");
6242
6242
  }
6243
6243
  }
6244
6244
  }
@@ -6251,7 +6251,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6251
6251
  let frameIndex = 0;
6252
6252
  for (let i = 0; i < constraintMap.length; i++) {
6253
6253
  let valueMap = constraintMap[i];
6254
- timeline.setFrame(frameIndex, valueMap.time, this.getValue(valueMap, 'mix', 1), this.getValue(valueMap, 'bendPositive', true) ? 1 : -1);
6254
+ timeline.setFrame(frameIndex, valueMap.time, this.getValue(valueMap, "mix", 1), this.getValue(valueMap, "bendPositive", true) ? 1 : -1);
6255
6255
  this.readCurve(valueMap, timeline, frameIndex);
6256
6256
  frameIndex++;
6257
6257
  }
@@ -6268,7 +6268,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6268
6268
  let frameIndex = 0;
6269
6269
  for (let i = 0; i < constraintMap.length; i++) {
6270
6270
  let valueMap = constraintMap[i];
6271
- timeline.setFrame(frameIndex, valueMap.time, this.getValue(valueMap, 'rotateMix', 1), this.getValue(valueMap, 'translateMix', 1), this.getValue(valueMap, 'scaleMix', 1), this.getValue(valueMap, 'shearMix', 1));
6271
+ timeline.setFrame(frameIndex, valueMap.time, this.getValue(valueMap, "rotateMix", 1), this.getValue(valueMap, "translateMix", 1), this.getValue(valueMap, "scaleMix", 1), this.getValue(valueMap, "shearMix", 1));
6272
6272
  this.readCurve(valueMap, timeline, frameIndex);
6273
6273
  frameIndex++;
6274
6274
  }
@@ -6280,14 +6280,14 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6280
6280
  for (let constraintName in map.paths) {
6281
6281
  let constraintMap = map.paths[constraintName];
6282
6282
  let index = skeletonData.findPathConstraintIndex(constraintName);
6283
- if (index == -1) throw new Error('Path constraint not found: ' + constraintName);
6283
+ if (index == -1) throw new Error("Path constraint not found: " + constraintName);
6284
6284
  let data = skeletonData.pathConstraints[index];
6285
6285
  for (let timelineName in constraintMap) {
6286
6286
  let timelineMap = constraintMap[timelineName];
6287
- if (timelineName === 'position' || timelineName === 'spacing') {
6287
+ if (timelineName === "position" || timelineName === "spacing") {
6288
6288
  let timeline = null;
6289
6289
  let timelineScale = 1;
6290
- if (timelineName === 'spacing') {
6290
+ if (timelineName === "spacing") {
6291
6291
  timeline = new PathConstraintSpacingTimeline(timelineMap.length);
6292
6292
  if (data.spacingMode == SpacingMode.Length || data.spacingMode == SpacingMode.Fixed) timelineScale = scale;
6293
6293
  } else {
@@ -6304,13 +6304,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6304
6304
  }
6305
6305
  timelines.push(timeline);
6306
6306
  duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * PathConstraintPositionTimeline.ENTRIES]);
6307
- } else if (timelineName === 'mix') {
6307
+ } else if (timelineName === "mix") {
6308
6308
  let timeline = new PathConstraintMixTimeline(timelineMap.length);
6309
6309
  timeline.pathConstraintIndex = index;
6310
6310
  let frameIndex = 0;
6311
6311
  for (let i = 0; i < timelineMap.length; i++) {
6312
6312
  let valueMap = timelineMap[i];
6313
- timeline.setFrame(frameIndex, valueMap.time, this.getValue(valueMap, 'rotateMix', 1), this.getValue(valueMap, 'translateMix', 1));
6313
+ timeline.setFrame(frameIndex, valueMap.time, this.getValue(valueMap, "rotateMix", 1), this.getValue(valueMap, "translateMix", 1));
6314
6314
  this.readCurve(valueMap, timeline, frameIndex);
6315
6315
  frameIndex++;
6316
6316
  }
@@ -6324,15 +6324,15 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6324
6324
  for (let deformName in map.deform) {
6325
6325
  let deformMap = map.deform[deformName];
6326
6326
  let skin = skeletonData.findSkin(deformName);
6327
- if (skin == null) throw new Error('Skin not found: ' + deformName);
6327
+ if (skin == null) throw new Error("Skin not found: " + deformName);
6328
6328
  for (let slotName in deformMap) {
6329
6329
  let slotMap = deformMap[slotName];
6330
6330
  let slotIndex = skeletonData.findSlotIndex(slotName);
6331
- if (slotIndex == -1) throw new Error('Slot not found: ' + slotMap.name);
6331
+ if (slotIndex == -1) throw new Error("Slot not found: " + slotMap.name);
6332
6332
  for (let timelineName in slotMap) {
6333
6333
  let timelineMap = slotMap[timelineName];
6334
6334
  let attachment = skin.getAttachment(slotIndex, timelineName);
6335
- if (attachment == null) throw new Error('Deform attachment not found: ' + timelineMap.name);
6335
+ if (attachment == null) throw new Error("Deform attachment not found: " + timelineMap.name);
6336
6336
  let weighted = attachment.bones != null;
6337
6337
  let vertices = attachment.vertices;
6338
6338
  let deformLength = weighted ? vertices.length / 3 * 2 : vertices.length;
@@ -6343,10 +6343,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6343
6343
  for (let j = 0; j < timelineMap.length; j++) {
6344
6344
  let valueMap = timelineMap[j];
6345
6345
  let deform;
6346
- let verticesValue = this.getValue(valueMap, 'vertices', null);
6346
+ let verticesValue = this.getValue(valueMap, "vertices", null);
6347
6347
  if (verticesValue == null) deform = weighted ? Utils.newFloatArray(deformLength) : vertices;else {
6348
6348
  deform = Utils.newFloatArray(deformLength);
6349
- let start = this.getValue(valueMap, 'offset', 0);
6349
+ let start = this.getValue(valueMap, "offset", 0);
6350
6350
  Utils.arrayCopy(verticesValue, 0, deform, start, verticesValue.length);
6351
6351
  if (scale != 1) {
6352
6352
  for (let i = start, n = i + verticesValue.length; i < n; i++) deform[i] *= scale;
@@ -6374,7 +6374,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6374
6374
  for (let j = 0; j < drawOrderNode.length; j++) {
6375
6375
  let drawOrderMap = drawOrderNode[j];
6376
6376
  let drawOrder = null;
6377
- let offsets = this.getValue(drawOrderMap, 'offsets', null);
6377
+ let offsets = this.getValue(drawOrderMap, "offsets", null);
6378
6378
  if (offsets != null) {
6379
6379
  drawOrder = Utils.newArray(slotCount, -1);
6380
6380
  let unchanged = Utils.newArray(slotCount - offsets.length, 0);
@@ -6383,7 +6383,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6383
6383
  for (let i = 0; i < offsets.length; i++) {
6384
6384
  let offsetMap = offsets[i];
6385
6385
  let slotIndex = skeletonData.findSlotIndex(offsetMap.slot);
6386
- if (slotIndex == -1) throw new Error('Slot not found: ' + offsetMap.slot);
6386
+ if (slotIndex == -1) throw new Error("Slot not found: " + offsetMap.slot);
6387
6387
  while (originalIndex != slotIndex) unchanged[unchangedIndex++] = originalIndex++;
6388
6388
  drawOrder[originalIndex + offsetMap.offset] = originalIndex++;
6389
6389
  }
@@ -6401,24 +6401,24 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6401
6401
  for (let i = 0; i < map.events.length; i++) {
6402
6402
  let eventMap = map.events[i];
6403
6403
  let eventData = skeletonData.findEvent(eventMap.name);
6404
- if (eventData == null) throw new Error('Event not found: ' + eventMap.name);
6404
+ if (eventData == null) throw new Error("Event not found: " + eventMap.name);
6405
6405
  let event = new Event(Utils.toSinglePrecision(eventMap.time), eventData);
6406
- event.intValue = this.getValue(eventMap, 'int', eventData.intValue);
6407
- event.floatValue = this.getValue(eventMap, 'float', eventData.floatValue);
6408
- event.stringValue = this.getValue(eventMap, 'string', eventData.stringValue);
6406
+ event.intValue = this.getValue(eventMap, "int", eventData.intValue);
6407
+ event.floatValue = this.getValue(eventMap, "float", eventData.floatValue);
6408
+ event.stringValue = this.getValue(eventMap, "string", eventData.stringValue);
6409
6409
  timeline.setFrame(frameIndex++, event);
6410
6410
  }
6411
6411
  timelines.push(timeline);
6412
6412
  duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]);
6413
6413
  }
6414
6414
  if (isNaN(duration)) {
6415
- throw new Error('Error while parsing animation, duration is NaN');
6415
+ throw new Error("Error while parsing animation, duration is NaN");
6416
6416
  }
6417
6417
  skeletonData.animations.push(new Animation(name, timelines, duration));
6418
6418
  }
6419
6419
  readCurve(map, timeline, frameIndex) {
6420
6420
  if (!map.curve) return;
6421
- if (map.curve === 'stepped') timeline.setStepped(frameIndex);else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
6421
+ if (map.curve === "stepped") timeline.setStepped(frameIndex);else if (Object.prototype.toString.call(map.curve) === "[object Array]") {
6422
6422
  let curve = map.curve;
6423
6423
  timeline.setCurve(frameIndex, curve[0], curve[1], curve[2], curve[3]);
6424
6424
  }
@@ -6428,48 +6428,48 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6428
6428
  }
6429
6429
  static blendModeFromString(str) {
6430
6430
  str = str.toLowerCase();
6431
- if (str == 'normal') return BlendMode.Normal;
6432
- if (str == 'additive') return BlendMode.Additive;
6433
- if (str == 'multiply') return BlendMode.Multiply;
6434
- if (str == 'screen') return BlendMode.Screen;
6431
+ if (str == "normal") return BlendMode.Normal;
6432
+ if (str == "additive") return BlendMode.Additive;
6433
+ if (str == "multiply") return BlendMode.Multiply;
6434
+ if (str == "screen") return BlendMode.Screen;
6435
6435
  throw new Error(`Unknown blend mode: ${str}`);
6436
6436
  }
6437
6437
  static positionModeFromString(str) {
6438
6438
  str = str.toLowerCase();
6439
- if (str == 'fixed') return PositionMode.Fixed;
6440
- if (str == 'percent') return PositionMode.Percent;
6439
+ if (str == "fixed") return PositionMode.Fixed;
6440
+ if (str == "percent") return PositionMode.Percent;
6441
6441
  throw new Error(`Unknown position mode: ${str}`);
6442
6442
  }
6443
6443
  static spacingModeFromString(str) {
6444
6444
  str = str.toLowerCase();
6445
- if (str == 'length') return SpacingMode.Length;
6446
- if (str == 'fixed') return SpacingMode.Fixed;
6447
- if (str == 'percent') return SpacingMode.Percent;
6445
+ if (str == "length") return SpacingMode.Length;
6446
+ if (str == "fixed") return SpacingMode.Fixed;
6447
+ if (str == "percent") return SpacingMode.Percent;
6448
6448
  throw new Error(`Unknown position mode: ${str}`);
6449
6449
  }
6450
6450
  static rotateModeFromString(str) {
6451
6451
  str = str.toLowerCase();
6452
- if (str == 'tangent') return RotateMode.Tangent;
6453
- if (str == 'chain') return RotateMode.Chain;
6454
- if (str == 'chainscale') return RotateMode.ChainScale;
6452
+ if (str == "tangent") return RotateMode.Tangent;
6453
+ if (str == "chain") return RotateMode.Chain;
6454
+ if (str == "chainscale") return RotateMode.ChainScale;
6455
6455
  throw new Error(`Unknown rotate mode: ${str}`);
6456
6456
  }
6457
6457
  static transformModeFromString(str) {
6458
6458
  str = str.toLowerCase();
6459
- if (str == 'normal') return TransformMode.Normal;
6460
- if (str == 'onlytranslation') return TransformMode.OnlyTranslation;
6461
- if (str == 'norotationorreflection') return TransformMode.NoRotationOrReflection;
6462
- if (str == 'noscale') return TransformMode.NoScale;
6463
- if (str == 'noscaleorreflection') return TransformMode.NoScaleOrReflection;
6459
+ if (str == "normal") return TransformMode.Normal;
6460
+ if (str == "onlytranslation") return TransformMode.OnlyTranslation;
6461
+ if (str == "norotationorreflection") return TransformMode.NoRotationOrReflection;
6462
+ if (str == "noscale") return TransformMode.NoScale;
6463
+ if (str == "noscaleorreflection") return TransformMode.NoScaleOrReflection;
6464
6464
  throw new Error(`Unknown transform mode: ${str}`);
6465
6465
  }
6466
6466
  }
6467
6467
  class LinkedMesh {
6468
6468
  constructor(mesh, skin, slotIndex, parent) {
6469
- __publicField(this, 'parent');
6470
- __publicField(this, 'skin');
6471
- __publicField(this, 'slotIndex');
6472
- __publicField(this, 'mesh');
6469
+ __publicField(this, "parent");
6470
+ __publicField(this, "skin");
6471
+ __publicField(this, "slotIndex");
6472
+ __publicField(this, "mesh");
6473
6473
  this.mesh = mesh;
6474
6474
  this.skin = skin;
6475
6475
  this.slotIndex = slotIndex;
@@ -6487,10 +6487,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6487
6487
  })();
6488
6488
  class Assets {
6489
6489
  constructor(clientId) {
6490
- __publicField(this, 'clientId');
6491
- __publicField(this, 'toLoad', new Array());
6492
- __publicField(this, 'assets', {});
6493
- __publicField(this, 'textureLoader');
6490
+ __publicField(this, "clientId");
6491
+ __publicField(this, "toLoad", new Array());
6492
+ __publicField(this, "assets", {});
6493
+ __publicField(this, "textureLoader");
6494
6494
  this.clientId = clientId;
6495
6495
  }
6496
6496
  loaded() {
@@ -6500,12 +6500,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6500
6500
  }
6501
6501
  }
6502
6502
  class SharedAssetManager {
6503
- constructor(pathPrefix = '') {
6504
- __publicField(this, 'pathPrefix');
6505
- __publicField(this, 'clientAssets', {});
6506
- __publicField(this, 'queuedAssets', {});
6507
- __publicField(this, 'rawAssets', {});
6508
- __publicField(this, 'errors', {});
6503
+ constructor(pathPrefix = "") {
6504
+ __publicField(this, "pathPrefix");
6505
+ __publicField(this, "clientAssets", {});
6506
+ __publicField(this, "queuedAssets", {});
6507
+ __publicField(this, "rawAssets", {});
6508
+ __publicField(this, "errors", {});
6509
6509
  this.pathPrefix = pathPrefix;
6510
6510
  }
6511
6511
  queueAsset(clientId, textureLoader, path2) {
@@ -6536,7 +6536,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6536
6536
  }
6537
6537
  }
6538
6538
  };
6539
- request.open('GET', path2, true);
6539
+ request.open("GET", path2, true);
6540
6540
  request.send();
6541
6541
  }
6542
6542
  loadJson(clientId, path2) {
@@ -6552,7 +6552,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6552
6552
  }
6553
6553
  }
6554
6554
  };
6555
- request.open('GET', path2, true);
6555
+ request.open("GET", path2, true);
6556
6556
  request.send();
6557
6557
  }
6558
6558
  loadTexture(clientId, textureLoader, path2) {
@@ -6560,7 +6560,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6560
6560
  if (!this.queueAsset(clientId, textureLoader, path2)) return;
6561
6561
  let img = new Image();
6562
6562
  img.src = path2;
6563
- img.crossOrigin = 'anonymous';
6563
+ img.crossOrigin = "anonymous";
6564
6564
  img.onload = ev => {
6565
6565
  this.rawAssets[path2] = img;
6566
6566
  };
@@ -6605,8 +6605,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6605
6605
  }
6606
6606
  class JitterEffect {
6607
6607
  constructor(jitterX, jitterY) {
6608
- __publicField(this, 'jitterX', 0);
6609
- __publicField(this, 'jitterY', 0);
6608
+ __publicField(this, "jitterX", 0);
6609
+ __publicField(this, "jitterY", 0);
6610
6610
  this.jitterX = jitterX;
6611
6611
  this.jitterY = jitterY;
6612
6612
  }
@@ -6619,12 +6619,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6619
6619
  }
6620
6620
  const _SwirlEffect = class _SwirlEffect {
6621
6621
  constructor(radius) {
6622
- __publicField(this, 'centerX', 0);
6623
- __publicField(this, 'centerY', 0);
6624
- __publicField(this, 'radius', 0);
6625
- __publicField(this, 'angle', 0);
6626
- __publicField(this, 'worldX', 0);
6627
- __publicField(this, 'worldY', 0);
6622
+ __publicField(this, "centerX", 0);
6623
+ __publicField(this, "centerY", 0);
6624
+ __publicField(this, "radius", 0);
6625
+ __publicField(this, "angle", 0);
6626
+ __publicField(this, "worldX", 0);
6627
+ __publicField(this, "worldY", 0);
6628
6628
  this.radius = radius;
6629
6629
  }
6630
6630
  begin(skeleton) {
@@ -6646,12 +6646,12 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6646
6646
  }
6647
6647
  end() {}
6648
6648
  };
6649
- __publicField(_SwirlEffect, 'interpolation', new PowOut(2));
6649
+ __publicField(_SwirlEffect, "interpolation", new PowOut(2));
6650
6650
  let SwirlEffect = _SwirlEffect;
6651
6651
  const _SpineTexture = class _SpineTexture extends Texture {
6652
6652
  constructor(image) {
6653
6653
  super(image.resource);
6654
- __publicField(this, 'texture');
6654
+ __publicField(this, "texture");
6655
6655
  this.texture = pixi_js.Texture.from(image);
6656
6656
  }
6657
6657
  static from(texture) {
@@ -6661,6 +6661,9 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6661
6661
  return new _SpineTexture(texture);
6662
6662
  }
6663
6663
  setFilters(minFilter, magFilter) {
6664
+ if (!this.texture || !this.texture.source || !this.texture.source.style) {
6665
+ return;
6666
+ }
6664
6667
  const style = this.texture.source.style;
6665
6668
  style.minFilter = _SpineTexture.toPixiTextureFilter(minFilter);
6666
6669
  style.magFilter = _SpineTexture.toPixiTextureFilter(magFilter);
@@ -6668,6 +6671,9 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6668
6671
  this.texture.source.updateMipmaps();
6669
6672
  }
6670
6673
  setWraps(uWrap, vWrap) {
6674
+ if (!this.texture || !this.texture.source || !this.texture.source.style) {
6675
+ return;
6676
+ }
6671
6677
  const style = this.texture.source.style;
6672
6678
  style.addressModeU = _SpineTexture.toPixiTextureWrap(uWrap);
6673
6679
  style.addressModeV = _SpineTexture.toPixiTextureWrap(vWrap);
@@ -6694,11 +6700,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6694
6700
  case TextureFilter.Nearest:
6695
6701
  case TextureFilter.MipMapNearestLinear:
6696
6702
  case TextureFilter.MipMapNearestNearest:
6697
- return 'nearest';
6703
+ return "nearest";
6698
6704
  case TextureFilter.Linear:
6699
6705
  case TextureFilter.MipMapLinearLinear:
6700
6706
  case TextureFilter.MipMapLinearNearest:
6701
- return 'linear';
6707
+ return "linear";
6702
6708
  default:
6703
6709
  throw new Error(`Unknown texture filter: ${String(filter)}`);
6704
6710
  }
@@ -6706,11 +6712,11 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6706
6712
  static toPixiTextureWrap(wrap) {
6707
6713
  switch (wrap) {
6708
6714
  case TextureWrap.ClampToEdge:
6709
- return 'clamp-to-edge';
6715
+ return "clamp-to-edge";
6710
6716
  case TextureWrap.MirroredRepeat:
6711
- return 'mirror-repeat';
6717
+ return "mirror-repeat";
6712
6718
  case TextureWrap.Repeat:
6713
- return 'repeat';
6719
+ return "repeat";
6714
6720
  default:
6715
6721
  throw new Error(`Unknown texture wrap: ${String(wrap)}`);
6716
6722
  }
@@ -6718,29 +6724,29 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6718
6724
  static toPixiBlending(blend) {
6719
6725
  switch (blend) {
6720
6726
  case BlendMode.Normal:
6721
- return 'normal';
6727
+ return "normal";
6722
6728
  case BlendMode.Additive:
6723
- return 'add';
6729
+ return "add";
6724
6730
  case BlendMode.Multiply:
6725
- return 'multiply';
6731
+ return "multiply";
6726
6732
  case BlendMode.Screen:
6727
- return 'screen';
6733
+ return "screen";
6728
6734
  default:
6729
6735
  throw new Error(`Unknown blendMode: ${String(blend)}`);
6730
6736
  }
6731
6737
  }
6732
6738
  };
6733
- __publicField(_SpineTexture, 'textureMap', new Map());
6739
+ __publicField(_SpineTexture, "textureMap", new Map());
6734
6740
  let SpineTexture = _SpineTexture;
6735
6741
  const spineTextureAtlasLoader = {
6736
6742
  extension: pixi_js.ExtensionType.Asset,
6737
6743
  resolver: {
6738
- test: value => pixi_js.checkExtension(value, '.atlas'),
6744
+ test: value => pixi_js.checkExtension(value, ".atlas"),
6739
6745
  parse: value => {
6740
6746
  var _a, _b, _c;
6741
- const split = value.split('.');
6747
+ const split = value.split(".");
6742
6748
  return {
6743
- resolution: parseFloat((_c = (_b = (_a = pixi_js.Resolver.RETINA_PREFIX) == null ? void 0 : _a.exec(value)) == null ? void 0 : _b[1]) != null ? _c : '1'),
6749
+ resolution: parseFloat((_c = (_b = (_a = pixi_js.Resolver.RETINA_PREFIX) == null ? void 0 : _a.exec(value)) == null ? void 0 : _b[1]) != null ? _c : "1"),
6744
6750
  format: split[split.length - 2],
6745
6751
  src: value
6746
6752
  };
@@ -6750,10 +6756,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6750
6756
  extension: {
6751
6757
  type: pixi_js.ExtensionType.LoadParser,
6752
6758
  priority: pixi_js.LoaderParserPriority.Normal,
6753
- name: 'spineTextureAtlasLoader'
6759
+ name: "spineTextureAtlasLoader"
6754
6760
  },
6755
6761
  test(url) {
6756
- return pixi_js.checkExtension(url, '.atlas');
6762
+ return pixi_js.checkExtension(url, ".atlas");
6757
6763
  },
6758
6764
  load(url) {
6759
6765
  return __async(this, null, function* () {
@@ -6763,8 +6769,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6763
6769
  });
6764
6770
  },
6765
6771
  testParse(asset, options) {
6766
- const isExtensionRight = pixi_js.checkExtension(options.src, '.atlas');
6767
- const isString = typeof asset === 'string';
6772
+ const isExtensionRight = pixi_js.checkExtension(options.src, ".atlas");
6773
+ const isString = typeof asset === "string";
6768
6774
  return Promise.resolve(isExtensionRight && isString);
6769
6775
  },
6770
6776
  unload(atlas) {
@@ -6775,14 +6781,14 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6775
6781
  var _a;
6776
6782
  const metadata = options.data || {};
6777
6783
  let basePath = pixi_js.path.dirname(options.src);
6778
- if (basePath && basePath.lastIndexOf('/') !== basePath.length - 1) {
6779
- basePath += '/';
6784
+ if (basePath && basePath.lastIndexOf("/") !== basePath.length - 1) {
6785
+ basePath += "/";
6780
6786
  }
6781
6787
  const retval = new TextureAtlas(asset, path2 => {
6782
6788
  const data = SpineTexture.from(options.data.imageTexture.source);
6783
6789
  return data;
6784
6790
  });
6785
- if (metadata.images instanceof pixi_js.TextureSource || typeof metadata.images === 'string') {
6791
+ if (metadata.images instanceof pixi_js.TextureSource || typeof metadata.images === "string") {
6786
6792
  const pixiTexture = metadata.images;
6787
6793
  metadata.images = {};
6788
6794
  metadata.images[retval.pages[0].name] = pixiTexture;
@@ -6807,7 +6813,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6807
6813
  const assetsToLoadIn = {
6808
6814
  src: pixi_js.copySearchParams(url, options.src),
6809
6815
  data: __spreadProps(__spreadValues({}, metadata.imageMetadata), {
6810
- alphaMode: page.pma ? 'premultiplied-alpha' : 'premultiply-alpha-on-upload'
6816
+ alphaMode: page.pma ? "premultiplied-alpha" : "premultiply-alpha-on-upload"
6811
6817
  })
6812
6818
  };
6813
6819
  const pixiPromise = loader.load(assetsToLoadIn).then(texture => {
@@ -6824,7 +6830,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6824
6830
  };
6825
6831
  pixi_js.extensions.add(spineTextureAtlasLoader);
6826
6832
  function isJson(resource) {
6827
- return Object.prototype.hasOwnProperty.call(resource, 'bones');
6833
+ return Object.prototype.hasOwnProperty.call(resource, "bones");
6828
6834
  }
6829
6835
  function isBuffer(resource) {
6830
6836
  return resource instanceof Uint8Array;
@@ -6835,10 +6841,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6835
6841
  extension: {
6836
6842
  type: pixi_js.ExtensionType.LoadParser,
6837
6843
  priority: pixi_js.LoaderParserPriority.Normal,
6838
- name: 'spineSkeletonLoader'
6844
+ name: "spineSkeletonLoader"
6839
6845
  },
6840
6846
  test(url) {
6841
- return pixi_js.checkExtension(url, '.skel');
6847
+ return pixi_js.checkExtension(url, ".skel");
6842
6848
  },
6843
6849
  load(url) {
6844
6850
  return __async(this, null, function* () {
@@ -6848,8 +6854,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6848
6854
  });
6849
6855
  },
6850
6856
  testParse(asset, options) {
6851
- const isJsonSpineModel = pixi_js.checkExtension(options.src, '.json') && isJson(asset);
6852
- const isBinarySpineModel = pixi_js.checkExtension(options.src, '.skel') && isBuffer(asset);
6857
+ const isJsonSpineModel = pixi_js.checkExtension(options.src, ".json") && isJson(asset);
6858
+ const isBinarySpineModel = pixi_js.checkExtension(options.src, ".skel") && isBuffer(asset);
6853
6859
  return Promise.resolve(isJsonSpineModel || isBinarySpineModel);
6854
6860
  }
6855
6861
  }
@@ -6862,13 +6868,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6862
6868
  const vertexSize = 7;
6863
6869
  const attributeBuffer = new pixi_js.Buffer({
6864
6870
  data: placeHolderBufferData,
6865
- label: 'attribute-batch-buffer',
6871
+ label: "attribute-batch-buffer",
6866
6872
  usage: pixi_js.BufferUsage.VERTEX | pixi_js.BufferUsage.COPY_DST,
6867
6873
  shrinkToFit: false
6868
6874
  });
6869
6875
  const indexBuffer = new pixi_js.Buffer({
6870
6876
  data: placeHolderIndexData,
6871
- label: 'index-batch-buffer',
6877
+ label: "index-batch-buffer",
6872
6878
  usage: pixi_js.BufferUsage.INDEX | pixi_js.BufferUsage.COPY_DST,
6873
6879
  shrinkToFit: false
6874
6880
  });
@@ -6877,31 +6883,31 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6877
6883
  attributes: {
6878
6884
  aPosition: {
6879
6885
  buffer: attributeBuffer,
6880
- format: 'float32x2',
6886
+ format: "float32x2",
6881
6887
  stride,
6882
6888
  offset: 0
6883
6889
  },
6884
6890
  aUV: {
6885
6891
  buffer: attributeBuffer,
6886
- format: 'float32x2',
6892
+ format: "float32x2",
6887
6893
  stride,
6888
6894
  offset: 2 * 4
6889
6895
  },
6890
6896
  aColor: {
6891
6897
  buffer: attributeBuffer,
6892
- format: 'unorm8x4',
6898
+ format: "unorm8x4",
6893
6899
  stride,
6894
6900
  offset: 4 * 4
6895
6901
  },
6896
6902
  aDarkColor: {
6897
6903
  buffer: attributeBuffer,
6898
- format: 'unorm8x4',
6904
+ format: "unorm8x4",
6899
6905
  stride,
6900
6906
  offset: 5 * 4
6901
6907
  },
6902
6908
  aTextureIdAndRound: {
6903
6909
  buffer: attributeBuffer,
6904
- format: 'uint16x2',
6910
+ format: "uint16x2",
6905
6911
  stride,
6906
6912
  offset: 6 * 4
6907
6913
  }
@@ -6911,60 +6917,60 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6911
6917
  }
6912
6918
  }
6913
6919
  const darkTintBit = {
6914
- name: 'color-bit',
6920
+ name: "color-bit",
6915
6921
  vertex: {
6916
- header: `
6922
+ header: (`
6917
6923
  @in aDarkColor: vec4<f32>;
6918
6924
  @out vDarkColor: vec4<f32>;
6919
- `,
6920
- main: `
6925
+ `),
6926
+ main: (`
6921
6927
  vDarkColor = aDarkColor;
6922
- `
6928
+ `)
6923
6929
  },
6924
6930
  fragment: {
6925
- header: `
6931
+ header: (`
6926
6932
  @in vDarkColor: vec4<f32>;
6927
- `,
6928
- end: `
6933
+ `),
6934
+ end: (`
6929
6935
 
6930
6936
  let alpha = outColor.a * vColor.a;
6931
6937
  let rgb = ((outColor.a - 1.0) * vDarkColor.a + 1.0 - outColor.rgb) * vDarkColor.rgb + outColor.rgb * vColor.rgb;
6932
6938
 
6933
6939
  finalColor = vec4<f32>(rgb, alpha);
6934
6940
 
6935
- `
6941
+ `)
6936
6942
  }
6937
6943
  };
6938
6944
  const darkTintBitGl = {
6939
- name: 'color-bit',
6945
+ name: "color-bit",
6940
6946
  vertex: {
6941
- header: `
6947
+ header: (`
6942
6948
  in vec4 aDarkColor;
6943
6949
  out vec4 vDarkColor;
6944
- `,
6945
- main: `
6950
+ `),
6951
+ main: (`
6946
6952
  vDarkColor = aDarkColor;
6947
- `
6953
+ `)
6948
6954
  },
6949
6955
  fragment: {
6950
- header: `
6956
+ header: (`
6951
6957
  in vec4 vDarkColor;
6952
- `,
6953
- end: `
6958
+ `),
6959
+ end: (`
6954
6960
 
6955
6961
  finalColor.a = outColor.a * vColor.a;
6956
6962
  finalColor.rgb = ((outColor.a - 1.0) * vDarkColor.a + 1.0 - outColor.rgb) * vDarkColor.rgb + outColor.rgb * vColor.rgb;
6957
- `
6963
+ `)
6958
6964
  }
6959
6965
  };
6960
6966
  class DarkTintShader extends pixi_js.Shader {
6961
6967
  constructor(maxTextures) {
6962
6968
  const glProgram = pixi_js.compileHighShaderGlProgram({
6963
- name: 'dark-tint-batch',
6969
+ name: "dark-tint-batch",
6964
6970
  bits: [pixi_js.colorBitGl, darkTintBitGl, pixi_js.generateTextureBatchBitGl(maxTextures), pixi_js.roundPixelsBitGl]
6965
6971
  });
6966
6972
  const gpuProgram = pixi_js.compileHighShaderGpuProgram({
6967
- name: 'dark-tint-batch',
6973
+ name: "dark-tint-batch",
6968
6974
  bits: [pixi_js.colorBit, darkTintBit, pixi_js.generateTextureBatchBit(maxTextures), pixi_js.roundPixelsBit]
6969
6975
  });
6970
6976
  super({
@@ -6980,10 +6986,10 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
6980
6986
  const _DarkTintBatcher = class _DarkTintBatcher extends pixi_js.Batcher {
6981
6987
  constructor() {
6982
6988
  super(...arguments);
6983
- __publicField(this, 'geometry', new DarkTintBatchGeometry());
6984
- __publicField(this, 'shader', defaultShader || (defaultShader = new DarkTintShader(this.maxTextures)));
6985
- __publicField(this, 'name', _DarkTintBatcher.extension.name);
6986
- __publicField(this, 'vertexSize', 7);
6989
+ __publicField(this, "geometry", new DarkTintBatchGeometry());
6990
+ __publicField(this, "shader", defaultShader || (defaultShader = new DarkTintShader(this.maxTextures)));
6991
+ __publicField(this, "name", _DarkTintBatcher.extension.name);
6992
+ __publicField(this, "vertexSize", 7);
6987
6993
  }
6988
6994
  packAttributes(element, float32View, uint32View, index, textureId) {
6989
6995
  const textureIdAndRound = textureId << 16 | element.roundPixels & 65535;
@@ -7064,36 +7070,317 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7064
7070
  uint32View[index + 27] = textureIdAndRound;
7065
7071
  }
7066
7072
  };
7067
- __publicField(_DarkTintBatcher, 'extension', {
7073
+ __publicField(_DarkTintBatcher, "extension", {
7068
7074
  type: [pixi_js.ExtensionType.Batcher],
7069
- name: 'darkTint'
7075
+ name: "darkTint"
7070
7076
  });
7071
7077
  let DarkTintBatcher = _DarkTintBatcher;
7072
7078
  pixi_js.extensions.add(DarkTintBatcher);
7079
+ const _SkeletonRenderer = class _SkeletonRenderer {
7080
+ constructor(context) {
7081
+ __publicField(this, "ctx");
7082
+ __publicField(this, "clipper", new SkeletonClipping());
7083
+ __publicField(this, "triangleRendering", false);
7084
+ __publicField(this, "debugRendering", false);
7085
+ __publicField(this, "vertices", Utils.newFloatArray(8 * 1024));
7086
+ __publicField(this, "tempColor", new Color());
7087
+ this.ctx = context;
7088
+ }
7089
+ draw(skeleton) {
7090
+ if (this.triangleRendering) this.drawTriangles(skeleton);else this.drawImages(skeleton);
7091
+ }
7092
+ drawImages(skeleton) {
7093
+ let ctx = this.ctx;
7094
+ let drawOrder = skeleton.drawOrder;
7095
+ if (this.debugRendering) ctx.strokeStyle = "green";
7096
+ ctx.save();
7097
+ for (let i = 0, n = drawOrder.length; i < n; i++) {
7098
+ let slot = drawOrder[i];
7099
+ let attachment = slot.getAttachment();
7100
+ let regionAttachment = null;
7101
+ let region = null;
7102
+ let image = null;
7103
+ if (attachment instanceof RegionAttachment) {
7104
+ regionAttachment = attachment;
7105
+ region = regionAttachment.region;
7106
+ image = region.texture.getImage();
7107
+ } else continue;
7108
+ let skeleton2 = slot.bone.skeleton;
7109
+ let skeletonColor = skeleton2.color;
7110
+ let slotColor = slot.color;
7111
+ let regionColor = regionAttachment.color;
7112
+ let alpha = skeletonColor.a * slotColor.a * regionColor.a;
7113
+ let color = this.tempColor;
7114
+ color.set(skeletonColor.r * slotColor.r * regionColor.r, skeletonColor.g * slotColor.g * regionColor.g, skeletonColor.b * slotColor.b * regionColor.b, alpha);
7115
+ let att = attachment;
7116
+ let bone = slot.bone;
7117
+ let w = region.width;
7118
+ let h = region.height;
7119
+ ctx.save();
7120
+ ctx.transform(bone.a, bone.c, bone.b, bone.d, bone.worldX, bone.worldY);
7121
+ ctx.translate(attachment.offset[0], attachment.offset[1]);
7122
+ ctx.rotate(attachment.rotation * Math.PI / 180);
7123
+ let atlasScale = att.width / w;
7124
+ ctx.scale(atlasScale * attachment.scaleX, atlasScale * attachment.scaleY);
7125
+ ctx.translate(w / 2, h / 2);
7126
+ if (attachment.region.rotate) {
7127
+ let t = w;
7128
+ w = h;
7129
+ h = t;
7130
+ ctx.rotate(-Math.PI / 2);
7131
+ }
7132
+ ctx.scale(1, -1);
7133
+ ctx.translate(-w / 2, -h / 2);
7134
+ ctx.globalAlpha = color.a;
7135
+ ctx.drawImage(image, region.x, region.y, w, h, 0, 0, w, h);
7136
+ if (this.debugRendering) ctx.strokeRect(0, 0, w, h);
7137
+ ctx.restore();
7138
+ }
7139
+ ctx.restore();
7140
+ }
7141
+ drawTriangles(skeleton) {
7142
+ let vertices = this.vertices;
7143
+ let triangles = null;
7144
+ let drawOrder = skeleton.drawOrder;
7145
+ let clipper2 = this.clipper;
7146
+ for (let i = 0, n = drawOrder.length; i < n; i++) {
7147
+ let slot = drawOrder[i];
7148
+ let attachment = slot.getAttachment();
7149
+ let texture = null;
7150
+ let region = null;
7151
+ if (attachment instanceof ClippingAttachment) {
7152
+ clipper2.clipStart(slot, attachment);
7153
+ continue;
7154
+ }
7155
+ if (attachment instanceof RegionAttachment) {
7156
+ let regionAttachment = attachment;
7157
+ vertices = this.computeRegionVertices(slot, regionAttachment, false);
7158
+ triangles = _SkeletonRenderer.QUAD_TRIANGLES;
7159
+ region = regionAttachment.region;
7160
+ texture = region.texture.getImage();
7161
+ } else if (attachment instanceof MeshAttachment) {
7162
+ let mesh = attachment;
7163
+ vertices = this.computeMeshVertices(slot, mesh, false);
7164
+ triangles = mesh.triangles;
7165
+ texture = mesh.region.renderObject.texture.getImage();
7166
+ } else {
7167
+ clipper2.clipEndWithSlot(slot);
7168
+ continue;
7169
+ }
7170
+ if (texture != null) {
7171
+ slot.data.blendMode;
7172
+ let skeleton2 = slot.bone.skeleton;
7173
+ let skeletonColor = skeleton2.color;
7174
+ let slotColor = slot.color;
7175
+ let attachmentColor = attachment.color;
7176
+ let alpha = skeletonColor.a * slotColor.a * attachmentColor.a;
7177
+ let color = this.tempColor;
7178
+ color.set(skeletonColor.r * slotColor.r * attachmentColor.r, skeletonColor.g * slotColor.g * attachmentColor.g, skeletonColor.b * slotColor.b * attachmentColor.b, alpha);
7179
+ let ctx = this.ctx;
7180
+ ctx.globalAlpha = color.a;
7181
+ if (clipper2.isClipping()) {
7182
+ let vertexCount = vertices.length / 8;
7183
+ let positions = new Float32Array(vertexCount * 2);
7184
+ let uvs = new Float32Array(vertexCount * 2);
7185
+ for (let v = 0; v < vertexCount; v++) {
7186
+ positions[v * 2] = vertices[v * 8];
7187
+ positions[v * 2 + 1] = vertices[v * 8 + 1];
7188
+ uvs[v * 2] = vertices[v * 8 + 6];
7189
+ uvs[v * 2 + 1] = vertices[v * 8 + 7];
7190
+ }
7191
+ clipper2.clipTrianglesUnpacked(positions, triangles, triangles.length, uvs);
7192
+ let clippedVertices = clipper2.clippedVertices;
7193
+ let clippedUVs = clipper2.clippedUVs;
7194
+ let clippedTriangles = clipper2.clippedTriangles;
7195
+ for (var j = 0; j < clippedTriangles.length; j += 3) {
7196
+ let t1 = clippedTriangles[j] * 2,
7197
+ t2 = clippedTriangles[j + 1] * 2,
7198
+ t3 = clippedTriangles[j + 2] * 2;
7199
+ let x0 = clippedVertices[t1],
7200
+ y0 = clippedVertices[t1 + 1],
7201
+ u0 = clippedUVs[t1],
7202
+ v0 = clippedUVs[t1 + 1];
7203
+ let x1 = clippedVertices[t2],
7204
+ y1 = clippedVertices[t2 + 1],
7205
+ u1 = clippedUVs[t2],
7206
+ v1 = clippedUVs[t2 + 1];
7207
+ let x2 = clippedVertices[t3],
7208
+ y2 = clippedVertices[t3 + 1],
7209
+ u2 = clippedUVs[t3],
7210
+ v2 = clippedUVs[t3 + 1];
7211
+ this.drawTriangle(texture, x0, y0, u0, v0, x1, y1, u1, v1, x2, y2, u2, v2);
7212
+ if (this.debugRendering) {
7213
+ ctx.strokeStyle = "green";
7214
+ ctx.beginPath();
7215
+ ctx.moveTo(x0, y0);
7216
+ ctx.lineTo(x1, y1);
7217
+ ctx.lineTo(x2, y2);
7218
+ ctx.lineTo(x0, y0);
7219
+ ctx.stroke();
7220
+ }
7221
+ }
7222
+ } else {
7223
+ for (var j = 0; j < triangles.length; j += 3) {
7224
+ let t1 = triangles[j] * 8,
7225
+ t2 = triangles[j + 1] * 8,
7226
+ t3 = triangles[j + 2] * 8;
7227
+ let x0 = vertices[t1],
7228
+ y0 = vertices[t1 + 1],
7229
+ u0 = vertices[t1 + 6],
7230
+ v0 = vertices[t1 + 7];
7231
+ let x1 = vertices[t2],
7232
+ y1 = vertices[t2 + 1],
7233
+ u1 = vertices[t2 + 6],
7234
+ v1 = vertices[t2 + 7];
7235
+ let x2 = vertices[t3],
7236
+ y2 = vertices[t3 + 1],
7237
+ u2 = vertices[t3 + 6],
7238
+ v2 = vertices[t3 + 7];
7239
+ this.drawTriangle(texture, x0, y0, u0, v0, x1, y1, u1, v1, x2, y2, u2, v2);
7240
+ if (this.debugRendering) {
7241
+ ctx.strokeStyle = "green";
7242
+ ctx.beginPath();
7243
+ ctx.moveTo(x0, y0);
7244
+ ctx.lineTo(x1, y1);
7245
+ ctx.lineTo(x2, y2);
7246
+ ctx.lineTo(x0, y0);
7247
+ ctx.stroke();
7248
+ }
7249
+ }
7250
+ }
7251
+ }
7252
+ clipper2.clipEndWithSlot(slot);
7253
+ }
7254
+ clipper2.clipEnd();
7255
+ this.ctx.globalAlpha = 1;
7256
+ }
7257
+ drawTriangle(img, x0, y0, u0, v0, x1, y1, u1, v1, x2, y2, u2, v2) {
7258
+ let ctx = this.ctx;
7259
+ u0 *= img.width;
7260
+ v0 *= img.height;
7261
+ u1 *= img.width;
7262
+ v1 *= img.height;
7263
+ u2 *= img.width;
7264
+ v2 *= img.height;
7265
+ ctx.beginPath();
7266
+ ctx.moveTo(x0, y0);
7267
+ ctx.lineTo(x1, y1);
7268
+ ctx.lineTo(x2, y2);
7269
+ ctx.closePath();
7270
+ x1 -= x0;
7271
+ y1 -= y0;
7272
+ x2 -= x0;
7273
+ y2 -= y0;
7274
+ u1 -= u0;
7275
+ v1 -= v0;
7276
+ u2 -= u0;
7277
+ v2 -= v0;
7278
+ var det = 1 / (u1 * v2 - u2 * v1),
7279
+ a = (v2 * x1 - v1 * x2) * det,
7280
+ b = (v2 * y1 - v1 * y2) * det,
7281
+ c = (u1 * x2 - u2 * x1) * det,
7282
+ d = (u1 * y2 - u2 * y1) * det,
7283
+ e = x0 - a * u0 - c * v0,
7284
+ f = y0 - b * u0 - d * v0;
7285
+ ctx.save();
7286
+ ctx.transform(a, b, c, d, e, f);
7287
+ ctx.clip();
7288
+ ctx.drawImage(img, 0, 0);
7289
+ ctx.restore();
7290
+ }
7291
+ computeRegionVertices(slot, region, pma) {
7292
+ let skeleton = slot.bone.skeleton;
7293
+ let skeletonColor = skeleton.color;
7294
+ let slotColor = slot.color;
7295
+ let regionColor = region.color;
7296
+ let alpha = skeletonColor.a * slotColor.a * regionColor.a;
7297
+ let multiplier = pma ? alpha : 1;
7298
+ let color = this.tempColor;
7299
+ color.set(skeletonColor.r * slotColor.r * regionColor.r * multiplier, skeletonColor.g * slotColor.g * regionColor.g * multiplier, skeletonColor.b * slotColor.b * regionColor.b * multiplier, alpha);
7300
+ region.computeWorldVertices(slot.bone, this.vertices, 0, _SkeletonRenderer.VERTEX_SIZE);
7301
+ let vertices = this.vertices;
7302
+ let uvs = region.uvs;
7303
+ vertices[RegionAttachment.C1R] = color.r;
7304
+ vertices[RegionAttachment.C1G] = color.g;
7305
+ vertices[RegionAttachment.C1B] = color.b;
7306
+ vertices[RegionAttachment.C1A] = color.a;
7307
+ vertices[RegionAttachment.U1] = uvs[0];
7308
+ vertices[RegionAttachment.V1] = uvs[1];
7309
+ vertices[RegionAttachment.C2R] = color.r;
7310
+ vertices[RegionAttachment.C2G] = color.g;
7311
+ vertices[RegionAttachment.C2B] = color.b;
7312
+ vertices[RegionAttachment.C2A] = color.a;
7313
+ vertices[RegionAttachment.U2] = uvs[2];
7314
+ vertices[RegionAttachment.V2] = uvs[3];
7315
+ vertices[RegionAttachment.C3R] = color.r;
7316
+ vertices[RegionAttachment.C3G] = color.g;
7317
+ vertices[RegionAttachment.C3B] = color.b;
7318
+ vertices[RegionAttachment.C3A] = color.a;
7319
+ vertices[RegionAttachment.U3] = uvs[4];
7320
+ vertices[RegionAttachment.V3] = uvs[5];
7321
+ vertices[RegionAttachment.C4R] = color.r;
7322
+ vertices[RegionAttachment.C4G] = color.g;
7323
+ vertices[RegionAttachment.C4B] = color.b;
7324
+ vertices[RegionAttachment.C4A] = color.a;
7325
+ vertices[RegionAttachment.U4] = uvs[6];
7326
+ vertices[RegionAttachment.V4] = uvs[7];
7327
+ return vertices;
7328
+ }
7329
+ computeMeshVertices(slot, mesh, pma) {
7330
+ let skeleton = slot.bone.skeleton;
7331
+ let skeletonColor = skeleton.color;
7332
+ let slotColor = slot.color;
7333
+ let regionColor = mesh.color;
7334
+ let alpha = skeletonColor.a * slotColor.a * regionColor.a;
7335
+ let multiplier = pma ? alpha : 1;
7336
+ let color = this.tempColor;
7337
+ color.set(skeletonColor.r * slotColor.r * regionColor.r * multiplier, skeletonColor.g * slotColor.g * regionColor.g * multiplier, skeletonColor.b * slotColor.b * regionColor.b * multiplier, alpha);
7338
+ let numVertices = mesh.worldVerticesLength / 2;
7339
+ if (this.vertices.length < mesh.worldVerticesLength) {
7340
+ this.vertices = Utils.newFloatArray(mesh.worldVerticesLength);
7341
+ }
7342
+ let vertices = this.vertices;
7343
+ mesh.computeWorldVertices(slot, 0, mesh.worldVerticesLength, vertices, 0, _SkeletonRenderer.VERTEX_SIZE);
7344
+ let uvs = mesh.uvs;
7345
+ for (let i = 0, n = numVertices, u = 0, v = 2; i < n; i++) {
7346
+ vertices[v++] = color.r;
7347
+ vertices[v++] = color.g;
7348
+ vertices[v++] = color.b;
7349
+ vertices[v++] = color.a;
7350
+ vertices[v++] = uvs[u++];
7351
+ vertices[v++] = uvs[u++];
7352
+ v += 2;
7353
+ }
7354
+ return vertices;
7355
+ }
7356
+ };
7357
+ __publicField(_SkeletonRenderer, "QUAD_TRIANGLES", [0, 1, 2, 2, 3, 0]);
7358
+ __publicField(_SkeletonRenderer, "VERTEX_SIZE", 2 + 2 + 4);
7359
+ let SkeletonRenderer = _SkeletonRenderer;
7073
7360
  class BatchableSpineSlot {
7074
7361
  constructor() {
7075
- __publicField(this, 'indexOffset', 0);
7076
- __publicField(this, 'attributeOffset', 0);
7077
- __publicField(this, 'indexSize');
7078
- __publicField(this, 'attributeSize');
7079
- __publicField(this, 'batcherName', 'darkTint');
7080
- __publicField(this, 'topology', 'triangle-list');
7081
- __publicField(this, 'packAsQuad', false);
7082
- __publicField(this, 'renderable');
7083
- __publicField(this, 'positions');
7084
- __publicField(this, 'indices');
7085
- __publicField(this, 'uvs');
7086
- __publicField(this, 'roundPixels');
7087
- __publicField(this, 'data');
7088
- __publicField(this, 'blendMode');
7089
- __publicField(this, 'darkTint');
7090
- __publicField(this, 'texture');
7091
- __publicField(this, 'transform');
7092
- __publicField(this, '_textureId');
7093
- __publicField(this, '_attributeStart');
7094
- __publicField(this, '_indexStart');
7095
- __publicField(this, '_batcher');
7096
- __publicField(this, '_batch');
7362
+ __publicField(this, "indexOffset", 0);
7363
+ __publicField(this, "attributeOffset", 0);
7364
+ __publicField(this, "indexSize");
7365
+ __publicField(this, "attributeSize");
7366
+ __publicField(this, "batcherName", "darkTint");
7367
+ __publicField(this, "topology", "triangle-list");
7368
+ __publicField(this, "packAsQuad", false);
7369
+ __publicField(this, "renderable");
7370
+ __publicField(this, "positions");
7371
+ __publicField(this, "indices");
7372
+ __publicField(this, "uvs");
7373
+ __publicField(this, "roundPixels");
7374
+ __publicField(this, "data");
7375
+ __publicField(this, "blendMode");
7376
+ __publicField(this, "darkTint");
7377
+ __publicField(this, "texture");
7378
+ __publicField(this, "transform");
7379
+ __publicField(this, "_textureId");
7380
+ __publicField(this, "_attributeStart");
7381
+ __publicField(this, "_indexStart");
7382
+ __publicField(this, "_batcher");
7383
+ __publicField(this, "_batch");
7097
7384
  }
7098
7385
  get color() {
7099
7386
  const slotColor = this.data.color;
@@ -7142,23 +7429,27 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7142
7429
  this.texture = data.texture;
7143
7430
  this.roundPixels = roundPixels;
7144
7431
  this.blendMode = blendMode;
7145
- this.batcherName = data.darkTint ? 'darkTint' : 'default';
7432
+ this.batcherName = data.darkTint ? "darkTint" : "default";
7146
7433
  }
7147
7434
  }
7148
7435
  const spineBlendModeMap = {
7149
- 0: 'normal',
7150
- 1: 'add',
7151
- 2: 'multiply',
7152
- 3: 'screen'
7436
+ 0: "normal",
7437
+ 1: "add",
7438
+ 2: "multiply",
7439
+ 3: "screen"
7153
7440
  };
7154
7441
  class SpinePipe {
7155
7442
  constructor(renderer) {
7156
- __publicField(this, 'renderer');
7157
- __publicField(this, 'gpuSpineData', {});
7158
- __publicField(this, '_destroyRenderableBound', this.destroyRenderable.bind(this));
7443
+ __publicField(this, "renderer");
7444
+ __publicField(this, "canvasSkeletonRenderer");
7445
+ __publicField(this, "gpuSpineData", {});
7446
+ __publicField(this, "_destroyRenderableBound", this.destroyRenderable.bind(this));
7159
7447
  this.renderer = renderer;
7160
7448
  }
7161
7449
  validateRenderable(spine) {
7450
+ if (this.renderer.type === pixi_js.RendererType.CANVAS) {
7451
+ return true;
7452
+ }
7162
7453
  spine._validateAndTransformAttachments();
7163
7454
  if (spine.spineAttachmentsDirty) {
7164
7455
  return true;
@@ -7172,8 +7463,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7172
7463
  const cacheData = spine._getCachedData(slot, attachment);
7173
7464
  const batchableSpineSlot = gpuSpine.slotBatches[cacheData.id];
7174
7465
  const texture = cacheData.texture;
7175
- if (texture !== batchableSpineSlot.texture) {
7176
- if (!batchableSpineSlot._batcher.checkAndUpdateTexture(batchableSpineSlot, texture)) {
7466
+ if (texture !== (batchableSpineSlot == null ? void 0 : batchableSpineSlot.texture)) {
7467
+ if (!(batchableSpineSlot == null ? void 0 : batchableSpineSlot._batcher.checkAndUpdateTexture(batchableSpineSlot, texture))) {
7177
7468
  return true;
7178
7469
  }
7179
7470
  }
@@ -7182,30 +7473,60 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7182
7473
  }
7183
7474
  return false;
7184
7475
  }
7476
+ execute(spine) {
7477
+ if (this.renderer.type === pixi_js.RendererType.CANVAS) {
7478
+ const renderer = this.renderer;
7479
+ const groupAlpha = (spine.groupColorAlpha >>> 24 & 255) / 255;
7480
+ const contextSystem = renderer.canvasContext;
7481
+ const context = contextSystem.activeContext;
7482
+ context.save();
7483
+ if (!this.canvasSkeletonRenderer) {
7484
+ this.canvasSkeletonRenderer = new SkeletonRenderer(context);
7485
+ this.canvasSkeletonRenderer.triangleRendering = true;
7486
+ }
7487
+ contextSystem.setContextTransform(spine.groupTransform, (renderer._roundPixels | spine._roundPixels) === 1);
7488
+ const oldAlpha = spine.skeleton.color.a;
7489
+ spine.skeleton.color.a *= groupAlpha;
7490
+ this.canvasSkeletonRenderer.draw(spine.skeleton);
7491
+ spine.skeleton.color.a = oldAlpha;
7492
+ context.restore();
7493
+ }
7494
+ }
7185
7495
  addRenderable(spine, instructionSet) {
7186
7496
  var _a, _b;
7497
+ if (this.renderer.type === pixi_js.RendererType.CANVAS) {
7498
+ this.renderer.renderPipes.batch.break(instructionSet);
7499
+ instructionSet.add(spine);
7500
+ return;
7501
+ }
7187
7502
  const gpuSpine = this._getSpineData(spine);
7188
7503
  const batcher = this.renderer.renderPipes.batch;
7189
7504
  const drawOrder = spine.skeleton.drawOrder;
7190
7505
  const roundPixels = this.renderer._roundPixels | spine._roundPixels;
7191
7506
  spine._validateAndTransformAttachments();
7507
+ spine.spineAttachmentsDirty = false;
7508
+ spine.spineTexturesDirty = false;
7192
7509
  for (let i = 0, n = drawOrder.length; i < n; i++) {
7193
7510
  const slot = drawOrder[i];
7194
7511
  const attachment = slot.getAttachment();
7195
7512
  const blendMode = spineBlendModeMap[slot.data.blendMode];
7513
+ let skipRender = false;
7196
7514
  if (attachment instanceof RegionAttachment || attachment instanceof MeshAttachment) {
7197
7515
  const cacheData = spine._getCachedData(slot, attachment);
7198
7516
  const batchableSpineSlot = (_a = gpuSpine.slotBatches)[_b = cacheData.id] || (_a[_b] = new BatchableSpineSlot());
7199
7517
  batchableSpineSlot.setData(spine, cacheData, blendMode, roundPixels);
7200
- if (!cacheData.skipRender) {
7518
+ skipRender = cacheData.skipRender;
7519
+ if (!skipRender) {
7201
7520
  batcher.addToBatch(batchableSpineSlot, instructionSet);
7202
7521
  }
7203
7522
  }
7204
7523
  const containerAttachment = spine._slotsObject[slot.data.name];
7205
7524
  if (containerAttachment) {
7206
7525
  const container = containerAttachment.container;
7207
- container.includeInBuild = true;
7208
- pixi_js.collectAllRenderables(container, instructionSet, this.renderer);
7526
+ if (!skipRender) {
7527
+ container.includeInBuild = true;
7528
+ container.collectRenderables(instructionSet, this.renderer, null);
7529
+ }
7209
7530
  container.includeInBuild = false;
7210
7531
  }
7211
7532
  }
@@ -7214,6 +7535,8 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7214
7535
  var _a;
7215
7536
  const gpuSpine = this.gpuSpineData[spine.uid];
7216
7537
  spine._validateAndTransformAttachments();
7538
+ spine.spineAttachmentsDirty = false;
7539
+ spine.spineTexturesDirty = false;
7217
7540
  const drawOrder = spine.skeleton.drawOrder;
7218
7541
  for (let i = 0, n = drawOrder.length; i < n; i++) {
7219
7542
  const slot = drawOrder[i];
@@ -7221,19 +7544,20 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7221
7544
  if (attachment instanceof RegionAttachment || attachment instanceof MeshAttachment) {
7222
7545
  const cacheData = spine._getCachedData(slot, attachment);
7223
7546
  if (!cacheData.skipRender) {
7224
- const batchableSpineSlot = gpuSpine.slotBatches[spine._getCachedData(slot, attachment).id];
7225
- (_a = batchableSpineSlot._batcher) == null ? void 0 : _a.updateElement(batchableSpineSlot);
7547
+ const batchableSpineSlot = gpuSpine.slotBatches[cacheData.id];
7548
+ (_a = batchableSpineSlot == null ? void 0 : batchableSpineSlot._batcher) == null ? void 0 : _a.updateElement(batchableSpineSlot);
7226
7549
  }
7227
7550
  }
7228
7551
  }
7229
7552
  }
7230
7553
  destroyRenderable(spine) {
7231
7554
  this.gpuSpineData[spine.uid] = null;
7232
- spine.off('destroyed', this._destroyRenderableBound);
7555
+ spine.off("destroyed", this._destroyRenderableBound);
7233
7556
  }
7234
7557
  destroy() {
7235
7558
  this.gpuSpineData = null;
7236
7559
  this.renderer = null;
7560
+ this.canvasSkeletonRenderer = null;
7237
7561
  }
7238
7562
  _getSpineData(spine) {
7239
7563
  return this.gpuSpineData[spine.uid] || this._initMeshData(spine);
@@ -7242,13 +7566,13 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7242
7566
  this.gpuSpineData[spine.uid] = {
7243
7567
  slotBatches: {}
7244
7568
  };
7245
- spine.on('destroyed', this._destroyRenderableBound);
7569
+ spine.on("destroyed", this._destroyRenderableBound);
7246
7570
  return this.gpuSpineData[spine.uid];
7247
7571
  }
7248
7572
  }
7249
- __publicField(SpinePipe, 'extension', {
7573
+ __publicField(SpinePipe, "extension", {
7250
7574
  type: [pixi_js.ExtensionType.WebGLPipes, pixi_js.ExtensionType.WebGPUPipes, pixi_js.ExtensionType.CanvasPipes],
7251
- name: 'spine'
7575
+ name: "spine"
7252
7576
  });
7253
7577
  pixi_js.extensions.add(SpinePipe);
7254
7578
  const vectorAux = new Vector2();
@@ -7262,28 +7586,28 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7262
7586
  skeletonData: options
7263
7587
  };
7264
7588
  }
7265
- super();
7266
- __publicField(this, 'batched', true);
7267
- __publicField(this, 'buildId', 0);
7268
- __publicField(this, 'renderPipeId', 'spine');
7269
- __publicField(this, '_didSpineUpdate', false);
7270
- __publicField(this, 'beforeUpdateWorldTransforms', () => {});
7271
- __publicField(this, 'afterUpdateWorldTransforms', () => {});
7272
- __publicField(this, 'skeleton');
7273
- __publicField(this, 'state');
7274
- __publicField(this, 'skeletonBounds');
7275
- __publicField(this, 'darkTint', false);
7276
- __publicField(this, '_debug');
7277
- __publicField(this, '_slotsObject', Object.create(null));
7278
- __publicField(this, 'clippingSlotToPixiMasks', Object.create(null));
7279
- __publicField(this, 'spineAttachmentsDirty', true);
7280
- __publicField(this, 'spineTexturesDirty', true);
7281
- __publicField(this, '_lastAttachments', []);
7282
- __publicField(this, '_stateChanged', true);
7283
- __publicField(this, 'attachmentCacheData', []);
7284
- __publicField(this, '_autoUpdate', false);
7285
- __publicField(this, 'hasNeverUpdated', true);
7286
- __publicField(this, 'currentClippingSlot');
7589
+ super({});
7590
+ __publicField(this, "batched", true);
7591
+ __publicField(this, "buildId", 0);
7592
+ __publicField(this, "renderPipeId", "spine");
7593
+ __publicField(this, "_didSpineUpdate", false);
7594
+ __publicField(this, "beforeUpdateWorldTransforms", () => {});
7595
+ __publicField(this, "afterUpdateWorldTransforms", () => {});
7596
+ __publicField(this, "skeleton");
7597
+ __publicField(this, "state");
7598
+ __publicField(this, "skeletonBounds");
7599
+ __publicField(this, "darkTint", false);
7600
+ __publicField(this, "_debug");
7601
+ __publicField(this, "_slotsObject", Object.create(null));
7602
+ __publicField(this, "clippingSlotToPixiMasks", Object.create(null));
7603
+ __publicField(this, "spineAttachmentsDirty", true);
7604
+ __publicField(this, "spineTexturesDirty", true);
7605
+ __publicField(this, "_lastAttachments", []);
7606
+ __publicField(this, "_stateChanged", true);
7607
+ __publicField(this, "attachmentCacheData", []);
7608
+ __publicField(this, "_autoUpdate", false);
7609
+ __publicField(this, "hasNeverUpdated", true);
7610
+ __publicField(this, "currentClippingSlot");
7287
7611
  const skeletonData = options instanceof SkeletonData ? options : options.skeletonData;
7288
7612
  this.skeleton = new Skeleton(skeletonData);
7289
7613
  this.skeleton.flipY = true;
@@ -7297,7 +7621,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7297
7621
  }
7298
7622
  getSlotFromRef(slotRef) {
7299
7623
  let slot;
7300
- if (typeof slotRef === 'number') slot = this.skeleton.slots[slotRef];else if (typeof slotRef === 'string') slot = this.skeleton.findSlot(slotRef);else slot = slotRef;
7624
+ if (typeof slotRef === "number") slot = this.skeleton.slots[slotRef];else if (typeof slotRef === "string") slot = this.skeleton.findSlot(slotRef);else slot = slotRef;
7301
7625
  if (!slot) throw new Error(`No slot found with the given slot reference: ${slotRef}`);
7302
7626
  return slot;
7303
7627
  }
@@ -7338,7 +7662,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7338
7662
  }
7339
7663
  setBonePosition(bone, position) {
7340
7664
  const boneAux = bone;
7341
- if (typeof bone === 'string') {
7665
+ if (typeof bone === "string") {
7342
7666
  bone = this.skeleton.findBone(bone);
7343
7667
  }
7344
7668
  if (!bone) throw Error(`Cant set bone position, bone ${String(boneAux)} not found`);
@@ -7354,7 +7678,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7354
7678
  }
7355
7679
  getBonePosition(bone, outPos) {
7356
7680
  const boneAux = bone;
7357
- if (typeof bone === 'string') {
7681
+ if (typeof bone === "string") {
7358
7682
  bone = this.skeleton.findBone(bone);
7359
7683
  }
7360
7684
  if (!bone) {
@@ -7763,33 +8087,33 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7763
8087
  }
7764
8088
  class SpineDebugRenderer {
7765
8089
  constructor() {
7766
- __publicField(this, 'registeredSpines', new Map());
7767
- __publicField(this, 'drawMeshHull', true);
7768
- __publicField(this, 'drawMeshTriangles', true);
7769
- __publicField(this, 'drawBones', true);
7770
- __publicField(this, 'drawPaths', true);
7771
- __publicField(this, 'drawBoundingBoxes', true);
7772
- __publicField(this, 'drawClipping', true);
7773
- __publicField(this, 'drawRegionAttachments', true);
7774
- __publicField(this, 'drawEvents', true);
7775
- __publicField(this, 'lineWidth', 1);
7776
- __publicField(this, 'regionAttachmentsColor', 30975);
7777
- __publicField(this, 'meshHullColor', 30975);
7778
- __publicField(this, 'meshTrianglesColor', 16763904);
7779
- __publicField(this, 'clippingPolygonColor', 16711935);
7780
- __publicField(this, 'boundingBoxesRectColor', 65280);
7781
- __publicField(this, 'boundingBoxesPolygonColor', 65280);
7782
- __publicField(this, 'boundingBoxesCircleColor', 65280);
7783
- __publicField(this, 'pathsCurveColor', 16711680);
7784
- __publicField(this, 'pathsLineColor', 16711935);
7785
- __publicField(this, 'skeletonXYColor', 16711680);
7786
- __publicField(this, 'bonesColor', 61132);
7787
- __publicField(this, 'eventFontSize', 24);
7788
- __publicField(this, 'eventFontColor', 0);
8090
+ __publicField(this, "registeredSpines", new Map());
8091
+ __publicField(this, "drawMeshHull", true);
8092
+ __publicField(this, "drawMeshTriangles", true);
8093
+ __publicField(this, "drawBones", true);
8094
+ __publicField(this, "drawPaths", true);
8095
+ __publicField(this, "drawBoundingBoxes", true);
8096
+ __publicField(this, "drawClipping", true);
8097
+ __publicField(this, "drawRegionAttachments", true);
8098
+ __publicField(this, "drawEvents", true);
8099
+ __publicField(this, "lineWidth", 1);
8100
+ __publicField(this, "regionAttachmentsColor", 30975);
8101
+ __publicField(this, "meshHullColor", 30975);
8102
+ __publicField(this, "meshTrianglesColor", 16763904);
8103
+ __publicField(this, "clippingPolygonColor", 16711935);
8104
+ __publicField(this, "boundingBoxesRectColor", 65280);
8105
+ __publicField(this, "boundingBoxesPolygonColor", 65280);
8106
+ __publicField(this, "boundingBoxesCircleColor", 65280);
8107
+ __publicField(this, "pathsCurveColor", 16711680);
8108
+ __publicField(this, "pathsLineColor", 16711935);
8109
+ __publicField(this, "skeletonXYColor", 16711680);
8110
+ __publicField(this, "bonesColor", 61132);
8111
+ __publicField(this, "eventFontSize", 24);
8112
+ __publicField(this, "eventFontColor", 0);
7789
8113
  }
7790
8114
  registerSpine(spine) {
7791
8115
  if (this.registeredSpines.has(spine)) {
7792
- console.warn('SpineDebugRenderer.registerSpine() - this spine is already registered!', spine);
8116
+ console.warn("SpineDebugRenderer.registerSpine() - this spine is already registered!", spine);
7793
8117
  return;
7794
8118
  }
7795
8119
  const debugDisplayObjects = {
@@ -7815,7 +8139,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7815
8139
  style: {
7816
8140
  fontSize: this.eventFontSize / scale,
7817
8141
  fill: this.eventFontColor,
7818
- fontFamily: 'monospace'
8142
+ fontFamily: "monospace"
7819
8143
  }
7820
8144
  });
7821
8145
  text.scale.x = Math.sign(spine.scale.x);
@@ -7844,7 +8168,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7844
8168
  debugDisplayObjects.parentDebugContainer.addChild(debugDisplayObjects.eventText);
7845
8169
  debugDisplayObjects.parentDebugContainer.zIndex = 9999999;
7846
8170
  debugDisplayObjects.parentDebugContainer.accessibleChildren = false;
7847
- debugDisplayObjects.parentDebugContainer.eventMode = 'none';
8171
+ debugDisplayObjects.parentDebugContainer.eventMode = "none";
7848
8172
  debugDisplayObjects.parentDebugContainer.interactiveChildren = false;
7849
8173
  spine.addChild(debugDisplayObjects.parentDebugContainer);
7850
8174
  spine.state.addListener(debugDisplayObjects.eventCallback);
@@ -7919,7 +8243,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
7919
8243
  const starY = skeletonY + bone.worldY;
7920
8244
  const endX = skeletonX + boneLen * bone.a + bone.worldX;
7921
8245
  const endY = skeletonY + boneLen * bone.b + bone.worldY;
7922
- if (bone.data.name === 'root' || bone.data.parent === null) {
8246
+ if (bone.data.name === "root" || bone.data.parent === null) {
7923
8247
  continue;
7924
8248
  }
7925
8249
  const w = Math.abs(starX - endX);
@@ -8073,7 +8397,7 @@ var _EVA_IIFE_spine36 = function (exports, eva_js, pluginRenderer, pixi_js) {
8073
8397
  const polygons = bounds.polygons;
8074
8398
  const drawPolygon = (polygonVertices, _offset, count) => {
8075
8399
  if (count < 3) {
8076
- throw new Error('Polygon must contain at least 3 vertices');
8400
+ throw new Error("Polygon must contain at least 3 vertices");
8077
8401
  }
8078
8402
  const paths = [];
8079
8403
  const dotSize = lineWidth * 2;