pixi.js 7.1.2 → 7.1.3
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 +16 -8
- package/dist/pixi.js.map +1 -1
- package/dist/pixi.min.js +26 -26
- package/dist/pixi.min.js.map +1 -1
- package/dist/pixi.min.mjs +27 -27
- package/dist/pixi.min.mjs.map +1 -1
- package/dist/pixi.mjs +16 -8
- package/dist/pixi.mjs.map +1 -1
- package/package.json +31 -31
package/dist/pixi.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* pixi.js - v7.1.
|
|
3
|
-
* Compiled
|
|
2
|
+
* pixi.js - v7.1.3
|
|
3
|
+
* Compiled Fri, 24 Feb 2023 18:37:12 UTC
|
|
4
4
|
*
|
|
5
5
|
* pixi.js is licensed under the MIT License.
|
|
6
6
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -10457,7 +10457,7 @@ ${this.fragmentSrc}`;
|
|
|
10457
10457
|
const renderer = this.renderer;
|
|
10458
10458
|
renderer.emitWithCustomOptions(renderer.runners.init, options);
|
|
10459
10459
|
if (options.hello) {
|
|
10460
|
-
console.log(`PixiJS ${"7.1.
|
|
10460
|
+
console.log(`PixiJS ${"7.1.3"} - ${renderer.rendererLogId} - https://pixijs.com`);
|
|
10461
10461
|
}
|
|
10462
10462
|
renderer.resize(this.renderer.screen.width, this.renderer.screen.height);
|
|
10463
10463
|
}
|
|
@@ -12648,7 +12648,7 @@ ${this.fragmentSrc}`;
|
|
|
12648
12648
|
}
|
|
12649
12649
|
}
|
|
12650
12650
|
|
|
12651
|
-
const VERSION = "7.1.
|
|
12651
|
+
const VERSION = "7.1.3";
|
|
12652
12652
|
|
|
12653
12653
|
class Bounds {
|
|
12654
12654
|
constructor() {
|
|
@@ -15147,11 +15147,14 @@ ${this.fragmentSrc}`;
|
|
|
15147
15147
|
class FederatedWheelEvent extends FederatedMouseEvent {
|
|
15148
15148
|
constructor() {
|
|
15149
15149
|
super(...arguments);
|
|
15150
|
-
this.
|
|
15151
|
-
this.
|
|
15152
|
-
this.
|
|
15150
|
+
this.DOM_DELTA_PIXEL = 0;
|
|
15151
|
+
this.DOM_DELTA_LINE = 1;
|
|
15152
|
+
this.DOM_DELTA_PAGE = 2;
|
|
15153
15153
|
}
|
|
15154
15154
|
}
|
|
15155
|
+
FederatedWheelEvent.DOM_DELTA_PIXEL = 0;
|
|
15156
|
+
FederatedWheelEvent.DOM_DELTA_LINE = 1;
|
|
15157
|
+
FederatedWheelEvent.DOM_DELTA_PAGE = 2;
|
|
15155
15158
|
|
|
15156
15159
|
const PROPAGATION_LIMIT = 2048;
|
|
15157
15160
|
const tempHitLocation = new Point();
|
|
@@ -15523,7 +15526,8 @@ ${this.fragmentSrc}`;
|
|
|
15523
15526
|
clickHistory.timeStamp = now;
|
|
15524
15527
|
clickEvent.detail = clickHistory.clickCount;
|
|
15525
15528
|
if (clickEvent.pointerType === "mouse") {
|
|
15526
|
-
|
|
15529
|
+
const isRightButton = clickEvent.button === 2;
|
|
15530
|
+
this.dispatchEvent(clickEvent, isRightButton ? "rightclick" : "click");
|
|
15527
15531
|
} else if (clickEvent.pointerType === "touch") {
|
|
15528
15532
|
this.dispatchEvent(clickEvent, "tap");
|
|
15529
15533
|
}
|
|
@@ -15693,9 +15697,13 @@ ${this.fragmentSrc}`;
|
|
|
15693
15697
|
if (!listeners)
|
|
15694
15698
|
return;
|
|
15695
15699
|
if ("fn" in listeners) {
|
|
15700
|
+
if (listeners.once)
|
|
15701
|
+
e.currentTarget.removeListener(type, listeners.fn, void 0, true);
|
|
15696
15702
|
listeners.fn.call(listeners.context, e);
|
|
15697
15703
|
} else {
|
|
15698
15704
|
for (let i = 0, j = listeners.length; i < j && !e.propagationImmediatelyStopped; i++) {
|
|
15705
|
+
if (listeners[i].once)
|
|
15706
|
+
e.currentTarget.removeListener(type, listeners[i].fn, void 0, true);
|
|
15699
15707
|
listeners[i].fn.call(listeners[i].context, e);
|
|
15700
15708
|
}
|
|
15701
15709
|
}
|