@galacean/engine-spine 4.2.5 → 4.2.7

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.
package/dist/module.js CHANGED
@@ -39,97 +39,6 @@ function __decorate(decorators, target, key, desc) {
39
39
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
40
  return c > 3 && r && Object.defineProperty(target, key, r), r;
41
41
  }
42
- function __generator(thisArg, body) {
43
- var _ = {
44
- label: 0,
45
- sent: function sent() {
46
- if (t[0] & 1) throw t[1];
47
- return t[1];
48
- },
49
- trys: [],
50
- ops: []
51
- }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
53
- return this;
54
- }), g;
55
- function verb(n) {
56
- return function(v) {
57
- return step([
58
- n,
59
- v
60
- ]);
61
- };
62
- }
63
- function step(op) {
64
- if (f) throw new TypeError("Generator is already executing.");
65
- while(g && (g = 0, op[0] && (_ = 0)), _)try {
66
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
67
- if (y = 0, t) op = [
68
- op[0] & 2,
69
- t.value
70
- ];
71
- switch(op[0]){
72
- case 0:
73
- case 1:
74
- t = op;
75
- break;
76
- case 4:
77
- _.label++;
78
- return {
79
- value: op[1],
80
- done: false
81
- };
82
- case 5:
83
- _.label++;
84
- y = op[1];
85
- op = [
86
- 0
87
- ];
88
- continue;
89
- case 7:
90
- op = _.ops.pop();
91
- _.trys.pop();
92
- continue;
93
- default:
94
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
95
- _ = 0;
96
- continue;
97
- }
98
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
99
- _.label = op[1];
100
- break;
101
- }
102
- if (op[0] === 6 && _.label < t[1]) {
103
- _.label = t[1];
104
- t = op;
105
- break;
106
- }
107
- if (t && _.label < t[2]) {
108
- _.label = t[2];
109
- _.ops.push(op);
110
- break;
111
- }
112
- if (t[2]) _.ops.pop();
113
- _.trys.pop();
114
- continue;
115
- }
116
- op = body.call(thisArg, _);
117
- } catch (e) {
118
- op = [
119
- 6,
120
- e
121
- ];
122
- y = 0;
123
- } finally{
124
- f = t = 0;
125
- }
126
- if (op[0] & 5) throw op[1];
127
- return {
128
- value: op[0] ? op[1] : void 0,
129
- done: true
130
- };
131
- }
132
- }
133
42
  typeof SuppressedError === "function" ? SuppressedError : function _SuppressedError(error, suppressed, message) {
134
43
  var e = new Error(message);
135
44
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
@@ -289,9 +198,8 @@ var Color = /*#__PURE__*/ function() {
289
198
  color.g = ((value & 0x0000ff00) >>> 8) / 255;
290
199
  color.b = (value & 0x000000ff) / 255;
291
200
  };
292
- Color.fromString = function fromString(hex, color) {
293
- if (color === void 0) color = new Color();
294
- return color.setFromString(hex);
201
+ Color.fromString = function fromString(hex) {
202
+ return new Color().setFromString(hex);
295
203
  };
296
204
  return Color;
297
205
  }();
@@ -2915,16 +2823,18 @@ function _create_class(Constructor, protoProps, staticProps) {
2915
2823
  var finished = this.updateMixingFrom(from, delta);
2916
2824
  from.animationLast = from.nextAnimationLast;
2917
2825
  from.trackLast = from.nextTrackLast;
2918
- // The from entry was applied at least once and the mix is complete.
2919
- if (to.nextTrackLast != -1 && to.mixTime >= to.mixDuration) {
2920
- // Mixing is complete for all entries before the from entry or the mix is instantaneous.
2921
- if (from.totalAlpha == 0 || to.mixDuration == 0) {
2922
- to.mixingFrom = from.mixingFrom;
2923
- if (from.mixingFrom != null) from.mixingFrom.mixingTo = to;
2924
- to.interruptAlpha = from.interruptAlpha;
2925
- this.queue.end(from);
2826
+ if (to.nextTrackLast != -1) {
2827
+ var discard = to.mixTime == 0 && from.mixTime == 0; // Discard the from entry when neither have advanced yet.
2828
+ if (to.mixTime >= to.mixDuration || discard) {
2829
+ // Require totalAlpha == 0 to ensure mixing is complete or the transition is a single frame or discarded.
2830
+ if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
2831
+ to.mixingFrom = from.mixingFrom;
2832
+ if (from.mixingFrom != null) from.mixingFrom.mixingTo = to;
2833
+ to.interruptAlpha = from.interruptAlpha;
2834
+ this.queue.end(from);
2835
+ }
2836
+ return finished;
2926
2837
  }
2927
- return finished;
2928
2838
  }
2929
2839
  from.trackTime += delta * from.timeScale;
2930
2840
  to.mixTime += delta;
@@ -3289,11 +3199,10 @@ function _create_class(Constructor, protoProps, staticProps) {
3289
3199
  if (!last) {
3290
3200
  this.setCurrent(trackIndex, entry, true);
3291
3201
  this.queue.drain();
3292
- if (delay < 0) delay = 0;
3293
3202
  } else {
3294
3203
  last.next = entry;
3295
3204
  entry.previous = last;
3296
- if (delay <= 0) delay = Math.max(delay + last.getTrackComplete() - entry.mixDuration, 0);
3205
+ if (delay <= 0) delay += last.getTrackComplete() - entry.mixDuration;
3297
3206
  }
3298
3207
  entry.delay = delay;
3299
3208
  return entry;
@@ -3332,7 +3241,7 @@ function _create_class(Constructor, protoProps, staticProps) {
3332
3241
  if (mixDuration === void 0) mixDuration = 0;
3333
3242
  if (delay === void 0) delay = 0;
3334
3243
  var entry = this.addAnimationWith(trackIndex, AnimationState.emptyAnimation(), false, delay);
3335
- if (delay <= 0) entry.delay = Math.max(entry.delay + entry.mixDuration - mixDuration, 0);
3244
+ if (delay <= 0) entry.delay += entry.mixDuration - mixDuration;
3336
3245
  entry.mixDuration = mixDuration;
3337
3246
  entry.trackEnd = mixDuration;
3338
3247
  return entry;
@@ -3586,10 +3495,7 @@ AnimationState._emptyAnimation = new Animation("<empty>", [], 0);
3586
3495
  var _proto = TrackEntry.prototype;
3587
3496
  _proto.setMixDurationWithDelay = function setMixDurationWithDelay(mixDuration, delay) {
3588
3497
  this._mixDuration = mixDuration;
3589
- if (delay <= 0) {
3590
- if (this.previous != null) delay = Math.max(delay + this.previous.getTrackComplete() - mixDuration, 0);
3591
- else delay = 0;
3592
- }
3498
+ if (this.previous != null && delay <= 0) delay += this.previous.getTrackComplete() - mixDuration;
3593
3499
  this.delay = delay;
3594
3500
  };
3595
3501
  _proto.reset = function reset() {
@@ -3812,17 +3718,17 @@ var CURRENT = 2;
3812
3718
 
3813
3719
  /******************************************************************************
3814
3720
  * Spine Runtimes License Agreement
3815
- * Last updated April 5, 2025. Replaces all prior versions.
3721
+ * Last updated July 28, 2023. Replaces all prior versions.
3816
3722
  *
3817
- * Copyright (c) 2013-2025, Esoteric Software LLC
3723
+ * Copyright (c) 2013-2023, Esoteric Software LLC
3818
3724
  *
3819
3725
  * Integration of the Spine Runtimes into software or otherwise creating
3820
3726
  * derivative works of the Spine Runtimes is permitted under the terms and
3821
3727
  * conditions of Section 2 of the Spine Editor License Agreement:
3822
3728
  * http://esotericsoftware.com/spine-editor-license
3823
3729
  *
3824
- * Otherwise, it is permitted to integrate the Spine Runtimes into software
3825
- * or otherwise create derivative works of the Spine Runtimes (collectively,
3730
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
3731
+ * otherwise create derivative works of the Spine Runtimes (collectively,
3826
3732
  * "Products"), provided that each user of the Products must obtain their own
3827
3733
  * Spine Editor license and redistribution of the Products in any form must
3828
3734
  * include this license and copyright notice.
@@ -3835,8 +3741,8 @@ var CURRENT = 2;
3835
3741
  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
3836
3742
  * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
3837
3743
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3838
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3839
- * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3744
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
3745
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3840
3746
  *****************************************************************************/ /** Stores mix (crossfade) durations to be applied when {@link AnimationState} animations are changed. */ var AnimationStateData = /*#__PURE__*/ function() {
3841
3747
  function AnimationStateData(skeletonData) {
3842
3748
  this.animationToMixTime = {};
@@ -4288,7 +4194,7 @@ var TextureAtlasRegion = /*#__PURE__*/ function(TextureRegion) {
4288
4194
  this.copyTo(copy);
4289
4195
  copy.regionUVs = new Array(this.regionUVs.length);
4290
4196
  Utils.arrayCopy(this.regionUVs, 0, copy.regionUVs, 0, this.regionUVs.length);
4291
- copy.uvs = _instanceof1(this.uvs, Float32Array) ? Utils.newFloatArray(this.uvs.length) : new Array(this.uvs.length);
4197
+ copy.uvs = new Array(this.uvs.length);
4292
4198
  Utils.arrayCopy(this.uvs, 0, copy.uvs, 0, this.uvs.length);
4293
4199
  copy.triangles = new Array(this.triangles.length);
4294
4200
  Utils.arrayCopy(this.triangles, 0, copy.triangles, 0, this.triangles.length);
@@ -4952,17 +4858,17 @@ RegionAttachment.V4 = 31;
4952
4858
 
4953
4859
  /******************************************************************************
4954
4860
  * Spine Runtimes License Agreement
4955
- * Last updated April 5, 2025. Replaces all prior versions.
4861
+ * Last updated July 28, 2023. Replaces all prior versions.
4956
4862
  *
4957
- * Copyright (c) 2013-2025, Esoteric Software LLC
4863
+ * Copyright (c) 2013-2023, Esoteric Software LLC
4958
4864
  *
4959
4865
  * Integration of the Spine Runtimes into software or otherwise creating
4960
4866
  * derivative works of the Spine Runtimes is permitted under the terms and
4961
4867
  * conditions of Section 2 of the Spine Editor License Agreement:
4962
4868
  * http://esotericsoftware.com/spine-editor-license
4963
4869
  *
4964
- * Otherwise, it is permitted to integrate the Spine Runtimes into software
4965
- * or otherwise create derivative works of the Spine Runtimes (collectively,
4870
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
4871
+ * otherwise create derivative works of the Spine Runtimes (collectively,
4966
4872
  * "Products"), provided that each user of the Products must obtain their own
4967
4873
  * Spine Editor license and redistribution of the Products in any form must
4968
4874
  * include this license and copyright notice.
@@ -4975,8 +4881,8 @@ RegionAttachment.V4 = 31;
4975
4881
  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
4976
4882
  * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
4977
4883
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4978
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
4979
- * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4884
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
4885
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4980
4886
  *****************************************************************************/ /** The base class for all constraint datas. */ var ConstraintData = function ConstraintData(name, order, skinRequired) {
4981
4887
  this.name = name;
4982
4888
  this.order = order;
@@ -4984,46 +4890,18 @@ RegionAttachment.V4 = 31;
4984
4890
  }
4985
4891
  ;
4986
4892
 
4987
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
4988
- try {
4989
- var info = gen[key](arg);
4990
- var value = info.value;
4991
- } catch (error) {
4992
- reject(error);
4993
- return;
4994
- }
4995
- if (info.done) resolve(value);
4996
- else Promise.resolve(value).then(_next, _throw);
4997
- }
4998
- function _async_to_generator(fn) {
4999
- return function() {
5000
- var self = this, args = arguments;
5001
- return new Promise(function(resolve, reject) {
5002
- var gen = fn.apply(self, args);
5003
- function _next(value) {
5004
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
5005
- }
5006
- function _throw(err) {
5007
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
5008
- }
5009
- _next(undefined);
5010
- });
5011
- };
5012
- }
5013
-
5014
4893
  var AssetManagerBase = /*#__PURE__*/ function() {
5015
- function AssetManagerBase(textureLoader, pathPrefix, downloader, cache) {
4894
+ function AssetManagerBase(textureLoader, pathPrefix, downloader) {
5016
4895
  if (pathPrefix === void 0) pathPrefix = "";
5017
4896
  if (downloader === void 0) downloader = new Downloader();
5018
- if (cache === void 0) cache = new AssetCache();
5019
4897
  this.pathPrefix = "";
4898
+ this.assets = {};
5020
4899
  this.errors = {};
5021
4900
  this.toLoad = 0;
5022
4901
  this.loaded = 0;
5023
4902
  this.textureLoader = textureLoader;
5024
4903
  this.pathPrefix = pathPrefix;
5025
4904
  this.downloader = downloader;
5026
- this.cache = cache;
5027
4905
  }
5028
4906
  var _proto = AssetManagerBase.prototype;
5029
4907
  _proto.start = function start(path) {
@@ -5033,8 +4911,7 @@ var AssetManagerBase = /*#__PURE__*/ function() {
5033
4911
  _proto.success = function success(callback, path, asset) {
5034
4912
  this.toLoad--;
5035
4913
  this.loaded++;
5036
- this.cache.assets[path] = asset;
5037
- this.cache.assetsRefCount[path] = (this.cache.assetsRefCount[path] || 0) + 1;
4914
+ this.assets[path] = asset;
5038
4915
  if (callback) callback(path, asset);
5039
4916
  };
5040
4917
  _proto.error = function error(callback, path, message) {
@@ -5066,16 +4943,10 @@ var AssetManagerBase = /*#__PURE__*/ function() {
5066
4943
  if (success === void 0) success = function() {};
5067
4944
  if (error === void 0) error = function() {};
5068
4945
  path = this.start(path);
5069
- if (this.reuseAssets(path, success, error)) return;
5070
- this.cache.assetsLoaded[path] = new Promise(function(resolve, reject) {
5071
- _this.downloader.downloadBinary(path, function(data) {
5072
- _this.success(success, path, data);
5073
- resolve(data);
5074
- }, function(status, responseText) {
5075
- var errorMsg = "Couldn't load binary " + path + ": status " + status + ", " + responseText;
5076
- _this.error(error, path, errorMsg);
5077
- reject(errorMsg);
5078
- });
4946
+ this.downloader.downloadBinary(path, function(data) {
4947
+ _this.success(success, path, data);
4948
+ }, function(status, responseText) {
4949
+ _this.error(error, path, "Couldn't load binary " + path + ": status " + status + ", " + responseText);
5079
4950
  });
5080
4951
  };
5081
4952
  _proto.loadText = function loadText(path, success, error) {
@@ -5094,83 +4965,46 @@ var AssetManagerBase = /*#__PURE__*/ function() {
5094
4965
  if (success === void 0) success = function() {};
5095
4966
  if (error === void 0) error = function() {};
5096
4967
  path = this.start(path);
5097
- if (this.reuseAssets(path, success, error)) return;
5098
- this.cache.assetsLoaded[path] = new Promise(function(resolve, reject) {
5099
- _this.downloader.downloadJson(path, function(data) {
5100
- _this.success(success, path, data);
5101
- resolve(data);
5102
- }, function(status, responseText) {
5103
- var errorMsg = "Couldn't load JSON " + path + ": status " + status + ", " + responseText;
5104
- _this.error(error, path, errorMsg);
5105
- reject(errorMsg);
5106
- });
4968
+ this.downloader.downloadJson(path, function(data) {
4969
+ _this.success(success, path, data);
4970
+ }, function(status, responseText) {
4971
+ _this.error(error, path, "Couldn't load JSON " + path + ": status " + status + ", " + responseText);
5107
4972
  });
5108
4973
  };
5109
- _proto.reuseAssets = function reuseAssets(path, success, error) {
5110
- var _this = this;
5111
- if (success === void 0) success = function() {};
5112
- if (error === void 0) error = function() {};
5113
- var loadedStatus = this.cache.assetsLoaded[path];
5114
- var alreadyExistsOrLoading = loadedStatus !== undefined;
5115
- if (alreadyExistsOrLoading) {
5116
- this.cache.assetsLoaded[path] = loadedStatus.then(function(data) {
5117
- // necessary when user preloads an image into the cache.
5118
- // texture loader is not avaiable in the cache, so we transform in GLTexture at first use
5119
- data = _instanceof1(data, Image) || _instanceof1(data, ImageBitmap) ? _this.textureLoader(data) : data;
5120
- _this.success(success, path, data);
5121
- return data;
5122
- }).catch(function(errorMsg) {
5123
- return _this.error(error, path, errorMsg);
5124
- });
5125
- }
5126
- return alreadyExistsOrLoading;
5127
- };
5128
4974
  _proto.loadTexture = function loadTexture(path, success, error) {
5129
4975
  var _this = this;
5130
4976
  if (success === void 0) success = function() {};
5131
4977
  if (error === void 0) error = function() {};
5132
4978
  path = this.start(path);
5133
- if (this.reuseAssets(path, success, error)) return;
5134
- this.cache.assetsLoaded[path] = new Promise(function(resolve, reject) {
5135
- var isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document);
5136
- var isWebWorker = !isBrowser; // && typeof importScripts !== 'undefined';
5137
- if (isWebWorker) {
5138
- fetch(path, {
5139
- mode: "cors"
5140
- }).then(function(response) {
5141
- if (response.ok) return response.blob();
5142
- var errorMsg = "Couldn't load image: " + path;
5143
- _this.error(error, path, "Couldn't load image: " + path);
5144
- reject(errorMsg);
5145
- }).then(function(blob) {
5146
- return blob ? createImageBitmap(blob, {
5147
- premultiplyAlpha: "none",
5148
- colorSpaceConversion: "none"
5149
- }) : null;
5150
- }).then(function(bitmap) {
5151
- if (bitmap) {
5152
- var texture = _this.textureLoader(bitmap);
5153
- _this.success(success, path, texture);
5154
- resolve(texture);
5155
- }
5156
- });
5157
- } else {
5158
- var image = new Image();
5159
- image.crossOrigin = "anonymous";
5160
- image.onload = function() {
5161
- var texture = _this.textureLoader(image);
5162
- _this.success(success, path, texture);
5163
- resolve(texture);
5164
- };
5165
- image.onerror = function() {
5166
- var errorMsg = "Couldn't load image: " + path;
5167
- _this.error(error, path, errorMsg);
5168
- reject(errorMsg);
5169
- };
5170
- if (_this.downloader.rawDataUris[path]) path = _this.downloader.rawDataUris[path];
5171
- image.src = path;
5172
- }
5173
- });
4979
+ var isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document);
4980
+ var isWebWorker = !isBrowser; // && typeof importScripts !== 'undefined';
4981
+ if (isWebWorker) {
4982
+ fetch(path, {
4983
+ mode: "cors"
4984
+ }).then(function(response) {
4985
+ if (response.ok) return response.blob();
4986
+ _this.error(error, path, "Couldn't load image: " + path);
4987
+ return null;
4988
+ }).then(function(blob) {
4989
+ return blob ? createImageBitmap(blob, {
4990
+ premultiplyAlpha: "none",
4991
+ colorSpaceConversion: "none"
4992
+ }) : null;
4993
+ }).then(function(bitmap) {
4994
+ if (bitmap) _this.success(success, path, _this.textureLoader(bitmap));
4995
+ });
4996
+ } else {
4997
+ var image = new Image();
4998
+ image.crossOrigin = "anonymous";
4999
+ image.onload = function() {
5000
+ _this.success(success, path, _this.textureLoader(image));
5001
+ };
5002
+ image.onerror = function() {
5003
+ _this.error(error, path, "Couldn't load image: " + path);
5004
+ };
5005
+ if (this.downloader.rawDataUris[path]) path = this.downloader.rawDataUris[path];
5006
+ image.src = path;
5007
+ }
5174
5008
  };
5175
5009
  _proto.loadTextureAtlas = function loadTextureAtlas(path, success, error, fileAlias) {
5176
5010
  var _this = this;
@@ -5179,189 +5013,53 @@ var AssetManagerBase = /*#__PURE__*/ function() {
5179
5013
  var index = path.lastIndexOf("/");
5180
5014
  var parent = index >= 0 ? path.substring(0, index + 1) : "";
5181
5015
  path = this.start(path);
5182
- if (this.reuseAssets(path, success, error)) return;
5183
- this.cache.assetsLoaded[path] = new Promise(function(resolve, reject) {
5184
- _this.downloader.downloadText(path, function(atlasText) {
5185
- try {
5186
- var _loop = function() {
5187
- var page = _step.value;
5188
- _this.loadTexture(!fileAlias ? parent + page.name : fileAlias[page.name], function(imagePath, texture) {
5189
- if (!abort) {
5190
- page.setTexture(texture);
5191
- if (--toLoad == 0) {
5192
- _this.success(success, path, atlas);
5193
- resolve(atlas);
5194
- }
5195
- }
5196
- }, function(imagePath, message) {
5197
- if (!abort) {
5198
- var errorMsg = "Couldn't load texture " + path + " page image: " + imagePath;
5199
- _this.error(error, path, errorMsg);
5200
- reject(errorMsg);
5201
- }
5202
- abort = true;
5203
- });
5204
- };
5205
- var atlas = new TextureAtlas(atlasText);
5206
- var toLoad = atlas.pages.length, abort = false;
5207
- for(var _iterator = _create_for_of_iterator_helper_loose(atlas.pages), _step; !(_step = _iterator()).done;)_loop();
5208
- } catch (e) {
5209
- var errorMsg = "Couldn't parse texture atlas " + path + ": " + e.message;
5210
- _this.error(error, path, errorMsg);
5211
- reject(errorMsg);
5212
- }
5213
- }, function(status, responseText) {
5214
- var errorMsg = "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText;
5215
- _this.error(error, path, errorMsg);
5216
- reject(errorMsg);
5217
- });
5218
- });
5219
- };
5220
- _proto.loadTextureAtlasButNoTextures = function loadTextureAtlasButNoTextures(path, success, error, fileAlias) {
5221
- var _this = this;
5222
- if (success === void 0) success = function() {};
5223
- if (error === void 0) error = function() {};
5224
- path = this.start(path);
5225
- if (this.reuseAssets(path, success, error)) return;
5226
- this.cache.assetsLoaded[path] = new Promise(function(resolve, reject) {
5227
- _this.downloader.downloadText(path, function(atlasText) {
5228
- try {
5229
- var atlas = new TextureAtlas(atlasText);
5230
- _this.success(success, path, atlas);
5231
- resolve(atlas);
5232
- } catch (e) {
5233
- var errorMsg = "Couldn't parse texture atlas " + path + ": " + e.message;
5234
- _this.error(error, path, errorMsg);
5235
- reject(errorMsg);
5236
- }
5237
- }, function(status, responseText) {
5238
- var errorMsg = "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText;
5239
- _this.error(error, path, errorMsg);
5240
- reject(errorMsg);
5241
- });
5016
+ this.downloader.downloadText(path, function(atlasText) {
5017
+ try {
5018
+ var _loop = function() {
5019
+ var page = _step.value;
5020
+ _this.loadTexture(!fileAlias ? parent + page.name : fileAlias[page.name], function(imagePath, texture) {
5021
+ if (!abort) {
5022
+ page.setTexture(texture);
5023
+ if (--toLoad == 0) _this.success(success, path, atlas);
5024
+ }
5025
+ }, function(imagePath, message) {
5026
+ if (!abort) _this.error(error, path, "Couldn't load texture atlas " + path + " page image: " + imagePath);
5027
+ abort = true;
5028
+ });
5029
+ };
5030
+ var atlas = new TextureAtlas(atlasText);
5031
+ var toLoad = atlas.pages.length, abort = false;
5032
+ for(var _iterator = _create_for_of_iterator_helper_loose(atlas.pages), _step; !(_step = _iterator()).done;)_loop();
5033
+ } catch (e) {
5034
+ _this.error(error, path, "Couldn't parse texture atlas " + path + ": " + e.message);
5035
+ }
5036
+ }, function(status, responseText) {
5037
+ _this.error(error, path, "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText);
5242
5038
  });
5243
5039
  };
5244
- // Promisified versions of load function
5245
- _proto.loadBinaryAsync = function loadBinaryAsync(path) {
5246
- return _async_to_generator(function() {
5247
- var _this;
5248
- return __generator(this, function(_state) {
5249
- _this = this;
5250
- return [
5251
- 2,
5252
- new Promise(function(resolve, reject) {
5253
- _this.loadBinary(path, function(_, binary) {
5254
- return resolve(binary);
5255
- }, function(_, message) {
5256
- return reject(message);
5257
- });
5258
- })
5259
- ];
5260
- });
5261
- }).call(this);
5262
- };
5263
- _proto.loadJsonAsync = function loadJsonAsync(path) {
5264
- return _async_to_generator(function() {
5265
- var _this;
5266
- return __generator(this, function(_state) {
5267
- _this = this;
5268
- return [
5269
- 2,
5270
- new Promise(function(resolve, reject) {
5271
- _this.loadJson(path, function(_, object) {
5272
- return resolve(object);
5273
- }, function(_, message) {
5274
- return reject(message);
5275
- });
5276
- })
5277
- ];
5278
- });
5279
- }).call(this);
5280
- };
5281
- _proto.loadTextureAsync = function loadTextureAsync(path) {
5282
- return _async_to_generator(function() {
5283
- var _this;
5284
- return __generator(this, function(_state) {
5285
- _this = this;
5286
- return [
5287
- 2,
5288
- new Promise(function(resolve, reject) {
5289
- _this.loadTexture(path, function(_, texture) {
5290
- return resolve(texture);
5291
- }, function(_, message) {
5292
- return reject(message);
5293
- });
5294
- })
5295
- ];
5296
- });
5297
- }).call(this);
5298
- };
5299
- _proto.loadTextureAtlasAsync = function loadTextureAtlasAsync(path) {
5300
- return _async_to_generator(function() {
5301
- var _this;
5302
- return __generator(this, function(_state) {
5303
- _this = this;
5304
- return [
5305
- 2,
5306
- new Promise(function(resolve, reject) {
5307
- _this.loadTextureAtlas(path, function(_, atlas) {
5308
- return resolve(atlas);
5309
- }, function(_, message) {
5310
- return reject(message);
5311
- });
5312
- })
5313
- ];
5314
- });
5315
- }).call(this);
5316
- };
5317
- _proto.loadTextureAtlasButNoTexturesAsync = function loadTextureAtlasButNoTexturesAsync(path) {
5318
- return _async_to_generator(function() {
5319
- var _this;
5320
- return __generator(this, function(_state) {
5321
- _this = this;
5322
- return [
5323
- 2,
5324
- new Promise(function(resolve, reject) {
5325
- _this.loadTextureAtlasButNoTextures(path, function(_, atlas) {
5326
- return resolve(atlas);
5327
- }, function(_, message) {
5328
- return reject(message);
5329
- });
5330
- })
5331
- ];
5332
- });
5333
- }).call(this);
5334
- };
5335
- _proto.setCache = function setCache(cache) {
5336
- this.cache = cache;
5337
- };
5338
5040
  _proto.get = function get(path) {
5339
- return this.cache.assets[this.pathPrefix + path];
5041
+ return this.assets[this.pathPrefix + path];
5340
5042
  };
5341
5043
  _proto.require = function require(path) {
5342
5044
  path = this.pathPrefix + path;
5343
- var asset = this.cache.assets[path];
5045
+ var asset = this.assets[path];
5344
5046
  if (asset) return asset;
5345
5047
  var error = this.errors[path];
5346
5048
  throw Error("Asset not found: " + path + (error ? "\n" + error : ""));
5347
5049
  };
5348
5050
  _proto.remove = function remove(path) {
5349
5051
  path = this.pathPrefix + path;
5350
- var asset = this.cache.assets[path];
5052
+ var asset = this.assets[path];
5351
5053
  if (asset.dispose) asset.dispose();
5352
- delete this.cache.assets[path];
5353
- delete this.cache.assetsRefCount[path];
5354
- delete this.cache.assetsLoaded[path];
5054
+ delete this.assets[path];
5355
5055
  return asset;
5356
5056
  };
5357
5057
  _proto.removeAll = function removeAll() {
5358
- for(var path in this.cache.assets){
5359
- var asset = this.cache.assets[path];
5058
+ for(var key in this.assets){
5059
+ var asset = this.assets[key];
5360
5060
  if (asset.dispose) asset.dispose();
5361
5061
  }
5362
- this.cache.assets = {};
5363
- this.cache.assetsLoaded = {};
5364
- this.cache.assetsRefCount = {};
5062
+ this.assets = {};
5365
5063
  };
5366
5064
  _proto.isLoadingComplete = function isLoadingComplete() {
5367
5065
  return this.toLoad == 0;
@@ -5375,12 +5073,6 @@ var AssetManagerBase = /*#__PURE__*/ function() {
5375
5073
  _proto.dispose = function dispose() {
5376
5074
  this.removeAll();
5377
5075
  };
5378
- // dispose asset only if it's not used by others
5379
- _proto.disposeAsset = function disposeAsset(path) {
5380
- if (--this.cache.assetsRefCount[path] === 0) {
5381
- this.remove(path);
5382
- }
5383
- };
5384
5076
  _proto.hasErrors = function hasErrors() {
5385
5077
  return Object.keys(this.errors).length > 0;
5386
5078
  };
@@ -5389,44 +5081,6 @@ var AssetManagerBase = /*#__PURE__*/ function() {
5389
5081
  };
5390
5082
  return AssetManagerBase;
5391
5083
  }();
5392
- var AssetCache = /*#__PURE__*/ function() {
5393
- function AssetCache() {
5394
- this.assets = {};
5395
- this.assetsRefCount = {};
5396
- this.assetsLoaded = {};
5397
- }
5398
- var _proto = AssetCache.prototype;
5399
- _proto.addAsset = function addAsset(path, asset) {
5400
- return _async_to_generator(function() {
5401
- var _;
5402
- return __generator(this, function(_state) {
5403
- switch(_state.label){
5404
- case 0:
5405
- this.assetsLoaded[path] = Promise.resolve(asset);
5406
- _ = this.assets;
5407
- return [
5408
- 4,
5409
- asset
5410
- ];
5411
- case 1:
5412
- _[path] = _state.sent();
5413
- return [
5414
- 2
5415
- ];
5416
- }
5417
- });
5418
- }).call(this);
5419
- };
5420
- AssetCache.getCache = function getCache(id) {
5421
- var cache = AssetCache.AVAILABLE_CACHES.get(id);
5422
- if (cache) return cache;
5423
- var newCache = new AssetCache();
5424
- AssetCache.AVAILABLE_CACHES.set(id, newCache);
5425
- return newCache;
5426
- };
5427
- return AssetCache;
5428
- }();
5429
- AssetCache.AVAILABLE_CACHES = new Map();
5430
5084
  var Downloader = /*#__PURE__*/ function() {
5431
5085
  function Downloader() {
5432
5086
  this.callbacks = {};
@@ -5466,11 +5120,10 @@ var Downloader = /*#__PURE__*/ function() {
5466
5120
  _proto.downloadText = function downloadText(url, success, error) {
5467
5121
  var _this = this;
5468
5122
  if (this.start(url, success, error)) return;
5469
- var rawDataUri = this.rawDataUris[url];
5470
- // we assume if a "." is included in a raw data uri, it is used to rewrite an asset URL
5471
- if (rawDataUri && !rawDataUri.includes(".")) {
5123
+ if (this.rawDataUris[url]) {
5472
5124
  try {
5473
- this.finish(url, 200, this.dataUriToString(rawDataUri));
5125
+ var dataUri = this.rawDataUris[url];
5126
+ this.finish(url, 200, this.dataUriToString(dataUri));
5474
5127
  } catch (e) {
5475
5128
  this.finish(url, 400, JSON.stringify(e));
5476
5129
  }
@@ -5478,7 +5131,7 @@ var Downloader = /*#__PURE__*/ function() {
5478
5131
  }
5479
5132
  var request = new XMLHttpRequest();
5480
5133
  request.overrideMimeType("text/html");
5481
- request.open("GET", rawDataUri ? rawDataUri : url, true);
5134
+ request.open("GET", url, true);
5482
5135
  var done = function() {
5483
5136
  _this.finish(url, request.status, request.responseText);
5484
5137
  };
@@ -5494,18 +5147,17 @@ var Downloader = /*#__PURE__*/ function() {
5494
5147
  _proto.downloadBinary = function downloadBinary(url, success, error) {
5495
5148
  var _this = this;
5496
5149
  if (this.start(url, success, error)) return;
5497
- var rawDataUri = this.rawDataUris[url];
5498
- // we assume if a "." is included in a raw data uri, it is used to rewrite an asset URL
5499
- if (rawDataUri && !rawDataUri.includes(".")) {
5150
+ if (this.rawDataUris[url]) {
5500
5151
  try {
5501
- this.finish(url, 200, this.dataUriToUint8Array(rawDataUri));
5152
+ var dataUri = this.rawDataUris[url];
5153
+ this.finish(url, 200, this.dataUriToUint8Array(dataUri));
5502
5154
  } catch (e) {
5503
5155
  this.finish(url, 400, JSON.stringify(e));
5504
5156
  }
5505
5157
  return;
5506
5158
  }
5507
5159
  var request = new XMLHttpRequest();
5508
- request.open("GET", rawDataUri ? rawDataUri : url, true);
5160
+ request.open("GET", url, true);
5509
5161
  request.responseType = "arraybuffer";
5510
5162
  var onerror = function() {
5511
5163
  _this.finish(url, request.status, request.response);
@@ -5543,17 +5195,17 @@ var Downloader = /*#__PURE__*/ function() {
5543
5195
 
5544
5196
  /******************************************************************************
5545
5197
  * Spine Runtimes License Agreement
5546
- * Last updated April 5, 2025. Replaces all prior versions.
5198
+ * Last updated July 28, 2023. Replaces all prior versions.
5547
5199
  *
5548
- * Copyright (c) 2013-2025, Esoteric Software LLC
5200
+ * Copyright (c) 2013-2023, Esoteric Software LLC
5549
5201
  *
5550
5202
  * Integration of the Spine Runtimes into software or otherwise creating
5551
5203
  * derivative works of the Spine Runtimes is permitted under the terms and
5552
5204
  * conditions of Section 2 of the Spine Editor License Agreement:
5553
5205
  * http://esotericsoftware.com/spine-editor-license
5554
5206
  *
5555
- * Otherwise, it is permitted to integrate the Spine Runtimes into software
5556
- * or otherwise create derivative works of the Spine Runtimes (collectively,
5207
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
5208
+ * otherwise create derivative works of the Spine Runtimes (collectively,
5557
5209
  * "Products"), provided that each user of the Products must obtain their own
5558
5210
  * Spine Editor license and redistribution of the Products in any form must
5559
5211
  * include this license and copyright notice.
@@ -5566,8 +5218,8 @@ var Downloader = /*#__PURE__*/ function() {
5566
5218
  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
5567
5219
  * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
5568
5220
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5569
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
5570
- * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5221
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
5222
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5571
5223
  *****************************************************************************/ /** Stores the current pose values for an {@link Event}.
5572
5224
  *
5573
5225
  * See Timeline {@link Timeline#apply()},
@@ -5587,17 +5239,17 @@ var Downloader = /*#__PURE__*/ function() {
5587
5239
 
5588
5240
  /******************************************************************************
5589
5241
  * Spine Runtimes License Agreement
5590
- * Last updated April 5, 2025. Replaces all prior versions.
5242
+ * Last updated July 28, 2023. Replaces all prior versions.
5591
5243
  *
5592
- * Copyright (c) 2013-2025, Esoteric Software LLC
5244
+ * Copyright (c) 2013-2023, Esoteric Software LLC
5593
5245
  *
5594
5246
  * Integration of the Spine Runtimes into software or otherwise creating
5595
5247
  * derivative works of the Spine Runtimes is permitted under the terms and
5596
5248
  * conditions of Section 2 of the Spine Editor License Agreement:
5597
5249
  * http://esotericsoftware.com/spine-editor-license
5598
5250
  *
5599
- * Otherwise, it is permitted to integrate the Spine Runtimes into software
5600
- * or otherwise create derivative works of the Spine Runtimes (collectively,
5251
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
5252
+ * otherwise create derivative works of the Spine Runtimes (collectively,
5601
5253
  * "Products"), provided that each user of the Products must obtain their own
5602
5254
  * Spine Editor license and redistribution of the Products in any form must
5603
5255
  * include this license and copyright notice.
@@ -5610,8 +5262,8 @@ var Downloader = /*#__PURE__*/ function() {
5610
5262
  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
5611
5263
  * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
5612
5264
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5613
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
5614
- * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5265
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
5266
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5615
5267
  *****************************************************************************/ /** Stores the setup pose values for an {@link Event}.
5616
5268
  *
5617
5269
  * See [Events](http://esotericsoftware.com/spine-events) in the Spine User Guide. */ var EventData = function EventData(name) {
@@ -6471,7 +6123,7 @@ PathConstraint.epsilon = 0.00001;
6471
6123
  }
6472
6124
  if (a >= t) {
6473
6125
  d = Math.pow(this.damping, 60 * t);
6474
- var m = this.massInverse * t, e = this.strength, w = this.wind * f * skeleton.scaleX, g = this.gravity * f * skeleton.scaleY;
6126
+ var m = this.massInverse * t, e = this.strength, w = this.wind * f, g = (Skeleton.yDown ? -this.gravity : this.gravity) * f;
6475
6127
  do {
6476
6128
  if (x) {
6477
6129
  this.xVelocity += (w - this.xOffset * e) * m;
@@ -7313,10 +6965,10 @@ PathConstraint.epsilon = 0.00001;
7313
6965
  })) != null ? _this_physicsConstraints_find : null;
7314
6966
  };
7315
6967
  /** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose as `{ x: number, y: number, width: number, height: number }`.
7316
- * Note that this method will create temporary objects which can add to garbage collection pressure. Use `getBounds()` if garbage collection is a concern. */ _proto.getBoundsRect = function getBoundsRect(clipper) {
6968
+ * Note that this method will create temporary objects which can add to garbage collection pressure. Use `getBounds()` if garbage collection is a concern. */ _proto.getBoundsRect = function getBoundsRect() {
7317
6969
  var offset = new Vector2();
7318
6970
  var size = new Vector2();
7319
- this.getBounds(offset, size, undefined, clipper);
6971
+ this.getBounds(offset, size);
7320
6972
  return {
7321
6973
  x: offset.x,
7322
6974
  y: offset.y,
@@ -7445,17 +7097,17 @@ Skeleton.yDown = false;
7445
7097
 
7446
7098
  /******************************************************************************
7447
7099
  * Spine Runtimes License Agreement
7448
- * Last updated April 5, 2025. Replaces all prior versions.
7100
+ * Last updated July 28, 2023. Replaces all prior versions.
7449
7101
  *
7450
- * Copyright (c) 2013-2025, Esoteric Software LLC
7102
+ * Copyright (c) 2013-2023, Esoteric Software LLC
7451
7103
  *
7452
7104
  * Integration of the Spine Runtimes into software or otherwise creating
7453
7105
  * derivative works of the Spine Runtimes is permitted under the terms and
7454
7106
  * conditions of Section 2 of the Spine Editor License Agreement:
7455
7107
  * http://esotericsoftware.com/spine-editor-license
7456
7108
  *
7457
- * Otherwise, it is permitted to integrate the Spine Runtimes into software
7458
- * or otherwise create derivative works of the Spine Runtimes (collectively,
7109
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
7110
+ * otherwise create derivative works of the Spine Runtimes (collectively,
7459
7111
  * "Products"), provided that each user of the Products must obtain their own
7460
7112
  * Spine Editor license and redistribution of the Products in any form must
7461
7113
  * include this license and copyright notice.
@@ -7468,16 +7120,18 @@ Skeleton.yDown = false;
7468
7120
  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
7469
7121
  * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
7470
7122
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
7471
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
7472
- * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7123
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
7124
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7473
7125
  *****************************************************************************/ /** Stores the setup pose and all of the stateless data for a skeleton.
7474
7126
  *
7475
7127
  * See [Data objects](http://esotericsoftware.com/spine-runtime-architecture#Data-objects) in the Spine Runtimes
7476
7128
  * Guide. */ var SkeletonData = /*#__PURE__*/ function() {
7477
7129
  function SkeletonData() {
7478
7130
  /** The skeleton's name, which by default is the name of the skeleton data file, if possible. May be null. */ this.name = null;
7479
- /** The skeleton's bones, sorted parent first. The root bone is always the first bone. */ this.bones = new Array(); // Ordered parents first.
7480
- /** The skeleton's slots in the setup pose draw order. */ this.slots = new Array(); // Setup pose draw order.
7131
+ /** The skeleton's bones, sorted parent first. The root bone is always the first bone. */ this.bones = new Array() // Ordered parents first.
7132
+ ;
7133
+ /** The skeleton's slots in the setup pose draw order. */ this.slots = new Array() // Setup pose draw order.
7134
+ ;
7481
7135
  this.skins = new Array();
7482
7136
  /** The skeleton's default skin. By default this skin contains all attachments that were not in a skin in Spine.
7483
7137
  *
@@ -7620,7 +7274,8 @@ Skeleton.yDown = false;
7620
7274
  this.attachments = new Array();
7621
7275
  this.bones = Array();
7622
7276
  this.constraints = new Array();
7623
- /** The color of the skin as it was in Spine, or a default color if nonessential data was not exported. */ this.color = new Color(0.99607843, 0.61960787, 0.30980393, 1); // fe9e4fff
7277
+ /** The color of the skin as it was in Spine, or a default color if nonessential data was not exported. */ this.color = new Color(0.99607843, 0.61960787, 0.30980393, 1) // fe9e4fff
7278
+ ;
7624
7279
  if (!name) throw new Error("name cannot be null.");
7625
7280
  this.name = name;
7626
7281
  }
@@ -10778,17 +10433,17 @@ function getValue(map, property, defaultValue) {
10778
10433
 
10779
10434
  /******************************************************************************
10780
10435
  * Spine Runtimes License Agreement
10781
- * Last updated April 5, 2025. Replaces all prior versions.
10436
+ * Last updated July 28, 2023. Replaces all prior versions.
10782
10437
  *
10783
- * Copyright (c) 2013-2025, Esoteric Software LLC
10438
+ * Copyright (c) 2013-2023, Esoteric Software LLC
10784
10439
  *
10785
10440
  * Integration of the Spine Runtimes into software or otherwise creating
10786
10441
  * derivative works of the Spine Runtimes is permitted under the terms and
10787
10442
  * conditions of Section 2 of the Spine Editor License Agreement:
10788
10443
  * http://esotericsoftware.com/spine-editor-license
10789
10444
  *
10790
- * Otherwise, it is permitted to integrate the Spine Runtimes into software
10791
- * or otherwise create derivative works of the Spine Runtimes (collectively,
10445
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
10446
+ * otherwise create derivative works of the Spine Runtimes (collectively,
10792
10447
  * "Products"), provided that each user of the Products must obtain their own
10793
10448
  * Spine Editor license and redistribution of the Products in any form must
10794
10449
  * include this license and copyright notice.
@@ -10801,8 +10456,8 @@ function getValue(map, property, defaultValue) {
10801
10456
  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
10802
10457
  * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
10803
10458
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
10804
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
10805
- * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10459
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
10460
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10806
10461
  *****************************************************************************/ (function() {
10807
10462
  if (typeof Math.fround === "undefined") {
10808
10463
  Math.fround = function(array) {
@@ -12055,8 +11710,8 @@ for(var key in RendererObject){
12055
11710
  for(var key1 in LoaderObject){
12056
11711
  Loader.registerClass(key1, LoaderObject[key1]);
12057
11712
  }
12058
- var version = "4.2.5";
11713
+ var version = "4.2.7";
12059
11714
  console.log("Galacean spine version: " + version);
12060
11715
 
12061
- export { AlphaTimeline, Animation, AnimationState, AnimationStateAdapter, AnimationStateData, AssetCache, AssetManagerBase, AtlasAttachmentLoader, Attachment, AttachmentTimeline, BinaryInput, BlendMode, Bone, BoneData, BoundingBoxAttachment, CURRENT, ClippingAttachment, Color, ConstraintData, CurveTimeline, CurveTimeline1, CurveTimeline2, DebugUtils, DeformTimeline, Downloader, DrawOrderTimeline, Event, EventData, EventQueue, EventTimeline, EventType, FIRST, FakeTexture, HOLD_FIRST, HOLD_MIX, HOLD_SUBSEQUENT, IkConstraint, IkConstraintData, IkConstraintTimeline, Inherit, InheritTimeline, IntSet, Interpolation, LoaderUtils, MathUtils, MeshAttachment, MixBlend, MixDirection, PathAttachment, PathConstraint, PathConstraintData, PathConstraintMixTimeline, PathConstraintPositionTimeline, PathConstraintSpacingTimeline, Physics, PhysicsConstraintDampingTimeline, PhysicsConstraintGravityTimeline, PhysicsConstraintInertiaTimeline, PhysicsConstraintMassTimeline, PhysicsConstraintMixTimeline, PhysicsConstraintResetTimeline, PhysicsConstraintStrengthTimeline, PhysicsConstraintTimeline, PhysicsConstraintWindTimeline, PointAttachment, Pool, PositionMode, Pow, PowOut, RGB2Timeline, RGBA2Timeline, RGBATimeline, RGBTimeline, RegionAttachment, RotateMode, RotateTimeline, SETUP, SUBSEQUENT, ScaleTimeline, ScaleXTimeline, ScaleYTimeline, SequenceTimeline, ShearTimeline, ShearXTimeline, ShearYTimeline, Skeleton, SkeletonBinary, SkeletonBounds, SkeletonClipping, SkeletonData, SkeletonJson, Skin, SkinEntry, Slot, SlotData, SpacingMode, SpineAnimationRenderer, SpineMaterial, SpineResource, StringSet, Texture, TextureAtlas, TextureAtlasPage, TextureAtlasRegion, TextureFilter, TextureRegion, TextureWrap, TimeKeeper, Timeline, TrackEntry, TransformConstraint, TransformConstraintData, TransformConstraintTimeline, TranslateTimeline, TranslateXTimeline, TranslateYTimeline, Triangulator, Utils, Vector2, VertexAttachment, WindowedMean, version };
11716
+ export { AlphaTimeline, Animation, AnimationState, AnimationStateAdapter, AnimationStateData, AssetManagerBase, AtlasAttachmentLoader, Attachment, AttachmentTimeline, BinaryInput, BlendMode, Bone, BoneData, BoundingBoxAttachment, CURRENT, ClippingAttachment, Color, ConstraintData, CurveTimeline, CurveTimeline1, CurveTimeline2, DebugUtils, DeformTimeline, Downloader, DrawOrderTimeline, Event, EventData, EventQueue, EventTimeline, EventType, FIRST, FakeTexture, HOLD_FIRST, HOLD_MIX, HOLD_SUBSEQUENT, IkConstraint, IkConstraintData, IkConstraintTimeline, Inherit, InheritTimeline, IntSet, Interpolation, LoaderUtils, MathUtils, MeshAttachment, MixBlend, MixDirection, PathAttachment, PathConstraint, PathConstraintData, PathConstraintMixTimeline, PathConstraintPositionTimeline, PathConstraintSpacingTimeline, Physics, PhysicsConstraintDampingTimeline, PhysicsConstraintGravityTimeline, PhysicsConstraintInertiaTimeline, PhysicsConstraintMassTimeline, PhysicsConstraintMixTimeline, PhysicsConstraintResetTimeline, PhysicsConstraintStrengthTimeline, PhysicsConstraintTimeline, PhysicsConstraintWindTimeline, PointAttachment, Pool, PositionMode, Pow, PowOut, RGB2Timeline, RGBA2Timeline, RGBATimeline, RGBTimeline, RegionAttachment, RotateMode, RotateTimeline, SETUP, SUBSEQUENT, ScaleTimeline, ScaleXTimeline, ScaleYTimeline, SequenceTimeline, ShearTimeline, ShearXTimeline, ShearYTimeline, Skeleton, SkeletonBinary, SkeletonBounds, SkeletonClipping, SkeletonData, SkeletonJson, Skin, SkinEntry, Slot, SlotData, SpacingMode, SpineAnimationRenderer, SpineMaterial, SpineResource, StringSet, Texture, TextureAtlas, TextureAtlasPage, TextureAtlasRegion, TextureFilter, TextureRegion, TextureWrap, TimeKeeper, Timeline, TrackEntry, TransformConstraint, TransformConstraintData, TransformConstraintTimeline, TranslateTimeline, TranslateXTimeline, TranslateYTimeline, Triangulator, Utils, Vector2, VertexAttachment, WindowedMean, version };
12062
11717
  //# sourceMappingURL=module.js.map