pixi.js 6.2.0 → 6.2.1

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * pixi.js - v6.2.0
3
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
2
+ * pixi.js - v6.2.1
3
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
4
4
  *
5
5
  * pixi.js is licensed under the MIT License.
6
6
  * http://www.opensource.org/licenses/mit-license
@@ -423,8 +423,8 @@ var PIXI = (function (exports) {
423
423
  };
424
424
 
425
425
  /*!
426
- * @pixi/polyfill - v6.2.0
427
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
426
+ * @pixi/polyfill - v6.2.1
427
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
428
428
  *
429
429
  * @pixi/polyfill is licensed under the MIT License.
430
430
  * http://www.opensource.org/licenses/mit-license
@@ -659,8 +659,8 @@ var PIXI = (function (exports) {
659
659
  }
660
660
 
661
661
  /*!
662
- * @pixi/settings - v6.2.0
663
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
662
+ * @pixi/settings - v6.2.1
663
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
664
664
  *
665
665
  * @pixi/settings is licensed under the MIT License.
666
666
  * http://www.opensource.org/licenses/mit-license
@@ -722,8 +722,8 @@ var PIXI = (function (exports) {
722
722
  }
723
723
 
724
724
  /*!
725
- * @pixi/constants - v6.2.0
726
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
725
+ * @pixi/constants - v6.2.1
726
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
727
727
  *
728
728
  * @pixi/constants is licensed under the MIT License.
729
729
  * http://www.opensource.org/licenses/mit-license
@@ -3971,8 +3971,8 @@ var PIXI = (function (exports) {
3971
3971
  };
3972
3972
 
3973
3973
  /*!
3974
- * @pixi/constants - v6.2.0
3975
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
3974
+ * @pixi/constants - v6.2.1
3975
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
3976
3976
  *
3977
3977
  * @pixi/constants is licensed under the MIT License.
3978
3978
  * http://www.opensource.org/licenses/mit-license
@@ -4486,8 +4486,8 @@ var PIXI = (function (exports) {
4486
4486
  })(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {}));
4487
4487
 
4488
4488
  /*!
4489
- * @pixi/utils - v6.2.0
4490
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
4489
+ * @pixi/utils - v6.2.1
4490
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
4491
4491
  *
4492
4492
  * @pixi/utils is licensed under the MIT License.
4493
4493
  * http://www.opensource.org/licenses/mit-license
@@ -4545,7 +4545,7 @@ var PIXI = (function (exports) {
4545
4545
  settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
4546
4546
 
4547
4547
  var saidHello = false;
4548
- var VERSION = '6.2.0';
4548
+ var VERSION = '6.2.1';
4549
4549
  /**
4550
4550
  * Skips the hello message of renderers that are created after this is run.
4551
4551
  *
@@ -5709,8 +5709,8 @@ var PIXI = (function (exports) {
5709
5709
  };
5710
5710
 
5711
5711
  /*!
5712
- * @pixi/math - v6.2.0
5713
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
5712
+ * @pixi/math - v6.2.1
5713
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
5714
5714
  *
5715
5715
  * @pixi/math is licensed under the MIT License.
5716
5716
  * http://www.opensource.org/licenses/mit-license
@@ -5765,64 +5765,33 @@ var PIXI = (function (exports) {
5765
5765
  *
5766
5766
  * @memberof PIXI
5767
5767
  * @typedef {object} ISize
5768
- * @property {number} width - Width component
5769
- * @property {number} height - Height component
5770
5768
  */
5771
5769
  /**
5772
5770
  * Rectangle object is an area defined by its position, as indicated by its top-left corner
5773
5771
  * point (x, y) and by its width and its height.
5774
5772
  *
5775
- * @class
5776
5773
  * @memberof PIXI
5777
5774
  */
5778
5775
  var Rectangle = /** @class */ (function () {
5779
5776
  /**
5780
- * @param {number} [x=0] - The X coordinate of the upper-left corner of the rectangle
5781
- * @param {number} [y=0] - The Y coordinate of the upper-left corner of the rectangle
5782
- * @param {number} [width=0] - The overall width of this rectangle
5783
- * @param {number} [height=0] - The overall height of this rectangle
5777
+ * @param x - The X coordinate of the upper-left corner of the rectangle
5778
+ * @param y - The Y coordinate of the upper-left corner of the rectangle
5779
+ * @param width - The overall width of the rectangle
5780
+ * @param height - The overall height of the rectangle
5784
5781
  */
5785
5782
  function Rectangle(x, y, width, height) {
5786
5783
  if (x === void 0) { x = 0; }
5787
5784
  if (y === void 0) { y = 0; }
5788
5785
  if (width === void 0) { width = 0; }
5789
5786
  if (height === void 0) { height = 0; }
5790
- /**
5791
- * @member {number}
5792
- * @default 0
5793
- */
5794
5787
  this.x = Number(x);
5795
- /**
5796
- * @member {number}
5797
- * @default 0
5798
- */
5799
5788
  this.y = Number(y);
5800
- /**
5801
- * @member {number}
5802
- * @default 0
5803
- */
5804
5789
  this.width = Number(width);
5805
- /**
5806
- * @member {number}
5807
- * @default 0
5808
- */
5809
5790
  this.height = Number(height);
5810
- /**
5811
- * The type of the object, mainly used to avoid `instanceof` checks
5812
- *
5813
- * @member {number}
5814
- * @readOnly
5815
- * @default PIXI.SHAPES.RECT
5816
- * @see PIXI.SHAPES
5817
- */
5818
5791
  this.type = exports.SHAPES.RECT;
5819
5792
  }
5820
5793
  Object.defineProperty(Rectangle.prototype, "left", {
5821
- /**
5822
- * returns the left edge of the rectangle
5823
- *
5824
- * @member {number}
5825
- */
5794
+ /** Returns the left edge of the rectangle. */
5826
5795
  get: function () {
5827
5796
  return this.x;
5828
5797
  },
@@ -5830,11 +5799,7 @@ var PIXI = (function (exports) {
5830
5799
  configurable: true
5831
5800
  });
5832
5801
  Object.defineProperty(Rectangle.prototype, "right", {
5833
- /**
5834
- * returns the right edge of the rectangle
5835
- *
5836
- * @member {number}
5837
- */
5802
+ /** Returns the right edge of the rectangle. */
5838
5803
  get: function () {
5839
5804
  return this.x + this.width;
5840
5805
  },
@@ -5842,11 +5807,7 @@ var PIXI = (function (exports) {
5842
5807
  configurable: true
5843
5808
  });
5844
5809
  Object.defineProperty(Rectangle.prototype, "top", {
5845
- /**
5846
- * returns the top edge of the rectangle
5847
- *
5848
- * @member {number}
5849
- */
5810
+ /** Returns the top edge of the rectangle. */
5850
5811
  get: function () {
5851
5812
  return this.y;
5852
5813
  },
@@ -5854,11 +5815,7 @@ var PIXI = (function (exports) {
5854
5815
  configurable: true
5855
5816
  });
5856
5817
  Object.defineProperty(Rectangle.prototype, "bottom", {
5857
- /**
5858
- * returns the bottom edge of the rectangle
5859
- *
5860
- * @member {number}
5861
- */
5818
+ /** Returns the bottom edge of the rectangle. */
5862
5819
  get: function () {
5863
5820
  return this.y + this.height;
5864
5821
  },
@@ -5866,14 +5823,7 @@ var PIXI = (function (exports) {
5866
5823
  configurable: true
5867
5824
  });
5868
5825
  Object.defineProperty(Rectangle, "EMPTY", {
5869
- /**
5870
- * A constant empty rectangle.
5871
- *
5872
- * @static
5873
- * @constant
5874
- * @member {PIXI.Rectangle}
5875
- * @return {PIXI.Rectangle} An empty rectangle
5876
- */
5826
+ /** A constant empty rectangle. */
5877
5827
  get: function () {
5878
5828
  return new Rectangle(0, 0, 0, 0);
5879
5829
  },
@@ -5883,7 +5833,7 @@ var PIXI = (function (exports) {
5883
5833
  /**
5884
5834
  * Creates a clone of this Rectangle
5885
5835
  *
5886
- * @return {PIXI.Rectangle} a copy of the rectangle
5836
+ * @return a copy of the rectangle
5887
5837
  */
5888
5838
  Rectangle.prototype.clone = function () {
5889
5839
  return new Rectangle(this.x, this.y, this.width, this.height);
@@ -5891,8 +5841,8 @@ var PIXI = (function (exports) {
5891
5841
  /**
5892
5842
  * Copies another rectangle to this one.
5893
5843
  *
5894
- * @param {PIXI.Rectangle} rectangle - The rectangle to copy from.
5895
- * @return {PIXI.Rectangle} Returns itself.
5844
+ * @param rectangle - The rectangle to copy from.
5845
+ * @return Returns itself.
5896
5846
  */
5897
5847
  Rectangle.prototype.copyFrom = function (rectangle) {
5898
5848
  this.x = rectangle.x;
@@ -5904,8 +5854,8 @@ var PIXI = (function (exports) {
5904
5854
  /**
5905
5855
  * Copies this rectangle to another one.
5906
5856
  *
5907
- * @param {PIXI.Rectangle} rectangle - The rectangle to copy to.
5908
- * @return {PIXI.Rectangle} Returns given parameter.
5857
+ * @param rectangle - The rectangle to copy to.
5858
+ * @return Returns given parameter.
5909
5859
  */
5910
5860
  Rectangle.prototype.copyTo = function (rectangle) {
5911
5861
  rectangle.x = this.x;
@@ -5917,9 +5867,9 @@ var PIXI = (function (exports) {
5917
5867
  /**
5918
5868
  * Checks whether the x and y coordinates given are contained within this Rectangle
5919
5869
  *
5920
- * @param {number} x - The X coordinate of the point to test
5921
- * @param {number} y - The Y coordinate of the point to test
5922
- * @return {boolean} Whether the x/y coordinates are within this Rectangle
5870
+ * @param x - The X coordinate of the point to test
5871
+ * @param y - The Y coordinate of the point to test
5872
+ * @return Whether the x/y coordinates are within this Rectangle
5923
5873
  */
5924
5874
  Rectangle.prototype.contains = function (x, y) {
5925
5875
  if (this.width <= 0 || this.height <= 0) {
@@ -5936,9 +5886,9 @@ var PIXI = (function (exports) {
5936
5886
  * Pads the rectangle making it grow in all directions.
5937
5887
  * If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
5938
5888
  *
5939
- * @param {number} [paddingX=0] - The horizontal padding amount.
5940
- * @param {number} [paddingY=0] - The vertical padding amount.
5941
- * @return {PIXI.Rectangle} Returns itself.
5889
+ * @param paddingX - The horizontal padding amount.
5890
+ * @param paddingY - The vertical padding amount.
5891
+ * @return Returns itself.
5942
5892
  */
5943
5893
  Rectangle.prototype.pad = function (paddingX, paddingY) {
5944
5894
  if (paddingX === void 0) { paddingX = 0; }
@@ -5952,8 +5902,8 @@ var PIXI = (function (exports) {
5952
5902
  /**
5953
5903
  * Fits this rectangle around the passed one.
5954
5904
  *
5955
- * @param {PIXI.Rectangle} rectangle - The rectangle to fit.
5956
- * @return {PIXI.Rectangle} Returns itself.
5905
+ * @param rectangle - The rectangle to fit.
5906
+ * @return Returns itself.
5957
5907
  */
5958
5908
  Rectangle.prototype.fit = function (rectangle) {
5959
5909
  var x1 = Math.max(this.x, rectangle.x);
@@ -5969,9 +5919,9 @@ var PIXI = (function (exports) {
5969
5919
  /**
5970
5920
  * Enlarges rectangle that way its corners lie on grid
5971
5921
  *
5972
- * @param {number} [resolution=1] - resolution
5973
- * @param {number} [eps=0.001] - precision
5974
- * @return {PIXI.Rectangle} Returns itself.
5922
+ * @param resolution - resolution
5923
+ * @param eps - precision
5924
+ * @return Returns itself.
5975
5925
  */
5976
5926
  Rectangle.prototype.ceil = function (resolution, eps) {
5977
5927
  if (resolution === void 0) { resolution = 1; }
@@ -5987,8 +5937,8 @@ var PIXI = (function (exports) {
5987
5937
  /**
5988
5938
  * Enlarges this rectangle to include the passed rectangle.
5989
5939
  *
5990
- * @param {PIXI.Rectangle} rectangle - The rectangle to include.
5991
- * @return {PIXI.Rectangle} Returns itself.
5940
+ * @param rectangle - The rectangle to include.
5941
+ * @return Returns itself.
5992
5942
  */
5993
5943
  Rectangle.prototype.enlarge = function (rectangle) {
5994
5944
  var x1 = Math.min(this.x, rectangle.x);
@@ -6133,7 +6083,6 @@ var PIXI = (function (exports) {
6133
6083
  /**
6134
6084
  * A class to define a shape via user defined coordinates.
6135
6085
  *
6136
- * @class
6137
6086
  * @memberof PIXI
6138
6087
  */
6139
6088
  var Polygon = /** @class */ (function () {
@@ -6160,32 +6109,14 @@ var PIXI = (function (exports) {
6160
6109
  }
6161
6110
  flat = p;
6162
6111
  }
6163
- /**
6164
- * An array of the points of this polygon
6165
- *
6166
- * @member {number[]}
6167
- */
6168
6112
  this.points = flat;
6169
- /**
6170
- * The type of the object, mainly used to avoid `instanceof` checks
6171
- *
6172
- * @member {number}
6173
- * @readOnly
6174
- * @default PIXI.SHAPES.POLY
6175
- * @see PIXI.SHAPES
6176
- */
6177
6113
  this.type = exports.SHAPES.POLY;
6178
- /**
6179
- * `false` after moveTo, `true` after `closePath`. In all other cases it is `true`.
6180
- * @member {boolean}
6181
- * @default true
6182
- */
6183
6114
  this.closeStroke = true;
6184
6115
  }
6185
6116
  /**
6186
- * Creates a clone of this polygon
6117
+ * Creates a clone of this polygon.
6187
6118
  *
6188
- * @return {PIXI.Polygon} a copy of the polygon
6119
+ * @return - A copy of the polygon.
6189
6120
  */
6190
6121
  Polygon.prototype.clone = function () {
6191
6122
  var points = this.points.slice();
@@ -6194,11 +6125,11 @@ var PIXI = (function (exports) {
6194
6125
  return polygon;
6195
6126
  };
6196
6127
  /**
6197
- * Checks whether the x and y coordinates passed to this function are contained within this polygon
6128
+ * Checks whether the x and y coordinates passed to this function are contained within this polygon.
6198
6129
  *
6199
- * @param {number} x - The X coordinate of the point to test
6200
- * @param {number} y - The Y coordinate of the point to test
6201
- * @return {boolean} Whether the x/y coordinates are within this polygon
6130
+ * @param x - The X coordinate of the point to test.
6131
+ * @param y - The Y coordinate of the point to test.
6132
+ * @return - Whether the x/y coordinates are within this polygon.
6202
6133
  */
6203
6134
  Polygon.prototype.contains = function (x, y) {
6204
6135
  var inside = false;
@@ -6302,25 +6233,26 @@ var PIXI = (function (exports) {
6302
6233
  }
6303
6234
  if (x >= this.x && x <= this.x + this.width) {
6304
6235
  if (y >= this.y && y <= this.y + this.height) {
6305
- if ((y >= this.y + this.radius && y <= this.y + this.height - this.radius)
6306
- || (x >= this.x + this.radius && x <= this.x + this.width - this.radius)) {
6236
+ var radius = Math.max(0, Math.min(this.radius, Math.min(this.width, this.height) / 2));
6237
+ if ((y >= this.y + radius && y <= this.y + this.height - radius)
6238
+ || (x >= this.x + radius && x <= this.x + this.width - radius)) {
6307
6239
  return true;
6308
6240
  }
6309
- var dx = x - (this.x + this.radius);
6310
- var dy = y - (this.y + this.radius);
6311
- var radius2 = this.radius * this.radius;
6241
+ var dx = x - (this.x + radius);
6242
+ var dy = y - (this.y + radius);
6243
+ var radius2 = radius * radius;
6312
6244
  if ((dx * dx) + (dy * dy) <= radius2) {
6313
6245
  return true;
6314
6246
  }
6315
- dx = x - (this.x + this.width - this.radius);
6247
+ dx = x - (this.x + this.width - radius);
6316
6248
  if ((dx * dx) + (dy * dy) <= radius2) {
6317
6249
  return true;
6318
6250
  }
6319
- dy = y - (this.y + this.height - this.radius);
6251
+ dy = y - (this.y + this.height - radius);
6320
6252
  if ((dx * dx) + (dy * dy) <= radius2) {
6321
6253
  return true;
6322
6254
  }
6323
- dx = x - (this.x + this.radius);
6255
+ dx = x - (this.x + radius);
6324
6256
  if ((dx * dx) + (dy * dy) <= radius2) {
6325
6257
  return true;
6326
6258
  }
@@ -7397,8 +7329,8 @@ var PIXI = (function (exports) {
7397
7329
  }());
7398
7330
 
7399
7331
  /*!
7400
- * @pixi/display - v6.2.0
7401
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
7332
+ * @pixi/display - v6.2.1
7333
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
7402
7334
  *
7403
7335
  * @pixi/display is licensed under the MIT License.
7404
7336
  * http://www.opensource.org/licenses/mit-license
@@ -8787,8 +8719,8 @@ var PIXI = (function (exports) {
8787
8719
  DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
8788
8720
 
8789
8721
  /*!
8790
- * @pixi/constants - v6.2.0
8791
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
8722
+ * @pixi/constants - v6.2.1
8723
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
8792
8724
  *
8793
8725
  * @pixi/constants is licensed under the MIT License.
8794
8726
  * http://www.opensource.org/licenses/mit-license
@@ -9899,8 +9831,8 @@ var PIXI = (function (exports) {
9899
9831
  Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
9900
9832
 
9901
9833
  /*!
9902
- * @pixi/accessibility - v6.2.0
9903
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
9834
+ * @pixi/accessibility - v6.2.1
9835
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
9904
9836
  *
9905
9837
  * @pixi/accessibility is licensed under the MIT License.
9906
9838
  * http://www.opensource.org/licenses/mit-license
@@ -10444,8 +10376,8 @@ var PIXI = (function (exports) {
10444
10376
  }());
10445
10377
 
10446
10378
  /*!
10447
- * @pixi/ticker - v6.2.0
10448
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
10379
+ * @pixi/ticker - v6.2.1
10380
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
10449
10381
  *
10450
10382
  * @pixi/ticker is licensed under the MIT License.
10451
10383
  * http://www.opensource.org/licenses/mit-license
@@ -11188,8 +11120,8 @@ var PIXI = (function (exports) {
11188
11120
  }());
11189
11121
 
11190
11122
  /*!
11191
- * @pixi/interaction - v6.2.0
11192
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
11123
+ * @pixi/interaction - v6.2.1
11124
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
11193
11125
  *
11194
11126
  * @pixi/interaction is licensed under the MIT License.
11195
11127
  * http://www.opensource.org/licenses/mit-license
@@ -13427,8 +13359,8 @@ var PIXI = (function (exports) {
13427
13359
  }(eventemitter3));
13428
13360
 
13429
13361
  /*!
13430
- * @pixi/runner - v6.2.0
13431
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
13362
+ * @pixi/runner - v6.2.1
13363
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
13432
13364
  *
13433
13365
  * @pixi/runner is licensed under the MIT License.
13434
13366
  * http://www.opensource.org/licenses/mit-license
@@ -13616,8 +13548,8 @@ var PIXI = (function (exports) {
13616
13548
  });
13617
13549
 
13618
13550
  /*!
13619
- * @pixi/core - v6.2.0
13620
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
13551
+ * @pixi/core - v6.2.1
13552
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
13621
13553
  *
13622
13554
  * @pixi/core is licensed under the MIT License.
13623
13555
  * http://www.opensource.org/licenses/mit-license
@@ -13793,73 +13725,28 @@ var PIXI = (function (exports) {
13793
13725
  *
13794
13726
  * Uploading of a base texture to the GPU is required.
13795
13727
  *
13796
- * @class
13797
13728
  * @memberof PIXI
13798
13729
  */
13799
13730
  var Resource = /** @class */ (function () {
13800
13731
  /**
13801
- * @param {number} [width=0] - Width of the resource
13802
- * @param {number} [height=0] - Height of the resource
13732
+ * @param width - Width of the resource
13733
+ * @param height - Height of the resource
13803
13734
  */
13804
13735
  function Resource(width, height) {
13805
13736
  if (width === void 0) { width = 0; }
13806
13737
  if (height === void 0) { height = 0; }
13807
- /**
13808
- * Internal width of the resource
13809
- * @member {number}
13810
- * @protected
13811
- */
13812
13738
  this._width = width;
13813
- /**
13814
- * Internal height of the resource
13815
- * @member {number}
13816
- * @protected
13817
- */
13818
13739
  this._height = height;
13819
- /**
13820
- * If resource has been destroyed
13821
- * @member {boolean}
13822
- * @readonly
13823
- * @default false
13824
- */
13825
13740
  this.destroyed = false;
13826
- /**
13827
- * `true` if resource is created by BaseTexture
13828
- * useful for doing cleanup with BaseTexture destroy
13829
- * and not cleaning up resources that were created
13830
- * externally.
13831
- * @member {boolean}
13832
- * @protected
13833
- */
13834
13741
  this.internal = false;
13835
- /**
13836
- * Mini-runner for handling resize events
13837
- * accepts 2 parameters: width, height
13838
- *
13839
- * @member {Runner}
13840
- * @private
13841
- */
13842
13742
  this.onResize = new Runner('setRealSize');
13843
- /**
13844
- * Mini-runner for handling update events
13845
- *
13846
- * @member {Runner}
13847
- * @private
13848
- */
13849
13743
  this.onUpdate = new Runner('update');
13850
- /**
13851
- * Handle internal errors, such as loading errors
13852
- * accepts 1 param: error
13853
- *
13854
- * @member {Runner}
13855
- * @private
13856
- */
13857
13744
  this.onError = new Runner('onError');
13858
13745
  }
13859
13746
  /**
13860
13747
  * Bind to a parent BaseTexture
13861
13748
  *
13862
- * @param {PIXI.BaseTexture} baseTexture - Parent texture
13749
+ * @param baseTexture - Parent texture
13863
13750
  */
13864
13751
  Resource.prototype.bind = function (baseTexture) {
13865
13752
  this.onResize.add(baseTexture);
@@ -13874,7 +13761,7 @@ var PIXI = (function (exports) {
13874
13761
  /**
13875
13762
  * Unbind to a parent BaseTexture
13876
13763
  *
13877
- * @param {PIXI.BaseTexture} baseTexture - Parent texture
13764
+ * @param baseTexture - Parent texture
13878
13765
  */
13879
13766
  Resource.prototype.unbind = function (baseTexture) {
13880
13767
  this.onResize.remove(baseTexture);
@@ -13883,8 +13770,9 @@ var PIXI = (function (exports) {
13883
13770
  };
13884
13771
  /**
13885
13772
  * Trigger a resize event
13886
- * @param {number} width - X dimension
13887
- * @param {number} height - Y dimension
13773
+ *
13774
+ * @param width - X dimension
13775
+ * @param height - Y dimension
13888
13776
  */
13889
13777
  Resource.prototype.resize = function (width, height) {
13890
13778
  if (width !== this._width || height !== this._height) {
@@ -13896,8 +13784,8 @@ var PIXI = (function (exports) {
13896
13784
  Object.defineProperty(Resource.prototype, "valid", {
13897
13785
  /**
13898
13786
  * Has been validated
13787
+ *
13899
13788
  * @readonly
13900
- * @member {boolean}
13901
13789
  */
13902
13790
  get: function () {
13903
13791
  return !!this._width && !!this._height;
@@ -13905,9 +13793,7 @@ var PIXI = (function (exports) {
13905
13793
  enumerable: false,
13906
13794
  configurable: true
13907
13795
  });
13908
- /**
13909
- * Has been updated trigger event
13910
- */
13796
+ /** Has been updated trigger event. */
13911
13797
  Resource.prototype.update = function () {
13912
13798
  if (!this.destroyed) {
13913
13799
  this.onUpdate.emit();
@@ -13916,8 +13802,9 @@ var PIXI = (function (exports) {
13916
13802
  /**
13917
13803
  * This can be overridden to start preloading a resource
13918
13804
  * or do any other prepare step.
13805
+ *
13919
13806
  * @protected
13920
- * @return {Promise<void>} Handle the validate event
13807
+ * @return Handle the validate event
13921
13808
  */
13922
13809
  Resource.prototype.load = function () {
13923
13810
  return Promise.resolve(this);
@@ -13926,7 +13813,6 @@ var PIXI = (function (exports) {
13926
13813
  /**
13927
13814
  * The width of the resource.
13928
13815
  *
13929
- * @member {number}
13930
13816
  * @readonly
13931
13817
  */
13932
13818
  get: function () {
@@ -13939,7 +13825,6 @@ var PIXI = (function (exports) {
13939
13825
  /**
13940
13826
  * The height of the resource.
13941
13827
  *
13942
- * @member {number}
13943
13828
  * @readonly
13944
13829
  */
13945
13830
  get: function () {
@@ -13951,19 +13836,15 @@ var PIXI = (function (exports) {
13951
13836
  /**
13952
13837
  * Set the style, optional to override
13953
13838
  *
13954
- * @param {PIXI.Renderer} renderer - yeah, renderer!
13955
- * @param {PIXI.BaseTexture} baseTexture - the texture
13956
- * @param {PIXI.GLTexture} glTexture - texture instance for this webgl context
13957
- * @returns {boolean} `true` is success
13839
+ * @param renderer - yeah, renderer!
13840
+ * @param baseTexture - the texture
13841
+ * @param glTexture - texture instance for this webgl context
13842
+ * @returns - `true` is success
13958
13843
  */
13959
13844
  Resource.prototype.style = function (_renderer, _baseTexture, _glTexture) {
13960
13845
  return false;
13961
13846
  };
13962
- /**
13963
- * Clean up anything, this happens when destroying is ready.
13964
- *
13965
- * @protected
13966
- */
13847
+ /** Clean up anything, this happens when destroying is ready. */
13967
13848
  Resource.prototype.dispose = function () {
13968
13849
  // override
13969
13850
  };
@@ -13985,9 +13866,8 @@ var PIXI = (function (exports) {
13985
13866
  }
13986
13867
  };
13987
13868
  /**
13988
- * Abstract, used to auto-detect resource type
13869
+ * Abstract, used to auto-detect resource type.
13989
13870
  *
13990
- * @static
13991
13871
  * @param {*} source - The source object
13992
13872
  * @param {string} extension - The extension of source, if set
13993
13873
  */
@@ -14002,15 +13882,14 @@ var PIXI = (function (exports) {
14002
13882
  */
14003
13883
  /**
14004
13884
  * Buffer resource with data of typed array.
14005
- * @class
14006
- * @extends PIXI.Resource
13885
+ *
14007
13886
  * @memberof PIXI
14008
13887
  */
14009
13888
  var BufferResource = /** @class */ (function (_super) {
14010
13889
  __extends$2(BufferResource, _super);
14011
13890
  /**
14012
- * @param {Float32Array|Uint8Array|Uint32Array} source - Source buffer
14013
- * @param {object} options - Options
13891
+ * @param source - Source buffer
13892
+ * @param options - Options
14014
13893
  * @param {number} options.width - Width of the texture
14015
13894
  * @param {number} options.height - Height of the texture
14016
13895
  */
@@ -14021,21 +13900,16 @@ var PIXI = (function (exports) {
14021
13900
  throw new Error('BufferResource width or height invalid');
14022
13901
  }
14023
13902
  _this = _super.call(this, width, height) || this;
14024
- /**
14025
- * Source array
14026
- * Cannot be ClampedUint8Array because it cant be uploaded to WebGL
14027
- *
14028
- * @member {Float32Array|Uint8Array|Uint32Array}
14029
- */
14030
13903
  _this.data = source;
14031
13904
  return _this;
14032
13905
  }
14033
13906
  /**
14034
13907
  * Upload the texture to the GPU.
14035
- * @param {PIXI.Renderer} renderer - Upload to the renderer
14036
- * @param {PIXI.BaseTexture} baseTexture - Reference to parent texture
14037
- * @param {PIXI.GLTexture} glTexture - glTexture
14038
- * @returns {boolean} true is success
13908
+ *
13909
+ * @param renderer - Upload to the renderer
13910
+ * @param baseTexture - Reference to parent texture
13911
+ * @param glTexture - glTexture
13912
+ * @returns - true is success
14039
13913
  */
14040
13914
  BufferResource.prototype.upload = function (renderer, baseTexture, glTexture) {
14041
13915
  var gl = renderer.gl;
@@ -14052,17 +13926,13 @@ var PIXI = (function (exports) {
14052
13926
  }
14053
13927
  return true;
14054
13928
  };
14055
- /**
14056
- * Destroy and don't use after this
14057
- * @override
14058
- */
13929
+ /** Destroy and don't use after this. */
14059
13930
  BufferResource.prototype.dispose = function () {
14060
13931
  this.data = null;
14061
13932
  };
14062
13933
  /**
14063
13934
  * Used to auto-detect the type of resource.
14064
13935
  *
14065
- * @static
14066
13936
  * @param {*} source - The source object
14067
13937
  * @return {boolean} `true` if <canvas>
14068
13938
  */
@@ -14551,15 +14421,13 @@ var PIXI = (function (exports) {
14551
14421
  * All resources need to have the same pixel size.
14552
14422
  * Parent class for CubeResource and ArrayResource
14553
14423
  *
14554
- * @class
14555
- * @extends PIXI.Resource
14556
14424
  * @memberof PIXI
14557
14425
  */
14558
14426
  var AbstractMultiResource = /** @class */ (function (_super) {
14559
14427
  __extends$2(AbstractMultiResource, _super);
14560
14428
  /**
14561
- * @param {number} length
14562
- * @param {object} [options] - Options to for Resource constructor
14429
+ * @param length
14430
+ * @param options - Options to for Resource constructor
14563
14431
  * @param {number} [options.width] - Width of the resource
14564
14432
  * @param {number} [options.height] - Height of the resource
14565
14433
  */
@@ -14567,17 +14435,7 @@ var PIXI = (function (exports) {
14567
14435
  var _this = this;
14568
14436
  var _a = options || {}, width = _a.width, height = _a.height;
14569
14437
  _this = _super.call(this, width, height) || this;
14570
- /**
14571
- * Collection of partial baseTextures that correspond to resources
14572
- * @member {Array<PIXI.BaseTexture>}
14573
- * @readonly
14574
- */
14575
14438
  _this.items = [];
14576
- /**
14577
- * Dirty IDs for each part
14578
- * @member {Array<number>}
14579
- * @readonly
14580
- */
14581
14439
  _this.itemDirtyIds = [];
14582
14440
  for (var i = 0; i < length; i++) {
14583
14441
  var partTexture = new BaseTexture();
@@ -14587,33 +14445,17 @@ var PIXI = (function (exports) {
14587
14445
  // >=0 - texture item uploaded , in sync with items[i].dirtyId
14588
14446
  _this.itemDirtyIds.push(-2);
14589
14447
  }
14590
- /**
14591
- * Number of elements in array
14592
- *
14593
- * @member {number}
14594
- * @readonly
14595
- */
14596
14448
  _this.length = length;
14597
- /**
14598
- * Promise when loading
14599
- * @member {Promise}
14600
- * @private
14601
- * @default null
14602
- */
14603
14449
  _this._load = null;
14604
- /**
14605
- * Bound baseTexture, there can only be one
14606
- * @member {PIXI.BaseTexture}
14607
- */
14608
14450
  _this.baseTexture = null;
14609
14451
  return _this;
14610
14452
  }
14611
14453
  /**
14612
- * used from ArrayResource and CubeResource constructors
14613
- * @param {Array<*>} resources - Can be resources, image elements, canvas, etc. ,
14454
+ * Used from ArrayResource and CubeResource constructors.
14455
+ *
14456
+ * @param resources - Can be resources, image elements, canvas, etc. ,
14614
14457
  * length should be same as constructor length
14615
- * @param {object} [options] - detect options for resources
14616
- * @protected
14458
+ * @param options - Detect options for resources
14617
14459
  */
14618
14460
  AbstractMultiResource.prototype.initFromArray = function (resources, options) {
14619
14461
  for (var i = 0; i < this.length; i++) {
@@ -14631,10 +14473,7 @@ var PIXI = (function (exports) {
14631
14473
  }
14632
14474
  }
14633
14475
  };
14634
- /**
14635
- * Destroy this BaseImageResource
14636
- * @override
14637
- */
14476
+ /** Destroy this BaseImageResource. */
14638
14477
  AbstractMultiResource.prototype.dispose = function () {
14639
14478
  for (var i = 0, len = this.length; i < len; i++) {
14640
14479
  this.items[i].destroy();
@@ -14646,9 +14485,9 @@ var PIXI = (function (exports) {
14646
14485
  /**
14647
14486
  * Set a resource by ID
14648
14487
  *
14649
- * @param {PIXI.Resource} resource
14650
- * @param {number} index - Zero-based index of resource to set
14651
- * @return {PIXI.ArrayResource} Instance for chaining
14488
+ * @param resource
14489
+ * @param index - Zero-based index of resource to set
14490
+ * @return - Instance for chaining
14652
14491
  */
14653
14492
  AbstractMultiResource.prototype.addResourceAt = function (resource, index) {
14654
14493
  if (!this.items[index]) {
@@ -14661,11 +14500,7 @@ var PIXI = (function (exports) {
14661
14500
  this.items[index].setResource(resource);
14662
14501
  return this;
14663
14502
  };
14664
- /**
14665
- * Set the parent base texture
14666
- * @member {PIXI.BaseTexture}
14667
- * @override
14668
- */
14503
+ /** Set the parent base texture. */
14669
14504
  AbstractMultiResource.prototype.bind = function (baseTexture) {
14670
14505
  if (this.baseTexture !== null) {
14671
14506
  throw new Error('Only one base texture per TextureArray is allowed');
@@ -14676,11 +14511,7 @@ var PIXI = (function (exports) {
14676
14511
  this.items[i].on('update', baseTexture.update, baseTexture);
14677
14512
  }
14678
14513
  };
14679
- /**
14680
- * Unset the parent base texture
14681
- * @member {PIXI.BaseTexture}
14682
- * @override
14683
- */
14514
+ /** Unset the parent base texture. */
14684
14515
  AbstractMultiResource.prototype.unbind = function (baseTexture) {
14685
14516
  _super.prototype.unbind.call(this, baseTexture);
14686
14517
  for (var i = 0; i < this.length; i++) {
@@ -14690,8 +14521,8 @@ var PIXI = (function (exports) {
14690
14521
  };
14691
14522
  /**
14692
14523
  * Load all the resources simultaneously
14693
- * @override
14694
- * @return {Promise<void>} When load is resolved
14524
+ *
14525
+ * @return - When load is resolved
14695
14526
  */
14696
14527
  AbstractMultiResource.prototype.load = function () {
14697
14528
  var _this = this;
@@ -14715,16 +14546,14 @@ var PIXI = (function (exports) {
14715
14546
  /**
14716
14547
  * A resource that contains a number of sources.
14717
14548
  *
14718
- * @class
14719
- * @extends PIXI.Resource
14720
14549
  * @memberof PIXI
14721
14550
  */
14722
14551
  var ArrayResource = /** @class */ (function (_super) {
14723
14552
  __extends$2(ArrayResource, _super);
14724
14553
  /**
14725
- * @param {number|Array<*>} source - Number of items in array or the collection
14554
+ * @param source - Number of items in array or the collection
14726
14555
  * of image URLs to use. Can also be resources, image elements, canvas, etc.
14727
- * @param {object} [options] - Options to apply to {@link PIXI.autoDetectResource}
14556
+ * @param options - Options to apply to {@link PIXI.autoDetectResource}
14728
14557
  * @param {number} [options.width] - Width of the resource
14729
14558
  * @param {number} [options.height] - Height of the resource
14730
14559
  */
@@ -14750,9 +14579,9 @@ var PIXI = (function (exports) {
14750
14579
  * Set a baseTexture by ID,
14751
14580
  * ArrayResource just takes resource from it, nothing more
14752
14581
  *
14753
- * @param {PIXI.BaseTexture} baseTexture
14754
- * @param {number} index - Zero-based index of resource to set
14755
- * @return {PIXI.ArrayResource} Instance for chaining
14582
+ * @param baseTexture
14583
+ * @param index - Zero-based index of resource to set
14584
+ * @return - Instance for chaining
14756
14585
  */
14757
14586
  ArrayResource.prototype.addBaseTextureAt = function (baseTexture, index) {
14758
14587
  if (baseTexture.resource) {
@@ -14763,21 +14592,18 @@ var PIXI = (function (exports) {
14763
14592
  }
14764
14593
  return this;
14765
14594
  };
14766
- /**
14767
- * Add binding
14768
- * @member {PIXI.BaseTexture}
14769
- * @override
14770
- */
14595
+ /** Add binding */
14771
14596
  ArrayResource.prototype.bind = function (baseTexture) {
14772
14597
  _super.prototype.bind.call(this, baseTexture);
14773
14598
  baseTexture.target = exports.TARGETS.TEXTURE_2D_ARRAY;
14774
14599
  };
14775
14600
  /**
14776
14601
  * Upload the resources to the GPU.
14777
- * @param {PIXI.Renderer} renderer
14778
- * @param {PIXI.BaseTexture} texture
14779
- * @param {PIXI.GLTexture} glTexture
14780
- * @returns {boolean} whether texture was uploaded
14602
+ *
14603
+ * @param renderer
14604
+ * @param texture
14605
+ * @param glTexture
14606
+ * @returns - whether texture was uploaded
14781
14607
  */
14782
14608
  ArrayResource.prototype.upload = function (renderer, texture, glTexture) {
14783
14609
  var _a = this, length = _a.length, itemDirtyIds = _a.itemDirtyIds, items = _a.items;
@@ -14803,9 +14629,8 @@ var PIXI = (function (exports) {
14803
14629
  }(AbstractMultiResource));
14804
14630
 
14805
14631
  /**
14806
- * Base for all the image/canvas resources
14807
- * @class
14808
- * @extends PIXI.Resource
14632
+ * Base for all the image/canvas resources.
14633
+ *
14809
14634
  * @memberof PIXI
14810
14635
  */
14811
14636
  var BaseImageResource = /** @class */ (function (_super) {
@@ -14819,28 +14644,16 @@ var PIXI = (function (exports) {
14819
14644
  var width = sourceAny.naturalWidth || sourceAny.videoWidth || sourceAny.width;
14820
14645
  var height = sourceAny.naturalHeight || sourceAny.videoHeight || sourceAny.height;
14821
14646
  _this = _super.call(this, width, height) || this;
14822
- /**
14823
- * The source element
14824
- * @member {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|SVGElement}
14825
- * @readonly
14826
- */
14827
14647
  _this.source = source;
14828
- /**
14829
- * If set to `true`, will force `texImage2D` over `texSubImage2D` for uploading.
14830
- * Certain types of media (e.g. video) using `texImage2D` is more performant.
14831
- * @member {boolean}
14832
- * @default false
14833
- * @private
14834
- */
14835
14648
  _this.noSubImage = false;
14836
14649
  return _this;
14837
14650
  }
14838
14651
  /**
14839
14652
  * Set cross origin based detecting the url and the crossorigin
14840
- * @protected
14841
- * @param {HTMLElement} element - Element to apply crossOrigin
14842
- * @param {string} url - URL to check
14843
- * @param {boolean|string} [crossorigin=true] - Cross origin value to use
14653
+ *
14654
+ * @param element - Element to apply crossOrigin
14655
+ * @param url - URL to check
14656
+ * @param crossorigin - Cross origin value to use
14844
14657
  */
14845
14658
  BaseImageResource.crossOrigin = function (element, url, crossorigin) {
14846
14659
  if (crossorigin === undefined && url.indexOf('data:') !== 0) {
@@ -14852,11 +14665,12 @@ var PIXI = (function (exports) {
14852
14665
  };
14853
14666
  /**
14854
14667
  * Upload the texture to the GPU.
14855
- * @param {PIXI.Renderer} renderer - Upload to the renderer
14856
- * @param {PIXI.BaseTexture} baseTexture - Reference to parent texture
14857
- * @param {PIXI.GLTexture} glTexture
14668
+ *
14669
+ * @param renderer - Upload to the renderer
14670
+ * @param baseTexture - Reference to parent texture
14671
+ * @param glTexture
14858
14672
  * @param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|SVGElement} [source] - (optional)
14859
- * @returns {boolean} true is success
14673
+ * @returns - true is success
14860
14674
  */
14861
14675
  BaseImageResource.prototype.upload = function (renderer, baseTexture, glTexture, source) {
14862
14676
  var gl = renderer.gl;
@@ -14891,10 +14705,7 @@ var PIXI = (function (exports) {
14891
14705
  this.resize(width, height);
14892
14706
  _super.prototype.update.call(this);
14893
14707
  };
14894
- /**
14895
- * Destroy this BaseImageResource
14896
- * @override
14897
- */
14708
+ /** Destroy this {@link BaseImageResource} */
14898
14709
  BaseImageResource.prototype.dispose = function () {
14899
14710
  this.source = null;
14900
14711
  };
@@ -14906,14 +14717,13 @@ var PIXI = (function (exports) {
14906
14717
  */
14907
14718
  /**
14908
14719
  * Resource type for HTMLCanvasElement.
14909
- * @class
14910
- * @extends PIXI.BaseImageResource
14720
+ *
14911
14721
  * @memberof PIXI
14912
14722
  */
14913
14723
  var CanvasResource = /** @class */ (function (_super) {
14914
14724
  __extends$2(CanvasResource, _super);
14915
14725
  /**
14916
- * @param {HTMLCanvasElement} source - Canvas element to use
14726
+ * @param source - Canvas element to use
14917
14727
  */
14918
14728
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
14919
14729
  function CanvasResource(source) {
@@ -14922,8 +14732,7 @@ var PIXI = (function (exports) {
14922
14732
  /**
14923
14733
  * Used to auto-detect the type of resource.
14924
14734
  *
14925
- * @static
14926
- * @param {HTMLCanvasElement|OffscreenCanvas} source - The source object
14735
+ * @param {*} source - The source object
14927
14736
  * @return {boolean} `true` if source is HTMLCanvasElement or OffscreenCanvas
14928
14737
  */
14929
14738
  CanvasResource.test = function (source) {
@@ -14940,8 +14749,6 @@ var PIXI = (function (exports) {
14940
14749
  /**
14941
14750
  * Resource for a CubeTexture which contains six resources.
14942
14751
  *
14943
- * @class
14944
- * @extends PIXI.ArrayResource
14945
14752
  * @memberof PIXI
14946
14753
  */
14947
14754
  var CubeResource = /** @class */ (function (_super) {
@@ -14949,7 +14756,7 @@ var PIXI = (function (exports) {
14949
14756
  /**
14950
14757
  * @param {Array<string|PIXI.Resource>} [source] - Collection of URLs or resources
14951
14758
  * to use as the sides of the cube.
14952
- * @param {object} [options] - ImageResource options
14759
+ * @param options - ImageResource options
14953
14760
  * @param {number} [options.width] - Width of resource
14954
14761
  * @param {number} [options.height] - Height of resource
14955
14762
  * @param {number} [options.autoLoad=true] - Whether to auto-load resources
@@ -14966,11 +14773,6 @@ var PIXI = (function (exports) {
14966
14773
  for (var i = 0; i < CubeResource.SIDES; i++) {
14967
14774
  _this.items[i].target = exports.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X + i;
14968
14775
  }
14969
- /**
14970
- * In case BaseTextures are supplied, whether to use same resource or bind baseTexture itself
14971
- * @member {boolean}
14972
- * @protected
14973
- */
14974
14776
  _this.linkBaseTexture = linkBaseTexture !== false;
14975
14777
  if (source) {
14976
14778
  _this.initFromArray(source, options);
@@ -14981,10 +14783,9 @@ var PIXI = (function (exports) {
14981
14783
  return _this;
14982
14784
  }
14983
14785
  /**
14984
- * Add binding
14786
+ * Add binding.
14985
14787
  *
14986
- * @override
14987
- * @param {PIXI.BaseTexture} baseTexture - parent base texture
14788
+ * @param baseTexture - parent base texture
14988
14789
  */
14989
14790
  CubeResource.prototype.bind = function (baseTexture) {
14990
14791
  _super.prototype.bind.call(this, baseTexture);
@@ -15047,36 +14848,27 @@ var PIXI = (function (exports) {
15047
14848
  /**
15048
14849
  * Used to auto-detect the type of resource.
15049
14850
  *
15050
- * @static
15051
- * @param {object} source - The source object
14851
+ * @param {*} source - The source object
15052
14852
  * @return {boolean} `true` if source is an array of 6 elements
15053
14853
  */
15054
14854
  CubeResource.test = function (source) {
15055
14855
  return Array.isArray(source) && source.length === CubeResource.SIDES;
15056
14856
  };
15057
- /**
15058
- * Number of texture sides to store for CubeResources
15059
- *
15060
- * @name PIXI.CubeResource.SIDES
15061
- * @static
15062
- * @member {number}
15063
- * @default 6
15064
- */
14857
+ /** Number of texture sides to store for CubeResources. */
15065
14858
  CubeResource.SIDES = 6;
15066
14859
  return CubeResource;
15067
14860
  }(AbstractMultiResource));
15068
14861
 
15069
14862
  /**
15070
14863
  * Resource type for HTMLImageElement.
15071
- * @class
15072
- * @extends PIXI.BaseImageResource
14864
+ *
15073
14865
  * @memberof PIXI
15074
14866
  */
15075
14867
  var ImageResource = /** @class */ (function (_super) {
15076
14868
  __extends$2(ImageResource, _super);
15077
14869
  /**
15078
- * @param {HTMLImageElement|string} source - image source or URL
15079
- * @param {object} [options]
14870
+ * @param source - image source or URL
14871
+ * @param options
15080
14872
  * @param {boolean} [options.autoLoad=true] - start loading process
15081
14873
  * @param {boolean} [options.createBitmap=PIXI.settings.CREATE_IMAGE_BITMAP] - whether its required to create
15082
14874
  * a bitmap before upload
@@ -15101,51 +14893,13 @@ var PIXI = (function (exports) {
15101
14893
  _this._width = 0;
15102
14894
  _this._height = 0;
15103
14895
  }
15104
- /**
15105
- * URL of the image source
15106
- * @member {string}
15107
- */
15108
14896
  _this.url = source.src;
15109
- /**
15110
- * When process is completed
15111
- * @member {Promise<void>}
15112
- * @private
15113
- */
15114
14897
  _this._process = null;
15115
- /**
15116
- * If the image should be disposed after upload
15117
- * @member {boolean}
15118
- * @default false
15119
- */
15120
14898
  _this.preserveBitmap = false;
15121
- /**
15122
- * If capable, convert the image using createImageBitmap API
15123
- * @member {boolean}
15124
- * @default PIXI.settings.CREATE_IMAGE_BITMAP
15125
- */
15126
14899
  _this.createBitmap = (options.createBitmap !== undefined
15127
14900
  ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!self.createImageBitmap;
15128
- /**
15129
- * Controls texture alphaMode field
15130
- * Copies from options
15131
- * Default is `null`, copies option from baseTexture
15132
- *
15133
- * @member {PIXI.ALPHA_MODES|null}
15134
- * @readonly
15135
- */
15136
14901
  _this.alphaMode = typeof options.alphaMode === 'number' ? options.alphaMode : null;
15137
- /**
15138
- * The ImageBitmap element created for HTMLImageElement
15139
- * @member {ImageBitmap}
15140
- * @default null
15141
- */
15142
14902
  _this.bitmap = null;
15143
- /**
15144
- * Promise when loading
15145
- * @member {Promise<void>}
15146
- * @private
15147
- * @default null
15148
- */
15149
14903
  _this._load = null;
15150
14904
  if (options.autoLoad !== false) {
15151
14905
  _this.load();
@@ -15153,10 +14907,9 @@ var PIXI = (function (exports) {
15153
14907
  return _this;
15154
14908
  }
15155
14909
  /**
15156
- * returns a promise when image will be loaded and processed
14910
+ * Returns a promise when image will be loaded and processed.
15157
14911
  *
15158
- * @param {boolean} [createBitmap] - whether process image into bitmap
15159
- * @returns {Promise<void>}
14912
+ * @param createBitmap - whether process image into bitmap
15160
14913
  */
15161
14914
  ImageResource.prototype.load = function (createBitmap) {
15162
14915
  var _this = this;
@@ -15202,7 +14955,7 @@ var PIXI = (function (exports) {
15202
14955
  * Called when we need to convert image into BitmapImage.
15203
14956
  * Can be called multiple times, real promise is cached inside.
15204
14957
  *
15205
- * @returns {Promise<void>} cached promise to fill that bitmap
14958
+ * @return - Cached promise to fill that bitmap
15206
14959
  */
15207
14960
  ImageResource.prototype.process = function () {
15208
14961
  var _this = this;
@@ -15236,9 +14989,9 @@ var PIXI = (function (exports) {
15236
14989
  /**
15237
14990
  * Upload the image resource to GPU.
15238
14991
  *
15239
- * @param {PIXI.Renderer} renderer - Renderer to upload to
15240
- * @param {PIXI.BaseTexture} baseTexture - BaseTexture for this resource
15241
- * @param {PIXI.GLTexture} glTexture - GLTexture to use
14992
+ * @param renderer - Renderer to upload to
14993
+ * @param baseTexture - BaseTexture for this resource
14994
+ * @param glTexture - GLTexture to use
15242
14995
  * @returns {boolean} true is success
15243
14996
  */
15244
14997
  ImageResource.prototype.upload = function (renderer, baseTexture, glTexture) {
@@ -15277,10 +15030,7 @@ var PIXI = (function (exports) {
15277
15030
  }
15278
15031
  return true;
15279
15032
  };
15280
- /**
15281
- * Destroys this texture
15282
- * @override
15283
- */
15033
+ /** Destroys this resource. */
15284
15034
  ImageResource.prototype.dispose = function () {
15285
15035
  this.source.onload = null;
15286
15036
  this.source.onerror = null;
@@ -15295,8 +15045,7 @@ var PIXI = (function (exports) {
15295
15045
  /**
15296
15046
  * Used to auto-detect the type of resource.
15297
15047
  *
15298
- * @static
15299
- * @param {string|HTMLImageElement} source - The source object
15048
+ * @param {*} source - The source object
15300
15049
  * @return {boolean} `true` if source is string or HTMLImageElement
15301
15050
  */
15302
15051
  ImageResource.test = function (source) {
@@ -15307,14 +15056,13 @@ var PIXI = (function (exports) {
15307
15056
 
15308
15057
  /**
15309
15058
  * Resource type for SVG elements and graphics.
15310
- * @class
15311
- * @extends PIXI.BaseImageResource
15059
+ *
15312
15060
  * @memberof PIXI
15313
15061
  */
15314
15062
  var SVGResource = /** @class */ (function (_super) {
15315
15063
  __extends$2(SVGResource, _super);
15316
15064
  /**
15317
- * @param {string} source - Base64 encoded SVG element or URL for SVG file.
15065
+ * @param sourceBase64 - Base64 encoded SVG element or URL for SVG file.
15318
15066
  * @param {object} [options] - Options to use
15319
15067
  * @param {number} [options.scale=1] - Scale to apply to SVG. Overridden by...
15320
15068
  * @param {number} [options.width] - Rasterize SVG this wide. Aspect ratio preserved if height not specified.
@@ -15327,48 +15075,12 @@ var PIXI = (function (exports) {
15327
15075
  _this = _super.call(this, document.createElement('canvas')) || this;
15328
15076
  _this._width = 0;
15329
15077
  _this._height = 0;
15330
- /**
15331
- * Base64 encoded SVG element or URL for SVG file
15332
- * @readonly
15333
- * @member {string}
15334
- */
15335
15078
  _this.svg = sourceBase64;
15336
- /**
15337
- * The source scale to apply when rasterizing on load
15338
- * @readonly
15339
- * @member {number}
15340
- */
15341
15079
  _this.scale = options.scale || 1;
15342
- /**
15343
- * A width override for rasterization on load
15344
- * @readonly
15345
- * @member {number}
15346
- */
15347
15080
  _this._overrideWidth = options.width;
15348
- /**
15349
- * A height override for rasterization on load
15350
- * @readonly
15351
- * @member {number}
15352
- */
15353
15081
  _this._overrideHeight = options.height;
15354
- /**
15355
- * Call when completely loaded
15356
- * @private
15357
- * @member {function}
15358
- */
15359
15082
  _this._resolve = null;
15360
- /**
15361
- * Cross origin value to use
15362
- * @private
15363
- * @member {boolean|string}
15364
- */
15365
15083
  _this._crossorigin = options.crossorigin;
15366
- /**
15367
- * Promise when loading
15368
- * @member {Promise<void>}
15369
- * @private
15370
- * @default null
15371
- */
15372
15084
  _this._load = null;
15373
15085
  if (options.autoLoad !== false) {
15374
15086
  _this.load();
@@ -15397,11 +15109,7 @@ var PIXI = (function (exports) {
15397
15109
  });
15398
15110
  return this._load;
15399
15111
  };
15400
- /**
15401
- * Loads an SVG image from `imageUrl` or `data URL`.
15402
- *
15403
- * @private
15404
- */
15112
+ /** Loads an SVG image from `imageUrl` or `data URL`. */
15405
15113
  SVGResource.prototype._loadSvg = function () {
15406
15114
  var _this = this;
15407
15115
  var tempImage = new Image();
@@ -15446,11 +15154,10 @@ var PIXI = (function (exports) {
15446
15154
  };
15447
15155
  };
15448
15156
  /**
15449
- * Get size from an svg string using regexp.
15157
+ * Get size from an svg string using a regular expression.
15450
15158
  *
15451
- * @method
15452
- * @param {string} svgString - a serialized svg element
15453
- * @return {PIXI.ISize} image extension
15159
+ * @param svgString - a serialized svg element
15160
+ * @return - image extension
15454
15161
  */
15455
15162
  SVGResource.getSize = function (svgString) {
15456
15163
  var sizeMatch = SVGResource.SVG_SIZE.exec(svgString);
@@ -15461,10 +15168,7 @@ var PIXI = (function (exports) {
15461
15168
  }
15462
15169
  return size;
15463
15170
  };
15464
- /**
15465
- * Destroys this texture
15466
- * @override
15467
- */
15171
+ /** Destroys this texture. */
15468
15172
  SVGResource.prototype.dispose = function () {
15469
15173
  _super.prototype.dispose.call(this);
15470
15174
  this._resolve = null;
@@ -15473,9 +15177,9 @@ var PIXI = (function (exports) {
15473
15177
  /**
15474
15178
  * Used to auto-detect the type of resource.
15475
15179
  *
15476
- * @static
15477
15180
  * @param {*} source - The source object
15478
15181
  * @param {string} extension - The extension of source, if set
15182
+ * @return {boolean} - If the source is a SVG source or data file
15479
15183
  */
15480
15184
  SVGResource.test = function (source, extension) {
15481
15185
  // url file extension is SVG
@@ -15486,27 +15190,25 @@ var PIXI = (function (exports) {
15486
15190
  || (typeof source === 'string' && SVGResource.SVG_XML.test(source));
15487
15191
  };
15488
15192
  /**
15489
- * RegExp for SVG XML document.
15193
+ * Regular expression for SVG XML document.
15490
15194
  *
15491
15195
  * @example &lt;?xml version="1.0" encoding="utf-8" ?&gt;&lt;!-- image/svg --&gt;&lt;svg
15196
+ * @readonly
15492
15197
  */
15493
15198
  SVGResource.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m;
15494
15199
  /**
15495
- * RegExp for SVG size.
15200
+ * Regular expression for SVG size.
15496
15201
  *
15497
- * @static
15498
- * @constant {RegExp|string} SVG_SIZE
15499
- * @memberof PIXI.SVGResource
15500
15202
  * @example &lt;svg width="100" height="100"&gt;&lt;/svg&gt;
15203
+ * @readonly
15501
15204
  */
15502
15205
  SVGResource.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i; // eslint-disable-line max-len
15503
15206
  return SVGResource;
15504
15207
  }(BaseImageResource));
15505
15208
 
15506
15209
  /**
15507
- * Resource type for HTMLVideoElement.
15508
- * @class
15509
- * @extends PIXI.BaseImageResource
15210
+ * Resource type for {@code HTMLVideoElement}.
15211
+ *
15510
15212
  * @memberof PIXI
15511
15213
  */
15512
15214
  var VideoResource = /** @class */ (function (_super) {
@@ -15551,44 +15253,12 @@ var PIXI = (function (exports) {
15551
15253
  }
15552
15254
  _this = _super.call(this, source) || this;
15553
15255
  _this.noSubImage = true;
15554
- /**
15555
- * `true` to use PIXI.Ticker.shared to auto update the base texture.
15556
- *
15557
- * @type {boolean}
15558
- * @default true
15559
- * @private
15560
- */
15561
15256
  _this._autoUpdate = true;
15562
- /**
15563
- * `true` if the instance is currently connected to PIXI.Ticker.shared to auto update the base texture.
15564
- *
15565
- * @type {boolean}
15566
- * @default false
15567
- * @private
15568
- */
15569
15257
  _this._isConnectedToTicker = false;
15570
15258
  _this._updateFPS = options.updateFPS || 0;
15571
15259
  _this._msToNextUpdate = 0;
15572
- /**
15573
- * When set to true will automatically play videos used by this texture once
15574
- * they are loaded. If false, it will not modify the playing state.
15575
- *
15576
- * @member {boolean}
15577
- * @default true
15578
- */
15579
15260
  _this.autoPlay = options.autoPlay !== false;
15580
- /**
15581
- * Promise when loading
15582
- * @member {Promise<void>}
15583
- * @private
15584
- * @default null
15585
- */
15586
15261
  _this._load = null;
15587
- /**
15588
- * Callback when completed with load.
15589
- * @member {function}
15590
- * @private
15591
- */
15592
15262
  _this._resolve = null;
15593
15263
  // Bind for listeners
15594
15264
  _this._onCanPlay = _this._onCanPlay.bind(_this);
@@ -15599,9 +15269,9 @@ var PIXI = (function (exports) {
15599
15269
  return _this;
15600
15270
  }
15601
15271
  /**
15602
- * Trigger updating of the texture
15272
+ * Trigger updating of the texture.
15603
15273
  *
15604
- * @param {number} [deltaTime=0] - time delta since last tick
15274
+ * @param deltaTime - time delta since last tick
15605
15275
  */
15606
15276
  VideoResource.prototype.update = function (_deltaTime) {
15607
15277
  if (!this.destroyed) {
@@ -15617,7 +15287,6 @@ var PIXI = (function (exports) {
15617
15287
  /**
15618
15288
  * Start preloading the video resource.
15619
15289
  *
15620
- * @protected
15621
15290
  * @return {Promise<void>} Handle the validate event
15622
15291
  */
15623
15292
  VideoResource.prototype.load = function () {
@@ -15651,11 +15320,7 @@ var PIXI = (function (exports) {
15651
15320
  });
15652
15321
  return this._load;
15653
15322
  };
15654
- /**
15655
- * Handle video error events.
15656
- *
15657
- * @private
15658
- */
15323
+ /** Handle video error events. */
15659
15324
  VideoResource.prototype._onError = function (event) {
15660
15325
  this.source.removeEventListener('error', this._onError, true);
15661
15326
  this.onError.emit(event);
@@ -15663,8 +15328,7 @@ var PIXI = (function (exports) {
15663
15328
  /**
15664
15329
  * Returns true if the underlying source is playing.
15665
15330
  *
15666
- * @private
15667
- * @return {boolean} True if playing.
15331
+ * @return - True if playing.
15668
15332
  */
15669
15333
  VideoResource.prototype._isSourcePlaying = function () {
15670
15334
  var source = this.source;
@@ -15673,18 +15337,13 @@ var PIXI = (function (exports) {
15673
15337
  /**
15674
15338
  * Returns true if the underlying source is ready for playing.
15675
15339
  *
15676
- * @private
15677
- * @return {boolean} True if ready.
15340
+ * @return - True if ready.
15678
15341
  */
15679
15342
  VideoResource.prototype._isSourceReady = function () {
15680
15343
  var source = this.source;
15681
15344
  return source.readyState === 3 || source.readyState === 4;
15682
15345
  };
15683
- /**
15684
- * Runs the update loop when the video is ready to play
15685
- *
15686
- * @private
15687
- */
15346
+ /** Runs the update loop when the video is ready to play. */
15688
15347
  VideoResource.prototype._onPlayStart = function () {
15689
15348
  // Just in case the video has not received its can play even yet..
15690
15349
  if (!this.valid) {
@@ -15695,22 +15354,14 @@ var PIXI = (function (exports) {
15695
15354
  this._isConnectedToTicker = true;
15696
15355
  }
15697
15356
  };
15698
- /**
15699
- * Fired when a pause event is triggered, stops the update loop
15700
- *
15701
- * @private
15702
- */
15357
+ /** Fired when a pause event is triggered, stops the update loop. */
15703
15358
  VideoResource.prototype._onPlayStop = function () {
15704
15359
  if (this._isConnectedToTicker) {
15705
15360
  Ticker.shared.remove(this.update, this);
15706
15361
  this._isConnectedToTicker = false;
15707
15362
  }
15708
15363
  };
15709
- /**
15710
- * Fired when the video is loaded and ready to play
15711
- *
15712
- * @private
15713
- */
15364
+ /** Fired when the video is loaded and ready to play. */
15714
15365
  VideoResource.prototype._onCanPlay = function () {
15715
15366
  var source = this.source;
15716
15367
  source.removeEventListener('canplay', this._onCanPlay);
@@ -15729,10 +15380,7 @@ var PIXI = (function (exports) {
15729
15380
  source.play();
15730
15381
  }
15731
15382
  };
15732
- /**
15733
- * Destroys this texture
15734
- * @override
15735
- */
15383
+ /** Destroys this texture. */
15736
15384
  VideoResource.prototype.dispose = function () {
15737
15385
  if (this._isConnectedToTicker) {
15738
15386
  Ticker.shared.remove(this.update, this);
@@ -15748,11 +15396,7 @@ var PIXI = (function (exports) {
15748
15396
  _super.prototype.dispose.call(this);
15749
15397
  };
15750
15398
  Object.defineProperty(VideoResource.prototype, "autoUpdate", {
15751
- /**
15752
- * Should the base texture automatically update itself, set to true by default
15753
- *
15754
- * @member {boolean}
15755
- */
15399
+ /** Should the base texture automatically update itself, set to true by default. */
15756
15400
  get: function () {
15757
15401
  return this._autoUpdate;
15758
15402
  },
@@ -15776,8 +15420,6 @@ var PIXI = (function (exports) {
15776
15420
  /**
15777
15421
  * How many times a second to update the texture from the video. Leave at 0 to update at every render.
15778
15422
  * A lower fps can help performance, as updating the texture at 60fps on a 30ps video may not be efficient.
15779
- *
15780
- * @member {number}
15781
15423
  */
15782
15424
  get: function () {
15783
15425
  return this._updateFPS;
@@ -15793,7 +15435,6 @@ var PIXI = (function (exports) {
15793
15435
  /**
15794
15436
  * Used to auto-detect the type of resource.
15795
15437
  *
15796
- * @static
15797
15438
  * @param {*} source - The source object
15798
15439
  * @param {string} extension - The extension of source, if set
15799
15440
  * @return {boolean} `true` if video source
@@ -15804,17 +15445,13 @@ var PIXI = (function (exports) {
15804
15445
  };
15805
15446
  /**
15806
15447
  * List of common video file extensions supported by VideoResource.
15807
- * @constant
15808
- * @member {Array<string>}
15809
- * @static
15448
+ *
15810
15449
  * @readonly
15811
15450
  */
15812
15451
  VideoResource.TYPES = ['mp4', 'm4v', 'webm', 'ogg', 'ogv', 'h264', 'avi', 'mov'];
15813
15452
  /**
15814
15453
  * Map of video MIME types that can't be directly derived from file extensions.
15815
- * @constant
15816
- * @member {object}
15817
- * @static
15454
+ *
15818
15455
  * @readonly
15819
15456
  */
15820
15457
  VideoResource.MIME_TYPES = {
@@ -15827,14 +15464,13 @@ var PIXI = (function (exports) {
15827
15464
 
15828
15465
  /**
15829
15466
  * Resource type for ImageBitmap.
15830
- * @class
15831
- * @extends PIXI.BaseImageResource
15467
+ *
15832
15468
  * @memberof PIXI
15833
15469
  */
15834
15470
  var ImageBitmapResource = /** @class */ (function (_super) {
15835
15471
  __extends$2(ImageBitmapResource, _super);
15836
15472
  /**
15837
- * @param {ImageBitmap} source - Image element to use
15473
+ * @param source - Image element to use
15838
15474
  */
15839
15475
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
15840
15476
  function ImageBitmapResource(source) {
@@ -15843,8 +15479,7 @@ var PIXI = (function (exports) {
15843
15479
  /**
15844
15480
  * Used to auto-detect the type of resource.
15845
15481
  *
15846
- * @static
15847
- * @param {ImageBitmap} source - The source object
15482
+ * @param {*} source - The source object
15848
15483
  * @return {boolean} `true` if source is an ImageBitmap
15849
15484
  */
15850
15485
  ImageBitmapResource.test = function (source) {
@@ -15874,8 +15509,7 @@ var PIXI = (function (exports) {
15874
15509
 
15875
15510
  /**
15876
15511
  * Resource type for DepthTexture.
15877
- * @class
15878
- * @extends PIXI.BufferResource
15512
+ *
15879
15513
  * @memberof PIXI
15880
15514
  */
15881
15515
  var DepthResource = /** @class */ (function (_super) {
@@ -15885,10 +15519,11 @@ var PIXI = (function (exports) {
15885
15519
  }
15886
15520
  /**
15887
15521
  * Upload the texture to the GPU.
15888
- * @param {PIXI.Renderer} renderer - Upload to the renderer
15889
- * @param {PIXI.BaseTexture} baseTexture - Reference to parent texture
15890
- * @param {PIXI.GLTexture} glTexture - glTexture
15891
- * @returns {boolean} true is success
15522
+ *
15523
+ * @param renderer - Upload to the renderer
15524
+ * @param baseTexture - Reference to parent texture
15525
+ * @param glTexture - glTexture
15526
+ * @return - true is success
15892
15527
  */
15893
15528
  DepthResource.prototype.upload = function (renderer, baseTexture, glTexture) {
15894
15529
  var gl = renderer.gl;
@@ -17212,17 +16847,17 @@ var PIXI = (function (exports) {
17212
16847
  * This does not contain the actual data, but instead has a buffer id that maps to a {@link PIXI.Buffer}
17213
16848
  * This can include anything from positions, uvs, normals, colors etc.
17214
16849
  *
17215
- * @class
17216
16850
  * @memberof PIXI
17217
16851
  */
17218
16852
  var Attribute = /** @class */ (function () {
17219
16853
  /**
17220
- * @param {string} buffer - the id of the buffer that this attribute will look for
17221
- * @param {Number} [size=0] - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2.
17222
- * @param {Boolean} [normalized=false] - should the data be normalized.
16854
+ * @param buffer - the id of the buffer that this attribute will look for
16855
+ * @param size - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2.
16856
+ * @param normalized - should the data be normalized.
17223
16857
  * @param {PIXI.TYPES} [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {@link PIXI.TYPES} to see the ones available
17224
- * @param {Number} [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
17225
- * @param {Number} [start=0] - How far into the array to start reading values (used for interleaving data)
16858
+ * @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
16859
+ * @param [start=0] - How far into the array to start reading values (used for interleaving data)
16860
+ * @param [instance=false] - Whether the geometry is instanced.
17226
16861
  */
17227
16862
  function Attribute(buffer, size, normalized, type, stride, start, instance) {
17228
16863
  if (size === void 0) { size = 0; }
@@ -17236,23 +16871,19 @@ var PIXI = (function (exports) {
17236
16871
  this.start = start;
17237
16872
  this.instance = instance;
17238
16873
  }
17239
- /**
17240
- * Destroys the Attribute.
17241
- */
16874
+ /** Destroys the Attribute. */
17242
16875
  Attribute.prototype.destroy = function () {
17243
16876
  this.buffer = null;
17244
16877
  };
17245
16878
  /**
17246
16879
  * Helper function that creates an Attribute based on the information provided
17247
16880
  *
17248
- * @static
17249
- * @param {string} buffer - the id of the buffer that this attribute will look for
17250
- * @param {Number} [size=0] - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
17251
- * @param {Boolean} [normalized=false] - should the data be normalized.
17252
- * @param {PIXI.TYPES} [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {@link PIXI.TYPES} to see the ones available
17253
- * @param {Number} [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
17254
- *
17255
- * @returns {PIXI.Attribute} A new {@link PIXI.Attribute} based on the information provided
16881
+ * @param buffer - the id of the buffer that this attribute will look for
16882
+ * @param [size=0] - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
16883
+ * @param [normalized=false] - should the data be normalized.
16884
+ * @param [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {@link PIXI.TYPES} to see the ones available
16885
+ * @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
16886
+ * @returns - A new {@link PIXI.Attribute} based on the information provided
17256
16887
  */
17257
16888
  Attribute.from = function (buffer, size, normalized, type, stride) {
17258
16889
  return new Attribute(buffer, size, normalized, type, stride);
@@ -17264,30 +16895,18 @@ var PIXI = (function (exports) {
17264
16895
  /**
17265
16896
  * A wrapper for data so that it can be used and uploaded by WebGL
17266
16897
  *
17267
- * @class
17268
16898
  * @memberof PIXI
17269
16899
  */
17270
16900
  var Buffer = /** @class */ (function () {
17271
16901
  /**
17272
16902
  * @param {ArrayBuffer| SharedArrayBuffer|ArrayBufferView} data - the data to store in the buffer.
17273
- * @param {boolean} [_static=true] - `true` for static buffer
17274
- * @param {boolean} [index=false] - `true` for index buffer
16903
+ * @param _static - `true` for static buffer
16904
+ * @param index - `true` for index buffer
17275
16905
  */
17276
16906
  function Buffer(data, _static, index) {
17277
16907
  if (_static === void 0) { _static = true; }
17278
16908
  if (index === void 0) { index = false; }
17279
- /**
17280
- * The data in the buffer, as a typed array
17281
- *
17282
- * @member {ArrayBuffer| SharedArrayBuffer | ArrayBufferView}
17283
- */
17284
16909
  this.data = (data || new Float32Array(1));
17285
- /**
17286
- * A map of renderer IDs to webgl buffer
17287
- *
17288
- * @private
17289
- * @member {object<number, GLBuffer>}
17290
- */
17291
16910
  this._glBuffers = {};
17292
16911
  this._updateID = 0;
17293
16912
  this.index = index;
@@ -17297,7 +16916,7 @@ var PIXI = (function (exports) {
17297
16916
  }
17298
16917
  // TODO could explore flagging only a partial upload?
17299
16918
  /**
17300
- * flags this buffer as requiring an upload to the GPU
16919
+ * Flags this buffer as requiring an upload to the GPU.
17301
16920
  * @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|number[]} [data] - the data to update in the buffer.
17302
16921
  */
17303
16922
  Buffer.prototype.update = function (data) {
@@ -17307,15 +16926,11 @@ var PIXI = (function (exports) {
17307
16926
  this.data = data || this.data;
17308
16927
  this._updateID++;
17309
16928
  };
17310
- /**
17311
- * disposes WebGL resources that are connected to this geometry
17312
- */
16929
+ /** Disposes WebGL resources that are connected to this geometry. */
17313
16930
  Buffer.prototype.dispose = function () {
17314
16931
  this.disposeRunner.emit(this, false);
17315
16932
  };
17316
- /**
17317
- * Destroys the buffer
17318
- */
16933
+ /** Destroys the buffer. */
17319
16934
  Buffer.prototype.destroy = function () {
17320
16935
  this.dispose();
17321
16936
  this.data = null;
@@ -17341,9 +16956,8 @@ var PIXI = (function (exports) {
17341
16956
  /**
17342
16957
  * Helper function that creates a buffer based on an array or TypedArray
17343
16958
  *
17344
- * @static
17345
16959
  * @param {ArrayBufferView | number[]} data - the TypedArray that the buffer will store. If this is a regular Array it will be converted to a Float32Array.
17346
- * @return {PIXI.Buffer} A new Buffer based on the data provided.
16960
+ * @return - A new Buffer based on the data provided.
17347
16961
  */
17348
16962
  Buffer.from = function (data) {
17349
16963
  if (data instanceof Array) {
@@ -17415,15 +17029,14 @@ var PIXI = (function (exports) {
17415
17029
  * geometry.addAttribute('positions', [0, 0, 100, 0, 100, 100, 0, 100], 2);
17416
17030
  * geometry.addAttribute('uvs', [0,0,1,0,1,1,0,1],2)
17417
17031
  * geometry.addIndex([0,1,2,1,3,2])
17418
- *
17419
17032
  * ```
17420
- * @class
17033
+ *
17421
17034
  * @memberof PIXI
17422
17035
  */
17423
17036
  var Geometry = /** @class */ (function () {
17424
17037
  /**
17425
- * @param {PIXI.Buffer[]} [buffers] - an array of buffers. optional.
17426
- * @param {object} [attributes] - of the geometry, optional structure of the attributes layout
17038
+ * @param buffers - An array of buffers. optional.
17039
+ * @param attributes - Of the geometry, optional structure of the attributes layout
17427
17040
  */
17428
17041
  function Geometry(buffers, attributes) {
17429
17042
  if (buffers === void 0) { buffers = []; }
@@ -17431,44 +17044,28 @@ var PIXI = (function (exports) {
17431
17044
  this.buffers = buffers;
17432
17045
  this.indexBuffer = null;
17433
17046
  this.attributes = attributes;
17434
- /**
17435
- * A map of renderer IDs to webgl VAOs
17436
- *
17437
- * @protected
17438
- * @type {object}
17439
- */
17440
17047
  this.glVertexArrayObjects = {};
17441
17048
  this.id = UID$1++;
17442
17049
  this.instanced = false;
17443
- /**
17444
- * Number of instances in this geometry, pass it to `GeometrySystem.draw()`
17445
- * @member {number}
17446
- * @default 1
17447
- */
17448
17050
  this.instanceCount = 1;
17449
17051
  this.disposeRunner = new Runner('disposeGeometry');
17450
- /**
17451
- * Count of existing (not destroyed) meshes that reference this geometry
17452
- * @member {number}
17453
- */
17454
17052
  this.refCount = 0;
17455
17053
  }
17456
17054
  /**
17457
- *
17458
- * Adds an attribute to the geometry
17459
- * Note: `stride` and `start` should be `undefined` if you dont know them, not 0!
17460
- *
17461
- * @param {String} id - the name of the attribute (matching up to a shader)
17462
- * @param {PIXI.Buffer|number[]} buffer - the buffer that holds the data of the attribute . You can also provide an Array and a buffer will be created from it.
17463
- * @param {Number} [size=0] - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
17464
- * @param {Boolean} [normalized=false] - should the data be normalized.
17465
- * @param {PIXI.TYPES} [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {PIXI.TYPES} to see the ones available
17466
- * @param {Number} [stride] - How far apart, in bytes, the start of each value is. (used for interleaving data)
17467
- * @param {Number} [start] - How far into the array to start reading values (used for interleaving data)
17468
- * @param {boolean} [instance=false] - Instancing flag
17469
- *
17470
- * @return {PIXI.Geometry} returns self, useful for chaining.
17471
- */
17055
+ *
17056
+ * Adds an attribute to the geometry
17057
+ * Note: `stride` and `start` should be `undefined` if you dont know them, not 0!
17058
+ *
17059
+ * @param id - the name of the attribute (matching up to a shader)
17060
+ * @param {PIXI.Buffer|number[]} buffer - the buffer that holds the data of the attribute . You can also provide an Array and a buffer will be created from it.
17061
+ * @param size - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
17062
+ * @param normalized - should the data be normalized.
17063
+ * @param [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {PIXI.TYPES} to see the ones available
17064
+ * @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
17065
+ * @param [start=0] - How far into the array to start reading values (used for interleaving data)
17066
+ * @param instance - Instancing flag
17067
+ * @return - Returns self, useful for chaining.
17068
+ */
17472
17069
  Geometry.prototype.addAttribute = function (id, buffer, size, normalized, type, stride, start, instance) {
17473
17070
  if (size === void 0) { size = 0; }
17474
17071
  if (normalized === void 0) { normalized = false; }
@@ -17502,19 +17099,19 @@ var PIXI = (function (exports) {
17502
17099
  return this;
17503
17100
  };
17504
17101
  /**
17505
- * returns the requested attribute
17102
+ * Returns the requested attribute.
17506
17103
  *
17507
- * @param {String} id - the name of the attribute required
17508
- * @return {PIXI.Attribute} the attribute requested.
17104
+ * @param id - The name of the attribute required
17105
+ * @return - The attribute requested.
17509
17106
  */
17510
17107
  Geometry.prototype.getAttribute = function (id) {
17511
17108
  return this.attributes[id];
17512
17109
  };
17513
17110
  /**
17514
- * returns the requested buffer
17111
+ * Returns the requested buffer.
17515
17112
  *
17516
- * @param {String} id - the name of the buffer required
17517
- * @return {PIXI.Buffer} the buffer requested.
17113
+ * @param id - The name of the buffer required.
17114
+ * @return - The buffer requested.
17518
17115
  */
17519
17116
  Geometry.prototype.getBuffer = function (id) {
17520
17117
  return this.buffers[this.getAttribute(id).buffer];
@@ -17524,8 +17121,8 @@ var PIXI = (function (exports) {
17524
17121
  * Adds an index buffer to the geometry
17525
17122
  * The index buffer contains integers, three for each triangle in the geometry, which reference the various attribute buffers (position, colour, UV coordinates, other UV coordinates, normal, …). There is only ONE index buffer.
17526
17123
  *
17527
- * @param {PIXI.Buffer|number[]} [buffer] - the buffer that holds the data of the index buffer. You can also provide an Array and a buffer will be created from it.
17528
- * @return {PIXI.Geometry} returns self, useful for chaining.
17124
+ * @param {PIXI.Buffer|number[]} [buffer] - The buffer that holds the data of the index buffer. You can also provide an Array and a buffer will be created from it.
17125
+ * @return - Returns self, useful for chaining.
17529
17126
  */
17530
17127
  Geometry.prototype.addIndex = function (buffer) {
17531
17128
  if (!(buffer instanceof Buffer)) {
@@ -17543,18 +17140,18 @@ var PIXI = (function (exports) {
17543
17140
  return this;
17544
17141
  };
17545
17142
  /**
17546
- * returns the index buffer
17143
+ * Returns the index buffer
17547
17144
  *
17548
- * @return {PIXI.Buffer} the index buffer.
17145
+ * @return - The index buffer.
17549
17146
  */
17550
17147
  Geometry.prototype.getIndex = function () {
17551
17148
  return this.indexBuffer;
17552
17149
  };
17553
17150
  /**
17554
- * this function modifies the structure so that all current attributes become interleaved into a single buffer
17151
+ * This function modifies the structure so that all current attributes become interleaved into a single buffer
17555
17152
  * This can be useful if your model remains static as it offers a little performance boost
17556
17153
  *
17557
- * @return {PIXI.Geometry} returns self, useful for chaining.
17154
+ * @return - Returns self, useful for chaining.
17558
17155
  */
17559
17156
  Geometry.prototype.interleave = function () {
17560
17157
  // a simple check to see if buffers are already interleaved..
@@ -17584,6 +17181,7 @@ var PIXI = (function (exports) {
17584
17181
  }
17585
17182
  return this;
17586
17183
  };
17184
+ /** Get the size of the geometries, in vertices. */
17587
17185
  Geometry.prototype.getSize = function () {
17588
17186
  for (var i in this.attributes) {
17589
17187
  var attribute = this.attributes[i];
@@ -17592,15 +17190,11 @@ var PIXI = (function (exports) {
17592
17190
  }
17593
17191
  return 0;
17594
17192
  };
17595
- /**
17596
- * disposes WebGL resources that are connected to this geometry
17597
- */
17193
+ /** Disposes WebGL resources that are connected to this geometry. */
17598
17194
  Geometry.prototype.dispose = function () {
17599
17195
  this.disposeRunner.emit(this, false);
17600
17196
  };
17601
- /**
17602
- * Destroys the geometry.
17603
- */
17197
+ /** Destroys the geometry. */
17604
17198
  Geometry.prototype.destroy = function () {
17605
17199
  this.dispose();
17606
17200
  this.buffers = null;
@@ -17608,9 +17202,9 @@ var PIXI = (function (exports) {
17608
17202
  this.attributes = null;
17609
17203
  };
17610
17204
  /**
17611
- * returns a clone of the geometry
17205
+ * Returns a clone of the geometry.
17612
17206
  *
17613
- * @returns {PIXI.Geometry} a new clone of this geometry
17207
+ * @returns - A new clone of this geometry.
17614
17208
  */
17615
17209
  Geometry.prototype.clone = function () {
17616
17210
  var geometry = new Geometry();
@@ -17628,11 +17222,12 @@ var PIXI = (function (exports) {
17628
17222
  return geometry;
17629
17223
  };
17630
17224
  /**
17631
- * merges an array of geometries into a new single one
17632
- * geometry attribute styles must match for this operation to work
17225
+ * Merges an array of geometries into a new single one.
17633
17226
  *
17634
- * @param {PIXI.Geometry[]} geometries - array of geometries to merge
17635
- * @returns {PIXI.Geometry} shiny new geometry!
17227
+ * Geometry attribute styles must match for this operation to work.
17228
+ *
17229
+ * @param geometries - array of geometries to merge
17230
+ * @return - Shiny new geometry!
17636
17231
  */
17637
17232
  Geometry.merge = function (geometries) {
17638
17233
  // todo add a geometry check!
@@ -17940,81 +17535,25 @@ var PIXI = (function (exports) {
17940
17535
  /**
17941
17536
  * System plugin to the renderer to manage filter states.
17942
17537
  *
17943
- * @class
17944
- * @private
17538
+ * @ignore
17945
17539
  */
17946
17540
  var FilterState = /** @class */ (function () {
17947
17541
  function FilterState() {
17948
17542
  this.renderTexture = null;
17949
- /**
17950
- * Target of the filters
17951
- * We store for case when custom filter wants to know the element it was applied on
17952
- * @member {PIXI.DisplayObject}
17953
- * @private
17954
- */
17955
17543
  this.target = null;
17956
- /**
17957
- * Compatibility with PixiJS v4 filters
17958
- * @member {boolean}
17959
- * @default false
17960
- * @private
17961
- */
17962
17544
  this.legacy = false;
17963
- /**
17964
- * Resolution of filters
17965
- * @member {number}
17966
- * @default 1
17967
- * @private
17968
- */
17969
17545
  this.resolution = 1;
17970
- /**
17971
- * Number of samples
17972
- * @member {PIXI.MSAA_QUALITY}
17973
- * @default MSAA_QUALITY.NONE
17974
- * @private
17975
- */
17976
17546
  this.multisample = exports.MSAA_QUALITY.NONE;
17977
17547
  // next three fields are created only for root
17978
17548
  // re-assigned for everything else
17979
- /**
17980
- * Source frame
17981
- * @member {PIXI.Rectangle}
17982
- * @private
17983
- */
17984
17549
  this.sourceFrame = new Rectangle();
17985
- /**
17986
- * Destination frame
17987
- * @member {PIXI.Rectangle}
17988
- * @private
17989
- */
17990
17550
  this.destinationFrame = new Rectangle();
17991
- /**
17992
- * Original render-target source frame
17993
- * @private
17994
- */
17995
17551
  this.bindingSourceFrame = new Rectangle();
17996
- /**
17997
- * Original render-target destination frame
17998
- * @private
17999
- */
18000
17552
  this.bindingDestinationFrame = new Rectangle();
18001
- /**
18002
- * Collection of filters
18003
- * @member {PIXI.Filter[]}
18004
- * @private
18005
- */
18006
17553
  this.filters = [];
18007
- /**
18008
- * Projection system transform saved by link.
18009
- * @member {PIXI.Matrix}
18010
- * @private
18011
- */
18012
17554
  this.transform = null;
18013
17555
  }
18014
- /**
18015
- * clears the state
18016
- * @private
18017
- */
17556
+ /** Clears the state */
18018
17557
  FilterState.prototype.clear = function () {
18019
17558
  this.target = null;
18020
17559
  this.filters = null;
@@ -18049,64 +17588,22 @@ var PIXI = (function (exports) {
18049
17588
  * * **pop**: Use {@link PIXI.FilterSystem#pop} to pop & execute the filters you initially pushed. It will apply them
18050
17589
  * serially and output to the bounds of the filter-target.
18051
17590
  *
18052
- * @class
18053
17591
  * @memberof PIXI
18054
- * @extends PIXI.System
18055
17592
  */
18056
17593
  var FilterSystem = /** @class */ (function () {
18057
17594
  /**
18058
- * @param {PIXI.Renderer} renderer - The renderer this System works for.
17595
+ * @param renderer - The renderer this System works for.
18059
17596
  */
18060
17597
  function FilterSystem(renderer) {
18061
17598
  this.renderer = renderer;
18062
- /**
18063
- * List of filters for the FilterSystem
18064
- * @member {Object[]}
18065
- * @readonly
18066
- */
18067
17599
  this.defaultFilterStack = [{}];
18068
- /**
18069
- * stores a bunch of PO2 textures used for filtering
18070
- * @member {Object}
18071
- */
18072
17600
  this.texturePool = new RenderTexturePool();
18073
17601
  this.texturePool.setScreenSize(renderer.view);
18074
- /**
18075
- * a pool for storing filter states, save us creating new ones each tick
18076
- * @member {Object[]}
18077
- */
18078
17602
  this.statePool = [];
18079
- /**
18080
- * A very simple geometry used when drawing a filter effect to the screen
18081
- * @member {PIXI.Quad}
18082
- */
18083
17603
  this.quad = new Quad();
18084
- /**
18085
- * Quad UVs
18086
- * @member {PIXI.QuadUv}
18087
- */
18088
17604
  this.quadUv = new QuadUv();
18089
- /**
18090
- * Temporary rect for maths
18091
- * @type {PIXI.Rectangle}
18092
- */
18093
17605
  this.tempRect = new Rectangle();
18094
- /**
18095
- * Active state
18096
- * @member {object}
18097
- */
18098
17606
  this.activeState = {};
18099
- /**
18100
- * This uniform group is attached to filter uniforms when used
18101
- * @member {PIXI.UniformGroup}
18102
- * @property {PIXI.Rectangle} outputFrame
18103
- * @property {Float32Array} inputSize
18104
- * @property {Float32Array} inputPixel
18105
- * @property {Float32Array} inputClamp
18106
- * @property {Number} resolution
18107
- * @property {Float32Array} filterArea
18108
- * @property {Float32Array} filterClamp
18109
- */
18110
17607
  this.globalUniforms = new UniformGroup({
18111
17608
  outputFrame: new Rectangle(),
18112
17609
  inputSize: new Float32Array(4),
@@ -18117,17 +17614,7 @@ var PIXI = (function (exports) {
18117
17614
  filterArea: new Float32Array(4),
18118
17615
  filterClamp: new Float32Array(4),
18119
17616
  }, true);
18120
- /**
18121
- * Whether to clear output renderTexture in AUTO/BLIT mode. See {@link PIXI.CLEAR_MODES}
18122
- * @member {boolean}
18123
- */
18124
17617
  this.forceClear = false;
18125
- /**
18126
- * Old padding behavior is to use the max amount instead of sum padding.
18127
- * Use this flag if you need the old behavior.
18128
- * @member {boolean}
18129
- * @default false
18130
- */
18131
17618
  this.useMaxPadding = false;
18132
17619
  }
18133
17620
  /**
@@ -18135,9 +17622,10 @@ var PIXI = (function (exports) {
18135
17622
  * input render-texture for the rest of the filtering pipeline.
18136
17623
  *
18137
17624
  * @param {PIXI.DisplayObject} target - The target of the filter to render.
18138
- * @param {PIXI.Filter[]} filters - The filters to apply.
17625
+ * @param filters - The filters to apply.
18139
17626
  */
18140
17627
  FilterSystem.prototype.push = function (target, filters) {
17628
+ var _a, _b;
18141
17629
  var renderer = this.renderer;
18142
17630
  var filterStack = this.defaultFilterStack;
18143
17631
  var state = this.statePool.pop() || new FilterState();
@@ -18146,7 +17634,9 @@ var PIXI = (function (exports) {
18146
17634
  var multisample = filters[0].multisample;
18147
17635
  var padding = filters[0].padding;
18148
17636
  var autoFit = filters[0].autoFit;
18149
- var legacy = filters[0].legacy;
17637
+ // We don't know whether it's a legacy filter until it was bound for the first time,
17638
+ // therefore we have to assume that it is if legacy is undefined.
17639
+ var legacy = (_a = filters[0].legacy) !== null && _a !== void 0 ? _a : true;
18150
17640
  for (var i = 1; i < filters.length; i++) {
18151
17641
  var filter = filters[i];
18152
17642
  // let's use the lowest resolution
@@ -18161,7 +17651,7 @@ var PIXI = (function (exports) {
18161
17651
  : padding + filter.padding;
18162
17652
  // only auto fit if all filters are autofit
18163
17653
  autoFit = autoFit && filter.autoFit;
18164
- legacy = legacy || filter.legacy;
17654
+ legacy = legacy || ((_b = filter.legacy) !== null && _b !== void 0 ? _b : true);
18165
17655
  }
18166
17656
  if (filterStack.length === 1) {
18167
17657
  this.defaultFilterStack[0].renderTexture = renderTextureSystem.current;
@@ -18200,9 +17690,7 @@ var PIXI = (function (exports) {
18200
17690
  renderTextureSystem.bind(state.renderTexture, state.sourceFrame, destinationFrame);
18201
17691
  renderer.framebuffer.clear(0, 0, 0, 0);
18202
17692
  };
18203
- /**
18204
- * Pops off the filter and applies it.
18205
- */
17693
+ /** Pops off the filter and applies it. */
18206
17694
  FilterSystem.prototype.pop = function () {
18207
17695
  var filterStack = this.defaultFilterStack;
18208
17696
  var state = filterStack.pop();
@@ -18271,8 +17759,8 @@ var PIXI = (function (exports) {
18271
17759
  /**
18272
17760
  * Binds a renderTexture with corresponding `filterFrame`, clears it if mode corresponds.
18273
17761
  *
18274
- * @param {PIXI.RenderTexture} filterTexture - renderTexture to bind, should belong to filter pool or filter stack
18275
- * @param {PIXI.CLEAR_MODES} [clearMode] - clearMode, by default its CLEAR/YES. See {@link PIXI.CLEAR_MODES}
17762
+ * @param filterTexture - renderTexture to bind, should belong to filter pool or filter stack
17763
+ * @param clearMode - clearMode, by default its CLEAR/YES. See {@link PIXI.CLEAR_MODES}
18276
17764
  */
18277
17765
  FilterSystem.prototype.bindAndClear = function (filterTexture, clearMode) {
18278
17766
  if (clearMode === void 0) { clearMode = exports.CLEAR_MODES.CLEAR; }
@@ -18312,12 +17800,14 @@ var PIXI = (function (exports) {
18312
17800
  }
18313
17801
  };
18314
17802
  /**
18315
- * Draws a filter.
17803
+ * Draws a filter using the default rendering process.
18316
17804
  *
18317
- * @param {PIXI.Filter} filter - The filter to draw.
18318
- * @param {PIXI.RenderTexture} input - The input render target.
18319
- * @param {PIXI.RenderTexture} output - The target to output to.
18320
- * @param {PIXI.CLEAR_MODES} [clearMode] - Should the output be cleared before rendering to it
17805
+ * This should be called only by {@link Filter#apply}.
17806
+ *
17807
+ * @param filter - The filter to draw.
17808
+ * @param input - The input render target.
17809
+ * @param output - The target to output to.
17810
+ * @param clearMode - Should the output be cleared before rendering to it
18321
17811
  */
18322
17812
  FilterSystem.prototype.applyFilter = function (filter, input, output, clearMode) {
18323
17813
  var renderer = this.renderer;
@@ -18348,9 +17838,9 @@ var PIXI = (function (exports) {
18348
17838
  *
18349
17839
  * Use `outputMatrix * vTextureCoord` in the shader.
18350
17840
  *
18351
- * @param {PIXI.Matrix} outputMatrix - The matrix to output to.
17841
+ * @param outputMatrix - The matrix to output to.
18352
17842
  * @param {PIXI.Sprite} sprite - The sprite to map to.
18353
- * @return {PIXI.Matrix} The mapped matrix.
17843
+ * @return The mapped matrix.
18354
17844
  */
18355
17845
  FilterSystem.prototype.calculateSpriteMatrix = function (outputMatrix, sprite) {
18356
17846
  var _a = this.activeState, sourceFrame = _a.sourceFrame, destinationFrame = _a.destinationFrame;
@@ -18363,9 +17853,7 @@ var PIXI = (function (exports) {
18363
17853
  mappedMatrix.translate(sprite.anchor.x, sprite.anchor.y);
18364
17854
  return mappedMatrix;
18365
17855
  };
18366
- /**
18367
- * Destroys this Filter System.
18368
- */
17856
+ /** Destroys this Filter System. */
18369
17857
  FilterSystem.prototype.destroy = function () {
18370
17858
  this.renderer = null;
18371
17859
  // Those textures has to be destroyed by RenderTextureSystem or FramebufferSystem
@@ -18374,12 +17862,11 @@ var PIXI = (function (exports) {
18374
17862
  /**
18375
17863
  * Gets a Power-of-Two render texture or fullScreen texture
18376
17864
  *
18377
- * @protected
18378
- * @param {number} minWidth - The minimum width of the render texture in real pixels.
18379
- * @param {number} minHeight - The minimum height of the render texture in real pixels.
18380
- * @param {number} [resolution=1] - The resolution of the render texture.
18381
- * @param {PIXI.MSAA_QUALITY} [multisample=PIXI.MSAA_QUALITY.NONE] - Number of samples of the render texture.
18382
- * @return {PIXI.RenderTexture} The new render texture.
17865
+ * @param minWidth - The minimum width of the render texture in real pixels.
17866
+ * @param minHeight - The minimum height of the render texture in real pixels.
17867
+ * @param resolution - The resolution of the render texture.
17868
+ * @param multisample - Number of samples of the render texture.
17869
+ * @return - The new render texture.
18383
17870
  */
18384
17871
  FilterSystem.prototype.getOptimalFilterTexture = function (minWidth, minHeight, resolution, multisample) {
18385
17872
  if (resolution === void 0) { resolution = 1; }
@@ -18390,10 +17877,9 @@ var PIXI = (function (exports) {
18390
17877
  * Gets extra render texture to use inside current filter
18391
17878
  * To be compliant with older filters, you can use params in any order
18392
17879
  *
18393
- * @param {PIXI.RenderTexture} [input] - renderTexture from which size and resolution will be copied
18394
- * @param {number} [resolution] - override resolution of the renderTexture
18395
- * @param {PIXI.MSAA_QUALITY} [multisample=PIXI.MSAA_QUALITY.NONE] - number of samples of the renderTexture
18396
- * @returns {PIXI.RenderTexture}
17880
+ * @param input - renderTexture from which size and resolution will be copied
17881
+ * @param resolution - override resolution of the renderTexture
17882
+ * @param multisample - number of samples of the renderTexture
18397
17883
  */
18398
17884
  FilterSystem.prototype.getFilterTexture = function (input, resolution, multisample) {
18399
17885
  if (typeof input === 'number') {
@@ -18409,26 +17895,22 @@ var PIXI = (function (exports) {
18409
17895
  /**
18410
17896
  * Frees a render texture back into the pool.
18411
17897
  *
18412
- * @param {PIXI.RenderTexture} renderTexture - The renderTarget to free
17898
+ * @param renderTexture - The renderTarget to free
18413
17899
  */
18414
17900
  FilterSystem.prototype.returnFilterTexture = function (renderTexture) {
18415
17901
  this.texturePool.returnTexture(renderTexture);
18416
17902
  };
18417
- /**
18418
- * Empties the texture pool.
18419
- */
17903
+ /** Empties the texture pool. */
18420
17904
  FilterSystem.prototype.emptyPool = function () {
18421
17905
  this.texturePool.clear(true);
18422
17906
  };
18423
- /**
18424
- * calls `texturePool.resize()`, affects fullScreen renderTextures
18425
- */
17907
+ /** Calls `texturePool.resize()`, affects fullScreen renderTextures. */
18426
17908
  FilterSystem.prototype.resize = function () {
18427
17909
  this.texturePool.setScreenSize(this.renderer.view);
18428
17910
  };
18429
17911
  /**
18430
- * @param {PIXI.Matrix} matrix - first param
18431
- * @param {PIXI.Rectangle} rect - second param
17912
+ * @param matrix - first param
17913
+ * @param rect - second param
18432
17914
  */
18433
17915
  FilterSystem.prototype.transformAABB = function (matrix, rect) {
18434
17916
  var lt = tempPoints[0];
@@ -19392,46 +18874,20 @@ var PIXI = (function (exports) {
19392
18874
  /**
19393
18875
  * System plugin to the renderer to manage geometry.
19394
18876
  *
19395
- * @class
19396
- * @extends PIXI.System
19397
18877
  * @memberof PIXI
19398
18878
  */
19399
18879
  var GeometrySystem = /** @class */ (function () {
19400
- /**
19401
- * @param {PIXI.Renderer} renderer - The renderer this System works for.
19402
- */
18880
+ /** @param renderer - The renderer this System works for. */
19403
18881
  function GeometrySystem(renderer) {
19404
18882
  this.renderer = renderer;
19405
18883
  this._activeGeometry = null;
19406
18884
  this._activeVao = null;
19407
- /**
19408
- * `true` if we has `*_vertex_array_object` extension
19409
- * @member {boolean}
19410
- * @readonly
19411
- */
19412
18885
  this.hasVao = true;
19413
- /**
19414
- * `true` if has `ANGLE_instanced_arrays` extension
19415
- * @member {boolean}
19416
- * @readonly
19417
- */
19418
18886
  this.hasInstance = true;
19419
- /**
19420
- * `true` if support `gl.UNSIGNED_INT` in `gl.drawElements` or `gl.drawElementsInstanced`
19421
- * @member {boolean}
19422
- * @readonly
19423
- */
19424
18887
  this.canUseUInt32ElementIndex = false;
19425
- /**
19426
- * Cache for all geometries by id, used in case renderer gets destroyed or for profiling
19427
- * @member {object}
19428
- * @readonly
19429
- */
19430
18888
  this.managedGeometries = {};
19431
18889
  }
19432
- /**
19433
- * Sets up the renderer context and necessary buffers.
19434
- */
18890
+ /** Sets up the renderer context and necessary buffers. */
19435
18891
  GeometrySystem.prototype.contextChange = function () {
19436
18892
  this.disposeAll(true);
19437
18893
  var gl = this.gl = this.renderer.gl;
@@ -19490,8 +18946,8 @@ var PIXI = (function (exports) {
19490
18946
  /**
19491
18947
  * Binds geometry so that is can be drawn. Creating a Vao if required
19492
18948
  *
19493
- * @param {PIXI.Geometry} geometry - instance of geometry to bind
19494
- * @param {PIXI.Shader} [shader] - instance of shader to use vao for
18949
+ * @param geometry - Instance of geometry to bind.
18950
+ * @param shader - Instance of shader to use vao for.
19495
18951
  */
19496
18952
  GeometrySystem.prototype.bind = function (geometry, shader) {
19497
18953
  shader = shader || this.renderer.shader.shader;
@@ -19524,16 +18980,11 @@ var PIXI = (function (exports) {
19524
18980
  // maybe look to add an 'autoupdate' to geometry?
19525
18981
  this.updateBuffers();
19526
18982
  };
19527
- /**
19528
- * Reset and unbind any active VAO and geometry
19529
- */
18983
+ /** Reset and unbind any active VAO and geometry. */
19530
18984
  GeometrySystem.prototype.reset = function () {
19531
18985
  this.unbind();
19532
18986
  };
19533
- /**
19534
- * Update buffers
19535
- * @protected
19536
- */
18987
+ /** Update buffers of the currently bound geometry. */
19537
18988
  GeometrySystem.prototype.updateBuffers = function () {
19538
18989
  var geometry = this._activeGeometry;
19539
18990
  var bufferSystem = this.renderer.buffer;
@@ -19544,9 +18995,9 @@ var PIXI = (function (exports) {
19544
18995
  };
19545
18996
  /**
19546
18997
  * Check compatibility between a geometry and a program
19547
- * @protected
19548
- * @param {PIXI.Geometry} geometry - Geometry instance
19549
- * @param {PIXI.Program} program - Program instance
18998
+ *
18999
+ * @param geometry - Geometry instance.
19000
+ * @param program - Program instance.
19550
19001
  */
19551
19002
  GeometrySystem.prototype.checkCompatibility = function (geometry, program) {
19552
19003
  // geometry must have at least all the attributes that the shader requires.
@@ -19561,10 +19012,9 @@ var PIXI = (function (exports) {
19561
19012
  /**
19562
19013
  * Takes a geometry and program and generates a unique signature for them.
19563
19014
  *
19564
- * @param {PIXI.Geometry} geometry - to get signature from
19565
- * @param {PIXI.Program} program - to test geometry against
19566
- * @returns {String} Unique signature of the geometry and program
19567
- * @protected
19015
+ * @param geometry - To get signature from.
19016
+ * @param program - To test geometry against.
19017
+ * @return - Unique signature of the geometry and program
19568
19018
  */
19569
19019
  GeometrySystem.prototype.getSignature = function (geometry, program) {
19570
19020
  var attribs = geometry.attributes;
@@ -19572,7 +19022,7 @@ var PIXI = (function (exports) {
19572
19022
  var strings = ['g', geometry.id];
19573
19023
  for (var i in attribs) {
19574
19024
  if (shaderAttributes[i]) {
19575
- strings.push(i);
19025
+ strings.push(i, shaderAttributes[i].location);
19576
19026
  }
19577
19027
  }
19578
19028
  return strings.join('-');
@@ -19582,10 +19032,9 @@ var PIXI = (function (exports) {
19582
19032
  * If vao is created, it is bound automatically. We use a shader to infer what and how to set up the
19583
19033
  * attribute locations.
19584
19034
  *
19585
- * @protected
19586
- * @param {PIXI.Geometry} geometry - Instance of geometry to to generate Vao for
19587
- * @param {PIXI.Shader} shader - Instance of the shader
19588
- * @param {boolean} [incRefCount=false] - Increment refCount of all geometry buffers
19035
+ * @param geometry - Instance of geometry to to generate Vao for.
19036
+ * @param shader - Instance of the shader.
19037
+ * @param incRefCount - Increment refCount of all geometry buffers.
19589
19038
  */
19590
19039
  GeometrySystem.prototype.initGeometryVao = function (geometry, shader, incRefCount) {
19591
19040
  if (incRefCount === void 0) { incRefCount = true; }
@@ -19659,9 +19108,10 @@ var PIXI = (function (exports) {
19659
19108
  return vao;
19660
19109
  };
19661
19110
  /**
19662
- * Disposes geometry
19663
- * @param {PIXI.Geometry} geometry - Geometry with buffers. Only VAO will be disposed
19664
- * @param {boolean} [contextLost=false] - If context was lost, we suppress deleteVertexArray
19111
+ * Disposes geometry.
19112
+ *
19113
+ * @param geometry - Geometry with buffers. Only VAO will be disposed
19114
+ * @param [contextLost=false] - If context was lost, we suppress deleteVertexArray
19665
19115
  */
19666
19116
  GeometrySystem.prototype.disposeGeometry = function (geometry, contextLost) {
19667
19117
  var _a;
@@ -19707,8 +19157,9 @@ var PIXI = (function (exports) {
19707
19157
  delete geometry.glVertexArrayObjects[this.CONTEXT_UID];
19708
19158
  };
19709
19159
  /**
19710
- * dispose all WebGL resources of all managed geometries
19711
- * @param {boolean} [contextLost=false] - If context was lost, we suppress `gl.delete` calls
19160
+ * Dispose all WebGL resources of all managed geometries.
19161
+ *
19162
+ * @param [contextLost=false] - If context was lost, we suppress `gl.delete` calls
19712
19163
  */
19713
19164
  GeometrySystem.prototype.disposeAll = function (contextLost) {
19714
19165
  var all = Object.keys(this.managedGeometries);
@@ -19717,11 +19168,10 @@ var PIXI = (function (exports) {
19717
19168
  }
19718
19169
  };
19719
19170
  /**
19720
- * Activate vertex array object
19171
+ * Activate vertex array object.
19721
19172
  *
19722
- * @protected
19723
- * @param {PIXI.Geometry} geometry - Geometry instance
19724
- * @param {PIXI.Program} program - Shader program instance
19173
+ * @param geometry - Geometry instance.
19174
+ * @param program - Shader program instance.
19725
19175
  */
19726
19176
  GeometrySystem.prototype.activateVao = function (geometry, program) {
19727
19177
  var gl = this.gl;
@@ -19762,12 +19212,15 @@ var PIXI = (function (exports) {
19762
19212
  }
19763
19213
  };
19764
19214
  /**
19765
- * Draw the geometry
19215
+ * Draws the currently bound geometry.
19766
19216
  *
19767
- * @param {Number} type - the type primitive to render
19768
- * @param {Number} [size] - the number of elements to be rendered
19769
- * @param {Number} [start] - Starting index
19770
- * @param {Number} [instanceCount] - the number of instances of the set of elements to execute
19217
+ * @param type - The type primitive to render.
19218
+ * @param size - The number of elements to be rendered. If not specified, all vertices after the
19219
+ * starting vertex will be drawn.
19220
+ * @param start - The starting vertex in the geometry to start drawing from. If not specified,
19221
+ * drawing will start from the first vertex.
19222
+ * @param instanceCount - The number of instances of the set of elements to execute. If not specified,
19223
+ * all instances will be drawn.
19771
19224
  */
19772
19225
  GeometrySystem.prototype.draw = function (type, size, start, instanceCount) {
19773
19226
  var gl = this.gl;
@@ -19801,18 +19254,12 @@ var PIXI = (function (exports) {
19801
19254
  }
19802
19255
  return this;
19803
19256
  };
19804
- /**
19805
- * Unbind/reset everything
19806
- * @protected
19807
- */
19257
+ /** Unbind/reset everything. */
19808
19258
  GeometrySystem.prototype.unbind = function () {
19809
19259
  this.gl.bindVertexArray(null);
19810
19260
  this._activeVao = null;
19811
19261
  this._activeGeometry = null;
19812
19262
  };
19813
- /**
19814
- * @ignore
19815
- */
19816
19263
  GeometrySystem.prototype.destroy = function () {
19817
19264
  this.renderer = null;
19818
19265
  };
@@ -20960,53 +20407,24 @@ var PIXI = (function (exports) {
20960
20407
  * Since PixiJS only had a handful of built-in filters, additional filters can be downloaded
20961
20408
  * {@link https://github.com/pixijs/pixi-filters here} from the PixiJS Filters repository.
20962
20409
  *
20963
- * @class
20964
20410
  * @memberof PIXI
20965
- * @extends PIXI.Shader
20966
20411
  */
20967
20412
  var Filter = /** @class */ (function (_super) {
20968
20413
  __extends$2(Filter, _super);
20969
20414
  /**
20970
- * @param {string} [vertexSrc] - The source of the vertex shader.
20971
- * @param {string} [fragmentSrc] - The source of the fragment shader.
20972
- * @param {object} [uniforms] - Custom uniforms to use to augment the built-in ones.
20415
+ * @param vertexSrc - The source of the vertex shader.
20416
+ * @param fragmentSrc - The source of the fragment shader.
20417
+ * @param uniforms - Custom uniforms to use to augment the built-in ones.
20973
20418
  */
20974
20419
  function Filter(vertexSrc, fragmentSrc, uniforms) {
20975
20420
  var _this = this;
20976
20421
  var program = Program.from(vertexSrc || Filter.defaultVertexSrc, fragmentSrc || Filter.defaultFragmentSrc);
20977
20422
  _this = _super.call(this, program, uniforms) || this;
20978
- /**
20979
- * The padding of the filter. Some filters require extra space to breath such as a blur.
20980
- * Increasing this will add extra width and height to the bounds of the object that the
20981
- * filter is applied to.
20982
- *
20983
- * @member {number}
20984
- */
20985
20423
  _this.padding = 0;
20986
20424
  _this.resolution = settings.FILTER_RESOLUTION;
20987
- /**
20988
- * The samples of the filter.
20989
- *
20990
- * @member {PIXI.MSAA_QUALITY}
20991
- */
20992
20425
  _this.multisample = settings.FILTER_MULTISAMPLE;
20993
- /**
20994
- * If enabled is true the filter is applied, if false it will not.
20995
- *
20996
- * @member {boolean}
20997
- */
20998
20426
  _this.enabled = true;
20999
- /**
21000
- * If enabled, PixiJS will fit the filter area into boundaries for better performance.
21001
- * Switch it off if it does not work for specific shader.
21002
- *
21003
- * @member {boolean}
21004
- */
21005
20427
  _this.autoFit = true;
21006
- /**
21007
- * The WebGL state the filter requires to render
21008
- * @member {PIXI.State}
21009
- */
21010
20428
  _this.state = new State();
21011
20429
  return _this;
21012
20430
  }
@@ -21028,9 +20446,8 @@ var PIXI = (function (exports) {
21028
20446
  };
21029
20447
  Object.defineProperty(Filter.prototype, "blendMode", {
21030
20448
  /**
21031
- * Sets the blendmode of the filter
20449
+ * Sets the blend mode of the filter.
21032
20450
  *
21033
- * @member {number}
21034
20451
  * @default PIXI.BLEND_MODES.NORMAL
21035
20452
  */
21036
20453
  get: function () {
@@ -21046,8 +20463,6 @@ var PIXI = (function (exports) {
21046
20463
  /**
21047
20464
  * The resolution of the filter. Setting this to be lower will lower the quality but
21048
20465
  * increase the performance of the filter.
21049
- *
21050
- * @member {number}
21051
20466
  */
21052
20467
  get: function () {
21053
20468
  return this._resolution;
@@ -21062,8 +20477,6 @@ var PIXI = (function (exports) {
21062
20477
  /**
21063
20478
  * The default vertex shader source
21064
20479
  *
21065
- * @static
21066
- * @type {string}
21067
20480
  * @constant
21068
20481
  */
21069
20482
  get: function () {
@@ -21076,8 +20489,6 @@ var PIXI = (function (exports) {
21076
20489
  /**
21077
20490
  * The default fragment shader source
21078
20491
  *
21079
- * @static
21080
- * @type {string}
21081
20492
  * @constant
21082
20493
  */
21083
20494
  get: function () {
@@ -21259,15 +20670,11 @@ var PIXI = (function (exports) {
21259
20670
  *
21260
20671
  * WebGL only.
21261
20672
  *
21262
- * @class
21263
- * @extends PIXI.Filter
21264
20673
  * @memberof PIXI
21265
20674
  */
21266
20675
  var SpriteMaskFilter = /** @class */ (function (_super) {
21267
20676
  __extends$2(SpriteMaskFilter, _super);
21268
- /**
21269
- * @ignore
21270
- */
20677
+ /** @ignore */
21271
20678
  function SpriteMaskFilter(vertexSrc, fragmentSrc, uniforms) {
21272
20679
  var _this = this;
21273
20680
  var sprite = null;
@@ -21278,19 +20685,16 @@ var PIXI = (function (exports) {
21278
20685
  uniforms = undefined;
21279
20686
  }
21280
20687
  _this = _super.call(this, vertexSrc || vertex, fragmentSrc || fragment, uniforms) || this;
21281
- /**
21282
- * Sprite mask
21283
- * @member {PIXI.Sprite}
21284
- */
21285
20688
  _this.maskSprite = sprite;
21286
- /**
21287
- * Mask matrix
21288
- * @member {PIXI.Matrix}
21289
- */
21290
20689
  _this.maskMatrix = new Matrix();
21291
20690
  return _this;
21292
20691
  }
21293
20692
  Object.defineProperty(SpriteMaskFilter.prototype, "maskSprite", {
20693
+ /**
20694
+ * Sprite mask
20695
+ *
20696
+ * @type {PIXI.DisplayObject}
20697
+ */
21294
20698
  get: function () {
21295
20699
  return this._maskSprite;
21296
20700
  },
@@ -21306,10 +20710,10 @@ var PIXI = (function (exports) {
21306
20710
  /**
21307
20711
  * Applies the filter
21308
20712
  *
21309
- * @param {PIXI.FilterSystem} filterManager - The renderer to retrieve the filter from
21310
- * @param {PIXI.RenderTexture} input - The input render target.
21311
- * @param {PIXI.RenderTexture} output - The target to output to.
21312
- * @param {PIXI.CLEAR_MODES} clearMode - Should the output be cleared before rendering to it.
20713
+ * @param filterManager - The renderer to retrieve the filter from
20714
+ * @param input - The input render target.
20715
+ * @param output - The target to output to.
20716
+ * @param clearMode - Should the output be cleared before rendering to it.
21313
20717
  */
21314
20718
  SpriteMaskFilter.prototype.apply = function (filterManager, input, output, clearMode) {
21315
20719
  var maskSprite = this._maskSprite;
@@ -21771,6 +21175,8 @@ var PIXI = (function (exports) {
21771
21175
  if (prevMaskCount === 0) {
21772
21176
  // force use stencil texture in current framebuffer
21773
21177
  this.renderer.framebuffer.forceStencil();
21178
+ gl.clearStencil(0);
21179
+ gl.clear(gl.STENCIL_BUFFER_BIT);
21774
21180
  gl.enable(gl.STENCIL_TEST);
21775
21181
  }
21776
21182
  maskData._stencilCounter++;
@@ -21794,8 +21200,6 @@ var PIXI = (function (exports) {
21794
21200
  if (this.getStackLength() === 0) {
21795
21201
  // the stack is empty!
21796
21202
  gl.disable(gl.STENCIL_TEST);
21797
- gl.clearStencil(0);
21798
- gl.clear(gl.STENCIL_BUFFER_BIT);
21799
21203
  }
21800
21204
  else {
21801
21205
  // Decrement the reference stencil value where the popped mask overlaps with the other ones
@@ -25149,8 +24553,8 @@ var PIXI = (function (exports) {
25149
24553
  }
25150
24554
 
25151
24555
  /*!
25152
- * @pixi/app - v6.2.0
25153
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
24556
+ * @pixi/app - v6.2.1
24557
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
25154
24558
  *
25155
24559
  * @pixi/app is licensed under the MIT License.
25156
24560
  * http://www.opensource.org/licenses/mit-license
@@ -25414,8 +24818,8 @@ var PIXI = (function (exports) {
25414
24818
  Application.registerPlugin(ResizePlugin);
25415
24819
 
25416
24820
  /*!
25417
- * @pixi/extract - v6.2.0
25418
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
24821
+ * @pixi/extract - v6.2.1
24822
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
25419
24823
  *
25420
24824
  * @pixi/extract is licensed under the MIT License.
25421
24825
  * http://www.opensource.org/licenses/mit-license
@@ -25622,8 +25026,8 @@ var PIXI = (function (exports) {
25622
25026
  }());
25623
25027
 
25624
25028
  /*!
25625
- * @pixi/loaders - v6.2.0
25626
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
25029
+ * @pixi/loaders - v6.2.1
25030
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
25627
25031
  *
25628
25032
  * @pixi/loaders is licensed under the MIT License.
25629
25033
  * http://www.opensource.org/licenses/mit-license
@@ -27640,8 +27044,8 @@ var PIXI = (function (exports) {
27640
27044
  Loader.registerPlugin(TextureLoader);
27641
27045
 
27642
27046
  /*!
27643
- * @pixi/compressed-textures - v6.2.0
27644
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
27047
+ * @pixi/compressed-textures - v6.2.1
27048
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
27645
27049
  *
27646
27050
  * @pixi/compressed-textures is licensed under the MIT License.
27647
27051
  * http://www.opensource.org/licenses/mit-license
@@ -28863,8 +28267,8 @@ var PIXI = (function (exports) {
28863
28267
  }());
28864
28268
 
28865
28269
  /*!
28866
- * @pixi/particle-container - v6.2.0
28867
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
28270
+ * @pixi/particle-container - v6.2.1
28271
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
28868
28272
  *
28869
28273
  * @pixi/particle-container is licensed under the MIT License.
28870
28274
  * http://www.opensource.org/licenses/mit-license
@@ -29666,8 +29070,8 @@ var PIXI = (function (exports) {
29666
29070
  }(ObjectRenderer));
29667
29071
 
29668
29072
  /*!
29669
- * @pixi/graphics - v6.2.0
29670
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
29073
+ * @pixi/graphics - v6.2.1
29074
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
29671
29075
  *
29672
29076
  * @pixi/graphics is licensed under the MIT License.
29673
29077
  * http://www.opensource.org/licenses/mit-license
@@ -32710,8 +32114,8 @@ var PIXI = (function (exports) {
32710
32114
  };
32711
32115
 
32712
32116
  /*!
32713
- * @pixi/sprite - v6.2.0
32714
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
32117
+ * @pixi/sprite - v6.2.1
32118
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
32715
32119
  *
32716
32120
  * @pixi/sprite is licensed under the MIT License.
32717
32121
  * http://www.opensource.org/licenses/mit-license
@@ -33162,8 +32566,8 @@ var PIXI = (function (exports) {
33162
32566
  }(Container));
33163
32567
 
33164
32568
  /*!
33165
- * @pixi/text - v6.2.0
33166
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
32569
+ * @pixi/text - v6.2.1
32570
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
33167
32571
  *
33168
32572
  * @pixi/text is licensed under the MIT License.
33169
32573
  * http://www.opensource.org/licenses/mit-license
@@ -34539,11 +33943,6 @@ var PIXI = (function (exports) {
34539
33943
  children: false,
34540
33944
  baseTexture: true,
34541
33945
  };
34542
- // Checking that we can use moddern canvas2D api
34543
- // https://developer.chrome.com/origintrials/#/view_trial/3585991203293757441
34544
- // note: this is unstable API, Chrome less 94 use a `textLetterSpacing`, newest use a letterSpacing
34545
- // eslint-disable-next-line max-len
34546
- var supportLetterSpacing = 'letterSpacing' in CanvasRenderingContext2D.prototype || 'textLetterSpacing' in CanvasRenderingContext2D.prototype;
34547
33946
  /**
34548
33947
  * A Text Object will create a line or multiple lines of text.
34549
33948
  *
@@ -34723,6 +34122,12 @@ var PIXI = (function (exports) {
34723
34122
  var style = this._style;
34724
34123
  // letterSpacing of 0 means normal
34725
34124
  var letterSpacing = style.letterSpacing;
34125
+ // Checking that we can use moddern canvas2D api
34126
+ // https://developer.chrome.com/origintrials/#/view_trial/3585991203293757441
34127
+ // note: this is unstable API, Chrome less 94 use a `textLetterSpacing`, newest use a letterSpacing
34128
+ // eslint-disable-next-line max-len
34129
+ var supportLetterSpacing = 'letterSpacing' in CanvasRenderingContext2D.prototype
34130
+ || 'textLetterSpacing' in CanvasRenderingContext2D.prototype;
34726
34131
  if (letterSpacing === 0 || supportLetterSpacing) {
34727
34132
  if (supportLetterSpacing) {
34728
34133
  this.context.letterSpacing = letterSpacing;
@@ -35057,8 +34462,8 @@ var PIXI = (function (exports) {
35057
34462
  }(Sprite));
35058
34463
 
35059
34464
  /*!
35060
- * @pixi/prepare - v6.2.0
35061
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
34465
+ * @pixi/prepare - v6.2.1
34466
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
35062
34467
  *
35063
34468
  * @pixi/prepare is licensed under the MIT License.
35064
34469
  * http://www.opensource.org/licenses/mit-license
@@ -35583,36 +34988,22 @@ var PIXI = (function (exports) {
35583
34988
  * TimeLimiter limits the number of items handled by a {@link PIXI.BasePrepare} to a specified
35584
34989
  * number of milliseconds per frame.
35585
34990
  *
35586
- * @class
35587
34991
  * @memberof PIXI
35588
34992
  */
35589
34993
  var TimeLimiter = /** @class */ (function () {
35590
- /**
35591
- * @param {number} maxMilliseconds - The maximum milliseconds that can be spent preparing items each frame.
35592
- */
34994
+ /** @param maxMilliseconds - The maximum milliseconds that can be spent preparing items each frame. */
35593
34995
  function TimeLimiter(maxMilliseconds) {
35594
- /**
35595
- * The maximum milliseconds that can be spent preparing items each frame.
35596
- * @type {number}
35597
- * @private
35598
- */
35599
34996
  this.maxMilliseconds = maxMilliseconds;
35600
- /**
35601
- * The start time of the current frame.
35602
- * @type {number}
35603
- * @private
35604
- */
35605
34997
  this.frameStart = 0;
35606
34998
  }
35607
- /**
35608
- * Resets any counting properties to start fresh on a new frame.
35609
- */
34999
+ /** Resets any counting properties to start fresh on a new frame. */
35610
35000
  TimeLimiter.prototype.beginFrame = function () {
35611
35001
  this.frameStart = Date.now();
35612
35002
  };
35613
35003
  /**
35614
35004
  * Checks to see if another item can be uploaded. This should only be called once per item.
35615
- * @return {boolean} If the item is allowed to be uploaded.
35005
+ *
35006
+ * @return - If the item is allowed to be uploaded.
35616
35007
  */
35617
35008
  TimeLimiter.prototype.allowedToUpload = function () {
35618
35009
  return Date.now() - this.frameStart < this.maxMilliseconds;
@@ -35621,8 +35012,8 @@ var PIXI = (function (exports) {
35621
35012
  }());
35622
35013
 
35623
35014
  /*!
35624
- * @pixi/spritesheet - v6.2.0
35625
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
35015
+ * @pixi/spritesheet - v6.2.1
35016
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
35626
35017
  *
35627
35018
  * @pixi/spritesheet is licensed under the MIT License.
35628
35019
  * http://www.opensource.org/licenses/mit-license
@@ -35935,8 +35326,8 @@ var PIXI = (function (exports) {
35935
35326
  }());
35936
35327
 
35937
35328
  /*!
35938
- * @pixi/sprite-tiling - v6.2.0
35939
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
35329
+ * @pixi/sprite-tiling - v6.2.1
35330
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
35940
35331
  *
35941
35332
  * @pixi/sprite-tiling is licensed under the MIT License.
35942
35333
  * http://www.opensource.org/licenses/mit-license
@@ -36296,8 +35687,8 @@ var PIXI = (function (exports) {
36296
35687
  }(ObjectRenderer));
36297
35688
 
36298
35689
  /*!
36299
- * @pixi/mesh - v6.2.0
36300
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
35690
+ * @pixi/mesh - v6.2.1
35691
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
36301
35692
  *
36302
35693
  * @pixi/mesh is licensed under the MIT License.
36303
35694
  * http://www.opensource.org/licenses/mit-license
@@ -36394,7 +35785,7 @@ var PIXI = (function (exports) {
36394
35785
  *
36395
35786
  * This class empowers you to have maximum flexibility to render any kind of WebGL visuals you can think of.
36396
35787
  * This class assumes a certain level of WebGL knowledge.
36397
- * If you know a bit this should abstract enough away to make you life easier!
35788
+ * If you know a bit this should abstract enough away to make your life easier!
36398
35789
  *
36399
35790
  * Pretty much ALL WebGL can be broken down into the following:
36400
35791
  * - Geometry - The structure and data for the mesh. This can include anything from positions, uvs, normals, colors etc..
@@ -36403,92 +35794,32 @@ var PIXI = (function (exports) {
36403
35794
  *
36404
35795
  * Through a combination of the above elements you can render anything you want, 2D or 3D!
36405
35796
  *
36406
- * @class
36407
- * @extends PIXI.Container
36408
35797
  * @memberof PIXI
36409
35798
  */
36410
35799
  var Mesh = /** @class */ (function (_super) {
36411
35800
  __extends$a(Mesh, _super);
36412
35801
  /**
36413
- * @param {PIXI.Geometry} geometry - the geometry the mesh will use
36414
- * @param {PIXI.MeshMaterial} shader - the shader the mesh will use
36415
- * @param {PIXI.State} [state] - the state that the WebGL context is required to be in to render the mesh
35802
+ * @param geometry - The geometry the mesh will use.
35803
+ * @param {PIXI.MeshMaterial} shader - The shader the mesh will use.
35804
+ * @param state - The state that the WebGL context is required to be in to render the mesh
36416
35805
  * if no state is provided, uses {@link PIXI.State.for2d} to create a 2D state for PixiJS.
36417
- * @param {number} [drawMode=PIXI.DRAW_MODES.TRIANGLES] - the drawMode, can be any of the PIXI.DRAW_MODES consts
35806
+ * @param drawMode - The drawMode, can be any of the {@link PIXI.DRAW_MODES} constants.
36418
35807
  */
36419
35808
  function Mesh(geometry, shader, state, drawMode) {
36420
35809
  if (drawMode === void 0) { drawMode = exports.DRAW_MODES.TRIANGLES; }
36421
35810
  var _this = _super.call(this) || this;
36422
35811
  _this.geometry = geometry;
36423
- /**
36424
- * Represents the vertex and fragment shaders that processes the geometry and runs on the GPU.
36425
- * Can be shared between multiple Mesh objects.
36426
- * @member {PIXI.Shader|PIXI.MeshMaterial}
36427
- */
36428
35812
  _this.shader = shader;
36429
- /**
36430
- * Represents the WebGL state the Mesh required to render, excludes shader and geometry. E.g.,
36431
- * blend mode, culling, depth testing, direction of rendering triangles, backface, etc.
36432
- * @member {PIXI.State}
36433
- */
36434
35813
  _this.state = state || State.for2d();
36435
- /**
36436
- * The way the Mesh should be drawn, can be any of the {@link PIXI.DRAW_MODES} constants.
36437
- *
36438
- * @member {number}
36439
- * @see PIXI.DRAW_MODES
36440
- */
36441
35814
  _this.drawMode = drawMode;
36442
- /**
36443
- * Typically the index of the IndexBuffer where to start drawing.
36444
- * @member {number}
36445
- * @default 0
36446
- */
36447
35815
  _this.start = 0;
36448
- /**
36449
- * How much of the geometry to draw, by default `0` renders everything.
36450
- * @member {number}
36451
- * @default 0
36452
- */
36453
35816
  _this.size = 0;
36454
- /**
36455
- * these are used as easy access for batching
36456
- * @member {Float32Array}
36457
- * @private
36458
- */
36459
35817
  _this.uvs = null;
36460
- /**
36461
- * these are used as easy access for batching
36462
- * @member {Uint16Array}
36463
- * @private
36464
- */
36465
35818
  _this.indices = null;
36466
- /**
36467
- * this is the caching layer used by the batcher
36468
- * @member {Float32Array}
36469
- * @private
36470
- */
36471
35819
  _this.vertexData = new Float32Array(1);
36472
- /**
36473
- * If geometry is changed used to decide to re-transform
36474
- * the vertexData.
36475
- * @member {number}
36476
- * @private
36477
- */
36478
35820
  _this.vertexDirty = -1;
36479
35821
  _this._transformID = -1;
36480
- /**
36481
- * Internal roundPixels field
36482
- *
36483
- * @member {boolean}
36484
- * @private
36485
- */
36486
35822
  _this._roundPixels = settings.ROUND_PIXELS;
36487
- /**
36488
- * Batched UV's are cached for atlas textures
36489
- * @member {PIXI.MeshBatchUvs}
36490
- * @private
36491
- */
36492
35823
  _this.batchUvs = null;
36493
35824
  return _this;
36494
35825
  }
@@ -36497,7 +35828,6 @@ var PIXI = (function (exports) {
36497
35828
  * Includes vertex positions, face indices, normals, colors, UVs, and
36498
35829
  * custom attributes within buffers, reducing the cost of passing all
36499
35830
  * this data to the GPU. Can be shared between multiple Mesh objects.
36500
- * @member {PIXI.Geometry}
36501
35831
  */
36502
35832
  get: function () {
36503
35833
  return this._geometry;
@@ -36524,7 +35854,7 @@ var PIXI = (function (exports) {
36524
35854
  Object.defineProperty(Mesh.prototype, "uvBuffer", {
36525
35855
  /**
36526
35856
  * To change mesh uv's, change its uvBuffer data and increment its _updateID.
36527
- * @member {PIXI.Buffer}
35857
+ *
36528
35858
  * @readonly
36529
35859
  */
36530
35860
  get: function () {
@@ -36537,7 +35867,7 @@ var PIXI = (function (exports) {
36537
35867
  /**
36538
35868
  * To change mesh vertices, change its uvBuffer data and increment its _updateID.
36539
35869
  * Incrementing _updateID is optional because most of Mesh objects do it anyway.
36540
- * @member {PIXI.Buffer}
35870
+ *
36541
35871
  * @readonly
36542
35872
  */
36543
35873
  get: function () {
@@ -36550,10 +35880,7 @@ var PIXI = (function (exports) {
36550
35880
  get: function () {
36551
35881
  return this.shader;
36552
35882
  },
36553
- /**
36554
- * Alias for {@link PIXI.Mesh#shader}.
36555
- * @member {PIXI.MeshMaterial}
36556
- */
35883
+ /** Alias for {@link PIXI.Mesh#shader}. */
36557
35884
  set: function (value) {
36558
35885
  this.shader = value;
36559
35886
  },
@@ -36568,9 +35895,7 @@ var PIXI = (function (exports) {
36568
35895
  * The blend mode to be applied to the Mesh. Apply a value of
36569
35896
  * `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.
36570
35897
  *
36571
- * @member {number}
36572
35898
  * @default PIXI.BLEND_MODES.NORMAL;
36573
- * @see PIXI.BLEND_MODES
36574
35899
  */
36575
35900
  set: function (value) {
36576
35901
  this.state.blendMode = value;
@@ -36588,7 +35913,6 @@ var PIXI = (function (exports) {
36588
35913
  * The main disadvantage is movement of objects may appear less smooth.
36589
35914
  * To set the global default, change {@link PIXI.settings.ROUND_PIXELS}
36590
35915
  *
36591
- * @member {boolean}
36592
35916
  * @default false
36593
35917
  */
36594
35918
  set: function (value) {
@@ -36606,7 +35930,7 @@ var PIXI = (function (exports) {
36606
35930
  * `0xFFFFFF` will remove any tint effect.
36607
35931
  *
36608
35932
  * Null for non-MeshMaterial shaders
36609
- * @member {number}
35933
+ *
36610
35934
  * @default 0xFFFFFF
36611
35935
  */
36612
35936
  get: function () {
@@ -36623,7 +35947,6 @@ var PIXI = (function (exports) {
36623
35947
  * The texture that the Mesh uses.
36624
35948
  *
36625
35949
  * Null for non-MeshMaterial shaders
36626
- * @member {PIXI.Texture}
36627
35950
  */
36628
35951
  get: function () {
36629
35952
  return 'texture' in this.shader ? this.shader.texture : null;
@@ -36636,8 +35959,8 @@ var PIXI = (function (exports) {
36636
35959
  });
36637
35960
  /**
36638
35961
  * Standard renderer draw.
36639
- * @protected
36640
- * @param {PIXI.Renderer} renderer - Instance to renderer.
35962
+ *
35963
+ * @param renderer - Instance to renderer.
36641
35964
  */
36642
35965
  Mesh.prototype._render = function (renderer) {
36643
35966
  // set properties for batching..
@@ -36656,8 +35979,8 @@ var PIXI = (function (exports) {
36656
35979
  };
36657
35980
  /**
36658
35981
  * Standard non-batching way of rendering.
36659
- * @protected
36660
- * @param {PIXI.Renderer} renderer - Instance to renderer.
35982
+ *
35983
+ * @param renderer - Instance to renderer.
36661
35984
  */
36662
35985
  Mesh.prototype._renderDefault = function (renderer) {
36663
35986
  var shader = this.shader;
@@ -36678,8 +36001,8 @@ var PIXI = (function (exports) {
36678
36001
  };
36679
36002
  /**
36680
36003
  * Rendering by using the Batch system.
36681
- * @protected
36682
- * @param {PIXI.Renderer} renderer - Instance to renderer.
36004
+ *
36005
+ * @param renderer - Instance to renderer.
36683
36006
  */
36684
36007
  Mesh.prototype._renderToBatch = function (renderer) {
36685
36008
  var geometry = this.geometry;
@@ -36697,9 +36020,7 @@ var PIXI = (function (exports) {
36697
36020
  renderer.batch.setObjectRenderer(renderer.plugins[pluginName]);
36698
36021
  renderer.plugins[pluginName].render(this);
36699
36022
  };
36700
- /**
36701
- * Updates vertexData field based on transform and vertices
36702
- */
36023
+ /** Updates vertexData field based on transform and vertices. */
36703
36024
  Mesh.prototype.calculateVertices = function () {
36704
36025
  var geometry = this.geometry;
36705
36026
  var verticesBuffer = geometry.buffers[0];
@@ -36734,9 +36055,7 @@ var PIXI = (function (exports) {
36734
36055
  }
36735
36056
  this.vertexDirty = vertexDirtyId;
36736
36057
  };
36737
- /**
36738
- * Updates uv field based on from geometry uv's or batchUvs
36739
- */
36058
+ /** Updates uv field based on from geometry uv's or batchUvs. */
36740
36059
  Mesh.prototype.calculateUvs = function () {
36741
36060
  var geomUvs = this.geometry.buffers[1];
36742
36061
  var shader = this.shader;
@@ -36754,8 +36073,6 @@ var PIXI = (function (exports) {
36754
36073
  /**
36755
36074
  * Updates the bounds of the mesh as a rectangle. The bounds calculation takes the worldTransform into account.
36756
36075
  * there must be a aVertexPosition attribute present in the geometry for bounds to be calculated correctly.
36757
- *
36758
- * @protected
36759
36076
  */
36760
36077
  Mesh.prototype._calculateBounds = function () {
36761
36078
  this.calculateVertices();
@@ -36764,8 +36081,8 @@ var PIXI = (function (exports) {
36764
36081
  /**
36765
36082
  * Tests if a point is inside this mesh. Works only for PIXI.DRAW_MODES.TRIANGLES.
36766
36083
  *
36767
- * @param {PIXI.IPointData} point - the point to test
36768
- * @return {boolean} the result of the test
36084
+ * @param point - The point to test.
36085
+ * @return - The result of the test.
36769
36086
  */
36770
36087
  Mesh.prototype.containsPoint = function (point) {
36771
36088
  if (!this.getBounds().contains(point.x, point.y)) {
@@ -36793,14 +36110,6 @@ var PIXI = (function (exports) {
36793
36110
  }
36794
36111
  return false;
36795
36112
  };
36796
- /**
36797
- * Destroys the Mesh object.
36798
- *
36799
- * @param {object|boolean} [options] - Options parameter. A boolean will act as if all
36800
- * options have been set to that value
36801
- * @param {boolean} [options.children=false] - if set to true, all the children will have
36802
- * their destroy method called as well. 'options' will be passed on to those calls.
36803
- */
36804
36113
  Mesh.prototype.destroy = function (options) {
36805
36114
  _super.prototype.destroy.call(this, options);
36806
36115
  if (this._cachedTexture) {
@@ -36817,9 +36126,6 @@ var PIXI = (function (exports) {
36817
36126
  /**
36818
36127
  * The maximum number of vertices to consider batchable. Generally, the complexity
36819
36128
  * of the geometry.
36820
- * @memberof PIXI.Mesh
36821
- * @static
36822
- * @member {number} BATCHABLE_SIZE
36823
36129
  */
36824
36130
  Mesh.BATCHABLE_SIZE = 100;
36825
36131
  return Mesh;
@@ -37027,8 +36333,8 @@ var PIXI = (function (exports) {
37027
36333
  }(Geometry));
37028
36334
 
37029
36335
  /*!
37030
- * @pixi/text-bitmap - v6.2.0
37031
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
36336
+ * @pixi/text-bitmap - v6.2.1
36337
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
37032
36338
  *
37033
36339
  * @pixi/text-bitmap is licensed under the MIT License.
37034
36340
  * http://www.opensource.org/licenses/mit-license
@@ -37067,82 +36373,23 @@ var PIXI = (function (exports) {
37067
36373
  /**
37068
36374
  * Normalized parsed data from .fnt files.
37069
36375
  *
37070
- * @class
37071
36376
  * @memberof PIXI
37072
36377
  */
37073
36378
  var BitmapFontData = /** @class */ (function () {
37074
36379
  function BitmapFontData() {
37075
- /**
37076
- * @member {PIXI.IBitmapFontDataInfo[]}
37077
- * @readOnly
37078
- */
37079
36380
  this.info = [];
37080
- /**
37081
- * @member {PIXI.IBitmapFontDataCommon[]}
37082
- * @readOnly
37083
- */
37084
36381
  this.common = [];
37085
- /**
37086
- * @member {PIXI.IBitmapFontDataPage[]}
37087
- * @readOnly
37088
- */
37089
36382
  this.page = [];
37090
- /**
37091
- * @member {PIXI.IBitmapFontDataChar[]}
37092
- * @readOnly
37093
- */
37094
36383
  this.char = [];
37095
- /**
37096
- * @member {PIXI.IBitmapFontDataKerning[]}
37097
- * @readOnly
37098
- */
37099
36384
  this.kerning = [];
37100
36385
  this.distanceField = [];
37101
36386
  }
37102
36387
  return BitmapFontData;
37103
36388
  }());
37104
- /**
37105
- * @memberof PIXI
37106
- * @typedef {object} IBitmapFontDataInfo
37107
- * @property {string} face
37108
- * @property {number} size
37109
- */
37110
- /**
37111
- * @memberof PIXI
37112
- * @typedef {object} IBitmapFontDataCommon
37113
- * @property {number} lineHeight
37114
- */
37115
- /**
37116
- * @memberof PIXI
37117
- * @typedef {object} IBitmapFontDataPage
37118
- * @property {number} id
37119
- * @property {string} file
37120
- */
37121
- /**
37122
- * @memberof PIXI
37123
- * @typedef {object} IBitmapFontDataChar
37124
- * @property {string} id
37125
- * @property {number} page
37126
- * @property {number} x
37127
- * @property {number} y
37128
- * @property {number} width
37129
- * @property {number} height
37130
- * @property {number} xoffset
37131
- * @property {number} yoffset
37132
- * @property {number} xadvance
37133
- */
37134
- /**
37135
- * @memberof PIXI
37136
- * @typedef {object} IBitmapFontDataKerning
37137
- * @property {number} first
37138
- * @property {number} second
37139
- * @property {number} amount
37140
- */
37141
36389
 
37142
36390
  /**
37143
36391
  * BitmapFont format that's Text-based.
37144
36392
  *
37145
- * @class
37146
36393
  * @private
37147
36394
  */
37148
36395
  var TextFormat = /** @class */ (function () {
@@ -37151,10 +36398,8 @@ var PIXI = (function (exports) {
37151
36398
  /**
37152
36399
  * Check if resource refers to txt font data.
37153
36400
  *
37154
- * @static
37155
- * @private
37156
- * @param {any} data
37157
- * @return {boolean} True if resource could be treated as font data, false otherwise.
36401
+ * @param data
36402
+ * @return - True if resource could be treated as font data, false otherwise.
37158
36403
  */
37159
36404
  TextFormat.test = function (data) {
37160
36405
  return typeof data === 'string' && data.indexOf('info face=') === 0;
@@ -37162,10 +36407,8 @@ var PIXI = (function (exports) {
37162
36407
  /**
37163
36408
  * Convert text font data to a javascript object.
37164
36409
  *
37165
- * @static
37166
- * @private
37167
- * @param {string} txt - Raw string data to be converted
37168
- * @return {PIXI.BitmapFontData} Parsed font data
36410
+ * @param txt - Raw string data to be converted
36411
+ * @return - Parsed font data
37169
36412
  */
37170
36413
  TextFormat.parse = function (txt) {
37171
36414
  // Retrieve data item
@@ -37242,7 +36485,6 @@ var PIXI = (function (exports) {
37242
36485
  /**
37243
36486
  * BitmapFont format that's XML-based.
37244
36487
  *
37245
- * @class
37246
36488
  * @private
37247
36489
  */
37248
36490
  var XMLFormat = /** @class */ (function () {
@@ -37251,10 +36493,8 @@ var PIXI = (function (exports) {
37251
36493
  /**
37252
36494
  * Check if resource refers to xml font data.
37253
36495
  *
37254
- * @static
37255
- * @private
37256
- * @param {any} data
37257
- * @return {boolean} True if resource could be treated as font data, false otherwise.
36496
+ * @param data
36497
+ * @return - True if resource could be treated as font data, false otherwise.
37258
36498
  */
37259
36499
  XMLFormat.test = function (data) {
37260
36500
  return data instanceof XMLDocument
@@ -37264,10 +36504,8 @@ var PIXI = (function (exports) {
37264
36504
  /**
37265
36505
  * Convert the XML into BitmapFontData that we can use.
37266
36506
  *
37267
- * @static
37268
- * @private
37269
- * @param {XMLDocument} xml
37270
- * @return {BitmapFontData} Data to use for BitmapFont
36507
+ * @param xml
36508
+ * @return - Data to use for BitmapFont
37271
36509
  */
37272
36510
  XMLFormat.parse = function (xml) {
37273
36511
  var data = new BitmapFontData();
@@ -37329,7 +36567,6 @@ var PIXI = (function (exports) {
37329
36567
  /**
37330
36568
  * BitmapFont format that's XML-based.
37331
36569
  *
37332
- * @class
37333
36570
  * @private
37334
36571
  */
37335
36572
  var XMLStringFormat = /** @class */ (function () {
@@ -37338,10 +36575,8 @@ var PIXI = (function (exports) {
37338
36575
  /**
37339
36576
  * Check if resource refers to text xml font data.
37340
36577
  *
37341
- * @static
37342
- * @private
37343
- * @param {any} data
37344
- * @return {boolean} True if resource could be treated as font data, false otherwise.
36578
+ * @param data
36579
+ * @return - True if resource could be treated as font data, false otherwise.
37345
36580
  */
37346
36581
  XMLStringFormat.test = function (data) {
37347
36582
  if (typeof data === 'string' && data.indexOf('<font>') > -1) {
@@ -37353,10 +36588,8 @@ var PIXI = (function (exports) {
37353
36588
  /**
37354
36589
  * Convert the text XML into BitmapFontData that we can use.
37355
36590
  *
37356
- * @static
37357
- * @private
37358
- * @param {string} xmlTxt
37359
- * @return {BitmapFontData} Data to use for BitmapFont
36591
+ * @param xmlTxt
36592
+ * @return - Data to use for BitmapFont
37360
36593
  */
37361
36594
  XMLStringFormat.parse = function (xmlTxt) {
37362
36595
  var xml = new self.DOMParser().parseFromString(xmlTxt, 'text/xml');
@@ -37980,15 +37213,13 @@ var PIXI = (function (exports) {
37980
37213
  * });
37981
37214
  * ```
37982
37215
  *
37983
- * @class
37984
- * @extends PIXI.Container
37985
37216
  * @memberof PIXI
37986
37217
  */
37987
37218
  var BitmapText = /** @class */ (function (_super) {
37988
37219
  __extends$b(BitmapText, _super);
37989
37220
  /**
37990
- * @param {string} text - A string that you would like the text to display.
37991
- * @param {object} style - The style parameters.
37221
+ * @param text - A string that you would like the text to display.
37222
+ * @param style - The style parameters.
37992
37223
  * @param {string} style.fontName - The installed BitmapFont name.
37993
37224
  * @param {number} [style.fontSize] - The size of the font in pixels, e.g. 24. If undefined,
37994
37225
  *. this will default to the BitmapFont size.
@@ -38001,116 +37232,31 @@ var PIXI = (function (exports) {
38001
37232
  function BitmapText(text, style) {
38002
37233
  if (style === void 0) { style = {}; }
38003
37234
  var _this = _super.call(this) || this;
37235
+ /**
37236
+ * Private tracker for the current tint.
37237
+ *
37238
+ * @private
37239
+ */
38004
37240
  _this._tint = 0xFFFFFF;
38005
37241
  // Apply the defaults
38006
37242
  var _a = Object.assign({}, BitmapText.styleDefaults, style), align = _a.align, tint = _a.tint, maxWidth = _a.maxWidth, letterSpacing = _a.letterSpacing, fontName = _a.fontName, fontSize = _a.fontSize;
38007
37243
  if (!BitmapFont.available[fontName]) {
38008
37244
  throw new Error("Missing BitmapFont \"" + fontName + "\"");
38009
37245
  }
38010
- /**
38011
- * Collection of page mesh data.
38012
- *
38013
- * @member {object}
38014
- * @private
38015
- */
38016
37246
  _this._activePagesMeshData = [];
38017
- /**
38018
- * Private tracker for the width of the overall text
38019
- *
38020
- * @member {number}
38021
- * @private
38022
- */
38023
37247
  _this._textWidth = 0;
38024
- /**
38025
- * Private tracker for the height of the overall text
38026
- *
38027
- * @member {number}
38028
- * @private
38029
- */
38030
37248
  _this._textHeight = 0;
38031
- /**
38032
- * Private tracker for the current text align.
38033
- *
38034
- * @member {string}
38035
- * @private
38036
- */
38037
37249
  _this._align = align;
38038
- /**
38039
- * Private tracker for the current tint.
38040
- *
38041
- * @member {number}
38042
- * @private
38043
- */
38044
37250
  _this._tint = tint;
38045
- /**
38046
- * Private tracker for the current font name.
38047
- *
38048
- * @member {string}
38049
- * @private
38050
- */
38051
37251
  _this._fontName = fontName;
38052
- /**
38053
- * Private tracker for the current font size.
38054
- *
38055
- * @member {number}
38056
- * @private
38057
- */
38058
37252
  _this._fontSize = fontSize || BitmapFont.available[fontName].size;
38059
- /**
38060
- * Private tracker for the current text.
38061
- *
38062
- * @member {string}
38063
- * @private
38064
- */
38065
37253
  _this._text = text;
38066
- /**
38067
- * The max width of this bitmap text in pixels. If the text provided is longer than the
38068
- * value provided, line breaks will be automatically inserted in the last whitespace.
38069
- * Disable by setting value to 0
38070
- *
38071
- * @member {number}
38072
- * @private
38073
- */
38074
37254
  _this._maxWidth = maxWidth;
38075
- /**
38076
- * The max line height. This is useful when trying to use the total height of the Text,
38077
- * ie: when trying to vertically align. (Internally used)
38078
- *
38079
- * @member {number}
38080
- * @private
38081
- */
38082
37255
  _this._maxLineHeight = 0;
38083
- /**
38084
- * Letter spacing. This is useful for setting the space between characters.
38085
- * @member {number}
38086
- * @private
38087
- */
38088
37256
  _this._letterSpacing = letterSpacing;
38089
- /**
38090
- * Text anchor. read-only
38091
- *
38092
- * @member {PIXI.ObservablePoint}
38093
- * @private
38094
- */
38095
37257
  _this._anchor = new ObservablePoint(function () { _this.dirty = true; }, _this, 0, 0);
38096
- /**
38097
- * If true PixiJS will Math.floor() x/y values when rendering
38098
- *
38099
- * @member {boolean}
38100
- * @default PIXI.settings.ROUND_PIXELS
38101
- */
38102
37258
  _this._roundPixels = settings.ROUND_PIXELS;
38103
- /**
38104
- * Set to `true` if the BitmapText needs to be redrawn.
38105
- *
38106
- * @member {boolean}
38107
- */
38108
37259
  _this.dirty = true;
38109
- /**
38110
- * Cached char texture is destroyed when BitmapText is destroyed
38111
- * @member {Record<number, Texture>}
38112
- * @private
38113
- */
38114
37260
  _this._textureCache = {};
38115
37261
  return _this;
38116
37262
  }
@@ -38386,11 +37532,6 @@ var PIXI = (function (exports) {
38386
37532
  charRenderDataPool.push(chars[i]);
38387
37533
  }
38388
37534
  };
38389
- /**
38390
- * Updates the transform of this object
38391
- *
38392
- * @private
38393
- */
38394
37535
  BitmapText.prototype.updateTransform = function () {
38395
37536
  this.validate();
38396
37537
  this.containerUpdateTransform();
@@ -38415,7 +37556,7 @@ var PIXI = (function (exports) {
38415
37556
  /**
38416
37557
  * Validates text before calling parent's getLocalBounds
38417
37558
  *
38418
- * @return {PIXI.Rectangle} The rectangular bounding area
37559
+ * @return - The rectangular bounding area
38419
37560
  */
38420
37561
  BitmapText.prototype.getLocalBounds = function () {
38421
37562
  this.validate();
@@ -38436,7 +37577,6 @@ var PIXI = (function (exports) {
38436
37577
  /**
38437
37578
  * The tint of the BitmapText object.
38438
37579
  *
38439
- * @member {number}
38440
37580
  * @default 0xffffff
38441
37581
  */
38442
37582
  get: function () {
@@ -38473,11 +37613,7 @@ var PIXI = (function (exports) {
38473
37613
  configurable: true
38474
37614
  });
38475
37615
  Object.defineProperty(BitmapText.prototype, "fontName", {
38476
- /**
38477
- * The name of the BitmapFont.
38478
- *
38479
- * @member {string}
38480
- */
37616
+ /** The name of the BitmapFont. */
38481
37617
  get: function () {
38482
37618
  return this._fontName;
38483
37619
  },
@@ -38494,11 +37630,7 @@ var PIXI = (function (exports) {
38494
37630
  configurable: true
38495
37631
  });
38496
37632
  Object.defineProperty(BitmapText.prototype, "fontSize", {
38497
- /**
38498
- * The size of the font to display.
38499
- *
38500
- * @member {number}
38501
- */
37633
+ /** The size of the font to display. */
38502
37634
  get: function () {
38503
37635
  return this._fontSize;
38504
37636
  },
@@ -38520,8 +37652,6 @@ var PIXI = (function (exports) {
38520
37652
  * Setting the anchor to `(0.5,0.5)` means the text's origin is centered.
38521
37653
  *
38522
37654
  * Setting the anchor to `(1,1)` would mean the text's origin point will be the bottom right corner.
38523
- *
38524
- * @member {PIXI.Point | number}
38525
37655
  */
38526
37656
  get: function () {
38527
37657
  return this._anchor;
@@ -38538,11 +37668,7 @@ var PIXI = (function (exports) {
38538
37668
  configurable: true
38539
37669
  });
38540
37670
  Object.defineProperty(BitmapText.prototype, "text", {
38541
- /**
38542
- * The text of the BitmapText object.
38543
- *
38544
- * @member {string}
38545
- */
37671
+ /** The text of the BitmapText object. */
38546
37672
  get: function () {
38547
37673
  return this._text;
38548
37674
  },
@@ -38562,8 +37688,6 @@ var PIXI = (function (exports) {
38562
37688
  * The max width of this bitmap text in pixels. If the text provided is longer than the
38563
37689
  * value provided, line breaks will be automatically inserted in the last whitespace.
38564
37690
  * Disable by setting the value to 0.
38565
- *
38566
- * @member {number}
38567
37691
  */
38568
37692
  get: function () {
38569
37693
  return this._maxWidth;
@@ -38583,7 +37707,6 @@ var PIXI = (function (exports) {
38583
37707
  * The max line height. This is useful when trying to use the total height of the Text,
38584
37708
  * i.e. when trying to vertically align.
38585
37709
  *
38586
- * @member {number}
38587
37710
  * @readonly
38588
37711
  */
38589
37712
  get: function () {
@@ -38598,7 +37721,6 @@ var PIXI = (function (exports) {
38598
37721
  * The width of the overall text, different from fontSize,
38599
37722
  * which is defined in the style object.
38600
37723
  *
38601
- * @member {number}
38602
37724
  * @readonly
38603
37725
  */
38604
37726
  get: function () {
@@ -38609,11 +37731,7 @@ var PIXI = (function (exports) {
38609
37731
  configurable: true
38610
37732
  });
38611
37733
  Object.defineProperty(BitmapText.prototype, "letterSpacing", {
38612
- /**
38613
- * Additional space between characters.
38614
- *
38615
- * @member {number}
38616
- */
37734
+ /** Additional space between characters. */
38617
37735
  get: function () {
38618
37736
  return this._letterSpacing;
38619
37737
  },
@@ -38633,7 +37751,6 @@ var PIXI = (function (exports) {
38633
37751
  * The main disadvantage is movement of objects may appear less smooth.
38634
37752
  * To set the global default, change {@link PIXI.settings.ROUND_PIXELS}
38635
37753
  *
38636
- * @member {boolean}
38637
37754
  * @default PIXI.settings.ROUND_PIXELS
38638
37755
  */
38639
37756
  get: function () {
@@ -38653,7 +37770,6 @@ var PIXI = (function (exports) {
38653
37770
  * The height of the overall text, different from fontSize,
38654
37771
  * which is defined in the style object.
38655
37772
  *
38656
- * @member {number}
38657
37773
  * @readonly
38658
37774
  */
38659
37775
  get: function () {
@@ -38685,9 +37801,8 @@ var PIXI = (function (exports) {
38685
37801
  /**
38686
37802
  * {@link PIXI.Loader Loader} middleware for loading
38687
37803
  * bitmap-based fonts suitable for using with {@link PIXI.BitmapText}.
38688
- * @class
37804
+ *
38689
37805
  * @memberof PIXI
38690
- * @implements PIXI.ILoaderPlugin
38691
37806
  */
38692
37807
  var BitmapFontLoader = /** @class */ (function () {
38693
37808
  function BitmapFontLoader() {
@@ -38702,6 +37817,7 @@ var PIXI = (function (exports) {
38702
37817
  };
38703
37818
  /**
38704
37819
  * Called after a resource is loaded.
37820
+ *
38705
37821
  * @see PIXI.Loader.loaderMiddleware
38706
37822
  * @param {PIXI.LoaderResource} resource
38707
37823
  * @param {function} next
@@ -38759,13 +37875,7 @@ var PIXI = (function (exports) {
38759
37875
  }
38760
37876
  }
38761
37877
  };
38762
- /**
38763
- * Get folder path from a resource
38764
- * @private
38765
- * @param {PIXI.Loader} loader
38766
- * @param {PIXI.LoaderResource} resource
38767
- * @return {string}
38768
- */
37878
+ /** Get folder path from a resource. */
38769
37879
  BitmapFontLoader.getBaseUrl = function (loader, resource) {
38770
37880
  var resUrl = !resource.isDataUrl ? BitmapFontLoader.dirname(resource.url) : '';
38771
37881
  if (resource.isDataUrl) {
@@ -38789,7 +37899,7 @@ var PIXI = (function (exports) {
38789
37899
  };
38790
37900
  /**
38791
37901
  * Replacement for NodeJS's path.dirname
38792
- * @private
37902
+ *
38793
37903
  * @param {string} url - Path to get directory for
38794
37904
  */
38795
37905
  BitmapFontLoader.dirname = function (url) {
@@ -38811,8 +37921,8 @@ var PIXI = (function (exports) {
38811
37921
  }());
38812
37922
 
38813
37923
  /*!
38814
- * @pixi/filter-alpha - v6.2.0
38815
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
37924
+ * @pixi/filter-alpha - v6.2.1
37925
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
38816
37926
  *
38817
37927
  * @pixi/filter-alpha is licensed under the MIT License.
38818
37928
  * http://www.opensource.org/licenses/mit-license
@@ -38894,8 +38004,8 @@ var PIXI = (function (exports) {
38894
38004
  }(Filter));
38895
38005
 
38896
38006
  /*!
38897
- * @pixi/filter-blur - v6.2.0
38898
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
38007
+ * @pixi/filter-blur - v6.2.1
38008
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
38899
38009
  *
38900
38010
  * @pixi/filter-blur is licensed under the MIT License.
38901
38011
  * http://www.opensource.org/licenses/mit-license
@@ -38992,8 +38102,8 @@ var PIXI = (function (exports) {
38992
38102
  }
38993
38103
 
38994
38104
  /*!
38995
- * @pixi/constants - v6.2.0
38996
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
38105
+ * @pixi/constants - v6.2.1
38106
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
38997
38107
  *
38998
38108
  * @pixi/constants is licensed under the MIT License.
38999
38109
  * http://www.opensource.org/licenses/mit-license
@@ -39792,8 +38902,8 @@ var PIXI = (function (exports) {
39792
38902
  }(Filter));
39793
38903
 
39794
38904
  /*!
39795
- * @pixi/filter-color-matrix - v6.2.0
39796
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
38905
+ * @pixi/filter-color-matrix - v6.2.1
38906
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
39797
38907
  *
39798
38908
  * @pixi/filter-color-matrix is licensed under the MIT License.
39799
38909
  * http://www.opensource.org/licenses/mit-license
@@ -39841,8 +38951,6 @@ var PIXI = (function (exports) {
39841
38951
  * colorMatrix.contrast(2);
39842
38952
  * ```
39843
38953
  * @author Clément Chenebault <clement@goodboydigital.com>
39844
- * @class
39845
- * @extends PIXI.Filter
39846
38954
  * @memberof PIXI.filters
39847
38955
  */
39848
38956
  var ColorMatrixFilter = /** @class */ (function (_super) {
@@ -39864,7 +38972,7 @@ var PIXI = (function (exports) {
39864
38972
  * Transforms current matrix and set the new one
39865
38973
  *
39866
38974
  * @param {number[]} matrix - 5x4 matrix
39867
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
38975
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
39868
38976
  * just set the current matrix with @param matrix
39869
38977
  */
39870
38978
  ColorMatrixFilter.prototype._loadMatrix = function (matrix, multiply) {
@@ -39881,9 +38989,9 @@ var PIXI = (function (exports) {
39881
38989
  * Multiplies two mat5's
39882
38990
  *
39883
38991
  * @private
39884
- * @param {number[]} out - 5x4 matrix the receiving matrix
39885
- * @param {number[]} a - 5x4 matrix the first operand
39886
- * @param {number[]} b - 5x4 matrix the second operand
38992
+ * @param out - 5x4 matrix the receiving matrix
38993
+ * @param a - 5x4 matrix the first operand
38994
+ * @param b - 5x4 matrix the second operand
39887
38995
  * @returns {number[]} 5x4 matrix
39888
38996
  */
39889
38997
  ColorMatrixFilter.prototype._multiply = function (out, a, b) {
@@ -39916,7 +39024,6 @@ var PIXI = (function (exports) {
39916
39024
  /**
39917
39025
  * Create a Float32 Array and normalize the offset component to 0-1
39918
39026
  *
39919
- * @private
39920
39027
  * @param {number[]} matrix - 5x4 matrix
39921
39028
  * @return {number[]} 5x4 matrix with all values between 0-1
39922
39029
  */
@@ -39932,8 +39039,8 @@ var PIXI = (function (exports) {
39932
39039
  /**
39933
39040
  * Adjusts brightness
39934
39041
  *
39935
- * @param {number} b - value of the brigthness (0-1, where 0 is black)
39936
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39042
+ * @param b - value of the brigthness (0-1, where 0 is black)
39043
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
39937
39044
  * just set the current matrix with @param matrix
39938
39045
  */
39939
39046
  ColorMatrixFilter.prototype.brightness = function (b, multiply) {
@@ -39949,8 +39056,8 @@ var PIXI = (function (exports) {
39949
39056
  * This can be used to achieve a tinting effect on Containers similar to the tint field of some
39950
39057
  * display objects like Sprite, Text, Graphics, and Mesh.
39951
39058
  *
39952
- * @param {number} color - Color of the tint. This is a hex value.
39953
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39059
+ * @param color - Color of the tint. This is a hex value.
39060
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
39954
39061
  * just set the current matrix with @param matrix
39955
39062
  */
39956
39063
  ColorMatrixFilter.prototype.tint = function (color, multiply) {
@@ -39967,8 +39074,8 @@ var PIXI = (function (exports) {
39967
39074
  /**
39968
39075
  * Set the matrices in grey scales
39969
39076
  *
39970
- * @param {number} scale - value of the grey (0-1, where 0 is black)
39971
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39077
+ * @param scale - value of the grey (0-1, where 0 is black)
39078
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
39972
39079
  * just set the current matrix with @param matrix
39973
39080
  */
39974
39081
  ColorMatrixFilter.prototype.greyscale = function (scale, multiply) {
@@ -39982,7 +39089,7 @@ var PIXI = (function (exports) {
39982
39089
  /**
39983
39090
  * Set the black and white matrice.
39984
39091
  *
39985
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39092
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
39986
39093
  * just set the current matrix with @param matrix
39987
39094
  */
39988
39095
  ColorMatrixFilter.prototype.blackAndWhite = function (multiply) {
@@ -39996,8 +39103,8 @@ var PIXI = (function (exports) {
39996
39103
  /**
39997
39104
  * Set the hue property of the color
39998
39105
  *
39999
- * @param {number} rotation - in degrees
40000
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39106
+ * @param rotation - in degrees
39107
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40001
39108
  * just set the current matrix with @param matrix
40002
39109
  */
40003
39110
  ColorMatrixFilter.prototype.hue = function (rotation, multiply) {
@@ -40040,8 +39147,8 @@ var PIXI = (function (exports) {
40040
39147
  * Increase contrast : shadows darker and highlights brighter
40041
39148
  * Decrease contrast : bring the shadows up and the highlights down
40042
39149
  *
40043
- * @param {number} amount - value of the contrast (0-1)
40044
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39150
+ * @param amount - value of the contrast (0-1)
39151
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40045
39152
  * just set the current matrix with @param matrix
40046
39153
  */
40047
39154
  ColorMatrixFilter.prototype.contrast = function (amount, multiply) {
@@ -40058,8 +39165,8 @@ var PIXI = (function (exports) {
40058
39165
  * Set the saturation matrix, increase the separation between colors
40059
39166
  * Increase saturation : increase contrast, brightness, and sharpness
40060
39167
  *
40061
- * @param {number} amount - The saturation amount (0-1)
40062
- * @param {boolean} [multiply] - if true, current matrix and matrix are multiplied. If false,
39168
+ * @param amount - The saturation amount (0-1)
39169
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40063
39170
  * just set the current matrix with @param matrix
40064
39171
  */
40065
39172
  ColorMatrixFilter.prototype.saturate = function (amount, multiply) {
@@ -40077,7 +39184,6 @@ var PIXI = (function (exports) {
40077
39184
  * Desaturate image (remove color)
40078
39185
  *
40079
39186
  * Call the saturate function
40080
- *
40081
39187
  */
40082
39188
  ColorMatrixFilter.prototype.desaturate = function () {
40083
39189
  this.saturate(-1);
@@ -40085,7 +39191,7 @@ var PIXI = (function (exports) {
40085
39191
  /**
40086
39192
  * Negative image (inverse of classic rgb matrix)
40087
39193
  *
40088
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39194
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40089
39195
  * just set the current matrix with @param matrix
40090
39196
  */
40091
39197
  ColorMatrixFilter.prototype.negative = function (multiply) {
@@ -40099,7 +39205,7 @@ var PIXI = (function (exports) {
40099
39205
  /**
40100
39206
  * Sepia image
40101
39207
  *
40102
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39208
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40103
39209
  * just set the current matrix with @param matrix
40104
39210
  */
40105
39211
  ColorMatrixFilter.prototype.sepia = function (multiply) {
@@ -40113,7 +39219,7 @@ var PIXI = (function (exports) {
40113
39219
  /**
40114
39220
  * Color motion picture process invented in 1916 (thanks Dominic Szablewski)
40115
39221
  *
40116
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39222
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40117
39223
  * just set the current matrix with @param matrix
40118
39224
  */
40119
39225
  ColorMatrixFilter.prototype.technicolor = function (multiply) {
@@ -40127,7 +39233,7 @@ var PIXI = (function (exports) {
40127
39233
  /**
40128
39234
  * Polaroid filter
40129
39235
  *
40130
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39236
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40131
39237
  * just set the current matrix with @param matrix
40132
39238
  */
40133
39239
  ColorMatrixFilter.prototype.polaroid = function (multiply) {
@@ -40141,7 +39247,7 @@ var PIXI = (function (exports) {
40141
39247
  /**
40142
39248
  * Filter who transforms : Red -> Blue and Blue -> Red
40143
39249
  *
40144
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39250
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40145
39251
  * just set the current matrix with @param matrix
40146
39252
  */
40147
39253
  ColorMatrixFilter.prototype.toBGR = function (multiply) {
@@ -40155,7 +39261,7 @@ var PIXI = (function (exports) {
40155
39261
  /**
40156
39262
  * Color reversal film introduced by Eastman Kodak in 1935. (thanks Dominic Szablewski)
40157
39263
  *
40158
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39264
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40159
39265
  * just set the current matrix with @param matrix
40160
39266
  */
40161
39267
  ColorMatrixFilter.prototype.kodachrome = function (multiply) {
@@ -40169,7 +39275,7 @@ var PIXI = (function (exports) {
40169
39275
  /**
40170
39276
  * Brown delicious browni filter (thanks Dominic Szablewski)
40171
39277
  *
40172
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39278
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40173
39279
  * just set the current matrix with @param matrix
40174
39280
  */
40175
39281
  ColorMatrixFilter.prototype.browni = function (multiply) {
@@ -40183,7 +39289,7 @@ var PIXI = (function (exports) {
40183
39289
  /**
40184
39290
  * Vintage filter (thanks Dominic Szablewski)
40185
39291
  *
40186
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39292
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40187
39293
  * just set the current matrix with @param matrix
40188
39294
  */
40189
39295
  ColorMatrixFilter.prototype.vintage = function (multiply) {
@@ -40197,11 +39303,11 @@ var PIXI = (function (exports) {
40197
39303
  /**
40198
39304
  * We don't know exactly what it does, kind of gradient map, but funny to play with!
40199
39305
  *
40200
- * @param {number} desaturation - Tone values.
40201
- * @param {number} toned - Tone values.
40202
- * @param {number} lightColor - Tone values, example: `0xFFE580`
40203
- * @param {number} darkColor - Tone values, example: `0xFFE580`
40204
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39306
+ * @param desaturation - Tone values.
39307
+ * @param toned - Tone values.
39308
+ * @param lightColor - Tone values, example: `0xFFE580`
39309
+ * @param darkColor - Tone values, example: `0xFFE580`
39310
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40205
39311
  * just set the current matrix with @param matrix
40206
39312
  */
40207
39313
  ColorMatrixFilter.prototype.colorTone = function (desaturation, toned, lightColor, darkColor, multiply) {
@@ -40225,8 +39331,8 @@ var PIXI = (function (exports) {
40225
39331
  /**
40226
39332
  * Night effect
40227
39333
  *
40228
- * @param {number} intensity - The intensity of the night effect.
40229
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39334
+ * @param intensity - The intensity of the night effect.
39335
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40230
39336
  * just set the current matrix with @param matrix
40231
39337
  */
40232
39338
  ColorMatrixFilter.prototype.night = function (intensity, multiply) {
@@ -40243,8 +39349,8 @@ var PIXI = (function (exports) {
40243
39349
  *
40244
39350
  * Erase the current matrix by setting a new indepent one
40245
39351
  *
40246
- * @param {number} amount - how much the predator feels his future victim
40247
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39352
+ * @param amount - how much the predator feels his future victim
39353
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40248
39354
  * just set the current matrix with @param matrix
40249
39355
  */
40250
39356
  ColorMatrixFilter.prototype.predator = function (amount, multiply) {
@@ -40276,7 +39382,7 @@ var PIXI = (function (exports) {
40276
39382
  *
40277
39383
  * Multiply the current matrix
40278
39384
  *
40279
- * @param {boolean} multiply - if true, current matrix and matrix are multiplied. If false,
39385
+ * @param multiply - if true, current matrix and matrix are multiplied. If false,
40280
39386
  * just set the current matrix with @param matrix
40281
39387
  */
40282
39388
  ColorMatrixFilter.prototype.lsd = function (multiply) {
@@ -40287,10 +39393,7 @@ var PIXI = (function (exports) {
40287
39393
  0, 0, 0, 1, 0 ];
40288
39394
  this._loadMatrix(matrix, multiply);
40289
39395
  };
40290
- /**
40291
- * Erase the current matrix by setting the default one
40292
- *
40293
- */
39396
+ /** Erase the current matrix by setting the default one. */
40294
39397
  ColorMatrixFilter.prototype.reset = function () {
40295
39398
  var matrix = [
40296
39399
  1, 0, 0, 0, 0,
@@ -40323,7 +39426,6 @@ var PIXI = (function (exports) {
40323
39426
  * When the value is 1, the result color is used.
40324
39427
  * When in the range (0, 1) the color is interpolated between the original and result by this amount.
40325
39428
  *
40326
- * @member {number}
40327
39429
  * @default 1
40328
39430
  */
40329
39431
  get: function () {
@@ -40341,8 +39443,8 @@ var PIXI = (function (exports) {
40341
39443
  ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
40342
39444
 
40343
39445
  /*!
40344
- * @pixi/filter-displacement - v6.2.0
40345
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
39446
+ * @pixi/filter-displacement - v6.2.1
39447
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
40346
39448
  *
40347
39449
  * @pixi/filter-displacement is licensed under the MIT License.
40348
39450
  * http://www.opensource.org/licenses/mit-license
@@ -40395,15 +39497,13 @@ var PIXI = (function (exports) {
40395
39497
  * For example, if a displacement map pixel has `red = 1` and the filter scale is `20`,
40396
39498
  * this filter will output the pixel approximately 20 pixels to the right of the original.
40397
39499
  *
40398
- * @class
40399
- * @extends PIXI.Filter
40400
39500
  * @memberof PIXI.filters
40401
39501
  */
40402
39502
  var DisplacementFilter = /** @class */ (function (_super) {
40403
39503
  __extends$f(DisplacementFilter, _super);
40404
39504
  /**
40405
39505
  * @param {PIXI.Sprite} sprite - The sprite used for the displacement map. (make sure its added to the scene!)
40406
- * @param {number} [scale] - The scale of the displacement
39506
+ * @param scale - The scale of the displacement
40407
39507
  */
40408
39508
  function DisplacementFilter(sprite, scale) {
40409
39509
  var _this = this;
@@ -40430,10 +39530,10 @@ var PIXI = (function (exports) {
40430
39530
  /**
40431
39531
  * Applies the filter.
40432
39532
  *
40433
- * @param {PIXI.FilterSystem} filterManager - The manager.
40434
- * @param {PIXI.RenderTexture} input - The input target.
40435
- * @param {PIXI.RenderTexture} output - The output target.
40436
- * @param {PIXI.CLEAR_MODES} clearMode - clearMode.
39533
+ * @param filterManager - The manager.
39534
+ * @param input - The input target.
39535
+ * @param output - The output target.
39536
+ * @param clearMode - clearMode.
40437
39537
  */
40438
39538
  DisplacementFilter.prototype.apply = function (filterManager, input, output, clearMode) {
40439
39539
  // fill maskMatrix with _normalized sprite texture coords_
@@ -40454,11 +39554,7 @@ var PIXI = (function (exports) {
40454
39554
  filterManager.applyFilter(this, input, output, clearMode);
40455
39555
  };
40456
39556
  Object.defineProperty(DisplacementFilter.prototype, "map", {
40457
- /**
40458
- * The texture used for the displacement map. Must be power of 2 sized texture.
40459
- *
40460
- * @member {PIXI.Texture}
40461
- */
39557
+ /** The texture used for the displacement map. Must be power of 2 sized texture. */
40462
39558
  get: function () {
40463
39559
  return this.uniforms.mapSampler;
40464
39560
  },
@@ -40472,8 +39568,8 @@ var PIXI = (function (exports) {
40472
39568
  }(Filter));
40473
39569
 
40474
39570
  /*!
40475
- * @pixi/filter-fxaa - v6.2.0
40476
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
39571
+ * @pixi/filter-fxaa - v6.2.1
39572
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
40477
39573
  *
40478
39574
  * @pixi/filter-fxaa is licensed under the MIT License.
40479
39575
  * http://www.opensource.org/licenses/mit-license
@@ -40518,10 +39614,7 @@ var PIXI = (function (exports) {
40518
39614
  *
40519
39615
  * @see https://github.com/mitsuhiko/webgl-meincraft
40520
39616
  *
40521
- * @class
40522
- * @extends PIXI.Filter
40523
39617
  * @memberof PIXI.filters
40524
- *
40525
39618
  */
40526
39619
  var FXAAFilter = /** @class */ (function (_super) {
40527
39620
  __extends$g(FXAAFilter, _super);
@@ -40533,8 +39626,8 @@ var PIXI = (function (exports) {
40533
39626
  }(Filter));
40534
39627
 
40535
39628
  /*!
40536
- * @pixi/filter-noise - v6.2.0
40537
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
39629
+ * @pixi/filter-noise - v6.2.1
39630
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
40538
39631
  *
40539
39632
  * @pixi/filter-noise is licensed under the MIT License.
40540
39633
  * http://www.opensource.org/licenses/mit-license
@@ -40576,8 +39669,6 @@ var PIXI = (function (exports) {
40576
39669
  *
40577
39670
  * original filter: https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js
40578
39671
  *
40579
- * @class
40580
- * @extends PIXI.Filter
40581
39672
  * @memberof PIXI.filters
40582
39673
  * @author Vico @vicocotea
40583
39674
  */
@@ -40602,7 +39693,6 @@ var PIXI = (function (exports) {
40602
39693
  /**
40603
39694
  * The amount of noise to apply, this value should be in the range (0, 1].
40604
39695
  *
40605
- * @member {number}
40606
39696
  * @default 0.5
40607
39697
  */
40608
39698
  get: function () {
@@ -40615,11 +39705,7 @@ var PIXI = (function (exports) {
40615
39705
  configurable: true
40616
39706
  });
40617
39707
  Object.defineProperty(NoiseFilter.prototype, "seed", {
40618
- /**
40619
- * A seed value to apply to the random noise generation. `Math.random()` is a good value to use.
40620
- *
40621
- * @member {number}
40622
- */
39708
+ /** A seed value to apply to the random noise generation. `Math.random()` is a good value to use. */
40623
39709
  get: function () {
40624
39710
  return this.uniforms.uSeed;
40625
39711
  },
@@ -40633,16 +39719,16 @@ var PIXI = (function (exports) {
40633
39719
  }(Filter));
40634
39720
 
40635
39721
  /*!
40636
- * @pixi/mixin-cache-as-bitmap - v6.2.0
40637
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
39722
+ * @pixi/mixin-cache-as-bitmap - v6.2.1
39723
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
40638
39724
  *
40639
39725
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
40640
39726
  * http://www.opensource.org/licenses/mit-license
40641
39727
  */
40642
39728
 
40643
39729
  /*!
40644
- * @pixi/constants - v6.2.0
40645
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
39730
+ * @pixi/constants - v6.2.1
39731
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
40646
39732
  *
40647
39733
  * @pixi/constants is licensed under the MIT License.
40648
39734
  * http://www.opensource.org/licenses/mit-license
@@ -41336,7 +40422,7 @@ var PIXI = (function (exports) {
41336
40422
  // TODO pass an object to clone too? saves having to create a new one each time!
41337
40423
  var bounds = this.getLocalBounds(null, true).clone();
41338
40424
  // add some padding!
41339
- if (this.filters) {
40425
+ if (this.filters && this.filters.length) {
41340
40426
  var padding = this.filters[0].padding;
41341
40427
  bounds.pad(padding);
41342
40428
  }
@@ -41532,8 +40618,8 @@ var PIXI = (function (exports) {
41532
40618
  };
41533
40619
 
41534
40620
  /*!
41535
- * @pixi/mixin-get-child-by-name - v6.2.0
41536
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
40621
+ * @pixi/mixin-get-child-by-name - v6.2.1
40622
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
41537
40623
  *
41538
40624
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
41539
40625
  * http://www.opensource.org/licenses/mit-license
@@ -41579,8 +40665,8 @@ var PIXI = (function (exports) {
41579
40665
  };
41580
40666
 
41581
40667
  /*!
41582
- * @pixi/mixin-get-global-position - v6.2.0
41583
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
40668
+ * @pixi/mixin-get-global-position - v6.2.1
40669
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
41584
40670
  *
41585
40671
  * @pixi/mixin-get-global-position is licensed under the MIT License.
41586
40672
  * http://www.opensource.org/licenses/mit-license
@@ -41611,8 +40697,8 @@ var PIXI = (function (exports) {
41611
40697
  };
41612
40698
 
41613
40699
  /*!
41614
- * @pixi/mesh-extras - v6.2.0
41615
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
40700
+ * @pixi/mesh-extras - v6.2.1
40701
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
41616
40702
  *
41617
40703
  * @pixi/mesh-extras is licensed under the MIT License.
41618
40704
  * http://www.opensource.org/licenses/mit-license
@@ -42266,8 +41352,8 @@ var PIXI = (function (exports) {
42266
41352
  }(SimplePlane));
42267
41353
 
42268
41354
  /*!
42269
- * @pixi/sprite-animated - v6.2.0
42270
- * Compiled Mon, 01 Nov 2021 16:52:10 UTC
41355
+ * @pixi/sprite-animated - v6.2.1
41356
+ * Compiled Tue, 21 Dec 2021 19:56:15 UTC
42271
41357
  *
42272
41358
  * @pixi/sprite-animated is licensed under the MIT License.
42273
41359
  * http://www.opensource.org/licenses/mit-license
@@ -42639,7 +41725,7 @@ var PIXI = (function (exports) {
42639
41725
  * @name VERSION
42640
41726
  * @type {string}
42641
41727
  */
42642
- var VERSION$1 = '6.2.0';
41728
+ var VERSION$1 = '6.2.1';
42643
41729
  /**
42644
41730
  * @namespace PIXI
42645
41731
  */