@famibee/skynovel 1.27.5 → 1.27.9
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 +58 -0
- package/app.js +422 -545
- package/appMain.js +54 -56
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +0 -4
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +0 -2
- package/core/lib/sn/CmnLib.d.ts +0 -10
- package/core/lib/sn/CmnLib.d.ts.map +1 -1
- package/core/lib/sn/DesignCast.d.ts +1 -0
- package/core/lib/sn/DesignCast.d.ts.map +1 -1
- package/core/lib/sn/EventMng.d.ts.map +1 -1
- package/core/lib/sn/FrameMng.d.ts.map +1 -1
- package/core/lib/sn/Layer.d.ts.map +1 -1
- package/core/lib/sn/Main.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts +1 -2
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/SysBase.d.ts +10 -5
- package/core/lib/sn/SysBase.d.ts.map +1 -1
- package/core/lib/sn/SysWeb.d.ts.map +1 -1
- package/core/lib/sn/TxtLayer.d.ts +4 -3
- package/core/lib/sn/TxtLayer.d.ts.map +1 -1
- package/core/lib/sn/TxtStage.d.ts +5 -3
- package/core/lib/sn/TxtStage.d.ts.map +1 -1
- package/package.json +7 -7
- package/web.js +429 -556
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
|
*/
|
|
@@ -66337,71 +66234,10 @@ function getExt(p) { return (p.match(REG_EXT) ?? [''])[1]; }
|
|
|
66337
66234
|
exports.getExt = getExt;
|
|
66338
66235
|
const platform = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js");
|
|
66339
66236
|
class CmnLib {
|
|
66340
|
-
static cvsResize(cvs) {
|
|
66341
|
-
const bk_cw = CmnLib.cvsWidth;
|
|
66342
|
-
const bk_ch = CmnLib.cvsHeight;
|
|
66343
|
-
let w = globalThis.innerWidth;
|
|
66344
|
-
let h = globalThis.innerHeight;
|
|
66345
|
-
const angle = screen.orientation?.angle ?? 0;
|
|
66346
|
-
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
66347
|
-
if (CmnLib.isMobile &&
|
|
66348
|
-
((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
66349
|
-
[w, h] = [h, w];
|
|
66350
|
-
if (argChk_Boolean(CmnLib.hDip, 'expanding', true) ||
|
|
66351
|
-
CmnLib.stageW > w ||
|
|
66352
|
-
CmnLib.stageH > h) {
|
|
66353
|
-
if (CmnLib.stageW / CmnLib.stageH <= w / h) {
|
|
66354
|
-
CmnLib.cvsHeight = h;
|
|
66355
|
-
CmnLib.cvsWidth = CmnLib.stageW / CmnLib.stageH * h;
|
|
66356
|
-
}
|
|
66357
|
-
else {
|
|
66358
|
-
CmnLib.cvsWidth = w;
|
|
66359
|
-
CmnLib.cvsHeight = CmnLib.stageH / CmnLib.stageW * w;
|
|
66360
|
-
}
|
|
66361
|
-
CmnLib.cvsScale = CmnLib.cvsWidth / CmnLib.stageW;
|
|
66362
|
-
const cr = cvs.getBoundingClientRect();
|
|
66363
|
-
CmnLib.ofsPadLeft_Dom2PIXI = (CmnLib.isMobile
|
|
66364
|
-
? (globalThis.innerWidth - CmnLib.cvsWidth) / 2
|
|
66365
|
-
: cr.left)
|
|
66366
|
-
* (1 - CmnLib.cvsScale);
|
|
66367
|
-
CmnLib.ofsPadTop_Dom2PIXI = (CmnLib.isMobile
|
|
66368
|
-
? (globalThis.innerHeight - CmnLib.cvsHeight) / 2
|
|
66369
|
-
: cr.top)
|
|
66370
|
-
* (1 - CmnLib.cvsScale);
|
|
66371
|
-
}
|
|
66372
|
-
else {
|
|
66373
|
-
CmnLib.cvsWidth = CmnLib.stageW;
|
|
66374
|
-
CmnLib.cvsHeight = CmnLib.stageH;
|
|
66375
|
-
CmnLib.cvsScale = 1;
|
|
66376
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
66377
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
66378
|
-
}
|
|
66379
|
-
if (cvs.parentElement) {
|
|
66380
|
-
const ps = cvs.parentElement.style;
|
|
66381
|
-
ps.position = 'relative';
|
|
66382
|
-
ps.width = `${CmnLib.cvsWidth}px`;
|
|
66383
|
-
ps.height = `${CmnLib.cvsHeight}px`;
|
|
66384
|
-
const s = cvs.style;
|
|
66385
|
-
if (CmnLib.isFullScr) {
|
|
66386
|
-
s.width = '';
|
|
66387
|
-
s.height = '';
|
|
66388
|
-
}
|
|
66389
|
-
else {
|
|
66390
|
-
s.width = ps.width;
|
|
66391
|
-
s.height = ps.height;
|
|
66392
|
-
}
|
|
66393
|
-
}
|
|
66394
|
-
return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
|
|
66395
|
-
}
|
|
66396
66237
|
}
|
|
66397
66238
|
exports.CmnLib = CmnLib;
|
|
66398
66239
|
CmnLib.stageW = 0;
|
|
66399
66240
|
CmnLib.stageH = 0;
|
|
66400
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
66401
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
66402
|
-
CmnLib.cvsWidth = 0;
|
|
66403
|
-
CmnLib.cvsHeight = 0;
|
|
66404
|
-
CmnLib.cvsScale = 1;
|
|
66405
66241
|
CmnLib.debugLog = false;
|
|
66406
66242
|
CmnLib.isSafari = platform.name === 'Safari';
|
|
66407
66243
|
CmnLib.isFirefox = platform.name === 'Firefox';
|
|
@@ -66410,11 +66246,7 @@ CmnLib.isMobile = !new RegExp('(Windows|OS X)').test(platform.os?.family ?? '');
|
|
|
66410
66246
|
CmnLib.hDip = {};
|
|
66411
66247
|
CmnLib.isDbg = false;
|
|
66412
66248
|
CmnLib.isPackaged = false;
|
|
66413
|
-
CmnLib.isRetina = false;
|
|
66414
66249
|
CmnLib.isDarkMode = false;
|
|
66415
|
-
CmnLib.retinaRate = 1;
|
|
66416
|
-
CmnLib.SN_ID = 'skynovel';
|
|
66417
|
-
CmnLib.isFullScr = false;
|
|
66418
66250
|
|
|
66419
66251
|
|
|
66420
66252
|
/***/ }),
|
|
@@ -66883,7 +66715,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
66883
66715
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
66884
66716
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
66885
66717
|
};
|
|
66886
|
-
var _DesignCast_instances, _a, _DesignCast_divDesignRoot,
|
|
66718
|
+
var _DesignCast_instances, _a, _DesignCast_divDesignRoot, _DesignCast_scrItr, _DesignCast_alzTagArg, _DesignCast_cfg, _DesignCast_ID_DESIGNMODE, _DesignCast_cntDesignCast, _DesignCast_hId2dc, _DesignCast_aDC, _DesignCast_resizeDiv, _GrpLayDesignCast_sp, _TxtLayPadDesignCast_instances, _TxtLayPadDesignCast_procHint, _PicBtnDesignCast_sp;
|
|
66887
66719
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
66888
66720
|
exports.PicBtnDesignCast = exports.TxtBtnDesignCast = exports.BtnDesignCast = exports.TxtLayPadDesignCast = exports.TxtLayDesignCast = exports.GrpLayDesignCast = exports.DesignCast = void 0;
|
|
66889
66721
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -66927,11 +66759,11 @@ class DesignCast {
|
|
|
66927
66759
|
this.rotatable = true;
|
|
66928
66760
|
}
|
|
66929
66761
|
static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
|
|
66930
|
-
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW *
|
|
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>`);
|
|
66931
66763
|
__classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
|
|
66932
66764
|
DesignCast.divHint.classList.add('sn_design_hint');
|
|
66933
|
-
|
|
66934
|
-
|
|
66765
|
+
appPixi.view.parentElement.appendChild(DesignCast.divHint);
|
|
66766
|
+
DesignCast.sys = sys;
|
|
66935
66767
|
__classPrivateFieldSet(DesignCast, _a, scrItr, "f", _DesignCast_scrItr);
|
|
66936
66768
|
DesignCast.prpPrs = prpPrs;
|
|
66937
66769
|
__classPrivateFieldSet(DesignCast, _a, alzTagArg, "f", _DesignCast_alzTagArg);
|
|
@@ -66974,8 +66806,8 @@ class DesignCast {
|
|
|
66974
66806
|
}
|
|
66975
66807
|
static cvsResizeDesign() {
|
|
66976
66808
|
const s = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_divDesignRoot).style;
|
|
66977
|
-
s.width = `${CmnLib_1.CmnLib.stageW *
|
|
66978
|
-
s.height = `${CmnLib_1.CmnLib.stageH *
|
|
66809
|
+
s.width = `${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px`;
|
|
66810
|
+
s.height = `${CmnLib_1.CmnLib.stageH * DesignCast.sys.cvsScale}px`;
|
|
66979
66811
|
}
|
|
66980
66812
|
destroy() {
|
|
66981
66813
|
this.div = undefined;
|
|
@@ -67055,8 +66887,8 @@ class DesignCast {
|
|
|
67055
66887
|
const procStart = () => {
|
|
67056
66888
|
tmp.aPos = [NaN, NaN];
|
|
67057
66889
|
tmp.roDeg = this.rotation;
|
|
67058
|
-
const dpx = this.pivot.x *
|
|
67059
|
-
const dpy = this.pivot.y *
|
|
66890
|
+
const dpx = this.pivot.x * DesignCast.sys.cvsScale;
|
|
66891
|
+
const dpy = this.pivot.y * DesignCast.sys.cvsScale;
|
|
67060
66892
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
67061
66893
|
tmp.origin = [dpx, dpy];
|
|
67062
66894
|
Object.assign(this.mov, {
|
|
@@ -67065,7 +66897,7 @@ class DesignCast {
|
|
|
67065
66897
|
});
|
|
67066
66898
|
};
|
|
67067
66899
|
const procEnd = (o) => {
|
|
67068
|
-
|
|
66900
|
+
DesignCast.sys.send2Dbg('_changeCast', {
|
|
67069
66901
|
...o, ':id_tag': this.id_tag,
|
|
67070
66902
|
});
|
|
67071
66903
|
DesignCast.divHint.style.display = 'none';
|
|
@@ -67076,8 +66908,8 @@ class DesignCast {
|
|
|
67076
66908
|
DesignCast.divHint.style.display = 'none';
|
|
67077
66909
|
return;
|
|
67078
66910
|
}
|
|
67079
|
-
const ix = (0, CmnLib_1.int)(this.rect.x += dx /
|
|
67080
|
-
const iy = (0, CmnLib_1.int)(this.rect.y += dy /
|
|
66911
|
+
const ix = (0, CmnLib_1.int)(this.rect.x += dx / DesignCast.sys.cvsScale + this.pivot.x);
|
|
66912
|
+
const iy = (0, CmnLib_1.int)(this.rect.y += dy / DesignCast.sys.cvsScale + this.pivot.y);
|
|
67081
66913
|
this.setPos(ix, iy);
|
|
67082
66914
|
const iw = (0, CmnLib_1.uint)(this.rect.width), ih = (0, CmnLib_1.uint)(this.rect.height);
|
|
67083
66915
|
this.setSize(iw, ih);
|
|
@@ -67121,8 +66953,8 @@ class DesignCast {
|
|
|
67121
66953
|
d.style.width = `${e.width}px`;
|
|
67122
66954
|
d.style.height = `${e.height}px`;
|
|
67123
66955
|
tmp.aPos = e.drag.beforeTranslate;
|
|
67124
|
-
this.rect.width = e.width /
|
|
67125
|
-
this.rect.height = e.height /
|
|
66956
|
+
this.rect.width = e.width / DesignCast.sys.cvsScale;
|
|
66957
|
+
this.rect.height = e.height / DesignCast.sys.cvsScale;
|
|
67126
66958
|
this.procResizeHint(e, e.drag.left, e.drag.top);
|
|
67127
66959
|
})
|
|
67128
66960
|
.on('resizeEnd', resizeEnd)
|
|
@@ -67144,8 +66976,8 @@ class DesignCast {
|
|
|
67144
66976
|
.on('dragOriginEnd', () => {
|
|
67145
66977
|
const [dpx, dpy] = tmp.origin;
|
|
67146
66978
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
67147
|
-
const px = this.pivot.x = dpx /
|
|
67148
|
-
const py = this.pivot.y = dpy /
|
|
66979
|
+
const px = this.pivot.x = dpx / DesignCast.sys.cvsScale;
|
|
66980
|
+
const py = this.pivot.y = dpy / DesignCast.sys.cvsScale;
|
|
67149
66981
|
this.setOther({});
|
|
67150
66982
|
const ix = (0, CmnLib_1.int)(this.rect.x + px);
|
|
67151
66983
|
const iy = (0, CmnLib_1.int)(this.rect.y + py);
|
|
@@ -67193,18 +67025,18 @@ class DesignCast {
|
|
|
67193
67025
|
o.url = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_scrItr).cnvPath4Dbg(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_cfg).searchPath(f.name, Config_1.Config.EXT_SPRITE));
|
|
67194
67026
|
}
|
|
67195
67027
|
catch { }
|
|
67196
|
-
|
|
67028
|
+
DesignCast.sys.send2Dbg('_dropFile', o);
|
|
67197
67029
|
})
|
|
67198
67030
|
.catch(e => console.error(`drop2dc %o`, e));
|
|
67199
67031
|
});
|
|
67200
67032
|
d.addEventListener('dblclick', e => {
|
|
67201
67033
|
e.preventDefault();
|
|
67202
|
-
|
|
67034
|
+
DesignCast.sys.send2Dbg('_focusScript', this.hArg);
|
|
67203
67035
|
});
|
|
67204
67036
|
}
|
|
67205
67037
|
procDragHint(e, left, top) {
|
|
67206
67038
|
const [dx, dy] = e.beforeTranslate;
|
|
67207
|
-
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx /
|
|
67039
|
+
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx / DesignCast.sys.cvsScale)}, ${(0, CmnLib_1.int)(this.rect.y + dy / DesignCast.sys.cvsScale)})`, left, top, this);
|
|
67208
67040
|
}
|
|
67209
67041
|
procResizeHint(e, left, top) {
|
|
67210
67042
|
DesignCast.setHint(`(${(0, CmnLib_1.int)(e.drag.left)}, ${(0, CmnLib_1.int)(e.drag.top)})<br/>${(0, CmnLib_1.int)(this.rect.width)} x ${(0, CmnLib_1.int)(this.rect.height)}`, left, top, this);
|
|
@@ -67270,16 +67102,15 @@ _a = DesignCast, _DesignCast_instances = new WeakSet(), _DesignCast_resizeDiv =
|
|
|
67270
67102
|
this.fncLay();
|
|
67271
67103
|
if (this.div)
|
|
67272
67104
|
Object.assign(this.div.style, {
|
|
67273
|
-
left: `${this.lx + this.rect.x *
|
|
67274
|
-
top: `${this.ly + this.rect.y *
|
|
67275
|
-
width: `${this.rect.width *
|
|
67276
|
-
height: `${this.rect.height *
|
|
67277
|
-
transformOrigin: `${this.pivot.x *
|
|
67105
|
+
left: `${this.lx + this.rect.x * DesignCast.sys.cvsScale}px`,
|
|
67106
|
+
top: `${this.ly + this.rect.y * DesignCast.sys.cvsScale}px`,
|
|
67107
|
+
width: `${this.rect.width * DesignCast.sys.cvsScale}px`,
|
|
67108
|
+
height: `${this.rect.height * DesignCast.sys.cvsScale}px`,
|
|
67109
|
+
transformOrigin: `${this.pivot.x * DesignCast.sys.cvsScale}px ${this.pivot.y * DesignCast.sys.cvsScale}px`,
|
|
67278
67110
|
transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`,
|
|
67279
67111
|
});
|
|
67280
67112
|
};
|
|
67281
67113
|
_DesignCast_divDesignRoot = { value: void 0 };
|
|
67282
|
-
_DesignCast_sys = { value: void 0 };
|
|
67283
67114
|
_DesignCast_scrItr = { value: void 0 };
|
|
67284
67115
|
_DesignCast_alzTagArg = { value: void 0 };
|
|
67285
67116
|
_DesignCast_cfg = { value: void 0 };
|
|
@@ -67413,8 +67244,8 @@ _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint =
|
|
|
67413
67244
|
const x = this.rect.x, y = this.rect.y;
|
|
67414
67245
|
const w = this.rect.width, h = this.rect.height;
|
|
67415
67246
|
const it = this.ts.infTL;
|
|
67416
|
-
const pl = (0, CmnLib_1.int)(x + dx /
|
|
67417
|
-
const pt = (0, CmnLib_1.int)(y + dy /
|
|
67247
|
+
const pl = (0, CmnLib_1.int)(x + dx / DesignCast.sys.cvsScale);
|
|
67248
|
+
const pt = (0, CmnLib_1.int)(y + dy / DesignCast.sys.cvsScale);
|
|
67418
67249
|
const pr = (0, CmnLib_1.int)(it.$width - pl - w);
|
|
67419
67250
|
const pb = (0, CmnLib_1.int)(it.$height - pt - h);
|
|
67420
67251
|
const sp = (re) => ' '.repeat(re);
|
|
@@ -67441,8 +67272,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
67441
67272
|
this.fncLay = (!this.parent && !this.child && layer)
|
|
67442
67273
|
? () => {
|
|
67443
67274
|
const f = DesignCast.hPages[layer].fore;
|
|
67444
|
-
this.lx = f.x *
|
|
67445
|
-
this.ly = f.y *
|
|
67275
|
+
this.lx = f.x * DesignCast.sys.cvsScale;
|
|
67276
|
+
this.ly = f.y * DesignCast.sys.cvsScale;
|
|
67446
67277
|
}
|
|
67447
67278
|
: () => { };
|
|
67448
67279
|
}
|
|
@@ -67457,8 +67288,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
67457
67288
|
onDragStart() {
|
|
67458
67289
|
const aBtn = this.btn.parent.children.filter(b => b !== this.btn);
|
|
67459
67290
|
Object.assign(this.mov, {
|
|
67460
|
-
verticalGuidelines: aBtn.map(b => this.lx + b.x *
|
|
67461
|
-
horizontalGuidelines: aBtn.map(b => this.ly + b.y *
|
|
67291
|
+
verticalGuidelines: aBtn.map(b => this.lx + b.x * DesignCast.sys.cvsScale),
|
|
67292
|
+
horizontalGuidelines: aBtn.map(b => this.ly + b.y * DesignCast.sys.cvsScale),
|
|
67462
67293
|
});
|
|
67463
67294
|
}
|
|
67464
67295
|
}
|
|
@@ -67688,7 +67519,7 @@ class EventMng {
|
|
|
67688
67519
|
hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
|
|
67689
67520
|
sndMng.setEvtMng(this);
|
|
67690
67521
|
scrItr.setOtherObj(this, layMng);
|
|
67691
|
-
TxtLayer_1.TxtLayer.setEvtMng(main, this);
|
|
67522
|
+
TxtLayer_1.TxtLayer.setEvtMng(main, this, sys);
|
|
67692
67523
|
layMng.setEvtMng(this);
|
|
67693
67524
|
sys.setFire((KEY, e) => this.fire(KEY, e));
|
|
67694
67525
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
@@ -68110,11 +67941,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68110
67941
|
const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
|
|
68111
67942
|
const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
|
|
68112
67943
|
const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
|
|
68113
|
-
|
|
68114
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.
|
|
68115
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
|
|
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`;
|
|
68116
67946
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
|
|
68117
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x *
|
|
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)`;
|
|
68118
67948
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
|
|
68119
67949
|
if (masume)
|
|
68120
67950
|
__classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
|
|
@@ -68613,7 +68443,6 @@ class FrameMng {
|
|
|
68613
68443
|
}
|
|
68614
68444
|
getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
|
|
68615
68445
|
cvsResize() {
|
|
68616
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68617
68446
|
for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
|
|
68618
68447
|
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
|
|
68619
68448
|
const vn = 'const.sn.frm.' + id;
|
|
@@ -68621,16 +68450,16 @@ class FrameMng {
|
|
|
68621
68450
|
const y = Number(this.val.getVal(vn + '.y'));
|
|
68622
68451
|
const w = Number(this.val.getVal(vn + '.width'));
|
|
68623
68452
|
const h = Number(this.val.getVal(vn + '.height'));
|
|
68624
|
-
f.style.left = this.sys.
|
|
68625
|
-
f.style.top = this.sys.
|
|
68626
|
-
f.width = String(w *
|
|
68627
|
-
f.height = String(h *
|
|
68453
|
+
f.style.left = `${this.sys.ofsLeft4elm + x * this.sys.cvsScale}px`;
|
|
68454
|
+
f.style.top = `${this.sys.ofsTop4elm + y * this.sys.cvsScale}px`;
|
|
68455
|
+
f.width = String(w * this.sys.cvsScale);
|
|
68456
|
+
f.height = String(h * this.sys.cvsScale);
|
|
68628
68457
|
}
|
|
68629
68458
|
}
|
|
68630
68459
|
}
|
|
68631
68460
|
exports.FrameMng = FrameMng;
|
|
68632
68461
|
_FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
|
|
68633
|
-
const { id, src } = hArg;
|
|
68462
|
+
const { id, src, alpha: a = 1, scale_x: sx = 1, scale_y: sy = 1, rotate: r = 0, } = hArg;
|
|
68634
68463
|
if (!id)
|
|
68635
68464
|
throw 'idは必須です';
|
|
68636
68465
|
if (!src)
|
|
@@ -68638,15 +68467,10 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68638
68467
|
const vn = 'const.sn.frm.' + id;
|
|
68639
68468
|
if (this.val.getVal(`tmp:${vn}`))
|
|
68640
68469
|
throw `frame【${id}】はすでにあります`;
|
|
68641
|
-
const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
|
|
68642
|
-
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
68643
|
-
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
68644
|
-
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
68645
68470
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68646
68471
|
const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
|
|
68647
68472
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68648
|
-
|
|
68649
|
-
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4frm + rct.x * scl}px; top: ${this.sys.ofsTop4frm + rct.y * scl}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * scl}" height="${rct.height * scl}"></iframe>`);
|
|
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>`);
|
|
68650
68474
|
const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
|
|
68651
68475
|
const ld = (new pixi_js_1.Loader())
|
|
68652
68476
|
.add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
@@ -68741,7 +68565,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68741
68565
|
const s = f.style;
|
|
68742
68566
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
|
|
68743
68567
|
s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
|
|
68744
|
-
else if (hArg
|
|
68568
|
+
else if ('index' in hArg)
|
|
68745
68569
|
s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
|
|
68746
68570
|
else if (hArg.dive)
|
|
68747
68571
|
s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
|
|
@@ -68750,10 +68574,9 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68750
68574
|
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68751
68575
|
}
|
|
68752
68576
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68753
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68754
68577
|
if ('x' in hArg || 'y' in hArg) {
|
|
68755
|
-
s.left = `${this.sys.
|
|
68756
|
-
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`;
|
|
68757
68580
|
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68758
68581
|
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68759
68582
|
}
|
|
@@ -68767,11 +68590,11 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68767
68590
|
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68768
68591
|
}
|
|
68769
68592
|
if ('width' in hArg) {
|
|
68770
|
-
f.width = String(rct.width *
|
|
68593
|
+
f.width = String(rct.width * this.sys.cvsScale);
|
|
68771
68594
|
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68772
68595
|
}
|
|
68773
68596
|
if ('height' in hArg) {
|
|
68774
|
-
f.height = String(rct.height *
|
|
68597
|
+
f.height = String(rct.height * this.sys.cvsScale);
|
|
68775
68598
|
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68776
68599
|
}
|
|
68777
68600
|
if ('visible' in hArg) {
|
|
@@ -68825,7 +68648,6 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68825
68648
|
}
|
|
68826
68649
|
let fncXYSR = () => { };
|
|
68827
68650
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg2);
|
|
68828
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68829
68651
|
if ('x' in hArg || 'y' in hArg
|
|
68830
68652
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68831
68653
|
hTo.x = rct.x;
|
|
@@ -68834,8 +68656,8 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68834
68656
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
68835
68657
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
68836
68658
|
fncXYSR = () => {
|
|
68837
|
-
f.style.left = this.sys.
|
|
68838
|
-
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';
|
|
68839
68661
|
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
68840
68662
|
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
68841
68663
|
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
@@ -68848,7 +68670,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68848
68670
|
if ('width' in hArg) {
|
|
68849
68671
|
hTo.w = rct.width;
|
|
68850
68672
|
fncW = () => {
|
|
68851
|
-
f.width = hNow.w *
|
|
68673
|
+
f.width = hNow.w * this.sys.cvsScale + 'px';
|
|
68852
68674
|
this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
|
|
68853
68675
|
};
|
|
68854
68676
|
}
|
|
@@ -68856,7 +68678,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68856
68678
|
if ('height' in hArg) {
|
|
68857
68679
|
hTo.h = rct.height;
|
|
68858
68680
|
fncH = () => {
|
|
68859
|
-
f.height = hNow.h *
|
|
68681
|
+
f.height = hNow.h * this.sys.cvsScale + 'px';
|
|
68860
68682
|
this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
|
|
68861
68683
|
};
|
|
68862
68684
|
}
|
|
@@ -69368,8 +69190,8 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69368
69190
|
const { fn = name } = hArg;
|
|
69369
69191
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
69370
69192
|
fn,
|
|
69371
|
-
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0)
|
|
69372
|
-
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0)
|
|
69193
|
+
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0),
|
|
69194
|
+
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0),
|
|
69373
69195
|
blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
|
|
69374
69196
|
};
|
|
69375
69197
|
return false;
|
|
@@ -69694,7 +69516,7 @@ class Layer {
|
|
|
69694
69516
|
}
|
|
69695
69517
|
ret.x = (0, CmnLib_1.int)(((ret.scale.x < 0)
|
|
69696
69518
|
? x + (isButton ? b_width / 3 : b_width)
|
|
69697
|
-
: x)
|
|
69519
|
+
: x));
|
|
69698
69520
|
let y = ret.y;
|
|
69699
69521
|
if ('top' in hArg) {
|
|
69700
69522
|
y = (0, CmnLib_1.argChk_Num)(hArg, 'top', 0);
|
|
@@ -69719,8 +69541,7 @@ class Layer {
|
|
|
69719
69541
|
y *= CmnLib_1.CmnLib.stageH;
|
|
69720
69542
|
y = CmnLib_1.CmnLib.stageH - y - b_height;
|
|
69721
69543
|
}
|
|
69722
|
-
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y)
|
|
69723
|
-
* CmnLib_1.CmnLib.retinaRate);
|
|
69544
|
+
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y));
|
|
69724
69545
|
if (isGrp) {
|
|
69725
69546
|
if (!('left' in hArg)
|
|
69726
69547
|
&& !('center' in hArg)
|
|
@@ -69757,7 +69578,7 @@ class Layer {
|
|
|
69757
69578
|
c = b_width * 0.5;
|
|
69758
69579
|
}
|
|
69759
69580
|
else {
|
|
69760
|
-
c = (0, CmnLib_1.int)(pos)
|
|
69581
|
+
c = (0, CmnLib_1.int)(pos);
|
|
69761
69582
|
}
|
|
69762
69583
|
ret.x = (0, CmnLib_1.int)(c - b_width * 0.5);
|
|
69763
69584
|
ret.y = CmnLib_1.CmnLib.stageH - b_height;
|
|
@@ -69925,7 +69746,7 @@ void main(void) {
|
|
|
69925
69746
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
69926
69747
|
_LayerMng_aTxtLog.set(this, []);
|
|
69927
69748
|
const fncResizeLay = () => {
|
|
69928
|
-
if (!
|
|
69749
|
+
if (!sys.cvsResize())
|
|
69929
69750
|
return;
|
|
69930
69751
|
this.cvsResizeDesign();
|
|
69931
69752
|
if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
|
|
@@ -69939,15 +69760,15 @@ void main(void) {
|
|
|
69939
69760
|
globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
|
|
69940
69761
|
}
|
|
69941
69762
|
else {
|
|
69942
|
-
let tid =
|
|
69763
|
+
let tid = undefined;
|
|
69943
69764
|
globalThis.addEventListener('resize', () => {
|
|
69944
69765
|
if (tid)
|
|
69945
69766
|
return;
|
|
69946
|
-
tid = setTimeout(() => { tid =
|
|
69767
|
+
tid = setTimeout(() => { tid = undefined; fncResizeLay(); }, 1000 / 60 * 10);
|
|
69947
69768
|
}, { passive: true });
|
|
69948
69769
|
}
|
|
69949
|
-
|
|
69950
|
-
TxtLayer_1.TxtLayer.init(cfg, hTag, val,
|
|
69770
|
+
sys.cvsResize();
|
|
69771
|
+
TxtLayer_1.TxtLayer.init(cfg, hTag, val, txt => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me, appPixi);
|
|
69951
69772
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
69952
69773
|
Button_1.Button.init(cfg);
|
|
69953
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");
|
|
@@ -70773,7 +70594,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
70773
70594
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
70774
70595
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
70775
70596
|
};
|
|
70776
|
-
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
70597
|
+
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_SN_ID, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
70777
70598
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70778
70599
|
exports.Main = void 0;
|
|
70779
70600
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -70805,6 +70626,7 @@ class Main {
|
|
|
70805
70626
|
_Main_fncNext.set(this, () => { });
|
|
70806
70627
|
_Main_alzTagArg.set(this, new AnalyzeTagArg_1.AnalyzeTagArg);
|
|
70807
70628
|
_Main_inited.set(this, false);
|
|
70629
|
+
_Main_SN_ID.set(this, 'skynovel');
|
|
70808
70630
|
_Main_fncTicker.set(this, () => __classPrivateFieldGet(this, _Main_fncNext, "f").call(this));
|
|
70809
70631
|
_Main_fncresume.set(this, (fnc = __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze)) => {
|
|
70810
70632
|
if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
|
|
@@ -70881,14 +70703,14 @@ class Main {
|
|
|
70881
70703
|
__classPrivateFieldGet(this, _Main_dbgMng, "f").destroy();
|
|
70882
70704
|
__classPrivateFieldGet(this, _Main_appPixi, "f").ticker.remove(__classPrivateFieldGet(this, _Main_fncTicker, "f"));
|
|
70883
70705
|
if (__classPrivateFieldGet(this, _Main_clone_cvs, "f") && __classPrivateFieldGet(this, _Main_appPixi, "f")) {
|
|
70884
|
-
|
|
70706
|
+
document.body.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
70885
70707
|
}
|
|
70886
70708
|
pixi_js_1.utils.clearTextureCache();
|
|
70887
70709
|
__classPrivateFieldGet(this, _Main_appPixi, "f").destroy(true);
|
|
70888
70710
|
}
|
|
70889
70711
|
}
|
|
70890
70712
|
exports.Main = Main;
|
|
70891
|
-
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
70713
|
+
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_SN_ID = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
70892
70714
|
const cc = document.createElement('canvas')?.getContext('2d');
|
|
70893
70715
|
if (!cc)
|
|
70894
70716
|
throw 'argChk_Color err';
|
|
@@ -70901,16 +70723,16 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
70901
70723
|
resolution: globalThis.devicePixelRatio ?? 1,
|
|
70902
70724
|
autoResize: true,
|
|
70903
70725
|
};
|
|
70904
|
-
const cvs = document.getElementById(
|
|
70726
|
+
const cvs = document.getElementById(__classPrivateFieldGet(this, _Main_SN_ID, "f"));
|
|
70905
70727
|
if (cvs) {
|
|
70906
70728
|
__classPrivateFieldSet(this, _Main_clone_cvs, cvs.cloneNode(true), "f");
|
|
70907
|
-
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id =
|
|
70729
|
+
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
70908
70730
|
hApp.view = cvs;
|
|
70909
70731
|
}
|
|
70910
70732
|
__classPrivateFieldSet(this, _Main_appPixi, new pixi_js_1.Application(hApp), "f");
|
|
70911
70733
|
if (!cvs) {
|
|
70912
70734
|
document.body.appendChild(__classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
70913
|
-
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id =
|
|
70735
|
+
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
70914
70736
|
}
|
|
70915
70737
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
70916
70738
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
@@ -73169,8 +72991,6 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73169
72991
|
env: {},
|
|
73170
72992
|
platform: '',
|
|
73171
72993
|
arch: '',
|
|
73172
|
-
screenResolutionX: 0,
|
|
73173
|
-
screenResolutionY: 0,
|
|
73174
72994
|
});
|
|
73175
72995
|
this.readFileSync = to_app.readFileSync;
|
|
73176
72996
|
this.writeFileSync = to_app.writeFileSync;
|
|
@@ -73252,37 +73072,13 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73252
73072
|
to_app.navigate_to(url);
|
|
73253
73073
|
return false;
|
|
73254
73074
|
};
|
|
73255
|
-
this.
|
|
73256
|
-
|
|
73257
|
-
|
|
73258
|
-
|
|
73259
|
-
|
|
73260
|
-
|
|
73261
|
-
|
|
73262
|
-
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
73263
|
-
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
73264
|
-
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
73265
|
-
+ e.key.toLowerCase();
|
|
73266
|
-
if (key2 !== key)
|
|
73267
|
-
return;
|
|
73268
|
-
e.stopPropagation();
|
|
73269
|
-
this.tgl_full_scr_sub();
|
|
73270
|
-
}, { passive: true });
|
|
73271
|
-
return false;
|
|
73272
|
-
};
|
|
73273
|
-
this.tgl_full_scr_sub = async () => {
|
|
73274
|
-
if (await to_app.isSimpleFullScreen()) {
|
|
73275
|
-
await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73276
|
-
this.reso4frame = 1;
|
|
73277
|
-
}
|
|
73278
|
-
else {
|
|
73279
|
-
await to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73280
|
-
await to_app.win_setContentSize(screen.width, screen.height);
|
|
73281
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73282
|
-
this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
|
|
73283
|
-
}
|
|
73284
|
-
this.resizeFrames();
|
|
73285
|
-
};
|
|
73075
|
+
this.tglFlscr_sub = () => this.isFullScr = !to_app.isSimpleFullScreen()
|
|
73076
|
+
.then(fs => {
|
|
73077
|
+
if (fs)
|
|
73078
|
+
to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73079
|
+
else
|
|
73080
|
+
to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73081
|
+
});
|
|
73286
73082
|
this.update_check = hArg => {
|
|
73287
73083
|
const { url } = hArg;
|
|
73288
73084
|
if (!url)
|
|
@@ -73415,9 +73211,8 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73415
73211
|
}
|
|
73416
73212
|
initVal(data, hTmp, comp) {
|
|
73417
73213
|
hTmp['const.sn.isDebugger'] = false;
|
|
73418
|
-
hTmp['const.sn.screenResolutionX'] =
|
|
73419
|
-
hTmp['const.sn.screenResolutionY'] =
|
|
73420
|
-
this.val.defTmp('const.sn.displayState', async () => await to_app.isSimpleFullScreen());
|
|
73214
|
+
hTmp['const.sn.screenResolutionX'] = screen.width;
|
|
73215
|
+
hTmp['const.sn.screenResolutionY'] = screen.height;
|
|
73421
73216
|
this.$path_userdata = CmnLib_1.CmnLib.isDbg
|
|
73422
73217
|
? __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath.slice(0, -3) + '.vscode/'
|
|
73423
73218
|
: __classPrivateFieldGet(this, _SysApp_hInfo, "f").userData.replaceAll('\\', '/') + '/';
|
|
@@ -73470,7 +73265,6 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73470
73265
|
console.error(`DevToolは禁止されています。許可する場合は【プロジェクト設定】の【devtool】をONに。`);
|
|
73471
73266
|
main.destroy();
|
|
73472
73267
|
});
|
|
73473
|
-
to_app.win_setContentSize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73474
73268
|
return [];
|
|
73475
73269
|
}
|
|
73476
73270
|
titleSub(title) { to_app.win_setTitle(title); }
|
|
@@ -73514,7 +73308,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73514
73308
|
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");
|
|
73515
73309
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73516
73310
|
};
|
|
73517
|
-
var _a, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
73311
|
+
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;
|
|
73518
73312
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73519
73313
|
exports.SysBase = void 0;
|
|
73520
73314
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -73526,8 +73320,15 @@ class SysBase {
|
|
|
73526
73320
|
this.hFactoryCls = {};
|
|
73527
73321
|
this.fetch = (url) => fetch(url);
|
|
73528
73322
|
this.resolution = 1;
|
|
73529
|
-
this.reso4frame = 1;
|
|
73530
73323
|
this.data = { sys: {}, mark: {}, kidoku: {} };
|
|
73324
|
+
_SysBase_cvsWidth.set(this, 0);
|
|
73325
|
+
_SysBase_cvsHeight.set(this, 0);
|
|
73326
|
+
_SysBase_cvsScale.set(this, 1);
|
|
73327
|
+
_SysBase_ofsLeft4elm.set(this, 0);
|
|
73328
|
+
_SysBase_ofsTop4elm.set(this, 0);
|
|
73329
|
+
_SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
|
|
73330
|
+
_SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
|
|
73331
|
+
this.isFullScr = false;
|
|
73531
73332
|
this.extPort = 3776;
|
|
73532
73333
|
_SysBase_sk.set(this, undefined);
|
|
73533
73334
|
_SysBase_hHook.set(this, {
|
|
@@ -73576,7 +73377,24 @@ class SysBase {
|
|
|
73576
73377
|
return false;
|
|
73577
73378
|
};
|
|
73578
73379
|
_SysBase_main_title.set(this, '');
|
|
73579
|
-
this
|
|
73380
|
+
_SysBase_tglFlscr.set(this, hArg => {
|
|
73381
|
+
if (!hArg.key) {
|
|
73382
|
+
this.tglFlscr_sub();
|
|
73383
|
+
return false;
|
|
73384
|
+
}
|
|
73385
|
+
const key = hArg.key.toLowerCase();
|
|
73386
|
+
document.addEventListener('keydown', (e) => {
|
|
73387
|
+
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
73388
|
+
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
73389
|
+
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
73390
|
+
+ e.key.toLowerCase();
|
|
73391
|
+
if (key2 !== key)
|
|
73392
|
+
return;
|
|
73393
|
+
e.stopPropagation();
|
|
73394
|
+
this.tglFlscr_sub();
|
|
73395
|
+
}, { passive: true });
|
|
73396
|
+
return false;
|
|
73397
|
+
});
|
|
73580
73398
|
this.update_check = () => false;
|
|
73581
73399
|
this.window = () => false;
|
|
73582
73400
|
_SysBase_info_title.set(this, '');
|
|
@@ -73615,8 +73433,6 @@ class SysBase {
|
|
|
73615
73433
|
this.$path_downloads = '';
|
|
73616
73434
|
this.$path_userdata = '';
|
|
73617
73435
|
this.canCapturePage = (_fn) => false;
|
|
73618
|
-
this.ofsLeft4frm = 0;
|
|
73619
|
-
this.ofsTop4frm = 0;
|
|
73620
73436
|
}
|
|
73621
73437
|
async loaded(hPlg, _arg) {
|
|
73622
73438
|
const fncPre = hPlg.snsys_pre;
|
|
@@ -73659,12 +73475,13 @@ class SysBase {
|
|
|
73659
73475
|
hTag.import = o => this._import(o);
|
|
73660
73476
|
hTag.navigate_to = o => this.navigate_to(o);
|
|
73661
73477
|
hTag.title = o => this.title(o);
|
|
73662
|
-
hTag.toggle_full_screen = o => this.
|
|
73478
|
+
hTag.toggle_full_screen = o => __classPrivateFieldGet(this, _SysBase_tglFlscr, "f").call(this, o);
|
|
73663
73479
|
hTag.update_check = o => this.update_check(o);
|
|
73664
73480
|
hTag.window = o => this.window(o);
|
|
73665
73481
|
val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
|
|
73666
73482
|
val.setVal_Nochk('tmp', 'const.sn.isDbg', () => CmnLib_1.CmnLib.isDbg);
|
|
73667
73483
|
val.setVal_Nochk('tmp', 'const.sn.isPackaged', () => CmnLib_1.CmnLib.isPackaged);
|
|
73484
|
+
this.val.defTmp('const.sn.displayState', () => this.isFullScr);
|
|
73668
73485
|
val.setVal_Nochk('sys', SysBase.VALNM_CFG_NS, this.cfg.oCfg.save_ns);
|
|
73669
73486
|
val.flush();
|
|
73670
73487
|
if (CmnLib_1.CmnLib.isDbg)
|
|
@@ -73694,6 +73511,79 @@ class SysBase {
|
|
|
73694
73511
|
}));
|
|
73695
73512
|
return a;
|
|
73696
73513
|
}
|
|
73514
|
+
get cvsWidth() { return __classPrivateFieldGet(this, _SysBase_cvsWidth, "f"); }
|
|
73515
|
+
;
|
|
73516
|
+
get cvsHeight() { return __classPrivateFieldGet(this, _SysBase_cvsHeight, "f"); }
|
|
73517
|
+
;
|
|
73518
|
+
get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
|
|
73519
|
+
;
|
|
73520
|
+
get ofsLeft4elm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f"); }
|
|
73521
|
+
;
|
|
73522
|
+
get ofsTop4elm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f"); }
|
|
73523
|
+
;
|
|
73524
|
+
get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
|
|
73525
|
+
;
|
|
73526
|
+
get ofsPadTop_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadTop_Dom2PIXI, "f"); }
|
|
73527
|
+
;
|
|
73528
|
+
cvsResize() {
|
|
73529
|
+
const bk_cw = __classPrivateFieldGet(this, _SysBase_cvsWidth, "f");
|
|
73530
|
+
const bk_ch = __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73531
|
+
let w = globalThis.innerWidth;
|
|
73532
|
+
let h = globalThis.innerHeight;
|
|
73533
|
+
const { angle = 0 } = screen.orientation;
|
|
73534
|
+
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
73535
|
+
if (CmnLib_1.CmnLib.isMobile && ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
73536
|
+
[w, h] = [h, w];
|
|
73537
|
+
const cvs = this.appPixi.view;
|
|
73538
|
+
const cr = cvs.getBoundingClientRect();
|
|
73539
|
+
if ((0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true)
|
|
73540
|
+
|| CmnLib_1.CmnLib.stageW > w
|
|
73541
|
+
|| CmnLib_1.CmnLib.stageH > h) {
|
|
73542
|
+
if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
|
|
73543
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, h, "f");
|
|
73544
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH * h, "f");
|
|
73545
|
+
}
|
|
73546
|
+
else {
|
|
73547
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, w, "f");
|
|
73548
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH / CmnLib_1.CmnLib.stageW * w, "f");
|
|
73549
|
+
}
|
|
73550
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") / CmnLib_1.CmnLib.stageW, "f");
|
|
73551
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
73552
|
+
? (globalThis.innerWidth - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2
|
|
73553
|
+
: cr.left) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
73554
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
73555
|
+
? (globalThis.innerHeight - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2
|
|
73556
|
+
: cr.top) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
73557
|
+
}
|
|
73558
|
+
else {
|
|
73559
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW, "f");
|
|
73560
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH, "f");
|
|
73561
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, 1, "f");
|
|
73562
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, 0, "f");
|
|
73563
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, 0, "f");
|
|
73564
|
+
}
|
|
73565
|
+
const ps = cvs.parentElement.style;
|
|
73566
|
+
if (cvs.parentElement === document.body) {
|
|
73567
|
+
ps.position = 'relative';
|
|
73568
|
+
ps.width = `${__classPrivateFieldGet(this, _SysBase_cvsWidth, "f")}px`;
|
|
73569
|
+
ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
|
|
73570
|
+
}
|
|
73571
|
+
const s = cvs.style;
|
|
73572
|
+
if (!this.isApp && this.isFullScr) {
|
|
73573
|
+
s.width = s.height = '';
|
|
73574
|
+
}
|
|
73575
|
+
else {
|
|
73576
|
+
s.width = ps.width;
|
|
73577
|
+
s.height = ps.height;
|
|
73578
|
+
}
|
|
73579
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, cr.left, "f");
|
|
73580
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, cr.top, "f");
|
|
73581
|
+
if (this.isFullScr) {
|
|
73582
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f") + (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
|
|
73583
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f") + (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
|
|
73584
|
+
}
|
|
73585
|
+
return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73586
|
+
}
|
|
73697
73587
|
attach_debug(main) {
|
|
73698
73588
|
this.attach_debug = () => { };
|
|
73699
73589
|
const gs = document.createElement('style');
|
|
@@ -73738,17 +73628,17 @@ class SysBase {
|
|
|
73738
73628
|
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
73739
73629
|
}
|
|
73740
73630
|
toast(nm) {
|
|
73741
|
-
const p =
|
|
73631
|
+
const p = document.body;
|
|
73742
73632
|
p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
|
|
73743
73633
|
const img = document.createElement('img');
|
|
73744
73634
|
const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
|
|
73745
73635
|
img.src = `data:image/svg+xml;base64,${td.dat}`;
|
|
73746
|
-
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 *
|
|
73636
|
+
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f");
|
|
73747
73637
|
img.width = img.height = size;
|
|
73748
73638
|
img.style.cssText =
|
|
73749
73639
|
`position: absolute;
|
|
73750
|
-
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 *
|
|
73751
|
-
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 *
|
|
73640
|
+
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dx ?? 0)}px;
|
|
73641
|
+
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dy ?? 0)}px;`;
|
|
73752
73642
|
img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
|
|
73753
73643
|
if (!td.ease)
|
|
73754
73644
|
img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
|
|
@@ -73757,6 +73647,7 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
73757
73647
|
setFire(fire) { this.fire = fire; }
|
|
73758
73648
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
73759
73649
|
titleSub(_txt) { }
|
|
73650
|
+
tglFlscr_sub() { }
|
|
73760
73651
|
setTitleInfo(txt) {
|
|
73761
73652
|
__classPrivateFieldSet(this, _SysBase_info_title, txt, "f");
|
|
73762
73653
|
this.titleSub(__classPrivateFieldGet(this, _SysBase_main_title, "f") + __classPrivateFieldGet(this, _SysBase_info_title, "f"));
|
|
@@ -73773,26 +73664,9 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
73773
73664
|
;
|
|
73774
73665
|
async appendFile(_path, _data, _callback) { }
|
|
73775
73666
|
async ensureFileSync(_path) { }
|
|
73776
|
-
resizeFrames() {
|
|
73777
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73778
|
-
const l = this.ofsLeft4frm + cr.left;
|
|
73779
|
-
const t = this.ofsTop4frm + cr.top;
|
|
73780
|
-
const c = document.getElementsByTagName('iframe');
|
|
73781
|
-
const len = c.length;
|
|
73782
|
-
for (let i = 0; i < len; ++i) {
|
|
73783
|
-
const f = c[i];
|
|
73784
|
-
const tvn = 'tmp:const.sn.frm.' + f.id;
|
|
73785
|
-
f.style.left = `${l + Number(this.val.getVal(tvn + '.x')) * this.reso4frame}px`;
|
|
73786
|
-
f.style.top = `${t + Number(this.val.getVal(tvn + '.y')) * this.reso4frame}px`;
|
|
73787
|
-
f.width = String(Number(this.val.getVal(tvn + '.width'))
|
|
73788
|
-
* this.reso4frame);
|
|
73789
|
-
f.height = String(Number(this.val.getVal(tvn + '.height'))
|
|
73790
|
-
* this.reso4frame);
|
|
73791
|
-
}
|
|
73792
|
-
}
|
|
73793
73667
|
}
|
|
73794
73668
|
exports.SysBase = SysBase;
|
|
73795
|
-
_a = SysBase, _SysBase_sk = new WeakMap(), _SysBase_hHook = new WeakMap(), _SysBase_aFncHook = new WeakMap(), _SysBase_main_title = new WeakMap(), _SysBase_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
|
|
73669
|
+
_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();
|
|
73796
73670
|
SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
|
|
73797
73671
|
_SysBase_hToastDat = { value: {
|
|
73798
73672
|
'接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
|
|
@@ -73878,7 +73752,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73878
73752
|
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");
|
|
73879
73753
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73880
73754
|
};
|
|
73881
|
-
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
73755
|
+
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_sys, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
73882
73756
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73883
73757
|
exports.TxtLayer = void 0;
|
|
73884
73758
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -73899,7 +73773,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
73899
73773
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
73900
73774
|
_TxtLayer_b_do.set(this, undefined);
|
|
73901
73775
|
_TxtLayer_b_pic.set(this, '');
|
|
73902
|
-
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
73776
|
+
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus(), __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_sys)));
|
|
73903
73777
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
73904
73778
|
_TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
|
|
73905
73779
|
_TxtLayer_$ch_in_style.set(this, '');
|
|
@@ -74193,12 +74067,12 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
74193
74067
|
__classPrivateFieldGet(this, _TxtLayer_rbSpl, "f").init(__classPrivateFieldGet(this, _TxtLayer_putCh, "f"));
|
|
74194
74068
|
this.spLay.addChild(__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f"));
|
|
74195
74069
|
__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").name = 'cntBtn';
|
|
74196
|
-
const padding = 16
|
|
74070
|
+
const padding = 16;
|
|
74197
74071
|
this.lay({ style: `width: ${CmnLib_1.CmnLib.stageW}px; height: ${CmnLib_1.CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${padding}px;`, in_style: 'default', out_style: 'default', back_clear: 'true' });
|
|
74198
74072
|
}
|
|
74199
|
-
static init(cfg, hTag, val, recText, isPageFore) {
|
|
74073
|
+
static init(cfg, hTag, val, recText, isPageFore, appPixi) {
|
|
74200
74074
|
__classPrivateFieldSet(TxtLayer, _a, cfg, "f", _TxtLayer_cfg);
|
|
74201
|
-
TxtStage_1.TxtStage.init(cfg);
|
|
74075
|
+
TxtStage_1.TxtStage.init(cfg, appPixi);
|
|
74202
74076
|
__classPrivateFieldSet(TxtLayer, _a, val, "f", _TxtLayer_val);
|
|
74203
74077
|
__classPrivateFieldSet(TxtLayer, _a, recText, "f", _TxtLayer_recText);
|
|
74204
74078
|
__classPrivateFieldSet(TxtLayer, _a, isPageFore, "f", _TxtLayer_isPageFore);
|
|
@@ -74258,9 +74132,10 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
74258
74132
|
ease: 'ease-out',
|
|
74259
74133
|
});
|
|
74260
74134
|
}
|
|
74261
|
-
static setEvtMng(main, evtMng) {
|
|
74135
|
+
static setEvtMng(main, evtMng, sys) {
|
|
74262
74136
|
__classPrivateFieldSet(TxtLayer, _a, main, "f", _TxtLayer_main);
|
|
74263
74137
|
__classPrivateFieldSet(TxtLayer, _a, evtMng, "f", _TxtLayer_evtMng);
|
|
74138
|
+
__classPrivateFieldSet(TxtLayer, _a, sys, "f", _TxtLayer_sys);
|
|
74264
74139
|
TxtStage_1.TxtStage.setEvtMng(evtMng);
|
|
74265
74140
|
}
|
|
74266
74141
|
destroy() {
|
|
@@ -74665,6 +74540,7 @@ _TxtLayer_recText = { value: void 0 };
|
|
|
74665
74540
|
_TxtLayer_isPageFore = { value: void 0 };
|
|
74666
74541
|
_TxtLayer_main = { value: void 0 };
|
|
74667
74542
|
_TxtLayer_evtMng = { value: void 0 };
|
|
74543
|
+
_TxtLayer_sys = { value: void 0 };
|
|
74668
74544
|
_TxtLayer_doAutoWc = { value: false };
|
|
74669
74545
|
_TxtLayer_hAutoWc = { value: {} };
|
|
74670
74546
|
TxtLayer.rec = (tx) => tx;
|
|
@@ -74691,7 +74567,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
74691
74567
|
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");
|
|
74692
74568
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
74693
74569
|
};
|
|
74694
|
-
var _TxtStage_instances, _a, _TxtStage_cfg,
|
|
74570
|
+
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_appPixi, _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;
|
|
74695
74571
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74696
74572
|
exports.TxtStage = void 0;
|
|
74697
74573
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -74704,10 +74580,11 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
|
|
|
74704
74580
|
;
|
|
74705
74581
|
;
|
|
74706
74582
|
class TxtStage extends pixi_js_1.Container {
|
|
74707
|
-
constructor(spLay, canFocus) {
|
|
74583
|
+
constructor(spLay, canFocus, sys) {
|
|
74708
74584
|
super();
|
|
74709
74585
|
this.spLay = spLay;
|
|
74710
74586
|
this.canFocus = canFocus;
|
|
74587
|
+
this.sys = sys;
|
|
74711
74588
|
_TxtStage_instances.add(this);
|
|
74712
74589
|
_TxtStage_htmTxt.set(this, document.createElement('span'));
|
|
74713
74590
|
_TxtStage_cntTxt.set(this, new pixi_js_1.Container);
|
|
@@ -74744,15 +74621,15 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74744
74621
|
_TxtStage_sss.set(this, undefined);
|
|
74745
74622
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
74746
74623
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
74747
|
-
__classPrivateFieldGet(TxtStage, _a, "f",
|
|
74624
|
+
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_appPixi).view.parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
74748
74625
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
|
|
74749
74626
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
|
|
74750
74627
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
|
|
74751
74628
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").adopt(__classPrivateFieldGet(this, _TxtStage_idcCh, "f"));
|
|
74752
74629
|
}
|
|
74753
|
-
static init(cfg) {
|
|
74630
|
+
static init(cfg, appPixi) {
|
|
74754
74631
|
__classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
|
|
74755
|
-
__classPrivateFieldSet(TxtStage, _a,
|
|
74632
|
+
__classPrivateFieldSet(TxtStage, _a, appPixi, "f", _TxtStage_appPixi);
|
|
74756
74633
|
__classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
|
|
74757
74634
|
__classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
|
|
74758
74635
|
__classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
|
|
@@ -74829,9 +74706,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74829
74706
|
}
|
|
74830
74707
|
cvsResize() {
|
|
74831
74708
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
74832
|
-
s.left =
|
|
74833
|
-
s.top =
|
|
74834
|
-
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x *
|
|
74709
|
+
s.left = `${this.sys.ofsLeft4elm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
|
|
74710
|
+
s.top = `${this.sys.ofsTop4elm + this.spLay.position.y * this.sys.cvsScale}px`;
|
|
74711
|
+
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
|
|
74835
74712
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
|
|
74836
74713
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|
|
74837
74714
|
}
|
|
@@ -74872,21 +74749,21 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74872
74749
|
do {
|
|
74873
74750
|
const e = __classPrivateFieldSet(this, _TxtStage_aRect, __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_getChRects).call(this, __classPrivateFieldGet(this, _TxtStage_htmTxt, "f")), "f");
|
|
74874
74751
|
len = e.length;
|
|
74875
|
-
if (
|
|
74876
|
-
const ox =
|
|
74752
|
+
if (this.sys.cvsScale !== 1) {
|
|
74753
|
+
const ox = this.sys.ofsPadLeft_Dom2PIXI
|
|
74877
74754
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.left)
|
|
74878
|
-
* (1 -
|
|
74879
|
-
const oy =
|
|
74755
|
+
* (1 - this.sys.cvsScale);
|
|
74756
|
+
const oy = this.sys.ofsPadTop_Dom2PIXI
|
|
74880
74757
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.top)
|
|
74881
|
-
* (1 -
|
|
74758
|
+
* (1 - this.sys.cvsScale);
|
|
74882
74759
|
for (let i = 0; i < len; ++i) {
|
|
74883
74760
|
const r = e[i].rect;
|
|
74884
74761
|
r.x -= ox;
|
|
74885
74762
|
r.y -= oy;
|
|
74886
|
-
r.x /=
|
|
74887
|
-
r.y /=
|
|
74888
|
-
r.width /=
|
|
74889
|
-
r.height /=
|
|
74763
|
+
r.x /= this.sys.cvsScale;
|
|
74764
|
+
r.y /= this.sys.cvsScale;
|
|
74765
|
+
r.width /= this.sys.cvsScale;
|
|
74766
|
+
r.height /= this.sys.cvsScale;
|
|
74890
74767
|
}
|
|
74891
74768
|
}
|
|
74892
74769
|
if (len < 2)
|
|
@@ -75138,7 +75015,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75138
75015
|
}
|
|
75139
75016
|
reNew() {
|
|
75140
75017
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
|
|
75141
|
-
const to = new TxtStage(this.spLay, () => this.canFocus());
|
|
75018
|
+
const to = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
|
|
75142
75019
|
__classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
|
|
75143
75020
|
__classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
|
|
75144
75021
|
__classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
|
|
@@ -75591,7 +75468,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
75591
75468
|
__classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
|
|
75592
75469
|
};
|
|
75593
75470
|
_TxtStage_cfg = { value: void 0 };
|
|
75594
|
-
|
|
75471
|
+
_TxtStage_appPixi = { value: void 0 };
|
|
75595
75472
|
_TxtStage_evtMng = { value: void 0 };
|
|
75596
75473
|
_TxtStage_hWarning = { value: {
|
|
75597
75474
|
backgroundColor: 0,
|