pixi.js 7.0.2 → 7.0.4

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/pixi.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * pixi.js - v7.0.2
3
- * Compiled Mon, 31 Oct 2022 15:20:53 UTC
2
+ * pixi.js - v7.0.4
3
+ * Compiled Fri, 11 Nov 2022 12:31:03 UTC
4
4
  *
5
5
  * pixi.js is licensed under the MIT License.
6
6
  * http://www.opensource.org/licenses/mit-license
@@ -480,6 +480,9 @@ const extensions$1 = {
480
480
  },
481
481
  handleByList(type, list) {
482
482
  return this.handle(type, (extension) => {
483
+ if (list.includes(extension.ref)) {
484
+ return;
485
+ }
483
486
  list.push(extension.ref);
484
487
  list.sort((a, b) => (b.priority ?? -1) - (a.priority ?? -1));
485
488
  }, (extension) => {
@@ -5814,7 +5817,7 @@ class BaseImageResource extends Resource {
5814
5817
  return false;
5815
5818
  }
5816
5819
  } else if (typeof HTMLVideoElement !== "undefined" && source instanceof HTMLVideoElement) {
5817
- if (source.readyState <= 1) {
5820
+ if (source.readyState <= 1 && source.buffered.length === 0) {
5818
5821
  return false;
5819
5822
  }
5820
5823
  }
@@ -11361,7 +11364,7 @@ class StartupSystem {
11361
11364
  const renderer = this.renderer;
11362
11365
  renderer.emitWithCustomOptions(renderer.runners.init, options);
11363
11366
  if (options.hello) {
11364
- console.log(`PixiJS ${"7.0.2"} - ${renderer.rendererLogId} - https://pixijs.com`);
11367
+ console.log(`PixiJS ${"7.0.4"} - ${renderer.rendererLogId} - https://pixijs.com`);
11365
11368
  }
11366
11369
  renderer.resize(this.renderer.screen.width, this.renderer.screen.height);
11367
11370
  }
@@ -12330,7 +12333,7 @@ ObjectRendererSystem.extension = {
12330
12333
  };
12331
12334
  extensions$1.add(ObjectRendererSystem);
12332
12335
 
12333
- const VERSION = "7.0.2";
12336
+ const VERSION = "7.0.4";
12334
12337
 
12335
12338
  var fragment$6 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n";
12336
12339
 
@@ -14223,7 +14226,7 @@ class Sprite extends Container {
14223
14226
  if (this._roundPixels) {
14224
14227
  const resolution = settings.RESOLUTION;
14225
14228
  for (let i = 0; i < vertexData.length; ++i) {
14226
- vertexData[i] = Math.round((vertexData[i] * resolution | 0) / resolution);
14229
+ vertexData[i] = Math.round(vertexData[i] * resolution) / resolution;
14227
14230
  }
14228
14231
  }
14229
14232
  }
@@ -20097,7 +20100,7 @@ const _Mesh = class extends Container {
20097
20100
  if (this._roundPixels) {
20098
20101
  const resolution = settings.RESOLUTION;
20099
20102
  for (let i = 0; i < vertexData.length; ++i) {
20100
- vertexData[i] = Math.round((vertexData[i] * resolution | 0) / resolution);
20103
+ vertexData[i] = Math.round(vertexData[i] * resolution) / resolution;
20101
20104
  }
20102
20105
  }
20103
20106
  this.vertexDirty = vertexDirtyId;