@esotericsoftware/spine-pixi-v8 4.2.105 → 4.2.107
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/Spine.js +3 -1
- package/dist/assets/atlasLoader.js +4 -3
- package/dist/assets/skeletonLoader.js +4 -3
- package/dist/esm/spine-pixi-v8.min.mjs +4 -4
- package/dist/esm/spine-pixi-v8.mjs +8 -4
- package/dist/esm/spine-pixi-v8.mjs.map +2 -2
- package/dist/iife/spine-pixi-v8.js +8 -4
- package/dist/iife/spine-pixi-v8.js.map +2 -2
- package/dist/iife/spine-pixi-v8.min.js +3 -3
- package/package.json +2 -2
|
@@ -12037,8 +12037,9 @@ var spine = (() => {
|
|
|
12037
12037
|
},
|
|
12038
12038
|
async load(url) {
|
|
12039
12039
|
const response = await import_pixi2.DOMAdapter.get().fetch(url);
|
|
12040
|
-
|
|
12041
|
-
|
|
12040
|
+
if (!response.ok)
|
|
12041
|
+
throw new Error(`[${loaderName}] Failed to fetch ${url}: ${response.status} ${response.statusText}`);
|
|
12042
|
+
return await response.text();
|
|
12042
12043
|
},
|
|
12043
12044
|
testParse(asset, options) {
|
|
12044
12045
|
const isExtensionRight = (0, import_pixi2.checkExtension)(options.src, ".atlas");
|
|
@@ -12113,8 +12114,9 @@ var spine = (() => {
|
|
|
12113
12114
|
},
|
|
12114
12115
|
async load(url) {
|
|
12115
12116
|
const response = await import_pixi3.DOMAdapter.get().fetch(url);
|
|
12116
|
-
|
|
12117
|
-
|
|
12117
|
+
if (!response.ok)
|
|
12118
|
+
throw new Error(`[${loaderName2}] Failed to fetch ${url}: ${response.status} ${response.statusText}`);
|
|
12119
|
+
return new Uint8Array(await response.arrayBuffer());
|
|
12118
12120
|
},
|
|
12119
12121
|
testParse(asset, options) {
|
|
12120
12122
|
const isJsonSpineModel = (0, import_pixi3.checkExtension)(options.src, ".json") && isJson(asset);
|
|
@@ -13012,6 +13014,7 @@ var spine = (() => {
|
|
|
13012
13014
|
}
|
|
13013
13015
|
/** Sets the ticker to use when {@link autoUpdate} is `true`. If `autoUpdate` is already `true`, the update callback will be moved from the old ticker to the new one. */
|
|
13014
13016
|
set ticker(value) {
|
|
13017
|
+
value = value ?? import_pixi8.Ticker.shared;
|
|
13015
13018
|
if (this._ticker === value) return;
|
|
13016
13019
|
if (this._autoUpdate) {
|
|
13017
13020
|
this._ticker.remove(this.internalUpdate, this);
|
|
@@ -13521,6 +13524,7 @@ var spine = (() => {
|
|
|
13521
13524
|
destroy(options = false) {
|
|
13522
13525
|
super.destroy(options);
|
|
13523
13526
|
this._ticker.remove(this.internalUpdate, this);
|
|
13527
|
+
this._ticker = null;
|
|
13524
13528
|
this.state.clearListeners();
|
|
13525
13529
|
this.debug = void 0;
|
|
13526
13530
|
this.skeleton = null;
|