@esotericsoftware/spine-pixi-v8 4.2.88 → 4.2.90

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.
@@ -162,12 +162,6 @@ var spine = (() => {
162
162
  };
163
163
  }
164
164
 
165
- // spine-pixi-v8/src/assets/atlasLoader.ts
166
- var import_pixi2 = __require("pixi.js");
167
-
168
- // spine-pixi-v8/src/SpineTexture.ts
169
- var import_pixi = __require("pixi.js");
170
-
171
165
  // spine-core/src/Utils.ts
172
166
  var IntSet = class {
173
167
  array = new Array();
@@ -11450,7 +11444,11 @@ var spine = (() => {
11450
11444
  }
11451
11445
  })();
11452
11446
 
11447
+ // spine-pixi-v8/src/assets/atlasLoader.ts
11448
+ var import_pixi2 = __require("pixi.js");
11449
+
11453
11450
  // spine-pixi-v8/src/SpineTexture.ts
11451
+ var import_pixi = __require("pixi.js");
11454
11452
  var SpineTexture = class _SpineTexture extends Texture {
11455
11453
  static textureMap = /* @__PURE__ */ new Map();
11456
11454
  static from(texture) {
@@ -11553,6 +11551,7 @@ var spine = (() => {
11553
11551
  }
11554
11552
  },
11555
11553
  loader: {
11554
+ id: loaderName,
11556
11555
  name: loaderName,
11557
11556
  extension: {
11558
11557
  type: import_pixi2.ExtensionType.LoadParser,
@@ -11570,7 +11569,7 @@ var spine = (() => {
11570
11569
  testParse(asset, options) {
11571
11570
  const isExtensionRight = (0, import_pixi2.checkExtension)(options.src, ".atlas");
11572
11571
  const isString = typeof asset === "string";
11573
- const isExplicitLoadParserSet = options.loadParser === loaderName;
11572
+ const isExplicitLoadParserSet = options.parser === loaderName || options.loadParser === loaderName;
11574
11573
  return Promise.resolve((isExtensionRight || isExplicitLoadParserSet) && isString);
11575
11574
  },
11576
11575
  unload(atlas) {
@@ -11628,6 +11627,7 @@ var spine = (() => {
11628
11627
  var spineLoaderExtension = {
11629
11628
  extension: import_pixi3.ExtensionType.Asset,
11630
11629
  loader: {
11630
+ id: loaderName2,
11631
11631
  name: loaderName2,
11632
11632
  extension: {
11633
11633
  type: import_pixi3.ExtensionType.LoadParser,
@@ -11645,7 +11645,7 @@ var spine = (() => {
11645
11645
  testParse(asset, options) {
11646
11646
  const isJsonSpineModel = (0, import_pixi3.checkExtension)(options.src, ".json") && isJson(asset);
11647
11647
  const isBinarySpineModel = (0, import_pixi3.checkExtension)(options.src, ".skel") && isBuffer(asset);
11648
- const isExplicitLoadParserSet = options.loadParser === loaderName2;
11648
+ const isExplicitLoadParserSet = options.parser === loaderName2 || options.loadParser === loaderName2;
11649
11649
  return Promise.resolve(isJsonSpineModel || isBinarySpineModel || isExplicitLoadParserSet);
11650
11650
  }
11651
11651
  }
@@ -12069,7 +12069,7 @@ var spine = (() => {
12069
12069
  if (containerAttachment) {
12070
12070
  const container = containerAttachment.container;
12071
12071
  container.includeInBuild = true;
12072
- (0, import_pixi7.collectAllRenderables)(container, instructionSet, this.renderer);
12072
+ container.collectRenderables(instructionSet, this.renderer, null);
12073
12073
  container.includeInBuild = false;
12074
12074
  }
12075
12075
  }
@@ -12483,23 +12483,28 @@ var spine = (() => {
12483
12483
  const skeletonColor = skeleton.color;
12484
12484
  const slotColor = slot.color;
12485
12485
  const attachmentColor = attachment.color;
12486
+ const alpha = skeletonColor.a * slotColor.a * attachmentColor.a;
12486
12487
  cacheData.color.set(
12487
12488
  skeletonColor.r * slotColor.r * attachmentColor.r,
12488
12489
  skeletonColor.g * slotColor.g * attachmentColor.g,
12489
12490
  skeletonColor.b * slotColor.b * attachmentColor.b,
12490
- skeletonColor.a * slotColor.a * attachmentColor.a
12491
+ alpha
12491
12492
  );
12492
- if (slot.darkColor) {
12493
- cacheData.darkColor.setFromColor(slot.darkColor);
12494
- }
12495
- cacheData.skipRender = cacheData.clipped = false;
12496
- const texture = attachment.region?.texture.texture || import_pixi8.Texture.EMPTY;
12497
- if (cacheData.texture !== texture) {
12498
- cacheData.texture = texture;
12499
- this.spineTexturesDirty = true;
12500
- }
12501
- if (clipper.isClipping()) {
12502
- this.updateClippingData(cacheData);
12493
+ if (this.alpha === 0 || alpha === 0) {
12494
+ cacheData.skipRender = true;
12495
+ } else {
12496
+ if (slot.darkColor) {
12497
+ cacheData.darkColor.setFromColor(slot.darkColor);
12498
+ }
12499
+ cacheData.skipRender = cacheData.clipped = false;
12500
+ const texture = attachment.region?.texture.texture || import_pixi8.Texture.EMPTY;
12501
+ if (cacheData.texture !== texture) {
12502
+ cacheData.texture = texture;
12503
+ this.spineTexturesDirty = true;
12504
+ }
12505
+ if (clipper.isClipping()) {
12506
+ this.updateClippingData(cacheData);
12507
+ }
12503
12508
  }
12504
12509
  } else if (attachment instanceof ClippingAttachment) {
12505
12510
  clipper.clipStart(slot, attachment);