@famibee/skynovel 1.27.7 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -2
- package/app.js +286 -382
- package/appMain.js +76 -62
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +1 -5
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +6 -5
- package/core/lib/sn/CmnInterface.d.ts +1 -0
- package/core/lib/sn/CmnInterface.d.ts.map +1 -1
- package/core/lib/sn/DesignCast.d.ts.map +1 -1
- package/core/lib/sn/Main.d.ts +1 -0
- package/core/lib/sn/Main.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts +2 -2
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/SysBase.d.ts +5 -3
- package/core/lib/sn/SysBase.d.ts.map +1 -1
- package/core/lib/sn/SysWeb.d.ts +1 -0
- package/core/lib/sn/SysWeb.d.ts.map +1 -1
- package/package.json +6 -6
- package/web.js +284 -375
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.2
|
|
2603
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 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.2
|
|
3169
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 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.2
|
|
3466
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 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.2
|
|
4728
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 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.2
|
|
5341
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
5342
5342
|
*
|
|
5343
5343
|
* @pixi/core is licensed under the MIT License.
|
|
5344
5344
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -9730,6 +9730,9 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9730
9730
|
rect.height = y1 - y0;
|
|
9731
9731
|
};
|
|
9732
9732
|
FilterSystem.prototype.roundFrame = function (frame, resolution, bindingSourceFrame, bindingDestinationFrame, transform) {
|
|
9733
|
+
if (frame.width <= 0 || frame.height <= 0 || bindingSourceFrame.width <= 0 || bindingSourceFrame.height <= 0) {
|
|
9734
|
+
return;
|
|
9735
|
+
}
|
|
9733
9736
|
if (transform) {
|
|
9734
9737
|
var a = transform.a, b = transform.b, c = transform.c, d = transform.d;
|
|
9735
9738
|
// Skip if skew/rotation present in matrix, except for multiple of 90° rotation. If rotation
|
|
@@ -16371,8 +16374,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16371
16374
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
16372
16375
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
16373
16376
|
/*!
|
|
16374
|
-
* @pixi/display - v6.2.
|
|
16375
|
-
* Compiled
|
|
16377
|
+
* @pixi/display - v6.2.2
|
|
16378
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
16376
16379
|
*
|
|
16377
16380
|
* @pixi/display is licensed under the MIT License.
|
|
16378
16381
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -17764,8 +17767,8 @@ var TemporaryDisplayObject = /** @class */ (function (_super) {
|
|
|
17764
17767
|
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
|
|
17765
17768
|
|
|
17766
17769
|
/*!
|
|
17767
|
-
* @pixi/constants - v6.2.
|
|
17768
|
-
* Compiled
|
|
17770
|
+
* @pixi/constants - v6.2.2
|
|
17771
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
17769
17772
|
*
|
|
17770
17773
|
* @pixi/constants is licensed under the MIT License.
|
|
17771
17774
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -18896,8 +18899,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18896
18899
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
18897
18900
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
18898
18901
|
/*!
|
|
18899
|
-
* @pixi/extract - v6.2.
|
|
18900
|
-
* Compiled
|
|
18902
|
+
* @pixi/extract - v6.2.2
|
|
18903
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
18901
18904
|
*
|
|
18902
18905
|
* @pixi/extract is licensed under the MIT License.
|
|
18903
18906
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19125,8 +19128,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19125
19128
|
/* harmony export */ });
|
|
19126
19129
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19127
19130
|
/*!
|
|
19128
|
-
* @pixi/filter-alpha - v6.2.
|
|
19129
|
-
* Compiled
|
|
19131
|
+
* @pixi/filter-alpha - v6.2.2
|
|
19132
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
19130
19133
|
*
|
|
19131
19134
|
* @pixi/filter-alpha is licensed under the MIT License.
|
|
19132
19135
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19229,8 +19232,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19229
19232
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19230
19233
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
19231
19234
|
/*!
|
|
19232
|
-
* @pixi/filter-blur - v6.2.
|
|
19233
|
-
* Compiled
|
|
19235
|
+
* @pixi/filter-blur - v6.2.2
|
|
19236
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
19234
19237
|
*
|
|
19235
19238
|
* @pixi/filter-blur is licensed under the MIT License.
|
|
19236
19239
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19329,8 +19332,8 @@ function generateBlurFragSource(kernelSize) {
|
|
|
19329
19332
|
}
|
|
19330
19333
|
|
|
19331
19334
|
/*!
|
|
19332
|
-
* @pixi/constants - v6.2.
|
|
19333
|
-
* Compiled
|
|
19335
|
+
* @pixi/constants - v6.2.2
|
|
19336
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
19334
19337
|
*
|
|
19335
19338
|
* @pixi/constants is licensed under the MIT License.
|
|
19336
19339
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20147,8 +20150,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20147
20150
|
/* harmony export */ });
|
|
20148
20151
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20149
20152
|
/*!
|
|
20150
|
-
* @pixi/filter-color-matrix - v6.2.
|
|
20151
|
-
* Compiled
|
|
20153
|
+
* @pixi/filter-color-matrix - v6.2.2
|
|
20154
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20152
20155
|
*
|
|
20153
20156
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
|
20154
20157
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20708,8 +20711,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20708
20711
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20709
20712
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
20710
20713
|
/*!
|
|
20711
|
-
* @pixi/filter-displacement - v6.2.
|
|
20712
|
-
* Compiled
|
|
20714
|
+
* @pixi/filter-displacement - v6.2.2
|
|
20715
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20713
20716
|
*
|
|
20714
20717
|
* @pixi/filter-displacement is licensed under the MIT License.
|
|
20715
20718
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20853,8 +20856,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20853
20856
|
/* harmony export */ });
|
|
20854
20857
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20855
20858
|
/*!
|
|
20856
|
-
* @pixi/filter-fxaa - v6.2.
|
|
20857
|
-
* Compiled
|
|
20859
|
+
* @pixi/filter-fxaa - v6.2.2
|
|
20860
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20858
20861
|
*
|
|
20859
20862
|
* @pixi/filter-fxaa is licensed under the MIT License.
|
|
20860
20863
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20930,8 +20933,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20930
20933
|
/* harmony export */ });
|
|
20931
20934
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20932
20935
|
/*!
|
|
20933
|
-
* @pixi/filter-noise - v6.2.
|
|
20934
|
-
* Compiled
|
|
20936
|
+
* @pixi/filter-noise - v6.2.2
|
|
20937
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20935
20938
|
*
|
|
20936
20939
|
* @pixi/filter-noise is licensed under the MIT License.
|
|
20937
20940
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -21054,8 +21057,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21054
21057
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
21055
21058
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
21056
21059
|
/*!
|
|
21057
|
-
* @pixi/graphics - v6.2.
|
|
21058
|
-
* Compiled
|
|
21060
|
+
* @pixi/graphics - v6.2.2
|
|
21061
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
21059
21062
|
*
|
|
21060
21063
|
* @pixi/graphics is licensed under the MIT License.
|
|
21061
21064
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -23781,6 +23784,7 @@ var Graphics = /** @class */ (function (_super) {
|
|
|
23781
23784
|
var data = this._geometry.graphicsData;
|
|
23782
23785
|
return data.length === 1
|
|
23783
23786
|
&& data[0].shape.type === _pixi_math__WEBPACK_IMPORTED_MODULE_1__.SHAPES.RECT
|
|
23787
|
+
&& !data[0].matrix
|
|
23784
23788
|
&& !data[0].holes.length
|
|
23785
23789
|
&& !(data[0].lineStyle.visible && data[0].lineStyle.width);
|
|
23786
23790
|
};
|
|
@@ -24128,8 +24132,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24128
24132
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
24129
24133
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
24130
24134
|
/*!
|
|
24131
|
-
* @pixi/interaction - v6.2.
|
|
24132
|
-
* Compiled
|
|
24135
|
+
* @pixi/interaction - v6.2.2
|
|
24136
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
24133
24137
|
*
|
|
24134
24138
|
* @pixi/interaction is licensed under the MIT License.
|
|
24135
24139
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -26392,8 +26396,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26392
26396
|
/* harmony export */ });
|
|
26393
26397
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
26394
26398
|
/*!
|
|
26395
|
-
* @pixi/loaders - v6.2.
|
|
26396
|
-
* Compiled
|
|
26399
|
+
* @pixi/loaders - v6.2.2
|
|
26400
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
26397
26401
|
*
|
|
26398
26402
|
* @pixi/loaders is licensed under the MIT License.
|
|
26399
26403
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -27776,8 +27780,8 @@ var rgxExtractUrlHash = /(#[\w-]+)?$/;
|
|
|
27776
27780
|
*
|
|
27777
27781
|
* ```js
|
|
27778
27782
|
* const loader = PIXI.Loader.shared; // PixiJS exposes a premade instance for you to use.
|
|
27779
|
-
* //or
|
|
27780
|
-
* const loader = new PIXI.Loader(); //
|
|
27783
|
+
* // or
|
|
27784
|
+
* const loader = new PIXI.Loader(); // You can also create your own if you want
|
|
27781
27785
|
*
|
|
27782
27786
|
* const sprites = {};
|
|
27783
27787
|
*
|
|
@@ -27815,7 +27819,6 @@ var rgxExtractUrlHash = /(#[\w-]+)?$/;
|
|
|
27815
27819
|
* loader.onComplete.add(() => {}); // called once when the queued resources all load.
|
|
27816
27820
|
* ```
|
|
27817
27821
|
*
|
|
27818
|
-
* @class Loader
|
|
27819
27822
|
* @memberof PIXI
|
|
27820
27823
|
*/
|
|
27821
27824
|
var Loader = /** @class */ (function () {
|
|
@@ -27827,6 +27830,35 @@ var Loader = /** @class */ (function () {
|
|
|
27827
27830
|
var _this = this;
|
|
27828
27831
|
if (baseUrl === void 0) { baseUrl = ''; }
|
|
27829
27832
|
if (concurrency === void 0) { concurrency = 10; }
|
|
27833
|
+
/**
|
|
27834
|
+
* The progress percent of the loader going through the queue.
|
|
27835
|
+
*/
|
|
27836
|
+
this.progress = 0;
|
|
27837
|
+
/**
|
|
27838
|
+
* Loading state of the loader, true if it is currently loading resources.
|
|
27839
|
+
*/
|
|
27840
|
+
this.loading = false;
|
|
27841
|
+
/**
|
|
27842
|
+
* A querystring to append to every URL added to the loader.
|
|
27843
|
+
*
|
|
27844
|
+
* This should be a valid query string *without* the question-mark (`?`). The loader will
|
|
27845
|
+
* also *not* escape values for you. Make sure to escape your parameters with
|
|
27846
|
+
* [`encodeURIComponent`](https://mdn.io/encodeURIComponent) before assigning this property.
|
|
27847
|
+
*
|
|
27848
|
+
* @example
|
|
27849
|
+
* const loader = new Loader();
|
|
27850
|
+
*
|
|
27851
|
+
* loader.defaultQueryString = 'user=me&password=secret';
|
|
27852
|
+
*
|
|
27853
|
+
* // This will request 'image.png?user=me&password=secret'
|
|
27854
|
+
* loader.add('image.png').load();
|
|
27855
|
+
*
|
|
27856
|
+
* loader.reset();
|
|
27857
|
+
*
|
|
27858
|
+
* // This will request 'image.png?v=1&user=me&password=secret'
|
|
27859
|
+
* loader.add('iamge.png?v=1').load();
|
|
27860
|
+
*/
|
|
27861
|
+
this.defaultQueryString = '';
|
|
27830
27862
|
/**
|
|
27831
27863
|
* The middleware to run before loading each resource.
|
|
27832
27864
|
*/
|
|
@@ -27842,23 +27874,15 @@ var Loader = /** @class */ (function () {
|
|
|
27842
27874
|
/**
|
|
27843
27875
|
* The `_loadResource` function bound with this object context.
|
|
27844
27876
|
*
|
|
27845
|
-
* @
|
|
27846
|
-
* @
|
|
27847
|
-
* @param {PIXI.LoaderResource} r - The resource to load
|
|
27848
|
-
* @param {Function} d - The dequeue function
|
|
27849
|
-
* @return {undefined}
|
|
27877
|
+
* @param r - The resource to load
|
|
27878
|
+
* @param d - The dequeue function
|
|
27850
27879
|
*/
|
|
27851
27880
|
this._boundLoadResource = function (r, d) { return _this._loadResource(r, d); };
|
|
27852
27881
|
/**
|
|
27853
27882
|
* All the resources for this loader keyed by name.
|
|
27854
|
-
*
|
|
27855
|
-
* @member {object<string, PIXI.LoaderResource>}
|
|
27856
27883
|
*/
|
|
27857
27884
|
this.resources = {};
|
|
27858
27885
|
this.baseUrl = baseUrl;
|
|
27859
|
-
this.progress = 0;
|
|
27860
|
-
this.loading = false;
|
|
27861
|
-
this.defaultQueryString = '';
|
|
27862
27886
|
this._beforeMiddleware = [];
|
|
27863
27887
|
this._afterMiddleware = [];
|
|
27864
27888
|
this._resourcesParsing = [];
|
|
@@ -27885,12 +27909,13 @@ var Loader = /** @class */ (function () {
|
|
|
27885
27909
|
}
|
|
27886
27910
|
/**
|
|
27887
27911
|
* Same as add, params have strict order
|
|
27912
|
+
*
|
|
27888
27913
|
* @private
|
|
27889
27914
|
* @param name - The name of the resource to load.
|
|
27890
27915
|
* @param url - The url for this resource, relative to the baseUrl of this loader.
|
|
27891
27916
|
* @param options - The options for the load.
|
|
27892
27917
|
* @param callback - Function to call when this specific resource completes loading.
|
|
27893
|
-
* @return
|
|
27918
|
+
* @return The loader itself.
|
|
27894
27919
|
*/
|
|
27895
27920
|
Loader.prototype._add = function (name, url, options, callback) {
|
|
27896
27921
|
// if loading already you can only add resources that have a parent.
|
|
@@ -27936,7 +27961,7 @@ var Loader = /** @class */ (function () {
|
|
|
27936
27961
|
* resource is loaded.
|
|
27937
27962
|
*
|
|
27938
27963
|
* @param fn - The middleware function to register.
|
|
27939
|
-
* @return
|
|
27964
|
+
* @return The loader itself.
|
|
27940
27965
|
*/
|
|
27941
27966
|
Loader.prototype.pre = function (fn) {
|
|
27942
27967
|
this._beforeMiddleware.push(fn);
|
|
@@ -27947,7 +27972,7 @@ var Loader = /** @class */ (function () {
|
|
|
27947
27972
|
* resource is loaded.
|
|
27948
27973
|
*
|
|
27949
27974
|
* @param fn - The middleware function to register.
|
|
27950
|
-
* @return
|
|
27975
|
+
* @return The loader itself.
|
|
27951
27976
|
*/
|
|
27952
27977
|
Loader.prototype.use = function (fn) {
|
|
27953
27978
|
this._afterMiddleware.push(fn);
|
|
@@ -27956,7 +27981,7 @@ var Loader = /** @class */ (function () {
|
|
|
27956
27981
|
/**
|
|
27957
27982
|
* Resets the queue of the loader to prepare for a new load.
|
|
27958
27983
|
*
|
|
27959
|
-
* @return
|
|
27984
|
+
* @return The loader itself.
|
|
27960
27985
|
*/
|
|
27961
27986
|
Loader.prototype.reset = function () {
|
|
27962
27987
|
this.progress = 0;
|
|
@@ -27978,8 +28003,8 @@ var Loader = /** @class */ (function () {
|
|
|
27978
28003
|
};
|
|
27979
28004
|
/**
|
|
27980
28005
|
* Starts loading the queued resources.
|
|
27981
|
-
* @param
|
|
27982
|
-
* @return
|
|
28006
|
+
* @param cb - Optional callback that will be bound to the `complete` event.
|
|
28007
|
+
* @return The loader itself.
|
|
27983
28008
|
*/
|
|
27984
28009
|
Loader.prototype.load = function (cb) {
|
|
27985
28010
|
// register complete callback if they pass one
|
|
@@ -28012,13 +28037,11 @@ var Loader = /** @class */ (function () {
|
|
|
28012
28037
|
/**
|
|
28013
28038
|
* The number of resources to load concurrently.
|
|
28014
28039
|
*
|
|
28015
|
-
* @member {number}
|
|
28016
28040
|
* @default 10
|
|
28017
28041
|
*/
|
|
28018
28042
|
get: function () {
|
|
28019
28043
|
return this._queue.concurrency;
|
|
28020
28044
|
},
|
|
28021
|
-
// eslint-disable-next-line require-jsdoc
|
|
28022
28045
|
set: function (concurrency) {
|
|
28023
28046
|
this._queue.concurrency = concurrency;
|
|
28024
28047
|
},
|
|
@@ -28063,9 +28086,8 @@ var Loader = /** @class */ (function () {
|
|
|
28063
28086
|
/**
|
|
28064
28087
|
* Loads a single resource.
|
|
28065
28088
|
*
|
|
28066
|
-
* @
|
|
28067
|
-
* @param
|
|
28068
|
-
* @param {function} dequeue - The function to call when we need to dequeue this item.
|
|
28089
|
+
* @param resource - The resource to load.
|
|
28090
|
+
* @param dequeue - The function to call when we need to dequeue this item.
|
|
28069
28091
|
*/
|
|
28070
28092
|
Loader.prototype._loadResource = function (resource, dequeue) {
|
|
28071
28093
|
var _this = this;
|
|
@@ -28214,7 +28236,6 @@ Loader.prototype.add = function add(name, url, options, callback) {
|
|
|
28214
28236
|
* import {AppLoaderPlugin} from '@pixi/loaders';
|
|
28215
28237
|
* import {Application} from '@pixi/app';
|
|
28216
28238
|
* Application.registerPlugin(AppLoaderPlugin);
|
|
28217
|
-
* @class
|
|
28218
28239
|
* @memberof PIXI
|
|
28219
28240
|
*/
|
|
28220
28241
|
var AppLoaderPlugin = /** @class */ (function () {
|
|
@@ -28222,19 +28243,13 @@ var AppLoaderPlugin = /** @class */ (function () {
|
|
|
28222
28243
|
}
|
|
28223
28244
|
/**
|
|
28224
28245
|
* Called on application constructor
|
|
28225
|
-
*
|
|
28246
|
+
*
|
|
28226
28247
|
* @private
|
|
28227
28248
|
*/
|
|
28228
28249
|
AppLoaderPlugin.init = function (options) {
|
|
28229
28250
|
options = Object.assign({
|
|
28230
28251
|
sharedLoader: false,
|
|
28231
28252
|
}, options);
|
|
28232
|
-
/**
|
|
28233
|
-
* Loader instance to help with asset loading.
|
|
28234
|
-
* @memberof PIXI.Application#
|
|
28235
|
-
* @type {PIXI.Loader}
|
|
28236
|
-
* @readonly
|
|
28237
|
-
*/
|
|
28238
28253
|
this.loader = options.sharedLoader ? Loader.shared : new Loader();
|
|
28239
28254
|
};
|
|
28240
28255
|
/**
|
|
@@ -28441,8 +28456,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28441
28456
|
/* harmony export */ "groupD8": () => (/* binding */ groupD8)
|
|
28442
28457
|
/* harmony export */ });
|
|
28443
28458
|
/*!
|
|
28444
|
-
* @pixi/math - v6.2.
|
|
28445
|
-
* Compiled
|
|
28459
|
+
* @pixi/math - v6.2.2
|
|
28460
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
28446
28461
|
*
|
|
28447
28462
|
* @pixi/math is licensed under the MIT License.
|
|
28448
28463
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -30086,8 +30101,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30086
30101
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
30087
30102
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
30088
30103
|
/*!
|
|
30089
|
-
* @pixi/mesh-extras - v6.2.
|
|
30090
|
-
* Compiled
|
|
30104
|
+
* @pixi/mesh-extras - v6.2.2
|
|
30105
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
30091
30106
|
*
|
|
30092
30107
|
* @pixi/mesh-extras is licensed under the MIT License.
|
|
30093
30108
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -30770,8 +30785,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30770
30785
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
30771
30786
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
30772
30787
|
/*!
|
|
30773
|
-
* @pixi/mesh - v6.2.
|
|
30774
|
-
* Compiled
|
|
30788
|
+
* @pixi/mesh - v6.2.2
|
|
30789
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
30775
30790
|
*
|
|
30776
30791
|
* @pixi/mesh is licensed under the MIT License.
|
|
30777
30792
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31445,8 +31460,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31445
31460
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
31446
31461
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
31447
31462
|
/*!
|
|
31448
|
-
* @pixi/mixin-cache-as-bitmap - v6.2.
|
|
31449
|
-
* Compiled
|
|
31463
|
+
* @pixi/mixin-cache-as-bitmap - v6.2.2
|
|
31464
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
31450
31465
|
*
|
|
31451
31466
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
|
31452
31467
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31459,8 +31474,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31459
31474
|
|
|
31460
31475
|
|
|
31461
31476
|
/*!
|
|
31462
|
-
* @pixi/constants - v6.2.
|
|
31463
|
-
* Compiled
|
|
31477
|
+
* @pixi/constants - v6.2.2
|
|
31478
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
31464
31479
|
*
|
|
31465
31480
|
* @pixi/constants is licensed under the MIT License.
|
|
31466
31481
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32365,8 +32380,8 @@ _pixi_display__WEBPACK_IMPORTED_MODULE_2__.DisplayObject.prototype._cacheAsBitma
|
|
|
32365
32380
|
__webpack_require__.r(__webpack_exports__);
|
|
32366
32381
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
32367
32382
|
/*!
|
|
32368
|
-
* @pixi/mixin-get-child-by-name - v6.2.
|
|
32369
|
-
* Compiled
|
|
32383
|
+
* @pixi/mixin-get-child-by-name - v6.2.2
|
|
32384
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
32370
32385
|
*
|
|
32371
32386
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
|
32372
32387
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32427,8 +32442,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32427
32442
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
32428
32443
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
32429
32444
|
/*!
|
|
32430
|
-
* @pixi/mixin-get-global-position - v6.2.
|
|
32431
|
-
* Compiled
|
|
32445
|
+
* @pixi/mixin-get-global-position - v6.2.2
|
|
32446
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
32432
32447
|
*
|
|
32433
32448
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
|
32434
32449
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32482,8 +32497,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32482
32497
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
32483
32498
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
32484
32499
|
/*!
|
|
32485
|
-
* @pixi/particle-container - v6.2.
|
|
32486
|
-
* Compiled
|
|
32500
|
+
* @pixi/particle-container - v6.2.2
|
|
32501
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
32487
32502
|
*
|
|
32488
32503
|
* @pixi/particle-container is licensed under the MIT License.
|
|
32489
32504
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32546,16 +32561,14 @@ function __extends(d, b) {
|
|
|
32546
32561
|
*
|
|
32547
32562
|
* And here you have a hundred sprites that will be rendered at the speed of light.
|
|
32548
32563
|
*
|
|
32549
|
-
* @class
|
|
32550
|
-
* @extends PIXI.Container
|
|
32551
32564
|
* @memberof PIXI
|
|
32552
32565
|
*/
|
|
32553
32566
|
var ParticleContainer = /** @class */ (function (_super) {
|
|
32554
32567
|
__extends(ParticleContainer, _super);
|
|
32555
32568
|
/**
|
|
32556
|
-
* @param
|
|
32569
|
+
* @param maxSize - The maximum number of particles that can be rendered by the container.
|
|
32557
32570
|
* Affects size of allocated buffers.
|
|
32558
|
-
* @param
|
|
32571
|
+
* @param properties - The properties of children that should be uploaded to the gpu and applied.
|
|
32559
32572
|
* @param {boolean} [properties.vertices=false] - When true, vertices be uploaded and applied.
|
|
32560
32573
|
* if sprite's ` scale/anchor/trim/frame/orig` is dynamic, please set `true`.
|
|
32561
32574
|
* @param {boolean} [properties.position=true] - When true, position be uploaded and applied.
|
|
@@ -32578,86 +32591,18 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32578
32591
|
if (batchSize > maxBatchSize) {
|
|
32579
32592
|
batchSize = maxBatchSize;
|
|
32580
32593
|
}
|
|
32581
|
-
/**
|
|
32582
|
-
* Set properties to be dynamic (true) / static (false)
|
|
32583
|
-
*
|
|
32584
|
-
* @member {boolean[]}
|
|
32585
|
-
* @private
|
|
32586
|
-
*/
|
|
32587
32594
|
_this._properties = [false, true, false, false, false];
|
|
32588
|
-
/**
|
|
32589
|
-
* @member {number}
|
|
32590
|
-
* @private
|
|
32591
|
-
*/
|
|
32592
32595
|
_this._maxSize = maxSize;
|
|
32593
|
-
/**
|
|
32594
|
-
* @member {number}
|
|
32595
|
-
* @private
|
|
32596
|
-
*/
|
|
32597
32596
|
_this._batchSize = batchSize;
|
|
32598
|
-
/**
|
|
32599
|
-
* @member {Array<PIXI.Buffer>}
|
|
32600
|
-
* @private
|
|
32601
|
-
*/
|
|
32602
32597
|
_this._buffers = null;
|
|
32603
|
-
/**
|
|
32604
|
-
* for every batch stores _updateID corresponding to the last change in that batch
|
|
32605
|
-
* @member {number[]}
|
|
32606
|
-
* @private
|
|
32607
|
-
*/
|
|
32608
32598
|
_this._bufferUpdateIDs = [];
|
|
32609
|
-
/**
|
|
32610
|
-
* when child inserted, removed or changes position this number goes up
|
|
32611
|
-
* @member {number[]}
|
|
32612
|
-
* @private
|
|
32613
|
-
*/
|
|
32614
32599
|
_this._updateID = 0;
|
|
32615
|
-
/**
|
|
32616
|
-
* @member {boolean}
|
|
32617
|
-
*
|
|
32618
|
-
*/
|
|
32619
32600
|
_this.interactiveChildren = false;
|
|
32620
|
-
/**
|
|
32621
|
-
* The blend mode to be applied to the sprite. Apply a value of `PIXI.BLEND_MODES.NORMAL`
|
|
32622
|
-
* to reset the blend mode.
|
|
32623
|
-
*
|
|
32624
|
-
* @member {number}
|
|
32625
|
-
* @default PIXI.BLEND_MODES.NORMAL
|
|
32626
|
-
* @see PIXI.BLEND_MODES
|
|
32627
|
-
*/
|
|
32628
32601
|
_this.blendMode = _pixi_constants__WEBPACK_IMPORTED_MODULE_0__.BLEND_MODES.NORMAL;
|
|
32629
|
-
/**
|
|
32630
|
-
* If true, container allocates more batches in case there are more than `maxSize` particles.
|
|
32631
|
-
* @member {boolean}
|
|
32632
|
-
* @default false
|
|
32633
|
-
*/
|
|
32634
32602
|
_this.autoResize = autoResize;
|
|
32635
|
-
/**
|
|
32636
|
-
* If true PixiJS will Math.floor() x/y values when rendering, stopping pixel interpolation.
|
|
32637
|
-
* Advantages can include sharper image quality (like text) and faster rendering on canvas.
|
|
32638
|
-
* The main disadvantage is movement of objects may appear less smooth.
|
|
32639
|
-
* Default to true here as performance is usually the priority for particles.
|
|
32640
|
-
*
|
|
32641
|
-
* @member {boolean}
|
|
32642
|
-
* @default true
|
|
32643
|
-
*/
|
|
32644
32603
|
_this.roundPixels = true;
|
|
32645
|
-
/**
|
|
32646
|
-
* The texture used to render the children.
|
|
32647
|
-
*
|
|
32648
|
-
* @readonly
|
|
32649
|
-
* @member {PIXI.BaseTexture}
|
|
32650
|
-
*/
|
|
32651
32604
|
_this.baseTexture = null;
|
|
32652
32605
|
_this.setProperties(properties);
|
|
32653
|
-
/**
|
|
32654
|
-
* The tint applied to the container.
|
|
32655
|
-
* This is a hex value. A value of 0xFFFFFF will remove any tint effect.
|
|
32656
|
-
*
|
|
32657
|
-
* @private
|
|
32658
|
-
* @member {number}
|
|
32659
|
-
* @default 0xFFFFFF
|
|
32660
|
-
*/
|
|
32661
32606
|
_this._tint = 0;
|
|
32662
32607
|
_this.tintRgb = new Float32Array(4);
|
|
32663
32608
|
_this.tint = 0xFFFFFF;
|
|
@@ -32666,7 +32611,7 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32666
32611
|
/**
|
|
32667
32612
|
* Sets the private properties array to dynamic / static based on the passed properties object
|
|
32668
32613
|
*
|
|
32669
|
-
* @param
|
|
32614
|
+
* @param properties - The properties to be uploaded
|
|
32670
32615
|
*/
|
|
32671
32616
|
ParticleContainer.prototype.setProperties = function (properties) {
|
|
32672
32617
|
if (properties) {
|
|
@@ -32679,11 +32624,6 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32679
32624
|
? !!properties.tint || !!properties.alpha : this._properties[4];
|
|
32680
32625
|
}
|
|
32681
32626
|
};
|
|
32682
|
-
/**
|
|
32683
|
-
* Updates the object transform for rendering
|
|
32684
|
-
*
|
|
32685
|
-
* @private
|
|
32686
|
-
*/
|
|
32687
32627
|
ParticleContainer.prototype.updateTransform = function () {
|
|
32688
32628
|
// TODO don't need to!
|
|
32689
32629
|
this.displayObjectUpdateTransform();
|
|
@@ -32692,8 +32632,8 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32692
32632
|
/**
|
|
32693
32633
|
* The tint applied to the container. This is a hex value.
|
|
32694
32634
|
* A value of 0xFFFFFF will remove any tint effect.
|
|
32695
|
-
|
|
32696
|
-
*
|
|
32635
|
+
* IMPORTANT: This is a WebGL only feature and will be ignored by the canvas renderer.
|
|
32636
|
+
*
|
|
32697
32637
|
* @default 0xFFFFFF
|
|
32698
32638
|
*/
|
|
32699
32639
|
get: function () {
|
|
@@ -32707,10 +32647,9 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32707
32647
|
configurable: true
|
|
32708
32648
|
});
|
|
32709
32649
|
/**
|
|
32710
|
-
* Renders the container using the WebGL renderer
|
|
32650
|
+
* Renders the container using the WebGL renderer.
|
|
32711
32651
|
*
|
|
32712
|
-
* @
|
|
32713
|
-
* @param {PIXI.Renderer} renderer - The webgl renderer
|
|
32652
|
+
* @param renderer - The WebGL renderer.
|
|
32714
32653
|
*/
|
|
32715
32654
|
ParticleContainer.prototype.render = function (renderer) {
|
|
32716
32655
|
var _this = this;
|
|
@@ -32729,8 +32668,7 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32729
32668
|
/**
|
|
32730
32669
|
* Set the flag that static data should be updated to true
|
|
32731
32670
|
*
|
|
32732
|
-
* @
|
|
32733
|
-
* @param {number} smallestChildIndex - The smallest child index
|
|
32671
|
+
* @param smallestChildIndex - The smallest child index.
|
|
32734
32672
|
*/
|
|
32735
32673
|
ParticleContainer.prototype.onChildrenChange = function (smallestChildIndex) {
|
|
32736
32674
|
var bufferIndex = Math.floor(smallestChildIndex / this._batchSize);
|
|
@@ -32750,7 +32688,7 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32750
32688
|
/**
|
|
32751
32689
|
* Destroys the container
|
|
32752
32690
|
*
|
|
32753
|
-
* @param
|
|
32691
|
+
* @param options - Options parameter. A boolean will act as if all options
|
|
32754
32692
|
* have been set to that value
|
|
32755
32693
|
* @param {boolean} [options.children=false] - if set to true, all the children will have their
|
|
32756
32694
|
* destroy method called as well. 'options' will be passed on to those calls.
|
|
@@ -32783,13 +32721,11 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32783
32721
|
/**
|
|
32784
32722
|
* The particle buffer manages the static and dynamic buffers for a particle container.
|
|
32785
32723
|
*
|
|
32786
|
-
* @class
|
|
32787
32724
|
* @private
|
|
32788
32725
|
* @memberof PIXI
|
|
32789
32726
|
*/
|
|
32790
32727
|
var ParticleBuffer = /** @class */ (function () {
|
|
32791
32728
|
/**
|
|
32792
|
-
* @private
|
|
32793
32729
|
* @param {object} properties - The properties to upload.
|
|
32794
32730
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
32795
32731
|
* @param {number} size - The size of the batch.
|
|
@@ -32797,26 +32733,8 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32797
32733
|
function ParticleBuffer(properties, dynamicPropertyFlags, size) {
|
|
32798
32734
|
this.geometry = new _pixi_core__WEBPACK_IMPORTED_MODULE_3__.Geometry();
|
|
32799
32735
|
this.indexBuffer = null;
|
|
32800
|
-
/**
|
|
32801
|
-
* The number of particles the buffer can hold
|
|
32802
|
-
*
|
|
32803
|
-
* @private
|
|
32804
|
-
* @member {number}
|
|
32805
|
-
*/
|
|
32806
32736
|
this.size = size;
|
|
32807
|
-
/**
|
|
32808
|
-
* A list of the properties that are dynamic.
|
|
32809
|
-
*
|
|
32810
|
-
* @private
|
|
32811
|
-
* @member {object[]}
|
|
32812
|
-
*/
|
|
32813
32737
|
this.dynamicProperties = [];
|
|
32814
|
-
/**
|
|
32815
|
-
* A list of the properties that are static.
|
|
32816
|
-
*
|
|
32817
|
-
* @private
|
|
32818
|
-
* @member {object[]}
|
|
32819
|
-
*/
|
|
32820
32738
|
this.staticProperties = [];
|
|
32821
32739
|
for (var i = 0; i < properties.length; ++i) {
|
|
32822
32740
|
var property = properties[i];
|
|
@@ -32847,20 +32765,10 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32847
32765
|
this._updateID = 0;
|
|
32848
32766
|
this.initBuffers();
|
|
32849
32767
|
}
|
|
32850
|
-
/**
|
|
32851
|
-
* Sets up the renderer context and necessary buffers.
|
|
32852
|
-
*
|
|
32853
|
-
* @private
|
|
32854
|
-
*/
|
|
32768
|
+
/** Sets up the renderer context and necessary buffers. */
|
|
32855
32769
|
ParticleBuffer.prototype.initBuffers = function () {
|
|
32856
32770
|
var geometry = this.geometry;
|
|
32857
32771
|
var dynamicOffset = 0;
|
|
32858
|
-
/**
|
|
32859
|
-
* Holds the indices of the geometry (quads) to draw
|
|
32860
|
-
*
|
|
32861
|
-
* @member {Uint16Array}
|
|
32862
|
-
* @private
|
|
32863
|
-
*/
|
|
32864
32772
|
this.indexBuffer = new _pixi_core__WEBPACK_IMPORTED_MODULE_3__.Buffer((0,_pixi_utils__WEBPACK_IMPORTED_MODULE_2__.createIndicesForQuads)(this.size), true, true);
|
|
32865
32773
|
geometry.addIndex(this.indexBuffer);
|
|
32866
32774
|
this.dynamicStride = 0;
|
|
@@ -32899,10 +32807,9 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32899
32807
|
/**
|
|
32900
32808
|
* Uploads the dynamic properties.
|
|
32901
32809
|
*
|
|
32902
|
-
* @
|
|
32903
|
-
* @param
|
|
32904
|
-
* @param
|
|
32905
|
-
* @param {number} amount - The number to upload.
|
|
32810
|
+
* @param children - The children to upload.
|
|
32811
|
+
* @param startIndex - The index to start at.
|
|
32812
|
+
* @param amount - The number to upload.
|
|
32906
32813
|
*/
|
|
32907
32814
|
ParticleBuffer.prototype.uploadDynamic = function (children, startIndex, amount) {
|
|
32908
32815
|
for (var i = 0; i < this.dynamicProperties.length; i++) {
|
|
@@ -32914,10 +32821,9 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32914
32821
|
/**
|
|
32915
32822
|
* Uploads the static properties.
|
|
32916
32823
|
*
|
|
32917
|
-
* @
|
|
32918
|
-
* @param
|
|
32919
|
-
* @param
|
|
32920
|
-
* @param {number} amount - The number to upload.
|
|
32824
|
+
* @param children - The children to upload.
|
|
32825
|
+
* @param startIndex - The index to start at.
|
|
32826
|
+
* @param amount - The number to upload.
|
|
32921
32827
|
*/
|
|
32922
32828
|
ParticleBuffer.prototype.uploadStatic = function (children, startIndex, amount) {
|
|
32923
32829
|
for (var i = 0; i < this.staticProperties.length; i++) {
|
|
@@ -32926,11 +32832,7 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32926
32832
|
}
|
|
32927
32833
|
this.staticBuffer._updateID++;
|
|
32928
32834
|
};
|
|
32929
|
-
/**
|
|
32930
|
-
* Destroys the ParticleBuffer.
|
|
32931
|
-
*
|
|
32932
|
-
* @private
|
|
32933
|
-
*/
|
|
32835
|
+
/** Destroys the ParticleBuffer. */
|
|
32934
32836
|
ParticleBuffer.prototype.destroy = function () {
|
|
32935
32837
|
this.indexBuffer = null;
|
|
32936
32838
|
this.dynamicProperties = null;
|
|
@@ -32965,13 +32867,12 @@ var vertex = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nat
|
|
|
32965
32867
|
/**
|
|
32966
32868
|
* Renderer for Particles that is designer for speed over feature set.
|
|
32967
32869
|
*
|
|
32968
|
-
* @class
|
|
32969
32870
|
* @memberof PIXI
|
|
32970
32871
|
*/
|
|
32971
32872
|
var ParticleRenderer = /** @class */ (function (_super) {
|
|
32972
32873
|
__extends(ParticleRenderer, _super);
|
|
32973
32874
|
/**
|
|
32974
|
-
* @param
|
|
32875
|
+
* @param renderer - The renderer this sprite batch works for.
|
|
32975
32876
|
*/
|
|
32976
32877
|
function ParticleRenderer(renderer) {
|
|
32977
32878
|
var _this = _super.call(this, renderer) || this;
|
|
@@ -32980,11 +32881,6 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
32980
32881
|
// and max number of element in the index buffer is 16384 * 6 = 98304
|
|
32981
32882
|
// Creating a full index buffer, overhead is 98304 * 2 = 196Ko
|
|
32982
32883
|
// let numIndices = 98304;
|
|
32983
|
-
/**
|
|
32984
|
-
* The default shader that is used if a sprite doesn't have a more specific one.
|
|
32985
|
-
*
|
|
32986
|
-
* @member {PIXI.Shader}
|
|
32987
|
-
*/
|
|
32988
32884
|
_this.shader = null;
|
|
32989
32885
|
_this.properties = null;
|
|
32990
32886
|
_this.tempMatrix = new _pixi_math__WEBPACK_IMPORTED_MODULE_4__.Matrix();
|
|
@@ -33026,19 +32922,13 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33026
32922
|
offset: 0,
|
|
33027
32923
|
} ];
|
|
33028
32924
|
_this.shader = _pixi_core__WEBPACK_IMPORTED_MODULE_3__.Shader.from(vertex, fragment, {});
|
|
33029
|
-
/**
|
|
33030
|
-
* The WebGL state in which this renderer will work.
|
|
33031
|
-
*
|
|
33032
|
-
* @member {PIXI.State}
|
|
33033
|
-
* @readonly
|
|
33034
|
-
*/
|
|
33035
32925
|
_this.state = _pixi_core__WEBPACK_IMPORTED_MODULE_3__.State.for2d();
|
|
33036
32926
|
return _this;
|
|
33037
32927
|
}
|
|
33038
32928
|
/**
|
|
33039
32929
|
* Renders the particle container object.
|
|
33040
32930
|
*
|
|
33041
|
-
* @param
|
|
32931
|
+
* @param container - The container to render using this ParticleRenderer.
|
|
33042
32932
|
*/
|
|
33043
32933
|
ParticleRenderer.prototype.render = function (container) {
|
|
33044
32934
|
var children = container.children;
|
|
@@ -33093,11 +32983,10 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33093
32983
|
}
|
|
33094
32984
|
};
|
|
33095
32985
|
/**
|
|
33096
|
-
* Creates one particle buffer for each child in the container we want to render and updates internal properties
|
|
32986
|
+
* Creates one particle buffer for each child in the container we want to render and updates internal properties.
|
|
33097
32987
|
*
|
|
33098
|
-
* @param
|
|
33099
|
-
* @return
|
|
33100
|
-
* @private
|
|
32988
|
+
* @param container - The container to render using this ParticleRenderer
|
|
32989
|
+
* @return - The buffers
|
|
33101
32990
|
*/
|
|
33102
32991
|
ParticleRenderer.prototype.generateBuffers = function (container) {
|
|
33103
32992
|
var buffers = [];
|
|
@@ -33110,11 +32999,10 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33110
32999
|
return buffers;
|
|
33111
33000
|
};
|
|
33112
33001
|
/**
|
|
33113
|
-
* Creates one more particle buffer, because container has autoResize feature
|
|
33002
|
+
* Creates one more particle buffer, because container has autoResize feature.
|
|
33114
33003
|
*
|
|
33115
|
-
* @param
|
|
33116
|
-
* @return
|
|
33117
|
-
* @private
|
|
33004
|
+
* @param container - The container to render using this ParticleRenderer
|
|
33005
|
+
* @return - The generated buffer
|
|
33118
33006
|
*/
|
|
33119
33007
|
ParticleRenderer.prototype._generateOneMoreBuffer = function (container) {
|
|
33120
33008
|
var batchSize = container._batchSize;
|
|
@@ -33124,12 +33012,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33124
33012
|
/**
|
|
33125
33013
|
* Uploads the vertices.
|
|
33126
33014
|
*
|
|
33127
|
-
* @param
|
|
33128
|
-
* @param
|
|
33129
|
-
* @param
|
|
33130
|
-
* @param
|
|
33131
|
-
* @param
|
|
33132
|
-
* @param
|
|
33015
|
+
* @param children - the array of display objects to render
|
|
33016
|
+
* @param startIndex - the index to start from in the children array
|
|
33017
|
+
* @param amount - the amount of children that will have their vertices uploaded
|
|
33018
|
+
* @param array - The vertices to upload.
|
|
33019
|
+
* @param stride - Stride to use for iteration.
|
|
33020
|
+
* @param offset - Offset to start at.
|
|
33133
33021
|
*/
|
|
33134
33022
|
ParticleRenderer.prototype.uploadVertices = function (children, startIndex, amount, array, stride, offset) {
|
|
33135
33023
|
var w0 = 0;
|
|
@@ -33171,12 +33059,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33171
33059
|
/**
|
|
33172
33060
|
* Uploads the position.
|
|
33173
33061
|
*
|
|
33174
|
-
* @param
|
|
33175
|
-
* @param
|
|
33176
|
-
* @param
|
|
33177
|
-
* @param
|
|
33178
|
-
* @param
|
|
33179
|
-
* @param
|
|
33062
|
+
* @param children - the array of display objects to render
|
|
33063
|
+
* @param startIndex - the index to start from in the children array
|
|
33064
|
+
* @param amount - the amount of children that will have their positions uploaded
|
|
33065
|
+
* @param array - The vertices to upload.
|
|
33066
|
+
* @param stride - Stride to use for iteration.
|
|
33067
|
+
* @param offset - Offset to start at.
|
|
33180
33068
|
*/
|
|
33181
33069
|
ParticleRenderer.prototype.uploadPosition = function (children, startIndex, amount, array, stride, offset) {
|
|
33182
33070
|
for (var i = 0; i < amount; i++) {
|
|
@@ -33195,12 +33083,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33195
33083
|
/**
|
|
33196
33084
|
* Uploads the rotation.
|
|
33197
33085
|
*
|
|
33198
|
-
* @param
|
|
33199
|
-
* @param
|
|
33200
|
-
* @param
|
|
33201
|
-
* @param
|
|
33202
|
-
* @param
|
|
33203
|
-
* @param
|
|
33086
|
+
* @param children - the array of display objects to render
|
|
33087
|
+
* @param startIndex - the index to start from in the children array
|
|
33088
|
+
* @param amount - the amount of children that will have their rotation uploaded
|
|
33089
|
+
* @param array - The vertices to upload.
|
|
33090
|
+
* @param stride - Stride to use for iteration.
|
|
33091
|
+
* @param offset - Offset to start at.
|
|
33204
33092
|
*/
|
|
33205
33093
|
ParticleRenderer.prototype.uploadRotation = function (children, startIndex, amount, array, stride, offset) {
|
|
33206
33094
|
for (var i = 0; i < amount; i++) {
|
|
@@ -33213,14 +33101,14 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33213
33101
|
}
|
|
33214
33102
|
};
|
|
33215
33103
|
/**
|
|
33216
|
-
* Uploads the
|
|
33104
|
+
* Uploads the UVs.
|
|
33217
33105
|
*
|
|
33218
|
-
* @param
|
|
33219
|
-
* @param
|
|
33220
|
-
* @param
|
|
33221
|
-
* @param
|
|
33222
|
-
* @param
|
|
33223
|
-
* @param
|
|
33106
|
+
* @param children - the array of display objects to render
|
|
33107
|
+
* @param startIndex - the index to start from in the children array
|
|
33108
|
+
* @param amount - the amount of children that will have their rotation uploaded
|
|
33109
|
+
* @param array - The vertices to upload.
|
|
33110
|
+
* @param stride - Stride to use for iteration.
|
|
33111
|
+
* @param offset - Offset to start at.
|
|
33224
33112
|
*/
|
|
33225
33113
|
ParticleRenderer.prototype.uploadUvs = function (children, startIndex, amount, array, stride, offset) {
|
|
33226
33114
|
for (var i = 0; i < amount; ++i) {
|
|
@@ -33253,12 +33141,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33253
33141
|
/**
|
|
33254
33142
|
* Uploads the tint.
|
|
33255
33143
|
*
|
|
33256
|
-
* @param
|
|
33257
|
-
* @param
|
|
33258
|
-
* @param
|
|
33259
|
-
* @param
|
|
33260
|
-
* @param
|
|
33261
|
-
* @param
|
|
33144
|
+
* @param children - the array of display objects to render
|
|
33145
|
+
* @param startIndex - the index to start from in the children array
|
|
33146
|
+
* @param amount - the amount of children that will have their rotation uploaded
|
|
33147
|
+
* @param array - The vertices to upload.
|
|
33148
|
+
* @param stride - Stride to use for iteration.
|
|
33149
|
+
* @param offset - Offset to start at.
|
|
33262
33150
|
*/
|
|
33263
33151
|
ParticleRenderer.prototype.uploadTint = function (children, startIndex, amount, array, stride, offset) {
|
|
33264
33152
|
for (var i = 0; i < amount; ++i) {
|
|
@@ -33275,9 +33163,7 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33275
33163
|
offset += stride * 4;
|
|
33276
33164
|
}
|
|
33277
33165
|
};
|
|
33278
|
-
/**
|
|
33279
|
-
* Destroys the ParticleRenderer.
|
|
33280
|
-
*/
|
|
33166
|
+
/** Destroys the ParticleRenderer. */
|
|
33281
33167
|
ParticleRenderer.prototype.destroy = function () {
|
|
33282
33168
|
_super.prototype.destroy.call(this);
|
|
33283
33169
|
if (this.shader) {
|
|
@@ -33307,8 +33193,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33307
33193
|
/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
|
33308
33194
|
/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__);
|
|
33309
33195
|
/*!
|
|
33310
|
-
* @pixi/polyfill - v6.2.
|
|
33311
|
-
* Compiled
|
|
33196
|
+
* @pixi/polyfill - v6.2.2
|
|
33197
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
33312
33198
|
*
|
|
33313
33199
|
* @pixi/polyfill is licensed under the MIT License.
|
|
33314
33200
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33444,8 +33330,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33444
33330
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
33445
33331
|
/* harmony import */ var _pixi_text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/text */ "./node_modules/@pixi/text/dist/esm/text.js");
|
|
33446
33332
|
/*!
|
|
33447
|
-
* @pixi/prepare - v6.2.
|
|
33448
|
-
* Compiled
|
|
33333
|
+
* @pixi/prepare - v6.2.2
|
|
33334
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
33449
33335
|
*
|
|
33450
33336
|
* @pixi/prepare is licensed under the MIT License.
|
|
33451
33337
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34017,8 +33903,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34017
33903
|
/* harmony export */ "Runner": () => (/* binding */ Runner)
|
|
34018
33904
|
/* harmony export */ });
|
|
34019
33905
|
/*!
|
|
34020
|
-
* @pixi/runner - v6.2.
|
|
34021
|
-
* Compiled
|
|
33906
|
+
* @pixi/runner - v6.2.2
|
|
33907
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
34022
33908
|
*
|
|
34023
33909
|
* @pixi/runner is licensed under the MIT License.
|
|
34024
33910
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34225,8 +34111,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34225
34111
|
/* harmony export */ });
|
|
34226
34112
|
/* harmony import */ var ismobilejs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ismobilejs */ "./node_modules/ismobilejs/esm/index.js");
|
|
34227
34113
|
/*!
|
|
34228
|
-
* @pixi/settings - v6.2.
|
|
34229
|
-
* Compiled
|
|
34114
|
+
* @pixi/settings - v6.2.2
|
|
34115
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
34230
34116
|
*
|
|
34231
34117
|
* @pixi/settings is licensed under the MIT License.
|
|
34232
34118
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34289,8 +34175,8 @@ function canUploadSameBuffer() {
|
|
|
34289
34175
|
}
|
|
34290
34176
|
|
|
34291
34177
|
/*!
|
|
34292
|
-
* @pixi/constants - v6.2.
|
|
34293
|
-
* Compiled
|
|
34178
|
+
* @pixi/constants - v6.2.2
|
|
34179
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
34294
34180
|
*
|
|
34295
34181
|
* @pixi/constants is licensed under the MIT License.
|
|
34296
34182
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35089,8 +34975,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35089
34975
|
/* harmony import */ var _pixi_sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/sprite */ "./node_modules/@pixi/sprite/dist/esm/sprite.js");
|
|
35090
34976
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
35091
34977
|
/*!
|
|
35092
|
-
* @pixi/sprite-animated - v6.2.
|
|
35093
|
-
* Compiled
|
|
34978
|
+
* @pixi/sprite-animated - v6.2.2
|
|
34979
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
35094
34980
|
*
|
|
35095
34981
|
* @pixi/sprite-animated is licensed under the MIT License.
|
|
35096
34982
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35463,8 +35349,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35463
35349
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
35464
35350
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
35465
35351
|
/*!
|
|
35466
|
-
* @pixi/sprite-tiling - v6.2.
|
|
35467
|
-
* Compiled
|
|
35352
|
+
* @pixi/sprite-tiling - v6.2.2
|
|
35353
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
35468
35354
|
*
|
|
35469
35355
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
|
35470
35356
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35852,8 +35738,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35852
35738
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
35853
35739
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
35854
35740
|
/*!
|
|
35855
|
-
* @pixi/sprite - v6.2.
|
|
35856
|
-
* Compiled
|
|
35741
|
+
* @pixi/sprite - v6.2.2
|
|
35742
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
35857
35743
|
*
|
|
35858
35744
|
* @pixi/sprite is licensed under the MIT License.
|
|
35859
35745
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36114,17 +36000,20 @@ var Sprite = /** @class */ (function (_super) {
|
|
|
36114
36000
|
Sprite.prototype.getLocalBounds = function (rect) {
|
|
36115
36001
|
// we can do a fast local bounds if the sprite has no children!
|
|
36116
36002
|
if (this.children.length === 0) {
|
|
36117
|
-
|
|
36118
|
-
|
|
36119
|
-
|
|
36120
|
-
this.
|
|
36003
|
+
if (!this._localBounds) {
|
|
36004
|
+
this._localBounds = new _pixi_display__WEBPACK_IMPORTED_MODULE_2__.Bounds();
|
|
36005
|
+
}
|
|
36006
|
+
this._localBounds.minX = this._texture.orig.width * -this._anchor._x;
|
|
36007
|
+
this._localBounds.minY = this._texture.orig.height * -this._anchor._y;
|
|
36008
|
+
this._localBounds.maxX = this._texture.orig.width * (1 - this._anchor._x);
|
|
36009
|
+
this._localBounds.maxY = this._texture.orig.height * (1 - this._anchor._y);
|
|
36121
36010
|
if (!rect) {
|
|
36122
36011
|
if (!this._localBoundsRect) {
|
|
36123
36012
|
this._localBoundsRect = new _pixi_math__WEBPACK_IMPORTED_MODULE_3__.Rectangle();
|
|
36124
36013
|
}
|
|
36125
36014
|
rect = this._localBoundsRect;
|
|
36126
36015
|
}
|
|
36127
|
-
return this.
|
|
36016
|
+
return this._localBounds.getRectangle(rect);
|
|
36128
36017
|
}
|
|
36129
36018
|
return _super.prototype.getLocalBounds.call(this, rect);
|
|
36130
36019
|
};
|
|
@@ -36332,8 +36221,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36332
36221
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
36333
36222
|
/* harmony import */ var _pixi_loaders__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/loaders */ "./node_modules/@pixi/loaders/dist/esm/loaders.js");
|
|
36334
36223
|
/*!
|
|
36335
|
-
* @pixi/spritesheet - v6.2.
|
|
36336
|
-
* Compiled
|
|
36224
|
+
* @pixi/spritesheet - v6.2.2
|
|
36225
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
36337
36226
|
*
|
|
36338
36227
|
* @pixi/spritesheet is licensed under the MIT License.
|
|
36339
36228
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36679,8 +36568,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36679
36568
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
36680
36569
|
/* harmony import */ var _pixi_loaders__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @pixi/loaders */ "./node_modules/@pixi/loaders/dist/esm/loaders.js");
|
|
36681
36570
|
/*!
|
|
36682
|
-
* @pixi/text-bitmap - v6.2.
|
|
36683
|
-
* Compiled
|
|
36571
|
+
* @pixi/text-bitmap - v6.2.2
|
|
36572
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
36684
36573
|
*
|
|
36685
36574
|
* @pixi/text-bitmap is licensed under the MIT License.
|
|
36686
36575
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37105,13 +36994,15 @@ function drawGlyph(canvas, context, metrics, x, y, resolution, style) {
|
|
|
37105
36994
|
// set canvas text styles
|
|
37106
36995
|
context.fillStyle = generateFillStyle(canvas, context, style, resolution, [char], metrics);
|
|
37107
36996
|
context.strokeStyle = style.stroke;
|
|
37108
|
-
var dropShadowColor = style.dropShadowColor;
|
|
37109
|
-
var rgb = (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.hex2rgb)(typeof dropShadowColor === 'number' ? dropShadowColor : (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.string2hex)(dropShadowColor));
|
|
37110
36997
|
if (style.dropShadow) {
|
|
36998
|
+
var dropShadowColor = style.dropShadowColor;
|
|
36999
|
+
var rgb = (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.hex2rgb)(typeof dropShadowColor === 'number' ? dropShadowColor : (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.string2hex)(dropShadowColor));
|
|
37000
|
+
var dropShadowBlur = style.dropShadowBlur * resolution;
|
|
37001
|
+
var dropShadowDistance = style.dropShadowDistance * resolution;
|
|
37111
37002
|
context.shadowColor = "rgba(" + rgb[0] * 255 + "," + rgb[1] * 255 + "," + rgb[2] * 255 + "," + style.dropShadowAlpha + ")";
|
|
37112
|
-
context.shadowBlur =
|
|
37113
|
-
context.shadowOffsetX = Math.cos(style.dropShadowAngle) *
|
|
37114
|
-
context.shadowOffsetY = Math.sin(style.dropShadowAngle) *
|
|
37003
|
+
context.shadowBlur = dropShadowBlur;
|
|
37004
|
+
context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance;
|
|
37005
|
+
context.shadowOffsetY = Math.sin(style.dropShadowAngle) * dropShadowDistance;
|
|
37115
37006
|
}
|
|
37116
37007
|
else {
|
|
37117
37008
|
context.shadowColor = 'black';
|
|
@@ -38301,8 +38192,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38301
38192
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
38302
38193
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
38303
38194
|
/*!
|
|
38304
|
-
* @pixi/text - v6.2.
|
|
38305
|
-
* Compiled
|
|
38195
|
+
* @pixi/text - v6.2.2
|
|
38196
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
38306
38197
|
*
|
|
38307
38198
|
* @pixi/text is licensed under the MIT License.
|
|
38308
38199
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -39806,10 +39697,12 @@ var Text = /** @class */ (function (_super) {
|
|
|
39806
39697
|
context.strokeStyle = 'black';
|
|
39807
39698
|
var dropShadowColor = style.dropShadowColor;
|
|
39808
39699
|
var rgb = (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_4__.hex2rgb)(typeof dropShadowColor === 'number' ? dropShadowColor : (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_4__.string2hex)(dropShadowColor));
|
|
39700
|
+
var dropShadowBlur = style.dropShadowBlur * this._resolution;
|
|
39701
|
+
var dropShadowDistance = style.dropShadowDistance * this._resolution;
|
|
39809
39702
|
context.shadowColor = "rgba(" + rgb[0] * 255 + "," + rgb[1] * 255 + "," + rgb[2] * 255 + "," + style.dropShadowAlpha + ")";
|
|
39810
|
-
context.shadowBlur =
|
|
39811
|
-
context.shadowOffsetX = Math.cos(style.dropShadowAngle) *
|
|
39812
|
-
context.shadowOffsetY = (Math.sin(style.dropShadowAngle) *
|
|
39703
|
+
context.shadowBlur = dropShadowBlur;
|
|
39704
|
+
context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance;
|
|
39705
|
+
context.shadowOffsetY = (Math.sin(style.dropShadowAngle) * dropShadowDistance) + dsOffsetShadow;
|
|
39813
39706
|
}
|
|
39814
39707
|
else {
|
|
39815
39708
|
// set canvas text styles
|
|
@@ -39899,7 +39792,11 @@ var Text = /** @class */ (function (_super) {
|
|
|
39899
39792
|
else {
|
|
39900
39793
|
this.context.fillText(currentChar, currentPosition, y);
|
|
39901
39794
|
}
|
|
39902
|
-
|
|
39795
|
+
var textStr = '';
|
|
39796
|
+
for (var j = i + 1; j < stringArray.length; ++j) {
|
|
39797
|
+
textStr += stringArray[j];
|
|
39798
|
+
}
|
|
39799
|
+
currentWidth = this.context.measureText(textStr).width;
|
|
39903
39800
|
currentPosition += previousWidth - currentWidth + letterSpacing;
|
|
39904
39801
|
previousWidth = currentWidth;
|
|
39905
39802
|
}
|
|
@@ -40222,8 +40119,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40222
40119
|
/* harmony export */ });
|
|
40223
40120
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
40224
40121
|
/*!
|
|
40225
|
-
* @pixi/ticker - v6.2.
|
|
40226
|
-
* Compiled
|
|
40122
|
+
* @pixi/ticker - v6.2.2
|
|
40123
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
40227
40124
|
*
|
|
40228
40125
|
* @pixi/ticker is licensed under the MIT License.
|
|
40229
40126
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -40435,7 +40332,7 @@ var Ticker = /** @class */ (function () {
|
|
|
40435
40332
|
this._maxElapsedMS = 100;
|
|
40436
40333
|
/**
|
|
40437
40334
|
* Internal value managed by minFPS property setter and getter.
|
|
40438
|
-
* This is the
|
|
40335
|
+
* This is the minimum allowed milliseconds between updates.
|
|
40439
40336
|
*/
|
|
40440
40337
|
this._minElapsedMS = 0;
|
|
40441
40338
|
/** If enabled, deleting is disabled.*/
|
|
@@ -41027,8 +40924,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41027
40924
|
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url */ "./node_modules/url/url.js");
|
|
41028
40925
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
41029
40926
|
/*!
|
|
41030
|
-
* @pixi/utils - v6.2.
|
|
41031
|
-
* Compiled
|
|
40927
|
+
* @pixi/utils - v6.2.2
|
|
40928
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
41032
40929
|
*
|
|
41033
40930
|
* @pixi/utils is licensed under the MIT License.
|
|
41034
40931
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -41092,7 +40989,7 @@ _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.RETINA_PREFIX = /@([0-9\.]+
|
|
|
41092
40989
|
_pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
|
|
41093
40990
|
|
|
41094
40991
|
var saidHello = false;
|
|
41095
|
-
var VERSION = '6.2.
|
|
40992
|
+
var VERSION = '6.2.2';
|
|
41096
40993
|
/**
|
|
41097
40994
|
* Skips the hello message of renderers that are created after this is run.
|
|
41098
40995
|
*
|
|
@@ -49158,8 +49055,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49158
49055
|
/* harmony import */ var _pixi_text__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @pixi/text */ "./node_modules/@pixi/text/dist/esm/text.js");
|
|
49159
49056
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
49160
49057
|
/*!
|
|
49161
|
-
* pixi.js - v6.2.
|
|
49162
|
-
* Compiled
|
|
49058
|
+
* pixi.js - v6.2.2
|
|
49059
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
49163
49060
|
*
|
|
49164
49061
|
* pixi.js is licensed under the MIT License.
|
|
49165
49062
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -49240,7 +49137,7 @@ _pixi_app__WEBPACK_IMPORTED_MODULE_4__.Application.registerPlugin(_pixi_loaders_
|
|
|
49240
49137
|
* @name VERSION
|
|
49241
49138
|
* @type {string}
|
|
49242
49139
|
*/
|
|
49243
|
-
var VERSION = '6.2.
|
|
49140
|
+
var VERSION = '6.2.2';
|
|
49244
49141
|
/**
|
|
49245
49142
|
* @namespace PIXI
|
|
49246
49143
|
*/
|
|
@@ -66862,7 +66759,7 @@ class DesignCast {
|
|
|
66862
66759
|
this.rotatable = true;
|
|
66863
66760
|
}
|
|
66864
66761
|
static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
|
|
66865
|
-
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * sys.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * sys.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
|
|
66762
|
+
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * sys.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
|
|
66866
66763
|
__classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
|
|
66867
66764
|
DesignCast.divHint.classList.add('sn_design_hint');
|
|
66868
66765
|
appPixi.view.parentElement.appendChild(DesignCast.divHint);
|
|
@@ -68044,8 +67941,8 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68044
67941
|
const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
|
|
68045
67942
|
const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
|
|
68046
67943
|
const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
|
|
68047
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.
|
|
68048
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.
|
|
67944
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4elm + rctBtn.x * this.sys.cvsScale}px`;
|
|
67945
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4elm + rctBtn.y * this.sys.cvsScale}px`;
|
|
68049
67946
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
|
|
68050
67947
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * this.sys.cvsScale}, ${this.sys.cvsScale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
|
|
68051
67948
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
|
|
@@ -68553,8 +68450,8 @@ class FrameMng {
|
|
|
68553
68450
|
const y = Number(this.val.getVal(vn + '.y'));
|
|
68554
68451
|
const w = Number(this.val.getVal(vn + '.width'));
|
|
68555
68452
|
const h = Number(this.val.getVal(vn + '.height'));
|
|
68556
|
-
f.style.left = `${this.sys.
|
|
68557
|
-
f.style.top = `${this.sys.
|
|
68453
|
+
f.style.left = `${this.sys.ofsLeft4elm + x * this.sys.cvsScale}px`;
|
|
68454
|
+
f.style.top = `${this.sys.ofsTop4elm + y * this.sys.cvsScale}px`;
|
|
68558
68455
|
f.width = String(w * this.sys.cvsScale);
|
|
68559
68456
|
f.height = String(h * this.sys.cvsScale);
|
|
68560
68457
|
}
|
|
@@ -68573,7 +68470,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68573
68470
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68574
68471
|
const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
|
|
68575
68472
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68576
|
-
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.
|
|
68473
|
+
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4elm + rct.x * this.sys.cvsScale}px; top: ${this.sys.ofsTop4elm + rct.y * this.sys.cvsScale}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * this.sys.cvsScale}" height="${rct.height * this.sys.cvsScale}"></iframe>`);
|
|
68577
68474
|
const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
|
|
68578
68475
|
const ld = (new pixi_js_1.Loader())
|
|
68579
68476
|
.add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
@@ -68678,8 +68575,8 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68678
68575
|
}
|
|
68679
68576
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68680
68577
|
if ('x' in hArg || 'y' in hArg) {
|
|
68681
|
-
s.left = `${this.sys.
|
|
68682
|
-
s.top = `${this.sys.
|
|
68578
|
+
s.left = `${this.sys.ofsLeft4elm + rct.x * this.sys.cvsScale}px`;
|
|
68579
|
+
s.top = `${this.sys.ofsTop4elm + rct.y * this.sys.cvsScale}px`;
|
|
68683
68580
|
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68684
68581
|
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68685
68582
|
}
|
|
@@ -68759,8 +68656,8 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68759
68656
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
68760
68657
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
68761
68658
|
fncXYSR = () => {
|
|
68762
|
-
f.style.left = this.sys.
|
|
68763
|
-
f.style.top = this.sys.
|
|
68659
|
+
f.style.left = this.sys.ofsLeft4elm + hNow.x * this.sys.cvsScale + 'px';
|
|
68660
|
+
f.style.top = this.sys.ofsTop4elm + hNow.y * this.sys.cvsScale + 'px';
|
|
68764
68661
|
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
68765
68662
|
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
68766
68663
|
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
@@ -69871,7 +69768,7 @@ void main(void) {
|
|
|
69871
69768
|
}, { passive: true });
|
|
69872
69769
|
}
|
|
69873
69770
|
sys.cvsResize();
|
|
69874
|
-
TxtLayer_1.TxtLayer.init(cfg, hTag, val,
|
|
69771
|
+
TxtLayer_1.TxtLayer.init(cfg, hTag, val, txt => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me, appPixi);
|
|
69875
69772
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
69876
69773
|
Button_1.Button.init(cfg);
|
|
69877
69774
|
__classPrivateFieldSet(this, _LayerMng_frmMng, new FrameMng_1.FrameMng(this.cfg, this.hTag, this.appPixi, this.val, main, this.sys, __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")), "f");
|
|
@@ -70788,6 +70685,7 @@ class Main {
|
|
|
70788
70685
|
this.stop();
|
|
70789
70686
|
this.sys.setTitleInfo(mes ? ` -- ${mes}中` : '');
|
|
70790
70687
|
}
|
|
70688
|
+
fire(KEY, e) { __classPrivateFieldGet(this, _Main_evtMng, "f").fire(KEY, e); }
|
|
70791
70689
|
async destroy(ms_late = 0) {
|
|
70792
70690
|
if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
|
|
70793
70691
|
return;
|
|
@@ -73094,8 +72992,6 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73094
72992
|
env: {},
|
|
73095
72993
|
platform: '',
|
|
73096
72994
|
arch: '',
|
|
73097
|
-
screenResolutionX: 0,
|
|
73098
|
-
screenResolutionY: 0,
|
|
73099
72995
|
});
|
|
73100
72996
|
this.readFileSync = to_app.readFileSync;
|
|
73101
72997
|
this.writeFileSync = to_app.writeFileSync;
|
|
@@ -73109,7 +73005,7 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73109
73005
|
const path_to = `${this.$path_userdata}storage/${to}/`;
|
|
73110
73006
|
if (!await to_app.existsSync(path_from))
|
|
73111
73007
|
return;
|
|
73112
|
-
|
|
73008
|
+
to_app.copySync(path_from, path_to);
|
|
73113
73009
|
};
|
|
73114
73010
|
this.eraseBMFolder = async (place) => {
|
|
73115
73011
|
await to_app.removeSync(`${this.$path_userdata}storage/${place}/`);
|
|
@@ -73177,35 +73073,7 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73177
73073
|
to_app.navigate_to(url);
|
|
73178
73074
|
return false;
|
|
73179
73075
|
};
|
|
73180
|
-
this.
|
|
73181
|
-
if (!hArg.key) {
|
|
73182
|
-
this.tgl_full_scr_sub();
|
|
73183
|
-
return false;
|
|
73184
|
-
}
|
|
73185
|
-
const key = hArg.key.toLowerCase();
|
|
73186
|
-
document.addEventListener('keydown', (e) => {
|
|
73187
|
-
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
73188
|
-
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
73189
|
-
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
73190
|
-
+ e.key.toLowerCase();
|
|
73191
|
-
if (key2 !== key)
|
|
73192
|
-
return;
|
|
73193
|
-
e.stopPropagation();
|
|
73194
|
-
this.tgl_full_scr_sub();
|
|
73195
|
-
}, { passive: true });
|
|
73196
|
-
return false;
|
|
73197
|
-
};
|
|
73198
|
-
this.tgl_full_scr_sub = async () => {
|
|
73199
|
-
if (await to_app.isSimpleFullScreen()) {
|
|
73200
|
-
await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73201
|
-
this.isFullScr = false;
|
|
73202
|
-
}
|
|
73203
|
-
else {
|
|
73204
|
-
await to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73205
|
-
await to_app.win_setContentSize(screen.width, screen.height);
|
|
73206
|
-
this.isFullScr = true;
|
|
73207
|
-
}
|
|
73208
|
-
};
|
|
73076
|
+
this.tglFlscr_sub = async () => to_app.setSimpleFullScreen(this.isFullScr = !await to_app.isSimpleFullScreen());
|
|
73209
73077
|
this.update_check = hArg => {
|
|
73210
73078
|
const { url } = hArg;
|
|
73211
73079
|
if (!url)
|
|
@@ -73338,8 +73206,8 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73338
73206
|
}
|
|
73339
73207
|
initVal(data, hTmp, comp) {
|
|
73340
73208
|
hTmp['const.sn.isDebugger'] = false;
|
|
73341
|
-
hTmp['const.sn.screenResolutionX'] =
|
|
73342
|
-
hTmp['const.sn.screenResolutionY'] =
|
|
73209
|
+
hTmp['const.sn.screenResolutionX'] = screen.width;
|
|
73210
|
+
hTmp['const.sn.screenResolutionY'] = screen.height;
|
|
73343
73211
|
this.$path_userdata = CmnLib_1.CmnLib.isDbg
|
|
73344
73212
|
? __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath.slice(0, -3) + '.vscode/'
|
|
73345
73213
|
: __classPrivateFieldGet(this, _SysApp_hInfo, "f").userData.replaceAll('\\', '/') + '/';
|
|
@@ -73385,6 +73253,8 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73385
73253
|
}
|
|
73386
73254
|
init(hTag, appPixi, val, main) {
|
|
73387
73255
|
super.init(hTag, appPixi, val, main);
|
|
73256
|
+
const e = new Event('click');
|
|
73257
|
+
to_app.on('fire', (_e, KEY) => main.fire(KEY, e));
|
|
73388
73258
|
if (this.cfg.oCfg.debug.devtool)
|
|
73389
73259
|
to_app.openDevTools();
|
|
73390
73260
|
else
|
|
@@ -73392,9 +73262,25 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73392
73262
|
console.error(`DevToolは禁止されています。許可する場合は【プロジェクト設定】の【devtool】をONに。`);
|
|
73393
73263
|
main.destroy();
|
|
73394
73264
|
});
|
|
73395
|
-
to_app.win_setContentSize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73396
73265
|
return [];
|
|
73397
73266
|
}
|
|
73267
|
+
cvsResize() {
|
|
73268
|
+
const ret = super.cvsResize();
|
|
73269
|
+
if (CmnLib_1.CmnLib.isMac)
|
|
73270
|
+
return ret;
|
|
73271
|
+
const s = this.appPixi.view.style;
|
|
73272
|
+
if (this.isFullScr) {
|
|
73273
|
+
s.left = `${this.ofsLeft4elm}px`;
|
|
73274
|
+
s.top = `${this.ofsTop4elm}px`;
|
|
73275
|
+
s.position = 'fixed';
|
|
73276
|
+
}
|
|
73277
|
+
else {
|
|
73278
|
+
s.left = '';
|
|
73279
|
+
s.top = '';
|
|
73280
|
+
s.position = 'relative';
|
|
73281
|
+
}
|
|
73282
|
+
return ret;
|
|
73283
|
+
}
|
|
73398
73284
|
titleSub(title) { to_app.win_setTitle(title); }
|
|
73399
73285
|
}
|
|
73400
73286
|
exports.SysApp = SysApp;
|
|
@@ -73436,7 +73322,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73436
73322
|
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");
|
|
73437
73323
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73438
73324
|
};
|
|
73439
|
-
var _a, _SysBase_cvsWidth, _SysBase_cvsHeight, _SysBase_cvsScale,
|
|
73325
|
+
var _a, _SysBase_cvsWidth, _SysBase_cvsHeight, _SysBase_cvsScale, _SysBase_ofsLeft4elm, _SysBase_ofsTop4elm, _SysBase_ofsPadLeft_Dom2PIXI, _SysBase_ofsPadTop_Dom2PIXI, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_tglFlscr, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
73440
73326
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73441
73327
|
exports.SysBase = void 0;
|
|
73442
73328
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -73452,8 +73338,8 @@ class SysBase {
|
|
|
73452
73338
|
_SysBase_cvsWidth.set(this, 0);
|
|
73453
73339
|
_SysBase_cvsHeight.set(this, 0);
|
|
73454
73340
|
_SysBase_cvsScale.set(this, 1);
|
|
73455
|
-
|
|
73456
|
-
|
|
73341
|
+
_SysBase_ofsLeft4elm.set(this, 0);
|
|
73342
|
+
_SysBase_ofsTop4elm.set(this, 0);
|
|
73457
73343
|
_SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
|
|
73458
73344
|
_SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
|
|
73459
73345
|
this.isFullScr = false;
|
|
@@ -73505,7 +73391,24 @@ class SysBase {
|
|
|
73505
73391
|
return false;
|
|
73506
73392
|
};
|
|
73507
73393
|
_SysBase_main_title.set(this, '');
|
|
73508
|
-
this
|
|
73394
|
+
_SysBase_tglFlscr.set(this, hArg => {
|
|
73395
|
+
if (!hArg.key) {
|
|
73396
|
+
this.tglFlscr_sub();
|
|
73397
|
+
return false;
|
|
73398
|
+
}
|
|
73399
|
+
const key = hArg.key.toLowerCase();
|
|
73400
|
+
document.addEventListener('keydown', (e) => {
|
|
73401
|
+
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
73402
|
+
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
73403
|
+
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
73404
|
+
+ e.key.toLowerCase();
|
|
73405
|
+
if (key2 !== key)
|
|
73406
|
+
return;
|
|
73407
|
+
e.stopPropagation();
|
|
73408
|
+
this.tglFlscr_sub();
|
|
73409
|
+
}, { passive: true });
|
|
73410
|
+
return false;
|
|
73411
|
+
});
|
|
73509
73412
|
this.update_check = () => false;
|
|
73510
73413
|
this.window = () => false;
|
|
73511
73414
|
_SysBase_info_title.set(this, '');
|
|
@@ -73586,7 +73489,7 @@ class SysBase {
|
|
|
73586
73489
|
hTag.import = o => this._import(o);
|
|
73587
73490
|
hTag.navigate_to = o => this.navigate_to(o);
|
|
73588
73491
|
hTag.title = o => this.title(o);
|
|
73589
|
-
hTag.toggle_full_screen = o => this.
|
|
73492
|
+
hTag.toggle_full_screen = o => __classPrivateFieldGet(this, _SysBase_tglFlscr, "f").call(this, o);
|
|
73590
73493
|
hTag.update_check = o => this.update_check(o);
|
|
73591
73494
|
hTag.window = o => this.window(o);
|
|
73592
73495
|
val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
|
|
@@ -73622,11 +73525,15 @@ class SysBase {
|
|
|
73622
73525
|
}));
|
|
73623
73526
|
return a;
|
|
73624
73527
|
}
|
|
73528
|
+
get cvsWidth() { return __classPrivateFieldGet(this, _SysBase_cvsWidth, "f"); }
|
|
73529
|
+
;
|
|
73530
|
+
get cvsHeight() { return __classPrivateFieldGet(this, _SysBase_cvsHeight, "f"); }
|
|
73531
|
+
;
|
|
73625
73532
|
get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
|
|
73626
73533
|
;
|
|
73627
|
-
get
|
|
73534
|
+
get ofsLeft4elm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f"); }
|
|
73628
73535
|
;
|
|
73629
|
-
get
|
|
73536
|
+
get ofsTop4elm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f"); }
|
|
73630
73537
|
;
|
|
73631
73538
|
get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
|
|
73632
73539
|
;
|
|
@@ -73643,7 +73550,7 @@ class SysBase {
|
|
|
73643
73550
|
[w, h] = [h, w];
|
|
73644
73551
|
const cvs = this.appPixi.view;
|
|
73645
73552
|
const cr = cvs.getBoundingClientRect();
|
|
73646
|
-
if (
|
|
73553
|
+
if ((0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true)
|
|
73647
73554
|
|| CmnLib_1.CmnLib.stageW > w
|
|
73648
73555
|
|| CmnLib_1.CmnLib.stageH > h) {
|
|
73649
73556
|
if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
|
|
@@ -73676,17 +73583,13 @@ class SysBase {
|
|
|
73676
73583
|
ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
|
|
73677
73584
|
}
|
|
73678
73585
|
const s = cvs.style;
|
|
73679
|
-
|
|
73680
|
-
|
|
73681
|
-
|
|
73682
|
-
|
|
73683
|
-
s.height = ps.height;
|
|
73684
|
-
}
|
|
73685
|
-
__classPrivateFieldSet(this, _SysBase_ofsLeft4frm, cr.left, "f");
|
|
73686
|
-
__classPrivateFieldSet(this, _SysBase_ofsTop4frm, cr.top, "f");
|
|
73586
|
+
s.width = ps.width;
|
|
73587
|
+
s.height = ps.height;
|
|
73588
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, cr.left, "f");
|
|
73589
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, cr.top, "f");
|
|
73687
73590
|
if (this.isFullScr) {
|
|
73688
|
-
__classPrivateFieldSet(this,
|
|
73689
|
-
__classPrivateFieldSet(this,
|
|
73591
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f") + (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
|
|
73592
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f") + (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
|
|
73690
73593
|
}
|
|
73691
73594
|
return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73692
73595
|
}
|
|
@@ -73753,6 +73656,7 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBa
|
|
|
73753
73656
|
setFire(fire) { this.fire = fire; }
|
|
73754
73657
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
73755
73658
|
titleSub(_txt) { }
|
|
73659
|
+
tglFlscr_sub() { }
|
|
73756
73660
|
setTitleInfo(txt) {
|
|
73757
73661
|
__classPrivateFieldSet(this, _SysBase_info_title, txt, "f");
|
|
73758
73662
|
this.titleSub(__classPrivateFieldGet(this, _SysBase_main_title, "f") + __classPrivateFieldGet(this, _SysBase_info_title, "f"));
|
|
@@ -73771,7 +73675,7 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBa
|
|
|
73771
73675
|
async ensureFileSync(_path) { }
|
|
73772
73676
|
}
|
|
73773
73677
|
exports.SysBase = SysBase;
|
|
73774
|
-
_a = SysBase, _SysBase_cvsWidth = new WeakMap(), _SysBase_cvsHeight = new WeakMap(), _SysBase_cvsScale = new WeakMap(),
|
|
73678
|
+
_a = SysBase, _SysBase_cvsWidth = new WeakMap(), _SysBase_cvsHeight = new WeakMap(), _SysBase_cvsScale = new WeakMap(), _SysBase_ofsLeft4elm = new WeakMap(), _SysBase_ofsTop4elm = new WeakMap(), _SysBase_ofsPadLeft_Dom2PIXI = new WeakMap(), _SysBase_ofsPadTop_Dom2PIXI = new WeakMap(), _SysBase_sk = new WeakMap(), _SysBase_hHook = new WeakMap(), _SysBase_aFncHook = new WeakMap(), _SysBase_main_title = new WeakMap(), _SysBase_tglFlscr = new WeakMap(), _SysBase_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
|
|
73775
73679
|
SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
|
|
73776
73680
|
_SysBase_hToastDat = { value: {
|
|
73777
73681
|
'接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
|
|
@@ -74811,8 +74715,8 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74811
74715
|
}
|
|
74812
74716
|
cvsResize() {
|
|
74813
74717
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
74814
|
-
s.left = `${this.sys.
|
|
74815
|
-
s.top = `${this.sys.
|
|
74718
|
+
s.left = `${this.sys.ofsLeft4elm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
|
|
74719
|
+
s.top = `${this.sys.ofsTop4elm + this.spLay.position.y * this.sys.cvsScale}px`;
|
|
74816
74720
|
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
|
|
74817
74721
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
|
|
74818
74722
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|