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.js 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
@@ -483,6 +483,9 @@ var PIXI = (function (exports) {
483
483
  },
484
484
  handleByList(type, list) {
485
485
  return this.handle(type, (extension) => {
486
+ if (list.includes(extension.ref)) {
487
+ return;
488
+ }
486
489
  list.push(extension.ref);
487
490
  list.sort((a, b) => (b.priority ?? -1) - (a.priority ?? -1));
488
491
  }, (extension) => {
@@ -5817,7 +5820,7 @@ Deprecated since v${version}`);
5817
5820
  return false;
5818
5821
  }
5819
5822
  } else if (typeof HTMLVideoElement !== "undefined" && source instanceof HTMLVideoElement) {
5820
- if (source.readyState <= 1) {
5823
+ if (source.readyState <= 1 && source.buffered.length === 0) {
5821
5824
  return false;
5822
5825
  }
5823
5826
  }
@@ -11364,7 +11367,7 @@ ${this.fragmentSrc}`;
11364
11367
  const renderer = this.renderer;
11365
11368
  renderer.emitWithCustomOptions(renderer.runners.init, options);
11366
11369
  if (options.hello) {
11367
- console.log(`PixiJS ${"7.0.2"} - ${renderer.rendererLogId} - https://pixijs.com`);
11370
+ console.log(`PixiJS ${"7.0.4"} - ${renderer.rendererLogId} - https://pixijs.com`);
11368
11371
  }
11369
11372
  renderer.resize(this.renderer.screen.width, this.renderer.screen.height);
11370
11373
  }
@@ -12333,7 +12336,7 @@ ${this.fragmentSrc}`;
12333
12336
  };
12334
12337
  extensions$1.add(ObjectRendererSystem);
12335
12338
 
12336
- const VERSION = "7.0.2";
12339
+ const VERSION = "7.0.4";
12337
12340
 
12338
12341
  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";
12339
12342
 
@@ -14226,7 +14229,7 @@ ${this.fragmentSrc}`;
14226
14229
  if (this._roundPixels) {
14227
14230
  const resolution = settings.RESOLUTION;
14228
14231
  for (let i = 0; i < vertexData.length; ++i) {
14229
- vertexData[i] = Math.round((vertexData[i] * resolution | 0) / resolution);
14232
+ vertexData[i] = Math.round(vertexData[i] * resolution) / resolution;
14230
14233
  }
14231
14234
  }
14232
14235
  }
@@ -20100,7 +20103,7 @@ ${e}`);
20100
20103
  if (this._roundPixels) {
20101
20104
  const resolution = settings.RESOLUTION;
20102
20105
  for (let i = 0; i < vertexData.length; ++i) {
20103
- vertexData[i] = Math.round((vertexData[i] * resolution | 0) / resolution);
20106
+ vertexData[i] = Math.round(vertexData[i] * resolution) / resolution;
20104
20107
  }
20105
20108
  }
20106
20109
  this.vertexDirty = vertexDirtyId;