@pixi-spine/loader-uni
Advanced tools
Comparing version 3.1.0 to 3.1.1
/* eslint-disable */ | ||
/*! | ||
* @pixi-spine/loader-uni - v3.1.0 | ||
* Compiled Wed, 03 Aug 2022 17:00:08 UTC | ||
* @pixi-spine/loader-uni - v3.1.1 | ||
* Compiled Mon, 09 Jan 2023 16:33:11 UTC | ||
* | ||
@@ -91,14 +91,9 @@ * @pixi-spine/loader-uni is licensed under the MIT License. | ||
UniBinaryParser.prototype.readSkeletonData = function (atlas, dataToParse) { | ||
var input = new BinaryInput(dataToParse); | ||
input.readString(); | ||
var version = input.readString(); | ||
var parser = null; | ||
var version = this.readVersionOldFormat(dataToParse); | ||
var ver = detectSpineVersion(version); | ||
var parser = null; | ||
if (ver === SPINE_VERSION.VER38) { | ||
parser = new spine38.SkeletonBinary(new spine38.AtlasAttachmentLoader(atlas)); | ||
} | ||
input = new BinaryInput(dataToParse); | ||
input.readInt32(); | ||
input.readInt32(); | ||
version = input.readString(); | ||
version = this.readVersionNewFormat(dataToParse); | ||
ver = detectSpineVersion(version); | ||
@@ -115,2 +110,27 @@ if (ver === SPINE_VERSION.VER40 || ver === SPINE_VERSION.VER41) { | ||
}; | ||
UniBinaryParser.prototype.readVersionOldFormat = function (dataToParse) { | ||
var input = new BinaryInput(dataToParse); | ||
var version; | ||
try { | ||
input.readString(); | ||
version = input.readString(); | ||
} | ||
catch (e) { | ||
version = ""; | ||
} | ||
return version || ""; | ||
}; | ||
UniBinaryParser.prototype.readVersionNewFormat = function (dataToParse) { | ||
var input = new BinaryInput(dataToParse); | ||
input.readInt32(); | ||
input.readInt32(); | ||
var version; | ||
try { | ||
version = input.readString(); | ||
} | ||
catch (e) { | ||
version = ""; | ||
} | ||
return version || ""; | ||
}; | ||
return UniBinaryParser; | ||
@@ -117,0 +137,0 @@ }()); |
/* eslint-disable */ | ||
/*! | ||
* @pixi-spine/loader-uni - v3.1.0 | ||
* Compiled Wed, 03 Aug 2022 17:00:08 UTC | ||
* @pixi-spine/loader-uni - v3.1.1 | ||
* Compiled Mon, 09 Jan 2023 16:33:11 UTC | ||
* | ||
@@ -117,14 +117,9 @@ * @pixi-spine/loader-uni is licensed under the MIT License. | ||
UniBinaryParser.prototype.readSkeletonData = function (atlas, dataToParse) { | ||
var input = new base.BinaryInput(dataToParse); | ||
input.readString(); | ||
var version = input.readString(); | ||
var parser = null; | ||
var version = this.readVersionOldFormat(dataToParse); | ||
var ver = detectSpineVersion(version); | ||
var parser = null; | ||
if (ver === exports.SPINE_VERSION.VER38) { | ||
parser = new spine38__namespace.SkeletonBinary(new spine38__namespace.AtlasAttachmentLoader(atlas)); | ||
} | ||
input = new base.BinaryInput(dataToParse); | ||
input.readInt32(); | ||
input.readInt32(); | ||
version = input.readString(); | ||
version = this.readVersionNewFormat(dataToParse); | ||
ver = detectSpineVersion(version); | ||
@@ -141,2 +136,27 @@ if (ver === exports.SPINE_VERSION.VER40 || ver === exports.SPINE_VERSION.VER41) { | ||
}; | ||
UniBinaryParser.prototype.readVersionOldFormat = function (dataToParse) { | ||
var input = new base.BinaryInput(dataToParse); | ||
var version; | ||
try { | ||
input.readString(); | ||
version = input.readString(); | ||
} | ||
catch (e) { | ||
version = ""; | ||
} | ||
return version || ""; | ||
}; | ||
UniBinaryParser.prototype.readVersionNewFormat = function (dataToParse) { | ||
var input = new base.BinaryInput(dataToParse); | ||
input.readInt32(); | ||
input.readInt32(); | ||
var version; | ||
try { | ||
version = input.readString(); | ||
} | ||
catch (e) { | ||
version = ""; | ||
} | ||
return version || ""; | ||
}; | ||
return UniBinaryParser; | ||
@@ -143,0 +163,0 @@ }()); |
{ | ||
"name": "@pixi-spine/loader-uni", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Pixi integration with EsotericSoftware Spine, big, contains all runtimes", | ||
@@ -13,7 +13,7 @@ "main": "lib/loader-uni.js", | ||
"dependencies": { | ||
"@pixi-spine/base": "~3.1.0", | ||
"@pixi-spine/loader-base": "~3.1.0", | ||
"@pixi-spine/runtime-3.7": "~3.1.0", | ||
"@pixi-spine/runtime-3.8": "~3.1.0", | ||
"@pixi-spine/runtime-4.1": "~3.1.0" | ||
"@pixi-spine/base": "~3.1.1", | ||
"@pixi-spine/loader-base": "~3.1.1", | ||
"@pixi-spine/runtime-3.7": "~3.1.1", | ||
"@pixi-spine/runtime-3.8": "~3.1.1", | ||
"@pixi-spine/runtime-4.1": "~3.1.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69857
6
452