pixi.js 5.3.9 → 5.3.12

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 - v5.3.9
3
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
2
+ * pixi.js - v5.3.12
3
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
475
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
474
+ * @pixi/polyfill - v5.3.12
475
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
711
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
710
+ * @pixi/settings - v5.3.12
711
+ * Compiled Wed, 23 Mar 2022 18:34:28 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
- outerNode = findHoleBridge(hole, outerNode);
1621
- if (outerNode) {
1622
- var b = splitPolygon(outerNode, hole);
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.9
3462
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
3466
+ * @pixi/constants - v5.3.12
3467
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
3902
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
3906
+ * @pixi/utils - v5.3.12
3907
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9';
3938
+ var VERSION = '5.3.12';
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.9
4803
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
4807
+ * @pixi/math - v5.3.12
4808
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
6712
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
6716
+ * @pixi/display - v5.3.12
6717
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
8379
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
8383
+ * @pixi/accessibility - v5.3.12
8384
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
8963
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
8967
+ * @pixi/ticker - v5.3.12
8968
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
9806
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
9810
+ * @pixi/interaction - v5.3.12
9811
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
12002
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
12006
+ * @pixi/runner - v5.3.12
12007
+ * Compiled Wed, 23 Mar 2022 18:34:28 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.9
12198
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
12202
+ * @pixi/core - v5.3.12
12203
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
12199
12204
  *
12200
12205
  * @pixi/core is licensed under the MIT License.
12201
12206
  * http://www.opensource.org/licenses/mit-license
@@ -23158,8 +23163,8 @@ var PIXI = (function (exports) {
23158
23163
  var BatchRenderer = BatchPluginFactory.create();
23159
23164
 
23160
23165
  /*!
23161
- * @pixi/app - v5.3.9
23162
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
23166
+ * @pixi/app - v5.3.12
23167
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
23163
23168
  *
23164
23169
  * @pixi/app is licensed under the MIT License.
23165
23170
  * http://www.opensource.org/licenses/mit-license
@@ -23430,8 +23435,8 @@ var PIXI = (function (exports) {
23430
23435
  Application.registerPlugin(ResizePlugin);
23431
23436
 
23432
23437
  /*!
23433
- * @pixi/extract - v5.3.9
23434
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
23438
+ * @pixi/extract - v5.3.12
23439
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
23435
23440
  *
23436
23441
  * @pixi/extract is licensed under the MIT License.
23437
23442
  * http://www.opensource.org/licenses/mit-license
@@ -23648,10 +23653,10 @@ var PIXI = (function (exports) {
23648
23653
 
23649
23654
  'use strict';
23650
23655
 
23651
- function parseURI (str, opts) {
23652
- if (!str) { return undefined }
23656
+ var src = function (str, opts) {
23657
+ if ( opts === void 0 ) opts = {};
23653
23658
 
23654
- opts = opts || {};
23659
+ if (!str) { return undefined }
23655
23660
 
23656
23661
  var o = {
23657
23662
  key: [
@@ -23675,8 +23680,8 @@ var PIXI = (function (exports) {
23675
23680
  parser: /(?:^|&)([^&=]*)=?([^&]*)/g
23676
23681
  },
23677
23682
  parser: {
23678
- strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
23679
- loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
23683
+ strict: /^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
23684
+ loose: /^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/
23680
23685
  }
23681
23686
  };
23682
23687
 
@@ -23692,9 +23697,7 @@ var PIXI = (function (exports) {
23692
23697
  });
23693
23698
 
23694
23699
  return uri
23695
- }
23696
-
23697
- var parseUri = parseURI;
23700
+ };
23698
23701
 
23699
23702
  var miniSignals = createCommonjsModule(function (module, exports) {
23700
23703
  'use strict';
@@ -25027,7 +25030,7 @@ var PIXI = (function (exports) {
25027
25030
 
25028
25031
 
25029
25032
  tempAnchor$1.href = url;
25030
- url = parseUri(tempAnchor$1.href, {
25033
+ url = src(tempAnchor$1.href, {
25031
25034
  strictMode: true
25032
25035
  });
25033
25036
  var samePort = !url.port && loc.port === '' || url.port === loc.port;
@@ -26017,7 +26020,7 @@ var PIXI = (function (exports) {
26017
26020
  * @return {string} The prepared url.
26018
26021
  */
26019
26022
  _proto._prepareUrl = function _prepareUrl(url) {
26020
- var parsedUrl = parseUri(url, {
26023
+ var parsedUrl = src(url, {
26021
26024
  strictMode: true
26022
26025
  });
26023
26026
  var result; // absolute url, just use it as is.
@@ -26204,8 +26207,8 @@ var PIXI = (function (exports) {
26204
26207
  };
26205
26208
 
26206
26209
  /*!
26207
- * @pixi/loaders - v5.3.9
26208
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
26210
+ * @pixi/loaders - v5.3.12
26211
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
26209
26212
  *
26210
26213
  * @pixi/loaders is licensed under the MIT License.
26211
26214
  * http://www.opensource.org/licenses/mit-license
@@ -26521,8 +26524,8 @@ var PIXI = (function (exports) {
26521
26524
  }());
26522
26525
 
26523
26526
  /*!
26524
- * @pixi/particles - v5.3.9
26525
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
26527
+ * @pixi/particles - v5.3.12
26528
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
26526
26529
  *
26527
26530
  * @pixi/particles is licensed under the MIT License.
26528
26531
  * http://www.opensource.org/licenses/mit-license
@@ -27324,8 +27327,8 @@ var PIXI = (function (exports) {
27324
27327
  }(ObjectRenderer));
27325
27328
 
27326
27329
  /*!
27327
- * @pixi/graphics - v5.3.9
27328
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
27330
+ * @pixi/graphics - v5.3.12
27331
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
27329
27332
  *
27330
27333
  * @pixi/graphics is licensed under the MIT License.
27331
27334
  * http://www.opensource.org/licenses/mit-license
@@ -29197,8 +29200,8 @@ var PIXI = (function (exports) {
29197
29200
  currentGroup.size += data.size;
29198
29201
  index += data.size;
29199
29202
  textureId = nextTexture._batchLocation;
29200
- this.addColors(colors, style.color, style.alpha, data.attribSize);
29201
- this.addTextureIds(textureIds, textureId, data.attribSize);
29203
+ this.addColors(colors, style.color, style.alpha, data.attribSize, data.attribStart);
29204
+ this.addTextureIds(textureIds, textureId, data.attribSize, data.attribStart);
29202
29205
  }
29203
29206
  BaseTexture._globalBatch = TICK;
29204
29207
  // upload..
@@ -29356,13 +29359,16 @@ var PIXI = (function (exports) {
29356
29359
  * @param {number} color - Color to add
29357
29360
  * @param {number} alpha - Alpha to use
29358
29361
  * @param {number} size - Number of colors to add
29362
+ * @param {number} offset
29359
29363
  */
29360
- GraphicsGeometry.prototype.addColors = function (colors, color, alpha, size) {
29364
+ GraphicsGeometry.prototype.addColors = function (colors, color, alpha, size, offset) {
29365
+ if (offset === void 0) { offset = 0; }
29361
29366
  // TODO use the premultiply bits Ivan added
29362
29367
  var rgb = (color >> 16) + (color & 0xff00) + ((color & 0xff) << 16);
29363
29368
  var rgba = premultiplyTint(rgb, alpha);
29364
- while (size-- > 0) {
29365
- colors.push(rgba);
29369
+ colors.length = Math.max(colors.length, offset + size);
29370
+ for (var i = 0; i < size; i++) {
29371
+ colors[offset + i] = rgba;
29366
29372
  }
29367
29373
  };
29368
29374
  /**
@@ -29372,10 +29378,13 @@ var PIXI = (function (exports) {
29372
29378
  * @param {number[]} textureIds
29373
29379
  * @param {number} id
29374
29380
  * @param {number} size
29381
+ * @param {number} offset
29375
29382
  */
29376
- GraphicsGeometry.prototype.addTextureIds = function (textureIds, id, size) {
29377
- while (size-- > 0) {
29378
- textureIds.push(id);
29383
+ GraphicsGeometry.prototype.addTextureIds = function (textureIds, id, size, offset) {
29384
+ if (offset === void 0) { offset = 0; }
29385
+ textureIds.length = Math.max(textureIds.length, offset + size);
29386
+ for (var i = 0; i < size; i++) {
29387
+ textureIds[offset + i] = id;
29379
29388
  }
29380
29389
  };
29381
29390
  /**
@@ -30578,8 +30587,8 @@ var PIXI = (function (exports) {
30578
30587
  }(Container));
30579
30588
 
30580
30589
  /*!
30581
- * @pixi/sprite - v5.3.9
30582
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
30590
+ * @pixi/sprite - v5.3.12
30591
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
30583
30592
  *
30584
30593
  * @pixi/sprite is licensed under the MIT License.
30585
30594
  * http://www.opensource.org/licenses/mit-license
@@ -31159,8 +31168,8 @@ var PIXI = (function (exports) {
31159
31168
  }(Container));
31160
31169
 
31161
31170
  /*!
31162
- * @pixi/text - v5.3.9
31163
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
31171
+ * @pixi/text - v5.3.12
31172
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
31164
31173
  *
31165
31174
  * @pixi/text is licensed under the MIT License.
31166
31175
  * http://www.opensource.org/licenses/mit-license
@@ -32819,10 +32828,12 @@ var PIXI = (function (exports) {
32819
32828
  context.strokeStyle = 'black';
32820
32829
  var dropShadowColor = style.dropShadowColor;
32821
32830
  var rgb = hex2rgb(typeof dropShadowColor === 'number' ? dropShadowColor : string2hex(dropShadowColor));
32831
+ var dropShadowBlur = style.dropShadowBlur * this._resolution;
32832
+ var dropShadowDistance = style.dropShadowDistance * this._resolution;
32822
32833
  context.shadowColor = "rgba(" + rgb[0] * 255 + "," + rgb[1] * 255 + "," + rgb[2] * 255 + "," + style.dropShadowAlpha + ")";
32823
- context.shadowBlur = style.dropShadowBlur;
32824
- context.shadowOffsetX = Math.cos(style.dropShadowAngle) * style.dropShadowDistance;
32825
- context.shadowOffsetY = (Math.sin(style.dropShadowAngle) * style.dropShadowDistance) + dsOffsetShadow;
32834
+ context.shadowBlur = dropShadowBlur;
32835
+ context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance;
32836
+ context.shadowOffsetY = (Math.sin(style.dropShadowAngle) * dropShadowDistance) + dsOffsetShadow;
32826
32837
  }
32827
32838
  else {
32828
32839
  // set canvas text styles
@@ -33206,8 +33217,8 @@ var PIXI = (function (exports) {
33206
33217
  }(Sprite));
33207
33218
 
33208
33219
  /*!
33209
- * @pixi/prepare - v5.3.9
33210
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
33220
+ * @pixi/prepare - v5.3.12
33221
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
33211
33222
  *
33212
33223
  * @pixi/prepare is licensed under the MIT License.
33213
33224
  * http://www.opensource.org/licenses/mit-license
@@ -33832,8 +33843,8 @@ var PIXI = (function (exports) {
33832
33843
  }());
33833
33844
 
33834
33845
  /*!
33835
- * @pixi/spritesheet - v5.3.9
33836
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
33846
+ * @pixi/spritesheet - v5.3.12
33847
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
33837
33848
  *
33838
33849
  * @pixi/spritesheet is licensed under the MIT License.
33839
33850
  * http://www.opensource.org/licenses/mit-license
@@ -34163,8 +34174,8 @@ var PIXI = (function (exports) {
34163
34174
  }());
34164
34175
 
34165
34176
  /*!
34166
- * @pixi/sprite-tiling - v5.3.9
34167
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
34177
+ * @pixi/sprite-tiling - v5.3.12
34178
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
34168
34179
  *
34169
34180
  * @pixi/sprite-tiling is licensed under the MIT License.
34170
34181
  * http://www.opensource.org/licenses/mit-license
@@ -34461,7 +34472,7 @@ var PIXI = (function (exports) {
34461
34472
 
34462
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";
34463
34474
 
34464
- var fragmentSimple = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = sample * uColor;\n}\n";
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";
34465
34476
 
34466
34477
  var tempMat$1 = new Matrix();
34467
34478
  /**
@@ -34564,8 +34575,8 @@ var PIXI = (function (exports) {
34564
34575
  }(ObjectRenderer));
34565
34576
 
34566
34577
  /*!
34567
- * @pixi/mesh - v5.3.9
34568
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
34578
+ * @pixi/mesh - v5.3.12
34579
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
34569
34580
  *
34570
34581
  * @pixi/mesh is licensed under the MIT License.
34571
34582
  * http://www.opensource.org/licenses/mit-license
@@ -35269,8 +35280,8 @@ var PIXI = (function (exports) {
35269
35280
  }(Geometry));
35270
35281
 
35271
35282
  /*!
35272
- * @pixi/text-bitmap - v5.3.9
35273
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
35283
+ * @pixi/text-bitmap - v5.3.12
35284
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
35274
35285
  *
35275
35286
  * @pixi/text-bitmap is licensed under the MIT License.
35276
35287
  * http://www.opensource.org/licenses/mit-license
@@ -35746,21 +35757,15 @@ var PIXI = (function (exports) {
35746
35757
  // set canvas text styles
35747
35758
  context.fillStyle = generateFillStyle(canvas, context, style, resolution, [char], metrics);
35748
35759
  context.strokeStyle = style.stroke;
35749
- context.font = style.toFontString();
35750
- context.lineWidth = style.strokeThickness;
35751
- context.textBaseline = style.textBaseline;
35752
- context.lineJoin = style.lineJoin;
35753
- context.miterLimit = style.miterLimit;
35754
- // set canvas text styles
35755
- context.fillStyle = generateFillStyle(canvas, context, style, resolution, [char], metrics);
35756
- context.strokeStyle = style.stroke;
35757
- var dropShadowColor = style.dropShadowColor;
35758
- var rgb = hex2rgb(typeof dropShadowColor === 'number' ? dropShadowColor : string2hex(dropShadowColor));
35759
35760
  if (style.dropShadow) {
35761
+ var dropShadowColor = style.dropShadowColor;
35762
+ var rgb = hex2rgb(typeof dropShadowColor === 'number' ? dropShadowColor : string2hex(dropShadowColor));
35763
+ var dropShadowBlur = style.dropShadowBlur * resolution;
35764
+ var dropShadowDistance = style.dropShadowDistance * resolution;
35760
35765
  context.shadowColor = "rgba(" + rgb[0] * 255 + "," + rgb[1] * 255 + "," + rgb[2] * 255 + "," + style.dropShadowAlpha + ")";
35761
- context.shadowBlur = style.dropShadowBlur;
35762
- context.shadowOffsetX = Math.cos(style.dropShadowAngle) * style.dropShadowDistance;
35763
- context.shadowOffsetY = Math.sin(style.dropShadowAngle) * style.dropShadowDistance;
35766
+ context.shadowBlur = dropShadowBlur;
35767
+ context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance;
35768
+ context.shadowOffsetY = Math.sin(style.dropShadowAngle) * dropShadowDistance;
35764
35769
  }
35765
35770
  else {
35766
35771
  context.shadowColor = 'black';
@@ -37063,8 +37068,8 @@ var PIXI = (function (exports) {
37063
37068
  }());
37064
37069
 
37065
37070
  /*!
37066
- * @pixi/filter-alpha - v5.3.9
37067
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
37071
+ * @pixi/filter-alpha - v5.3.12
37072
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
37068
37073
  *
37069
37074
  * @pixi/filter-alpha is licensed under the MIT License.
37070
37075
  * http://www.opensource.org/licenses/mit-license
@@ -37149,8 +37154,8 @@ var PIXI = (function (exports) {
37149
37154
  }(Filter));
37150
37155
 
37151
37156
  /*!
37152
- * @pixi/filter-blur - v5.3.9
37153
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
37157
+ * @pixi/filter-blur - v5.3.12
37158
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
37154
37159
  *
37155
37160
  * @pixi/filter-blur is licensed under the MIT License.
37156
37161
  * http://www.opensource.org/licenses/mit-license
@@ -37973,8 +37978,8 @@ var PIXI = (function (exports) {
37973
37978
  }(Filter));
37974
37979
 
37975
37980
  /*!
37976
- * @pixi/filter-color-matrix - v5.3.9
37977
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
37981
+ * @pixi/filter-color-matrix - v5.3.12
37982
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
37978
37983
  *
37979
37984
  * @pixi/filter-color-matrix is licensed under the MIT License.
37980
37985
  * http://www.opensource.org/licenses/mit-license
@@ -38502,8 +38507,8 @@ var PIXI = (function (exports) {
38502
38507
  ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
38503
38508
 
38504
38509
  /*!
38505
- * @pixi/filter-displacement - v5.3.9
38506
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
38510
+ * @pixi/filter-displacement - v5.3.12
38511
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
38507
38512
  *
38508
38513
  * @pixi/filter-displacement is licensed under the MIT License.
38509
38514
  * http://www.opensource.org/licenses/mit-license
@@ -38633,8 +38638,8 @@ var PIXI = (function (exports) {
38633
38638
  }(Filter));
38634
38639
 
38635
38640
  /*!
38636
- * @pixi/filter-fxaa - v5.3.9
38637
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
38641
+ * @pixi/filter-fxaa - v5.3.12
38642
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
38638
38643
  *
38639
38644
  * @pixi/filter-fxaa is licensed under the MIT License.
38640
38645
  * http://www.opensource.org/licenses/mit-license
@@ -38694,8 +38699,8 @@ var PIXI = (function (exports) {
38694
38699
  }(Filter));
38695
38700
 
38696
38701
  /*!
38697
- * @pixi/filter-noise - v5.3.9
38698
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
38702
+ * @pixi/filter-noise - v5.3.12
38703
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
38699
38704
  *
38700
38705
  * @pixi/filter-noise is licensed under the MIT License.
38701
38706
  * http://www.opensource.org/licenses/mit-license
@@ -38795,8 +38800,8 @@ var PIXI = (function (exports) {
38795
38800
  }(Filter));
38796
38801
 
38797
38802
  /*!
38798
- * @pixi/mixin-cache-as-bitmap - v5.3.9
38799
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
38803
+ * @pixi/mixin-cache-as-bitmap - v5.3.12
38804
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
38800
38805
  *
38801
38806
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
38802
38807
  * http://www.opensource.org/licenses/mit-license
@@ -39112,8 +39117,8 @@ var PIXI = (function (exports) {
39112
39117
  };
39113
39118
 
39114
39119
  /*!
39115
- * @pixi/mixin-get-child-by-name - v5.3.9
39116
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
39120
+ * @pixi/mixin-get-child-by-name - v5.3.12
39121
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
39117
39122
  *
39118
39123
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
39119
39124
  * http://www.opensource.org/licenses/mit-license
@@ -39159,8 +39164,8 @@ var PIXI = (function (exports) {
39159
39164
  };
39160
39165
 
39161
39166
  /*!
39162
- * @pixi/mixin-get-global-position - v5.3.9
39163
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
39167
+ * @pixi/mixin-get-global-position - v5.3.12
39168
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
39164
39169
  *
39165
39170
  * @pixi/mixin-get-global-position is licensed under the MIT License.
39166
39171
  * http://www.opensource.org/licenses/mit-license
@@ -40620,8 +40625,8 @@ var PIXI = (function (exports) {
40620
40625
  }
40621
40626
 
40622
40627
  /*!
40623
- * @pixi/mesh-extras - v5.3.9
40624
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
40628
+ * @pixi/mesh-extras - v5.3.12
40629
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
40625
40630
  *
40626
40631
  * @pixi/mesh-extras is licensed under the MIT License.
40627
40632
  * http://www.opensource.org/licenses/mit-license
@@ -41344,8 +41349,8 @@ var PIXI = (function (exports) {
41344
41349
  }(SimplePlane));
41345
41350
 
41346
41351
  /*!
41347
- * @pixi/sprite-animated - v5.3.9
41348
- * Compiled Wed, 24 Mar 2021 19:54:16 UTC
41352
+ * @pixi/sprite-animated - v5.3.12
41353
+ * Compiled Wed, 23 Mar 2022 18:34:28 UTC
41349
41354
  *
41350
41355
  * @pixi/sprite-animated is licensed under the MIT License.
41351
41356
  * http://www.opensource.org/licenses/mit-license
@@ -41823,7 +41828,7 @@ var PIXI = (function (exports) {
41823
41828
  * @name VERSION
41824
41829
  * @type {string}
41825
41830
  */
41826
- var VERSION$1 = '5.3.9';
41831
+ var VERSION$1 = '5.3.12';
41827
41832
  /**
41828
41833
  * @namespace PIXI
41829
41834
  */