pixi.js 5.3.7 → 5.3.11
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 +125 -101
- package/dist/pixi.js.map +1 -1
- package/dist/pixi.min.js +3 -3
- package/dist/pixi.min.js.map +1 -1
- package/lib/pixi.es.js +3 -3
- package/lib/pixi.es.js.map +1 -1
- package/lib/pixi.js +3 -3
- package/lib/pixi.js.map +1 -1
- package/package.json +36 -36
- package/pixi.js.d.ts +12 -7
package/dist/pixi.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* pixi.js - v5.3.
|
|
3
|
-
* Compiled
|
|
2
|
+
* pixi.js - v5.3.11
|
|
3
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
4
4
|
*
|
|
5
5
|
* pixi.js is licensed under the MIT License.
|
|
6
6
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -471,8 +471,8 @@ var PIXI = (function (exports) {
|
|
|
471
471
|
};
|
|
472
472
|
|
|
473
473
|
/*!
|
|
474
|
-
* @pixi/polyfill - v5.3.
|
|
475
|
-
* Compiled
|
|
474
|
+
* @pixi/polyfill - v5.3.11
|
|
475
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
476
476
|
*
|
|
477
477
|
* @pixi/polyfill is licensed under the MIT License.
|
|
478
478
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -707,8 +707,8 @@ var PIXI = (function (exports) {
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
/*!
|
|
710
|
-
* @pixi/settings - v5.3.
|
|
711
|
-
* Compiled
|
|
710
|
+
* @pixi/settings - v5.3.11
|
|
711
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
712
712
|
*
|
|
713
713
|
* @pixi/settings is licensed under the MIT License.
|
|
714
714
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -1604,7 +1604,7 @@ var PIXI = (function (exports) {
|
|
|
1604
1604
|
|
|
1605
1605
|
// process holes from left to right
|
|
1606
1606
|
for (i = 0; i < queue.length; i++) {
|
|
1607
|
-
eliminateHole(queue[i], outerNode);
|
|
1607
|
+
outerNode = eliminateHole(queue[i], outerNode);
|
|
1608
1608
|
outerNode = filterPoints(outerNode, outerNode.next);
|
|
1609
1609
|
}
|
|
1610
1610
|
|
|
@@ -1617,14 +1617,19 @@ var PIXI = (function (exports) {
|
|
|
1617
1617
|
|
|
1618
1618
|
// find a bridge between vertices that connects hole with an outer ring and and link it
|
|
1619
1619
|
function eliminateHole(hole, outerNode) {
|
|
1620
|
-
|
|
1621
|
-
if (
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
// filter collinear points around the cuts
|
|
1625
|
-
filterPoints(outerNode, outerNode.next);
|
|
1626
|
-
filterPoints(b, b.next);
|
|
1620
|
+
var bridge = findHoleBridge(hole, outerNode);
|
|
1621
|
+
if (!bridge) {
|
|
1622
|
+
return outerNode;
|
|
1627
1623
|
}
|
|
1624
|
+
|
|
1625
|
+
var bridgeReverse = splitPolygon(bridge, hole);
|
|
1626
|
+
|
|
1627
|
+
// filter collinear points around the cuts
|
|
1628
|
+
var filteredBridge = filterPoints(bridge, bridge.next);
|
|
1629
|
+
filterPoints(bridgeReverse, bridgeReverse.next);
|
|
1630
|
+
|
|
1631
|
+
// Check if input node was removed by the filtering
|
|
1632
|
+
return outerNode === bridge ? filteredBridge : outerNode;
|
|
1628
1633
|
}
|
|
1629
1634
|
|
|
1630
1635
|
// David Eberly's algorithm for finding a bridge between hole and outer polygon
|
|
@@ -3458,8 +3463,8 @@ var PIXI = (function (exports) {
|
|
|
3458
3463
|
};
|
|
3459
3464
|
|
|
3460
3465
|
/*!
|
|
3461
|
-
* @pixi/constants - v5.3.
|
|
3462
|
-
* Compiled
|
|
3466
|
+
* @pixi/constants - v5.3.11
|
|
3467
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
3463
3468
|
*
|
|
3464
3469
|
* @pixi/constants is licensed under the MIT License.
|
|
3465
3470
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -3898,8 +3903,8 @@ var PIXI = (function (exports) {
|
|
|
3898
3903
|
})(exports.MSAA_QUALITY || (exports.MSAA_QUALITY = {}));
|
|
3899
3904
|
|
|
3900
3905
|
/*!
|
|
3901
|
-
* @pixi/utils - v5.3.
|
|
3902
|
-
* Compiled
|
|
3906
|
+
* @pixi/utils - v5.3.11
|
|
3907
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
3903
3908
|
*
|
|
3904
3909
|
* @pixi/utils is licensed under the MIT License.
|
|
3905
3910
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -3930,7 +3935,7 @@ var PIXI = (function (exports) {
|
|
|
3930
3935
|
settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = true;
|
|
3931
3936
|
|
|
3932
3937
|
var saidHello = false;
|
|
3933
|
-
var VERSION = '5.3.
|
|
3938
|
+
var VERSION = '5.3.11';
|
|
3934
3939
|
/**
|
|
3935
3940
|
* Skips the hello message of renderers that are created after this is run.
|
|
3936
3941
|
*
|
|
@@ -4799,8 +4804,8 @@ var PIXI = (function (exports) {
|
|
|
4799
4804
|
});
|
|
4800
4805
|
|
|
4801
4806
|
/*!
|
|
4802
|
-
* @pixi/math - v5.3.
|
|
4803
|
-
* Compiled
|
|
4807
|
+
* @pixi/math - v5.3.11
|
|
4808
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
4804
4809
|
*
|
|
4805
4810
|
* @pixi/math is licensed under the MIT License.
|
|
4806
4811
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -6708,8 +6713,8 @@ var PIXI = (function (exports) {
|
|
|
6708
6713
|
}());
|
|
6709
6714
|
|
|
6710
6715
|
/*!
|
|
6711
|
-
* @pixi/display - v5.3.
|
|
6712
|
-
* Compiled
|
|
6716
|
+
* @pixi/display - v5.3.11
|
|
6717
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
6713
6718
|
*
|
|
6714
6719
|
* @pixi/display is licensed under the MIT License.
|
|
6715
6720
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -8375,8 +8380,8 @@ var PIXI = (function (exports) {
|
|
|
8375
8380
|
Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
|
|
8376
8381
|
|
|
8377
8382
|
/*!
|
|
8378
|
-
* @pixi/accessibility - v5.3.
|
|
8379
|
-
* Compiled
|
|
8383
|
+
* @pixi/accessibility - v5.3.11
|
|
8384
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
8380
8385
|
*
|
|
8381
8386
|
* @pixi/accessibility is licensed under the MIT License.
|
|
8382
8387
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -8959,8 +8964,8 @@ var PIXI = (function (exports) {
|
|
|
8959
8964
|
}());
|
|
8960
8965
|
|
|
8961
8966
|
/*!
|
|
8962
|
-
* @pixi/ticker - v5.3.
|
|
8963
|
-
* Compiled
|
|
8967
|
+
* @pixi/ticker - v5.3.11
|
|
8968
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
8964
8969
|
*
|
|
8965
8970
|
* @pixi/ticker is licensed under the MIT License.
|
|
8966
8971
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -9802,8 +9807,8 @@ var PIXI = (function (exports) {
|
|
|
9802
9807
|
}());
|
|
9803
9808
|
|
|
9804
9809
|
/*!
|
|
9805
|
-
* @pixi/interaction - v5.3.
|
|
9806
|
-
* Compiled
|
|
9810
|
+
* @pixi/interaction - v5.3.11
|
|
9811
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
9807
9812
|
*
|
|
9808
9813
|
* @pixi/interaction is licensed under the MIT License.
|
|
9809
9814
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -11998,8 +12003,8 @@ var PIXI = (function (exports) {
|
|
|
11998
12003
|
}(eventemitter3));
|
|
11999
12004
|
|
|
12000
12005
|
/*!
|
|
12001
|
-
* @pixi/runner - v5.3.
|
|
12002
|
-
* Compiled
|
|
12006
|
+
* @pixi/runner - v5.3.11
|
|
12007
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
12003
12008
|
*
|
|
12004
12009
|
* @pixi/runner is licensed under the MIT License.
|
|
12005
12010
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -12194,8 +12199,8 @@ var PIXI = (function (exports) {
|
|
|
12194
12199
|
});
|
|
12195
12200
|
|
|
12196
12201
|
/*!
|
|
12197
|
-
* @pixi/core - v5.3.
|
|
12198
|
-
* Compiled
|
|
12202
|
+
* @pixi/core - v5.3.11
|
|
12203
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
12199
12204
|
*
|
|
12200
12205
|
* @pixi/core is licensed under the MIT License.
|
|
12201
12206
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -21073,11 +21078,11 @@ var PIXI = (function (exports) {
|
|
|
21073
21078
|
* @param {PIXI.DisplayObject} displayObject - the displayObject to remove the textures from.
|
|
21074
21079
|
*/
|
|
21075
21080
|
TextureGCSystem.prototype.unload = function (displayObject) {
|
|
21076
|
-
var _a;
|
|
21077
21081
|
var tm = this.renderer.texture;
|
|
21082
|
+
var texture = displayObject._texture;
|
|
21078
21083
|
// only destroy non generated textures
|
|
21079
|
-
if (
|
|
21080
|
-
tm.destroyTexture(
|
|
21084
|
+
if (texture && !texture.framebuffer) {
|
|
21085
|
+
tm.destroyTexture(texture);
|
|
21081
21086
|
}
|
|
21082
21087
|
for (var i = displayObject.children.length - 1; i >= 0; i--) {
|
|
21083
21088
|
this.unload(displayObject.children[i]);
|
|
@@ -23158,8 +23163,8 @@ var PIXI = (function (exports) {
|
|
|
23158
23163
|
var BatchRenderer = BatchPluginFactory.create();
|
|
23159
23164
|
|
|
23160
23165
|
/*!
|
|
23161
|
-
* @pixi/app - v5.3.
|
|
23162
|
-
* Compiled
|
|
23166
|
+
* @pixi/app - v5.3.11
|
|
23167
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
23163
23168
|
*
|
|
23164
23169
|
* @pixi/app is licensed under the MIT License.
|
|
23165
23170
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -23417,6 +23422,7 @@ var PIXI = (function (exports) {
|
|
|
23417
23422
|
* @private
|
|
23418
23423
|
*/
|
|
23419
23424
|
ResizePlugin.destroy = function () {
|
|
23425
|
+
window.removeEventListener('resize', this.queueResize);
|
|
23420
23426
|
this.cancelResize();
|
|
23421
23427
|
this.cancelResize = null;
|
|
23422
23428
|
this.queueResize = null;
|
|
@@ -23429,8 +23435,8 @@ var PIXI = (function (exports) {
|
|
|
23429
23435
|
Application.registerPlugin(ResizePlugin);
|
|
23430
23436
|
|
|
23431
23437
|
/*!
|
|
23432
|
-
* @pixi/extract - v5.3.
|
|
23433
|
-
* Compiled
|
|
23438
|
+
* @pixi/extract - v5.3.11
|
|
23439
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
23434
23440
|
*
|
|
23435
23441
|
* @pixi/extract is licensed under the MIT License.
|
|
23436
23442
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -26203,8 +26209,8 @@ var PIXI = (function (exports) {
|
|
|
26203
26209
|
};
|
|
26204
26210
|
|
|
26205
26211
|
/*!
|
|
26206
|
-
* @pixi/loaders - v5.3.
|
|
26207
|
-
* Compiled
|
|
26212
|
+
* @pixi/loaders - v5.3.11
|
|
26213
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
26208
26214
|
*
|
|
26209
26215
|
* @pixi/loaders is licensed under the MIT License.
|
|
26210
26216
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -26520,8 +26526,8 @@ var PIXI = (function (exports) {
|
|
|
26520
26526
|
}());
|
|
26521
26527
|
|
|
26522
26528
|
/*!
|
|
26523
|
-
* @pixi/particles - v5.3.
|
|
26524
|
-
* Compiled
|
|
26529
|
+
* @pixi/particles - v5.3.11
|
|
26530
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
26525
26531
|
*
|
|
26526
26532
|
* @pixi/particles is licensed under the MIT License.
|
|
26527
26533
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -27323,8 +27329,8 @@ var PIXI = (function (exports) {
|
|
|
27323
27329
|
}(ObjectRenderer));
|
|
27324
27330
|
|
|
27325
27331
|
/*!
|
|
27326
|
-
* @pixi/graphics - v5.3.
|
|
27327
|
-
* Compiled
|
|
27332
|
+
* @pixi/graphics - v5.3.11
|
|
27333
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
27328
27334
|
*
|
|
27329
27335
|
* @pixi/graphics is licensed under the MIT License.
|
|
27330
27336
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -29196,8 +29202,8 @@ var PIXI = (function (exports) {
|
|
|
29196
29202
|
currentGroup.size += data.size;
|
|
29197
29203
|
index += data.size;
|
|
29198
29204
|
textureId = nextTexture._batchLocation;
|
|
29199
|
-
this.addColors(colors, style.color, style.alpha, data.attribSize);
|
|
29200
|
-
this.addTextureIds(textureIds, textureId, data.attribSize);
|
|
29205
|
+
this.addColors(colors, style.color, style.alpha, data.attribSize, data.attribStart);
|
|
29206
|
+
this.addTextureIds(textureIds, textureId, data.attribSize, data.attribStart);
|
|
29201
29207
|
}
|
|
29202
29208
|
BaseTexture._globalBatch = TICK;
|
|
29203
29209
|
// upload..
|
|
@@ -29355,13 +29361,16 @@ var PIXI = (function (exports) {
|
|
|
29355
29361
|
* @param {number} color - Color to add
|
|
29356
29362
|
* @param {number} alpha - Alpha to use
|
|
29357
29363
|
* @param {number} size - Number of colors to add
|
|
29364
|
+
* @param {number} offset
|
|
29358
29365
|
*/
|
|
29359
|
-
GraphicsGeometry.prototype.addColors = function (colors, color, alpha, size) {
|
|
29366
|
+
GraphicsGeometry.prototype.addColors = function (colors, color, alpha, size, offset) {
|
|
29367
|
+
if (offset === void 0) { offset = 0; }
|
|
29360
29368
|
// TODO use the premultiply bits Ivan added
|
|
29361
29369
|
var rgb = (color >> 16) + (color & 0xff00) + ((color & 0xff) << 16);
|
|
29362
29370
|
var rgba = premultiplyTint(rgb, alpha);
|
|
29363
|
-
|
|
29364
|
-
|
|
29371
|
+
colors.length = Math.max(colors.length, offset + size);
|
|
29372
|
+
for (var i = 0; i < size; i++) {
|
|
29373
|
+
colors[offset + i] = rgba;
|
|
29365
29374
|
}
|
|
29366
29375
|
};
|
|
29367
29376
|
/**
|
|
@@ -29371,10 +29380,13 @@ var PIXI = (function (exports) {
|
|
|
29371
29380
|
* @param {number[]} textureIds
|
|
29372
29381
|
* @param {number} id
|
|
29373
29382
|
* @param {number} size
|
|
29383
|
+
* @param {number} offset
|
|
29374
29384
|
*/
|
|
29375
|
-
GraphicsGeometry.prototype.addTextureIds = function (textureIds, id, size) {
|
|
29376
|
-
|
|
29377
|
-
|
|
29385
|
+
GraphicsGeometry.prototype.addTextureIds = function (textureIds, id, size, offset) {
|
|
29386
|
+
if (offset === void 0) { offset = 0; }
|
|
29387
|
+
textureIds.length = Math.max(textureIds.length, offset + size);
|
|
29388
|
+
for (var i = 0; i < size; i++) {
|
|
29389
|
+
textureIds[offset + i] = id;
|
|
29378
29390
|
}
|
|
29379
29391
|
};
|
|
29380
29392
|
/**
|
|
@@ -30577,8 +30589,8 @@ var PIXI = (function (exports) {
|
|
|
30577
30589
|
}(Container));
|
|
30578
30590
|
|
|
30579
30591
|
/*!
|
|
30580
|
-
* @pixi/sprite - v5.3.
|
|
30581
|
-
* Compiled
|
|
30592
|
+
* @pixi/sprite - v5.3.11
|
|
30593
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
30582
30594
|
*
|
|
30583
30595
|
* @pixi/sprite is licensed under the MIT License.
|
|
30584
30596
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31158,8 +31170,8 @@ var PIXI = (function (exports) {
|
|
|
31158
31170
|
}(Container));
|
|
31159
31171
|
|
|
31160
31172
|
/*!
|
|
31161
|
-
* @pixi/text - v5.3.
|
|
31162
|
-
* Compiled
|
|
31173
|
+
* @pixi/text - v5.3.11
|
|
31174
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
31163
31175
|
*
|
|
31164
31176
|
* @pixi/text is licensed under the MIT License.
|
|
31165
31177
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33205,8 +33217,8 @@ var PIXI = (function (exports) {
|
|
|
33205
33217
|
}(Sprite));
|
|
33206
33218
|
|
|
33207
33219
|
/*!
|
|
33208
|
-
* @pixi/prepare - v5.3.
|
|
33209
|
-
* Compiled
|
|
33220
|
+
* @pixi/prepare - v5.3.11
|
|
33221
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
33210
33222
|
*
|
|
33211
33223
|
* @pixi/prepare is licensed under the MIT License.
|
|
33212
33224
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33831,8 +33843,8 @@ var PIXI = (function (exports) {
|
|
|
33831
33843
|
}());
|
|
33832
33844
|
|
|
33833
33845
|
/*!
|
|
33834
|
-
* @pixi/spritesheet - v5.3.
|
|
33835
|
-
* Compiled
|
|
33846
|
+
* @pixi/spritesheet - v5.3.11
|
|
33847
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
33836
33848
|
*
|
|
33837
33849
|
* @pixi/spritesheet is licensed under the MIT License.
|
|
33838
33850
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34162,8 +34174,8 @@ var PIXI = (function (exports) {
|
|
|
34162
34174
|
}());
|
|
34163
34175
|
|
|
34164
34176
|
/*!
|
|
34165
|
-
* @pixi/sprite-tiling - v5.3.
|
|
34166
|
-
* Compiled
|
|
34177
|
+
* @pixi/sprite-tiling - v5.3.11
|
|
34178
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
34167
34179
|
*
|
|
34168
34180
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
|
34169
34181
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34460,7 +34472,7 @@ var PIXI = (function (exports) {
|
|
|
34460
34472
|
|
|
34461
34473
|
var fragment$2 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture2D(uSampler, coord);\n gl_FragColor = texSample * uColor;\n}\n";
|
|
34462
34474
|
|
|
34463
|
-
var fragmentSimple = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4
|
|
34475
|
+
var fragmentSimple = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 texSample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = texSample * uColor;\n}\n";
|
|
34464
34476
|
|
|
34465
34477
|
var tempMat$1 = new Matrix();
|
|
34466
34478
|
/**
|
|
@@ -34563,8 +34575,8 @@ var PIXI = (function (exports) {
|
|
|
34563
34575
|
}(ObjectRenderer));
|
|
34564
34576
|
|
|
34565
34577
|
/*!
|
|
34566
|
-
* @pixi/mesh - v5.3.
|
|
34567
|
-
* Compiled
|
|
34578
|
+
* @pixi/mesh - v5.3.11
|
|
34579
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
34568
34580
|
*
|
|
34569
34581
|
* @pixi/mesh is licensed under the MIT License.
|
|
34570
34582
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35268,8 +35280,8 @@ var PIXI = (function (exports) {
|
|
|
35268
35280
|
}(Geometry));
|
|
35269
35281
|
|
|
35270
35282
|
/*!
|
|
35271
|
-
* @pixi/text-bitmap - v5.3.
|
|
35272
|
-
* Compiled
|
|
35283
|
+
* @pixi/text-bitmap - v5.3.11
|
|
35284
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
35273
35285
|
*
|
|
35274
35286
|
* @pixi/text-bitmap is licensed under the MIT License.
|
|
35275
35287
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35831,13 +35843,16 @@ var PIXI = (function (exports) {
|
|
|
35831
35843
|
/**
|
|
35832
35844
|
* @param {PIXI.BitmapFontData} data
|
|
35833
35845
|
* @param {PIXI.Texture[]|Object.<string, PIXI.Texture>} textures
|
|
35846
|
+
* @param {boolean} [ownsTextures] - Setting to `true` will destroy page textures
|
|
35847
|
+
* when the font is uninstalled.
|
|
35834
35848
|
*/
|
|
35835
|
-
function BitmapFont(data, textures) {
|
|
35849
|
+
function BitmapFont(data, textures, ownsTextures) {
|
|
35836
35850
|
var info = data.info[0];
|
|
35837
35851
|
var common = data.common[0];
|
|
35838
35852
|
var page = data.page[0];
|
|
35839
35853
|
var res = getResolutionOfUrl(page.file);
|
|
35840
35854
|
var pageTextures = {};
|
|
35855
|
+
this._ownsTextures = ownsTextures;
|
|
35841
35856
|
/**
|
|
35842
35857
|
* The name of the font face.
|
|
35843
35858
|
*
|
|
@@ -35922,7 +35937,9 @@ var PIXI = (function (exports) {
|
|
|
35922
35937
|
this.chars[id].texture = null;
|
|
35923
35938
|
}
|
|
35924
35939
|
for (var id in this.pageTextures) {
|
|
35925
|
-
this.
|
|
35940
|
+
if (this._ownsTextures) {
|
|
35941
|
+
this.pageTextures[id].destroy(true);
|
|
35942
|
+
}
|
|
35926
35943
|
this.pageTextures[id] = null;
|
|
35927
35944
|
}
|
|
35928
35945
|
// Set readonly null.
|
|
@@ -35937,10 +35954,13 @@ var PIXI = (function (exports) {
|
|
|
35937
35954
|
* characters map that could be provided as xml or raw string.
|
|
35938
35955
|
* @param {Object.<string, PIXI.Texture>|PIXI.Texture|PIXI.Texture[]}
|
|
35939
35956
|
* textures - List of textures for each page.
|
|
35957
|
+
* @param {boolean} managedTexture - Set to `true` to destroy page textures
|
|
35958
|
+
* when the font is uninstalled. By default fonts created with
|
|
35959
|
+
* `BitmapFont.from` or from the `BitmapFontLoader` are `true`.
|
|
35940
35960
|
* @return {PIXI.BitmapFont} Result font object with font, size, lineHeight
|
|
35941
35961
|
* and char fields.
|
|
35942
35962
|
*/
|
|
35943
|
-
BitmapFont.install = function (data, textures) {
|
|
35963
|
+
BitmapFont.install = function (data, textures, ownsTextures) {
|
|
35944
35964
|
var fontData;
|
|
35945
35965
|
if (data instanceof BitmapFontData) {
|
|
35946
35966
|
fontData = data;
|
|
@@ -35956,7 +35976,7 @@ var PIXI = (function (exports) {
|
|
|
35956
35976
|
if (textures instanceof Texture) {
|
|
35957
35977
|
textures = [textures];
|
|
35958
35978
|
}
|
|
35959
|
-
var font = new BitmapFont(fontData, textures);
|
|
35979
|
+
var font = new BitmapFont(fontData, textures, ownsTextures);
|
|
35960
35980
|
BitmapFont.available[font.font] = font;
|
|
35961
35981
|
return font;
|
|
35962
35982
|
};
|
|
@@ -35964,7 +35984,7 @@ var PIXI = (function (exports) {
|
|
|
35964
35984
|
* Remove bitmap font by name.
|
|
35965
35985
|
*
|
|
35966
35986
|
* @static
|
|
35967
|
-
* @param {string} name
|
|
35987
|
+
* @param {string} name - Name of the font to uninstall.
|
|
35968
35988
|
*/
|
|
35969
35989
|
BitmapFont.uninstall = function (name) {
|
|
35970
35990
|
var font = BitmapFont.available[name];
|
|
@@ -36107,7 +36127,7 @@ var PIXI = (function (exports) {
|
|
|
36107
36127
|
positionX += (textureGlyphWidth + (2 * padding)) * resolution;
|
|
36108
36128
|
positionX = Math.ceil(positionX);
|
|
36109
36129
|
}
|
|
36110
|
-
var font = new BitmapFont(fontData, textures);
|
|
36130
|
+
var font = new BitmapFont(fontData, textures, true);
|
|
36111
36131
|
// Make it easier to replace a font
|
|
36112
36132
|
if (BitmapFont.available[name] !== undefined) {
|
|
36113
36133
|
BitmapFont.uninstall(name);
|
|
@@ -36964,7 +36984,7 @@ var PIXI = (function (exports) {
|
|
|
36964
36984
|
var completed = function (page) {
|
|
36965
36985
|
textures[page.metadata.pageFile] = page.texture;
|
|
36966
36986
|
if (Object.keys(textures).length === data.page.length) {
|
|
36967
|
-
resource.bitmapFont = BitmapFont.install(data, textures);
|
|
36987
|
+
resource.bitmapFont = BitmapFont.install(data, textures, true);
|
|
36968
36988
|
next();
|
|
36969
36989
|
}
|
|
36970
36990
|
};
|
|
@@ -37054,8 +37074,8 @@ var PIXI = (function (exports) {
|
|
|
37054
37074
|
}());
|
|
37055
37075
|
|
|
37056
37076
|
/*!
|
|
37057
|
-
* @pixi/filter-alpha - v5.3.
|
|
37058
|
-
* Compiled
|
|
37077
|
+
* @pixi/filter-alpha - v5.3.11
|
|
37078
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
37059
37079
|
*
|
|
37060
37080
|
* @pixi/filter-alpha is licensed under the MIT License.
|
|
37061
37081
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37140,8 +37160,8 @@ var PIXI = (function (exports) {
|
|
|
37140
37160
|
}(Filter));
|
|
37141
37161
|
|
|
37142
37162
|
/*!
|
|
37143
|
-
* @pixi/filter-blur - v5.3.
|
|
37144
|
-
* Compiled
|
|
37163
|
+
* @pixi/filter-blur - v5.3.11
|
|
37164
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
37145
37165
|
*
|
|
37146
37166
|
* @pixi/filter-blur is licensed under the MIT License.
|
|
37147
37167
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37964,8 +37984,8 @@ var PIXI = (function (exports) {
|
|
|
37964
37984
|
}(Filter));
|
|
37965
37985
|
|
|
37966
37986
|
/*!
|
|
37967
|
-
* @pixi/filter-color-matrix - v5.3.
|
|
37968
|
-
* Compiled
|
|
37987
|
+
* @pixi/filter-color-matrix - v5.3.11
|
|
37988
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
37969
37989
|
*
|
|
37970
37990
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
|
37971
37991
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38493,8 +38513,8 @@ var PIXI = (function (exports) {
|
|
|
38493
38513
|
ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
|
|
38494
38514
|
|
|
38495
38515
|
/*!
|
|
38496
|
-
* @pixi/filter-displacement - v5.3.
|
|
38497
|
-
* Compiled
|
|
38516
|
+
* @pixi/filter-displacement - v5.3.11
|
|
38517
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
38498
38518
|
*
|
|
38499
38519
|
* @pixi/filter-displacement is licensed under the MIT License.
|
|
38500
38520
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38624,8 +38644,8 @@ var PIXI = (function (exports) {
|
|
|
38624
38644
|
}(Filter));
|
|
38625
38645
|
|
|
38626
38646
|
/*!
|
|
38627
|
-
* @pixi/filter-fxaa - v5.3.
|
|
38628
|
-
* Compiled
|
|
38647
|
+
* @pixi/filter-fxaa - v5.3.11
|
|
38648
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
38629
38649
|
*
|
|
38630
38650
|
* @pixi/filter-fxaa is licensed under the MIT License.
|
|
38631
38651
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38685,8 +38705,8 @@ var PIXI = (function (exports) {
|
|
|
38685
38705
|
}(Filter));
|
|
38686
38706
|
|
|
38687
38707
|
/*!
|
|
38688
|
-
* @pixi/filter-noise - v5.3.
|
|
38689
|
-
* Compiled
|
|
38708
|
+
* @pixi/filter-noise - v5.3.11
|
|
38709
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
38690
38710
|
*
|
|
38691
38711
|
* @pixi/filter-noise is licensed under the MIT License.
|
|
38692
38712
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38786,8 +38806,8 @@ var PIXI = (function (exports) {
|
|
|
38786
38806
|
}(Filter));
|
|
38787
38807
|
|
|
38788
38808
|
/*!
|
|
38789
|
-
* @pixi/mixin-cache-as-bitmap - v5.3.
|
|
38790
|
-
* Compiled
|
|
38809
|
+
* @pixi/mixin-cache-as-bitmap - v5.3.11
|
|
38810
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
38791
38811
|
*
|
|
38792
38812
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
|
38793
38813
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38928,6 +38948,7 @@ var PIXI = (function (exports) {
|
|
|
38928
38948
|
// this could be more elegant..
|
|
38929
38949
|
var cachedRenderTexture = renderer.renderTexture.current;
|
|
38930
38950
|
var cachedSourceFrame = renderer.renderTexture.sourceFrame.clone();
|
|
38951
|
+
var cachedDestinationFrame = renderer.renderTexture.destinationFrame.clone();
|
|
38931
38952
|
var cachedProjectionTransform = renderer.projection.transform;
|
|
38932
38953
|
// We also store the filter stack - I will definitely look to change how this works a little later down the line.
|
|
38933
38954
|
// const stack = renderer.filterManager.filterStack;
|
|
@@ -38944,7 +38965,7 @@ var PIXI = (function (exports) {
|
|
|
38944
38965
|
renderer.render(this, renderTexture, true, m, false);
|
|
38945
38966
|
// now restore the state be setting the new properties
|
|
38946
38967
|
renderer.projection.transform = cachedProjectionTransform;
|
|
38947
|
-
renderer.renderTexture.bind(cachedRenderTexture, cachedSourceFrame);
|
|
38968
|
+
renderer.renderTexture.bind(cachedRenderTexture, cachedSourceFrame, cachedDestinationFrame);
|
|
38948
38969
|
// renderer.filterManager.filterStack = stack;
|
|
38949
38970
|
this.render = this._renderCached;
|
|
38950
38971
|
// the rest is the same as for Canvas
|
|
@@ -39102,8 +39123,8 @@ var PIXI = (function (exports) {
|
|
|
39102
39123
|
};
|
|
39103
39124
|
|
|
39104
39125
|
/*!
|
|
39105
|
-
* @pixi/mixin-get-child-by-name - v5.3.
|
|
39106
|
-
* Compiled
|
|
39126
|
+
* @pixi/mixin-get-child-by-name - v5.3.11
|
|
39127
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
39107
39128
|
*
|
|
39108
39129
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
|
39109
39130
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -39149,8 +39170,8 @@ var PIXI = (function (exports) {
|
|
|
39149
39170
|
};
|
|
39150
39171
|
|
|
39151
39172
|
/*!
|
|
39152
|
-
* @pixi/mixin-get-global-position - v5.3.
|
|
39153
|
-
* Compiled
|
|
39173
|
+
* @pixi/mixin-get-global-position - v5.3.11
|
|
39174
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
39154
39175
|
*
|
|
39155
39176
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
|
39156
39177
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -40610,8 +40631,8 @@ var PIXI = (function (exports) {
|
|
|
40610
40631
|
}
|
|
40611
40632
|
|
|
40612
40633
|
/*!
|
|
40613
|
-
* @pixi/mesh-extras - v5.3.
|
|
40614
|
-
* Compiled
|
|
40634
|
+
* @pixi/mesh-extras - v5.3.11
|
|
40635
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
40615
40636
|
*
|
|
40616
40637
|
* @pixi/mesh-extras is licensed under the MIT License.
|
|
40617
40638
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -41334,8 +41355,8 @@ var PIXI = (function (exports) {
|
|
|
41334
41355
|
}(SimplePlane));
|
|
41335
41356
|
|
|
41336
41357
|
/*!
|
|
41337
|
-
* @pixi/sprite-animated - v5.3.
|
|
41338
|
-
* Compiled
|
|
41358
|
+
* @pixi/sprite-animated - v5.3.11
|
|
41359
|
+
* Compiled Mon, 01 Nov 2021 16:10:12 UTC
|
|
41339
41360
|
*
|
|
41340
41361
|
* @pixi/sprite-animated is licensed under the MIT License.
|
|
41341
41362
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -41575,6 +41596,9 @@ var PIXI = (function (exports) {
|
|
|
41575
41596
|
* @param {number} deltaTime - Time since last tick.
|
|
41576
41597
|
*/
|
|
41577
41598
|
AnimatedSprite.prototype.update = function (deltaTime) {
|
|
41599
|
+
if (!this._playing) {
|
|
41600
|
+
return;
|
|
41601
|
+
}
|
|
41578
41602
|
var elapsed = this.animationSpeed * deltaTime;
|
|
41579
41603
|
var previousFrame = this.currentFrame;
|
|
41580
41604
|
if (this._durations !== null) {
|
|
@@ -41706,7 +41730,7 @@ var PIXI = (function (exports) {
|
|
|
41706
41730
|
/**
|
|
41707
41731
|
* The array of textures used for this AnimatedSprite.
|
|
41708
41732
|
*
|
|
41709
|
-
* @member {PIXI.Texture[]}
|
|
41733
|
+
* @member {PIXI.Texture[]|PIXI.AnimatedSprite.FrameObject[]}
|
|
41710
41734
|
*/
|
|
41711
41735
|
get: function () {
|
|
41712
41736
|
return this._textures;
|
|
@@ -41810,7 +41834,7 @@ var PIXI = (function (exports) {
|
|
|
41810
41834
|
* @name VERSION
|
|
41811
41835
|
* @type {string}
|
|
41812
41836
|
*/
|
|
41813
|
-
var VERSION$1 = '5.3.
|
|
41837
|
+
var VERSION$1 = '5.3.11';
|
|
41814
41838
|
/**
|
|
41815
41839
|
* @namespace PIXI
|
|
41816
41840
|
*/
|