@famibee/skynovel 1.24.1 → 1.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/app.js +553 -1467
- package/core/lib/sn/CallStack.d.ts +7 -7
- package/core/lib/sn/CallStack.d.ts.map +1 -1
- package/core/lib/sn/CmnInterface.d.ts +1 -1
- package/core/lib/sn/CmnInterface.d.ts.map +1 -1
- package/core/lib/sn/ScriptIterator.d.ts +2 -2
- package/core/lib/sn/ScriptIterator.d.ts.map +1 -1
- package/core/lib/sn/TxtLayer.d.ts.map +1 -1
- package/core/lib/sn/TxtStage.d.ts +3 -0
- package/core/lib/sn/TxtStage.d.ts.map +1 -1
- package/package.json +5 -5
- package/web.js +553 -1467
package/app.js
CHANGED
|
@@ -2599,8 +2599,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2599
2599
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
2600
2600
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
2601
2601
|
/*!
|
|
2602
|
-
* @pixi/accessibility - v6.2.
|
|
2603
|
-
* Compiled
|
|
2602
|
+
* @pixi/accessibility - v6.2.1
|
|
2603
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
2604
2604
|
*
|
|
2605
2605
|
* @pixi/accessibility is licensed under the MIT License.
|
|
2606
2606
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -3165,8 +3165,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3165
3165
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
3166
3166
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
3167
3167
|
/*!
|
|
3168
|
-
* @pixi/app - v6.2.
|
|
3169
|
-
* Compiled
|
|
3168
|
+
* @pixi/app - v6.2.1
|
|
3169
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
3170
3170
|
*
|
|
3171
3171
|
* @pixi/app is licensed under the MIT License.
|
|
3172
3172
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -3462,8 +3462,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3462
3462
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
3463
3463
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
3464
3464
|
/*!
|
|
3465
|
-
* @pixi/compressed-textures - v6.2.
|
|
3466
|
-
* Compiled
|
|
3465
|
+
* @pixi/compressed-textures - v6.2.1
|
|
3466
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
3467
3467
|
*
|
|
3468
3468
|
* @pixi/compressed-textures is licensed under the MIT License.
|
|
3469
3469
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -4724,8 +4724,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4724
4724
|
/* harmony export */ "WRAP_MODES": () => (/* binding */ WRAP_MODES)
|
|
4725
4725
|
/* harmony export */ });
|
|
4726
4726
|
/*!
|
|
4727
|
-
* @pixi/constants - v6.2.
|
|
4728
|
-
* Compiled
|
|
4727
|
+
* @pixi/constants - v6.2.1
|
|
4728
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
4729
4729
|
*
|
|
4730
4730
|
* @pixi/constants is licensed under the MIT License.
|
|
4731
4731
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -5337,8 +5337,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5337
5337
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
5338
5338
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
5339
5339
|
/*!
|
|
5340
|
-
* @pixi/core - v6.2.
|
|
5341
|
-
* Compiled
|
|
5340
|
+
* @pixi/core - v6.2.1
|
|
5341
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
5342
5342
|
*
|
|
5343
5343
|
* @pixi/core is licensed under the MIT License.
|
|
5344
5344
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -5520,73 +5520,28 @@ function __rest(s, e) {
|
|
|
5520
5520
|
*
|
|
5521
5521
|
* Uploading of a base texture to the GPU is required.
|
|
5522
5522
|
*
|
|
5523
|
-
* @class
|
|
5524
5523
|
* @memberof PIXI
|
|
5525
5524
|
*/
|
|
5526
5525
|
var Resource = /** @class */ (function () {
|
|
5527
5526
|
/**
|
|
5528
|
-
* @param
|
|
5529
|
-
* @param
|
|
5527
|
+
* @param width - Width of the resource
|
|
5528
|
+
* @param height - Height of the resource
|
|
5530
5529
|
*/
|
|
5531
5530
|
function Resource(width, height) {
|
|
5532
5531
|
if (width === void 0) { width = 0; }
|
|
5533
5532
|
if (height === void 0) { height = 0; }
|
|
5534
|
-
/**
|
|
5535
|
-
* Internal width of the resource
|
|
5536
|
-
* @member {number}
|
|
5537
|
-
* @protected
|
|
5538
|
-
*/
|
|
5539
5533
|
this._width = width;
|
|
5540
|
-
/**
|
|
5541
|
-
* Internal height of the resource
|
|
5542
|
-
* @member {number}
|
|
5543
|
-
* @protected
|
|
5544
|
-
*/
|
|
5545
5534
|
this._height = height;
|
|
5546
|
-
/**
|
|
5547
|
-
* If resource has been destroyed
|
|
5548
|
-
* @member {boolean}
|
|
5549
|
-
* @readonly
|
|
5550
|
-
* @default false
|
|
5551
|
-
*/
|
|
5552
5535
|
this.destroyed = false;
|
|
5553
|
-
/**
|
|
5554
|
-
* `true` if resource is created by BaseTexture
|
|
5555
|
-
* useful for doing cleanup with BaseTexture destroy
|
|
5556
|
-
* and not cleaning up resources that were created
|
|
5557
|
-
* externally.
|
|
5558
|
-
* @member {boolean}
|
|
5559
|
-
* @protected
|
|
5560
|
-
*/
|
|
5561
5536
|
this.internal = false;
|
|
5562
|
-
/**
|
|
5563
|
-
* Mini-runner for handling resize events
|
|
5564
|
-
* accepts 2 parameters: width, height
|
|
5565
|
-
*
|
|
5566
|
-
* @member {Runner}
|
|
5567
|
-
* @private
|
|
5568
|
-
*/
|
|
5569
5537
|
this.onResize = new _pixi_runner__WEBPACK_IMPORTED_MODULE_3__.Runner('setRealSize');
|
|
5570
|
-
/**
|
|
5571
|
-
* Mini-runner for handling update events
|
|
5572
|
-
*
|
|
5573
|
-
* @member {Runner}
|
|
5574
|
-
* @private
|
|
5575
|
-
*/
|
|
5576
5538
|
this.onUpdate = new _pixi_runner__WEBPACK_IMPORTED_MODULE_3__.Runner('update');
|
|
5577
|
-
/**
|
|
5578
|
-
* Handle internal errors, such as loading errors
|
|
5579
|
-
* accepts 1 param: error
|
|
5580
|
-
*
|
|
5581
|
-
* @member {Runner}
|
|
5582
|
-
* @private
|
|
5583
|
-
*/
|
|
5584
5539
|
this.onError = new _pixi_runner__WEBPACK_IMPORTED_MODULE_3__.Runner('onError');
|
|
5585
5540
|
}
|
|
5586
5541
|
/**
|
|
5587
5542
|
* Bind to a parent BaseTexture
|
|
5588
5543
|
*
|
|
5589
|
-
* @param
|
|
5544
|
+
* @param baseTexture - Parent texture
|
|
5590
5545
|
*/
|
|
5591
5546
|
Resource.prototype.bind = function (baseTexture) {
|
|
5592
5547
|
this.onResize.add(baseTexture);
|
|
@@ -5601,7 +5556,7 @@ var Resource = /** @class */ (function () {
|
|
|
5601
5556
|
/**
|
|
5602
5557
|
* Unbind to a parent BaseTexture
|
|
5603
5558
|
*
|
|
5604
|
-
* @param
|
|
5559
|
+
* @param baseTexture - Parent texture
|
|
5605
5560
|
*/
|
|
5606
5561
|
Resource.prototype.unbind = function (baseTexture) {
|
|
5607
5562
|
this.onResize.remove(baseTexture);
|
|
@@ -5610,8 +5565,9 @@ var Resource = /** @class */ (function () {
|
|
|
5610
5565
|
};
|
|
5611
5566
|
/**
|
|
5612
5567
|
* Trigger a resize event
|
|
5613
|
-
*
|
|
5614
|
-
* @param
|
|
5568
|
+
*
|
|
5569
|
+
* @param width - X dimension
|
|
5570
|
+
* @param height - Y dimension
|
|
5615
5571
|
*/
|
|
5616
5572
|
Resource.prototype.resize = function (width, height) {
|
|
5617
5573
|
if (width !== this._width || height !== this._height) {
|
|
@@ -5623,8 +5579,8 @@ var Resource = /** @class */ (function () {
|
|
|
5623
5579
|
Object.defineProperty(Resource.prototype, "valid", {
|
|
5624
5580
|
/**
|
|
5625
5581
|
* Has been validated
|
|
5582
|
+
*
|
|
5626
5583
|
* @readonly
|
|
5627
|
-
* @member {boolean}
|
|
5628
5584
|
*/
|
|
5629
5585
|
get: function () {
|
|
5630
5586
|
return !!this._width && !!this._height;
|
|
@@ -5632,9 +5588,7 @@ var Resource = /** @class */ (function () {
|
|
|
5632
5588
|
enumerable: false,
|
|
5633
5589
|
configurable: true
|
|
5634
5590
|
});
|
|
5635
|
-
/**
|
|
5636
|
-
* Has been updated trigger event
|
|
5637
|
-
*/
|
|
5591
|
+
/** Has been updated trigger event. */
|
|
5638
5592
|
Resource.prototype.update = function () {
|
|
5639
5593
|
if (!this.destroyed) {
|
|
5640
5594
|
this.onUpdate.emit();
|
|
@@ -5643,8 +5597,9 @@ var Resource = /** @class */ (function () {
|
|
|
5643
5597
|
/**
|
|
5644
5598
|
* This can be overridden to start preloading a resource
|
|
5645
5599
|
* or do any other prepare step.
|
|
5600
|
+
*
|
|
5646
5601
|
* @protected
|
|
5647
|
-
* @return
|
|
5602
|
+
* @return Handle the validate event
|
|
5648
5603
|
*/
|
|
5649
5604
|
Resource.prototype.load = function () {
|
|
5650
5605
|
return Promise.resolve(this);
|
|
@@ -5653,7 +5608,6 @@ var Resource = /** @class */ (function () {
|
|
|
5653
5608
|
/**
|
|
5654
5609
|
* The width of the resource.
|
|
5655
5610
|
*
|
|
5656
|
-
* @member {number}
|
|
5657
5611
|
* @readonly
|
|
5658
5612
|
*/
|
|
5659
5613
|
get: function () {
|
|
@@ -5666,7 +5620,6 @@ var Resource = /** @class */ (function () {
|
|
|
5666
5620
|
/**
|
|
5667
5621
|
* The height of the resource.
|
|
5668
5622
|
*
|
|
5669
|
-
* @member {number}
|
|
5670
5623
|
* @readonly
|
|
5671
5624
|
*/
|
|
5672
5625
|
get: function () {
|
|
@@ -5678,19 +5631,15 @@ var Resource = /** @class */ (function () {
|
|
|
5678
5631
|
/**
|
|
5679
5632
|
* Set the style, optional to override
|
|
5680
5633
|
*
|
|
5681
|
-
* @param
|
|
5682
|
-
* @param
|
|
5683
|
-
* @param
|
|
5684
|
-
* @returns
|
|
5634
|
+
* @param renderer - yeah, renderer!
|
|
5635
|
+
* @param baseTexture - the texture
|
|
5636
|
+
* @param glTexture - texture instance for this webgl context
|
|
5637
|
+
* @returns - `true` is success
|
|
5685
5638
|
*/
|
|
5686
5639
|
Resource.prototype.style = function (_renderer, _baseTexture, _glTexture) {
|
|
5687
5640
|
return false;
|
|
5688
5641
|
};
|
|
5689
|
-
/**
|
|
5690
|
-
* Clean up anything, this happens when destroying is ready.
|
|
5691
|
-
*
|
|
5692
|
-
* @protected
|
|
5693
|
-
*/
|
|
5642
|
+
/** Clean up anything, this happens when destroying is ready. */
|
|
5694
5643
|
Resource.prototype.dispose = function () {
|
|
5695
5644
|
// override
|
|
5696
5645
|
};
|
|
@@ -5712,9 +5661,8 @@ var Resource = /** @class */ (function () {
|
|
|
5712
5661
|
}
|
|
5713
5662
|
};
|
|
5714
5663
|
/**
|
|
5715
|
-
* Abstract, used to auto-detect resource type
|
|
5664
|
+
* Abstract, used to auto-detect resource type.
|
|
5716
5665
|
*
|
|
5717
|
-
* @static
|
|
5718
5666
|
* @param {*} source - The source object
|
|
5719
5667
|
* @param {string} extension - The extension of source, if set
|
|
5720
5668
|
*/
|
|
@@ -5729,15 +5677,14 @@ var Resource = /** @class */ (function () {
|
|
|
5729
5677
|
*/
|
|
5730
5678
|
/**
|
|
5731
5679
|
* Buffer resource with data of typed array.
|
|
5732
|
-
*
|
|
5733
|
-
* @extends PIXI.Resource
|
|
5680
|
+
*
|
|
5734
5681
|
* @memberof PIXI
|
|
5735
5682
|
*/
|
|
5736
5683
|
var BufferResource = /** @class */ (function (_super) {
|
|
5737
5684
|
__extends(BufferResource, _super);
|
|
5738
5685
|
/**
|
|
5739
|
-
* @param
|
|
5740
|
-
* @param
|
|
5686
|
+
* @param source - Source buffer
|
|
5687
|
+
* @param options - Options
|
|
5741
5688
|
* @param {number} options.width - Width of the texture
|
|
5742
5689
|
* @param {number} options.height - Height of the texture
|
|
5743
5690
|
*/
|
|
@@ -5748,21 +5695,16 @@ var BufferResource = /** @class */ (function (_super) {
|
|
|
5748
5695
|
throw new Error('BufferResource width or height invalid');
|
|
5749
5696
|
}
|
|
5750
5697
|
_this = _super.call(this, width, height) || this;
|
|
5751
|
-
/**
|
|
5752
|
-
* Source array
|
|
5753
|
-
* Cannot be ClampedUint8Array because it cant be uploaded to WebGL
|
|
5754
|
-
*
|
|
5755
|
-
* @member {Float32Array|Uint8Array|Uint32Array}
|
|
5756
|
-
*/
|
|
5757
5698
|
_this.data = source;
|
|
5758
5699
|
return _this;
|
|
5759
5700
|
}
|
|
5760
5701
|
/**
|
|
5761
5702
|
* Upload the texture to the GPU.
|
|
5762
|
-
*
|
|
5763
|
-
* @param
|
|
5764
|
-
* @param
|
|
5765
|
-
* @
|
|
5703
|
+
*
|
|
5704
|
+
* @param renderer - Upload to the renderer
|
|
5705
|
+
* @param baseTexture - Reference to parent texture
|
|
5706
|
+
* @param glTexture - glTexture
|
|
5707
|
+
* @returns - true is success
|
|
5766
5708
|
*/
|
|
5767
5709
|
BufferResource.prototype.upload = function (renderer, baseTexture, glTexture) {
|
|
5768
5710
|
var gl = renderer.gl;
|
|
@@ -5779,17 +5721,13 @@ var BufferResource = /** @class */ (function (_super) {
|
|
|
5779
5721
|
}
|
|
5780
5722
|
return true;
|
|
5781
5723
|
};
|
|
5782
|
-
/**
|
|
5783
|
-
* Destroy and don't use after this
|
|
5784
|
-
* @override
|
|
5785
|
-
*/
|
|
5724
|
+
/** Destroy and don't use after this. */
|
|
5786
5725
|
BufferResource.prototype.dispose = function () {
|
|
5787
5726
|
this.data = null;
|
|
5788
5727
|
};
|
|
5789
5728
|
/**
|
|
5790
5729
|
* Used to auto-detect the type of resource.
|
|
5791
5730
|
*
|
|
5792
|
-
* @static
|
|
5793
5731
|
* @param {*} source - The source object
|
|
5794
5732
|
* @return {boolean} `true` if <canvas>
|
|
5795
5733
|
*/
|
|
@@ -6278,15 +6216,13 @@ var BaseTexture = /** @class */ (function (_super) {
|
|
|
6278
6216
|
* All resources need to have the same pixel size.
|
|
6279
6217
|
* Parent class for CubeResource and ArrayResource
|
|
6280
6218
|
*
|
|
6281
|
-
* @class
|
|
6282
|
-
* @extends PIXI.Resource
|
|
6283
6219
|
* @memberof PIXI
|
|
6284
6220
|
*/
|
|
6285
6221
|
var AbstractMultiResource = /** @class */ (function (_super) {
|
|
6286
6222
|
__extends(AbstractMultiResource, _super);
|
|
6287
6223
|
/**
|
|
6288
|
-
* @param
|
|
6289
|
-
* @param
|
|
6224
|
+
* @param length
|
|
6225
|
+
* @param options - Options to for Resource constructor
|
|
6290
6226
|
* @param {number} [options.width] - Width of the resource
|
|
6291
6227
|
* @param {number} [options.height] - Height of the resource
|
|
6292
6228
|
*/
|
|
@@ -6294,17 +6230,7 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6294
6230
|
var _this = this;
|
|
6295
6231
|
var _a = options || {}, width = _a.width, height = _a.height;
|
|
6296
6232
|
_this = _super.call(this, width, height) || this;
|
|
6297
|
-
/**
|
|
6298
|
-
* Collection of partial baseTextures that correspond to resources
|
|
6299
|
-
* @member {Array<PIXI.BaseTexture>}
|
|
6300
|
-
* @readonly
|
|
6301
|
-
*/
|
|
6302
6233
|
_this.items = [];
|
|
6303
|
-
/**
|
|
6304
|
-
* Dirty IDs for each part
|
|
6305
|
-
* @member {Array<number>}
|
|
6306
|
-
* @readonly
|
|
6307
|
-
*/
|
|
6308
6234
|
_this.itemDirtyIds = [];
|
|
6309
6235
|
for (var i = 0; i < length; i++) {
|
|
6310
6236
|
var partTexture = new BaseTexture();
|
|
@@ -6314,33 +6240,17 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6314
6240
|
// >=0 - texture item uploaded , in sync with items[i].dirtyId
|
|
6315
6241
|
_this.itemDirtyIds.push(-2);
|
|
6316
6242
|
}
|
|
6317
|
-
/**
|
|
6318
|
-
* Number of elements in array
|
|
6319
|
-
*
|
|
6320
|
-
* @member {number}
|
|
6321
|
-
* @readonly
|
|
6322
|
-
*/
|
|
6323
6243
|
_this.length = length;
|
|
6324
|
-
/**
|
|
6325
|
-
* Promise when loading
|
|
6326
|
-
* @member {Promise}
|
|
6327
|
-
* @private
|
|
6328
|
-
* @default null
|
|
6329
|
-
*/
|
|
6330
6244
|
_this._load = null;
|
|
6331
|
-
/**
|
|
6332
|
-
* Bound baseTexture, there can only be one
|
|
6333
|
-
* @member {PIXI.BaseTexture}
|
|
6334
|
-
*/
|
|
6335
6245
|
_this.baseTexture = null;
|
|
6336
6246
|
return _this;
|
|
6337
6247
|
}
|
|
6338
6248
|
/**
|
|
6339
|
-
*
|
|
6340
|
-
*
|
|
6249
|
+
* Used from ArrayResource and CubeResource constructors.
|
|
6250
|
+
*
|
|
6251
|
+
* @param resources - Can be resources, image elements, canvas, etc. ,
|
|
6341
6252
|
* length should be same as constructor length
|
|
6342
|
-
* @param
|
|
6343
|
-
* @protected
|
|
6253
|
+
* @param options - Detect options for resources
|
|
6344
6254
|
*/
|
|
6345
6255
|
AbstractMultiResource.prototype.initFromArray = function (resources, options) {
|
|
6346
6256
|
for (var i = 0; i < this.length; i++) {
|
|
@@ -6358,10 +6268,7 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6358
6268
|
}
|
|
6359
6269
|
}
|
|
6360
6270
|
};
|
|
6361
|
-
/**
|
|
6362
|
-
* Destroy this BaseImageResource
|
|
6363
|
-
* @override
|
|
6364
|
-
*/
|
|
6271
|
+
/** Destroy this BaseImageResource. */
|
|
6365
6272
|
AbstractMultiResource.prototype.dispose = function () {
|
|
6366
6273
|
for (var i = 0, len = this.length; i < len; i++) {
|
|
6367
6274
|
this.items[i].destroy();
|
|
@@ -6373,9 +6280,9 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6373
6280
|
/**
|
|
6374
6281
|
* Set a resource by ID
|
|
6375
6282
|
*
|
|
6376
|
-
* @param
|
|
6377
|
-
* @param
|
|
6378
|
-
* @return
|
|
6283
|
+
* @param resource
|
|
6284
|
+
* @param index - Zero-based index of resource to set
|
|
6285
|
+
* @return - Instance for chaining
|
|
6379
6286
|
*/
|
|
6380
6287
|
AbstractMultiResource.prototype.addResourceAt = function (resource, index) {
|
|
6381
6288
|
if (!this.items[index]) {
|
|
@@ -6388,11 +6295,7 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6388
6295
|
this.items[index].setResource(resource);
|
|
6389
6296
|
return this;
|
|
6390
6297
|
};
|
|
6391
|
-
/**
|
|
6392
|
-
* Set the parent base texture
|
|
6393
|
-
* @member {PIXI.BaseTexture}
|
|
6394
|
-
* @override
|
|
6395
|
-
*/
|
|
6298
|
+
/** Set the parent base texture. */
|
|
6396
6299
|
AbstractMultiResource.prototype.bind = function (baseTexture) {
|
|
6397
6300
|
if (this.baseTexture !== null) {
|
|
6398
6301
|
throw new Error('Only one base texture per TextureArray is allowed');
|
|
@@ -6403,11 +6306,7 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6403
6306
|
this.items[i].on('update', baseTexture.update, baseTexture);
|
|
6404
6307
|
}
|
|
6405
6308
|
};
|
|
6406
|
-
/**
|
|
6407
|
-
* Unset the parent base texture
|
|
6408
|
-
* @member {PIXI.BaseTexture}
|
|
6409
|
-
* @override
|
|
6410
|
-
*/
|
|
6309
|
+
/** Unset the parent base texture. */
|
|
6411
6310
|
AbstractMultiResource.prototype.unbind = function (baseTexture) {
|
|
6412
6311
|
_super.prototype.unbind.call(this, baseTexture);
|
|
6413
6312
|
for (var i = 0; i < this.length; i++) {
|
|
@@ -6417,8 +6316,8 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6417
6316
|
};
|
|
6418
6317
|
/**
|
|
6419
6318
|
* Load all the resources simultaneously
|
|
6420
|
-
*
|
|
6421
|
-
* @return
|
|
6319
|
+
*
|
|
6320
|
+
* @return - When load is resolved
|
|
6422
6321
|
*/
|
|
6423
6322
|
AbstractMultiResource.prototype.load = function () {
|
|
6424
6323
|
var _this = this;
|
|
@@ -6442,16 +6341,14 @@ var AbstractMultiResource = /** @class */ (function (_super) {
|
|
|
6442
6341
|
/**
|
|
6443
6342
|
* A resource that contains a number of sources.
|
|
6444
6343
|
*
|
|
6445
|
-
* @class
|
|
6446
|
-
* @extends PIXI.Resource
|
|
6447
6344
|
* @memberof PIXI
|
|
6448
6345
|
*/
|
|
6449
6346
|
var ArrayResource = /** @class */ (function (_super) {
|
|
6450
6347
|
__extends(ArrayResource, _super);
|
|
6451
6348
|
/**
|
|
6452
|
-
* @param
|
|
6349
|
+
* @param source - Number of items in array or the collection
|
|
6453
6350
|
* of image URLs to use. Can also be resources, image elements, canvas, etc.
|
|
6454
|
-
* @param
|
|
6351
|
+
* @param options - Options to apply to {@link PIXI.autoDetectResource}
|
|
6455
6352
|
* @param {number} [options.width] - Width of the resource
|
|
6456
6353
|
* @param {number} [options.height] - Height of the resource
|
|
6457
6354
|
*/
|
|
@@ -6477,9 +6374,9 @@ var ArrayResource = /** @class */ (function (_super) {
|
|
|
6477
6374
|
* Set a baseTexture by ID,
|
|
6478
6375
|
* ArrayResource just takes resource from it, nothing more
|
|
6479
6376
|
*
|
|
6480
|
-
* @param
|
|
6481
|
-
* @param
|
|
6482
|
-
* @return
|
|
6377
|
+
* @param baseTexture
|
|
6378
|
+
* @param index - Zero-based index of resource to set
|
|
6379
|
+
* @return - Instance for chaining
|
|
6483
6380
|
*/
|
|
6484
6381
|
ArrayResource.prototype.addBaseTextureAt = function (baseTexture, index) {
|
|
6485
6382
|
if (baseTexture.resource) {
|
|
@@ -6490,21 +6387,18 @@ var ArrayResource = /** @class */ (function (_super) {
|
|
|
6490
6387
|
}
|
|
6491
6388
|
return this;
|
|
6492
6389
|
};
|
|
6493
|
-
/**
|
|
6494
|
-
* Add binding
|
|
6495
|
-
* @member {PIXI.BaseTexture}
|
|
6496
|
-
* @override
|
|
6497
|
-
*/
|
|
6390
|
+
/** Add binding */
|
|
6498
6391
|
ArrayResource.prototype.bind = function (baseTexture) {
|
|
6499
6392
|
_super.prototype.bind.call(this, baseTexture);
|
|
6500
6393
|
baseTexture.target = _pixi_constants__WEBPACK_IMPORTED_MODULE_1__.TARGETS.TEXTURE_2D_ARRAY;
|
|
6501
6394
|
};
|
|
6502
6395
|
/**
|
|
6503
6396
|
* Upload the resources to the GPU.
|
|
6504
|
-
*
|
|
6505
|
-
* @param
|
|
6506
|
-
* @param
|
|
6507
|
-
* @
|
|
6397
|
+
*
|
|
6398
|
+
* @param renderer
|
|
6399
|
+
* @param texture
|
|
6400
|
+
* @param glTexture
|
|
6401
|
+
* @returns - whether texture was uploaded
|
|
6508
6402
|
*/
|
|
6509
6403
|
ArrayResource.prototype.upload = function (renderer, texture, glTexture) {
|
|
6510
6404
|
var _a = this, length = _a.length, itemDirtyIds = _a.itemDirtyIds, items = _a.items;
|
|
@@ -6530,9 +6424,8 @@ var ArrayResource = /** @class */ (function (_super) {
|
|
|
6530
6424
|
}(AbstractMultiResource));
|
|
6531
6425
|
|
|
6532
6426
|
/**
|
|
6533
|
-
* Base for all the image/canvas resources
|
|
6534
|
-
*
|
|
6535
|
-
* @extends PIXI.Resource
|
|
6427
|
+
* Base for all the image/canvas resources.
|
|
6428
|
+
*
|
|
6536
6429
|
* @memberof PIXI
|
|
6537
6430
|
*/
|
|
6538
6431
|
var BaseImageResource = /** @class */ (function (_super) {
|
|
@@ -6546,28 +6439,16 @@ var BaseImageResource = /** @class */ (function (_super) {
|
|
|
6546
6439
|
var width = sourceAny.naturalWidth || sourceAny.videoWidth || sourceAny.width;
|
|
6547
6440
|
var height = sourceAny.naturalHeight || sourceAny.videoHeight || sourceAny.height;
|
|
6548
6441
|
_this = _super.call(this, width, height) || this;
|
|
6549
|
-
/**
|
|
6550
|
-
* The source element
|
|
6551
|
-
* @member {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|SVGElement}
|
|
6552
|
-
* @readonly
|
|
6553
|
-
*/
|
|
6554
6442
|
_this.source = source;
|
|
6555
|
-
/**
|
|
6556
|
-
* If set to `true`, will force `texImage2D` over `texSubImage2D` for uploading.
|
|
6557
|
-
* Certain types of media (e.g. video) using `texImage2D` is more performant.
|
|
6558
|
-
* @member {boolean}
|
|
6559
|
-
* @default false
|
|
6560
|
-
* @private
|
|
6561
|
-
*/
|
|
6562
6443
|
_this.noSubImage = false;
|
|
6563
6444
|
return _this;
|
|
6564
6445
|
}
|
|
6565
6446
|
/**
|
|
6566
6447
|
* Set cross origin based detecting the url and the crossorigin
|
|
6567
|
-
*
|
|
6568
|
-
* @param
|
|
6569
|
-
* @param
|
|
6570
|
-
* @param
|
|
6448
|
+
*
|
|
6449
|
+
* @param element - Element to apply crossOrigin
|
|
6450
|
+
* @param url - URL to check
|
|
6451
|
+
* @param crossorigin - Cross origin value to use
|
|
6571
6452
|
*/
|
|
6572
6453
|
BaseImageResource.crossOrigin = function (element, url, crossorigin) {
|
|
6573
6454
|
if (crossorigin === undefined && url.indexOf('data:') !== 0) {
|
|
@@ -6579,11 +6460,12 @@ var BaseImageResource = /** @class */ (function (_super) {
|
|
|
6579
6460
|
};
|
|
6580
6461
|
/**
|
|
6581
6462
|
* Upload the texture to the GPU.
|
|
6582
|
-
*
|
|
6583
|
-
* @param
|
|
6584
|
-
* @param
|
|
6463
|
+
*
|
|
6464
|
+
* @param renderer - Upload to the renderer
|
|
6465
|
+
* @param baseTexture - Reference to parent texture
|
|
6466
|
+
* @param glTexture
|
|
6585
6467
|
* @param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|SVGElement} [source] - (optional)
|
|
6586
|
-
* @returns
|
|
6468
|
+
* @returns - true is success
|
|
6587
6469
|
*/
|
|
6588
6470
|
BaseImageResource.prototype.upload = function (renderer, baseTexture, glTexture, source) {
|
|
6589
6471
|
var gl = renderer.gl;
|
|
@@ -6618,10 +6500,7 @@ var BaseImageResource = /** @class */ (function (_super) {
|
|
|
6618
6500
|
this.resize(width, height);
|
|
6619
6501
|
_super.prototype.update.call(this);
|
|
6620
6502
|
};
|
|
6621
|
-
/**
|
|
6622
|
-
* Destroy this BaseImageResource
|
|
6623
|
-
* @override
|
|
6624
|
-
*/
|
|
6503
|
+
/** Destroy this {@link BaseImageResource} */
|
|
6625
6504
|
BaseImageResource.prototype.dispose = function () {
|
|
6626
6505
|
this.source = null;
|
|
6627
6506
|
};
|
|
@@ -6633,14 +6512,13 @@ var BaseImageResource = /** @class */ (function (_super) {
|
|
|
6633
6512
|
*/
|
|
6634
6513
|
/**
|
|
6635
6514
|
* Resource type for HTMLCanvasElement.
|
|
6636
|
-
*
|
|
6637
|
-
* @extends PIXI.BaseImageResource
|
|
6515
|
+
*
|
|
6638
6516
|
* @memberof PIXI
|
|
6639
6517
|
*/
|
|
6640
6518
|
var CanvasResource = /** @class */ (function (_super) {
|
|
6641
6519
|
__extends(CanvasResource, _super);
|
|
6642
6520
|
/**
|
|
6643
|
-
* @param
|
|
6521
|
+
* @param source - Canvas element to use
|
|
6644
6522
|
*/
|
|
6645
6523
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
6646
6524
|
function CanvasResource(source) {
|
|
@@ -6649,8 +6527,7 @@ var CanvasResource = /** @class */ (function (_super) {
|
|
|
6649
6527
|
/**
|
|
6650
6528
|
* Used to auto-detect the type of resource.
|
|
6651
6529
|
*
|
|
6652
|
-
* @
|
|
6653
|
-
* @param {HTMLCanvasElement|OffscreenCanvas} source - The source object
|
|
6530
|
+
* @param {*} source - The source object
|
|
6654
6531
|
* @return {boolean} `true` if source is HTMLCanvasElement or OffscreenCanvas
|
|
6655
6532
|
*/
|
|
6656
6533
|
CanvasResource.test = function (source) {
|
|
@@ -6667,8 +6544,6 @@ var CanvasResource = /** @class */ (function (_super) {
|
|
|
6667
6544
|
/**
|
|
6668
6545
|
* Resource for a CubeTexture which contains six resources.
|
|
6669
6546
|
*
|
|
6670
|
-
* @class
|
|
6671
|
-
* @extends PIXI.ArrayResource
|
|
6672
6547
|
* @memberof PIXI
|
|
6673
6548
|
*/
|
|
6674
6549
|
var CubeResource = /** @class */ (function (_super) {
|
|
@@ -6676,7 +6551,7 @@ var CubeResource = /** @class */ (function (_super) {
|
|
|
6676
6551
|
/**
|
|
6677
6552
|
* @param {Array<string|PIXI.Resource>} [source] - Collection of URLs or resources
|
|
6678
6553
|
* to use as the sides of the cube.
|
|
6679
|
-
* @param
|
|
6554
|
+
* @param options - ImageResource options
|
|
6680
6555
|
* @param {number} [options.width] - Width of resource
|
|
6681
6556
|
* @param {number} [options.height] - Height of resource
|
|
6682
6557
|
* @param {number} [options.autoLoad=true] - Whether to auto-load resources
|
|
@@ -6693,11 +6568,6 @@ var CubeResource = /** @class */ (function (_super) {
|
|
|
6693
6568
|
for (var i = 0; i < CubeResource.SIDES; i++) {
|
|
6694
6569
|
_this.items[i].target = _pixi_constants__WEBPACK_IMPORTED_MODULE_1__.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X + i;
|
|
6695
6570
|
}
|
|
6696
|
-
/**
|
|
6697
|
-
* In case BaseTextures are supplied, whether to use same resource or bind baseTexture itself
|
|
6698
|
-
* @member {boolean}
|
|
6699
|
-
* @protected
|
|
6700
|
-
*/
|
|
6701
6571
|
_this.linkBaseTexture = linkBaseTexture !== false;
|
|
6702
6572
|
if (source) {
|
|
6703
6573
|
_this.initFromArray(source, options);
|
|
@@ -6708,10 +6578,9 @@ var CubeResource = /** @class */ (function (_super) {
|
|
|
6708
6578
|
return _this;
|
|
6709
6579
|
}
|
|
6710
6580
|
/**
|
|
6711
|
-
* Add binding
|
|
6581
|
+
* Add binding.
|
|
6712
6582
|
*
|
|
6713
|
-
* @
|
|
6714
|
-
* @param {PIXI.BaseTexture} baseTexture - parent base texture
|
|
6583
|
+
* @param baseTexture - parent base texture
|
|
6715
6584
|
*/
|
|
6716
6585
|
CubeResource.prototype.bind = function (baseTexture) {
|
|
6717
6586
|
_super.prototype.bind.call(this, baseTexture);
|
|
@@ -6774,36 +6643,27 @@ var CubeResource = /** @class */ (function (_super) {
|
|
|
6774
6643
|
/**
|
|
6775
6644
|
* Used to auto-detect the type of resource.
|
|
6776
6645
|
*
|
|
6777
|
-
* @
|
|
6778
|
-
* @param {object} source - The source object
|
|
6646
|
+
* @param {*} source - The source object
|
|
6779
6647
|
* @return {boolean} `true` if source is an array of 6 elements
|
|
6780
6648
|
*/
|
|
6781
6649
|
CubeResource.test = function (source) {
|
|
6782
6650
|
return Array.isArray(source) && source.length === CubeResource.SIDES;
|
|
6783
6651
|
};
|
|
6784
|
-
/**
|
|
6785
|
-
* Number of texture sides to store for CubeResources
|
|
6786
|
-
*
|
|
6787
|
-
* @name PIXI.CubeResource.SIDES
|
|
6788
|
-
* @static
|
|
6789
|
-
* @member {number}
|
|
6790
|
-
* @default 6
|
|
6791
|
-
*/
|
|
6652
|
+
/** Number of texture sides to store for CubeResources. */
|
|
6792
6653
|
CubeResource.SIDES = 6;
|
|
6793
6654
|
return CubeResource;
|
|
6794
6655
|
}(AbstractMultiResource));
|
|
6795
6656
|
|
|
6796
6657
|
/**
|
|
6797
6658
|
* Resource type for HTMLImageElement.
|
|
6798
|
-
*
|
|
6799
|
-
* @extends PIXI.BaseImageResource
|
|
6659
|
+
*
|
|
6800
6660
|
* @memberof PIXI
|
|
6801
6661
|
*/
|
|
6802
6662
|
var ImageResource = /** @class */ (function (_super) {
|
|
6803
6663
|
__extends(ImageResource, _super);
|
|
6804
6664
|
/**
|
|
6805
|
-
* @param
|
|
6806
|
-
* @param
|
|
6665
|
+
* @param source - image source or URL
|
|
6666
|
+
* @param options
|
|
6807
6667
|
* @param {boolean} [options.autoLoad=true] - start loading process
|
|
6808
6668
|
* @param {boolean} [options.createBitmap=PIXI.settings.CREATE_IMAGE_BITMAP] - whether its required to create
|
|
6809
6669
|
* a bitmap before upload
|
|
@@ -6828,51 +6688,13 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
6828
6688
|
_this._width = 0;
|
|
6829
6689
|
_this._height = 0;
|
|
6830
6690
|
}
|
|
6831
|
-
/**
|
|
6832
|
-
* URL of the image source
|
|
6833
|
-
* @member {string}
|
|
6834
|
-
*/
|
|
6835
6691
|
_this.url = source.src;
|
|
6836
|
-
/**
|
|
6837
|
-
* When process is completed
|
|
6838
|
-
* @member {Promise<void>}
|
|
6839
|
-
* @private
|
|
6840
|
-
*/
|
|
6841
6692
|
_this._process = null;
|
|
6842
|
-
/**
|
|
6843
|
-
* If the image should be disposed after upload
|
|
6844
|
-
* @member {boolean}
|
|
6845
|
-
* @default false
|
|
6846
|
-
*/
|
|
6847
6693
|
_this.preserveBitmap = false;
|
|
6848
|
-
/**
|
|
6849
|
-
* If capable, convert the image using createImageBitmap API
|
|
6850
|
-
* @member {boolean}
|
|
6851
|
-
* @default PIXI.settings.CREATE_IMAGE_BITMAP
|
|
6852
|
-
*/
|
|
6853
6694
|
_this.createBitmap = (options.createBitmap !== undefined
|
|
6854
6695
|
? options.createBitmap : _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.CREATE_IMAGE_BITMAP) && !!self.createImageBitmap;
|
|
6855
|
-
/**
|
|
6856
|
-
* Controls texture alphaMode field
|
|
6857
|
-
* Copies from options
|
|
6858
|
-
* Default is `null`, copies option from baseTexture
|
|
6859
|
-
*
|
|
6860
|
-
* @member {PIXI.ALPHA_MODES|null}
|
|
6861
|
-
* @readonly
|
|
6862
|
-
*/
|
|
6863
6696
|
_this.alphaMode = typeof options.alphaMode === 'number' ? options.alphaMode : null;
|
|
6864
|
-
/**
|
|
6865
|
-
* The ImageBitmap element created for HTMLImageElement
|
|
6866
|
-
* @member {ImageBitmap}
|
|
6867
|
-
* @default null
|
|
6868
|
-
*/
|
|
6869
6697
|
_this.bitmap = null;
|
|
6870
|
-
/**
|
|
6871
|
-
* Promise when loading
|
|
6872
|
-
* @member {Promise<void>}
|
|
6873
|
-
* @private
|
|
6874
|
-
* @default null
|
|
6875
|
-
*/
|
|
6876
6698
|
_this._load = null;
|
|
6877
6699
|
if (options.autoLoad !== false) {
|
|
6878
6700
|
_this.load();
|
|
@@ -6880,10 +6702,9 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
6880
6702
|
return _this;
|
|
6881
6703
|
}
|
|
6882
6704
|
/**
|
|
6883
|
-
*
|
|
6705
|
+
* Returns a promise when image will be loaded and processed.
|
|
6884
6706
|
*
|
|
6885
|
-
* @param
|
|
6886
|
-
* @returns {Promise<void>}
|
|
6707
|
+
* @param createBitmap - whether process image into bitmap
|
|
6887
6708
|
*/
|
|
6888
6709
|
ImageResource.prototype.load = function (createBitmap) {
|
|
6889
6710
|
var _this = this;
|
|
@@ -6929,7 +6750,7 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
6929
6750
|
* Called when we need to convert image into BitmapImage.
|
|
6930
6751
|
* Can be called multiple times, real promise is cached inside.
|
|
6931
6752
|
*
|
|
6932
|
-
* @
|
|
6753
|
+
* @return - Cached promise to fill that bitmap
|
|
6933
6754
|
*/
|
|
6934
6755
|
ImageResource.prototype.process = function () {
|
|
6935
6756
|
var _this = this;
|
|
@@ -6963,9 +6784,9 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
6963
6784
|
/**
|
|
6964
6785
|
* Upload the image resource to GPU.
|
|
6965
6786
|
*
|
|
6966
|
-
* @param
|
|
6967
|
-
* @param
|
|
6968
|
-
* @param
|
|
6787
|
+
* @param renderer - Renderer to upload to
|
|
6788
|
+
* @param baseTexture - BaseTexture for this resource
|
|
6789
|
+
* @param glTexture - GLTexture to use
|
|
6969
6790
|
* @returns {boolean} true is success
|
|
6970
6791
|
*/
|
|
6971
6792
|
ImageResource.prototype.upload = function (renderer, baseTexture, glTexture) {
|
|
@@ -7004,10 +6825,7 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
7004
6825
|
}
|
|
7005
6826
|
return true;
|
|
7006
6827
|
};
|
|
7007
|
-
/**
|
|
7008
|
-
* Destroys this texture
|
|
7009
|
-
* @override
|
|
7010
|
-
*/
|
|
6828
|
+
/** Destroys this resource. */
|
|
7011
6829
|
ImageResource.prototype.dispose = function () {
|
|
7012
6830
|
this.source.onload = null;
|
|
7013
6831
|
this.source.onerror = null;
|
|
@@ -7022,8 +6840,7 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
7022
6840
|
/**
|
|
7023
6841
|
* Used to auto-detect the type of resource.
|
|
7024
6842
|
*
|
|
7025
|
-
* @
|
|
7026
|
-
* @param {string|HTMLImageElement} source - The source object
|
|
6843
|
+
* @param {*} source - The source object
|
|
7027
6844
|
* @return {boolean} `true` if source is string or HTMLImageElement
|
|
7028
6845
|
*/
|
|
7029
6846
|
ImageResource.test = function (source) {
|
|
@@ -7034,14 +6851,13 @@ var ImageResource = /** @class */ (function (_super) {
|
|
|
7034
6851
|
|
|
7035
6852
|
/**
|
|
7036
6853
|
* Resource type for SVG elements and graphics.
|
|
7037
|
-
*
|
|
7038
|
-
* @extends PIXI.BaseImageResource
|
|
6854
|
+
*
|
|
7039
6855
|
* @memberof PIXI
|
|
7040
6856
|
*/
|
|
7041
6857
|
var SVGResource = /** @class */ (function (_super) {
|
|
7042
6858
|
__extends(SVGResource, _super);
|
|
7043
6859
|
/**
|
|
7044
|
-
* @param
|
|
6860
|
+
* @param sourceBase64 - Base64 encoded SVG element or URL for SVG file.
|
|
7045
6861
|
* @param {object} [options] - Options to use
|
|
7046
6862
|
* @param {number} [options.scale=1] - Scale to apply to SVG. Overridden by...
|
|
7047
6863
|
* @param {number} [options.width] - Rasterize SVG this wide. Aspect ratio preserved if height not specified.
|
|
@@ -7054,48 +6870,12 @@ var SVGResource = /** @class */ (function (_super) {
|
|
|
7054
6870
|
_this = _super.call(this, document.createElement('canvas')) || this;
|
|
7055
6871
|
_this._width = 0;
|
|
7056
6872
|
_this._height = 0;
|
|
7057
|
-
/**
|
|
7058
|
-
* Base64 encoded SVG element or URL for SVG file
|
|
7059
|
-
* @readonly
|
|
7060
|
-
* @member {string}
|
|
7061
|
-
*/
|
|
7062
6873
|
_this.svg = sourceBase64;
|
|
7063
|
-
/**
|
|
7064
|
-
* The source scale to apply when rasterizing on load
|
|
7065
|
-
* @readonly
|
|
7066
|
-
* @member {number}
|
|
7067
|
-
*/
|
|
7068
6874
|
_this.scale = options.scale || 1;
|
|
7069
|
-
/**
|
|
7070
|
-
* A width override for rasterization on load
|
|
7071
|
-
* @readonly
|
|
7072
|
-
* @member {number}
|
|
7073
|
-
*/
|
|
7074
6875
|
_this._overrideWidth = options.width;
|
|
7075
|
-
/**
|
|
7076
|
-
* A height override for rasterization on load
|
|
7077
|
-
* @readonly
|
|
7078
|
-
* @member {number}
|
|
7079
|
-
*/
|
|
7080
6876
|
_this._overrideHeight = options.height;
|
|
7081
|
-
/**
|
|
7082
|
-
* Call when completely loaded
|
|
7083
|
-
* @private
|
|
7084
|
-
* @member {function}
|
|
7085
|
-
*/
|
|
7086
6877
|
_this._resolve = null;
|
|
7087
|
-
/**
|
|
7088
|
-
* Cross origin value to use
|
|
7089
|
-
* @private
|
|
7090
|
-
* @member {boolean|string}
|
|
7091
|
-
*/
|
|
7092
6878
|
_this._crossorigin = options.crossorigin;
|
|
7093
|
-
/**
|
|
7094
|
-
* Promise when loading
|
|
7095
|
-
* @member {Promise<void>}
|
|
7096
|
-
* @private
|
|
7097
|
-
* @default null
|
|
7098
|
-
*/
|
|
7099
6879
|
_this._load = null;
|
|
7100
6880
|
if (options.autoLoad !== false) {
|
|
7101
6881
|
_this.load();
|
|
@@ -7124,11 +6904,7 @@ var SVGResource = /** @class */ (function (_super) {
|
|
|
7124
6904
|
});
|
|
7125
6905
|
return this._load;
|
|
7126
6906
|
};
|
|
7127
|
-
/**
|
|
7128
|
-
* Loads an SVG image from `imageUrl` or `data URL`.
|
|
7129
|
-
*
|
|
7130
|
-
* @private
|
|
7131
|
-
*/
|
|
6907
|
+
/** Loads an SVG image from `imageUrl` or `data URL`. */
|
|
7132
6908
|
SVGResource.prototype._loadSvg = function () {
|
|
7133
6909
|
var _this = this;
|
|
7134
6910
|
var tempImage = new Image();
|
|
@@ -7173,11 +6949,10 @@ var SVGResource = /** @class */ (function (_super) {
|
|
|
7173
6949
|
};
|
|
7174
6950
|
};
|
|
7175
6951
|
/**
|
|
7176
|
-
* Get size from an svg string using
|
|
6952
|
+
* Get size from an svg string using a regular expression.
|
|
7177
6953
|
*
|
|
7178
|
-
* @
|
|
7179
|
-
* @
|
|
7180
|
-
* @return {PIXI.ISize} image extension
|
|
6954
|
+
* @param svgString - a serialized svg element
|
|
6955
|
+
* @return - image extension
|
|
7181
6956
|
*/
|
|
7182
6957
|
SVGResource.getSize = function (svgString) {
|
|
7183
6958
|
var sizeMatch = SVGResource.SVG_SIZE.exec(svgString);
|
|
@@ -7188,10 +6963,7 @@ var SVGResource = /** @class */ (function (_super) {
|
|
|
7188
6963
|
}
|
|
7189
6964
|
return size;
|
|
7190
6965
|
};
|
|
7191
|
-
/**
|
|
7192
|
-
* Destroys this texture
|
|
7193
|
-
* @override
|
|
7194
|
-
*/
|
|
6966
|
+
/** Destroys this texture. */
|
|
7195
6967
|
SVGResource.prototype.dispose = function () {
|
|
7196
6968
|
_super.prototype.dispose.call(this);
|
|
7197
6969
|
this._resolve = null;
|
|
@@ -7200,9 +6972,9 @@ var SVGResource = /** @class */ (function (_super) {
|
|
|
7200
6972
|
/**
|
|
7201
6973
|
* Used to auto-detect the type of resource.
|
|
7202
6974
|
*
|
|
7203
|
-
* @static
|
|
7204
6975
|
* @param {*} source - The source object
|
|
7205
6976
|
* @param {string} extension - The extension of source, if set
|
|
6977
|
+
* @return {boolean} - If the source is a SVG source or data file
|
|
7206
6978
|
*/
|
|
7207
6979
|
SVGResource.test = function (source, extension) {
|
|
7208
6980
|
// url file extension is SVG
|
|
@@ -7213,27 +6985,25 @@ var SVGResource = /** @class */ (function (_super) {
|
|
|
7213
6985
|
|| (typeof source === 'string' && SVGResource.SVG_XML.test(source));
|
|
7214
6986
|
};
|
|
7215
6987
|
/**
|
|
7216
|
-
*
|
|
6988
|
+
* Regular expression for SVG XML document.
|
|
7217
6989
|
*
|
|
7218
6990
|
* @example <?xml version="1.0" encoding="utf-8" ?><!-- image/svg --><svg
|
|
6991
|
+
* @readonly
|
|
7219
6992
|
*/
|
|
7220
6993
|
SVGResource.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m;
|
|
7221
6994
|
/**
|
|
7222
|
-
*
|
|
6995
|
+
* Regular expression for SVG size.
|
|
7223
6996
|
*
|
|
7224
|
-
* @static
|
|
7225
|
-
* @constant {RegExp|string} SVG_SIZE
|
|
7226
|
-
* @memberof PIXI.SVGResource
|
|
7227
6997
|
* @example <svg width="100" height="100"></svg>
|
|
6998
|
+
* @readonly
|
|
7228
6999
|
*/
|
|
7229
7000
|
SVGResource.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i; // eslint-disable-line max-len
|
|
7230
7001
|
return SVGResource;
|
|
7231
7002
|
}(BaseImageResource));
|
|
7232
7003
|
|
|
7233
7004
|
/**
|
|
7234
|
-
* Resource type for HTMLVideoElement.
|
|
7235
|
-
*
|
|
7236
|
-
* @extends PIXI.BaseImageResource
|
|
7005
|
+
* Resource type for {@code HTMLVideoElement}.
|
|
7006
|
+
*
|
|
7237
7007
|
* @memberof PIXI
|
|
7238
7008
|
*/
|
|
7239
7009
|
var VideoResource = /** @class */ (function (_super) {
|
|
@@ -7278,44 +7048,12 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7278
7048
|
}
|
|
7279
7049
|
_this = _super.call(this, source) || this;
|
|
7280
7050
|
_this.noSubImage = true;
|
|
7281
|
-
/**
|
|
7282
|
-
* `true` to use PIXI.Ticker.shared to auto update the base texture.
|
|
7283
|
-
*
|
|
7284
|
-
* @type {boolean}
|
|
7285
|
-
* @default true
|
|
7286
|
-
* @private
|
|
7287
|
-
*/
|
|
7288
7051
|
_this._autoUpdate = true;
|
|
7289
|
-
/**
|
|
7290
|
-
* `true` if the instance is currently connected to PIXI.Ticker.shared to auto update the base texture.
|
|
7291
|
-
*
|
|
7292
|
-
* @type {boolean}
|
|
7293
|
-
* @default false
|
|
7294
|
-
* @private
|
|
7295
|
-
*/
|
|
7296
7052
|
_this._isConnectedToTicker = false;
|
|
7297
7053
|
_this._updateFPS = options.updateFPS || 0;
|
|
7298
7054
|
_this._msToNextUpdate = 0;
|
|
7299
|
-
/**
|
|
7300
|
-
* When set to true will automatically play videos used by this texture once
|
|
7301
|
-
* they are loaded. If false, it will not modify the playing state.
|
|
7302
|
-
*
|
|
7303
|
-
* @member {boolean}
|
|
7304
|
-
* @default true
|
|
7305
|
-
*/
|
|
7306
7055
|
_this.autoPlay = options.autoPlay !== false;
|
|
7307
|
-
/**
|
|
7308
|
-
* Promise when loading
|
|
7309
|
-
* @member {Promise<void>}
|
|
7310
|
-
* @private
|
|
7311
|
-
* @default null
|
|
7312
|
-
*/
|
|
7313
7056
|
_this._load = null;
|
|
7314
|
-
/**
|
|
7315
|
-
* Callback when completed with load.
|
|
7316
|
-
* @member {function}
|
|
7317
|
-
* @private
|
|
7318
|
-
*/
|
|
7319
7057
|
_this._resolve = null;
|
|
7320
7058
|
// Bind for listeners
|
|
7321
7059
|
_this._onCanPlay = _this._onCanPlay.bind(_this);
|
|
@@ -7326,9 +7064,9 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7326
7064
|
return _this;
|
|
7327
7065
|
}
|
|
7328
7066
|
/**
|
|
7329
|
-
* Trigger updating of the texture
|
|
7067
|
+
* Trigger updating of the texture.
|
|
7330
7068
|
*
|
|
7331
|
-
* @param
|
|
7069
|
+
* @param deltaTime - time delta since last tick
|
|
7332
7070
|
*/
|
|
7333
7071
|
VideoResource.prototype.update = function (_deltaTime) {
|
|
7334
7072
|
if (!this.destroyed) {
|
|
@@ -7344,7 +7082,6 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7344
7082
|
/**
|
|
7345
7083
|
* Start preloading the video resource.
|
|
7346
7084
|
*
|
|
7347
|
-
* @protected
|
|
7348
7085
|
* @return {Promise<void>} Handle the validate event
|
|
7349
7086
|
*/
|
|
7350
7087
|
VideoResource.prototype.load = function () {
|
|
@@ -7378,11 +7115,7 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7378
7115
|
});
|
|
7379
7116
|
return this._load;
|
|
7380
7117
|
};
|
|
7381
|
-
/**
|
|
7382
|
-
* Handle video error events.
|
|
7383
|
-
*
|
|
7384
|
-
* @private
|
|
7385
|
-
*/
|
|
7118
|
+
/** Handle video error events. */
|
|
7386
7119
|
VideoResource.prototype._onError = function (event) {
|
|
7387
7120
|
this.source.removeEventListener('error', this._onError, true);
|
|
7388
7121
|
this.onError.emit(event);
|
|
@@ -7390,8 +7123,7 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7390
7123
|
/**
|
|
7391
7124
|
* Returns true if the underlying source is playing.
|
|
7392
7125
|
*
|
|
7393
|
-
* @
|
|
7394
|
-
* @return {boolean} True if playing.
|
|
7126
|
+
* @return - True if playing.
|
|
7395
7127
|
*/
|
|
7396
7128
|
VideoResource.prototype._isSourcePlaying = function () {
|
|
7397
7129
|
var source = this.source;
|
|
@@ -7400,18 +7132,13 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7400
7132
|
/**
|
|
7401
7133
|
* Returns true if the underlying source is ready for playing.
|
|
7402
7134
|
*
|
|
7403
|
-
* @
|
|
7404
|
-
* @return {boolean} True if ready.
|
|
7135
|
+
* @return - True if ready.
|
|
7405
7136
|
*/
|
|
7406
7137
|
VideoResource.prototype._isSourceReady = function () {
|
|
7407
7138
|
var source = this.source;
|
|
7408
7139
|
return source.readyState === 3 || source.readyState === 4;
|
|
7409
7140
|
};
|
|
7410
|
-
/**
|
|
7411
|
-
* Runs the update loop when the video is ready to play
|
|
7412
|
-
*
|
|
7413
|
-
* @private
|
|
7414
|
-
*/
|
|
7141
|
+
/** Runs the update loop when the video is ready to play. */
|
|
7415
7142
|
VideoResource.prototype._onPlayStart = function () {
|
|
7416
7143
|
// Just in case the video has not received its can play even yet..
|
|
7417
7144
|
if (!this.valid) {
|
|
@@ -7422,22 +7149,14 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7422
7149
|
this._isConnectedToTicker = true;
|
|
7423
7150
|
}
|
|
7424
7151
|
};
|
|
7425
|
-
/**
|
|
7426
|
-
* Fired when a pause event is triggered, stops the update loop
|
|
7427
|
-
*
|
|
7428
|
-
* @private
|
|
7429
|
-
*/
|
|
7152
|
+
/** Fired when a pause event is triggered, stops the update loop. */
|
|
7430
7153
|
VideoResource.prototype._onPlayStop = function () {
|
|
7431
7154
|
if (this._isConnectedToTicker) {
|
|
7432
7155
|
_pixi_ticker__WEBPACK_IMPORTED_MODULE_4__.Ticker.shared.remove(this.update, this);
|
|
7433
7156
|
this._isConnectedToTicker = false;
|
|
7434
7157
|
}
|
|
7435
7158
|
};
|
|
7436
|
-
/**
|
|
7437
|
-
* Fired when the video is loaded and ready to play
|
|
7438
|
-
*
|
|
7439
|
-
* @private
|
|
7440
|
-
*/
|
|
7159
|
+
/** Fired when the video is loaded and ready to play. */
|
|
7441
7160
|
VideoResource.prototype._onCanPlay = function () {
|
|
7442
7161
|
var source = this.source;
|
|
7443
7162
|
source.removeEventListener('canplay', this._onCanPlay);
|
|
@@ -7456,10 +7175,7 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7456
7175
|
source.play();
|
|
7457
7176
|
}
|
|
7458
7177
|
};
|
|
7459
|
-
/**
|
|
7460
|
-
* Destroys this texture
|
|
7461
|
-
* @override
|
|
7462
|
-
*/
|
|
7178
|
+
/** Destroys this texture. */
|
|
7463
7179
|
VideoResource.prototype.dispose = function () {
|
|
7464
7180
|
if (this._isConnectedToTicker) {
|
|
7465
7181
|
_pixi_ticker__WEBPACK_IMPORTED_MODULE_4__.Ticker.shared.remove(this.update, this);
|
|
@@ -7475,11 +7191,7 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7475
7191
|
_super.prototype.dispose.call(this);
|
|
7476
7192
|
};
|
|
7477
7193
|
Object.defineProperty(VideoResource.prototype, "autoUpdate", {
|
|
7478
|
-
/**
|
|
7479
|
-
* Should the base texture automatically update itself, set to true by default
|
|
7480
|
-
*
|
|
7481
|
-
* @member {boolean}
|
|
7482
|
-
*/
|
|
7194
|
+
/** Should the base texture automatically update itself, set to true by default. */
|
|
7483
7195
|
get: function () {
|
|
7484
7196
|
return this._autoUpdate;
|
|
7485
7197
|
},
|
|
@@ -7503,8 +7215,6 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7503
7215
|
/**
|
|
7504
7216
|
* How many times a second to update the texture from the video. Leave at 0 to update at every render.
|
|
7505
7217
|
* A lower fps can help performance, as updating the texture at 60fps on a 30ps video may not be efficient.
|
|
7506
|
-
*
|
|
7507
|
-
* @member {number}
|
|
7508
7218
|
*/
|
|
7509
7219
|
get: function () {
|
|
7510
7220
|
return this._updateFPS;
|
|
@@ -7520,7 +7230,6 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7520
7230
|
/**
|
|
7521
7231
|
* Used to auto-detect the type of resource.
|
|
7522
7232
|
*
|
|
7523
|
-
* @static
|
|
7524
7233
|
* @param {*} source - The source object
|
|
7525
7234
|
* @param {string} extension - The extension of source, if set
|
|
7526
7235
|
* @return {boolean} `true` if video source
|
|
@@ -7531,17 +7240,13 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7531
7240
|
};
|
|
7532
7241
|
/**
|
|
7533
7242
|
* List of common video file extensions supported by VideoResource.
|
|
7534
|
-
*
|
|
7535
|
-
* @member {Array<string>}
|
|
7536
|
-
* @static
|
|
7243
|
+
*
|
|
7537
7244
|
* @readonly
|
|
7538
7245
|
*/
|
|
7539
7246
|
VideoResource.TYPES = ['mp4', 'm4v', 'webm', 'ogg', 'ogv', 'h264', 'avi', 'mov'];
|
|
7540
7247
|
/**
|
|
7541
7248
|
* Map of video MIME types that can't be directly derived from file extensions.
|
|
7542
|
-
*
|
|
7543
|
-
* @member {object}
|
|
7544
|
-
* @static
|
|
7249
|
+
*
|
|
7545
7250
|
* @readonly
|
|
7546
7251
|
*/
|
|
7547
7252
|
VideoResource.MIME_TYPES = {
|
|
@@ -7554,14 +7259,13 @@ var VideoResource = /** @class */ (function (_super) {
|
|
|
7554
7259
|
|
|
7555
7260
|
/**
|
|
7556
7261
|
* Resource type for ImageBitmap.
|
|
7557
|
-
*
|
|
7558
|
-
* @extends PIXI.BaseImageResource
|
|
7262
|
+
*
|
|
7559
7263
|
* @memberof PIXI
|
|
7560
7264
|
*/
|
|
7561
7265
|
var ImageBitmapResource = /** @class */ (function (_super) {
|
|
7562
7266
|
__extends(ImageBitmapResource, _super);
|
|
7563
7267
|
/**
|
|
7564
|
-
* @param
|
|
7268
|
+
* @param source - Image element to use
|
|
7565
7269
|
*/
|
|
7566
7270
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
7567
7271
|
function ImageBitmapResource(source) {
|
|
@@ -7570,8 +7274,7 @@ var ImageBitmapResource = /** @class */ (function (_super) {
|
|
|
7570
7274
|
/**
|
|
7571
7275
|
* Used to auto-detect the type of resource.
|
|
7572
7276
|
*
|
|
7573
|
-
* @
|
|
7574
|
-
* @param {ImageBitmap} source - The source object
|
|
7277
|
+
* @param {*} source - The source object
|
|
7575
7278
|
* @return {boolean} `true` if source is an ImageBitmap
|
|
7576
7279
|
*/
|
|
7577
7280
|
ImageBitmapResource.test = function (source) {
|
|
@@ -7601,8 +7304,7 @@ var _resources = {
|
|
|
7601
7304
|
|
|
7602
7305
|
/**
|
|
7603
7306
|
* Resource type for DepthTexture.
|
|
7604
|
-
*
|
|
7605
|
-
* @extends PIXI.BufferResource
|
|
7307
|
+
*
|
|
7606
7308
|
* @memberof PIXI
|
|
7607
7309
|
*/
|
|
7608
7310
|
var DepthResource = /** @class */ (function (_super) {
|
|
@@ -7612,10 +7314,11 @@ var DepthResource = /** @class */ (function (_super) {
|
|
|
7612
7314
|
}
|
|
7613
7315
|
/**
|
|
7614
7316
|
* Upload the texture to the GPU.
|
|
7615
|
-
*
|
|
7616
|
-
* @param
|
|
7617
|
-
* @param
|
|
7618
|
-
* @
|
|
7317
|
+
*
|
|
7318
|
+
* @param renderer - Upload to the renderer
|
|
7319
|
+
* @param baseTexture - Reference to parent texture
|
|
7320
|
+
* @param glTexture - glTexture
|
|
7321
|
+
* @return - true is success
|
|
7619
7322
|
*/
|
|
7620
7323
|
DepthResource.prototype.upload = function (renderer, baseTexture, glTexture) {
|
|
7621
7324
|
var gl = renderer.gl;
|
|
@@ -8939,17 +8642,17 @@ var RenderTexturePool = /** @class */ (function () {
|
|
|
8939
8642
|
* This does not contain the actual data, but instead has a buffer id that maps to a {@link PIXI.Buffer}
|
|
8940
8643
|
* This can include anything from positions, uvs, normals, colors etc.
|
|
8941
8644
|
*
|
|
8942
|
-
* @class
|
|
8943
8645
|
* @memberof PIXI
|
|
8944
8646
|
*/
|
|
8945
8647
|
var Attribute = /** @class */ (function () {
|
|
8946
8648
|
/**
|
|
8947
|
-
* @param
|
|
8948
|
-
* @param
|
|
8949
|
-
* @param
|
|
8649
|
+
* @param buffer - the id of the buffer that this attribute will look for
|
|
8650
|
+
* @param size - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2.
|
|
8651
|
+
* @param normalized - should the data be normalized.
|
|
8950
8652
|
* @param {PIXI.TYPES} [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {@link PIXI.TYPES} to see the ones available
|
|
8951
|
-
* @param
|
|
8952
|
-
* @param
|
|
8653
|
+
* @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
|
|
8654
|
+
* @param [start=0] - How far into the array to start reading values (used for interleaving data)
|
|
8655
|
+
* @param [instance=false] - Whether the geometry is instanced.
|
|
8953
8656
|
*/
|
|
8954
8657
|
function Attribute(buffer, size, normalized, type, stride, start, instance) {
|
|
8955
8658
|
if (size === void 0) { size = 0; }
|
|
@@ -8963,23 +8666,19 @@ var Attribute = /** @class */ (function () {
|
|
|
8963
8666
|
this.start = start;
|
|
8964
8667
|
this.instance = instance;
|
|
8965
8668
|
}
|
|
8966
|
-
/**
|
|
8967
|
-
* Destroys the Attribute.
|
|
8968
|
-
*/
|
|
8669
|
+
/** Destroys the Attribute. */
|
|
8969
8670
|
Attribute.prototype.destroy = function () {
|
|
8970
8671
|
this.buffer = null;
|
|
8971
8672
|
};
|
|
8972
8673
|
/**
|
|
8973
8674
|
* Helper function that creates an Attribute based on the information provided
|
|
8974
8675
|
*
|
|
8975
|
-
* @
|
|
8976
|
-
* @param
|
|
8977
|
-
* @param
|
|
8978
|
-
* @param
|
|
8979
|
-
* @param
|
|
8980
|
-
* @
|
|
8981
|
-
*
|
|
8982
|
-
* @returns {PIXI.Attribute} A new {@link PIXI.Attribute} based on the information provided
|
|
8676
|
+
* @param buffer - the id of the buffer that this attribute will look for
|
|
8677
|
+
* @param [size=0] - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
|
|
8678
|
+
* @param [normalized=false] - should the data be normalized.
|
|
8679
|
+
* @param [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {@link PIXI.TYPES} to see the ones available
|
|
8680
|
+
* @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
|
|
8681
|
+
* @returns - A new {@link PIXI.Attribute} based on the information provided
|
|
8983
8682
|
*/
|
|
8984
8683
|
Attribute.from = function (buffer, size, normalized, type, stride) {
|
|
8985
8684
|
return new Attribute(buffer, size, normalized, type, stride);
|
|
@@ -8991,30 +8690,18 @@ var UID = 0;
|
|
|
8991
8690
|
/**
|
|
8992
8691
|
* A wrapper for data so that it can be used and uploaded by WebGL
|
|
8993
8692
|
*
|
|
8994
|
-
* @class
|
|
8995
8693
|
* @memberof PIXI
|
|
8996
8694
|
*/
|
|
8997
8695
|
var Buffer = /** @class */ (function () {
|
|
8998
8696
|
/**
|
|
8999
8697
|
* @param {ArrayBuffer| SharedArrayBuffer|ArrayBufferView} data - the data to store in the buffer.
|
|
9000
|
-
* @param
|
|
9001
|
-
* @param
|
|
8698
|
+
* @param _static - `true` for static buffer
|
|
8699
|
+
* @param index - `true` for index buffer
|
|
9002
8700
|
*/
|
|
9003
8701
|
function Buffer(data, _static, index) {
|
|
9004
8702
|
if (_static === void 0) { _static = true; }
|
|
9005
8703
|
if (index === void 0) { index = false; }
|
|
9006
|
-
/**
|
|
9007
|
-
* The data in the buffer, as a typed array
|
|
9008
|
-
*
|
|
9009
|
-
* @member {ArrayBuffer| SharedArrayBuffer | ArrayBufferView}
|
|
9010
|
-
*/
|
|
9011
8704
|
this.data = (data || new Float32Array(1));
|
|
9012
|
-
/**
|
|
9013
|
-
* A map of renderer IDs to webgl buffer
|
|
9014
|
-
*
|
|
9015
|
-
* @private
|
|
9016
|
-
* @member {object<number, GLBuffer>}
|
|
9017
|
-
*/
|
|
9018
8705
|
this._glBuffers = {};
|
|
9019
8706
|
this._updateID = 0;
|
|
9020
8707
|
this.index = index;
|
|
@@ -9024,7 +8711,7 @@ var Buffer = /** @class */ (function () {
|
|
|
9024
8711
|
}
|
|
9025
8712
|
// TODO could explore flagging only a partial upload?
|
|
9026
8713
|
/**
|
|
9027
|
-
*
|
|
8714
|
+
* Flags this buffer as requiring an upload to the GPU.
|
|
9028
8715
|
* @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|number[]} [data] - the data to update in the buffer.
|
|
9029
8716
|
*/
|
|
9030
8717
|
Buffer.prototype.update = function (data) {
|
|
@@ -9034,15 +8721,11 @@ var Buffer = /** @class */ (function () {
|
|
|
9034
8721
|
this.data = data || this.data;
|
|
9035
8722
|
this._updateID++;
|
|
9036
8723
|
};
|
|
9037
|
-
/**
|
|
9038
|
-
* disposes WebGL resources that are connected to this geometry
|
|
9039
|
-
*/
|
|
8724
|
+
/** Disposes WebGL resources that are connected to this geometry. */
|
|
9040
8725
|
Buffer.prototype.dispose = function () {
|
|
9041
8726
|
this.disposeRunner.emit(this, false);
|
|
9042
8727
|
};
|
|
9043
|
-
/**
|
|
9044
|
-
* Destroys the buffer
|
|
9045
|
-
*/
|
|
8728
|
+
/** Destroys the buffer. */
|
|
9046
8729
|
Buffer.prototype.destroy = function () {
|
|
9047
8730
|
this.dispose();
|
|
9048
8731
|
this.data = null;
|
|
@@ -9068,9 +8751,8 @@ var Buffer = /** @class */ (function () {
|
|
|
9068
8751
|
/**
|
|
9069
8752
|
* Helper function that creates a buffer based on an array or TypedArray
|
|
9070
8753
|
*
|
|
9071
|
-
* @static
|
|
9072
8754
|
* @param {ArrayBufferView | number[]} data - the TypedArray that the buffer will store. If this is a regular Array it will be converted to a Float32Array.
|
|
9073
|
-
* @return
|
|
8755
|
+
* @return - A new Buffer based on the data provided.
|
|
9074
8756
|
*/
|
|
9075
8757
|
Buffer.from = function (data) {
|
|
9076
8758
|
if (data instanceof Array) {
|
|
@@ -9142,15 +8824,14 @@ var map$1 = {
|
|
|
9142
8824
|
* geometry.addAttribute('positions', [0, 0, 100, 0, 100, 100, 0, 100], 2);
|
|
9143
8825
|
* geometry.addAttribute('uvs', [0,0,1,0,1,1,0,1],2)
|
|
9144
8826
|
* geometry.addIndex([0,1,2,1,3,2])
|
|
9145
|
-
*
|
|
9146
8827
|
* ```
|
|
9147
|
-
*
|
|
8828
|
+
*
|
|
9148
8829
|
* @memberof PIXI
|
|
9149
8830
|
*/
|
|
9150
8831
|
var Geometry = /** @class */ (function () {
|
|
9151
8832
|
/**
|
|
9152
|
-
* @param
|
|
9153
|
-
* @param
|
|
8833
|
+
* @param buffers - An array of buffers. optional.
|
|
8834
|
+
* @param attributes - Of the geometry, optional structure of the attributes layout
|
|
9154
8835
|
*/
|
|
9155
8836
|
function Geometry(buffers, attributes) {
|
|
9156
8837
|
if (buffers === void 0) { buffers = []; }
|
|
@@ -9158,44 +8839,28 @@ var Geometry = /** @class */ (function () {
|
|
|
9158
8839
|
this.buffers = buffers;
|
|
9159
8840
|
this.indexBuffer = null;
|
|
9160
8841
|
this.attributes = attributes;
|
|
9161
|
-
/**
|
|
9162
|
-
* A map of renderer IDs to webgl VAOs
|
|
9163
|
-
*
|
|
9164
|
-
* @protected
|
|
9165
|
-
* @type {object}
|
|
9166
|
-
*/
|
|
9167
8842
|
this.glVertexArrayObjects = {};
|
|
9168
8843
|
this.id = UID$1++;
|
|
9169
8844
|
this.instanced = false;
|
|
9170
|
-
/**
|
|
9171
|
-
* Number of instances in this geometry, pass it to `GeometrySystem.draw()`
|
|
9172
|
-
* @member {number}
|
|
9173
|
-
* @default 1
|
|
9174
|
-
*/
|
|
9175
8845
|
this.instanceCount = 1;
|
|
9176
8846
|
this.disposeRunner = new _pixi_runner__WEBPACK_IMPORTED_MODULE_3__.Runner('disposeGeometry');
|
|
9177
|
-
/**
|
|
9178
|
-
* Count of existing (not destroyed) meshes that reference this geometry
|
|
9179
|
-
* @member {number}
|
|
9180
|
-
*/
|
|
9181
8847
|
this.refCount = 0;
|
|
9182
8848
|
}
|
|
9183
8849
|
/**
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
*/
|
|
8850
|
+
*
|
|
8851
|
+
* Adds an attribute to the geometry
|
|
8852
|
+
* Note: `stride` and `start` should be `undefined` if you dont know them, not 0!
|
|
8853
|
+
*
|
|
8854
|
+
* @param id - the name of the attribute (matching up to a shader)
|
|
8855
|
+
* @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.
|
|
8856
|
+
* @param size - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
|
|
8857
|
+
* @param normalized - should the data be normalized.
|
|
8858
|
+
* @param [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {PIXI.TYPES} to see the ones available
|
|
8859
|
+
* @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
|
|
8860
|
+
* @param [start=0] - How far into the array to start reading values (used for interleaving data)
|
|
8861
|
+
* @param instance - Instancing flag
|
|
8862
|
+
* @return - Returns self, useful for chaining.
|
|
8863
|
+
*/
|
|
9199
8864
|
Geometry.prototype.addAttribute = function (id, buffer, size, normalized, type, stride, start, instance) {
|
|
9200
8865
|
if (size === void 0) { size = 0; }
|
|
9201
8866
|
if (normalized === void 0) { normalized = false; }
|
|
@@ -9229,19 +8894,19 @@ var Geometry = /** @class */ (function () {
|
|
|
9229
8894
|
return this;
|
|
9230
8895
|
};
|
|
9231
8896
|
/**
|
|
9232
|
-
*
|
|
8897
|
+
* Returns the requested attribute.
|
|
9233
8898
|
*
|
|
9234
|
-
* @param
|
|
9235
|
-
* @return
|
|
8899
|
+
* @param id - The name of the attribute required
|
|
8900
|
+
* @return - The attribute requested.
|
|
9236
8901
|
*/
|
|
9237
8902
|
Geometry.prototype.getAttribute = function (id) {
|
|
9238
8903
|
return this.attributes[id];
|
|
9239
8904
|
};
|
|
9240
8905
|
/**
|
|
9241
|
-
*
|
|
8906
|
+
* Returns the requested buffer.
|
|
9242
8907
|
*
|
|
9243
|
-
* @param
|
|
9244
|
-
* @return
|
|
8908
|
+
* @param id - The name of the buffer required.
|
|
8909
|
+
* @return - The buffer requested.
|
|
9245
8910
|
*/
|
|
9246
8911
|
Geometry.prototype.getBuffer = function (id) {
|
|
9247
8912
|
return this.buffers[this.getAttribute(id).buffer];
|
|
@@ -9251,8 +8916,8 @@ var Geometry = /** @class */ (function () {
|
|
|
9251
8916
|
* Adds an index buffer to the geometry
|
|
9252
8917
|
* 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.
|
|
9253
8918
|
*
|
|
9254
|
-
* @param {PIXI.Buffer|number[]} [buffer] -
|
|
9255
|
-
* @return
|
|
8919
|
+
* @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.
|
|
8920
|
+
* @return - Returns self, useful for chaining.
|
|
9256
8921
|
*/
|
|
9257
8922
|
Geometry.prototype.addIndex = function (buffer) {
|
|
9258
8923
|
if (!(buffer instanceof Buffer)) {
|
|
@@ -9270,18 +8935,18 @@ var Geometry = /** @class */ (function () {
|
|
|
9270
8935
|
return this;
|
|
9271
8936
|
};
|
|
9272
8937
|
/**
|
|
9273
|
-
*
|
|
8938
|
+
* Returns the index buffer
|
|
9274
8939
|
*
|
|
9275
|
-
* @return
|
|
8940
|
+
* @return - The index buffer.
|
|
9276
8941
|
*/
|
|
9277
8942
|
Geometry.prototype.getIndex = function () {
|
|
9278
8943
|
return this.indexBuffer;
|
|
9279
8944
|
};
|
|
9280
8945
|
/**
|
|
9281
|
-
*
|
|
8946
|
+
* This function modifies the structure so that all current attributes become interleaved into a single buffer
|
|
9282
8947
|
* This can be useful if your model remains static as it offers a little performance boost
|
|
9283
8948
|
*
|
|
9284
|
-
* @return
|
|
8949
|
+
* @return - Returns self, useful for chaining.
|
|
9285
8950
|
*/
|
|
9286
8951
|
Geometry.prototype.interleave = function () {
|
|
9287
8952
|
// a simple check to see if buffers are already interleaved..
|
|
@@ -9311,6 +8976,7 @@ var Geometry = /** @class */ (function () {
|
|
|
9311
8976
|
}
|
|
9312
8977
|
return this;
|
|
9313
8978
|
};
|
|
8979
|
+
/** Get the size of the geometries, in vertices. */
|
|
9314
8980
|
Geometry.prototype.getSize = function () {
|
|
9315
8981
|
for (var i in this.attributes) {
|
|
9316
8982
|
var attribute = this.attributes[i];
|
|
@@ -9319,15 +8985,11 @@ var Geometry = /** @class */ (function () {
|
|
|
9319
8985
|
}
|
|
9320
8986
|
return 0;
|
|
9321
8987
|
};
|
|
9322
|
-
/**
|
|
9323
|
-
* disposes WebGL resources that are connected to this geometry
|
|
9324
|
-
*/
|
|
8988
|
+
/** Disposes WebGL resources that are connected to this geometry. */
|
|
9325
8989
|
Geometry.prototype.dispose = function () {
|
|
9326
8990
|
this.disposeRunner.emit(this, false);
|
|
9327
8991
|
};
|
|
9328
|
-
/**
|
|
9329
|
-
* Destroys the geometry.
|
|
9330
|
-
*/
|
|
8992
|
+
/** Destroys the geometry. */
|
|
9331
8993
|
Geometry.prototype.destroy = function () {
|
|
9332
8994
|
this.dispose();
|
|
9333
8995
|
this.buffers = null;
|
|
@@ -9335,9 +8997,9 @@ var Geometry = /** @class */ (function () {
|
|
|
9335
8997
|
this.attributes = null;
|
|
9336
8998
|
};
|
|
9337
8999
|
/**
|
|
9338
|
-
*
|
|
9000
|
+
* Returns a clone of the geometry.
|
|
9339
9001
|
*
|
|
9340
|
-
* @returns
|
|
9002
|
+
* @returns - A new clone of this geometry.
|
|
9341
9003
|
*/
|
|
9342
9004
|
Geometry.prototype.clone = function () {
|
|
9343
9005
|
var geometry = new Geometry();
|
|
@@ -9355,11 +9017,12 @@ var Geometry = /** @class */ (function () {
|
|
|
9355
9017
|
return geometry;
|
|
9356
9018
|
};
|
|
9357
9019
|
/**
|
|
9358
|
-
*
|
|
9359
|
-
* geometry attribute styles must match for this operation to work
|
|
9020
|
+
* Merges an array of geometries into a new single one.
|
|
9360
9021
|
*
|
|
9361
|
-
*
|
|
9362
|
-
*
|
|
9022
|
+
* Geometry attribute styles must match for this operation to work.
|
|
9023
|
+
*
|
|
9024
|
+
* @param geometries - array of geometries to merge
|
|
9025
|
+
* @return - Shiny new geometry!
|
|
9363
9026
|
*/
|
|
9364
9027
|
Geometry.merge = function (geometries) {
|
|
9365
9028
|
// todo add a geometry check!
|
|
@@ -9667,81 +9330,25 @@ var UniformGroup = /** @class */ (function () {
|
|
|
9667
9330
|
/**
|
|
9668
9331
|
* System plugin to the renderer to manage filter states.
|
|
9669
9332
|
*
|
|
9670
|
-
* @
|
|
9671
|
-
* @private
|
|
9333
|
+
* @ignore
|
|
9672
9334
|
*/
|
|
9673
9335
|
var FilterState = /** @class */ (function () {
|
|
9674
9336
|
function FilterState() {
|
|
9675
9337
|
this.renderTexture = null;
|
|
9676
|
-
/**
|
|
9677
|
-
* Target of the filters
|
|
9678
|
-
* We store for case when custom filter wants to know the element it was applied on
|
|
9679
|
-
* @member {PIXI.DisplayObject}
|
|
9680
|
-
* @private
|
|
9681
|
-
*/
|
|
9682
9338
|
this.target = null;
|
|
9683
|
-
/**
|
|
9684
|
-
* Compatibility with PixiJS v4 filters
|
|
9685
|
-
* @member {boolean}
|
|
9686
|
-
* @default false
|
|
9687
|
-
* @private
|
|
9688
|
-
*/
|
|
9689
9339
|
this.legacy = false;
|
|
9690
|
-
/**
|
|
9691
|
-
* Resolution of filters
|
|
9692
|
-
* @member {number}
|
|
9693
|
-
* @default 1
|
|
9694
|
-
* @private
|
|
9695
|
-
*/
|
|
9696
9340
|
this.resolution = 1;
|
|
9697
|
-
/**
|
|
9698
|
-
* Number of samples
|
|
9699
|
-
* @member {PIXI.MSAA_QUALITY}
|
|
9700
|
-
* @default MSAA_QUALITY.NONE
|
|
9701
|
-
* @private
|
|
9702
|
-
*/
|
|
9703
9341
|
this.multisample = _pixi_constants__WEBPACK_IMPORTED_MODULE_1__.MSAA_QUALITY.NONE;
|
|
9704
9342
|
// next three fields are created only for root
|
|
9705
9343
|
// re-assigned for everything else
|
|
9706
|
-
/**
|
|
9707
|
-
* Source frame
|
|
9708
|
-
* @member {PIXI.Rectangle}
|
|
9709
|
-
* @private
|
|
9710
|
-
*/
|
|
9711
9344
|
this.sourceFrame = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Rectangle();
|
|
9712
|
-
/**
|
|
9713
|
-
* Destination frame
|
|
9714
|
-
* @member {PIXI.Rectangle}
|
|
9715
|
-
* @private
|
|
9716
|
-
*/
|
|
9717
9345
|
this.destinationFrame = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Rectangle();
|
|
9718
|
-
/**
|
|
9719
|
-
* Original render-target source frame
|
|
9720
|
-
* @private
|
|
9721
|
-
*/
|
|
9722
9346
|
this.bindingSourceFrame = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Rectangle();
|
|
9723
|
-
/**
|
|
9724
|
-
* Original render-target destination frame
|
|
9725
|
-
* @private
|
|
9726
|
-
*/
|
|
9727
9347
|
this.bindingDestinationFrame = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Rectangle();
|
|
9728
|
-
/**
|
|
9729
|
-
* Collection of filters
|
|
9730
|
-
* @member {PIXI.Filter[]}
|
|
9731
|
-
* @private
|
|
9732
|
-
*/
|
|
9733
9348
|
this.filters = [];
|
|
9734
|
-
/**
|
|
9735
|
-
* Projection system transform saved by link.
|
|
9736
|
-
* @member {PIXI.Matrix}
|
|
9737
|
-
* @private
|
|
9738
|
-
*/
|
|
9739
9349
|
this.transform = null;
|
|
9740
9350
|
}
|
|
9741
|
-
/**
|
|
9742
|
-
* clears the state
|
|
9743
|
-
* @private
|
|
9744
|
-
*/
|
|
9351
|
+
/** Clears the state */
|
|
9745
9352
|
FilterState.prototype.clear = function () {
|
|
9746
9353
|
this.target = null;
|
|
9747
9354
|
this.filters = null;
|
|
@@ -9776,64 +9383,22 @@ var tempMatrix = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Matrix();
|
|
|
9776
9383
|
* * **pop**: Use {@link PIXI.FilterSystem#pop} to pop & execute the filters you initially pushed. It will apply them
|
|
9777
9384
|
* serially and output to the bounds of the filter-target.
|
|
9778
9385
|
*
|
|
9779
|
-
* @class
|
|
9780
9386
|
* @memberof PIXI
|
|
9781
|
-
* @extends PIXI.System
|
|
9782
9387
|
*/
|
|
9783
9388
|
var FilterSystem = /** @class */ (function () {
|
|
9784
9389
|
/**
|
|
9785
|
-
* @param
|
|
9390
|
+
* @param renderer - The renderer this System works for.
|
|
9786
9391
|
*/
|
|
9787
9392
|
function FilterSystem(renderer) {
|
|
9788
9393
|
this.renderer = renderer;
|
|
9789
|
-
/**
|
|
9790
|
-
* List of filters for the FilterSystem
|
|
9791
|
-
* @member {Object[]}
|
|
9792
|
-
* @readonly
|
|
9793
|
-
*/
|
|
9794
9394
|
this.defaultFilterStack = [{}];
|
|
9795
|
-
/**
|
|
9796
|
-
* stores a bunch of PO2 textures used for filtering
|
|
9797
|
-
* @member {Object}
|
|
9798
|
-
*/
|
|
9799
9395
|
this.texturePool = new RenderTexturePool();
|
|
9800
9396
|
this.texturePool.setScreenSize(renderer.view);
|
|
9801
|
-
/**
|
|
9802
|
-
* a pool for storing filter states, save us creating new ones each tick
|
|
9803
|
-
* @member {Object[]}
|
|
9804
|
-
*/
|
|
9805
9397
|
this.statePool = [];
|
|
9806
|
-
/**
|
|
9807
|
-
* A very simple geometry used when drawing a filter effect to the screen
|
|
9808
|
-
* @member {PIXI.Quad}
|
|
9809
|
-
*/
|
|
9810
9398
|
this.quad = new Quad();
|
|
9811
|
-
/**
|
|
9812
|
-
* Quad UVs
|
|
9813
|
-
* @member {PIXI.QuadUv}
|
|
9814
|
-
*/
|
|
9815
9399
|
this.quadUv = new QuadUv();
|
|
9816
|
-
/**
|
|
9817
|
-
* Temporary rect for maths
|
|
9818
|
-
* @type {PIXI.Rectangle}
|
|
9819
|
-
*/
|
|
9820
9400
|
this.tempRect = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Rectangle();
|
|
9821
|
-
/**
|
|
9822
|
-
* Active state
|
|
9823
|
-
* @member {object}
|
|
9824
|
-
*/
|
|
9825
9401
|
this.activeState = {};
|
|
9826
|
-
/**
|
|
9827
|
-
* This uniform group is attached to filter uniforms when used
|
|
9828
|
-
* @member {PIXI.UniformGroup}
|
|
9829
|
-
* @property {PIXI.Rectangle} outputFrame
|
|
9830
|
-
* @property {Float32Array} inputSize
|
|
9831
|
-
* @property {Float32Array} inputPixel
|
|
9832
|
-
* @property {Float32Array} inputClamp
|
|
9833
|
-
* @property {Number} resolution
|
|
9834
|
-
* @property {Float32Array} filterArea
|
|
9835
|
-
* @property {Float32Array} filterClamp
|
|
9836
|
-
*/
|
|
9837
9402
|
this.globalUniforms = new UniformGroup({
|
|
9838
9403
|
outputFrame: new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Rectangle(),
|
|
9839
9404
|
inputSize: new Float32Array(4),
|
|
@@ -9844,17 +9409,7 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9844
9409
|
filterArea: new Float32Array(4),
|
|
9845
9410
|
filterClamp: new Float32Array(4),
|
|
9846
9411
|
}, true);
|
|
9847
|
-
/**
|
|
9848
|
-
* Whether to clear output renderTexture in AUTO/BLIT mode. See {@link PIXI.CLEAR_MODES}
|
|
9849
|
-
* @member {boolean}
|
|
9850
|
-
*/
|
|
9851
9412
|
this.forceClear = false;
|
|
9852
|
-
/**
|
|
9853
|
-
* Old padding behavior is to use the max amount instead of sum padding.
|
|
9854
|
-
* Use this flag if you need the old behavior.
|
|
9855
|
-
* @member {boolean}
|
|
9856
|
-
* @default false
|
|
9857
|
-
*/
|
|
9858
9413
|
this.useMaxPadding = false;
|
|
9859
9414
|
}
|
|
9860
9415
|
/**
|
|
@@ -9862,9 +9417,10 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9862
9417
|
* input render-texture for the rest of the filtering pipeline.
|
|
9863
9418
|
*
|
|
9864
9419
|
* @param {PIXI.DisplayObject} target - The target of the filter to render.
|
|
9865
|
-
* @param
|
|
9420
|
+
* @param filters - The filters to apply.
|
|
9866
9421
|
*/
|
|
9867
9422
|
FilterSystem.prototype.push = function (target, filters) {
|
|
9423
|
+
var _a, _b;
|
|
9868
9424
|
var renderer = this.renderer;
|
|
9869
9425
|
var filterStack = this.defaultFilterStack;
|
|
9870
9426
|
var state = this.statePool.pop() || new FilterState();
|
|
@@ -9873,7 +9429,9 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9873
9429
|
var multisample = filters[0].multisample;
|
|
9874
9430
|
var padding = filters[0].padding;
|
|
9875
9431
|
var autoFit = filters[0].autoFit;
|
|
9876
|
-
|
|
9432
|
+
// We don't know whether it's a legacy filter until it was bound for the first time,
|
|
9433
|
+
// therefore we have to assume that it is if legacy is undefined.
|
|
9434
|
+
var legacy = (_a = filters[0].legacy) !== null && _a !== void 0 ? _a : true;
|
|
9877
9435
|
for (var i = 1; i < filters.length; i++) {
|
|
9878
9436
|
var filter = filters[i];
|
|
9879
9437
|
// let's use the lowest resolution
|
|
@@ -9888,7 +9446,7 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9888
9446
|
: padding + filter.padding;
|
|
9889
9447
|
// only auto fit if all filters are autofit
|
|
9890
9448
|
autoFit = autoFit && filter.autoFit;
|
|
9891
|
-
legacy = legacy || filter.legacy;
|
|
9449
|
+
legacy = legacy || ((_b = filter.legacy) !== null && _b !== void 0 ? _b : true);
|
|
9892
9450
|
}
|
|
9893
9451
|
if (filterStack.length === 1) {
|
|
9894
9452
|
this.defaultFilterStack[0].renderTexture = renderTextureSystem.current;
|
|
@@ -9927,9 +9485,7 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9927
9485
|
renderTextureSystem.bind(state.renderTexture, state.sourceFrame, destinationFrame);
|
|
9928
9486
|
renderer.framebuffer.clear(0, 0, 0, 0);
|
|
9929
9487
|
};
|
|
9930
|
-
/**
|
|
9931
|
-
* Pops off the filter and applies it.
|
|
9932
|
-
*/
|
|
9488
|
+
/** Pops off the filter and applies it. */
|
|
9933
9489
|
FilterSystem.prototype.pop = function () {
|
|
9934
9490
|
var filterStack = this.defaultFilterStack;
|
|
9935
9491
|
var state = filterStack.pop();
|
|
@@ -9998,8 +9554,8 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9998
9554
|
/**
|
|
9999
9555
|
* Binds a renderTexture with corresponding `filterFrame`, clears it if mode corresponds.
|
|
10000
9556
|
*
|
|
10001
|
-
* @param
|
|
10002
|
-
* @param
|
|
9557
|
+
* @param filterTexture - renderTexture to bind, should belong to filter pool or filter stack
|
|
9558
|
+
* @param clearMode - clearMode, by default its CLEAR/YES. See {@link PIXI.CLEAR_MODES}
|
|
10003
9559
|
*/
|
|
10004
9560
|
FilterSystem.prototype.bindAndClear = function (filterTexture, clearMode) {
|
|
10005
9561
|
if (clearMode === void 0) { clearMode = _pixi_constants__WEBPACK_IMPORTED_MODULE_1__.CLEAR_MODES.CLEAR; }
|
|
@@ -10039,12 +9595,14 @@ var FilterSystem = /** @class */ (function () {
|
|
|
10039
9595
|
}
|
|
10040
9596
|
};
|
|
10041
9597
|
/**
|
|
10042
|
-
* Draws a filter.
|
|
9598
|
+
* Draws a filter using the default rendering process.
|
|
10043
9599
|
*
|
|
10044
|
-
*
|
|
10045
|
-
*
|
|
10046
|
-
* @param
|
|
10047
|
-
* @param
|
|
9600
|
+
* This should be called only by {@link Filter#apply}.
|
|
9601
|
+
*
|
|
9602
|
+
* @param filter - The filter to draw.
|
|
9603
|
+
* @param input - The input render target.
|
|
9604
|
+
* @param output - The target to output to.
|
|
9605
|
+
* @param clearMode - Should the output be cleared before rendering to it
|
|
10048
9606
|
*/
|
|
10049
9607
|
FilterSystem.prototype.applyFilter = function (filter, input, output, clearMode) {
|
|
10050
9608
|
var renderer = this.renderer;
|
|
@@ -10075,9 +9633,9 @@ var FilterSystem = /** @class */ (function () {
|
|
|
10075
9633
|
*
|
|
10076
9634
|
* Use `outputMatrix * vTextureCoord` in the shader.
|
|
10077
9635
|
*
|
|
10078
|
-
* @param
|
|
9636
|
+
* @param outputMatrix - The matrix to output to.
|
|
10079
9637
|
* @param {PIXI.Sprite} sprite - The sprite to map to.
|
|
10080
|
-
* @return
|
|
9638
|
+
* @return The mapped matrix.
|
|
10081
9639
|
*/
|
|
10082
9640
|
FilterSystem.prototype.calculateSpriteMatrix = function (outputMatrix, sprite) {
|
|
10083
9641
|
var _a = this.activeState, sourceFrame = _a.sourceFrame, destinationFrame = _a.destinationFrame;
|
|
@@ -10090,9 +9648,7 @@ var FilterSystem = /** @class */ (function () {
|
|
|
10090
9648
|
mappedMatrix.translate(sprite.anchor.x, sprite.anchor.y);
|
|
10091
9649
|
return mappedMatrix;
|
|
10092
9650
|
};
|
|
10093
|
-
/**
|
|
10094
|
-
* Destroys this Filter System.
|
|
10095
|
-
*/
|
|
9651
|
+
/** Destroys this Filter System. */
|
|
10096
9652
|
FilterSystem.prototype.destroy = function () {
|
|
10097
9653
|
this.renderer = null;
|
|
10098
9654
|
// Those textures has to be destroyed by RenderTextureSystem or FramebufferSystem
|
|
@@ -10101,12 +9657,11 @@ var FilterSystem = /** @class */ (function () {
|
|
|
10101
9657
|
/**
|
|
10102
9658
|
* Gets a Power-of-Two render texture or fullScreen texture
|
|
10103
9659
|
*
|
|
10104
|
-
* @
|
|
10105
|
-
* @param
|
|
10106
|
-
* @param
|
|
10107
|
-
* @param
|
|
10108
|
-
* @
|
|
10109
|
-
* @return {PIXI.RenderTexture} The new render texture.
|
|
9660
|
+
* @param minWidth - The minimum width of the render texture in real pixels.
|
|
9661
|
+
* @param minHeight - The minimum height of the render texture in real pixels.
|
|
9662
|
+
* @param resolution - The resolution of the render texture.
|
|
9663
|
+
* @param multisample - Number of samples of the render texture.
|
|
9664
|
+
* @return - The new render texture.
|
|
10110
9665
|
*/
|
|
10111
9666
|
FilterSystem.prototype.getOptimalFilterTexture = function (minWidth, minHeight, resolution, multisample) {
|
|
10112
9667
|
if (resolution === void 0) { resolution = 1; }
|
|
@@ -10117,10 +9672,9 @@ var FilterSystem = /** @class */ (function () {
|
|
|
10117
9672
|
* Gets extra render texture to use inside current filter
|
|
10118
9673
|
* To be compliant with older filters, you can use params in any order
|
|
10119
9674
|
*
|
|
10120
|
-
* @param
|
|
10121
|
-
* @param
|
|
10122
|
-
* @param
|
|
10123
|
-
* @returns {PIXI.RenderTexture}
|
|
9675
|
+
* @param input - renderTexture from which size and resolution will be copied
|
|
9676
|
+
* @param resolution - override resolution of the renderTexture
|
|
9677
|
+
* @param multisample - number of samples of the renderTexture
|
|
10124
9678
|
*/
|
|
10125
9679
|
FilterSystem.prototype.getFilterTexture = function (input, resolution, multisample) {
|
|
10126
9680
|
if (typeof input === 'number') {
|
|
@@ -10136,26 +9690,22 @@ var FilterSystem = /** @class */ (function () {
|
|
|
10136
9690
|
/**
|
|
10137
9691
|
* Frees a render texture back into the pool.
|
|
10138
9692
|
*
|
|
10139
|
-
* @param
|
|
9693
|
+
* @param renderTexture - The renderTarget to free
|
|
10140
9694
|
*/
|
|
10141
9695
|
FilterSystem.prototype.returnFilterTexture = function (renderTexture) {
|
|
10142
9696
|
this.texturePool.returnTexture(renderTexture);
|
|
10143
9697
|
};
|
|
10144
|
-
/**
|
|
10145
|
-
* Empties the texture pool.
|
|
10146
|
-
*/
|
|
9698
|
+
/** Empties the texture pool. */
|
|
10147
9699
|
FilterSystem.prototype.emptyPool = function () {
|
|
10148
9700
|
this.texturePool.clear(true);
|
|
10149
9701
|
};
|
|
10150
|
-
/**
|
|
10151
|
-
* calls `texturePool.resize()`, affects fullScreen renderTextures
|
|
10152
|
-
*/
|
|
9702
|
+
/** Calls `texturePool.resize()`, affects fullScreen renderTextures. */
|
|
10153
9703
|
FilterSystem.prototype.resize = function () {
|
|
10154
9704
|
this.texturePool.setScreenSize(this.renderer.view);
|
|
10155
9705
|
};
|
|
10156
9706
|
/**
|
|
10157
|
-
* @param
|
|
10158
|
-
* @param
|
|
9707
|
+
* @param matrix - first param
|
|
9708
|
+
* @param rect - second param
|
|
10159
9709
|
*/
|
|
10160
9710
|
FilterSystem.prototype.transformAABB = function (matrix, rect) {
|
|
10161
9711
|
var lt = tempPoints[0];
|
|
@@ -11119,46 +10669,20 @@ var byteSizeMap$1 = { 5126: 4, 5123: 2, 5121: 1 };
|
|
|
11119
10669
|
/**
|
|
11120
10670
|
* System plugin to the renderer to manage geometry.
|
|
11121
10671
|
*
|
|
11122
|
-
* @class
|
|
11123
|
-
* @extends PIXI.System
|
|
11124
10672
|
* @memberof PIXI
|
|
11125
10673
|
*/
|
|
11126
10674
|
var GeometrySystem = /** @class */ (function () {
|
|
11127
|
-
/**
|
|
11128
|
-
* @param {PIXI.Renderer} renderer - The renderer this System works for.
|
|
11129
|
-
*/
|
|
10675
|
+
/** @param renderer - The renderer this System works for. */
|
|
11130
10676
|
function GeometrySystem(renderer) {
|
|
11131
10677
|
this.renderer = renderer;
|
|
11132
10678
|
this._activeGeometry = null;
|
|
11133
10679
|
this._activeVao = null;
|
|
11134
|
-
/**
|
|
11135
|
-
* `true` if we has `*_vertex_array_object` extension
|
|
11136
|
-
* @member {boolean}
|
|
11137
|
-
* @readonly
|
|
11138
|
-
*/
|
|
11139
10680
|
this.hasVao = true;
|
|
11140
|
-
/**
|
|
11141
|
-
* `true` if has `ANGLE_instanced_arrays` extension
|
|
11142
|
-
* @member {boolean}
|
|
11143
|
-
* @readonly
|
|
11144
|
-
*/
|
|
11145
10681
|
this.hasInstance = true;
|
|
11146
|
-
/**
|
|
11147
|
-
* `true` if support `gl.UNSIGNED_INT` in `gl.drawElements` or `gl.drawElementsInstanced`
|
|
11148
|
-
* @member {boolean}
|
|
11149
|
-
* @readonly
|
|
11150
|
-
*/
|
|
11151
10682
|
this.canUseUInt32ElementIndex = false;
|
|
11152
|
-
/**
|
|
11153
|
-
* Cache for all geometries by id, used in case renderer gets destroyed or for profiling
|
|
11154
|
-
* @member {object}
|
|
11155
|
-
* @readonly
|
|
11156
|
-
*/
|
|
11157
10683
|
this.managedGeometries = {};
|
|
11158
10684
|
}
|
|
11159
|
-
/**
|
|
11160
|
-
* Sets up the renderer context and necessary buffers.
|
|
11161
|
-
*/
|
|
10685
|
+
/** Sets up the renderer context and necessary buffers. */
|
|
11162
10686
|
GeometrySystem.prototype.contextChange = function () {
|
|
11163
10687
|
this.disposeAll(true);
|
|
11164
10688
|
var gl = this.gl = this.renderer.gl;
|
|
@@ -11217,8 +10741,8 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11217
10741
|
/**
|
|
11218
10742
|
* Binds geometry so that is can be drawn. Creating a Vao if required
|
|
11219
10743
|
*
|
|
11220
|
-
* @param
|
|
11221
|
-
* @param
|
|
10744
|
+
* @param geometry - Instance of geometry to bind.
|
|
10745
|
+
* @param shader - Instance of shader to use vao for.
|
|
11222
10746
|
*/
|
|
11223
10747
|
GeometrySystem.prototype.bind = function (geometry, shader) {
|
|
11224
10748
|
shader = shader || this.renderer.shader.shader;
|
|
@@ -11251,16 +10775,11 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11251
10775
|
// maybe look to add an 'autoupdate' to geometry?
|
|
11252
10776
|
this.updateBuffers();
|
|
11253
10777
|
};
|
|
11254
|
-
/**
|
|
11255
|
-
* Reset and unbind any active VAO and geometry
|
|
11256
|
-
*/
|
|
10778
|
+
/** Reset and unbind any active VAO and geometry. */
|
|
11257
10779
|
GeometrySystem.prototype.reset = function () {
|
|
11258
10780
|
this.unbind();
|
|
11259
10781
|
};
|
|
11260
|
-
/**
|
|
11261
|
-
* Update buffers
|
|
11262
|
-
* @protected
|
|
11263
|
-
*/
|
|
10782
|
+
/** Update buffers of the currently bound geometry. */
|
|
11264
10783
|
GeometrySystem.prototype.updateBuffers = function () {
|
|
11265
10784
|
var geometry = this._activeGeometry;
|
|
11266
10785
|
var bufferSystem = this.renderer.buffer;
|
|
@@ -11271,9 +10790,9 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11271
10790
|
};
|
|
11272
10791
|
/**
|
|
11273
10792
|
* Check compatibility between a geometry and a program
|
|
11274
|
-
*
|
|
11275
|
-
* @param
|
|
11276
|
-
* @param
|
|
10793
|
+
*
|
|
10794
|
+
* @param geometry - Geometry instance.
|
|
10795
|
+
* @param program - Program instance.
|
|
11277
10796
|
*/
|
|
11278
10797
|
GeometrySystem.prototype.checkCompatibility = function (geometry, program) {
|
|
11279
10798
|
// geometry must have at least all the attributes that the shader requires.
|
|
@@ -11288,10 +10807,9 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11288
10807
|
/**
|
|
11289
10808
|
* Takes a geometry and program and generates a unique signature for them.
|
|
11290
10809
|
*
|
|
11291
|
-
* @param
|
|
11292
|
-
* @param
|
|
11293
|
-
* @
|
|
11294
|
-
* @protected
|
|
10810
|
+
* @param geometry - To get signature from.
|
|
10811
|
+
* @param program - To test geometry against.
|
|
10812
|
+
* @return - Unique signature of the geometry and program
|
|
11295
10813
|
*/
|
|
11296
10814
|
GeometrySystem.prototype.getSignature = function (geometry, program) {
|
|
11297
10815
|
var attribs = geometry.attributes;
|
|
@@ -11299,7 +10817,7 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11299
10817
|
var strings = ['g', geometry.id];
|
|
11300
10818
|
for (var i in attribs) {
|
|
11301
10819
|
if (shaderAttributes[i]) {
|
|
11302
|
-
strings.push(i);
|
|
10820
|
+
strings.push(i, shaderAttributes[i].location);
|
|
11303
10821
|
}
|
|
11304
10822
|
}
|
|
11305
10823
|
return strings.join('-');
|
|
@@ -11309,10 +10827,9 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11309
10827
|
* If vao is created, it is bound automatically. We use a shader to infer what and how to set up the
|
|
11310
10828
|
* attribute locations.
|
|
11311
10829
|
*
|
|
11312
|
-
* @
|
|
11313
|
-
* @param
|
|
11314
|
-
* @param
|
|
11315
|
-
* @param {boolean} [incRefCount=false] - Increment refCount of all geometry buffers
|
|
10830
|
+
* @param geometry - Instance of geometry to to generate Vao for.
|
|
10831
|
+
* @param shader - Instance of the shader.
|
|
10832
|
+
* @param incRefCount - Increment refCount of all geometry buffers.
|
|
11316
10833
|
*/
|
|
11317
10834
|
GeometrySystem.prototype.initGeometryVao = function (geometry, shader, incRefCount) {
|
|
11318
10835
|
if (incRefCount === void 0) { incRefCount = true; }
|
|
@@ -11386,9 +10903,10 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11386
10903
|
return vao;
|
|
11387
10904
|
};
|
|
11388
10905
|
/**
|
|
11389
|
-
* Disposes geometry
|
|
11390
|
-
*
|
|
11391
|
-
* @param
|
|
10906
|
+
* Disposes geometry.
|
|
10907
|
+
*
|
|
10908
|
+
* @param geometry - Geometry with buffers. Only VAO will be disposed
|
|
10909
|
+
* @param [contextLost=false] - If context was lost, we suppress deleteVertexArray
|
|
11392
10910
|
*/
|
|
11393
10911
|
GeometrySystem.prototype.disposeGeometry = function (geometry, contextLost) {
|
|
11394
10912
|
var _a;
|
|
@@ -11434,8 +10952,9 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11434
10952
|
delete geometry.glVertexArrayObjects[this.CONTEXT_UID];
|
|
11435
10953
|
};
|
|
11436
10954
|
/**
|
|
11437
|
-
*
|
|
11438
|
-
*
|
|
10955
|
+
* Dispose all WebGL resources of all managed geometries.
|
|
10956
|
+
*
|
|
10957
|
+
* @param [contextLost=false] - If context was lost, we suppress `gl.delete` calls
|
|
11439
10958
|
*/
|
|
11440
10959
|
GeometrySystem.prototype.disposeAll = function (contextLost) {
|
|
11441
10960
|
var all = Object.keys(this.managedGeometries);
|
|
@@ -11444,11 +10963,10 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11444
10963
|
}
|
|
11445
10964
|
};
|
|
11446
10965
|
/**
|
|
11447
|
-
* Activate vertex array object
|
|
10966
|
+
* Activate vertex array object.
|
|
11448
10967
|
*
|
|
11449
|
-
* @
|
|
11450
|
-
* @param
|
|
11451
|
-
* @param {PIXI.Program} program - Shader program instance
|
|
10968
|
+
* @param geometry - Geometry instance.
|
|
10969
|
+
* @param program - Shader program instance.
|
|
11452
10970
|
*/
|
|
11453
10971
|
GeometrySystem.prototype.activateVao = function (geometry, program) {
|
|
11454
10972
|
var gl = this.gl;
|
|
@@ -11489,12 +11007,15 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11489
11007
|
}
|
|
11490
11008
|
};
|
|
11491
11009
|
/**
|
|
11492
|
-
*
|
|
11010
|
+
* Draws the currently bound geometry.
|
|
11493
11011
|
*
|
|
11494
|
-
* @param
|
|
11495
|
-
* @param
|
|
11496
|
-
*
|
|
11497
|
-
* @param
|
|
11012
|
+
* @param type - The type primitive to render.
|
|
11013
|
+
* @param size - The number of elements to be rendered. If not specified, all vertices after the
|
|
11014
|
+
* starting vertex will be drawn.
|
|
11015
|
+
* @param start - The starting vertex in the geometry to start drawing from. If not specified,
|
|
11016
|
+
* drawing will start from the first vertex.
|
|
11017
|
+
* @param instanceCount - The number of instances of the set of elements to execute. If not specified,
|
|
11018
|
+
* all instances will be drawn.
|
|
11498
11019
|
*/
|
|
11499
11020
|
GeometrySystem.prototype.draw = function (type, size, start, instanceCount) {
|
|
11500
11021
|
var gl = this.gl;
|
|
@@ -11528,18 +11049,12 @@ var GeometrySystem = /** @class */ (function () {
|
|
|
11528
11049
|
}
|
|
11529
11050
|
return this;
|
|
11530
11051
|
};
|
|
11531
|
-
/**
|
|
11532
|
-
* Unbind/reset everything
|
|
11533
|
-
* @protected
|
|
11534
|
-
*/
|
|
11052
|
+
/** Unbind/reset everything. */
|
|
11535
11053
|
GeometrySystem.prototype.unbind = function () {
|
|
11536
11054
|
this.gl.bindVertexArray(null);
|
|
11537
11055
|
this._activeVao = null;
|
|
11538
11056
|
this._activeGeometry = null;
|
|
11539
11057
|
};
|
|
11540
|
-
/**
|
|
11541
|
-
* @ignore
|
|
11542
|
-
*/
|
|
11543
11058
|
GeometrySystem.prototype.destroy = function () {
|
|
11544
11059
|
this.renderer = null;
|
|
11545
11060
|
};
|
|
@@ -12687,53 +12202,24 @@ var defaultFragment$1 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampl
|
|
|
12687
12202
|
* Since PixiJS only had a handful of built-in filters, additional filters can be downloaded
|
|
12688
12203
|
* {@link https://github.com/pixijs/pixi-filters here} from the PixiJS Filters repository.
|
|
12689
12204
|
*
|
|
12690
|
-
* @class
|
|
12691
12205
|
* @memberof PIXI
|
|
12692
|
-
* @extends PIXI.Shader
|
|
12693
12206
|
*/
|
|
12694
12207
|
var Filter = /** @class */ (function (_super) {
|
|
12695
12208
|
__extends(Filter, _super);
|
|
12696
12209
|
/**
|
|
12697
|
-
* @param
|
|
12698
|
-
* @param
|
|
12699
|
-
* @param
|
|
12210
|
+
* @param vertexSrc - The source of the vertex shader.
|
|
12211
|
+
* @param fragmentSrc - The source of the fragment shader.
|
|
12212
|
+
* @param uniforms - Custom uniforms to use to augment the built-in ones.
|
|
12700
12213
|
*/
|
|
12701
12214
|
function Filter(vertexSrc, fragmentSrc, uniforms) {
|
|
12702
12215
|
var _this = this;
|
|
12703
12216
|
var program = Program.from(vertexSrc || Filter.defaultVertexSrc, fragmentSrc || Filter.defaultFragmentSrc);
|
|
12704
12217
|
_this = _super.call(this, program, uniforms) || this;
|
|
12705
|
-
/**
|
|
12706
|
-
* The padding of the filter. Some filters require extra space to breath such as a blur.
|
|
12707
|
-
* Increasing this will add extra width and height to the bounds of the object that the
|
|
12708
|
-
* filter is applied to.
|
|
12709
|
-
*
|
|
12710
|
-
* @member {number}
|
|
12711
|
-
*/
|
|
12712
12218
|
_this.padding = 0;
|
|
12713
12219
|
_this.resolution = _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.FILTER_RESOLUTION;
|
|
12714
|
-
/**
|
|
12715
|
-
* The samples of the filter.
|
|
12716
|
-
*
|
|
12717
|
-
* @member {PIXI.MSAA_QUALITY}
|
|
12718
|
-
*/
|
|
12719
12220
|
_this.multisample = _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.FILTER_MULTISAMPLE;
|
|
12720
|
-
/**
|
|
12721
|
-
* If enabled is true the filter is applied, if false it will not.
|
|
12722
|
-
*
|
|
12723
|
-
* @member {boolean}
|
|
12724
|
-
*/
|
|
12725
12221
|
_this.enabled = true;
|
|
12726
|
-
/**
|
|
12727
|
-
* If enabled, PixiJS will fit the filter area into boundaries for better performance.
|
|
12728
|
-
* Switch it off if it does not work for specific shader.
|
|
12729
|
-
*
|
|
12730
|
-
* @member {boolean}
|
|
12731
|
-
*/
|
|
12732
12222
|
_this.autoFit = true;
|
|
12733
|
-
/**
|
|
12734
|
-
* The WebGL state the filter requires to render
|
|
12735
|
-
* @member {PIXI.State}
|
|
12736
|
-
*/
|
|
12737
12223
|
_this.state = new State();
|
|
12738
12224
|
return _this;
|
|
12739
12225
|
}
|
|
@@ -12755,9 +12241,8 @@ var Filter = /** @class */ (function (_super) {
|
|
|
12755
12241
|
};
|
|
12756
12242
|
Object.defineProperty(Filter.prototype, "blendMode", {
|
|
12757
12243
|
/**
|
|
12758
|
-
* Sets the
|
|
12244
|
+
* Sets the blend mode of the filter.
|
|
12759
12245
|
*
|
|
12760
|
-
* @member {number}
|
|
12761
12246
|
* @default PIXI.BLEND_MODES.NORMAL
|
|
12762
12247
|
*/
|
|
12763
12248
|
get: function () {
|
|
@@ -12773,8 +12258,6 @@ var Filter = /** @class */ (function (_super) {
|
|
|
12773
12258
|
/**
|
|
12774
12259
|
* The resolution of the filter. Setting this to be lower will lower the quality but
|
|
12775
12260
|
* increase the performance of the filter.
|
|
12776
|
-
*
|
|
12777
|
-
* @member {number}
|
|
12778
12261
|
*/
|
|
12779
12262
|
get: function () {
|
|
12780
12263
|
return this._resolution;
|
|
@@ -12789,8 +12272,6 @@ var Filter = /** @class */ (function (_super) {
|
|
|
12789
12272
|
/**
|
|
12790
12273
|
* The default vertex shader source
|
|
12791
12274
|
*
|
|
12792
|
-
* @static
|
|
12793
|
-
* @type {string}
|
|
12794
12275
|
* @constant
|
|
12795
12276
|
*/
|
|
12796
12277
|
get: function () {
|
|
@@ -12803,8 +12284,6 @@ var Filter = /** @class */ (function (_super) {
|
|
|
12803
12284
|
/**
|
|
12804
12285
|
* The default fragment shader source
|
|
12805
12286
|
*
|
|
12806
|
-
* @static
|
|
12807
|
-
* @type {string}
|
|
12808
12287
|
* @constant
|
|
12809
12288
|
*/
|
|
12810
12289
|
get: function () {
|
|
@@ -12986,15 +12465,11 @@ var TextureMatrix = /** @class */ (function () {
|
|
|
12986
12465
|
*
|
|
12987
12466
|
* WebGL only.
|
|
12988
12467
|
*
|
|
12989
|
-
* @class
|
|
12990
|
-
* @extends PIXI.Filter
|
|
12991
12468
|
* @memberof PIXI
|
|
12992
12469
|
*/
|
|
12993
12470
|
var SpriteMaskFilter = /** @class */ (function (_super) {
|
|
12994
12471
|
__extends(SpriteMaskFilter, _super);
|
|
12995
|
-
/**
|
|
12996
|
-
* @ignore
|
|
12997
|
-
*/
|
|
12472
|
+
/** @ignore */
|
|
12998
12473
|
function SpriteMaskFilter(vertexSrc, fragmentSrc, uniforms) {
|
|
12999
12474
|
var _this = this;
|
|
13000
12475
|
var sprite = null;
|
|
@@ -13005,19 +12480,16 @@ var SpriteMaskFilter = /** @class */ (function (_super) {
|
|
|
13005
12480
|
uniforms = undefined;
|
|
13006
12481
|
}
|
|
13007
12482
|
_this = _super.call(this, vertexSrc || vertex, fragmentSrc || fragment, uniforms) || this;
|
|
13008
|
-
/**
|
|
13009
|
-
* Sprite mask
|
|
13010
|
-
* @member {PIXI.Sprite}
|
|
13011
|
-
*/
|
|
13012
12483
|
_this.maskSprite = sprite;
|
|
13013
|
-
/**
|
|
13014
|
-
* Mask matrix
|
|
13015
|
-
* @member {PIXI.Matrix}
|
|
13016
|
-
*/
|
|
13017
12484
|
_this.maskMatrix = new _pixi_math__WEBPACK_IMPORTED_MODULE_5__.Matrix();
|
|
13018
12485
|
return _this;
|
|
13019
12486
|
}
|
|
13020
12487
|
Object.defineProperty(SpriteMaskFilter.prototype, "maskSprite", {
|
|
12488
|
+
/**
|
|
12489
|
+
* Sprite mask
|
|
12490
|
+
*
|
|
12491
|
+
* @type {PIXI.DisplayObject}
|
|
12492
|
+
*/
|
|
13021
12493
|
get: function () {
|
|
13022
12494
|
return this._maskSprite;
|
|
13023
12495
|
},
|
|
@@ -13033,10 +12505,10 @@ var SpriteMaskFilter = /** @class */ (function (_super) {
|
|
|
13033
12505
|
/**
|
|
13034
12506
|
* Applies the filter
|
|
13035
12507
|
*
|
|
13036
|
-
* @param
|
|
13037
|
-
* @param
|
|
13038
|
-
* @param
|
|
13039
|
-
* @param
|
|
12508
|
+
* @param filterManager - The renderer to retrieve the filter from
|
|
12509
|
+
* @param input - The input render target.
|
|
12510
|
+
* @param output - The target to output to.
|
|
12511
|
+
* @param clearMode - Should the output be cleared before rendering to it.
|
|
13040
12512
|
*/
|
|
13041
12513
|
SpriteMaskFilter.prototype.apply = function (filterManager, input, output, clearMode) {
|
|
13042
12514
|
var maskSprite = this._maskSprite;
|
|
@@ -13498,6 +12970,8 @@ var StencilSystem = /** @class */ (function (_super) {
|
|
|
13498
12970
|
if (prevMaskCount === 0) {
|
|
13499
12971
|
// force use stencil texture in current framebuffer
|
|
13500
12972
|
this.renderer.framebuffer.forceStencil();
|
|
12973
|
+
gl.clearStencil(0);
|
|
12974
|
+
gl.clear(gl.STENCIL_BUFFER_BIT);
|
|
13501
12975
|
gl.enable(gl.STENCIL_TEST);
|
|
13502
12976
|
}
|
|
13503
12977
|
maskData._stencilCounter++;
|
|
@@ -13521,8 +12995,6 @@ var StencilSystem = /** @class */ (function (_super) {
|
|
|
13521
12995
|
if (this.getStackLength() === 0) {
|
|
13522
12996
|
// the stack is empty!
|
|
13523
12997
|
gl.disable(gl.STENCIL_TEST);
|
|
13524
|
-
gl.clearStencil(0);
|
|
13525
|
-
gl.clear(gl.STENCIL_BUFFER_BIT);
|
|
13526
12998
|
}
|
|
13527
12999
|
else {
|
|
13528
13000
|
// Decrement the reference stencil value where the popped mask overlaps with the other ones
|
|
@@ -16899,8 +16371,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16899
16371
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
16900
16372
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
16901
16373
|
/*!
|
|
16902
|
-
* @pixi/display - v6.2.
|
|
16903
|
-
* Compiled
|
|
16374
|
+
* @pixi/display - v6.2.1
|
|
16375
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
16904
16376
|
*
|
|
16905
16377
|
* @pixi/display is licensed under the MIT License.
|
|
16906
16378
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -18292,8 +17764,8 @@ var TemporaryDisplayObject = /** @class */ (function (_super) {
|
|
|
18292
17764
|
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
|
|
18293
17765
|
|
|
18294
17766
|
/*!
|
|
18295
|
-
* @pixi/constants - v6.2.
|
|
18296
|
-
* Compiled
|
|
17767
|
+
* @pixi/constants - v6.2.1
|
|
17768
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
18297
17769
|
*
|
|
18298
17770
|
* @pixi/constants is licensed under the MIT License.
|
|
18299
17771
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19424,8 +18896,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19424
18896
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
19425
18897
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19426
18898
|
/*!
|
|
19427
|
-
* @pixi/extract - v6.2.
|
|
19428
|
-
* Compiled
|
|
18899
|
+
* @pixi/extract - v6.2.1
|
|
18900
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
19429
18901
|
*
|
|
19430
18902
|
* @pixi/extract is licensed under the MIT License.
|
|
19431
18903
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19653,8 +19125,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19653
19125
|
/* harmony export */ });
|
|
19654
19126
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19655
19127
|
/*!
|
|
19656
|
-
* @pixi/filter-alpha - v6.2.
|
|
19657
|
-
* Compiled
|
|
19128
|
+
* @pixi/filter-alpha - v6.2.1
|
|
19129
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
19658
19130
|
*
|
|
19659
19131
|
* @pixi/filter-alpha is licensed under the MIT License.
|
|
19660
19132
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19757,8 +19229,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19757
19229
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19758
19230
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
19759
19231
|
/*!
|
|
19760
|
-
* @pixi/filter-blur - v6.2.
|
|
19761
|
-
* Compiled
|
|
19232
|
+
* @pixi/filter-blur - v6.2.1
|
|
19233
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
19762
19234
|
*
|
|
19763
19235
|
* @pixi/filter-blur is licensed under the MIT License.
|
|
19764
19236
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19857,8 +19329,8 @@ function generateBlurFragSource(kernelSize) {
|
|
|
19857
19329
|
}
|
|
19858
19330
|
|
|
19859
19331
|
/*!
|
|
19860
|
-
* @pixi/constants - v6.2.
|
|
19861
|
-
* Compiled
|
|
19332
|
+
* @pixi/constants - v6.2.1
|
|
19333
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
19862
19334
|
*
|
|
19863
19335
|
* @pixi/constants is licensed under the MIT License.
|
|
19864
19336
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20675,8 +20147,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20675
20147
|
/* harmony export */ });
|
|
20676
20148
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20677
20149
|
/*!
|
|
20678
|
-
* @pixi/filter-color-matrix - v6.2.
|
|
20679
|
-
* Compiled
|
|
20150
|
+
* @pixi/filter-color-matrix - v6.2.1
|
|
20151
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
20680
20152
|
*
|
|
20681
20153
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
|
20682
20154
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20725,8 +20197,6 @@ var fragment = "varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nunifor
|
|
|
20725
20197
|
* colorMatrix.contrast(2);
|
|
20726
20198
|
* ```
|
|
20727
20199
|
* @author Clément Chenebault <clement@goodboydigital.com>
|
|
20728
|
-
* @class
|
|
20729
|
-
* @extends PIXI.Filter
|
|
20730
20200
|
* @memberof PIXI.filters
|
|
20731
20201
|
*/
|
|
20732
20202
|
var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
@@ -20748,7 +20218,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20748
20218
|
* Transforms current matrix and set the new one
|
|
20749
20219
|
*
|
|
20750
20220
|
* @param {number[]} matrix - 5x4 matrix
|
|
20751
|
-
* @param
|
|
20221
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20752
20222
|
* just set the current matrix with @param matrix
|
|
20753
20223
|
*/
|
|
20754
20224
|
ColorMatrixFilter.prototype._loadMatrix = function (matrix, multiply) {
|
|
@@ -20765,9 +20235,9 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20765
20235
|
* Multiplies two mat5's
|
|
20766
20236
|
*
|
|
20767
20237
|
* @private
|
|
20768
|
-
* @param
|
|
20769
|
-
* @param
|
|
20770
|
-
* @param
|
|
20238
|
+
* @param out - 5x4 matrix the receiving matrix
|
|
20239
|
+
* @param a - 5x4 matrix the first operand
|
|
20240
|
+
* @param b - 5x4 matrix the second operand
|
|
20771
20241
|
* @returns {number[]} 5x4 matrix
|
|
20772
20242
|
*/
|
|
20773
20243
|
ColorMatrixFilter.prototype._multiply = function (out, a, b) {
|
|
@@ -20800,7 +20270,6 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20800
20270
|
/**
|
|
20801
20271
|
* Create a Float32 Array and normalize the offset component to 0-1
|
|
20802
20272
|
*
|
|
20803
|
-
* @private
|
|
20804
20273
|
* @param {number[]} matrix - 5x4 matrix
|
|
20805
20274
|
* @return {number[]} 5x4 matrix with all values between 0-1
|
|
20806
20275
|
*/
|
|
@@ -20816,8 +20285,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20816
20285
|
/**
|
|
20817
20286
|
* Adjusts brightness
|
|
20818
20287
|
*
|
|
20819
|
-
* @param
|
|
20820
|
-
* @param
|
|
20288
|
+
* @param b - value of the brigthness (0-1, where 0 is black)
|
|
20289
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20821
20290
|
* just set the current matrix with @param matrix
|
|
20822
20291
|
*/
|
|
20823
20292
|
ColorMatrixFilter.prototype.brightness = function (b, multiply) {
|
|
@@ -20833,8 +20302,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20833
20302
|
* This can be used to achieve a tinting effect on Containers similar to the tint field of some
|
|
20834
20303
|
* display objects like Sprite, Text, Graphics, and Mesh.
|
|
20835
20304
|
*
|
|
20836
|
-
* @param
|
|
20837
|
-
* @param
|
|
20305
|
+
* @param color - Color of the tint. This is a hex value.
|
|
20306
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20838
20307
|
* just set the current matrix with @param matrix
|
|
20839
20308
|
*/
|
|
20840
20309
|
ColorMatrixFilter.prototype.tint = function (color, multiply) {
|
|
@@ -20851,8 +20320,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20851
20320
|
/**
|
|
20852
20321
|
* Set the matrices in grey scales
|
|
20853
20322
|
*
|
|
20854
|
-
* @param
|
|
20855
|
-
* @param
|
|
20323
|
+
* @param scale - value of the grey (0-1, where 0 is black)
|
|
20324
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20856
20325
|
* just set the current matrix with @param matrix
|
|
20857
20326
|
*/
|
|
20858
20327
|
ColorMatrixFilter.prototype.greyscale = function (scale, multiply) {
|
|
@@ -20866,7 +20335,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20866
20335
|
/**
|
|
20867
20336
|
* Set the black and white matrice.
|
|
20868
20337
|
*
|
|
20869
|
-
* @param
|
|
20338
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20870
20339
|
* just set the current matrix with @param matrix
|
|
20871
20340
|
*/
|
|
20872
20341
|
ColorMatrixFilter.prototype.blackAndWhite = function (multiply) {
|
|
@@ -20880,8 +20349,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20880
20349
|
/**
|
|
20881
20350
|
* Set the hue property of the color
|
|
20882
20351
|
*
|
|
20883
|
-
* @param
|
|
20884
|
-
* @param
|
|
20352
|
+
* @param rotation - in degrees
|
|
20353
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20885
20354
|
* just set the current matrix with @param matrix
|
|
20886
20355
|
*/
|
|
20887
20356
|
ColorMatrixFilter.prototype.hue = function (rotation, multiply) {
|
|
@@ -20924,8 +20393,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20924
20393
|
* Increase contrast : shadows darker and highlights brighter
|
|
20925
20394
|
* Decrease contrast : bring the shadows up and the highlights down
|
|
20926
20395
|
*
|
|
20927
|
-
* @param
|
|
20928
|
-
* @param
|
|
20396
|
+
* @param amount - value of the contrast (0-1)
|
|
20397
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20929
20398
|
* just set the current matrix with @param matrix
|
|
20930
20399
|
*/
|
|
20931
20400
|
ColorMatrixFilter.prototype.contrast = function (amount, multiply) {
|
|
@@ -20942,8 +20411,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20942
20411
|
* Set the saturation matrix, increase the separation between colors
|
|
20943
20412
|
* Increase saturation : increase contrast, brightness, and sharpness
|
|
20944
20413
|
*
|
|
20945
|
-
* @param
|
|
20946
|
-
* @param
|
|
20414
|
+
* @param amount - The saturation amount (0-1)
|
|
20415
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20947
20416
|
* just set the current matrix with @param matrix
|
|
20948
20417
|
*/
|
|
20949
20418
|
ColorMatrixFilter.prototype.saturate = function (amount, multiply) {
|
|
@@ -20961,7 +20430,6 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20961
20430
|
* Desaturate image (remove color)
|
|
20962
20431
|
*
|
|
20963
20432
|
* Call the saturate function
|
|
20964
|
-
*
|
|
20965
20433
|
*/
|
|
20966
20434
|
ColorMatrixFilter.prototype.desaturate = function () {
|
|
20967
20435
|
this.saturate(-1);
|
|
@@ -20969,7 +20437,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20969
20437
|
/**
|
|
20970
20438
|
* Negative image (inverse of classic rgb matrix)
|
|
20971
20439
|
*
|
|
20972
|
-
* @param
|
|
20440
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20973
20441
|
* just set the current matrix with @param matrix
|
|
20974
20442
|
*/
|
|
20975
20443
|
ColorMatrixFilter.prototype.negative = function (multiply) {
|
|
@@ -20983,7 +20451,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20983
20451
|
/**
|
|
20984
20452
|
* Sepia image
|
|
20985
20453
|
*
|
|
20986
|
-
* @param
|
|
20454
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
20987
20455
|
* just set the current matrix with @param matrix
|
|
20988
20456
|
*/
|
|
20989
20457
|
ColorMatrixFilter.prototype.sepia = function (multiply) {
|
|
@@ -20997,7 +20465,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
20997
20465
|
/**
|
|
20998
20466
|
* Color motion picture process invented in 1916 (thanks Dominic Szablewski)
|
|
20999
20467
|
*
|
|
21000
|
-
* @param
|
|
20468
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21001
20469
|
* just set the current matrix with @param matrix
|
|
21002
20470
|
*/
|
|
21003
20471
|
ColorMatrixFilter.prototype.technicolor = function (multiply) {
|
|
@@ -21011,7 +20479,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21011
20479
|
/**
|
|
21012
20480
|
* Polaroid filter
|
|
21013
20481
|
*
|
|
21014
|
-
* @param
|
|
20482
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21015
20483
|
* just set the current matrix with @param matrix
|
|
21016
20484
|
*/
|
|
21017
20485
|
ColorMatrixFilter.prototype.polaroid = function (multiply) {
|
|
@@ -21025,7 +20493,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21025
20493
|
/**
|
|
21026
20494
|
* Filter who transforms : Red -> Blue and Blue -> Red
|
|
21027
20495
|
*
|
|
21028
|
-
* @param
|
|
20496
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21029
20497
|
* just set the current matrix with @param matrix
|
|
21030
20498
|
*/
|
|
21031
20499
|
ColorMatrixFilter.prototype.toBGR = function (multiply) {
|
|
@@ -21039,7 +20507,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21039
20507
|
/**
|
|
21040
20508
|
* Color reversal film introduced by Eastman Kodak in 1935. (thanks Dominic Szablewski)
|
|
21041
20509
|
*
|
|
21042
|
-
* @param
|
|
20510
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21043
20511
|
* just set the current matrix with @param matrix
|
|
21044
20512
|
*/
|
|
21045
20513
|
ColorMatrixFilter.prototype.kodachrome = function (multiply) {
|
|
@@ -21053,7 +20521,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21053
20521
|
/**
|
|
21054
20522
|
* Brown delicious browni filter (thanks Dominic Szablewski)
|
|
21055
20523
|
*
|
|
21056
|
-
* @param
|
|
20524
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21057
20525
|
* just set the current matrix with @param matrix
|
|
21058
20526
|
*/
|
|
21059
20527
|
ColorMatrixFilter.prototype.browni = function (multiply) {
|
|
@@ -21067,7 +20535,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21067
20535
|
/**
|
|
21068
20536
|
* Vintage filter (thanks Dominic Szablewski)
|
|
21069
20537
|
*
|
|
21070
|
-
* @param
|
|
20538
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21071
20539
|
* just set the current matrix with @param matrix
|
|
21072
20540
|
*/
|
|
21073
20541
|
ColorMatrixFilter.prototype.vintage = function (multiply) {
|
|
@@ -21081,11 +20549,11 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21081
20549
|
/**
|
|
21082
20550
|
* We don't know exactly what it does, kind of gradient map, but funny to play with!
|
|
21083
20551
|
*
|
|
21084
|
-
* @param
|
|
21085
|
-
* @param
|
|
21086
|
-
* @param
|
|
21087
|
-
* @param
|
|
21088
|
-
* @param
|
|
20552
|
+
* @param desaturation - Tone values.
|
|
20553
|
+
* @param toned - Tone values.
|
|
20554
|
+
* @param lightColor - Tone values, example: `0xFFE580`
|
|
20555
|
+
* @param darkColor - Tone values, example: `0xFFE580`
|
|
20556
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21089
20557
|
* just set the current matrix with @param matrix
|
|
21090
20558
|
*/
|
|
21091
20559
|
ColorMatrixFilter.prototype.colorTone = function (desaturation, toned, lightColor, darkColor, multiply) {
|
|
@@ -21109,8 +20577,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21109
20577
|
/**
|
|
21110
20578
|
* Night effect
|
|
21111
20579
|
*
|
|
21112
|
-
* @param
|
|
21113
|
-
* @param
|
|
20580
|
+
* @param intensity - The intensity of the night effect.
|
|
20581
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21114
20582
|
* just set the current matrix with @param matrix
|
|
21115
20583
|
*/
|
|
21116
20584
|
ColorMatrixFilter.prototype.night = function (intensity, multiply) {
|
|
@@ -21127,8 +20595,8 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21127
20595
|
*
|
|
21128
20596
|
* Erase the current matrix by setting a new indepent one
|
|
21129
20597
|
*
|
|
21130
|
-
* @param
|
|
21131
|
-
* @param
|
|
20598
|
+
* @param amount - how much the predator feels his future victim
|
|
20599
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21132
20600
|
* just set the current matrix with @param matrix
|
|
21133
20601
|
*/
|
|
21134
20602
|
ColorMatrixFilter.prototype.predator = function (amount, multiply) {
|
|
@@ -21160,7 +20628,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21160
20628
|
*
|
|
21161
20629
|
* Multiply the current matrix
|
|
21162
20630
|
*
|
|
21163
|
-
* @param
|
|
20631
|
+
* @param multiply - if true, current matrix and matrix are multiplied. If false,
|
|
21164
20632
|
* just set the current matrix with @param matrix
|
|
21165
20633
|
*/
|
|
21166
20634
|
ColorMatrixFilter.prototype.lsd = function (multiply) {
|
|
@@ -21171,10 +20639,7 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21171
20639
|
0, 0, 0, 1, 0 ];
|
|
21172
20640
|
this._loadMatrix(matrix, multiply);
|
|
21173
20641
|
};
|
|
21174
|
-
/**
|
|
21175
|
-
* Erase the current matrix by setting the default one
|
|
21176
|
-
*
|
|
21177
|
-
*/
|
|
20642
|
+
/** Erase the current matrix by setting the default one. */
|
|
21178
20643
|
ColorMatrixFilter.prototype.reset = function () {
|
|
21179
20644
|
var matrix = [
|
|
21180
20645
|
1, 0, 0, 0, 0,
|
|
@@ -21207,7 +20672,6 @@ var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
|
21207
20672
|
* When the value is 1, the result color is used.
|
|
21208
20673
|
* When in the range (0, 1) the color is interpolated between the original and result by this amount.
|
|
21209
20674
|
*
|
|
21210
|
-
* @member {number}
|
|
21211
20675
|
* @default 1
|
|
21212
20676
|
*/
|
|
21213
20677
|
get: function () {
|
|
@@ -21244,8 +20708,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21244
20708
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
21245
20709
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
21246
20710
|
/*!
|
|
21247
|
-
* @pixi/filter-displacement - v6.2.
|
|
21248
|
-
* Compiled
|
|
20711
|
+
* @pixi/filter-displacement - v6.2.1
|
|
20712
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
21249
20713
|
*
|
|
21250
20714
|
* @pixi/filter-displacement is licensed under the MIT License.
|
|
21251
20715
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -21300,15 +20764,13 @@ var vertex = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\
|
|
|
21300
20764
|
* For example, if a displacement map pixel has `red = 1` and the filter scale is `20`,
|
|
21301
20765
|
* this filter will output the pixel approximately 20 pixels to the right of the original.
|
|
21302
20766
|
*
|
|
21303
|
-
* @class
|
|
21304
|
-
* @extends PIXI.Filter
|
|
21305
20767
|
* @memberof PIXI.filters
|
|
21306
20768
|
*/
|
|
21307
20769
|
var DisplacementFilter = /** @class */ (function (_super) {
|
|
21308
20770
|
__extends(DisplacementFilter, _super);
|
|
21309
20771
|
/**
|
|
21310
20772
|
* @param {PIXI.Sprite} sprite - The sprite used for the displacement map. (make sure its added to the scene!)
|
|
21311
|
-
* @param
|
|
20773
|
+
* @param scale - The scale of the displacement
|
|
21312
20774
|
*/
|
|
21313
20775
|
function DisplacementFilter(sprite, scale) {
|
|
21314
20776
|
var _this = this;
|
|
@@ -21335,10 +20797,10 @@ var DisplacementFilter = /** @class */ (function (_super) {
|
|
|
21335
20797
|
/**
|
|
21336
20798
|
* Applies the filter.
|
|
21337
20799
|
*
|
|
21338
|
-
* @param
|
|
21339
|
-
* @param
|
|
21340
|
-
* @param
|
|
21341
|
-
* @param
|
|
20800
|
+
* @param filterManager - The manager.
|
|
20801
|
+
* @param input - The input target.
|
|
20802
|
+
* @param output - The output target.
|
|
20803
|
+
* @param clearMode - clearMode.
|
|
21342
20804
|
*/
|
|
21343
20805
|
DisplacementFilter.prototype.apply = function (filterManager, input, output, clearMode) {
|
|
21344
20806
|
// fill maskMatrix with _normalized sprite texture coords_
|
|
@@ -21359,11 +20821,7 @@ var DisplacementFilter = /** @class */ (function (_super) {
|
|
|
21359
20821
|
filterManager.applyFilter(this, input, output, clearMode);
|
|
21360
20822
|
};
|
|
21361
20823
|
Object.defineProperty(DisplacementFilter.prototype, "map", {
|
|
21362
|
-
/**
|
|
21363
|
-
* The texture used for the displacement map. Must be power of 2 sized texture.
|
|
21364
|
-
*
|
|
21365
|
-
* @member {PIXI.Texture}
|
|
21366
|
-
*/
|
|
20824
|
+
/** The texture used for the displacement map. Must be power of 2 sized texture. */
|
|
21367
20825
|
get: function () {
|
|
21368
20826
|
return this.uniforms.mapSampler;
|
|
21369
20827
|
},
|
|
@@ -21395,8 +20853,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21395
20853
|
/* harmony export */ });
|
|
21396
20854
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
21397
20855
|
/*!
|
|
21398
|
-
* @pixi/filter-fxaa - v6.2.
|
|
21399
|
-
* Compiled
|
|
20856
|
+
* @pixi/filter-fxaa - v6.2.1
|
|
20857
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
21400
20858
|
*
|
|
21401
20859
|
* @pixi/filter-fxaa is licensed under the MIT License.
|
|
21402
20860
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -21442,10 +20900,7 @@ var fragment = "varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgb
|
|
|
21442
20900
|
*
|
|
21443
20901
|
* @see https://github.com/mitsuhiko/webgl-meincraft
|
|
21444
20902
|
*
|
|
21445
|
-
* @class
|
|
21446
|
-
* @extends PIXI.Filter
|
|
21447
20903
|
* @memberof PIXI.filters
|
|
21448
|
-
*
|
|
21449
20904
|
*/
|
|
21450
20905
|
var FXAAFilter = /** @class */ (function (_super) {
|
|
21451
20906
|
__extends(FXAAFilter, _super);
|
|
@@ -21475,8 +20930,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21475
20930
|
/* harmony export */ });
|
|
21476
20931
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
21477
20932
|
/*!
|
|
21478
|
-
* @pixi/filter-noise - v6.2.
|
|
21479
|
-
* Compiled
|
|
20933
|
+
* @pixi/filter-noise - v6.2.1
|
|
20934
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
21480
20935
|
*
|
|
21481
20936
|
* @pixi/filter-noise is licensed under the MIT License.
|
|
21482
20937
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -21519,8 +20974,6 @@ var fragment = "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying v
|
|
|
21519
20974
|
*
|
|
21520
20975
|
* original filter: https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js
|
|
21521
20976
|
*
|
|
21522
|
-
* @class
|
|
21523
|
-
* @extends PIXI.Filter
|
|
21524
20977
|
* @memberof PIXI.filters
|
|
21525
20978
|
* @author Vico @vicocotea
|
|
21526
20979
|
*/
|
|
@@ -21545,7 +20998,6 @@ var NoiseFilter = /** @class */ (function (_super) {
|
|
|
21545
20998
|
/**
|
|
21546
20999
|
* The amount of noise to apply, this value should be in the range (0, 1].
|
|
21547
21000
|
*
|
|
21548
|
-
* @member {number}
|
|
21549
21001
|
* @default 0.5
|
|
21550
21002
|
*/
|
|
21551
21003
|
get: function () {
|
|
@@ -21558,11 +21010,7 @@ var NoiseFilter = /** @class */ (function (_super) {
|
|
|
21558
21010
|
configurable: true
|
|
21559
21011
|
});
|
|
21560
21012
|
Object.defineProperty(NoiseFilter.prototype, "seed", {
|
|
21561
|
-
/**
|
|
21562
|
-
* A seed value to apply to the random noise generation. `Math.random()` is a good value to use.
|
|
21563
|
-
*
|
|
21564
|
-
* @member {number}
|
|
21565
|
-
*/
|
|
21013
|
+
/** A seed value to apply to the random noise generation. `Math.random()` is a good value to use. */
|
|
21566
21014
|
get: function () {
|
|
21567
21015
|
return this.uniforms.uSeed;
|
|
21568
21016
|
},
|
|
@@ -21606,8 +21054,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21606
21054
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
21607
21055
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
21608
21056
|
/*!
|
|
21609
|
-
* @pixi/graphics - v6.2.
|
|
21610
|
-
* Compiled
|
|
21057
|
+
* @pixi/graphics - v6.2.1
|
|
21058
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
21611
21059
|
*
|
|
21612
21060
|
* @pixi/graphics is licensed under the MIT License.
|
|
21613
21061
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -24680,8 +24128,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24680
24128
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
24681
24129
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
24682
24130
|
/*!
|
|
24683
|
-
* @pixi/interaction - v6.2.
|
|
24684
|
-
* Compiled
|
|
24131
|
+
* @pixi/interaction - v6.2.1
|
|
24132
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
24685
24133
|
*
|
|
24686
24134
|
* @pixi/interaction is licensed under the MIT License.
|
|
24687
24135
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -26944,8 +26392,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26944
26392
|
/* harmony export */ });
|
|
26945
26393
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
26946
26394
|
/*!
|
|
26947
|
-
* @pixi/loaders - v6.2.
|
|
26948
|
-
* Compiled
|
|
26395
|
+
* @pixi/loaders - v6.2.1
|
|
26396
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
26949
26397
|
*
|
|
26950
26398
|
* @pixi/loaders is licensed under the MIT License.
|
|
26951
26399
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -28993,8 +28441,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28993
28441
|
/* harmony export */ "groupD8": () => (/* binding */ groupD8)
|
|
28994
28442
|
/* harmony export */ });
|
|
28995
28443
|
/*!
|
|
28996
|
-
* @pixi/math - v6.2.
|
|
28997
|
-
* Compiled
|
|
28444
|
+
* @pixi/math - v6.2.1
|
|
28445
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
28998
28446
|
*
|
|
28999
28447
|
* @pixi/math is licensed under the MIT License.
|
|
29000
28448
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -29049,64 +28497,33 @@ var SHAPES;
|
|
|
29049
28497
|
*
|
|
29050
28498
|
* @memberof PIXI
|
|
29051
28499
|
* @typedef {object} ISize
|
|
29052
|
-
* @property {number} width - Width component
|
|
29053
|
-
* @property {number} height - Height component
|
|
29054
28500
|
*/
|
|
29055
28501
|
/**
|
|
29056
28502
|
* Rectangle object is an area defined by its position, as indicated by its top-left corner
|
|
29057
28503
|
* point (x, y) and by its width and its height.
|
|
29058
28504
|
*
|
|
29059
|
-
* @class
|
|
29060
28505
|
* @memberof PIXI
|
|
29061
28506
|
*/
|
|
29062
28507
|
var Rectangle = /** @class */ (function () {
|
|
29063
28508
|
/**
|
|
29064
|
-
* @param
|
|
29065
|
-
* @param
|
|
29066
|
-
* @param
|
|
29067
|
-
* @param
|
|
28509
|
+
* @param x - The X coordinate of the upper-left corner of the rectangle
|
|
28510
|
+
* @param y - The Y coordinate of the upper-left corner of the rectangle
|
|
28511
|
+
* @param width - The overall width of the rectangle
|
|
28512
|
+
* @param height - The overall height of the rectangle
|
|
29068
28513
|
*/
|
|
29069
28514
|
function Rectangle(x, y, width, height) {
|
|
29070
28515
|
if (x === void 0) { x = 0; }
|
|
29071
28516
|
if (y === void 0) { y = 0; }
|
|
29072
28517
|
if (width === void 0) { width = 0; }
|
|
29073
28518
|
if (height === void 0) { height = 0; }
|
|
29074
|
-
/**
|
|
29075
|
-
* @member {number}
|
|
29076
|
-
* @default 0
|
|
29077
|
-
*/
|
|
29078
28519
|
this.x = Number(x);
|
|
29079
|
-
/**
|
|
29080
|
-
* @member {number}
|
|
29081
|
-
* @default 0
|
|
29082
|
-
*/
|
|
29083
28520
|
this.y = Number(y);
|
|
29084
|
-
/**
|
|
29085
|
-
* @member {number}
|
|
29086
|
-
* @default 0
|
|
29087
|
-
*/
|
|
29088
28521
|
this.width = Number(width);
|
|
29089
|
-
/**
|
|
29090
|
-
* @member {number}
|
|
29091
|
-
* @default 0
|
|
29092
|
-
*/
|
|
29093
28522
|
this.height = Number(height);
|
|
29094
|
-
/**
|
|
29095
|
-
* The type of the object, mainly used to avoid `instanceof` checks
|
|
29096
|
-
*
|
|
29097
|
-
* @member {number}
|
|
29098
|
-
* @readOnly
|
|
29099
|
-
* @default PIXI.SHAPES.RECT
|
|
29100
|
-
* @see PIXI.SHAPES
|
|
29101
|
-
*/
|
|
29102
28523
|
this.type = SHAPES.RECT;
|
|
29103
28524
|
}
|
|
29104
28525
|
Object.defineProperty(Rectangle.prototype, "left", {
|
|
29105
|
-
/**
|
|
29106
|
-
* returns the left edge of the rectangle
|
|
29107
|
-
*
|
|
29108
|
-
* @member {number}
|
|
29109
|
-
*/
|
|
28526
|
+
/** Returns the left edge of the rectangle. */
|
|
29110
28527
|
get: function () {
|
|
29111
28528
|
return this.x;
|
|
29112
28529
|
},
|
|
@@ -29114,11 +28531,7 @@ var Rectangle = /** @class */ (function () {
|
|
|
29114
28531
|
configurable: true
|
|
29115
28532
|
});
|
|
29116
28533
|
Object.defineProperty(Rectangle.prototype, "right", {
|
|
29117
|
-
/**
|
|
29118
|
-
* returns the right edge of the rectangle
|
|
29119
|
-
*
|
|
29120
|
-
* @member {number}
|
|
29121
|
-
*/
|
|
28534
|
+
/** Returns the right edge of the rectangle. */
|
|
29122
28535
|
get: function () {
|
|
29123
28536
|
return this.x + this.width;
|
|
29124
28537
|
},
|
|
@@ -29126,11 +28539,7 @@ var Rectangle = /** @class */ (function () {
|
|
|
29126
28539
|
configurable: true
|
|
29127
28540
|
});
|
|
29128
28541
|
Object.defineProperty(Rectangle.prototype, "top", {
|
|
29129
|
-
/**
|
|
29130
|
-
* returns the top edge of the rectangle
|
|
29131
|
-
*
|
|
29132
|
-
* @member {number}
|
|
29133
|
-
*/
|
|
28542
|
+
/** Returns the top edge of the rectangle. */
|
|
29134
28543
|
get: function () {
|
|
29135
28544
|
return this.y;
|
|
29136
28545
|
},
|
|
@@ -29138,11 +28547,7 @@ var Rectangle = /** @class */ (function () {
|
|
|
29138
28547
|
configurable: true
|
|
29139
28548
|
});
|
|
29140
28549
|
Object.defineProperty(Rectangle.prototype, "bottom", {
|
|
29141
|
-
/**
|
|
29142
|
-
* returns the bottom edge of the rectangle
|
|
29143
|
-
*
|
|
29144
|
-
* @member {number}
|
|
29145
|
-
*/
|
|
28550
|
+
/** Returns the bottom edge of the rectangle. */
|
|
29146
28551
|
get: function () {
|
|
29147
28552
|
return this.y + this.height;
|
|
29148
28553
|
},
|
|
@@ -29150,14 +28555,7 @@ var Rectangle = /** @class */ (function () {
|
|
|
29150
28555
|
configurable: true
|
|
29151
28556
|
});
|
|
29152
28557
|
Object.defineProperty(Rectangle, "EMPTY", {
|
|
29153
|
-
/**
|
|
29154
|
-
* A constant empty rectangle.
|
|
29155
|
-
*
|
|
29156
|
-
* @static
|
|
29157
|
-
* @constant
|
|
29158
|
-
* @member {PIXI.Rectangle}
|
|
29159
|
-
* @return {PIXI.Rectangle} An empty rectangle
|
|
29160
|
-
*/
|
|
28558
|
+
/** A constant empty rectangle. */
|
|
29161
28559
|
get: function () {
|
|
29162
28560
|
return new Rectangle(0, 0, 0, 0);
|
|
29163
28561
|
},
|
|
@@ -29167,7 +28565,7 @@ var Rectangle = /** @class */ (function () {
|
|
|
29167
28565
|
/**
|
|
29168
28566
|
* Creates a clone of this Rectangle
|
|
29169
28567
|
*
|
|
29170
|
-
* @return
|
|
28568
|
+
* @return a copy of the rectangle
|
|
29171
28569
|
*/
|
|
29172
28570
|
Rectangle.prototype.clone = function () {
|
|
29173
28571
|
return new Rectangle(this.x, this.y, this.width, this.height);
|
|
@@ -29175,8 +28573,8 @@ var Rectangle = /** @class */ (function () {
|
|
|
29175
28573
|
/**
|
|
29176
28574
|
* Copies another rectangle to this one.
|
|
29177
28575
|
*
|
|
29178
|
-
* @param
|
|
29179
|
-
* @return
|
|
28576
|
+
* @param rectangle - The rectangle to copy from.
|
|
28577
|
+
* @return Returns itself.
|
|
29180
28578
|
*/
|
|
29181
28579
|
Rectangle.prototype.copyFrom = function (rectangle) {
|
|
29182
28580
|
this.x = rectangle.x;
|
|
@@ -29188,8 +28586,8 @@ var Rectangle = /** @class */ (function () {
|
|
|
29188
28586
|
/**
|
|
29189
28587
|
* Copies this rectangle to another one.
|
|
29190
28588
|
*
|
|
29191
|
-
* @param
|
|
29192
|
-
* @return
|
|
28589
|
+
* @param rectangle - The rectangle to copy to.
|
|
28590
|
+
* @return Returns given parameter.
|
|
29193
28591
|
*/
|
|
29194
28592
|
Rectangle.prototype.copyTo = function (rectangle) {
|
|
29195
28593
|
rectangle.x = this.x;
|
|
@@ -29201,9 +28599,9 @@ var Rectangle = /** @class */ (function () {
|
|
|
29201
28599
|
/**
|
|
29202
28600
|
* Checks whether the x and y coordinates given are contained within this Rectangle
|
|
29203
28601
|
*
|
|
29204
|
-
* @param
|
|
29205
|
-
* @param
|
|
29206
|
-
* @return
|
|
28602
|
+
* @param x - The X coordinate of the point to test
|
|
28603
|
+
* @param y - The Y coordinate of the point to test
|
|
28604
|
+
* @return Whether the x/y coordinates are within this Rectangle
|
|
29207
28605
|
*/
|
|
29208
28606
|
Rectangle.prototype.contains = function (x, y) {
|
|
29209
28607
|
if (this.width <= 0 || this.height <= 0) {
|
|
@@ -29220,9 +28618,9 @@ var Rectangle = /** @class */ (function () {
|
|
|
29220
28618
|
* Pads the rectangle making it grow in all directions.
|
|
29221
28619
|
* If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
|
|
29222
28620
|
*
|
|
29223
|
-
* @param
|
|
29224
|
-
* @param
|
|
29225
|
-
* @return
|
|
28621
|
+
* @param paddingX - The horizontal padding amount.
|
|
28622
|
+
* @param paddingY - The vertical padding amount.
|
|
28623
|
+
* @return Returns itself.
|
|
29226
28624
|
*/
|
|
29227
28625
|
Rectangle.prototype.pad = function (paddingX, paddingY) {
|
|
29228
28626
|
if (paddingX === void 0) { paddingX = 0; }
|
|
@@ -29236,8 +28634,8 @@ var Rectangle = /** @class */ (function () {
|
|
|
29236
28634
|
/**
|
|
29237
28635
|
* Fits this rectangle around the passed one.
|
|
29238
28636
|
*
|
|
29239
|
-
* @param
|
|
29240
|
-
* @return
|
|
28637
|
+
* @param rectangle - The rectangle to fit.
|
|
28638
|
+
* @return Returns itself.
|
|
29241
28639
|
*/
|
|
29242
28640
|
Rectangle.prototype.fit = function (rectangle) {
|
|
29243
28641
|
var x1 = Math.max(this.x, rectangle.x);
|
|
@@ -29253,9 +28651,9 @@ var Rectangle = /** @class */ (function () {
|
|
|
29253
28651
|
/**
|
|
29254
28652
|
* Enlarges rectangle that way its corners lie on grid
|
|
29255
28653
|
*
|
|
29256
|
-
* @param
|
|
29257
|
-
* @param
|
|
29258
|
-
* @return
|
|
28654
|
+
* @param resolution - resolution
|
|
28655
|
+
* @param eps - precision
|
|
28656
|
+
* @return Returns itself.
|
|
29259
28657
|
*/
|
|
29260
28658
|
Rectangle.prototype.ceil = function (resolution, eps) {
|
|
29261
28659
|
if (resolution === void 0) { resolution = 1; }
|
|
@@ -29271,8 +28669,8 @@ var Rectangle = /** @class */ (function () {
|
|
|
29271
28669
|
/**
|
|
29272
28670
|
* Enlarges this rectangle to include the passed rectangle.
|
|
29273
28671
|
*
|
|
29274
|
-
* @param
|
|
29275
|
-
* @return
|
|
28672
|
+
* @param rectangle - The rectangle to include.
|
|
28673
|
+
* @return Returns itself.
|
|
29276
28674
|
*/
|
|
29277
28675
|
Rectangle.prototype.enlarge = function (rectangle) {
|
|
29278
28676
|
var x1 = Math.min(this.x, rectangle.x);
|
|
@@ -29417,7 +28815,6 @@ var Ellipse = /** @class */ (function () {
|
|
|
29417
28815
|
/**
|
|
29418
28816
|
* A class to define a shape via user defined coordinates.
|
|
29419
28817
|
*
|
|
29420
|
-
* @class
|
|
29421
28818
|
* @memberof PIXI
|
|
29422
28819
|
*/
|
|
29423
28820
|
var Polygon = /** @class */ (function () {
|
|
@@ -29444,32 +28841,14 @@ var Polygon = /** @class */ (function () {
|
|
|
29444
28841
|
}
|
|
29445
28842
|
flat = p;
|
|
29446
28843
|
}
|
|
29447
|
-
/**
|
|
29448
|
-
* An array of the points of this polygon
|
|
29449
|
-
*
|
|
29450
|
-
* @member {number[]}
|
|
29451
|
-
*/
|
|
29452
28844
|
this.points = flat;
|
|
29453
|
-
/**
|
|
29454
|
-
* The type of the object, mainly used to avoid `instanceof` checks
|
|
29455
|
-
*
|
|
29456
|
-
* @member {number}
|
|
29457
|
-
* @readOnly
|
|
29458
|
-
* @default PIXI.SHAPES.POLY
|
|
29459
|
-
* @see PIXI.SHAPES
|
|
29460
|
-
*/
|
|
29461
28845
|
this.type = SHAPES.POLY;
|
|
29462
|
-
/**
|
|
29463
|
-
* `false` after moveTo, `true` after `closePath`. In all other cases it is `true`.
|
|
29464
|
-
* @member {boolean}
|
|
29465
|
-
* @default true
|
|
29466
|
-
*/
|
|
29467
28846
|
this.closeStroke = true;
|
|
29468
28847
|
}
|
|
29469
28848
|
/**
|
|
29470
|
-
* Creates a clone of this polygon
|
|
28849
|
+
* Creates a clone of this polygon.
|
|
29471
28850
|
*
|
|
29472
|
-
* @return
|
|
28851
|
+
* @return - A copy of the polygon.
|
|
29473
28852
|
*/
|
|
29474
28853
|
Polygon.prototype.clone = function () {
|
|
29475
28854
|
var points = this.points.slice();
|
|
@@ -29478,11 +28857,11 @@ var Polygon = /** @class */ (function () {
|
|
|
29478
28857
|
return polygon;
|
|
29479
28858
|
};
|
|
29480
28859
|
/**
|
|
29481
|
-
* Checks whether the x and y coordinates passed to this function are contained within this polygon
|
|
28860
|
+
* Checks whether the x and y coordinates passed to this function are contained within this polygon.
|
|
29482
28861
|
*
|
|
29483
|
-
* @param
|
|
29484
|
-
* @param
|
|
29485
|
-
* @return
|
|
28862
|
+
* @param x - The X coordinate of the point to test.
|
|
28863
|
+
* @param y - The Y coordinate of the point to test.
|
|
28864
|
+
* @return - Whether the x/y coordinates are within this polygon.
|
|
29486
28865
|
*/
|
|
29487
28866
|
Polygon.prototype.contains = function (x, y) {
|
|
29488
28867
|
var inside = false;
|
|
@@ -29586,25 +28965,26 @@ var RoundedRectangle = /** @class */ (function () {
|
|
|
29586
28965
|
}
|
|
29587
28966
|
if (x >= this.x && x <= this.x + this.width) {
|
|
29588
28967
|
if (y >= this.y && y <= this.y + this.height) {
|
|
29589
|
-
|
|
29590
|
-
|
|
28968
|
+
var radius = Math.max(0, Math.min(this.radius, Math.min(this.width, this.height) / 2));
|
|
28969
|
+
if ((y >= this.y + radius && y <= this.y + this.height - radius)
|
|
28970
|
+
|| (x >= this.x + radius && x <= this.x + this.width - radius)) {
|
|
29591
28971
|
return true;
|
|
29592
28972
|
}
|
|
29593
|
-
var dx = x - (this.x +
|
|
29594
|
-
var dy = y - (this.y +
|
|
29595
|
-
var radius2 =
|
|
28973
|
+
var dx = x - (this.x + radius);
|
|
28974
|
+
var dy = y - (this.y + radius);
|
|
28975
|
+
var radius2 = radius * radius;
|
|
29596
28976
|
if ((dx * dx) + (dy * dy) <= radius2) {
|
|
29597
28977
|
return true;
|
|
29598
28978
|
}
|
|
29599
|
-
dx = x - (this.x + this.width -
|
|
28979
|
+
dx = x - (this.x + this.width - radius);
|
|
29600
28980
|
if ((dx * dx) + (dy * dy) <= radius2) {
|
|
29601
28981
|
return true;
|
|
29602
28982
|
}
|
|
29603
|
-
dy = y - (this.y + this.height -
|
|
28983
|
+
dy = y - (this.y + this.height - radius);
|
|
29604
28984
|
if ((dx * dx) + (dy * dy) <= radius2) {
|
|
29605
28985
|
return true;
|
|
29606
28986
|
}
|
|
29607
|
-
dx = x - (this.x +
|
|
28987
|
+
dx = x - (this.x + radius);
|
|
29608
28988
|
if ((dx * dx) + (dy * dy) <= radius2) {
|
|
29609
28989
|
return true;
|
|
29610
28990
|
}
|
|
@@ -30706,8 +30086,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30706
30086
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
30707
30087
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
30708
30088
|
/*!
|
|
30709
|
-
* @pixi/mesh-extras - v6.2.
|
|
30710
|
-
* Compiled
|
|
30089
|
+
* @pixi/mesh-extras - v6.2.1
|
|
30090
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
30711
30091
|
*
|
|
30712
30092
|
* @pixi/mesh-extras is licensed under the MIT License.
|
|
30713
30093
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31390,8 +30770,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31390
30770
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
31391
30771
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
31392
30772
|
/*!
|
|
31393
|
-
* @pixi/mesh - v6.2.
|
|
31394
|
-
* Compiled
|
|
30773
|
+
* @pixi/mesh - v6.2.1
|
|
30774
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
31395
30775
|
*
|
|
31396
30776
|
* @pixi/mesh is licensed under the MIT License.
|
|
31397
30777
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31494,7 +30874,7 @@ var tempPolygon = new _pixi_math__WEBPACK_IMPORTED_MODULE_1__.Polygon();
|
|
|
31494
30874
|
*
|
|
31495
30875
|
* This class empowers you to have maximum flexibility to render any kind of WebGL visuals you can think of.
|
|
31496
30876
|
* This class assumes a certain level of WebGL knowledge.
|
|
31497
|
-
* If you know a bit this should abstract enough away to make
|
|
30877
|
+
* If you know a bit this should abstract enough away to make your life easier!
|
|
31498
30878
|
*
|
|
31499
30879
|
* Pretty much ALL WebGL can be broken down into the following:
|
|
31500
30880
|
* - Geometry - The structure and data for the mesh. This can include anything from positions, uvs, normals, colors etc..
|
|
@@ -31503,92 +30883,32 @@ var tempPolygon = new _pixi_math__WEBPACK_IMPORTED_MODULE_1__.Polygon();
|
|
|
31503
30883
|
*
|
|
31504
30884
|
* Through a combination of the above elements you can render anything you want, 2D or 3D!
|
|
31505
30885
|
*
|
|
31506
|
-
* @class
|
|
31507
|
-
* @extends PIXI.Container
|
|
31508
30886
|
* @memberof PIXI
|
|
31509
30887
|
*/
|
|
31510
30888
|
var Mesh = /** @class */ (function (_super) {
|
|
31511
30889
|
__extends(Mesh, _super);
|
|
31512
30890
|
/**
|
|
31513
|
-
* @param
|
|
31514
|
-
* @param {PIXI.MeshMaterial} shader -
|
|
31515
|
-
* @param
|
|
30891
|
+
* @param geometry - The geometry the mesh will use.
|
|
30892
|
+
* @param {PIXI.MeshMaterial} shader - The shader the mesh will use.
|
|
30893
|
+
* @param state - The state that the WebGL context is required to be in to render the mesh
|
|
31516
30894
|
* if no state is provided, uses {@link PIXI.State.for2d} to create a 2D state for PixiJS.
|
|
31517
|
-
* @param
|
|
30895
|
+
* @param drawMode - The drawMode, can be any of the {@link PIXI.DRAW_MODES} constants.
|
|
31518
30896
|
*/
|
|
31519
30897
|
function Mesh(geometry, shader, state, drawMode) {
|
|
31520
30898
|
if (drawMode === void 0) { drawMode = _pixi_constants__WEBPACK_IMPORTED_MODULE_2__.DRAW_MODES.TRIANGLES; }
|
|
31521
30899
|
var _this = _super.call(this) || this;
|
|
31522
30900
|
_this.geometry = geometry;
|
|
31523
|
-
/**
|
|
31524
|
-
* Represents the vertex and fragment shaders that processes the geometry and runs on the GPU.
|
|
31525
|
-
* Can be shared between multiple Mesh objects.
|
|
31526
|
-
* @member {PIXI.Shader|PIXI.MeshMaterial}
|
|
31527
|
-
*/
|
|
31528
30901
|
_this.shader = shader;
|
|
31529
|
-
/**
|
|
31530
|
-
* Represents the WebGL state the Mesh required to render, excludes shader and geometry. E.g.,
|
|
31531
|
-
* blend mode, culling, depth testing, direction of rendering triangles, backface, etc.
|
|
31532
|
-
* @member {PIXI.State}
|
|
31533
|
-
*/
|
|
31534
30902
|
_this.state = state || _pixi_core__WEBPACK_IMPORTED_MODULE_0__.State.for2d();
|
|
31535
|
-
/**
|
|
31536
|
-
* The way the Mesh should be drawn, can be any of the {@link PIXI.DRAW_MODES} constants.
|
|
31537
|
-
*
|
|
31538
|
-
* @member {number}
|
|
31539
|
-
* @see PIXI.DRAW_MODES
|
|
31540
|
-
*/
|
|
31541
30903
|
_this.drawMode = drawMode;
|
|
31542
|
-
/**
|
|
31543
|
-
* Typically the index of the IndexBuffer where to start drawing.
|
|
31544
|
-
* @member {number}
|
|
31545
|
-
* @default 0
|
|
31546
|
-
*/
|
|
31547
30904
|
_this.start = 0;
|
|
31548
|
-
/**
|
|
31549
|
-
* How much of the geometry to draw, by default `0` renders everything.
|
|
31550
|
-
* @member {number}
|
|
31551
|
-
* @default 0
|
|
31552
|
-
*/
|
|
31553
30905
|
_this.size = 0;
|
|
31554
|
-
/**
|
|
31555
|
-
* these are used as easy access for batching
|
|
31556
|
-
* @member {Float32Array}
|
|
31557
|
-
* @private
|
|
31558
|
-
*/
|
|
31559
30906
|
_this.uvs = null;
|
|
31560
|
-
/**
|
|
31561
|
-
* these are used as easy access for batching
|
|
31562
|
-
* @member {Uint16Array}
|
|
31563
|
-
* @private
|
|
31564
|
-
*/
|
|
31565
30907
|
_this.indices = null;
|
|
31566
|
-
/**
|
|
31567
|
-
* this is the caching layer used by the batcher
|
|
31568
|
-
* @member {Float32Array}
|
|
31569
|
-
* @private
|
|
31570
|
-
*/
|
|
31571
30908
|
_this.vertexData = new Float32Array(1);
|
|
31572
|
-
/**
|
|
31573
|
-
* If geometry is changed used to decide to re-transform
|
|
31574
|
-
* the vertexData.
|
|
31575
|
-
* @member {number}
|
|
31576
|
-
* @private
|
|
31577
|
-
*/
|
|
31578
30909
|
_this.vertexDirty = -1;
|
|
31579
30910
|
_this._transformID = -1;
|
|
31580
|
-
/**
|
|
31581
|
-
* Internal roundPixels field
|
|
31582
|
-
*
|
|
31583
|
-
* @member {boolean}
|
|
31584
|
-
* @private
|
|
31585
|
-
*/
|
|
31586
30911
|
_this._roundPixels = _pixi_settings__WEBPACK_IMPORTED_MODULE_4__.settings.ROUND_PIXELS;
|
|
31587
|
-
/**
|
|
31588
|
-
* Batched UV's are cached for atlas textures
|
|
31589
|
-
* @member {PIXI.MeshBatchUvs}
|
|
31590
|
-
* @private
|
|
31591
|
-
*/
|
|
31592
30912
|
_this.batchUvs = null;
|
|
31593
30913
|
return _this;
|
|
31594
30914
|
}
|
|
@@ -31597,7 +30917,6 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31597
30917
|
* Includes vertex positions, face indices, normals, colors, UVs, and
|
|
31598
30918
|
* custom attributes within buffers, reducing the cost of passing all
|
|
31599
30919
|
* this data to the GPU. Can be shared between multiple Mesh objects.
|
|
31600
|
-
* @member {PIXI.Geometry}
|
|
31601
30920
|
*/
|
|
31602
30921
|
get: function () {
|
|
31603
30922
|
return this._geometry;
|
|
@@ -31624,7 +30943,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31624
30943
|
Object.defineProperty(Mesh.prototype, "uvBuffer", {
|
|
31625
30944
|
/**
|
|
31626
30945
|
* To change mesh uv's, change its uvBuffer data and increment its _updateID.
|
|
31627
|
-
*
|
|
30946
|
+
*
|
|
31628
30947
|
* @readonly
|
|
31629
30948
|
*/
|
|
31630
30949
|
get: function () {
|
|
@@ -31637,7 +30956,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31637
30956
|
/**
|
|
31638
30957
|
* To change mesh vertices, change its uvBuffer data and increment its _updateID.
|
|
31639
30958
|
* Incrementing _updateID is optional because most of Mesh objects do it anyway.
|
|
31640
|
-
*
|
|
30959
|
+
*
|
|
31641
30960
|
* @readonly
|
|
31642
30961
|
*/
|
|
31643
30962
|
get: function () {
|
|
@@ -31650,10 +30969,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31650
30969
|
get: function () {
|
|
31651
30970
|
return this.shader;
|
|
31652
30971
|
},
|
|
31653
|
-
/**
|
|
31654
|
-
* Alias for {@link PIXI.Mesh#shader}.
|
|
31655
|
-
* @member {PIXI.MeshMaterial}
|
|
31656
|
-
*/
|
|
30972
|
+
/** Alias for {@link PIXI.Mesh#shader}. */
|
|
31657
30973
|
set: function (value) {
|
|
31658
30974
|
this.shader = value;
|
|
31659
30975
|
},
|
|
@@ -31668,9 +30984,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31668
30984
|
* The blend mode to be applied to the Mesh. Apply a value of
|
|
31669
30985
|
* `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.
|
|
31670
30986
|
*
|
|
31671
|
-
* @member {number}
|
|
31672
30987
|
* @default PIXI.BLEND_MODES.NORMAL;
|
|
31673
|
-
* @see PIXI.BLEND_MODES
|
|
31674
30988
|
*/
|
|
31675
30989
|
set: function (value) {
|
|
31676
30990
|
this.state.blendMode = value;
|
|
@@ -31688,7 +31002,6 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31688
31002
|
* The main disadvantage is movement of objects may appear less smooth.
|
|
31689
31003
|
* To set the global default, change {@link PIXI.settings.ROUND_PIXELS}
|
|
31690
31004
|
*
|
|
31691
|
-
* @member {boolean}
|
|
31692
31005
|
* @default false
|
|
31693
31006
|
*/
|
|
31694
31007
|
set: function (value) {
|
|
@@ -31706,7 +31019,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31706
31019
|
* `0xFFFFFF` will remove any tint effect.
|
|
31707
31020
|
*
|
|
31708
31021
|
* Null for non-MeshMaterial shaders
|
|
31709
|
-
*
|
|
31022
|
+
*
|
|
31710
31023
|
* @default 0xFFFFFF
|
|
31711
31024
|
*/
|
|
31712
31025
|
get: function () {
|
|
@@ -31723,7 +31036,6 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31723
31036
|
* The texture that the Mesh uses.
|
|
31724
31037
|
*
|
|
31725
31038
|
* Null for non-MeshMaterial shaders
|
|
31726
|
-
* @member {PIXI.Texture}
|
|
31727
31039
|
*/
|
|
31728
31040
|
get: function () {
|
|
31729
31041
|
return 'texture' in this.shader ? this.shader.texture : null;
|
|
@@ -31736,8 +31048,8 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31736
31048
|
});
|
|
31737
31049
|
/**
|
|
31738
31050
|
* Standard renderer draw.
|
|
31739
|
-
*
|
|
31740
|
-
* @param
|
|
31051
|
+
*
|
|
31052
|
+
* @param renderer - Instance to renderer.
|
|
31741
31053
|
*/
|
|
31742
31054
|
Mesh.prototype._render = function (renderer) {
|
|
31743
31055
|
// set properties for batching..
|
|
@@ -31756,8 +31068,8 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31756
31068
|
};
|
|
31757
31069
|
/**
|
|
31758
31070
|
* Standard non-batching way of rendering.
|
|
31759
|
-
*
|
|
31760
|
-
* @param
|
|
31071
|
+
*
|
|
31072
|
+
* @param renderer - Instance to renderer.
|
|
31761
31073
|
*/
|
|
31762
31074
|
Mesh.prototype._renderDefault = function (renderer) {
|
|
31763
31075
|
var shader = this.shader;
|
|
@@ -31778,8 +31090,8 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31778
31090
|
};
|
|
31779
31091
|
/**
|
|
31780
31092
|
* Rendering by using the Batch system.
|
|
31781
|
-
*
|
|
31782
|
-
* @param
|
|
31093
|
+
*
|
|
31094
|
+
* @param renderer - Instance to renderer.
|
|
31783
31095
|
*/
|
|
31784
31096
|
Mesh.prototype._renderToBatch = function (renderer) {
|
|
31785
31097
|
var geometry = this.geometry;
|
|
@@ -31797,9 +31109,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31797
31109
|
renderer.batch.setObjectRenderer(renderer.plugins[pluginName]);
|
|
31798
31110
|
renderer.plugins[pluginName].render(this);
|
|
31799
31111
|
};
|
|
31800
|
-
/**
|
|
31801
|
-
* Updates vertexData field based on transform and vertices
|
|
31802
|
-
*/
|
|
31112
|
+
/** Updates vertexData field based on transform and vertices. */
|
|
31803
31113
|
Mesh.prototype.calculateVertices = function () {
|
|
31804
31114
|
var geometry = this.geometry;
|
|
31805
31115
|
var verticesBuffer = geometry.buffers[0];
|
|
@@ -31834,9 +31144,7 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31834
31144
|
}
|
|
31835
31145
|
this.vertexDirty = vertexDirtyId;
|
|
31836
31146
|
};
|
|
31837
|
-
/**
|
|
31838
|
-
* Updates uv field based on from geometry uv's or batchUvs
|
|
31839
|
-
*/
|
|
31147
|
+
/** Updates uv field based on from geometry uv's or batchUvs. */
|
|
31840
31148
|
Mesh.prototype.calculateUvs = function () {
|
|
31841
31149
|
var geomUvs = this.geometry.buffers[1];
|
|
31842
31150
|
var shader = this.shader;
|
|
@@ -31854,8 +31162,6 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31854
31162
|
/**
|
|
31855
31163
|
* Updates the bounds of the mesh as a rectangle. The bounds calculation takes the worldTransform into account.
|
|
31856
31164
|
* there must be a aVertexPosition attribute present in the geometry for bounds to be calculated correctly.
|
|
31857
|
-
*
|
|
31858
|
-
* @protected
|
|
31859
31165
|
*/
|
|
31860
31166
|
Mesh.prototype._calculateBounds = function () {
|
|
31861
31167
|
this.calculateVertices();
|
|
@@ -31864,8 +31170,8 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31864
31170
|
/**
|
|
31865
31171
|
* Tests if a point is inside this mesh. Works only for PIXI.DRAW_MODES.TRIANGLES.
|
|
31866
31172
|
*
|
|
31867
|
-
* @param
|
|
31868
|
-
* @return
|
|
31173
|
+
* @param point - The point to test.
|
|
31174
|
+
* @return - The result of the test.
|
|
31869
31175
|
*/
|
|
31870
31176
|
Mesh.prototype.containsPoint = function (point) {
|
|
31871
31177
|
if (!this.getBounds().contains(point.x, point.y)) {
|
|
@@ -31893,14 +31199,6 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31893
31199
|
}
|
|
31894
31200
|
return false;
|
|
31895
31201
|
};
|
|
31896
|
-
/**
|
|
31897
|
-
* Destroys the Mesh object.
|
|
31898
|
-
*
|
|
31899
|
-
* @param {object|boolean} [options] - Options parameter. A boolean will act as if all
|
|
31900
|
-
* options have been set to that value
|
|
31901
|
-
* @param {boolean} [options.children=false] - if set to true, all the children will have
|
|
31902
|
-
* their destroy method called as well. 'options' will be passed on to those calls.
|
|
31903
|
-
*/
|
|
31904
31202
|
Mesh.prototype.destroy = function (options) {
|
|
31905
31203
|
_super.prototype.destroy.call(this, options);
|
|
31906
31204
|
if (this._cachedTexture) {
|
|
@@ -31917,9 +31215,6 @@ var Mesh = /** @class */ (function (_super) {
|
|
|
31917
31215
|
/**
|
|
31918
31216
|
* The maximum number of vertices to consider batchable. Generally, the complexity
|
|
31919
31217
|
* of the geometry.
|
|
31920
|
-
* @memberof PIXI.Mesh
|
|
31921
|
-
* @static
|
|
31922
|
-
* @member {number} BATCHABLE_SIZE
|
|
31923
31218
|
*/
|
|
31924
31219
|
Mesh.BATCHABLE_SIZE = 100;
|
|
31925
31220
|
return Mesh;
|
|
@@ -32150,8 +31445,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32150
31445
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
32151
31446
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
32152
31447
|
/*!
|
|
32153
|
-
* @pixi/mixin-cache-as-bitmap - v6.2.
|
|
32154
|
-
* Compiled
|
|
31448
|
+
* @pixi/mixin-cache-as-bitmap - v6.2.1
|
|
31449
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
32155
31450
|
*
|
|
32156
31451
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
|
32157
31452
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32164,8 +31459,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32164
31459
|
|
|
32165
31460
|
|
|
32166
31461
|
/*!
|
|
32167
|
-
* @pixi/constants - v6.2.
|
|
32168
|
-
* Compiled
|
|
31462
|
+
* @pixi/constants - v6.2.1
|
|
31463
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
32169
31464
|
*
|
|
32170
31465
|
* @pixi/constants is licensed under the MIT License.
|
|
32171
31466
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32859,7 +32154,7 @@ _pixi_display__WEBPACK_IMPORTED_MODULE_2__.DisplayObject.prototype._initCachedDi
|
|
|
32859
32154
|
// TODO pass an object to clone too? saves having to create a new one each time!
|
|
32860
32155
|
var bounds = this.getLocalBounds(null, true).clone();
|
|
32861
32156
|
// add some padding!
|
|
32862
|
-
if (this.filters) {
|
|
32157
|
+
if (this.filters && this.filters.length) {
|
|
32863
32158
|
var padding = this.filters[0].padding;
|
|
32864
32159
|
bounds.pad(padding);
|
|
32865
32160
|
}
|
|
@@ -33070,8 +32365,8 @@ _pixi_display__WEBPACK_IMPORTED_MODULE_2__.DisplayObject.prototype._cacheAsBitma
|
|
|
33070
32365
|
__webpack_require__.r(__webpack_exports__);
|
|
33071
32366
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
33072
32367
|
/*!
|
|
33073
|
-
* @pixi/mixin-get-child-by-name - v6.2.
|
|
33074
|
-
* Compiled
|
|
32368
|
+
* @pixi/mixin-get-child-by-name - v6.2.1
|
|
32369
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
33075
32370
|
*
|
|
33076
32371
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
|
33077
32372
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33132,8 +32427,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33132
32427
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
33133
32428
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
33134
32429
|
/*!
|
|
33135
|
-
* @pixi/mixin-get-global-position - v6.2.
|
|
33136
|
-
* Compiled
|
|
32430
|
+
* @pixi/mixin-get-global-position - v6.2.1
|
|
32431
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
33137
32432
|
*
|
|
33138
32433
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
|
33139
32434
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33187,8 +32482,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33187
32482
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
33188
32483
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
33189
32484
|
/*!
|
|
33190
|
-
* @pixi/particle-container - v6.2.
|
|
33191
|
-
* Compiled
|
|
32485
|
+
* @pixi/particle-container - v6.2.1
|
|
32486
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
33192
32487
|
*
|
|
33193
32488
|
* @pixi/particle-container is licensed under the MIT License.
|
|
33194
32489
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34012,8 +33307,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34012
33307
|
/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
|
34013
33308
|
/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__);
|
|
34014
33309
|
/*!
|
|
34015
|
-
* @pixi/polyfill - v6.2.
|
|
34016
|
-
* Compiled
|
|
33310
|
+
* @pixi/polyfill - v6.2.1
|
|
33311
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
34017
33312
|
*
|
|
34018
33313
|
* @pixi/polyfill is licensed under the MIT License.
|
|
34019
33314
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34149,8 +33444,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34149
33444
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
34150
33445
|
/* harmony import */ var _pixi_text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/text */ "./node_modules/@pixi/text/dist/esm/text.js");
|
|
34151
33446
|
/*!
|
|
34152
|
-
* @pixi/prepare - v6.2.
|
|
34153
|
-
* Compiled
|
|
33447
|
+
* @pixi/prepare - v6.2.1
|
|
33448
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
34154
33449
|
*
|
|
34155
33450
|
* @pixi/prepare is licensed under the MIT License.
|
|
34156
33451
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34681,36 +33976,22 @@ var Prepare = /** @class */ (function (_super) {
|
|
|
34681
33976
|
* TimeLimiter limits the number of items handled by a {@link PIXI.BasePrepare} to a specified
|
|
34682
33977
|
* number of milliseconds per frame.
|
|
34683
33978
|
*
|
|
34684
|
-
* @class
|
|
34685
33979
|
* @memberof PIXI
|
|
34686
33980
|
*/
|
|
34687
33981
|
var TimeLimiter = /** @class */ (function () {
|
|
34688
|
-
/**
|
|
34689
|
-
* @param {number} maxMilliseconds - The maximum milliseconds that can be spent preparing items each frame.
|
|
34690
|
-
*/
|
|
33982
|
+
/** @param maxMilliseconds - The maximum milliseconds that can be spent preparing items each frame. */
|
|
34691
33983
|
function TimeLimiter(maxMilliseconds) {
|
|
34692
|
-
/**
|
|
34693
|
-
* The maximum milliseconds that can be spent preparing items each frame.
|
|
34694
|
-
* @type {number}
|
|
34695
|
-
* @private
|
|
34696
|
-
*/
|
|
34697
33984
|
this.maxMilliseconds = maxMilliseconds;
|
|
34698
|
-
/**
|
|
34699
|
-
* The start time of the current frame.
|
|
34700
|
-
* @type {number}
|
|
34701
|
-
* @private
|
|
34702
|
-
*/
|
|
34703
33985
|
this.frameStart = 0;
|
|
34704
33986
|
}
|
|
34705
|
-
/**
|
|
34706
|
-
* Resets any counting properties to start fresh on a new frame.
|
|
34707
|
-
*/
|
|
33987
|
+
/** Resets any counting properties to start fresh on a new frame. */
|
|
34708
33988
|
TimeLimiter.prototype.beginFrame = function () {
|
|
34709
33989
|
this.frameStart = Date.now();
|
|
34710
33990
|
};
|
|
34711
33991
|
/**
|
|
34712
33992
|
* Checks to see if another item can be uploaded. This should only be called once per item.
|
|
34713
|
-
*
|
|
33993
|
+
*
|
|
33994
|
+
* @return - If the item is allowed to be uploaded.
|
|
34714
33995
|
*/
|
|
34715
33996
|
TimeLimiter.prototype.allowedToUpload = function () {
|
|
34716
33997
|
return Date.now() - this.frameStart < this.maxMilliseconds;
|
|
@@ -34736,8 +34017,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34736
34017
|
/* harmony export */ "Runner": () => (/* binding */ Runner)
|
|
34737
34018
|
/* harmony export */ });
|
|
34738
34019
|
/*!
|
|
34739
|
-
* @pixi/runner - v6.2.
|
|
34740
|
-
* Compiled
|
|
34020
|
+
* @pixi/runner - v6.2.1
|
|
34021
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
34741
34022
|
*
|
|
34742
34023
|
* @pixi/runner is licensed under the MIT License.
|
|
34743
34024
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34944,8 +34225,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34944
34225
|
/* harmony export */ });
|
|
34945
34226
|
/* harmony import */ var ismobilejs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ismobilejs */ "./node_modules/ismobilejs/esm/index.js");
|
|
34946
34227
|
/*!
|
|
34947
|
-
* @pixi/settings - v6.2.
|
|
34948
|
-
* Compiled
|
|
34228
|
+
* @pixi/settings - v6.2.1
|
|
34229
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
34949
34230
|
*
|
|
34950
34231
|
* @pixi/settings is licensed under the MIT License.
|
|
34951
34232
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35008,8 +34289,8 @@ function canUploadSameBuffer() {
|
|
|
35008
34289
|
}
|
|
35009
34290
|
|
|
35010
34291
|
/*!
|
|
35011
|
-
* @pixi/constants - v6.2.
|
|
35012
|
-
* Compiled
|
|
34292
|
+
* @pixi/constants - v6.2.1
|
|
34293
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
35013
34294
|
*
|
|
35014
34295
|
* @pixi/constants is licensed under the MIT License.
|
|
35015
34296
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35808,8 +35089,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35808
35089
|
/* harmony import */ var _pixi_sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/sprite */ "./node_modules/@pixi/sprite/dist/esm/sprite.js");
|
|
35809
35090
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
35810
35091
|
/*!
|
|
35811
|
-
* @pixi/sprite-animated - v6.2.
|
|
35812
|
-
* Compiled
|
|
35092
|
+
* @pixi/sprite-animated - v6.2.1
|
|
35093
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
35813
35094
|
*
|
|
35814
35095
|
* @pixi/sprite-animated is licensed under the MIT License.
|
|
35815
35096
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36182,8 +35463,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36182
35463
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
36183
35464
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
36184
35465
|
/*!
|
|
36185
|
-
* @pixi/sprite-tiling - v6.2.
|
|
36186
|
-
* Compiled
|
|
35466
|
+
* @pixi/sprite-tiling - v6.2.1
|
|
35467
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
36187
35468
|
*
|
|
36188
35469
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
|
36189
35470
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36571,8 +35852,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36571
35852
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
36572
35853
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
36573
35854
|
/*!
|
|
36574
|
-
* @pixi/sprite - v6.2.
|
|
36575
|
-
* Compiled
|
|
35855
|
+
* @pixi/sprite - v6.2.1
|
|
35856
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
36576
35857
|
*
|
|
36577
35858
|
* @pixi/sprite is licensed under the MIT License.
|
|
36578
35859
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37051,8 +36332,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37051
36332
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
37052
36333
|
/* harmony import */ var _pixi_loaders__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/loaders */ "./node_modules/@pixi/loaders/dist/esm/loaders.js");
|
|
37053
36334
|
/*!
|
|
37054
|
-
* @pixi/spritesheet - v6.2.
|
|
37055
|
-
* Compiled
|
|
36335
|
+
* @pixi/spritesheet - v6.2.1
|
|
36336
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
37056
36337
|
*
|
|
37057
36338
|
* @pixi/spritesheet is licensed under the MIT License.
|
|
37058
36339
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37398,8 +36679,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37398
36679
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
37399
36680
|
/* harmony import */ var _pixi_loaders__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @pixi/loaders */ "./node_modules/@pixi/loaders/dist/esm/loaders.js");
|
|
37400
36681
|
/*!
|
|
37401
|
-
* @pixi/text-bitmap - v6.2.
|
|
37402
|
-
* Compiled
|
|
36682
|
+
* @pixi/text-bitmap - v6.2.1
|
|
36683
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
37403
36684
|
*
|
|
37404
36685
|
* @pixi/text-bitmap is licensed under the MIT License.
|
|
37405
36686
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37447,82 +36728,23 @@ function __extends(d, b) {
|
|
|
37447
36728
|
/**
|
|
37448
36729
|
* Normalized parsed data from .fnt files.
|
|
37449
36730
|
*
|
|
37450
|
-
* @class
|
|
37451
36731
|
* @memberof PIXI
|
|
37452
36732
|
*/
|
|
37453
36733
|
var BitmapFontData = /** @class */ (function () {
|
|
37454
36734
|
function BitmapFontData() {
|
|
37455
|
-
/**
|
|
37456
|
-
* @member {PIXI.IBitmapFontDataInfo[]}
|
|
37457
|
-
* @readOnly
|
|
37458
|
-
*/
|
|
37459
36735
|
this.info = [];
|
|
37460
|
-
/**
|
|
37461
|
-
* @member {PIXI.IBitmapFontDataCommon[]}
|
|
37462
|
-
* @readOnly
|
|
37463
|
-
*/
|
|
37464
36736
|
this.common = [];
|
|
37465
|
-
/**
|
|
37466
|
-
* @member {PIXI.IBitmapFontDataPage[]}
|
|
37467
|
-
* @readOnly
|
|
37468
|
-
*/
|
|
37469
36737
|
this.page = [];
|
|
37470
|
-
/**
|
|
37471
|
-
* @member {PIXI.IBitmapFontDataChar[]}
|
|
37472
|
-
* @readOnly
|
|
37473
|
-
*/
|
|
37474
36738
|
this.char = [];
|
|
37475
|
-
/**
|
|
37476
|
-
* @member {PIXI.IBitmapFontDataKerning[]}
|
|
37477
|
-
* @readOnly
|
|
37478
|
-
*/
|
|
37479
36739
|
this.kerning = [];
|
|
37480
36740
|
this.distanceField = [];
|
|
37481
36741
|
}
|
|
37482
36742
|
return BitmapFontData;
|
|
37483
36743
|
}());
|
|
37484
|
-
/**
|
|
37485
|
-
* @memberof PIXI
|
|
37486
|
-
* @typedef {object} IBitmapFontDataInfo
|
|
37487
|
-
* @property {string} face
|
|
37488
|
-
* @property {number} size
|
|
37489
|
-
*/
|
|
37490
|
-
/**
|
|
37491
|
-
* @memberof PIXI
|
|
37492
|
-
* @typedef {object} IBitmapFontDataCommon
|
|
37493
|
-
* @property {number} lineHeight
|
|
37494
|
-
*/
|
|
37495
|
-
/**
|
|
37496
|
-
* @memberof PIXI
|
|
37497
|
-
* @typedef {object} IBitmapFontDataPage
|
|
37498
|
-
* @property {number} id
|
|
37499
|
-
* @property {string} file
|
|
37500
|
-
*/
|
|
37501
|
-
/**
|
|
37502
|
-
* @memberof PIXI
|
|
37503
|
-
* @typedef {object} IBitmapFontDataChar
|
|
37504
|
-
* @property {string} id
|
|
37505
|
-
* @property {number} page
|
|
37506
|
-
* @property {number} x
|
|
37507
|
-
* @property {number} y
|
|
37508
|
-
* @property {number} width
|
|
37509
|
-
* @property {number} height
|
|
37510
|
-
* @property {number} xoffset
|
|
37511
|
-
* @property {number} yoffset
|
|
37512
|
-
* @property {number} xadvance
|
|
37513
|
-
*/
|
|
37514
|
-
/**
|
|
37515
|
-
* @memberof PIXI
|
|
37516
|
-
* @typedef {object} IBitmapFontDataKerning
|
|
37517
|
-
* @property {number} first
|
|
37518
|
-
* @property {number} second
|
|
37519
|
-
* @property {number} amount
|
|
37520
|
-
*/
|
|
37521
36744
|
|
|
37522
36745
|
/**
|
|
37523
36746
|
* BitmapFont format that's Text-based.
|
|
37524
36747
|
*
|
|
37525
|
-
* @class
|
|
37526
36748
|
* @private
|
|
37527
36749
|
*/
|
|
37528
36750
|
var TextFormat = /** @class */ (function () {
|
|
@@ -37531,10 +36753,8 @@ var TextFormat = /** @class */ (function () {
|
|
|
37531
36753
|
/**
|
|
37532
36754
|
* Check if resource refers to txt font data.
|
|
37533
36755
|
*
|
|
37534
|
-
* @
|
|
37535
|
-
* @
|
|
37536
|
-
* @param {any} data
|
|
37537
|
-
* @return {boolean} True if resource could be treated as font data, false otherwise.
|
|
36756
|
+
* @param data
|
|
36757
|
+
* @return - True if resource could be treated as font data, false otherwise.
|
|
37538
36758
|
*/
|
|
37539
36759
|
TextFormat.test = function (data) {
|
|
37540
36760
|
return typeof data === 'string' && data.indexOf('info face=') === 0;
|
|
@@ -37542,10 +36762,8 @@ var TextFormat = /** @class */ (function () {
|
|
|
37542
36762
|
/**
|
|
37543
36763
|
* Convert text font data to a javascript object.
|
|
37544
36764
|
*
|
|
37545
|
-
* @
|
|
37546
|
-
* @
|
|
37547
|
-
* @param {string} txt - Raw string data to be converted
|
|
37548
|
-
* @return {PIXI.BitmapFontData} Parsed font data
|
|
36765
|
+
* @param txt - Raw string data to be converted
|
|
36766
|
+
* @return - Parsed font data
|
|
37549
36767
|
*/
|
|
37550
36768
|
TextFormat.parse = function (txt) {
|
|
37551
36769
|
// Retrieve data item
|
|
@@ -37622,7 +36840,6 @@ var TextFormat = /** @class */ (function () {
|
|
|
37622
36840
|
/**
|
|
37623
36841
|
* BitmapFont format that's XML-based.
|
|
37624
36842
|
*
|
|
37625
|
-
* @class
|
|
37626
36843
|
* @private
|
|
37627
36844
|
*/
|
|
37628
36845
|
var XMLFormat = /** @class */ (function () {
|
|
@@ -37631,10 +36848,8 @@ var XMLFormat = /** @class */ (function () {
|
|
|
37631
36848
|
/**
|
|
37632
36849
|
* Check if resource refers to xml font data.
|
|
37633
36850
|
*
|
|
37634
|
-
* @
|
|
37635
|
-
* @
|
|
37636
|
-
* @param {any} data
|
|
37637
|
-
* @return {boolean} True if resource could be treated as font data, false otherwise.
|
|
36851
|
+
* @param data
|
|
36852
|
+
* @return - True if resource could be treated as font data, false otherwise.
|
|
37638
36853
|
*/
|
|
37639
36854
|
XMLFormat.test = function (data) {
|
|
37640
36855
|
return data instanceof XMLDocument
|
|
@@ -37644,10 +36859,8 @@ var XMLFormat = /** @class */ (function () {
|
|
|
37644
36859
|
/**
|
|
37645
36860
|
* Convert the XML into BitmapFontData that we can use.
|
|
37646
36861
|
*
|
|
37647
|
-
* @
|
|
37648
|
-
* @
|
|
37649
|
-
* @param {XMLDocument} xml
|
|
37650
|
-
* @return {BitmapFontData} Data to use for BitmapFont
|
|
36862
|
+
* @param xml
|
|
36863
|
+
* @return - Data to use for BitmapFont
|
|
37651
36864
|
*/
|
|
37652
36865
|
XMLFormat.parse = function (xml) {
|
|
37653
36866
|
var data = new BitmapFontData();
|
|
@@ -37709,7 +36922,6 @@ var XMLFormat = /** @class */ (function () {
|
|
|
37709
36922
|
/**
|
|
37710
36923
|
* BitmapFont format that's XML-based.
|
|
37711
36924
|
*
|
|
37712
|
-
* @class
|
|
37713
36925
|
* @private
|
|
37714
36926
|
*/
|
|
37715
36927
|
var XMLStringFormat = /** @class */ (function () {
|
|
@@ -37718,10 +36930,8 @@ var XMLStringFormat = /** @class */ (function () {
|
|
|
37718
36930
|
/**
|
|
37719
36931
|
* Check if resource refers to text xml font data.
|
|
37720
36932
|
*
|
|
37721
|
-
* @
|
|
37722
|
-
* @
|
|
37723
|
-
* @param {any} data
|
|
37724
|
-
* @return {boolean} True if resource could be treated as font data, false otherwise.
|
|
36933
|
+
* @param data
|
|
36934
|
+
* @return - True if resource could be treated as font data, false otherwise.
|
|
37725
36935
|
*/
|
|
37726
36936
|
XMLStringFormat.test = function (data) {
|
|
37727
36937
|
if (typeof data === 'string' && data.indexOf('<font>') > -1) {
|
|
@@ -37733,10 +36943,8 @@ var XMLStringFormat = /** @class */ (function () {
|
|
|
37733
36943
|
/**
|
|
37734
36944
|
* Convert the text XML into BitmapFontData that we can use.
|
|
37735
36945
|
*
|
|
37736
|
-
* @
|
|
37737
|
-
* @
|
|
37738
|
-
* @param {string} xmlTxt
|
|
37739
|
-
* @return {BitmapFontData} Data to use for BitmapFont
|
|
36946
|
+
* @param xmlTxt
|
|
36947
|
+
* @return - Data to use for BitmapFont
|
|
37740
36948
|
*/
|
|
37741
36949
|
XMLStringFormat.parse = function (xmlTxt) {
|
|
37742
36950
|
var xml = new self.DOMParser().parseFromString(xmlTxt, 'text/xml');
|
|
@@ -38360,15 +37568,13 @@ var charRenderDataPool = [];
|
|
|
38360
37568
|
* });
|
|
38361
37569
|
* ```
|
|
38362
37570
|
*
|
|
38363
|
-
* @class
|
|
38364
|
-
* @extends PIXI.Container
|
|
38365
37571
|
* @memberof PIXI
|
|
38366
37572
|
*/
|
|
38367
37573
|
var BitmapText = /** @class */ (function (_super) {
|
|
38368
37574
|
__extends(BitmapText, _super);
|
|
38369
37575
|
/**
|
|
38370
|
-
* @param
|
|
38371
|
-
* @param
|
|
37576
|
+
* @param text - A string that you would like the text to display.
|
|
37577
|
+
* @param style - The style parameters.
|
|
38372
37578
|
* @param {string} style.fontName - The installed BitmapFont name.
|
|
38373
37579
|
* @param {number} [style.fontSize] - The size of the font in pixels, e.g. 24. If undefined,
|
|
38374
37580
|
*. this will default to the BitmapFont size.
|
|
@@ -38381,116 +37587,31 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38381
37587
|
function BitmapText(text, style) {
|
|
38382
37588
|
if (style === void 0) { style = {}; }
|
|
38383
37589
|
var _this = _super.call(this) || this;
|
|
37590
|
+
/**
|
|
37591
|
+
* Private tracker for the current tint.
|
|
37592
|
+
*
|
|
37593
|
+
* @private
|
|
37594
|
+
*/
|
|
38384
37595
|
_this._tint = 0xFFFFFF;
|
|
38385
37596
|
// Apply the defaults
|
|
38386
37597
|
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;
|
|
38387
37598
|
if (!BitmapFont.available[fontName]) {
|
|
38388
37599
|
throw new Error("Missing BitmapFont \"" + fontName + "\"");
|
|
38389
37600
|
}
|
|
38390
|
-
/**
|
|
38391
|
-
* Collection of page mesh data.
|
|
38392
|
-
*
|
|
38393
|
-
* @member {object}
|
|
38394
|
-
* @private
|
|
38395
|
-
*/
|
|
38396
37601
|
_this._activePagesMeshData = [];
|
|
38397
|
-
/**
|
|
38398
|
-
* Private tracker for the width of the overall text
|
|
38399
|
-
*
|
|
38400
|
-
* @member {number}
|
|
38401
|
-
* @private
|
|
38402
|
-
*/
|
|
38403
37602
|
_this._textWidth = 0;
|
|
38404
|
-
/**
|
|
38405
|
-
* Private tracker for the height of the overall text
|
|
38406
|
-
*
|
|
38407
|
-
* @member {number}
|
|
38408
|
-
* @private
|
|
38409
|
-
*/
|
|
38410
37603
|
_this._textHeight = 0;
|
|
38411
|
-
/**
|
|
38412
|
-
* Private tracker for the current text align.
|
|
38413
|
-
*
|
|
38414
|
-
* @member {string}
|
|
38415
|
-
* @private
|
|
38416
|
-
*/
|
|
38417
37604
|
_this._align = align;
|
|
38418
|
-
/**
|
|
38419
|
-
* Private tracker for the current tint.
|
|
38420
|
-
*
|
|
38421
|
-
* @member {number}
|
|
38422
|
-
* @private
|
|
38423
|
-
*/
|
|
38424
37605
|
_this._tint = tint;
|
|
38425
|
-
/**
|
|
38426
|
-
* Private tracker for the current font name.
|
|
38427
|
-
*
|
|
38428
|
-
* @member {string}
|
|
38429
|
-
* @private
|
|
38430
|
-
*/
|
|
38431
37606
|
_this._fontName = fontName;
|
|
38432
|
-
/**
|
|
38433
|
-
* Private tracker for the current font size.
|
|
38434
|
-
*
|
|
38435
|
-
* @member {number}
|
|
38436
|
-
* @private
|
|
38437
|
-
*/
|
|
38438
37607
|
_this._fontSize = fontSize || BitmapFont.available[fontName].size;
|
|
38439
|
-
/**
|
|
38440
|
-
* Private tracker for the current text.
|
|
38441
|
-
*
|
|
38442
|
-
* @member {string}
|
|
38443
|
-
* @private
|
|
38444
|
-
*/
|
|
38445
37608
|
_this._text = text;
|
|
38446
|
-
/**
|
|
38447
|
-
* The max width of this bitmap text in pixels. If the text provided is longer than the
|
|
38448
|
-
* value provided, line breaks will be automatically inserted in the last whitespace.
|
|
38449
|
-
* Disable by setting value to 0
|
|
38450
|
-
*
|
|
38451
|
-
* @member {number}
|
|
38452
|
-
* @private
|
|
38453
|
-
*/
|
|
38454
37609
|
_this._maxWidth = maxWidth;
|
|
38455
|
-
/**
|
|
38456
|
-
* The max line height. This is useful when trying to use the total height of the Text,
|
|
38457
|
-
* ie: when trying to vertically align. (Internally used)
|
|
38458
|
-
*
|
|
38459
|
-
* @member {number}
|
|
38460
|
-
* @private
|
|
38461
|
-
*/
|
|
38462
37610
|
_this._maxLineHeight = 0;
|
|
38463
|
-
/**
|
|
38464
|
-
* Letter spacing. This is useful for setting the space between characters.
|
|
38465
|
-
* @member {number}
|
|
38466
|
-
* @private
|
|
38467
|
-
*/
|
|
38468
37611
|
_this._letterSpacing = letterSpacing;
|
|
38469
|
-
/**
|
|
38470
|
-
* Text anchor. read-only
|
|
38471
|
-
*
|
|
38472
|
-
* @member {PIXI.ObservablePoint}
|
|
38473
|
-
* @private
|
|
38474
|
-
*/
|
|
38475
37612
|
_this._anchor = new _pixi_math__WEBPACK_IMPORTED_MODULE_0__.ObservablePoint(function () { _this.dirty = true; }, _this, 0, 0);
|
|
38476
|
-
/**
|
|
38477
|
-
* If true PixiJS will Math.floor() x/y values when rendering
|
|
38478
|
-
*
|
|
38479
|
-
* @member {boolean}
|
|
38480
|
-
* @default PIXI.settings.ROUND_PIXELS
|
|
38481
|
-
*/
|
|
38482
37613
|
_this._roundPixels = _pixi_settings__WEBPACK_IMPORTED_MODULE_1__.settings.ROUND_PIXELS;
|
|
38483
|
-
/**
|
|
38484
|
-
* Set to `true` if the BitmapText needs to be redrawn.
|
|
38485
|
-
*
|
|
38486
|
-
* @member {boolean}
|
|
38487
|
-
*/
|
|
38488
37614
|
_this.dirty = true;
|
|
38489
|
-
/**
|
|
38490
|
-
* Cached char texture is destroyed when BitmapText is destroyed
|
|
38491
|
-
* @member {Record<number, Texture>}
|
|
38492
|
-
* @private
|
|
38493
|
-
*/
|
|
38494
37615
|
_this._textureCache = {};
|
|
38495
37616
|
return _this;
|
|
38496
37617
|
}
|
|
@@ -38766,11 +37887,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38766
37887
|
charRenderDataPool.push(chars[i]);
|
|
38767
37888
|
}
|
|
38768
37889
|
};
|
|
38769
|
-
/**
|
|
38770
|
-
* Updates the transform of this object
|
|
38771
|
-
*
|
|
38772
|
-
* @private
|
|
38773
|
-
*/
|
|
38774
37890
|
BitmapText.prototype.updateTransform = function () {
|
|
38775
37891
|
this.validate();
|
|
38776
37892
|
this.containerUpdateTransform();
|
|
@@ -38795,7 +37911,7 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38795
37911
|
/**
|
|
38796
37912
|
* Validates text before calling parent's getLocalBounds
|
|
38797
37913
|
*
|
|
38798
|
-
* @return
|
|
37914
|
+
* @return - The rectangular bounding area
|
|
38799
37915
|
*/
|
|
38800
37916
|
BitmapText.prototype.getLocalBounds = function () {
|
|
38801
37917
|
this.validate();
|
|
@@ -38816,7 +37932,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38816
37932
|
/**
|
|
38817
37933
|
* The tint of the BitmapText object.
|
|
38818
37934
|
*
|
|
38819
|
-
* @member {number}
|
|
38820
37935
|
* @default 0xffffff
|
|
38821
37936
|
*/
|
|
38822
37937
|
get: function () {
|
|
@@ -38853,11 +37968,7 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38853
37968
|
configurable: true
|
|
38854
37969
|
});
|
|
38855
37970
|
Object.defineProperty(BitmapText.prototype, "fontName", {
|
|
38856
|
-
/**
|
|
38857
|
-
* The name of the BitmapFont.
|
|
38858
|
-
*
|
|
38859
|
-
* @member {string}
|
|
38860
|
-
*/
|
|
37971
|
+
/** The name of the BitmapFont. */
|
|
38861
37972
|
get: function () {
|
|
38862
37973
|
return this._fontName;
|
|
38863
37974
|
},
|
|
@@ -38874,11 +37985,7 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38874
37985
|
configurable: true
|
|
38875
37986
|
});
|
|
38876
37987
|
Object.defineProperty(BitmapText.prototype, "fontSize", {
|
|
38877
|
-
/**
|
|
38878
|
-
* The size of the font to display.
|
|
38879
|
-
*
|
|
38880
|
-
* @member {number}
|
|
38881
|
-
*/
|
|
37988
|
+
/** The size of the font to display. */
|
|
38882
37989
|
get: function () {
|
|
38883
37990
|
return this._fontSize;
|
|
38884
37991
|
},
|
|
@@ -38900,8 +38007,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38900
38007
|
* Setting the anchor to `(0.5,0.5)` means the text's origin is centered.
|
|
38901
38008
|
*
|
|
38902
38009
|
* Setting the anchor to `(1,1)` would mean the text's origin point will be the bottom right corner.
|
|
38903
|
-
*
|
|
38904
|
-
* @member {PIXI.Point | number}
|
|
38905
38010
|
*/
|
|
38906
38011
|
get: function () {
|
|
38907
38012
|
return this._anchor;
|
|
@@ -38918,11 +38023,7 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38918
38023
|
configurable: true
|
|
38919
38024
|
});
|
|
38920
38025
|
Object.defineProperty(BitmapText.prototype, "text", {
|
|
38921
|
-
/**
|
|
38922
|
-
* The text of the BitmapText object.
|
|
38923
|
-
*
|
|
38924
|
-
* @member {string}
|
|
38925
|
-
*/
|
|
38026
|
+
/** The text of the BitmapText object. */
|
|
38926
38027
|
get: function () {
|
|
38927
38028
|
return this._text;
|
|
38928
38029
|
},
|
|
@@ -38942,8 +38043,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38942
38043
|
* The max width of this bitmap text in pixels. If the text provided is longer than the
|
|
38943
38044
|
* value provided, line breaks will be automatically inserted in the last whitespace.
|
|
38944
38045
|
* Disable by setting the value to 0.
|
|
38945
|
-
*
|
|
38946
|
-
* @member {number}
|
|
38947
38046
|
*/
|
|
38948
38047
|
get: function () {
|
|
38949
38048
|
return this._maxWidth;
|
|
@@ -38963,7 +38062,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38963
38062
|
* The max line height. This is useful when trying to use the total height of the Text,
|
|
38964
38063
|
* i.e. when trying to vertically align.
|
|
38965
38064
|
*
|
|
38966
|
-
* @member {number}
|
|
38967
38065
|
* @readonly
|
|
38968
38066
|
*/
|
|
38969
38067
|
get: function () {
|
|
@@ -38978,7 +38076,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38978
38076
|
* The width of the overall text, different from fontSize,
|
|
38979
38077
|
* which is defined in the style object.
|
|
38980
38078
|
*
|
|
38981
|
-
* @member {number}
|
|
38982
38079
|
* @readonly
|
|
38983
38080
|
*/
|
|
38984
38081
|
get: function () {
|
|
@@ -38989,11 +38086,7 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
38989
38086
|
configurable: true
|
|
38990
38087
|
});
|
|
38991
38088
|
Object.defineProperty(BitmapText.prototype, "letterSpacing", {
|
|
38992
|
-
/**
|
|
38993
|
-
* Additional space between characters.
|
|
38994
|
-
*
|
|
38995
|
-
* @member {number}
|
|
38996
|
-
*/
|
|
38089
|
+
/** Additional space between characters. */
|
|
38997
38090
|
get: function () {
|
|
38998
38091
|
return this._letterSpacing;
|
|
38999
38092
|
},
|
|
@@ -39013,7 +38106,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
39013
38106
|
* The main disadvantage is movement of objects may appear less smooth.
|
|
39014
38107
|
* To set the global default, change {@link PIXI.settings.ROUND_PIXELS}
|
|
39015
38108
|
*
|
|
39016
|
-
* @member {boolean}
|
|
39017
38109
|
* @default PIXI.settings.ROUND_PIXELS
|
|
39018
38110
|
*/
|
|
39019
38111
|
get: function () {
|
|
@@ -39033,7 +38125,6 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
39033
38125
|
* The height of the overall text, different from fontSize,
|
|
39034
38126
|
* which is defined in the style object.
|
|
39035
38127
|
*
|
|
39036
|
-
* @member {number}
|
|
39037
38128
|
* @readonly
|
|
39038
38129
|
*/
|
|
39039
38130
|
get: function () {
|
|
@@ -39065,9 +38156,8 @@ var BitmapText = /** @class */ (function (_super) {
|
|
|
39065
38156
|
/**
|
|
39066
38157
|
* {@link PIXI.Loader Loader} middleware for loading
|
|
39067
38158
|
* bitmap-based fonts suitable for using with {@link PIXI.BitmapText}.
|
|
39068
|
-
*
|
|
38159
|
+
*
|
|
39069
38160
|
* @memberof PIXI
|
|
39070
|
-
* @implements PIXI.ILoaderPlugin
|
|
39071
38161
|
*/
|
|
39072
38162
|
var BitmapFontLoader = /** @class */ (function () {
|
|
39073
38163
|
function BitmapFontLoader() {
|
|
@@ -39082,6 +38172,7 @@ var BitmapFontLoader = /** @class */ (function () {
|
|
|
39082
38172
|
};
|
|
39083
38173
|
/**
|
|
39084
38174
|
* Called after a resource is loaded.
|
|
38175
|
+
*
|
|
39085
38176
|
* @see PIXI.Loader.loaderMiddleware
|
|
39086
38177
|
* @param {PIXI.LoaderResource} resource
|
|
39087
38178
|
* @param {function} next
|
|
@@ -39139,13 +38230,7 @@ var BitmapFontLoader = /** @class */ (function () {
|
|
|
39139
38230
|
}
|
|
39140
38231
|
}
|
|
39141
38232
|
};
|
|
39142
|
-
/**
|
|
39143
|
-
* Get folder path from a resource
|
|
39144
|
-
* @private
|
|
39145
|
-
* @param {PIXI.Loader} loader
|
|
39146
|
-
* @param {PIXI.LoaderResource} resource
|
|
39147
|
-
* @return {string}
|
|
39148
|
-
*/
|
|
38233
|
+
/** Get folder path from a resource. */
|
|
39149
38234
|
BitmapFontLoader.getBaseUrl = function (loader, resource) {
|
|
39150
38235
|
var resUrl = !resource.isDataUrl ? BitmapFontLoader.dirname(resource.url) : '';
|
|
39151
38236
|
if (resource.isDataUrl) {
|
|
@@ -39169,7 +38254,7 @@ var BitmapFontLoader = /** @class */ (function () {
|
|
|
39169
38254
|
};
|
|
39170
38255
|
/**
|
|
39171
38256
|
* Replacement for NodeJS's path.dirname
|
|
39172
|
-
*
|
|
38257
|
+
*
|
|
39173
38258
|
* @param {string} url - Path to get directory for
|
|
39174
38259
|
*/
|
|
39175
38260
|
BitmapFontLoader.dirname = function (url) {
|
|
@@ -39216,8 +38301,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39216
38301
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
39217
38302
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
39218
38303
|
/*!
|
|
39219
|
-
* @pixi/text - v6.2.
|
|
39220
|
-
* Compiled
|
|
38304
|
+
* @pixi/text - v6.2.1
|
|
38305
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
39221
38306
|
*
|
|
39222
38307
|
* @pixi/text is licensed under the MIT License.
|
|
39223
38308
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -40598,11 +39683,6 @@ var defaultDestroyOptions = {
|
|
|
40598
39683
|
children: false,
|
|
40599
39684
|
baseTexture: true,
|
|
40600
39685
|
};
|
|
40601
|
-
// Checking that we can use moddern canvas2D api
|
|
40602
|
-
// https://developer.chrome.com/origintrials/#/view_trial/3585991203293757441
|
|
40603
|
-
// note: this is unstable API, Chrome less 94 use a `textLetterSpacing`, newest use a letterSpacing
|
|
40604
|
-
// eslint-disable-next-line max-len
|
|
40605
|
-
var supportLetterSpacing = 'letterSpacing' in CanvasRenderingContext2D.prototype || 'textLetterSpacing' in CanvasRenderingContext2D.prototype;
|
|
40606
39686
|
/**
|
|
40607
39687
|
* A Text Object will create a line or multiple lines of text.
|
|
40608
39688
|
*
|
|
@@ -40782,6 +39862,12 @@ var Text = /** @class */ (function (_super) {
|
|
|
40782
39862
|
var style = this._style;
|
|
40783
39863
|
// letterSpacing of 0 means normal
|
|
40784
39864
|
var letterSpacing = style.letterSpacing;
|
|
39865
|
+
// Checking that we can use moddern canvas2D api
|
|
39866
|
+
// https://developer.chrome.com/origintrials/#/view_trial/3585991203293757441
|
|
39867
|
+
// note: this is unstable API, Chrome less 94 use a `textLetterSpacing`, newest use a letterSpacing
|
|
39868
|
+
// eslint-disable-next-line max-len
|
|
39869
|
+
var supportLetterSpacing = 'letterSpacing' in CanvasRenderingContext2D.prototype
|
|
39870
|
+
|| 'textLetterSpacing' in CanvasRenderingContext2D.prototype;
|
|
40785
39871
|
if (letterSpacing === 0 || supportLetterSpacing) {
|
|
40786
39872
|
if (supportLetterSpacing) {
|
|
40787
39873
|
this.context.letterSpacing = letterSpacing;
|
|
@@ -41136,8 +40222,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41136
40222
|
/* harmony export */ });
|
|
41137
40223
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
41138
40224
|
/*!
|
|
41139
|
-
* @pixi/ticker - v6.2.
|
|
41140
|
-
* Compiled
|
|
40225
|
+
* @pixi/ticker - v6.2.1
|
|
40226
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
41141
40227
|
*
|
|
41142
40228
|
* @pixi/ticker is licensed under the MIT License.
|
|
41143
40229
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -41941,8 +41027,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41941
41027
|
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url */ "./node_modules/url/url.js");
|
|
41942
41028
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
41943
41029
|
/*!
|
|
41944
|
-
* @pixi/utils - v6.2.
|
|
41945
|
-
* Compiled
|
|
41030
|
+
* @pixi/utils - v6.2.1
|
|
41031
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
41946
41032
|
*
|
|
41947
41033
|
* @pixi/utils is licensed under the MIT License.
|
|
41948
41034
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -42006,7 +41092,7 @@ _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.RETINA_PREFIX = /@([0-9\.]+
|
|
|
42006
41092
|
_pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
|
|
42007
41093
|
|
|
42008
41094
|
var saidHello = false;
|
|
42009
|
-
var VERSION = '6.2.
|
|
41095
|
+
var VERSION = '6.2.1';
|
|
42010
41096
|
/**
|
|
42011
41097
|
* Skips the hello message of renderers that are created after this is run.
|
|
42012
41098
|
*
|
|
@@ -49840,7 +48926,7 @@ function queryKey(uri, query) {
|
|
|
49840
48926
|
\***********************************************************/
|
|
49841
48927
|
/***/ (function(module) {
|
|
49842
48928
|
|
|
49843
|
-
!function(n,t){ true?module.exports=t():0}("undefined"!=typeof self?self:this,function(){return function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)}([function(n,t,r){"use strict";function e(n){if(!(this instanceof e))return new e(n);this._=n}var u=e.prototype;function o(n,t){for(var r=0;r<n;r++)t(r)}function i(n,t,r){return function(n,t){o(t.length,function(r){n(t[r],r,t)})}(function(r,e,u){t=n(t,r,e,u)},r),t}function f(n,t){return i(function(t,r,e,u){return t.concat([n(r,e,u)])},[],t)}function a(n,t){var r={v:0,buf:t};return o(n,function(){var n;r={v:r.v<<1|(n=r.buf,n[0]>>7),buf:function(n){var t=i(function(n,t,r,e){return n.concat(r===e.length-1?Buffer.from([t,0]).readUInt16BE(0):e.readUInt16BE(r))},[],n);return Buffer.from(f(function(n){return(n<<1&65535)>>8},t))}(r.buf)}}),r}function c(){return"undefined"!=typeof Buffer}function s(){if(!c())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function l(n){s();var t=i(function(n,t){return n+t},0,n);if(t%8!=0)throw new Error("The bits ["+n.join(", ")+"] add up to "+t+" which is not an even number of bytes; the total should be divisible by 8");var r,u=t/8,o=(r=function(n){return n>48},i(function(n,t){return n||(r(t)?t:n)},null,n));if(o)throw new Error(o+" bit range requested exceeds 48 bit (6 byte) Number max.");return new e(function(t,r){var e=u+r;return e>t.length?x(r,u.toString()+" bytes"):b(e,i(function(n,t){var r=a(t,n.buf);return{coll:n.coll.concat(r.v),buf:r.buf}},{coll:[],buf:t.slice(r,e)},n).coll)})}function p(n,t){return new e(function(r,e){return s(),e+t>r.length?x(e,t+" bytes for "+n):b(e+t,r.slice(e,e+t))})}function h(n,t){if("number"!=typeof(r=t)||Math.floor(r)!==r||t<0||t>6)throw new Error(n+" requires integer length in range [0, 6].");var r}function d(n){return h("uintBE",n),p("uintBE("+n+")",n).map(function(t){return t.readUIntBE(0,n)})}function v(n){return h("uintLE",n),p("uintLE("+n+")",n).map(function(t){return t.readUIntLE(0,n)})}function g(n){return h("intBE",n),p("intBE("+n+")",n).map(function(t){return t.readIntBE(0,n)})}function m(n){return h("intLE",n),p("intLE("+n+")",n).map(function(t){return t.readIntLE(0,n)})}function y(n){return n instanceof e}function E(n){return"[object Array]"==={}.toString.call(n)}function w(n){return c()&&Buffer.isBuffer(n)}function b(n,t){return{status:!0,index:n,value:t,furthest:-1,expected:[]}}function x(n,t){return E(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:n,expected:t}}function B(n,t){if(!t)return n;if(n.furthest>t.furthest)return n;var r=n.furthest===t.furthest?function(n,t){if(function(){if(void 0!==e._supportsSet)return e._supportsSet;var n="undefined"!=typeof Set;return e._supportsSet=n,n}()&&Array.from){for(var r=new Set(n),u=0;u<t.length;u++)r.add(t[u]);var o=Array.from(r);return o.sort(),o}for(var i={},f=0;f<n.length;f++)i[n[f]]=!0;for(var a=0;a<t.length;a++)i[t[a]]=!0;var c=[];for(var s in i)({}).hasOwnProperty.call(i,s)&&c.push(s);return c.sort(),c}(n.expected,t.expected):t.expected;return{status:n.status,index:n.index,value:n.value,furthest:t.furthest,expected:r}}var j={};function S(n,t){if(w(n))return{offset:t,line:-1,column:-1};n in j||(j[n]={});for(var r=j[n],e=0,u=0,o=0,i=t;i>=0;){if(i in r){e=r[i].line,0===o&&(o=r[i].lineStart);break}"\n"===n.charAt(i)&&(u++,0===o&&(o=i+1)),i--}var f=e+u,a=t-o;return r[t]={line:f,lineStart:o},{offset:t,line:f+1,column:a+1}}function _(n){if(!y(n))throw new Error("not a parser: "+n)}function L(n,t){return"string"==typeof n?n.charAt(t):n[t]}function O(n){if("number"!=typeof n)throw new Error("not a number: "+n)}function k(n){if("function"!=typeof n)throw new Error("not a function: "+n)}function P(n){if("string"!=typeof n)throw new Error("not a string: "+n)}var q=2,A=3,I=8,F=5*I,M=4*I,z=" ";function R(n,t){return new Array(t+1).join(n)}function U(n,t,r){var e=t-n.length;return e<=0?n:R(r,e)+n}function W(n,t,r,e){return{from:n-t>0?n-t:0,to:n+r>e?e:n+r}}function D(n,t){var r,e,u,o,a,c=t.index,s=c.offset,l=1;if(s===n.length)return"Got the end of the input";if(w(n)){var p=s-s%I,h=s-p,d=W(p,F,M+I,n.length),v=f(function(n){return f(function(n){return U(n.toString(16),2,"0")},n)},function(n,t){var r=n.length,e=[],u=0;if(r<=t)return[n.slice()];for(var o=0;o<r;o++)e[u]||e.push([]),e[u].push(n[o]),(o+1)%t==0&&u++;return e}(n.slice(d.from,d.to).toJSON().data,I));o=function(n){return 0===n.from&&1===n.to?{from:n.from,to:n.to}:{from:n.from/I,to:Math.floor(n.to/I)}}(d),e=p/I,r=3*h,h>=4&&(r+=1),l=2,u=f(function(n){return n.length<=4?n.join(" "):n.slice(0,4).join(" ")+" "+n.slice(4).join(" ")},v),(a=(8*(o.to>0?o.to-1:o.to)).toString(16).length)<2&&(a=2)}else{var g=n.split(/\r\n|[\n\r\u2028\u2029]/);r=c.column-1,e=c.line-1,o=W(e,q,A,g.length),u=g.slice(o.from,o.to),a=o.to.toString().length}var m=e-o.from;return w(n)&&(a=(8*(o.to>0?o.to-1:o.to)).toString(16).length)<2&&(a=2),i(function(t,e,u){var i,f=u===m,c=f?"> ":z;return i=w(n)?U((8*(o.from+u)).toString(16),a,"0"):U((o.from+u+1).toString(),a," "),[].concat(t,[c+i+" | "+e],f?[z+R(" ",a)+" | "+U("",r," ")+R("^",l)]:[])},[],u).join("\n")}function N(n,t){return["\n","-- PARSING FAILED "+R("-",50),"\n\n",D(n,t),"\n\n",(r=t.expected,1===r.length?"Expected:\n\n"+r[0]:"Expected one of the following: \n\n"+r.join(", ")),"\n"].join("");var r}function G(n){return void 0!==n.flags?n.flags:[n.global?"g":"",n.ignoreCase?"i":"",n.multiline?"m":"",n.unicode?"u":"",n.sticky?"y":""].join("")}function C(){for(var n=[].slice.call(arguments),t=n.length,r=0;r<t;r+=1)_(n[r]);return e(function(r,e){for(var u,o=new Array(t),i=0;i<t;i+=1){if(!(u=B(n[i]._(r,e),u)).status)return u;o[i]=u.value,e=u.index}return B(b(e,o),u)})}function J(){var n=[].slice.call(arguments);if(0===n.length)throw new Error("seqMap needs at least one argument");var t=n.pop();return k(t),C.apply(null,n).map(function(n){return t.apply(null,n)})}function T(){var n=[].slice.call(arguments),t=n.length;if(0===t)return Y("zero alternates");for(var r=0;r<t;r+=1)_(n[r]);return e(function(t,r){for(var e,u=0;u<n.length;u+=1)if((e=B(n[u]._(t,r),e)).status)return e;return e})}function V(n,t){return H(n,t).or(X([]))}function H(n,t){return _(n),_(t),J(n,t.then(n).many(),function(n,t){return[n].concat(t)})}function K(n){P(n);var t="'"+n+"'";return e(function(r,e){var u=e+n.length,o=r.slice(e,u);return o===n?b(u,o):x(e,t)})}function Q(n,t){!function(n){if(!(n instanceof RegExp))throw new Error("not a regexp: "+n);for(var t=G(n),r=0;r<t.length;r++){var e=t.charAt(r);if("i"!==e&&"m"!==e&&"u"!==e&&"s"!==e)throw new Error('unsupported regexp flag "'+e+'": '+n)}}(n),arguments.length>=2?O(t):t=0;var r=function(n){return RegExp("^(?:"+n.source+")",G(n))}(n),u=""+n;return e(function(n,e){var o=r.exec(n.slice(e));if(o){if(0<=t&&t<=o.length){var i=o[0],f=o[t];return b(e+i.length,f)}return x(e,"valid match group (0 to "+o.length+") in "+u)}return x(e,u)})}function X(n){return e(function(t,r){return b(r,n)})}function Y(n){return e(function(t,r){return x(r,n)})}function Z(n){if(y(n))return e(function(t,r){var e=n._(t,r);return e.index=r,e.value="",e});if("string"==typeof n)return Z(K(n));if(n instanceof RegExp)return Z(Q(n));throw new Error("not a string, regexp, or parser: "+n)}function $(n){return _(n),e(function(t,r){var e=n._(t,r),u=t.slice(r,e.index);return e.status?x(r,'not "'+u+'"'):b(r,null)})}function nn(n){return k(n),e(function(t,r){var e=L(t,r);return r<t.length&&n(e)?b(r+1,e):x(r,"a character/byte matching "+n)})}function tn(n,t){arguments.length<2&&(t=n,n=void 0);var r=e(function(n,e){return r._=t()._,r._(n,e)});return n?r.desc(n):r}function rn(){return Y("fantasy-land/empty")}u.parse=function(n){if("string"!=typeof n&&!w(n))throw new Error(".parse must be called with a string or Buffer as its argument");var t,r=this.skip(fn)._(n,0);return t=r.status?{status:!0,value:r.value}:{status:!1,index:S(n,r.furthest),expected:r.expected},delete j[n],t},u.tryParse=function(n){var t=this.parse(n);if(t.status)return t.value;var r=N(n,t),e=new Error(r);throw e.type="ParsimmonError",e.result=t,e},u.assert=function(n,t){return this.chain(function(r){return n(r)?X(r):Y(t)})},u.or=function(n){return T(this,n)},u.trim=function(n){return this.wrap(n,n)},u.wrap=function(n,t){return J(n,this,t,function(n,t){return t})},u.thru=function(n){return n(this)},u.then=function(n){return _(n),C(this,n).map(function(n){return n[1]})},u.many=function(){var n=this;return e(function(t,r){for(var e=[],u=void 0;;){if(!(u=B(n._(t,r),u)).status)return B(b(r,e),u);if(r===u.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");r=u.index,e.push(u.value)}})},u.tieWith=function(n){return P(n),this.map(function(t){if(function(n){if(!E(n))throw new Error("not an array: "+n)}(t),t.length){P(t[0]);for(var r=t[0],e=1;e<t.length;e++)P(t[e]),r+=n+t[e];return r}return""})},u.tie=function(){return this.tieWith("")},u.times=function(n,t){var r=this;return arguments.length<2&&(t=n),O(n),O(t),e(function(e,u){for(var o=[],i=void 0,f=void 0,a=0;a<n;a+=1){if(f=B(i=r._(e,u),f),!i.status)return f;u=i.index,o.push(i.value)}for(;a<t&&(f=B(i=r._(e,u),f),i.status);a+=1)u=i.index,o.push(i.value);return B(b(u,o),f)})},u.result=function(n){return this.map(function(){return n})},u.atMost=function(n){return this.times(0,n)},u.atLeast=function(n){return J(this.times(n),this.many(),function(n,t){return n.concat(t)})},u.map=function(n){k(n);var t=this;return e(function(r,e){var u=t._(r,e);return u.status?B(b(u.index,n(u.value)),u):u})},u.contramap=function(n){k(n);var t=this;return e(function(r,e){var u=t.parse(n(r.slice(e)));return u.status?b(e+r.length,u.value):u})},u.promap=function(n,t){return k(n),k(t),this.contramap(n).map(t)},u.skip=function(n){return C(this,n).map(function(n){return n[0]})},u.mark=function(){return J(en,this,en,function(n,t,r){return{start:n,value:t,end:r}})},u.node=function(n){return J(en,this,en,function(t,r,e){return{name:n,value:r,start:t,end:e}})},u.sepBy=function(n){return V(this,n)},u.sepBy1=function(n){return H(this,n)},u.lookahead=function(n){return this.skip(Z(n))},u.notFollowedBy=function(n){return this.skip($(n))},u.desc=function(n){E(n)||(n=[n]);var t=this;return e(function(r,e){var u=t._(r,e);return u.status||(u.expected=n),u})},u.fallback=function(n){return this.or(X(n))},u.ap=function(n){return J(n,this,function(n,t){return n(t)})},u.chain=function(n){var t=this;return e(function(r,e){var u=t._(r,e);return u.status?B(n(u.value)._(r,u.index),u):u})},u.concat=u.or,u.empty=rn,u.of=X,u["fantasy-land/ap"]=u.ap,u["fantasy-land/chain"]=u.chain,u["fantasy-land/concat"]=u.concat,u["fantasy-land/empty"]=u.empty,u["fantasy-land/of"]=u.of,u["fantasy-land/map"]=u.map;var en=e(function(n,t){return b(t,S(n,t))}),un=e(function(n,t){return t>=n.length?x(t,"any character/byte"):b(t+1,L(n,t))}),on=e(function(n,t){return b(n.length,n.slice(t))}),fn=e(function(n,t){return t<n.length?x(t,"EOF"):b(t,null)}),an=Q(/[0-9]/).desc("a digit"),cn=Q(/[0-9]*/).desc("optional digits"),sn=Q(/[a-z]/i).desc("a letter"),ln=Q(/[a-z]*/i).desc("optional letters"),pn=Q(/\s*/).desc("optional whitespace"),hn=Q(/\s+/).desc("whitespace"),dn=K("\r"),vn=K("\n"),gn=K("\r\n"),mn=T(gn,vn,dn).desc("newline"),yn=T(mn,fn);e.all=on,e.alt=T,e.any=un,e.cr=dn,e.createLanguage=function(n){var t={};for(var r in n)({}).hasOwnProperty.call(n,r)&&function(r){t[r]=tn(function(){return n[r](t)})}(r);return t},e.crlf=gn,e.custom=function(n){return e(n(b,x))},e.digit=an,e.digits=cn,e.empty=rn,e.end=yn,e.eof=fn,e.fail=Y,e.formatError=N,e.index=en,e.isParser=y,e.lazy=tn,e.letter=sn,e.letters=ln,e.lf=vn,e.lookahead=Z,e.makeFailure=x,e.makeSuccess=b,e.newline=mn,e.noneOf=function(n){return nn(function(t){return n.indexOf(t)<0}).desc("none of '"+n+"'")},e.notFollowedBy=$,e.of=X,e.oneOf=function(n){for(var t=n.split(""),r=0;r<t.length;r++)t[r]="'"+t[r]+"'";return nn(function(t){return n.indexOf(t)>=0}).desc(t)},e.optWhitespace=pn,e.Parser=e,e.range=function(n,t){return nn(function(r){return n<=r&&r<=t}).desc(n+"-"+t)},e.regex=Q,e.regexp=Q,e.sepBy=V,e.sepBy1=H,e.seq=C,e.seqMap=J,e.seqObj=function(){for(var n,t={},r=0,u=(n=arguments,Array.prototype.slice.call(n)),o=u.length,i=0;i<o;i+=1){var f=u[i];if(!y(f)){if(E(f)&&2===f.length&&"string"==typeof f[0]&&y(f[1])){var a=f[0];if(Object.prototype.hasOwnProperty.call(t,a))throw new Error("seqObj: duplicate key "+a);t[a]=!0,r++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(0===r)throw new Error("seqObj expects at least one named parser, found zero");return e(function(n,t){for(var r,e={},i=0;i<o;i+=1){var f,a;if(E(u[i])?(f=u[i][0],a=u[i][1]):(f=null,a=u[i]),!(r=B(a._(n,t),r)).status)return r;f&&(e[f]=r.value),t=r.index}return B(b(t,e),r)})},e.string=K,e.succeed=X,e.takeWhile=function(n){return k(n),e(function(t,r){for(var e=r;e<t.length&&n(L(t,e));)e++;return b(e,t.slice(r,e))})},e.test=nn,e.whitespace=hn,e["fantasy-land/empty"]=rn,e["fantasy-land/of"]=X,e.Binary={bitSeq:l,bitSeqObj:function(n){s();var t={},r=0,e=f(function(n){if(E(n)){var e=n;if(2!==e.length)throw new Error("["+e.join(", ")+"] should be length 2, got length "+e.length);if(P(e[0]),O(e[1]),Object.prototype.hasOwnProperty.call(t,e[0]))throw new Error("duplicate key in bitSeqObj: "+e[0]);return t[e[0]]=!0,r++,e}return O(n),[null,n]},n);if(r<1)throw new Error("bitSeqObj expects at least one named pair, got ["+n.join(", ")+"]");var u=f(function(n){return n[0]},e);return l(f(function(n){return n[1]},e)).map(function(n){return i(function(n,t){return null!==t[0]&&(n[t[0]]=t[1]),n},{},f(function(t,r){return[t,n[r]]},u))})},byte:function(n){if(s(),O(n),n>255)throw new Error("Value specified to byte constructor ("+n+"=0x"+n.toString(16)+") is larger in value than a single byte.");var t=(n>15?"0x":"0x0")+n.toString(16);return e(function(r,e){var u=L(r,e);return u===n?b(e+1,u):x(e,t)})},buffer:function(n){return p("buffer",n).map(function(n){return Buffer.from(n)})},encodedString:function(n,t){return p("string",t).map(function(t){return t.toString(n)})},uintBE:d,uint8BE:d(1),uint16BE:d(2),uint32BE:d(4),uintLE:v,uint8LE:v(1),uint16LE:v(2),uint32LE:v(4),intBE:g,int8BE:g(1),int16BE:g(2),int32BE:g(4),intLE:m,int8LE:m(1),int16LE:m(2),int32LE:m(4),floatBE:p("floatBE",4).map(function(n){return n.readFloatBE(0)}),floatLE:p("floatLE",4).map(function(n){return n.readFloatLE(0)}),doubleBE:p("doubleBE",8).map(function(n){return n.readDoubleBE(0)}),doubleLE:p("doubleLE",8).map(function(n){return n.readDoubleLE(0)})},n.exports=e}])});
|
|
48929
|
+
!function(n,t){ true?module.exports=t():0}("undefined"!=typeof self?self:this,function(){return function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)}([function(n,t,r){"use strict";function e(n){if(!(this instanceof e))return new e(n);this._=n}var u=e.prototype;function o(n,t){for(var r=0;r<n;r++)t(r)}function i(n,t,r){return function(n,t){o(t.length,function(r){n(t[r],r,t)})}(function(r,e,u){t=n(t,r,e,u)},r),t}function a(n,t){return i(function(t,r,e,u){return t.concat([n(r,e,u)])},[],t)}function f(n,t){var r={v:0,buf:t};return o(n,function(){var n;r={v:r.v<<1|(n=r.buf,n[0]>>7),buf:function(n){var t=i(function(n,t,r,e){return n.concat(r===e.length-1?Buffer.from([t,0]).readUInt16BE(0):e.readUInt16BE(r))},[],n);return Buffer.from(a(function(n){return(n<<1&65535)>>8},t))}(r.buf)}}),r}function c(){return"undefined"!=typeof Buffer}function s(){if(!c())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function l(n){s();var t=i(function(n,t){return n+t},0,n);if(t%8!=0)throw new Error("The bits ["+n.join(", ")+"] add up to "+t+" which is not an even number of bytes; the total should be divisible by 8");var r,u=t/8,o=(r=function(n){return n>48},i(function(n,t){return n||(r(t)?t:n)},null,n));if(o)throw new Error(o+" bit range requested exceeds 48 bit (6 byte) Number max.");return new e(function(t,r){var e=u+r;return e>t.length?x(r,u.toString()+" bytes"):b(e,i(function(n,t){var r=f(t,n.buf);return{coll:n.coll.concat(r.v),buf:r.buf}},{coll:[],buf:t.slice(r,e)},n).coll)})}function h(n,t){return new e(function(r,e){return s(),e+t>r.length?x(e,t+" bytes for "+n):b(e+t,r.slice(e,e+t))})}function p(n,t){if("number"!=typeof(r=t)||Math.floor(r)!==r||t<0||t>6)throw new Error(n+" requires integer length in range [0, 6].");var r}function d(n){return p("uintBE",n),h("uintBE("+n+")",n).map(function(t){return t.readUIntBE(0,n)})}function v(n){return p("uintLE",n),h("uintLE("+n+")",n).map(function(t){return t.readUIntLE(0,n)})}function g(n){return p("intBE",n),h("intBE("+n+")",n).map(function(t){return t.readIntBE(0,n)})}function m(n){return p("intLE",n),h("intLE("+n+")",n).map(function(t){return t.readIntLE(0,n)})}function y(n){return n instanceof e}function E(n){return"[object Array]"==={}.toString.call(n)}function w(n){return c()&&Buffer.isBuffer(n)}function b(n,t){return{status:!0,index:n,value:t,furthest:-1,expected:[]}}function x(n,t){return E(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:n,expected:t}}function B(n,t){if(!t)return n;if(n.furthest>t.furthest)return n;var r=n.furthest===t.furthest?function(n,t){if(function(){if(void 0!==e._supportsSet)return e._supportsSet;var n="undefined"!=typeof Set;return e._supportsSet=n,n}()&&Array.from){for(var r=new Set(n),u=0;u<t.length;u++)r.add(t[u]);var o=Array.from(r);return o.sort(),o}for(var i={},a=0;a<n.length;a++)i[n[a]]=!0;for(var f=0;f<t.length;f++)i[t[f]]=!0;var c=[];for(var s in i)({}).hasOwnProperty.call(i,s)&&c.push(s);return c.sort(),c}(n.expected,t.expected):t.expected;return{status:n.status,index:n.index,value:n.value,furthest:t.furthest,expected:r}}var j={};function S(n,t){if(w(n))return{offset:t,line:-1,column:-1};n in j||(j[n]={});for(var r=j[n],e=0,u=0,o=0,i=t;i>=0;){if(i in r){e=r[i].line,0===o&&(o=r[i].lineStart);break}("\n"===n.charAt(i)||"\r"===n.charAt(i)&&"\n"!==n.charAt(i+1))&&(u++,0===o&&(o=i+1)),i--}var a=e+u,f=t-o;return r[t]={line:a,lineStart:o},{offset:t,line:a+1,column:f+1}}function _(n){if(!y(n))throw new Error("not a parser: "+n)}function L(n,t){return"string"==typeof n?n.charAt(t):n[t]}function O(n){if("number"!=typeof n)throw new Error("not a number: "+n)}function k(n){if("function"!=typeof n)throw new Error("not a function: "+n)}function P(n){if("string"!=typeof n)throw new Error("not a string: "+n)}var q=2,A=3,I=8,F=5*I,M=4*I,z=" ";function R(n,t){return new Array(t+1).join(n)}function U(n,t,r){var e=t-n.length;return e<=0?n:R(r,e)+n}function W(n,t,r,e){return{from:n-t>0?n-t:0,to:n+r>e?e:n+r}}function D(n,t){var r,e,u,o,f,c=t.index,s=c.offset,l=1;if(s===n.length)return"Got the end of the input";if(w(n)){var h=s-s%I,p=s-h,d=W(h,F,M+I,n.length),v=a(function(n){return a(function(n){return U(n.toString(16),2,"0")},n)},function(n,t){var r=n.length,e=[],u=0;if(r<=t)return[n.slice()];for(var o=0;o<r;o++)e[u]||e.push([]),e[u].push(n[o]),(o+1)%t==0&&u++;return e}(n.slice(d.from,d.to).toJSON().data,I));o=function(n){return 0===n.from&&1===n.to?{from:n.from,to:n.to}:{from:n.from/I,to:Math.floor(n.to/I)}}(d),e=h/I,r=3*p,p>=4&&(r+=1),l=2,u=a(function(n){return n.length<=4?n.join(" "):n.slice(0,4).join(" ")+" "+n.slice(4).join(" ")},v),(f=(8*(o.to>0?o.to-1:o.to)).toString(16).length)<2&&(f=2)}else{var g=n.split(/\r\n|[\n\r\u2028\u2029]/);r=c.column-1,e=c.line-1,o=W(e,q,A,g.length),u=g.slice(o.from,o.to),f=o.to.toString().length}var m=e-o.from;return w(n)&&(f=(8*(o.to>0?o.to-1:o.to)).toString(16).length)<2&&(f=2),i(function(t,e,u){var i,a=u===m,c=a?"> ":z;return i=w(n)?U((8*(o.from+u)).toString(16),f,"0"):U((o.from+u+1).toString(),f," "),[].concat(t,[c+i+" | "+e],a?[z+R(" ",f)+" | "+U("",r," ")+R("^",l)]:[])},[],u).join("\n")}function N(n,t){return["\n","-- PARSING FAILED "+R("-",50),"\n\n",D(n,t),"\n\n",(r=t.expected,1===r.length?"Expected:\n\n"+r[0]:"Expected one of the following: \n\n"+r.join(", ")),"\n"].join("");var r}function G(n){return void 0!==n.flags?n.flags:[n.global?"g":"",n.ignoreCase?"i":"",n.multiline?"m":"",n.unicode?"u":"",n.sticky?"y":""].join("")}function C(){for(var n=[].slice.call(arguments),t=n.length,r=0;r<t;r+=1)_(n[r]);return e(function(r,e){for(var u,o=new Array(t),i=0;i<t;i+=1){if(!(u=B(n[i]._(r,e),u)).status)return u;o[i]=u.value,e=u.index}return B(b(e,o),u)})}function J(){var n=[].slice.call(arguments);if(0===n.length)throw new Error("seqMap needs at least one argument");var t=n.pop();return k(t),C.apply(null,n).map(function(n){return t.apply(null,n)})}function T(){var n=[].slice.call(arguments),t=n.length;if(0===t)return Y("zero alternates");for(var r=0;r<t;r+=1)_(n[r]);return e(function(t,r){for(var e,u=0;u<n.length;u+=1)if((e=B(n[u]._(t,r),e)).status)return e;return e})}function V(n,t){return H(n,t).or(X([]))}function H(n,t){return _(n),_(t),J(n,t.then(n).many(),function(n,t){return[n].concat(t)})}function K(n){P(n);var t="'"+n+"'";return e(function(r,e){var u=e+n.length,o=r.slice(e,u);return o===n?b(u,o):x(e,t)})}function Q(n,t){!function(n){if(!(n instanceof RegExp))throw new Error("not a regexp: "+n);for(var t=G(n),r=0;r<t.length;r++){var e=t.charAt(r);if("i"!==e&&"m"!==e&&"u"!==e&&"s"!==e)throw new Error('unsupported regexp flag "'+e+'": '+n)}}(n),arguments.length>=2?O(t):t=0;var r=function(n){return RegExp("^(?:"+n.source+")",G(n))}(n),u=""+n;return e(function(n,e){var o=r.exec(n.slice(e));if(o){if(0<=t&&t<=o.length){var i=o[0],a=o[t];return b(e+i.length,a)}return x(e,"valid match group (0 to "+o.length+") in "+u)}return x(e,u)})}function X(n){return e(function(t,r){return b(r,n)})}function Y(n){return e(function(t,r){return x(r,n)})}function Z(n){if(y(n))return e(function(t,r){var e=n._(t,r);return e.index=r,e.value="",e});if("string"==typeof n)return Z(K(n));if(n instanceof RegExp)return Z(Q(n));throw new Error("not a string, regexp, or parser: "+n)}function $(n){return _(n),e(function(t,r){var e=n._(t,r),u=t.slice(r,e.index);return e.status?x(r,'not "'+u+'"'):b(r,null)})}function nn(n){return k(n),e(function(t,r){var e=L(t,r);return r<t.length&&n(e)?b(r+1,e):x(r,"a character/byte matching "+n)})}function tn(n,t){arguments.length<2&&(t=n,n=void 0);var r=e(function(n,e){return r._=t()._,r._(n,e)});return n?r.desc(n):r}function rn(){return Y("fantasy-land/empty")}u.parse=function(n){if("string"!=typeof n&&!w(n))throw new Error(".parse must be called with a string or Buffer as its argument");var t,r=this.skip(an)._(n,0);return t=r.status?{status:!0,value:r.value}:{status:!1,index:S(n,r.furthest),expected:r.expected},delete j[n],t},u.tryParse=function(n){var t=this.parse(n);if(t.status)return t.value;var r=N(n,t),e=new Error(r);throw e.type="ParsimmonError",e.result=t,e},u.assert=function(n,t){return this.chain(function(r){return n(r)?X(r):Y(t)})},u.or=function(n){return T(this,n)},u.trim=function(n){return this.wrap(n,n)},u.wrap=function(n,t){return J(n,this,t,function(n,t){return t})},u.thru=function(n){return n(this)},u.then=function(n){return _(n),C(this,n).map(function(n){return n[1]})},u.many=function(){var n=this;return e(function(t,r){for(var e=[],u=void 0;;){if(!(u=B(n._(t,r),u)).status)return B(b(r,e),u);if(r===u.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");r=u.index,e.push(u.value)}})},u.tieWith=function(n){return P(n),this.map(function(t){if(function(n){if(!E(n))throw new Error("not an array: "+n)}(t),t.length){P(t[0]);for(var r=t[0],e=1;e<t.length;e++)P(t[e]),r+=n+t[e];return r}return""})},u.tie=function(){return this.tieWith("")},u.times=function(n,t){var r=this;return arguments.length<2&&(t=n),O(n),O(t),e(function(e,u){for(var o=[],i=void 0,a=void 0,f=0;f<n;f+=1){if(a=B(i=r._(e,u),a),!i.status)return a;u=i.index,o.push(i.value)}for(;f<t&&(a=B(i=r._(e,u),a),i.status);f+=1)u=i.index,o.push(i.value);return B(b(u,o),a)})},u.result=function(n){return this.map(function(){return n})},u.atMost=function(n){return this.times(0,n)},u.atLeast=function(n){return J(this.times(n),this.many(),function(n,t){return n.concat(t)})},u.map=function(n){k(n);var t=this;return e(function(r,e){var u=t._(r,e);return u.status?B(b(u.index,n(u.value)),u):u})},u.contramap=function(n){k(n);var t=this;return e(function(r,e){var u=t.parse(n(r.slice(e)));return u.status?b(e+r.length,u.value):u})},u.promap=function(n,t){return k(n),k(t),this.contramap(n).map(t)},u.skip=function(n){return C(this,n).map(function(n){return n[0]})},u.mark=function(){return J(en,this,en,function(n,t,r){return{start:n,value:t,end:r}})},u.node=function(n){return J(en,this,en,function(t,r,e){return{name:n,value:r,start:t,end:e}})},u.sepBy=function(n){return V(this,n)},u.sepBy1=function(n){return H(this,n)},u.lookahead=function(n){return this.skip(Z(n))},u.notFollowedBy=function(n){return this.skip($(n))},u.desc=function(n){E(n)||(n=[n]);var t=this;return e(function(r,e){var u=t._(r,e);return u.status||(u.expected=n),u})},u.fallback=function(n){return this.or(X(n))},u.ap=function(n){return J(n,this,function(n,t){return n(t)})},u.chain=function(n){var t=this;return e(function(r,e){var u=t._(r,e);return u.status?B(n(u.value)._(r,u.index),u):u})},u.concat=u.or,u.empty=rn,u.of=X,u["fantasy-land/ap"]=u.ap,u["fantasy-land/chain"]=u.chain,u["fantasy-land/concat"]=u.concat,u["fantasy-land/empty"]=u.empty,u["fantasy-land/of"]=u.of,u["fantasy-land/map"]=u.map;var en=e(function(n,t){return b(t,S(n,t))}),un=e(function(n,t){return t>=n.length?x(t,"any character/byte"):b(t+1,L(n,t))}),on=e(function(n,t){return b(n.length,n.slice(t))}),an=e(function(n,t){return t<n.length?x(t,"EOF"):b(t,null)}),fn=Q(/[0-9]/).desc("a digit"),cn=Q(/[0-9]*/).desc("optional digits"),sn=Q(/[a-z]/i).desc("a letter"),ln=Q(/[a-z]*/i).desc("optional letters"),hn=Q(/\s*/).desc("optional whitespace"),pn=Q(/\s+/).desc("whitespace"),dn=K("\r"),vn=K("\n"),gn=K("\r\n"),mn=T(gn,vn,dn).desc("newline"),yn=T(mn,an);e.all=on,e.alt=T,e.any=un,e.cr=dn,e.createLanguage=function(n){var t={};for(var r in n)({}).hasOwnProperty.call(n,r)&&function(r){t[r]=tn(function(){return n[r](t)})}(r);return t},e.crlf=gn,e.custom=function(n){return e(n(b,x))},e.digit=fn,e.digits=cn,e.empty=rn,e.end=yn,e.eof=an,e.fail=Y,e.formatError=N,e.index=en,e.isParser=y,e.lazy=tn,e.letter=sn,e.letters=ln,e.lf=vn,e.lookahead=Z,e.makeFailure=x,e.makeSuccess=b,e.newline=mn,e.noneOf=function(n){return nn(function(t){return n.indexOf(t)<0}).desc("none of '"+n+"'")},e.notFollowedBy=$,e.of=X,e.oneOf=function(n){for(var t=n.split(""),r=0;r<t.length;r++)t[r]="'"+t[r]+"'";return nn(function(t){return n.indexOf(t)>=0}).desc(t)},e.optWhitespace=hn,e.Parser=e,e.range=function(n,t){return nn(function(r){return n<=r&&r<=t}).desc(n+"-"+t)},e.regex=Q,e.regexp=Q,e.sepBy=V,e.sepBy1=H,e.seq=C,e.seqMap=J,e.seqObj=function(){for(var n,t={},r=0,u=(n=arguments,Array.prototype.slice.call(n)),o=u.length,i=0;i<o;i+=1){var a=u[i];if(!y(a)){if(E(a)&&2===a.length&&"string"==typeof a[0]&&y(a[1])){var f=a[0];if(Object.prototype.hasOwnProperty.call(t,f))throw new Error("seqObj: duplicate key "+f);t[f]=!0,r++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(0===r)throw new Error("seqObj expects at least one named parser, found zero");return e(function(n,t){for(var r,e={},i=0;i<o;i+=1){var a,f;if(E(u[i])?(a=u[i][0],f=u[i][1]):(a=null,f=u[i]),!(r=B(f._(n,t),r)).status)return r;a&&(e[a]=r.value),t=r.index}return B(b(t,e),r)})},e.string=K,e.succeed=X,e.takeWhile=function(n){return k(n),e(function(t,r){for(var e=r;e<t.length&&n(L(t,e));)e++;return b(e,t.slice(r,e))})},e.test=nn,e.whitespace=pn,e["fantasy-land/empty"]=rn,e["fantasy-land/of"]=X,e.Binary={bitSeq:l,bitSeqObj:function(n){s();var t={},r=0,e=a(function(n){if(E(n)){var e=n;if(2!==e.length)throw new Error("["+e.join(", ")+"] should be length 2, got length "+e.length);if(P(e[0]),O(e[1]),Object.prototype.hasOwnProperty.call(t,e[0]))throw new Error("duplicate key in bitSeqObj: "+e[0]);return t[e[0]]=!0,r++,e}return O(n),[null,n]},n);if(r<1)throw new Error("bitSeqObj expects at least one named pair, got ["+n.join(", ")+"]");var u=a(function(n){return n[0]},e);return l(a(function(n){return n[1]},e)).map(function(n){return i(function(n,t){return null!==t[0]&&(n[t[0]]=t[1]),n},{},a(function(t,r){return[t,n[r]]},u))})},byte:function(n){if(s(),O(n),n>255)throw new Error("Value specified to byte constructor ("+n+"=0x"+n.toString(16)+") is larger in value than a single byte.");var t=(n>15?"0x":"0x0")+n.toString(16);return e(function(r,e){var u=L(r,e);return u===n?b(e+1,u):x(e,t)})},buffer:function(n){return h("buffer",n).map(function(n){return Buffer.from(n)})},encodedString:function(n,t){return h("string",t).map(function(t){return t.toString(n)})},uintBE:d,uint8BE:d(1),uint16BE:d(2),uint32BE:d(4),uintLE:v,uint8LE:v(1),uint16LE:v(2),uint32LE:v(4),intBE:g,int8BE:g(1),int16BE:g(2),int32BE:g(4),intLE:m,int8LE:m(1),int16LE:m(2),int32LE:m(4),floatBE:h("floatBE",4).map(function(n){return n.readFloatBE(0)}),floatLE:h("floatLE",4).map(function(n){return n.readFloatLE(0)}),doubleBE:h("doubleBE",8).map(function(n){return n.readDoubleBE(0)}),doubleLE:h("doubleLE",8).map(function(n){return n.readDoubleLE(0)})},n.exports=e}])});
|
|
49844
48930
|
|
|
49845
48931
|
/***/ }),
|
|
49846
48932
|
|
|
@@ -50074,8 +49160,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50074
49160
|
/* harmony import */ var _pixi_text__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @pixi/text */ "./node_modules/@pixi/text/dist/esm/text.js");
|
|
50075
49161
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
50076
49162
|
/*!
|
|
50077
|
-
* pixi.js - v6.2.
|
|
50078
|
-
* Compiled
|
|
49163
|
+
* pixi.js - v6.2.1
|
|
49164
|
+
* Compiled Tue, 21 Dec 2021 19:56:15 UTC
|
|
50079
49165
|
*
|
|
50080
49166
|
* pixi.js is licensed under the MIT License.
|
|
50081
49167
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -50156,7 +49242,7 @@ _pixi_app__WEBPACK_IMPORTED_MODULE_4__.Application.registerPlugin(_pixi_loaders_
|
|
|
50156
49242
|
* @name VERSION
|
|
50157
49243
|
* @type {string}
|
|
50158
49244
|
*/
|
|
50159
|
-
var VERSION = '6.2.
|
|
49245
|
+
var VERSION = '6.2.1';
|
|
50160
49246
|
/**
|
|
50161
49247
|
* @namespace PIXI
|
|
50162
49248
|
*/
|
|
@@ -67097,15 +66183,15 @@ _Button_procMasume4pic = { value: (_me, _sp, _w3, _h) => { } };
|
|
|
67097
66183
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
67098
66184
|
exports.CallStack = void 0;
|
|
67099
66185
|
class CallStack {
|
|
67100
|
-
constructor($fn = '', $idx = 0, $
|
|
66186
|
+
constructor($fn = '', $idx = 0, $csArg = { ':hEvt1Time': {}, ':hMp': {} }) {
|
|
67101
66187
|
this.$fn = $fn;
|
|
67102
66188
|
this.$idx = $idx;
|
|
67103
|
-
this.$
|
|
67104
|
-
this.toString = () => `[fn:${this.$fn}, idx:${this.$idx},
|
|
66189
|
+
this.$csArg = $csArg;
|
|
66190
|
+
this.toString = () => `[fn:${this.$fn}, idx:${this.$idx}, csArg:${this.$csArg}]`;
|
|
67105
66191
|
}
|
|
67106
66192
|
get fn() { return this.$fn; }
|
|
67107
66193
|
get idx() { return this.$idx; }
|
|
67108
|
-
get csArg() { return this.$
|
|
66194
|
+
get csArg() { return this.$csArg; }
|
|
67109
66195
|
}
|
|
67110
66196
|
exports.CallStack = CallStack;
|
|
67111
66197
|
|
|
@@ -67201,7 +66287,7 @@ function argChk_Num(hash, name, def) {
|
|
|
67201
66287
|
const v = hash[name];
|
|
67202
66288
|
if (!(name in hash)) {
|
|
67203
66289
|
if (isNaN(def))
|
|
67204
|
-
throw `[${hash
|
|
66290
|
+
throw `[${hash[':タグ名']}]属性 ${name} は必須です`;
|
|
67205
66291
|
hash[name] = def;
|
|
67206
66292
|
return def;
|
|
67207
66293
|
}
|
|
@@ -67209,7 +66295,7 @@ function argChk_Num(hash, name, def) {
|
|
|
67209
66295
|
? parseInt(v)
|
|
67210
66296
|
: parseFloat(v);
|
|
67211
66297
|
if (isNaN(n))
|
|
67212
|
-
throw `[${hash
|
|
66298
|
+
throw `[${hash[':タグ名']}]属性 ${name} の値【${v}】が数値ではありません`;
|
|
67213
66299
|
return hash[name] = n;
|
|
67214
66300
|
}
|
|
67215
66301
|
exports.argChk_Num = argChk_Num;
|
|
@@ -68550,7 +67636,7 @@ class EventMng {
|
|
|
68550
67636
|
__classPrivateFieldGet(this, _EventMng_grpHint, "f").y = rctBtn.y;
|
|
68551
67637
|
__classPrivateFieldGet(this, _EventMng_grpHint, "f").rotation = ctnBtn.rotation;
|
|
68552
67638
|
const p = (isLink ? ctnBtn.parent : ctnBtn).scale;
|
|
68553
|
-
const isBtnPic = (hArg
|
|
67639
|
+
const isBtnPic = (hArg[':タグ名'] === 'button') && (hArg.pic);
|
|
68554
67640
|
__classPrivateFieldGet(this, _EventMng_grpHint, "f").clear()
|
|
68555
67641
|
.beginFill(0x33FF00, 0.2)
|
|
68556
67642
|
.lineStyle(1, 0x33FF00, 1)
|
|
@@ -69010,7 +68096,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69010
68096
|
const rctBtn = ctnBtn instanceof Button_1.Button
|
|
69011
68097
|
? ctnBtn.getBtnBounds()
|
|
69012
68098
|
: ctnBtn.getBounds();
|
|
69013
|
-
const isLink = (hArg
|
|
68099
|
+
const isLink = (hArg[':タグ名'] === 'link');
|
|
69014
68100
|
if (!isLink) {
|
|
69015
68101
|
const cpp = ctnBtn.parent.parent;
|
|
69016
68102
|
rctBtn.x += cpp.x;
|
|
@@ -69197,7 +68283,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69197
68283
|
const cs = this.scrItr.getCallStk(i);
|
|
69198
68284
|
if (!cs)
|
|
69199
68285
|
continue;
|
|
69200
|
-
const hE1T = cs
|
|
68286
|
+
const hE1T = cs[':hEvt1Time'];
|
|
69201
68287
|
if (!hE1T)
|
|
69202
68288
|
continue;
|
|
69203
68289
|
delete hE1T['Click'];
|
|
@@ -72612,7 +71698,7 @@ class ScriptIterator {
|
|
|
72612
71698
|
get lineNum() { return __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"); }
|
|
72613
71699
|
get lenCallStk() { return __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length; }
|
|
72614
71700
|
;
|
|
72615
|
-
get
|
|
71701
|
+
get lastCSArg() { return __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f")[this.lenCallStk - 1].csArg; }
|
|
72616
71702
|
;
|
|
72617
71703
|
destroy() { this.isBreak = () => false; }
|
|
72618
71704
|
;
|
|
@@ -72635,27 +71721,25 @@ class ScriptIterator {
|
|
|
72635
71721
|
if (!p)
|
|
72636
71722
|
return false;
|
|
72637
71723
|
}
|
|
72638
|
-
let hArg = {};
|
|
71724
|
+
let hArg = { ':タグ名': tag_name };
|
|
72639
71725
|
const lenStk = __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length;
|
|
72640
71726
|
if (this.alzTagArg.isKomeParam) {
|
|
72641
71727
|
if (lenStk === 0)
|
|
72642
71728
|
throw '属性「*」はマクロのみ有効です';
|
|
72643
|
-
|
|
72644
|
-
throw '属性「*」はマクロのみ有効です';
|
|
72645
|
-
hArg = { ...hArg, ...this.lastHArg };
|
|
71729
|
+
hArg = { ...hArg, ...this.lastCSArg };
|
|
72646
71730
|
}
|
|
72647
71731
|
for (const arg_nm in hPrm) {
|
|
72648
71732
|
let v = hPrm[arg_nm].val;
|
|
72649
|
-
if (v
|
|
71733
|
+
if (v?.charAt(0) === '%') {
|
|
72650
71734
|
if (lenStk === 0)
|
|
72651
71735
|
throw '属性「%」はマクロ定義内でのみ使用できます(そのマクロの引数を示す簡略文法であるため)';
|
|
72652
|
-
const mac = this.
|
|
71736
|
+
const mac = this.lastCSArg[v.slice(1)];
|
|
72653
71737
|
if (mac) {
|
|
72654
71738
|
hArg[arg_nm] = mac;
|
|
72655
71739
|
continue;
|
|
72656
71740
|
}
|
|
72657
71741
|
v = hPrm[arg_nm].def;
|
|
72658
|
-
if (
|
|
71742
|
+
if (v === undefined || v === 'null')
|
|
72659
71743
|
continue;
|
|
72660
71744
|
}
|
|
72661
71745
|
v = this.prpPrs.getValAmpersand(v ?? '');
|
|
@@ -72670,7 +71754,6 @@ class ScriptIterator {
|
|
|
72670
71754
|
if (v !== 'undefined')
|
|
72671
71755
|
hArg[arg_nm] = v;
|
|
72672
71756
|
}
|
|
72673
|
-
hArg.タグ名 = tag_name;
|
|
72674
71757
|
return tag_fnc(hArg);
|
|
72675
71758
|
}
|
|
72676
71759
|
setOtherObj(evtMng, layMng) {
|
|
@@ -72901,8 +71984,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72901
71984
|
return a;
|
|
72902
71985
|
for (let i = len - 1; i >= 0; --i) {
|
|
72903
71986
|
const cs = __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f")[i];
|
|
72904
|
-
if (!cs.csArg)
|
|
72905
|
-
continue;
|
|
72906
71987
|
const st = __classPrivateFieldGet(this, _ScriptIterator_hScript, "f")[cs.fn];
|
|
72907
71988
|
const tkn = st.aToken[cs.idx - 1];
|
|
72908
71989
|
const lc = __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_cnvIdx2lineCol).call(this, st, cs.idx);
|
|
@@ -72912,7 +71993,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72912
71993
|
ln: lc.ln,
|
|
72913
71994
|
col: lc.col_s + 1,
|
|
72914
71995
|
nm: tag_name ? `[${tag_name}]` : tkn,
|
|
72915
|
-
ma: cs.csArg
|
|
71996
|
+
ma: cs.csArg[':hMp']['const.sn.macro'] ?? '{}',
|
|
72916
71997
|
});
|
|
72917
71998
|
}
|
|
72918
71999
|
return a;
|
|
@@ -72948,11 +72029,9 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72948
72029
|
console.info(now);
|
|
72949
72030
|
for (let i = len - 1; i >= 0; --i) {
|
|
72950
72031
|
const cs = __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f")[i];
|
|
72951
|
-
|
|
72952
|
-
|
|
72953
|
-
const
|
|
72954
|
-
const from_macro_nm = csa ? csa['タグ名'] : null;
|
|
72955
|
-
const call_nm = cs.csArg.タグ名;
|
|
72032
|
+
const csa = cs.csArg[':hMp'];
|
|
72033
|
+
const from_macro_nm = csa ? csa[':タグ名'] : null;
|
|
72034
|
+
const call_nm = cs.csArg[':タグ名'] ?? '';
|
|
72956
72035
|
const lc = __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_cnvIdx2lineCol).call(this, __classPrivateFieldGet(this, _ScriptIterator_hScript, "f")[cs.fn], cs.idx);
|
|
72957
72036
|
console.info(`${len - i}つ前のコール元 fn:${cs.fn} line:${lc.ln} col:${lc.col_s + 1}` + (from_macro_nm ? '([' + from_macro_nm + ']マクロ内)' : ' ') +
|
|
72958
72037
|
`で [${call_nm} ...]をコール`);
|
|
@@ -73088,7 +72167,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73088
72167
|
const fn = hArg.fn;
|
|
73089
72168
|
if (fn)
|
|
73090
72169
|
__classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
|
|
73091
|
-
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { hEvt1Time: __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), hMp: this.val.cloneMp() });
|
|
72170
|
+
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
|
|
73092
72171
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'clear_local_event', false))
|
|
73093
72172
|
this.hTag.clear_event({});
|
|
73094
72173
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_jumpWork).call(this, fn, hArg.label);
|
|
@@ -73096,7 +72175,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73096
72175
|
}, _ScriptIterator_callSub = function _ScriptIterator_callSub(csa) {
|
|
73097
72176
|
__classPrivateFieldGet(this, _ScriptIterator_script, "f").aLNum[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f")] = __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f");
|
|
73098
72177
|
if (!__classPrivateFieldGet(this, _ScriptIterator_resvToken, "f")) {
|
|
73099
|
-
csa
|
|
72178
|
+
csa[':resvToken'] = '';
|
|
73100
72179
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_clearResvToken).call(this);
|
|
73101
72180
|
}
|
|
73102
72181
|
__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").push(new CallStack_1.CallStack(__classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f"), __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f"), csa));
|
|
@@ -73153,13 +72232,11 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73153
72232
|
if (!cs)
|
|
73154
72233
|
throw '[return] スタックが空です';
|
|
73155
72234
|
const csArg = cs.csArg;
|
|
73156
|
-
if (!csArg)
|
|
73157
|
-
return false;
|
|
73158
72235
|
__classPrivateFieldGet(this, _ScriptIterator_aIfStk, "f").shift();
|
|
73159
|
-
const hMp = csArg
|
|
72236
|
+
const hMp = csArg[':hMp'];
|
|
73160
72237
|
if (hMp)
|
|
73161
72238
|
this.val.setMp(hMp);
|
|
73162
|
-
const after_token = csArg
|
|
72239
|
+
const after_token = csArg[':resvToken'];
|
|
73163
72240
|
if (after_token)
|
|
73164
72241
|
this.nextToken = () => {
|
|
73165
72242
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_clearResvToken).call(this);
|
|
@@ -73167,8 +72244,8 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73167
72244
|
};
|
|
73168
72245
|
else
|
|
73169
72246
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_clearResvToken).call(this);
|
|
73170
|
-
if (csArg
|
|
73171
|
-
__classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").pushLocalEvts(csArg
|
|
72247
|
+
if (csArg[':hEvt1Time'])
|
|
72248
|
+
__classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").pushLocalEvts(csArg[':hEvt1Time']);
|
|
73172
72249
|
if (cs.fn in __classPrivateFieldGet(this, _ScriptIterator_hScript, "f")) {
|
|
73173
72250
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_jump_light).call(this, cs);
|
|
73174
72251
|
return false;
|
|
@@ -73405,7 +72482,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73405
72482
|
__classPrivateFieldSet(this, _ScriptIterator_REGSTEPIN, new RegExp(`\\[(${__classPrivateFieldGet(this, _ScriptIterator_strStepin, "f")})\\b`), "f");
|
|
73406
72483
|
this.hTag[name] = hArgM => {
|
|
73407
72484
|
hArgM.design_unit = hArg.design_unit;
|
|
73408
|
-
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ...hArgM, hMp: this.val.cloneMp() });
|
|
72485
|
+
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ...hArgM, ':hMp': this.val.cloneMp() });
|
|
73409
72486
|
this.val.setMp(hArgM);
|
|
73410
72487
|
this.val.setVal_Nochk('mp', 'const.sn.macro', JSON.stringify(hArg));
|
|
73411
72488
|
this.val.setVal_Nochk('mp', 'const.sn.me_call_scriptFn', __classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f"));
|
|
@@ -73516,7 +72593,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73516
72593
|
if (!('place' in hArg))
|
|
73517
72594
|
throw 'placeは必須です';
|
|
73518
72595
|
const place = Number(hArg.place);
|
|
73519
|
-
delete hArg
|
|
72596
|
+
delete hArg[':タグ名'];
|
|
73520
72597
|
delete hArg.place;
|
|
73521
72598
|
hArg.text = (hArg.text ?? '').replace(/^(<br\/>)+/, '');
|
|
73522
72599
|
__classPrivateFieldGet(this, _ScriptIterator_mark, "f").json = hArg;
|
|
@@ -74795,9 +73872,8 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
74795
73872
|
__classPrivateFieldSet(this, _TxtLayer_firstCh, false, "f");
|
|
74796
73873
|
add_htm = '<ruby> <rt> </rt></ruby><br/>';
|
|
74797
73874
|
}
|
|
74798
|
-
else
|
|
73875
|
+
else
|
|
74799
73876
|
add_htm = '<br/>';
|
|
74800
|
-
}
|
|
74801
73877
|
break;
|
|
74802
73878
|
}
|
|
74803
73879
|
if (__classPrivateFieldGet(this, _TxtLayer_firstCh, "f")) {
|
|
@@ -74834,7 +73910,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
74834
73910
|
.replaceAll('`', '\\`'));
|
|
74835
73911
|
if (!__classPrivateFieldGet(this, _TxtLayer_needGoTxt, "f"))
|
|
74836
73912
|
return;
|
|
74837
|
-
__classPrivateFieldGet(this, _TxtLayer_txs, "f").goTxt(
|
|
73913
|
+
__classPrivateFieldGet(this, _TxtLayer_txs, "f").goTxt(__classPrivateFieldGet(this, _TxtLayer_aSpan, "f"));
|
|
74838
73914
|
__classPrivateFieldSet(this, _TxtLayer_needGoTxt, false, "f");
|
|
74839
73915
|
__classPrivateFieldSet(this, _TxtLayer_cumDelay, 0, "f");
|
|
74840
73916
|
return;
|
|
@@ -75260,7 +74336,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75260
74336
|
aPrm = aPrm.concat(aBtn.map(v => this.addButton(JSON.parse(v.replaceAll(`'`, '"')))));
|
|
75261
74337
|
}
|
|
75262
74338
|
snapshot(rnd, re) {
|
|
75263
|
-
rnd.render(this.spLay,
|
|
74339
|
+
rnd.render(this.spLay, { clear: false });
|
|
75264
74340
|
__classPrivateFieldGet(this, _TxtLayer_txs, "f").snapshot(rnd, re);
|
|
75265
74341
|
}
|
|
75266
74342
|
snapshot_end() { __classPrivateFieldGet(this, _TxtLayer_txs, "f").snapshot_end(); }
|
|
@@ -75550,7 +74626,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
75550
74626
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
75551
74627
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
75552
74628
|
};
|
|
75553
|
-
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm,
|
|
74629
|
+
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _TxtStage_break_fixed, _TxtStage_break_fixed_left, _TxtStage_break_fixed_top, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm, _TxtStage_REGDS, _TxtStage_fncEndChIn, _TxtStage_spWork, _TxtStage_isChInIng, _TxtStage_hChInStyle, _TxtStage_REG_NG_CHSTYLE_NAME_CHR, _TxtStage_hChOutStyle, _TxtStage_cntBreak, _TxtStage_lh_half, _TxtStage_getChRects, _TxtStage_fi_easing, _TxtStage_fo_easing, _TxtStage_clearText, _TxtStage_sss;
|
|
75554
74630
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75555
74631
|
exports.TxtStage = void 0;
|
|
75556
74632
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -75582,6 +74658,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75582
74658
|
pad_top: 0,
|
|
75583
74659
|
pad_bottom: 0,
|
|
75584
74660
|
});
|
|
74661
|
+
_TxtStage_break_fixed.set(this, false);
|
|
74662
|
+
_TxtStage_break_fixed_left.set(this, 0);
|
|
74663
|
+
_TxtStage_break_fixed_top.set(this, 0);
|
|
75585
74664
|
_TxtStage_left.set(this, 0);
|
|
75586
74665
|
_TxtStage_isTategaki.set(this, false);
|
|
75587
74666
|
_TxtStage_padTx4x.set(this, 0);
|
|
@@ -75591,7 +74670,6 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75591
74670
|
_TxtStage_aRect.set(this, []);
|
|
75592
74671
|
_TxtStage_lenHtmTxt.set(this, 0);
|
|
75593
74672
|
_TxtStage_beforeHTMLElm.set(this, null);
|
|
75594
|
-
_TxtStage_rctm.set(this, new pixi_js_1.Rectangle);
|
|
75595
74673
|
_TxtStage_REGDS.set(this, /animation\-duration: (?<ms>\d+)ms;/);
|
|
75596
74674
|
_TxtStage_fncEndChIn.set(this, () => { });
|
|
75597
74675
|
_TxtStage_isChInIng.set(this, false);
|
|
@@ -75672,6 +74750,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75672
74750
|
this.cvsResize();
|
|
75673
74751
|
s.display = this.spLay.visible ? 'inline' : 'none';
|
|
75674
74752
|
s.textShadow = hArg.filter ?? s.textShadow ?? '';
|
|
74753
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed, (0, CmnLib_1.argChk_Boolean)(hArg, 'break_fixed', __classPrivateFieldGet(this, _TxtStage_break_fixed, "f")), "f");
|
|
74754
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed_left, (0, CmnLib_1.argChk_Num)(hArg, 'break_fixed_left', __classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f")), "f");
|
|
74755
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed_top, (0, CmnLib_1.argChk_Num)(hArg, 'break_fixed_top', __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f")), "f");
|
|
75675
74756
|
if (':redraw' in hArg && __classPrivateFieldGet(this, _TxtStage_lenHtmTxt, "f") > 0) {
|
|
75676
74757
|
const aSpan = [
|
|
75677
74758
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").innerHTML.replace(/(animation-delay: )\d+ms/g, '$10ms'),
|
|
@@ -75700,7 +74781,6 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75700
74781
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height + 'px';
|
|
75701
74782
|
}
|
|
75702
74783
|
goTxt(aSpan) {
|
|
75703
|
-
var _b;
|
|
75704
74784
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).visible = false;
|
|
75705
74785
|
const begin = __classPrivateFieldGet(this, _TxtStage_aRect, "f").length;
|
|
75706
74786
|
if (begin === 0) {
|
|
@@ -75717,10 +74797,10 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75717
74797
|
.drawRect(0, 0, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom)
|
|
75718
74798
|
.endFill();
|
|
75719
74799
|
}
|
|
75720
|
-
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").innerHTML = [...aSpan].join('');
|
|
74800
|
+
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").innerHTML = [...aSpan].join('').replaceAll(/[\n\t]/g, '');
|
|
75721
74801
|
}
|
|
75722
74802
|
else
|
|
75723
|
-
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").insertAdjacentHTML('beforeend', aSpan.slice(__classPrivateFieldGet(this, _TxtStage_lenHtmTxt, "f")).join(''));
|
|
74803
|
+
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").insertAdjacentHTML('beforeend', aSpan.slice(__classPrivateFieldGet(this, _TxtStage_lenHtmTxt, "f")).join('').replaceAll(/[\n\t]/g, ''));
|
|
75724
74804
|
__classPrivateFieldSet(this, _TxtStage_lenHtmTxt, aSpan.length, "f");
|
|
75725
74805
|
let len = 0;
|
|
75726
74806
|
let j = 2;
|
|
@@ -75760,29 +74840,19 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75760
74840
|
const oldJ = j;
|
|
75761
74841
|
if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_reg分割禁止).test(e[j - 1].ch)
|
|
75762
74842
|
&& (e[j - 1].ch === he.ch)) {
|
|
75763
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
75764
|
-
console.log(`🎴追い出し(分割禁止)ch:${he.ch}`);
|
|
75765
74843
|
--j;
|
|
75766
74844
|
}
|
|
75767
74845
|
else {
|
|
75768
74846
|
if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_reg行末禁則).test(e[j - 1].ch)) {
|
|
75769
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
75770
|
-
console.log(`🎴追い出し(行末禁則)前ch:${e[j - 1].ch}`);
|
|
75771
74847
|
--j;
|
|
75772
74848
|
}
|
|
75773
74849
|
else if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_reg行頭禁則).test(he.ch)) {
|
|
75774
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
75775
|
-
console.log(`🎴追い出し(行頭禁則 A)前ch:${he.ch}`);
|
|
75776
74850
|
while (j > 0 && __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_reg行頭禁則).test(e[--j].ch)) {
|
|
75777
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
75778
|
-
console.log(`🎴 (行頭禁則 A)前ch:${e[j].ch}`);
|
|
75779
74851
|
}
|
|
75780
74852
|
}
|
|
75781
74853
|
else
|
|
75782
74854
|
continue;
|
|
75783
74855
|
while (j > 0 && __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_reg行末禁則).test(e[j - 1].ch)) {
|
|
75784
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
75785
|
-
console.log(`🎴追い出し(行末禁則 B)前ch:${e[j - 1].ch}`);
|
|
75786
74856
|
--j;
|
|
75787
74857
|
}
|
|
75788
74858
|
}
|
|
@@ -75790,8 +74860,14 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75790
74860
|
const br = document.createElement('br');
|
|
75791
74861
|
if (pal.classList.contains('sn_tx'))
|
|
75792
74862
|
pal.insertBefore(br, e[j].elm);
|
|
75793
|
-
else
|
|
75794
|
-
pal.parentElement
|
|
74863
|
+
else {
|
|
74864
|
+
const ppal = pal.parentElement;
|
|
74865
|
+
if (ppal.classList.contains('sn_ch')) {
|
|
74866
|
+
ppal.parentElement.insertBefore(br, ppal);
|
|
74867
|
+
}
|
|
74868
|
+
else
|
|
74869
|
+
ppal.insertBefore(br, pal);
|
|
74870
|
+
}
|
|
75795
74871
|
j += 2;
|
|
75796
74872
|
if (j < oldJ)
|
|
75797
74873
|
j = oldJ;
|
|
@@ -75816,6 +74892,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75816
74892
|
const bcr = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getBoundingClientRect();
|
|
75817
74893
|
const sx = bcr.left + globalThis.scrollX + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left;
|
|
75818
74894
|
const sy = bcr.top + globalThis.scrollY + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top;
|
|
74895
|
+
let rctLastCh = new pixi_js_1.Rectangle;
|
|
75819
74896
|
for (let i = begin; i < len; ++i) {
|
|
75820
74897
|
const v = __classPrivateFieldGet(this, _TxtStage_aRect, "f")[i];
|
|
75821
74898
|
const rct = v.rect;
|
|
@@ -75834,7 +74911,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75834
74911
|
rct.y += (rct.height - rct.width) / 2;
|
|
75835
74912
|
rct.height = rct.width;
|
|
75836
74913
|
}
|
|
75837
|
-
|
|
74914
|
+
rctLastCh = rct;
|
|
75838
74915
|
}
|
|
75839
74916
|
switch (v.cmd) {
|
|
75840
74917
|
case 'grp':
|
|
@@ -75867,19 +74944,19 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75867
74944
|
break;
|
|
75868
74945
|
}
|
|
75869
74946
|
}
|
|
75870
|
-
__classPrivateFieldGet(this, _TxtStage_aRect, "f").slice(0, -1);
|
|
75871
|
-
__classPrivateFieldSet(this, _TxtStage_lenHtmTxt, (_b = __classPrivateFieldGet(this, _TxtStage_lenHtmTxt, "f"), --_b), "f");
|
|
75872
|
-
const clSpan = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getElementsByTagName('span');
|
|
75873
|
-
const lenClSpan = clSpan.length;
|
|
75874
|
-
if (lenClSpan > 0)
|
|
75875
|
-
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").removeChild(clSpan[lenClSpan - 1]);
|
|
75876
74947
|
const chs = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").querySelectorAll('span.sn_ch');
|
|
75877
74948
|
chs.forEach(v => v.className = v.className.replace(/sn_ch_in_([^\s"]+)/g, 'go_ch_in_$1'));
|
|
75878
74949
|
__classPrivateFieldSet(this, _TxtStage_isChInIng, true, "f");
|
|
75879
74950
|
__classPrivateFieldSet(this, _TxtStage_fncEndChIn, () => {
|
|
75880
74951
|
__classPrivateFieldSet(this, _TxtStage_isChInIng, false, "f");
|
|
75881
74952
|
chs.forEach(v => v.className = v.className.replace(/ go_ch_in_[^\s"]+/g, ''));
|
|
75882
|
-
|
|
74953
|
+
if (begin !== len) {
|
|
74954
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed_left, rctLastCh.x
|
|
74955
|
+
+ (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? 0 : rctLastCh.width), "f");
|
|
74956
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed_top, rctLastCh.y
|
|
74957
|
+
+ (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? rctLastCh.height : 0), "f");
|
|
74958
|
+
}
|
|
74959
|
+
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(__classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"), __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"));
|
|
75883
74960
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).visible = true;
|
|
75884
74961
|
__classPrivateFieldSet(this, _TxtStage_fncEndChIn, () => { }, "f");
|
|
75885
74962
|
}, "f");
|
|
@@ -76006,6 +75083,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76006
75083
|
__classPrivateFieldSet(to, _TxtStage_ch_filter, __classPrivateFieldGet(this, _TxtStage_ch_filter, "f"), "f");
|
|
76007
75084
|
__classPrivateFieldSet(to, _TxtStage_fi_easing, __classPrivateFieldGet(this, _TxtStage_fi_easing, "f"), "f");
|
|
76008
75085
|
__classPrivateFieldSet(to, _TxtStage_fo_easing, __classPrivateFieldGet(this, _TxtStage_fo_easing, "f"), "f");
|
|
75086
|
+
__classPrivateFieldSet(to, _TxtStage_break_fixed, __classPrivateFieldGet(this, _TxtStage_break_fixed, "f"), "f");
|
|
75087
|
+
__classPrivateFieldSet(to, _TxtStage_break_fixed_left, __classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"), "f");
|
|
75088
|
+
__classPrivateFieldSet(to, _TxtStage_break_fixed_top, __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"), "f");
|
|
76009
75089
|
this.destroy();
|
|
76010
75090
|
return to;
|
|
76011
75091
|
}
|
|
@@ -76018,6 +75098,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76018
75098
|
ch_filter: __classPrivateFieldGet(this, _TxtStage_ch_filter, "f"),
|
|
76019
75099
|
fi_easing: __classPrivateFieldGet(this, _TxtStage_fi_easing, "f"),
|
|
76020
75100
|
fo_easing: __classPrivateFieldGet(this, _TxtStage_fo_easing, "f"),
|
|
75101
|
+
break_fixed: __classPrivateFieldGet(this, _TxtStage_break_fixed, "f"),
|
|
75102
|
+
break_fixed_left: __classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"),
|
|
75103
|
+
break_fixed_top: __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"),
|
|
76021
75104
|
};
|
|
76022
75105
|
}
|
|
76023
75106
|
;
|
|
@@ -76031,6 +75114,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76031
75114
|
__classPrivateFieldSet(this, _TxtStage_ch_filter, hLay.ch_filter, "f");
|
|
76032
75115
|
__classPrivateFieldSet(this, _TxtStage_fi_easing, hLay.fi_easing, "f");
|
|
76033
75116
|
__classPrivateFieldSet(this, _TxtStage_fo_easing, hLay.fo_easing, "f");
|
|
75117
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed, hLay.break_fixed ?? false, "f");
|
|
75118
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed_left, hLay.break_fixed_left ?? 0, "f");
|
|
75119
|
+
__classPrivateFieldSet(this, _TxtStage_break_fixed_top, hLay.break_fixed_top ?? 0, "f");
|
|
76034
75120
|
}
|
|
76035
75121
|
snapshot(rnd, re) {
|
|
76036
75122
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_htm2tx).call(this, tx => {
|
|
@@ -76080,7 +75166,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76080
75166
|
}
|
|
76081
75167
|
}
|
|
76082
75168
|
exports.TxtStage = TxtStage;
|
|
76083
|
-
_a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(), _TxtStage_grpDbgMasume = new WeakMap(), _TxtStage_idc = new WeakMap(), _TxtStage_idcCh = new WeakMap(), _TxtStage_infTL = new WeakMap(),
|
|
75169
|
+
_a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(), _TxtStage_grpDbgMasume = new WeakMap(), _TxtStage_idc = new WeakMap(), _TxtStage_idcCh = new WeakMap(), _TxtStage_infTL = new WeakMap(), _TxtStage_break_fixed = new WeakMap(), _TxtStage_break_fixed_left = new WeakMap(), _TxtStage_break_fixed_top = new WeakMap(), _TxtStage_left = new WeakMap(), _TxtStage_isTategaki = new WeakMap(), _TxtStage_padTx4x = new WeakMap(), _TxtStage_padTx4y = new WeakMap(), _TxtStage_ch_filter = new WeakMap(), _TxtStage_aSpTw = new WeakMap(), _TxtStage_aRect = new WeakMap(), _TxtStage_lenHtmTxt = new WeakMap(), _TxtStage_beforeHTMLElm = new WeakMap(), _TxtStage_REGDS = new WeakMap(), _TxtStage_fncEndChIn = new WeakMap(), _TxtStage_isChInIng = new WeakMap(), _TxtStage_lh_half = new WeakMap(), _TxtStage_fi_easing = new WeakMap(), _TxtStage_fo_easing = new WeakMap(), _TxtStage_sss = new WeakMap(), _TxtStage_instances = new WeakSet(), _TxtStage_lay_sub = function _TxtStage_lay_sub() {
|
|
76084
75170
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
76085
75171
|
const fs = parseFloat(s.fontSize || '0');
|
|
76086
75172
|
__classPrivateFieldGet(this, _TxtStage_infTL, "f").fontsize = fs;
|