@famibee/skynovel 1.27.4 → 1.27.8
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 +59 -0
- package/app.js +559 -709
- package/appMain.js +19 -24
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +0 -1
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +0 -1
- package/core/lib/sn/CmnLib.d.ts +4 -13
- 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/Grammar.d.ts.map +1 -1
- package/core/lib/sn/GrpLayer.d.ts.map +1 -1
- package/core/lib/sn/Layer.d.ts.map +1 -1
- package/core/lib/sn/LayerMng.d.ts.map +1 -1
- package/core/lib/sn/Main.d.ts.map +1 -1
- package/core/lib/sn/ScriptIterator.d.ts.map +1 -1
- package/core/lib/sn/SoundMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts +2 -2
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/SysBase.d.ts +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 +9 -9
- package/web.js +567 -709
package/web.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
|
*/
|
|
@@ -67685,63 +67582,10 @@ function getExt(p) { return (p.match(REG_EXT) ?? [''])[1]; }
|
|
|
67685
67582
|
exports.getExt = getExt;
|
|
67686
67583
|
const platform = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js");
|
|
67687
67584
|
class CmnLib {
|
|
67688
|
-
static cvsResize(cvs) {
|
|
67689
|
-
const bk_cw = CmnLib.cvsWidth;
|
|
67690
|
-
const bk_ch = CmnLib.cvsHeight;
|
|
67691
|
-
let w = globalThis.innerWidth;
|
|
67692
|
-
let h = globalThis.innerHeight;
|
|
67693
|
-
const angle = screen.orientation?.angle ?? 0;
|
|
67694
|
-
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
67695
|
-
if (CmnLib.isMobile &&
|
|
67696
|
-
((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
67697
|
-
[w, h] = [h, w];
|
|
67698
|
-
if (argChk_Boolean(CmnLib.hDip, 'expanding', true) ||
|
|
67699
|
-
CmnLib.stageW > w ||
|
|
67700
|
-
CmnLib.stageH > h) {
|
|
67701
|
-
if (CmnLib.stageW / CmnLib.stageH <= w / h) {
|
|
67702
|
-
CmnLib.cvsHeight = h;
|
|
67703
|
-
CmnLib.cvsWidth = CmnLib.stageW / CmnLib.stageH * h;
|
|
67704
|
-
}
|
|
67705
|
-
else {
|
|
67706
|
-
CmnLib.cvsWidth = w;
|
|
67707
|
-
CmnLib.cvsHeight = CmnLib.stageH / CmnLib.stageW * w;
|
|
67708
|
-
}
|
|
67709
|
-
CmnLib.cvsScale = CmnLib.cvsWidth / CmnLib.stageW;
|
|
67710
|
-
const cr = cvs.getBoundingClientRect();
|
|
67711
|
-
CmnLib.ofsPadLeft_Dom2PIXI = (CmnLib.isMobile
|
|
67712
|
-
? (globalThis.innerWidth - CmnLib.cvsWidth) / 2
|
|
67713
|
-
: cr.left)
|
|
67714
|
-
* (1 - CmnLib.cvsScale);
|
|
67715
|
-
CmnLib.ofsPadTop_Dom2PIXI = (CmnLib.isMobile
|
|
67716
|
-
? (globalThis.innerHeight - CmnLib.cvsHeight) / 2
|
|
67717
|
-
: cr.top)
|
|
67718
|
-
* (1 - CmnLib.cvsScale);
|
|
67719
|
-
}
|
|
67720
|
-
else {
|
|
67721
|
-
CmnLib.cvsWidth = CmnLib.stageW;
|
|
67722
|
-
CmnLib.cvsHeight = CmnLib.stageH;
|
|
67723
|
-
CmnLib.cvsScale = 1;
|
|
67724
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
67725
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
67726
|
-
}
|
|
67727
|
-
if (cvs.parentElement) {
|
|
67728
|
-
const ps = cvs.parentElement.style;
|
|
67729
|
-
ps.position = 'relative';
|
|
67730
|
-
const s = cvs.style;
|
|
67731
|
-
ps.width = s.width = `${CmnLib.cvsWidth}px`;
|
|
67732
|
-
ps.height = s.height = `${CmnLib.cvsHeight}px`;
|
|
67733
|
-
}
|
|
67734
|
-
return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
|
|
67735
|
-
}
|
|
67736
67585
|
}
|
|
67737
67586
|
exports.CmnLib = CmnLib;
|
|
67738
67587
|
CmnLib.stageW = 0;
|
|
67739
67588
|
CmnLib.stageH = 0;
|
|
67740
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
67741
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
67742
|
-
CmnLib.cvsWidth = 0;
|
|
67743
|
-
CmnLib.cvsHeight = 0;
|
|
67744
|
-
CmnLib.cvsScale = 1;
|
|
67745
67589
|
CmnLib.debugLog = false;
|
|
67746
67590
|
CmnLib.isSafari = platform.name === 'Safari';
|
|
67747
67591
|
CmnLib.isFirefox = platform.name === 'Firefox';
|
|
@@ -67750,10 +67594,7 @@ CmnLib.isMobile = !new RegExp('(Windows|OS X)').test(platform.os?.family ?? '');
|
|
|
67750
67594
|
CmnLib.hDip = {};
|
|
67751
67595
|
CmnLib.isDbg = false;
|
|
67752
67596
|
CmnLib.isPackaged = false;
|
|
67753
|
-
CmnLib.isRetina = false;
|
|
67754
67597
|
CmnLib.isDarkMode = false;
|
|
67755
|
-
CmnLib.retinaRate = 1;
|
|
67756
|
-
CmnLib.SN_ID = 'skynovel';
|
|
67757
67598
|
|
|
67758
67599
|
|
|
67759
67600
|
/***/ }),
|
|
@@ -68222,7 +68063,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
68222
68063
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
68223
68064
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
68224
68065
|
};
|
|
68225
|
-
var _DesignCast_instances, _a, _DesignCast_divDesignRoot,
|
|
68066
|
+
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;
|
|
68226
68067
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68227
68068
|
exports.PicBtnDesignCast = exports.TxtBtnDesignCast = exports.BtnDesignCast = exports.TxtLayPadDesignCast = exports.TxtLayDesignCast = exports.GrpLayDesignCast = exports.DesignCast = void 0;
|
|
68228
68069
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -68266,11 +68107,11 @@ class DesignCast {
|
|
|
68266
68107
|
this.rotatable = true;
|
|
68267
68108
|
}
|
|
68268
68109
|
static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
|
|
68269
|
-
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW *
|
|
68110
|
+
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>`);
|
|
68270
68111
|
__classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
|
|
68271
68112
|
DesignCast.divHint.classList.add('sn_design_hint');
|
|
68272
|
-
|
|
68273
|
-
|
|
68113
|
+
appPixi.view.parentElement.appendChild(DesignCast.divHint);
|
|
68114
|
+
DesignCast.sys = sys;
|
|
68274
68115
|
__classPrivateFieldSet(DesignCast, _a, scrItr, "f", _DesignCast_scrItr);
|
|
68275
68116
|
DesignCast.prpPrs = prpPrs;
|
|
68276
68117
|
__classPrivateFieldSet(DesignCast, _a, alzTagArg, "f", _DesignCast_alzTagArg);
|
|
@@ -68313,8 +68154,8 @@ class DesignCast {
|
|
|
68313
68154
|
}
|
|
68314
68155
|
static cvsResizeDesign() {
|
|
68315
68156
|
const s = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_divDesignRoot).style;
|
|
68316
|
-
s.width = `${CmnLib_1.CmnLib.stageW *
|
|
68317
|
-
s.height = `${CmnLib_1.CmnLib.stageH *
|
|
68157
|
+
s.width = `${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px`;
|
|
68158
|
+
s.height = `${CmnLib_1.CmnLib.stageH * DesignCast.sys.cvsScale}px`;
|
|
68318
68159
|
}
|
|
68319
68160
|
destroy() {
|
|
68320
68161
|
this.div = undefined;
|
|
@@ -68394,8 +68235,8 @@ class DesignCast {
|
|
|
68394
68235
|
const procStart = () => {
|
|
68395
68236
|
tmp.aPos = [NaN, NaN];
|
|
68396
68237
|
tmp.roDeg = this.rotation;
|
|
68397
|
-
const dpx = this.pivot.x *
|
|
68398
|
-
const dpy = this.pivot.y *
|
|
68238
|
+
const dpx = this.pivot.x * DesignCast.sys.cvsScale;
|
|
68239
|
+
const dpy = this.pivot.y * DesignCast.sys.cvsScale;
|
|
68399
68240
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
68400
68241
|
tmp.origin = [dpx, dpy];
|
|
68401
68242
|
Object.assign(this.mov, {
|
|
@@ -68404,7 +68245,7 @@ class DesignCast {
|
|
|
68404
68245
|
});
|
|
68405
68246
|
};
|
|
68406
68247
|
const procEnd = (o) => {
|
|
68407
|
-
|
|
68248
|
+
DesignCast.sys.send2Dbg('_changeCast', {
|
|
68408
68249
|
...o, ':id_tag': this.id_tag,
|
|
68409
68250
|
});
|
|
68410
68251
|
DesignCast.divHint.style.display = 'none';
|
|
@@ -68415,8 +68256,8 @@ class DesignCast {
|
|
|
68415
68256
|
DesignCast.divHint.style.display = 'none';
|
|
68416
68257
|
return;
|
|
68417
68258
|
}
|
|
68418
|
-
const ix = (0, CmnLib_1.int)(this.rect.x += dx /
|
|
68419
|
-
const iy = (0, CmnLib_1.int)(this.rect.y += dy /
|
|
68259
|
+
const ix = (0, CmnLib_1.int)(this.rect.x += dx / DesignCast.sys.cvsScale + this.pivot.x);
|
|
68260
|
+
const iy = (0, CmnLib_1.int)(this.rect.y += dy / DesignCast.sys.cvsScale + this.pivot.y);
|
|
68420
68261
|
this.setPos(ix, iy);
|
|
68421
68262
|
const iw = (0, CmnLib_1.uint)(this.rect.width), ih = (0, CmnLib_1.uint)(this.rect.height);
|
|
68422
68263
|
this.setSize(iw, ih);
|
|
@@ -68460,8 +68301,8 @@ class DesignCast {
|
|
|
68460
68301
|
d.style.width = `${e.width}px`;
|
|
68461
68302
|
d.style.height = `${e.height}px`;
|
|
68462
68303
|
tmp.aPos = e.drag.beforeTranslate;
|
|
68463
|
-
this.rect.width = e.width /
|
|
68464
|
-
this.rect.height = e.height /
|
|
68304
|
+
this.rect.width = e.width / DesignCast.sys.cvsScale;
|
|
68305
|
+
this.rect.height = e.height / DesignCast.sys.cvsScale;
|
|
68465
68306
|
this.procResizeHint(e, e.drag.left, e.drag.top);
|
|
68466
68307
|
})
|
|
68467
68308
|
.on('resizeEnd', resizeEnd)
|
|
@@ -68483,8 +68324,8 @@ class DesignCast {
|
|
|
68483
68324
|
.on('dragOriginEnd', () => {
|
|
68484
68325
|
const [dpx, dpy] = tmp.origin;
|
|
68485
68326
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
68486
|
-
const px = this.pivot.x = dpx /
|
|
68487
|
-
const py = this.pivot.y = dpy /
|
|
68327
|
+
const px = this.pivot.x = dpx / DesignCast.sys.cvsScale;
|
|
68328
|
+
const py = this.pivot.y = dpy / DesignCast.sys.cvsScale;
|
|
68488
68329
|
this.setOther({});
|
|
68489
68330
|
const ix = (0, CmnLib_1.int)(this.rect.x + px);
|
|
68490
68331
|
const iy = (0, CmnLib_1.int)(this.rect.y + py);
|
|
@@ -68532,18 +68373,18 @@ class DesignCast {
|
|
|
68532
68373
|
o.url = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_scrItr).cnvPath4Dbg(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_cfg).searchPath(f.name, Config_1.Config.EXT_SPRITE));
|
|
68533
68374
|
}
|
|
68534
68375
|
catch { }
|
|
68535
|
-
|
|
68376
|
+
DesignCast.sys.send2Dbg('_dropFile', o);
|
|
68536
68377
|
})
|
|
68537
68378
|
.catch(e => console.error(`drop2dc %o`, e));
|
|
68538
68379
|
});
|
|
68539
68380
|
d.addEventListener('dblclick', e => {
|
|
68540
68381
|
e.preventDefault();
|
|
68541
|
-
|
|
68382
|
+
DesignCast.sys.send2Dbg('_focusScript', this.hArg);
|
|
68542
68383
|
});
|
|
68543
68384
|
}
|
|
68544
68385
|
procDragHint(e, left, top) {
|
|
68545
68386
|
const [dx, dy] = e.beforeTranslate;
|
|
68546
|
-
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx /
|
|
68387
|
+
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);
|
|
68547
68388
|
}
|
|
68548
68389
|
procResizeHint(e, left, top) {
|
|
68549
68390
|
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);
|
|
@@ -68609,16 +68450,15 @@ _a = DesignCast, _DesignCast_instances = new WeakSet(), _DesignCast_resizeDiv =
|
|
|
68609
68450
|
this.fncLay();
|
|
68610
68451
|
if (this.div)
|
|
68611
68452
|
Object.assign(this.div.style, {
|
|
68612
|
-
left: `${this.lx + this.rect.x *
|
|
68613
|
-
top: `${this.ly + this.rect.y *
|
|
68614
|
-
width: `${this.rect.width *
|
|
68615
|
-
height: `${this.rect.height *
|
|
68616
|
-
transformOrigin: `${this.pivot.x *
|
|
68453
|
+
left: `${this.lx + this.rect.x * DesignCast.sys.cvsScale}px`,
|
|
68454
|
+
top: `${this.ly + this.rect.y * DesignCast.sys.cvsScale}px`,
|
|
68455
|
+
width: `${this.rect.width * DesignCast.sys.cvsScale}px`,
|
|
68456
|
+
height: `${this.rect.height * DesignCast.sys.cvsScale}px`,
|
|
68457
|
+
transformOrigin: `${this.pivot.x * DesignCast.sys.cvsScale}px ${this.pivot.y * DesignCast.sys.cvsScale}px`,
|
|
68617
68458
|
transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`,
|
|
68618
68459
|
});
|
|
68619
68460
|
};
|
|
68620
68461
|
_DesignCast_divDesignRoot = { value: void 0 };
|
|
68621
|
-
_DesignCast_sys = { value: void 0 };
|
|
68622
68462
|
_DesignCast_scrItr = { value: void 0 };
|
|
68623
68463
|
_DesignCast_alzTagArg = { value: void 0 };
|
|
68624
68464
|
_DesignCast_cfg = { value: void 0 };
|
|
@@ -68752,8 +68592,8 @@ _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint =
|
|
|
68752
68592
|
const x = this.rect.x, y = this.rect.y;
|
|
68753
68593
|
const w = this.rect.width, h = this.rect.height;
|
|
68754
68594
|
const it = this.ts.infTL;
|
|
68755
|
-
const pl = (0, CmnLib_1.int)(x + dx /
|
|
68756
|
-
const pt = (0, CmnLib_1.int)(y + dy /
|
|
68595
|
+
const pl = (0, CmnLib_1.int)(x + dx / DesignCast.sys.cvsScale);
|
|
68596
|
+
const pt = (0, CmnLib_1.int)(y + dy / DesignCast.sys.cvsScale);
|
|
68757
68597
|
const pr = (0, CmnLib_1.int)(it.$width - pl - w);
|
|
68758
68598
|
const pb = (0, CmnLib_1.int)(it.$height - pt - h);
|
|
68759
68599
|
const sp = (re) => ' '.repeat(re);
|
|
@@ -68780,8 +68620,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
68780
68620
|
this.fncLay = (!this.parent && !this.child && layer)
|
|
68781
68621
|
? () => {
|
|
68782
68622
|
const f = DesignCast.hPages[layer].fore;
|
|
68783
|
-
this.lx = f.x *
|
|
68784
|
-
this.ly = f.y *
|
|
68623
|
+
this.lx = f.x * DesignCast.sys.cvsScale;
|
|
68624
|
+
this.ly = f.y * DesignCast.sys.cvsScale;
|
|
68785
68625
|
}
|
|
68786
68626
|
: () => { };
|
|
68787
68627
|
}
|
|
@@ -68796,8 +68636,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
68796
68636
|
onDragStart() {
|
|
68797
68637
|
const aBtn = this.btn.parent.children.filter(b => b !== this.btn);
|
|
68798
68638
|
Object.assign(this.mov, {
|
|
68799
|
-
verticalGuidelines: aBtn.map(b => this.lx + b.x *
|
|
68800
|
-
horizontalGuidelines: aBtn.map(b => this.ly + b.y *
|
|
68639
|
+
verticalGuidelines: aBtn.map(b => this.lx + b.x * DesignCast.sys.cvsScale),
|
|
68640
|
+
horizontalGuidelines: aBtn.map(b => this.ly + b.y * DesignCast.sys.cvsScale),
|
|
68801
68641
|
});
|
|
68802
68642
|
}
|
|
68803
68643
|
}
|
|
@@ -69027,7 +68867,7 @@ class EventMng {
|
|
|
69027
68867
|
hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
|
|
69028
68868
|
sndMng.setEvtMng(this);
|
|
69029
68869
|
scrItr.setOtherObj(this, layMng);
|
|
69030
|
-
TxtLayer_1.TxtLayer.setEvtMng(main, this);
|
|
68870
|
+
TxtLayer_1.TxtLayer.setEvtMng(main, this, sys);
|
|
69031
68871
|
layMng.setEvtMng(this);
|
|
69032
68872
|
sys.setFire((KEY, e) => this.fire(KEY, e));
|
|
69033
68873
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
@@ -69063,9 +68903,8 @@ class EventMng {
|
|
|
69063
68903
|
catch { }
|
|
69064
68904
|
const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
|
|
69065
68905
|
if (ctx) {
|
|
69066
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
69067
68906
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
|
|
69068
|
-
|
|
68907
|
+
appPixi.view.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
69069
68908
|
const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
|
|
69070
68909
|
s.position = 'absolute';
|
|
69071
68910
|
s.left = s.top = '0';
|
|
@@ -69450,11 +69289,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69450
69289
|
const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
|
|
69451
69290
|
const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
|
|
69452
69291
|
const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
|
|
69453
|
-
|
|
69454
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.
|
|
69455
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
|
|
69292
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4elm + rctBtn.x * this.sys.cvsScale}px`;
|
|
69293
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4elm + rctBtn.y * this.sys.cvsScale}px`;
|
|
69456
69294
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
|
|
69457
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x *
|
|
69295
|
+
__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)`;
|
|
69458
69296
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
|
|
69459
69297
|
if (masume)
|
|
69460
69298
|
__classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
|
|
@@ -69623,7 +69461,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69623
69461
|
}, "f");
|
|
69624
69462
|
return false;
|
|
69625
69463
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
69626
|
-
const add = hArg
|
|
69464
|
+
const { add, del, to } = hArg;
|
|
69627
69465
|
if (add?.slice(0, 4) === 'dom=') {
|
|
69628
69466
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
|
|
69629
69467
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -69636,7 +69474,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69636
69474
|
}, () => { }));
|
|
69637
69475
|
return false;
|
|
69638
69476
|
}
|
|
69639
|
-
const del = hArg.del;
|
|
69640
69477
|
if (del?.slice(0, 4) === 'dom=') {
|
|
69641
69478
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
|
|
69642
69479
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -69644,7 +69481,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69644
69481
|
g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
|
|
69645
69482
|
return false;
|
|
69646
69483
|
}
|
|
69647
|
-
const to = hArg.to;
|
|
69648
69484
|
if (!to)
|
|
69649
69485
|
throw '[set_focus] add か to は必須です';
|
|
69650
69486
|
switch (to) {
|
|
@@ -69955,40 +69791,34 @@ class FrameMng {
|
|
|
69955
69791
|
}
|
|
69956
69792
|
getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
|
|
69957
69793
|
cvsResize() {
|
|
69958
|
-
const
|
|
69959
|
-
|
|
69960
|
-
const
|
|
69961
|
-
const x = Number(this.val.getVal(
|
|
69962
|
-
const y = Number(this.val.getVal(
|
|
69963
|
-
const w = Number(this.val.getVal(
|
|
69964
|
-
const h = Number(this.val.getVal(
|
|
69965
|
-
f.style.left = this.sys.
|
|
69966
|
-
f.style.top = this.sys.
|
|
69967
|
-
f.width = String(w *
|
|
69968
|
-
f.height = String(h *
|
|
69794
|
+
for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
|
|
69795
|
+
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
|
|
69796
|
+
const vn = 'const.sn.frm.' + id;
|
|
69797
|
+
const x = Number(this.val.getVal(vn + '.x'));
|
|
69798
|
+
const y = Number(this.val.getVal(vn + '.y'));
|
|
69799
|
+
const w = Number(this.val.getVal(vn + '.width'));
|
|
69800
|
+
const h = Number(this.val.getVal(vn + '.height'));
|
|
69801
|
+
f.style.left = `${this.sys.ofsLeft4elm + x * this.sys.cvsScale}px`;
|
|
69802
|
+
f.style.top = `${this.sys.ofsTop4elm + y * this.sys.cvsScale}px`;
|
|
69803
|
+
f.width = String(w * this.sys.cvsScale);
|
|
69804
|
+
f.height = String(h * this.sys.cvsScale);
|
|
69969
69805
|
}
|
|
69970
69806
|
}
|
|
69971
69807
|
}
|
|
69972
69808
|
exports.FrameMng = FrameMng;
|
|
69973
69809
|
_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) {
|
|
69974
|
-
const id = hArg
|
|
69810
|
+
const { id, src, alpha: a = 1, scale_x: sx = 1, scale_y: sy = 1, rotate: r = 0, } = hArg;
|
|
69975
69811
|
if (!id)
|
|
69976
69812
|
throw 'idは必須です';
|
|
69977
|
-
const src = hArg.src;
|
|
69978
69813
|
if (!src)
|
|
69979
69814
|
throw 'srcは必須です';
|
|
69980
|
-
const
|
|
69981
|
-
if (this.val.getVal(`tmp:${
|
|
69815
|
+
const vn = 'const.sn.frm.' + id;
|
|
69816
|
+
if (this.val.getVal(`tmp:${vn}`))
|
|
69982
69817
|
throw `frame【${id}】はすでにあります`;
|
|
69983
|
-
const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
|
|
69984
|
-
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
69985
|
-
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
69986
|
-
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
69987
69818
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
69988
69819
|
const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
|
|
69989
69820
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
69990
|
-
|
|
69991
|
-
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>`);
|
|
69821
|
+
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>`);
|
|
69992
69822
|
const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
|
|
69993
69823
|
const ld = (new pixi_js_1.Loader())
|
|
69994
69824
|
.add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
@@ -70012,16 +69842,16 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70012
69842
|
? this.sys.cur + p2.slice(4)
|
|
70013
69843
|
: v.replace(p1, p1 + url.slice(0, url.lastIndexOf('/') + 1)));
|
|
70014
69844
|
ifrm.onload = () => {
|
|
70015
|
-
this.val.setVal_Nochk('tmp',
|
|
70016
|
-
this.val.setVal_Nochk('tmp',
|
|
70017
|
-
this.val.setVal_Nochk('tmp',
|
|
70018
|
-
this.val.setVal_Nochk('tmp',
|
|
70019
|
-
this.val.setVal_Nochk('tmp',
|
|
70020
|
-
this.val.setVal_Nochk('tmp',
|
|
70021
|
-
this.val.setVal_Nochk('tmp',
|
|
70022
|
-
this.val.setVal_Nochk('tmp',
|
|
70023
|
-
this.val.setVal_Nochk('tmp',
|
|
70024
|
-
this.val.setVal_Nochk('tmp',
|
|
69845
|
+
this.val.setVal_Nochk('tmp', vn, true);
|
|
69846
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
69847
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
69848
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
69849
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
69850
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
69851
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
69852
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
69853
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
69854
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
70025
69855
|
const win = ifrm.contentWindow;
|
|
70026
69856
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
70027
69857
|
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
@@ -70034,131 +69864,125 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70034
69864
|
const re = this.sys.resolution;
|
|
70035
69865
|
return new DOMRect((0, CmnLib_1.argChk_Num)(a, 'x', 0) * re, (0, CmnLib_1.argChk_Num)(a, 'y', 0) * re, (0, CmnLib_1.argChk_Num)(a, 'width', CmnLib_1.CmnLib.stageW) * re, (0, CmnLib_1.argChk_Num)(a, 'height', CmnLib_1.CmnLib.stageH) * re);
|
|
70036
69866
|
}, _FrameMng_let_frame = function _FrameMng_let_frame(hArg) {
|
|
70037
|
-
const id = hArg
|
|
69867
|
+
const { id, var_name } = hArg;
|
|
70038
69868
|
if (!id)
|
|
70039
69869
|
throw 'idは必須です';
|
|
70040
|
-
const
|
|
70041
|
-
if (!
|
|
69870
|
+
const f = document.getElementById(id);
|
|
69871
|
+
if (!f)
|
|
70042
69872
|
throw `id【${id}】はフレームではありません`;
|
|
70043
|
-
const
|
|
70044
|
-
if (!this.val.getVal(`tmp:${
|
|
69873
|
+
const vn = 'const.sn.frm.' + id;
|
|
69874
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
70045
69875
|
throw `frame【${id}】が読み込まれていません`;
|
|
70046
|
-
const var_name = hArg.var_name;
|
|
70047
69876
|
if (!var_name)
|
|
70048
69877
|
throw 'var_nameは必須です';
|
|
70049
|
-
const win =
|
|
69878
|
+
const win = f.contentWindow;
|
|
70050
69879
|
if (!win.hasOwnProperty(var_name))
|
|
70051
69880
|
throw `frame【${id}】に変数/関数【${var_name}】がありません。変数は var付きにして下さい`;
|
|
70052
69881
|
const v = win[var_name];
|
|
70053
|
-
this.val.setVal_Nochk('tmp',
|
|
69882
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, (0, CmnLib_1.argChk_Boolean)(hArg, 'function', false) ? v() : v);
|
|
70054
69883
|
return false;
|
|
70055
69884
|
}, _FrameMng_set_frame = function _FrameMng_set_frame(hArg) {
|
|
70056
|
-
const id = hArg
|
|
69885
|
+
const { id, var_name, text } = hArg;
|
|
70057
69886
|
if (!id)
|
|
70058
69887
|
throw 'idは必須です';
|
|
70059
|
-
const
|
|
70060
|
-
if (!
|
|
69888
|
+
const f = document.getElementById(id);
|
|
69889
|
+
if (!f)
|
|
70061
69890
|
throw `id【${id}】はフレームではありません`;
|
|
70062
|
-
const
|
|
70063
|
-
if (!this.val.getVal(`tmp:${
|
|
69891
|
+
const vn = 'const.sn.frm.' + id;
|
|
69892
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
70064
69893
|
throw `frame【${id}】が読み込まれていません`;
|
|
70065
|
-
const var_name = hArg.var_name;
|
|
70066
69894
|
if (!var_name)
|
|
70067
69895
|
throw 'var_nameは必須です';
|
|
70068
|
-
const text = hArg.text;
|
|
70069
69896
|
if (!text)
|
|
70070
69897
|
throw 'textは必須です';
|
|
70071
|
-
this.val.setVal_Nochk('tmp',
|
|
70072
|
-
const win =
|
|
69898
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, text);
|
|
69899
|
+
const win = f.contentWindow;
|
|
70073
69900
|
win[var_name] = text;
|
|
70074
69901
|
return false;
|
|
70075
69902
|
}, _FrameMng_frame = function _FrameMng_frame(hArg) {
|
|
70076
69903
|
var _a, _b;
|
|
70077
|
-
const id = hArg
|
|
69904
|
+
const { id } = hArg;
|
|
70078
69905
|
if (!id)
|
|
70079
69906
|
throw 'idは必須です';
|
|
70080
|
-
const
|
|
70081
|
-
if (!
|
|
69907
|
+
const f = document.getElementById(id);
|
|
69908
|
+
if (!f)
|
|
70082
69909
|
throw `id【${id}】はフレームではありません`;
|
|
70083
|
-
const
|
|
70084
|
-
if (!this.val.getVal(
|
|
69910
|
+
const vn = 'const.sn.frm.' + id;
|
|
69911
|
+
if (!this.val.getVal('tmp:' + vn))
|
|
70085
69912
|
throw `frame【${id}】が読み込まれていません`;
|
|
70086
|
-
|
|
70087
|
-
|
|
70088
|
-
|
|
70089
|
-
else if (hArg
|
|
70090
|
-
|
|
70091
|
-
}
|
|
69913
|
+
const s = f.style;
|
|
69914
|
+
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
|
|
69915
|
+
s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
|
|
69916
|
+
else if ('index' in hArg)
|
|
69917
|
+
s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
|
|
70092
69918
|
else if (hArg.dive)
|
|
70093
|
-
|
|
69919
|
+
s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
|
|
70094
69920
|
if ('alpha' in hArg) {
|
|
70095
|
-
const a = String(hArg.alpha);
|
|
70096
|
-
|
|
70097
|
-
this.val.setVal_Nochk('tmp', frmnm + '.alpha', a);
|
|
69921
|
+
const a = s.opacity = String(hArg.alpha);
|
|
69922
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
70098
69923
|
}
|
|
70099
69924
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
70100
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
70101
69925
|
if ('x' in hArg || 'y' in hArg) {
|
|
70102
|
-
|
|
70103
|
-
|
|
70104
|
-
this.val.setVal_Nochk('tmp',
|
|
70105
|
-
this.val.setVal_Nochk('tmp',
|
|
69926
|
+
s.left = `${this.sys.ofsLeft4elm + rct.x * this.sys.cvsScale}px`;
|
|
69927
|
+
s.top = `${this.sys.ofsTop4elm + rct.y * this.sys.cvsScale}px`;
|
|
69928
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
69929
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
70106
69930
|
}
|
|
70107
69931
|
if ('scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
70108
69932
|
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
70109
69933
|
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
70110
69934
|
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
70111
|
-
|
|
70112
|
-
this.val.setVal_Nochk('tmp',
|
|
70113
|
-
this.val.setVal_Nochk('tmp',
|
|
70114
|
-
this.val.setVal_Nochk('tmp',
|
|
69935
|
+
s.transform = `scale(${sx}, ${sy}) rotate(${r}deg)`;
|
|
69936
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
69937
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
69938
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
70115
69939
|
}
|
|
70116
69940
|
if ('width' in hArg) {
|
|
70117
|
-
|
|
70118
|
-
this.val.setVal_Nochk('tmp',
|
|
69941
|
+
f.width = String(rct.width * this.sys.cvsScale);
|
|
69942
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
70119
69943
|
}
|
|
70120
69944
|
if ('height' in hArg) {
|
|
70121
|
-
|
|
70122
|
-
this.val.setVal_Nochk('tmp',
|
|
69945
|
+
f.height = String(rct.height * this.sys.cvsScale);
|
|
69946
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
70123
69947
|
}
|
|
70124
69948
|
if ('visible' in hArg) {
|
|
70125
69949
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
70126
|
-
|
|
70127
|
-
this.val.setVal_Nochk('tmp',
|
|
69950
|
+
s.display = v ? 'inline' : 'none';
|
|
69951
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
70128
69952
|
}
|
|
70129
69953
|
if ('b_color' in hArg)
|
|
70130
|
-
|
|
69954
|
+
s.backgroundColor = hArg.b_color;
|
|
70131
69955
|
if ('disabled' in hArg) {
|
|
70132
69956
|
const d = __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id] = (0, CmnLib_1.argChk_Boolean)(hArg, 'disabled', true);
|
|
70133
|
-
const il =
|
|
69957
|
+
const il = f.contentDocument.body.querySelectorAll('input,select');
|
|
70134
69958
|
il.forEach(v => v.disabled = d);
|
|
70135
69959
|
}
|
|
70136
69960
|
return false;
|
|
70137
69961
|
}, _FrameMng_tsy_frame = function _FrameMng_tsy_frame(hArg) {
|
|
70138
|
-
const id = hArg
|
|
69962
|
+
const { id } = hArg;
|
|
70139
69963
|
if (!id)
|
|
70140
69964
|
throw 'idは必須です';
|
|
70141
|
-
const
|
|
70142
|
-
if (!
|
|
69965
|
+
const f = document.getElementById(id);
|
|
69966
|
+
if (!f)
|
|
70143
69967
|
throw `id【${id}】はフレームではありません`;
|
|
70144
|
-
const
|
|
70145
|
-
if (!this.val.getVal(`tmp:${
|
|
69968
|
+
const vn = `const.sn.frm.` + id;
|
|
69969
|
+
if (!this.val.getVal(`tmp:${vn}`, 0))
|
|
70146
69970
|
throw `frame【${id}】が読み込まれていません`;
|
|
70147
69971
|
const hNow = {};
|
|
70148
69972
|
if ('alpha' in hArg)
|
|
70149
|
-
hNow.a =
|
|
69973
|
+
hNow.a = f.style.opacity;
|
|
70150
69974
|
if ('x' in hArg || 'y' in hArg
|
|
70151
69975
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
70152
|
-
hNow.x = Number(this.val.getVal(`tmp:${
|
|
70153
|
-
hNow.y = Number(this.val.getVal(`tmp:${
|
|
70154
|
-
hNow.sx = Number(this.val.getVal(`tmp:${
|
|
70155
|
-
hNow.sy = Number(this.val.getVal(`tmp:${
|
|
70156
|
-
hNow.r = Number(this.val.getVal(`tmp:${
|
|
69976
|
+
hNow.x = Number(this.val.getVal(`tmp:${vn}.x`));
|
|
69977
|
+
hNow.y = Number(this.val.getVal(`tmp:${vn}.y`));
|
|
69978
|
+
hNow.sx = Number(this.val.getVal(`tmp:${vn}.scale_x`));
|
|
69979
|
+
hNow.sy = Number(this.val.getVal(`tmp:${vn}.scale_y`));
|
|
69980
|
+
hNow.r = Number(this.val.getVal(`tmp:${vn}.rotate`));
|
|
70157
69981
|
}
|
|
70158
69982
|
if ('width' in hArg)
|
|
70159
|
-
hNow.w = this.val.getVal(`tmp:${
|
|
69983
|
+
hNow.w = this.val.getVal(`tmp:${vn}.width`);
|
|
70160
69984
|
if ('height' in hArg)
|
|
70161
|
-
hNow.h = this.val.getVal(`tmp:${
|
|
69985
|
+
hNow.h = this.val.getVal(`tmp:${vn}.height`);
|
|
70162
69986
|
const hArg2 = (0, CmnLib_1.cnvTweenArg)(hArg, hNow);
|
|
70163
69987
|
const hTo = {};
|
|
70164
69988
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
@@ -70166,13 +69990,12 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70166
69990
|
if ('alpha' in hArg) {
|
|
70167
69991
|
hTo.a = (0, CmnLib_1.argChk_Num)(hArg2, 'alpha', 0);
|
|
70168
69992
|
fncA = () => {
|
|
70169
|
-
|
|
69993
|
+
f.style.opacity = hNow.a;
|
|
70170
69994
|
this.val.setVal_Nochk('tmp', 'alpha', hNow.a);
|
|
70171
69995
|
};
|
|
70172
69996
|
}
|
|
70173
69997
|
let fncXYSR = () => { };
|
|
70174
69998
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg2);
|
|
70175
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
70176
69999
|
if ('x' in hArg || 'y' in hArg
|
|
70177
70000
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
70178
70001
|
hTo.x = rct.x;
|
|
@@ -70181,30 +70004,30 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70181
70004
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
70182
70005
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
70183
70006
|
fncXYSR = () => {
|
|
70184
|
-
|
|
70185
|
-
|
|
70186
|
-
|
|
70187
|
-
this.val.setVal_Nochk('tmp',
|
|
70188
|
-
this.val.setVal_Nochk('tmp',
|
|
70189
|
-
this.val.setVal_Nochk('tmp',
|
|
70190
|
-
this.val.setVal_Nochk('tmp',
|
|
70191
|
-
this.val.setVal_Nochk('tmp',
|
|
70007
|
+
f.style.left = this.sys.ofsLeft4elm + hNow.x * this.sys.cvsScale + 'px';
|
|
70008
|
+
f.style.top = this.sys.ofsTop4elm + hNow.y * this.sys.cvsScale + 'px';
|
|
70009
|
+
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
70010
|
+
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
70011
|
+
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
70012
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', hNow.sx);
|
|
70013
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', hNow.sy);
|
|
70014
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', hNow.r);
|
|
70192
70015
|
};
|
|
70193
70016
|
}
|
|
70194
70017
|
let fncW = () => { };
|
|
70195
70018
|
if ('width' in hArg) {
|
|
70196
70019
|
hTo.w = rct.width;
|
|
70197
70020
|
fncW = () => {
|
|
70198
|
-
|
|
70199
|
-
this.val.setVal_Nochk('tmp',
|
|
70021
|
+
f.width = hNow.w * this.sys.cvsScale + 'px';
|
|
70022
|
+
this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
|
|
70200
70023
|
};
|
|
70201
70024
|
}
|
|
70202
70025
|
let fncH = () => { };
|
|
70203
70026
|
if ('height' in hArg) {
|
|
70204
70027
|
hTo.h = rct.height;
|
|
70205
70028
|
fncH = () => {
|
|
70206
|
-
|
|
70207
|
-
this.val.setVal_Nochk('tmp',
|
|
70029
|
+
f.height = hNow.h * this.sys.cvsScale + 'px';
|
|
70030
|
+
this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
|
|
70208
70031
|
};
|
|
70209
70032
|
}
|
|
70210
70033
|
this.appPixi.stage.interactive = false;
|
|
@@ -70361,10 +70184,9 @@ class Grammar {
|
|
|
70361
70184
|
this.REG_TOKEN_NOTXT = new RegExp(`[\\n\\t;\\[*&${ce ? `\\${ce}` : ''}]`);
|
|
70362
70185
|
}
|
|
70363
70186
|
bracket2macro(hArg, script, idxToken) {
|
|
70364
|
-
const name = hArg
|
|
70187
|
+
const { name, text } = hArg;
|
|
70365
70188
|
if (!name)
|
|
70366
70189
|
throw '[bracket2macro] nameは必須です';
|
|
70367
|
-
const text = hArg.text;
|
|
70368
70190
|
if (!text)
|
|
70369
70191
|
throw '[bracket2macro] textは必須です';
|
|
70370
70192
|
if (text.length !== 2)
|
|
@@ -70388,7 +70210,7 @@ class Grammar {
|
|
|
70388
70210
|
this.replaceScr_C2M_And_let_ml(script, idxToken);
|
|
70389
70211
|
}
|
|
70390
70212
|
char2macro(hArg, hTag, script, idxToken) {
|
|
70391
|
-
const char = hArg
|
|
70213
|
+
const { char, name } = hArg;
|
|
70392
70214
|
if (!char)
|
|
70393
70215
|
throw '[char2macro] charは必須です';
|
|
70394
70216
|
__classPrivateFieldSet(this, _Grammar_hC2M, __classPrivateFieldGet(this, _Grammar_hC2M, "f") ?? {}, "f");
|
|
@@ -70397,7 +70219,6 @@ class Grammar {
|
|
|
70397
70219
|
__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").lastIndex = 0;
|
|
70398
70220
|
if (__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").test(char))
|
|
70399
70221
|
throw '[char2macro] char【' + char + '】は一文字マクロに使用できない文字です';
|
|
70400
|
-
const name = hArg.name;
|
|
70401
70222
|
if (!name)
|
|
70402
70223
|
throw '[char2macro] nameは必須です';
|
|
70403
70224
|
if (!(name in hTag))
|
|
@@ -70499,8 +70320,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70499
70320
|
}
|
|
70500
70321
|
setSp(_sp) { }
|
|
70501
70322
|
laySub(hArg, resolve) {
|
|
70502
|
-
const fn = hArg
|
|
70503
|
-
const face = hArg.face ?? '';
|
|
70323
|
+
const { fn, face = '' } = hArg;
|
|
70504
70324
|
__classPrivateFieldGet(this, _GrpLayer_idc, "f").sethArg(hArg);
|
|
70505
70325
|
if (!fn) {
|
|
70506
70326
|
super.lay(hArg);
|
|
@@ -70611,7 +70431,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70611
70431
|
return needLoad;
|
|
70612
70432
|
}
|
|
70613
70433
|
static wv(hArg) {
|
|
70614
|
-
const fn = hArg
|
|
70434
|
+
const { fn } = hArg;
|
|
70615
70435
|
if (!fn)
|
|
70616
70436
|
throw 'fnは必須です';
|
|
70617
70437
|
const hve = GrpLayer.hFn2VElm[fn];
|
|
@@ -70710,16 +70530,16 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70710
70530
|
Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
|
|
70711
70531
|
}
|
|
70712
70532
|
static add_face(hArg) {
|
|
70713
|
-
const name = hArg
|
|
70533
|
+
const { name } = hArg;
|
|
70714
70534
|
if (!name)
|
|
70715
70535
|
throw 'nameは必須です';
|
|
70716
70536
|
if (name in __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace))
|
|
70717
70537
|
throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
|
|
70718
|
-
const fn =
|
|
70538
|
+
const { fn = name } = hArg;
|
|
70719
70539
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
70720
70540
|
fn,
|
|
70721
|
-
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0)
|
|
70722
|
-
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0)
|
|
70541
|
+
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0),
|
|
70542
|
+
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0),
|
|
70723
70543
|
blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
|
|
70724
70544
|
};
|
|
70725
70545
|
return false;
|
|
@@ -70926,10 +70746,10 @@ class Layer {
|
|
|
70926
70746
|
return false;
|
|
70927
70747
|
}
|
|
70928
70748
|
static setBlendmode(cnt, hArg) {
|
|
70929
|
-
const
|
|
70930
|
-
if (!
|
|
70749
|
+
const { blendmode } = hArg;
|
|
70750
|
+
if (!blendmode)
|
|
70931
70751
|
return;
|
|
70932
|
-
const bmn = Layer.getBlendmodeNum(
|
|
70752
|
+
const bmn = Layer.getBlendmodeNum(blendmode);
|
|
70933
70753
|
const sp = cnt;
|
|
70934
70754
|
if (sp)
|
|
70935
70755
|
sp.blendMode = bmn;
|
|
@@ -71044,7 +70864,7 @@ class Layer {
|
|
|
71044
70864
|
}
|
|
71045
70865
|
ret.x = (0, CmnLib_1.int)(((ret.scale.x < 0)
|
|
71046
70866
|
? x + (isButton ? b_width / 3 : b_width)
|
|
71047
|
-
: x)
|
|
70867
|
+
: x));
|
|
71048
70868
|
let y = ret.y;
|
|
71049
70869
|
if ('top' in hArg) {
|
|
71050
70870
|
y = (0, CmnLib_1.argChk_Num)(hArg, 'top', 0);
|
|
@@ -71069,8 +70889,7 @@ class Layer {
|
|
|
71069
70889
|
y *= CmnLib_1.CmnLib.stageH;
|
|
71070
70890
|
y = CmnLib_1.CmnLib.stageH - y - b_height;
|
|
71071
70891
|
}
|
|
71072
|
-
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y)
|
|
71073
|
-
* CmnLib_1.CmnLib.retinaRate);
|
|
70892
|
+
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y));
|
|
71074
70893
|
if (isGrp) {
|
|
71075
70894
|
if (!('left' in hArg)
|
|
71076
70895
|
&& !('center' in hArg)
|
|
@@ -71107,7 +70926,7 @@ class Layer {
|
|
|
71107
70926
|
c = b_width * 0.5;
|
|
71108
70927
|
}
|
|
71109
70928
|
else {
|
|
71110
|
-
c = (0, CmnLib_1.int)(pos)
|
|
70929
|
+
c = (0, CmnLib_1.int)(pos);
|
|
71111
70930
|
}
|
|
71112
70931
|
ret.x = (0, CmnLib_1.int)(c - b_width * 0.5);
|
|
71113
70932
|
ret.y = CmnLib_1.CmnLib.stageH - b_height;
|
|
@@ -71274,9 +71093,8 @@ void main(void) {
|
|
|
71274
71093
|
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
71275
71094
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
71276
71095
|
_LayerMng_aTxtLog.set(this, []);
|
|
71277
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
71278
71096
|
const fncResizeLay = () => {
|
|
71279
|
-
if (!
|
|
71097
|
+
if (!sys.cvsResize())
|
|
71280
71098
|
return;
|
|
71281
71099
|
this.cvsResizeDesign();
|
|
71282
71100
|
if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
|
|
@@ -71290,15 +71108,15 @@ void main(void) {
|
|
|
71290
71108
|
globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
|
|
71291
71109
|
}
|
|
71292
71110
|
else {
|
|
71293
|
-
let tid =
|
|
71111
|
+
let tid = undefined;
|
|
71294
71112
|
globalThis.addEventListener('resize', () => {
|
|
71295
71113
|
if (tid)
|
|
71296
71114
|
return;
|
|
71297
|
-
tid = setTimeout(() => { tid =
|
|
71115
|
+
tid = setTimeout(() => { tid = undefined; fncResizeLay(); }, 1000 / 60 * 10);
|
|
71298
71116
|
}, { passive: true });
|
|
71299
71117
|
}
|
|
71300
|
-
|
|
71301
|
-
TxtLayer_1.TxtLayer.init(cfg, hTag, val,
|
|
71118
|
+
sys.cvsResize();
|
|
71119
|
+
TxtLayer_1.TxtLayer.init(cfg, hTag, val, txt => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me, appPixi);
|
|
71302
71120
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
71303
71121
|
Button_1.Button.init(cfg);
|
|
71304
71122
|
__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");
|
|
@@ -71575,7 +71393,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71575
71393
|
});
|
|
71576
71394
|
return false;
|
|
71577
71395
|
}, _LayerMng_loadplugin = function _LayerMng_loadplugin(hArg) {
|
|
71578
|
-
const fn = hArg
|
|
71396
|
+
const { fn } = hArg;
|
|
71579
71397
|
if (!fn)
|
|
71580
71398
|
throw 'fnは必須です';
|
|
71581
71399
|
const join = (0, CmnLib_1.argChk_Boolean)(hArg, 'join', true);
|
|
@@ -71594,14 +71412,13 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71594
71412
|
}
|
|
71595
71413
|
return join;
|
|
71596
71414
|
}, _LayerMng_add_lay = function _LayerMng_add_lay(hArg) {
|
|
71597
|
-
const layer = hArg
|
|
71415
|
+
const { layer, class: cls } = hArg;
|
|
71598
71416
|
if (!layer)
|
|
71599
71417
|
throw 'layerは必須です';
|
|
71600
71418
|
if (layer.includes(','))
|
|
71601
71419
|
throw 'layer名に「,」は使えません';
|
|
71602
71420
|
if (layer in __classPrivateFieldGet(this, _LayerMng_hPages, "f"))
|
|
71603
71421
|
throw `layer【${layer}】はすでにあります`;
|
|
71604
|
-
const cls = hArg.class;
|
|
71605
71422
|
if (!cls)
|
|
71606
71423
|
throw 'clsは必須です';
|
|
71607
71424
|
const ret = { isWait: false };
|
|
@@ -71657,7 +71474,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71657
71474
|
}
|
|
71658
71475
|
}
|
|
71659
71476
|
else if (hArg.dive) {
|
|
71660
|
-
const dive = hArg
|
|
71477
|
+
const { dive } = hArg;
|
|
71661
71478
|
let idx_dive = 0;
|
|
71662
71479
|
if (layer === dive)
|
|
71663
71480
|
throw '[lay] 属性 layerとdiveが同じ【' + dive + '】です';
|
|
@@ -71969,8 +71786,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71969
71786
|
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm]?.tw?.resume();
|
|
71970
71787
|
return false;
|
|
71971
71788
|
}, _LayerMng_ch = function _LayerMng_ch(hArg) {
|
|
71972
|
-
const
|
|
71973
|
-
if (!
|
|
71789
|
+
const { text } = hArg;
|
|
71790
|
+
if (!text)
|
|
71974
71791
|
throw 'textは必須です';
|
|
71975
71792
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
71976
71793
|
delete hArg.text;
|
|
@@ -71982,7 +71799,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71982
71799
|
const doRecLog = this.val.doRecLog();
|
|
71983
71800
|
if (!record)
|
|
71984
71801
|
this.val.setVal_Nochk('save', 'sn.doRecLog', record);
|
|
71985
|
-
tl.tagCh(
|
|
71802
|
+
tl.tagCh(text.replaceAll('[r]', '\n'));
|
|
71986
71803
|
if (!record)
|
|
71987
71804
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
71988
71805
|
return false;
|
|
@@ -71995,7 +71812,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71995
71812
|
const tf = lay;
|
|
71996
71813
|
return tf;
|
|
71997
71814
|
}, _LayerMng_$current = function _LayerMng_$current(hArg) {
|
|
71998
|
-
const layer = hArg
|
|
71815
|
+
const { layer } = hArg;
|
|
71999
71816
|
if (!layer)
|
|
72000
71817
|
throw '[current] layerは必須です';
|
|
72001
71818
|
__classPrivateFieldSet(this, _LayerMng_pgTxtlay, __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer], "f");
|
|
@@ -72054,10 +71871,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
72054
71871
|
this.val.setVal_Nochk('save', 'const.sn.sLog', (hArg.text) ? `[{text:"${hArg.text}"}]` : '[]');
|
|
72055
71872
|
return false;
|
|
72056
71873
|
}, _LayerMng_ruby2 = function _LayerMng_ruby2(hArg) {
|
|
72057
|
-
const t = hArg
|
|
71874
|
+
const { t, r } = hArg;
|
|
72058
71875
|
if (!t)
|
|
72059
71876
|
throw '[ruby2] tは必須です';
|
|
72060
|
-
const r = hArg.r;
|
|
72061
71877
|
if (!r)
|
|
72062
71878
|
throw '[ruby2] rは必須です';
|
|
72063
71879
|
hArg.text = '|' + t + '《' + r + '》';
|
|
@@ -72126,7 +71942,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
72126
71942
|
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");
|
|
72127
71943
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
72128
71944
|
};
|
|
72129
|
-
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;
|
|
71945
|
+
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;
|
|
72130
71946
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
72131
71947
|
exports.Main = void 0;
|
|
72132
71948
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -72158,6 +71974,7 @@ class Main {
|
|
|
72158
71974
|
_Main_fncNext.set(this, () => { });
|
|
72159
71975
|
_Main_alzTagArg.set(this, new AnalyzeTagArg_1.AnalyzeTagArg);
|
|
72160
71976
|
_Main_inited.set(this, false);
|
|
71977
|
+
_Main_SN_ID.set(this, 'skynovel');
|
|
72161
71978
|
_Main_fncTicker.set(this, () => __classPrivateFieldGet(this, _Main_fncNext, "f").call(this));
|
|
72162
71979
|
_Main_fncresume.set(this, (fnc = __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze)) => {
|
|
72163
71980
|
if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
|
|
@@ -72234,14 +72051,14 @@ class Main {
|
|
|
72234
72051
|
__classPrivateFieldGet(this, _Main_dbgMng, "f").destroy();
|
|
72235
72052
|
__classPrivateFieldGet(this, _Main_appPixi, "f").ticker.remove(__classPrivateFieldGet(this, _Main_fncTicker, "f"));
|
|
72236
72053
|
if (__classPrivateFieldGet(this, _Main_clone_cvs, "f") && __classPrivateFieldGet(this, _Main_appPixi, "f")) {
|
|
72237
|
-
|
|
72054
|
+
document.body.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
72238
72055
|
}
|
|
72239
72056
|
pixi_js_1.utils.clearTextureCache();
|
|
72240
72057
|
__classPrivateFieldGet(this, _Main_appPixi, "f").destroy(true);
|
|
72241
72058
|
}
|
|
72242
72059
|
}
|
|
72243
72060
|
exports.Main = Main;
|
|
72244
|
-
_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() {
|
|
72061
|
+
_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() {
|
|
72245
72062
|
const cc = document.createElement('canvas')?.getContext('2d');
|
|
72246
72063
|
if (!cc)
|
|
72247
72064
|
throw 'argChk_Color err';
|
|
@@ -72254,16 +72071,16 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
72254
72071
|
resolution: globalThis.devicePixelRatio ?? 1,
|
|
72255
72072
|
autoResize: true,
|
|
72256
72073
|
};
|
|
72257
|
-
const cvs = document.getElementById(
|
|
72074
|
+
const cvs = document.getElementById(__classPrivateFieldGet(this, _Main_SN_ID, "f"));
|
|
72258
72075
|
if (cvs) {
|
|
72259
72076
|
__classPrivateFieldSet(this, _Main_clone_cvs, cvs.cloneNode(true), "f");
|
|
72260
|
-
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id =
|
|
72077
|
+
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
72261
72078
|
hApp.view = cvs;
|
|
72262
72079
|
}
|
|
72263
72080
|
__classPrivateFieldSet(this, _Main_appPixi, new pixi_js_1.Application(hApp), "f");
|
|
72264
72081
|
if (!cvs) {
|
|
72265
72082
|
document.body.appendChild(__classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
72266
|
-
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id =
|
|
72083
|
+
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
72267
72084
|
}
|
|
72268
72085
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
72269
72086
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
@@ -73408,7 +73225,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73408
73225
|
return a;
|
|
73409
73226
|
}, _ScriptIterator_let_ml = function _ScriptIterator_let_ml(hArg) {
|
|
73410
73227
|
var _b;
|
|
73411
|
-
const name = hArg
|
|
73228
|
+
const { name } = hArg;
|
|
73412
73229
|
if (!name)
|
|
73413
73230
|
throw 'nameは必須です';
|
|
73414
73231
|
let ml = '';
|
|
@@ -73466,7 +73283,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73466
73283
|
}
|
|
73467
73284
|
return ret;
|
|
73468
73285
|
}, _ScriptIterator_dump_script = function _ScriptIterator_dump_script(hArg) {
|
|
73469
|
-
const set_fnc = hArg
|
|
73286
|
+
const { set_fnc, break_fnc } = hArg;
|
|
73470
73287
|
if (!set_fnc)
|
|
73471
73288
|
throw 'set_fncは必須です';
|
|
73472
73289
|
__classPrivateFieldSet(this, _ScriptIterator_fncSet, globalThis[set_fnc], "f");
|
|
@@ -73486,7 +73303,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73486
73303
|
__classPrivateFieldGet(this, _ScriptIterator_fncBreak, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"), goto);
|
|
73487
73304
|
};
|
|
73488
73305
|
this.noticeBreak(true);
|
|
73489
|
-
const break_fnc = hArg.break_fnc;
|
|
73490
73306
|
if (!break_fnc)
|
|
73491
73307
|
return false;
|
|
73492
73308
|
__classPrivateFieldSet(this, _ScriptIterator_fncBreak, globalThis[break_fnc], "f");
|
|
@@ -73504,7 +73320,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73504
73320
|
return false;
|
|
73505
73321
|
}, _ScriptIterator_if = function _ScriptIterator_if(hArg) {
|
|
73506
73322
|
var _b, _c;
|
|
73507
|
-
const exp = hArg
|
|
73323
|
+
const { exp } = hArg;
|
|
73508
73324
|
if (!exp)
|
|
73509
73325
|
throw 'expは必須です';
|
|
73510
73326
|
if (exp.charAt(0) === '&')
|
|
@@ -73573,7 +73389,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73573
73389
|
}, _ScriptIterator_call = function _ScriptIterator_call(hArg) {
|
|
73574
73390
|
if (!(0, CmnLib_1.argChk_Boolean)(hArg, 'count', false))
|
|
73575
73391
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_eraseKidoku).call(this);
|
|
73576
|
-
const fn = hArg
|
|
73392
|
+
const { fn } = hArg;
|
|
73577
73393
|
if (fn)
|
|
73578
73394
|
__classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
|
|
73579
73395
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
|
|
@@ -73604,7 +73420,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73604
73420
|
__classPrivateFieldSet(this, _ScriptIterator_posAPageLog, -1, "f");
|
|
73605
73421
|
return false;
|
|
73606
73422
|
}
|
|
73607
|
-
const to = hArg
|
|
73423
|
+
const { to } = hArg;
|
|
73608
73424
|
if (!to)
|
|
73609
73425
|
throw 'clearかtoは必須です';
|
|
73610
73426
|
const oldPos = __classPrivateFieldGet(this, _ScriptIterator_posAPageLog, "f");
|
|
@@ -73880,7 +73696,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73880
73696
|
return false;
|
|
73881
73697
|
}, _ScriptIterator_macro = function _ScriptIterator_macro(hArg) {
|
|
73882
73698
|
var _b, _c;
|
|
73883
|
-
const name = hArg
|
|
73699
|
+
const { name } = hArg;
|
|
73884
73700
|
if (!name)
|
|
73885
73701
|
throw 'nameは必須です';
|
|
73886
73702
|
if (name in this.hTag)
|
|
@@ -74130,7 +73946,7 @@ class SoundMng {
|
|
|
74130
73946
|
}
|
|
74131
73947
|
exports.SoundMng = SoundMng;
|
|
74132
73948
|
_a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(), _SoundMng_evtMng = new WeakMap(), _SoundMng_initVol = new WeakMap(), _SoundMng_instances = new WeakSet(), _SoundMng_volume = function _SoundMng_volume(hArg) {
|
|
74133
|
-
const buf =
|
|
73949
|
+
const { buf = 'SE' } = hArg;
|
|
74134
73950
|
const bvn = 'const.sn.sound.' + buf + '.volume';
|
|
74135
73951
|
const arg_vol = __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_getVol).call(this, hArg, 1);
|
|
74136
73952
|
if (Number(this.val.getVal('sys:' + bvn)) === arg_vol)
|
|
@@ -74149,7 +73965,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74149
73965
|
return vol;
|
|
74150
73966
|
}, _SoundMng_fadeoutbgm = function _SoundMng_fadeoutbgm(hArg) { hArg.volume = 0; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadebgm).call(this, hArg); }, _SoundMng_fadeoutse = function _SoundMng_fadeoutse(hArg) { hArg.volume = 0; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadese).call(this, hArg); }, _SoundMng_fadebgm = function _SoundMng_fadebgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadese).call(this, hArg); }, _SoundMng_fadese = function _SoundMng_fadese(hArg) {
|
|
74151
73967
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
74152
|
-
const buf =
|
|
73968
|
+
const { buf = 'SE' } = hArg;
|
|
74153
73969
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74154
73970
|
if (!oSb?.playing() || !oSb.snd)
|
|
74155
73971
|
return false;
|
|
@@ -74200,9 +74016,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74200
74016
|
(0, CmnLib_1.argChk_Boolean)(hArg, 'loop', true);
|
|
74201
74017
|
return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playse).call(this, hArg);
|
|
74202
74018
|
}, _SoundMng_playse = function _SoundMng_playse(hArg) {
|
|
74203
|
-
const buf =
|
|
74019
|
+
const { buf = 'SE', fn } = hArg;
|
|
74204
74020
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
74205
|
-
const fn = hArg.fn;
|
|
74206
74021
|
if (!fn)
|
|
74207
74022
|
throw `[playse] fnは必須です buf:${buf}`;
|
|
74208
74023
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
@@ -74400,7 +74215,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74400
74215
|
sound_1.sound.stopAll();
|
|
74401
74216
|
return false;
|
|
74402
74217
|
}, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
|
|
74403
|
-
const buf =
|
|
74218
|
+
const { buf = 'SE' } = hArg;
|
|
74404
74219
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
74405
74220
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74406
74221
|
if (oSb) {
|
|
@@ -74409,17 +74224,17 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74409
74224
|
}
|
|
74410
74225
|
return false;
|
|
74411
74226
|
}, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
|
|
74412
|
-
const buf =
|
|
74227
|
+
const { buf = 'SE' } = hArg;
|
|
74413
74228
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74414
74229
|
if (!oSb?.twFade || !oSb.playing())
|
|
74415
74230
|
return false;
|
|
74416
74231
|
return oSb.resumeFade = __classPrivateFieldGet(this, _SoundMng_evtMng, "f").waitEvent(() => __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg), (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
74417
74232
|
}, _SoundMng_stopfadese = function _SoundMng_stopfadese(hArg) {
|
|
74418
|
-
const buf =
|
|
74233
|
+
const { buf = 'SE' } = hArg;
|
|
74419
74234
|
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.twFade?.stop().end();
|
|
74420
74235
|
return false;
|
|
74421
74236
|
}, _SoundMng_wl = function _SoundMng_wl(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_ws).call(this, hArg); }, _SoundMng_ws = function _SoundMng_ws(hArg) {
|
|
74422
|
-
const buf =
|
|
74237
|
+
const { buf = 'SE' } = hArg;
|
|
74423
74238
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74424
74239
|
if (!oSb?.playing() || oSb.loop)
|
|
74425
74240
|
return false;
|
|
@@ -74432,8 +74247,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74432
74247
|
oSb2.onend();
|
|
74433
74248
|
}, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', false), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
74434
74249
|
}, _SoundMng_xchgbuf = function _SoundMng_xchgbuf(hArg) {
|
|
74435
|
-
const buf1 =
|
|
74436
|
-
const buf2 = hArg.buf2 ?? 'SE';
|
|
74250
|
+
const { buf: buf1 = 'SE', buf2 = 'SE' } = hArg;
|
|
74437
74251
|
if (buf1 === buf2)
|
|
74438
74252
|
return false;
|
|
74439
74253
|
const sb1 = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf1];
|
|
@@ -74503,7 +74317,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
74503
74317
|
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");
|
|
74504
74318
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
74505
74319
|
};
|
|
74506
|
-
var _a, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
74320
|
+
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;
|
|
74507
74321
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74508
74322
|
exports.SysBase = void 0;
|
|
74509
74323
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -74515,8 +74329,15 @@ class SysBase {
|
|
|
74515
74329
|
this.hFactoryCls = {};
|
|
74516
74330
|
this.fetch = (url) => fetch(url);
|
|
74517
74331
|
this.resolution = 1;
|
|
74518
|
-
this.reso4frame = 1;
|
|
74519
74332
|
this.data = { sys: {}, mark: {}, kidoku: {} };
|
|
74333
|
+
_SysBase_cvsWidth.set(this, 0);
|
|
74334
|
+
_SysBase_cvsHeight.set(this, 0);
|
|
74335
|
+
_SysBase_cvsScale.set(this, 1);
|
|
74336
|
+
_SysBase_ofsLeft4elm.set(this, 0);
|
|
74337
|
+
_SysBase_ofsTop4elm.set(this, 0);
|
|
74338
|
+
_SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
|
|
74339
|
+
_SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
|
|
74340
|
+
this.isFullScr = false;
|
|
74520
74341
|
this.extPort = 3776;
|
|
74521
74342
|
_SysBase_sk.set(this, undefined);
|
|
74522
74343
|
_SysBase_hHook.set(this, {
|
|
@@ -74557,7 +74378,7 @@ class SysBase {
|
|
|
74557
74378
|
this._import = () => false;
|
|
74558
74379
|
this.navigate_to = () => false;
|
|
74559
74380
|
this.title = hArg => {
|
|
74560
|
-
const text = hArg
|
|
74381
|
+
const { text } = hArg;
|
|
74561
74382
|
if (!text)
|
|
74562
74383
|
throw '[title] textは必須です';
|
|
74563
74384
|
__classPrivateFieldSet(this, _SysBase_main_title, text, "f");
|
|
@@ -74565,7 +74386,24 @@ class SysBase {
|
|
|
74565
74386
|
return false;
|
|
74566
74387
|
};
|
|
74567
74388
|
_SysBase_main_title.set(this, '');
|
|
74568
|
-
this
|
|
74389
|
+
_SysBase_tglFlscr.set(this, hArg => {
|
|
74390
|
+
if (!hArg.key) {
|
|
74391
|
+
this.tglFlscr_sub();
|
|
74392
|
+
return false;
|
|
74393
|
+
}
|
|
74394
|
+
const key = hArg.key.toLowerCase();
|
|
74395
|
+
document.addEventListener('keydown', (e) => {
|
|
74396
|
+
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
74397
|
+
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
74398
|
+
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
74399
|
+
+ e.key.toLowerCase();
|
|
74400
|
+
if (key2 !== key)
|
|
74401
|
+
return;
|
|
74402
|
+
e.stopPropagation();
|
|
74403
|
+
this.tglFlscr_sub();
|
|
74404
|
+
}, { passive: true });
|
|
74405
|
+
return false;
|
|
74406
|
+
});
|
|
74569
74407
|
this.update_check = () => false;
|
|
74570
74408
|
this.window = () => false;
|
|
74571
74409
|
_SysBase_info_title.set(this, '');
|
|
@@ -74604,8 +74442,6 @@ class SysBase {
|
|
|
74604
74442
|
this.$path_downloads = '';
|
|
74605
74443
|
this.$path_userdata = '';
|
|
74606
74444
|
this.canCapturePage = (_fn) => false;
|
|
74607
|
-
this.ofsLeft4frm = 0;
|
|
74608
|
-
this.ofsTop4frm = 0;
|
|
74609
74445
|
}
|
|
74610
74446
|
async loaded(hPlg, _arg) {
|
|
74611
74447
|
const fncPre = hPlg.snsys_pre;
|
|
@@ -74648,12 +74484,13 @@ class SysBase {
|
|
|
74648
74484
|
hTag.import = o => this._import(o);
|
|
74649
74485
|
hTag.navigate_to = o => this.navigate_to(o);
|
|
74650
74486
|
hTag.title = o => this.title(o);
|
|
74651
|
-
hTag.toggle_full_screen = o => this.
|
|
74487
|
+
hTag.toggle_full_screen = o => __classPrivateFieldGet(this, _SysBase_tglFlscr, "f").call(this, o);
|
|
74652
74488
|
hTag.update_check = o => this.update_check(o);
|
|
74653
74489
|
hTag.window = o => this.window(o);
|
|
74654
74490
|
val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
|
|
74655
74491
|
val.setVal_Nochk('tmp', 'const.sn.isDbg', () => CmnLib_1.CmnLib.isDbg);
|
|
74656
74492
|
val.setVal_Nochk('tmp', 'const.sn.isPackaged', () => CmnLib_1.CmnLib.isPackaged);
|
|
74493
|
+
this.val.defTmp('const.sn.displayState', () => this.isFullScr);
|
|
74657
74494
|
val.setVal_Nochk('sys', SysBase.VALNM_CFG_NS, this.cfg.oCfg.save_ns);
|
|
74658
74495
|
val.flush();
|
|
74659
74496
|
if (CmnLib_1.CmnLib.isDbg)
|
|
@@ -74683,6 +74520,79 @@ class SysBase {
|
|
|
74683
74520
|
}));
|
|
74684
74521
|
return a;
|
|
74685
74522
|
}
|
|
74523
|
+
get cvsWidth() { return __classPrivateFieldGet(this, _SysBase_cvsWidth, "f"); }
|
|
74524
|
+
;
|
|
74525
|
+
get cvsHeight() { return __classPrivateFieldGet(this, _SysBase_cvsHeight, "f"); }
|
|
74526
|
+
;
|
|
74527
|
+
get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
|
|
74528
|
+
;
|
|
74529
|
+
get ofsLeft4elm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f"); }
|
|
74530
|
+
;
|
|
74531
|
+
get ofsTop4elm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f"); }
|
|
74532
|
+
;
|
|
74533
|
+
get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
|
|
74534
|
+
;
|
|
74535
|
+
get ofsPadTop_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadTop_Dom2PIXI, "f"); }
|
|
74536
|
+
;
|
|
74537
|
+
cvsResize() {
|
|
74538
|
+
const bk_cw = __classPrivateFieldGet(this, _SysBase_cvsWidth, "f");
|
|
74539
|
+
const bk_ch = __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
74540
|
+
let w = globalThis.innerWidth;
|
|
74541
|
+
let h = globalThis.innerHeight;
|
|
74542
|
+
const { angle = 0 } = screen.orientation;
|
|
74543
|
+
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
74544
|
+
if (CmnLib_1.CmnLib.isMobile && ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
74545
|
+
[w, h] = [h, w];
|
|
74546
|
+
const cvs = this.appPixi.view;
|
|
74547
|
+
const cr = cvs.getBoundingClientRect();
|
|
74548
|
+
if ((0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true)
|
|
74549
|
+
|| CmnLib_1.CmnLib.stageW > w
|
|
74550
|
+
|| CmnLib_1.CmnLib.stageH > h) {
|
|
74551
|
+
if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
|
|
74552
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, h, "f");
|
|
74553
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH * h, "f");
|
|
74554
|
+
}
|
|
74555
|
+
else {
|
|
74556
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, w, "f");
|
|
74557
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH / CmnLib_1.CmnLib.stageW * w, "f");
|
|
74558
|
+
}
|
|
74559
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") / CmnLib_1.CmnLib.stageW, "f");
|
|
74560
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
74561
|
+
? (globalThis.innerWidth - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2
|
|
74562
|
+
: cr.left) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
74563
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
74564
|
+
? (globalThis.innerHeight - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2
|
|
74565
|
+
: cr.top) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
74566
|
+
}
|
|
74567
|
+
else {
|
|
74568
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW, "f");
|
|
74569
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH, "f");
|
|
74570
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, 1, "f");
|
|
74571
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, 0, "f");
|
|
74572
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, 0, "f");
|
|
74573
|
+
}
|
|
74574
|
+
const ps = cvs.parentElement.style;
|
|
74575
|
+
if (cvs.parentElement === document.body) {
|
|
74576
|
+
ps.position = 'relative';
|
|
74577
|
+
ps.width = `${__classPrivateFieldGet(this, _SysBase_cvsWidth, "f")}px`;
|
|
74578
|
+
ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
|
|
74579
|
+
}
|
|
74580
|
+
const s = cvs.style;
|
|
74581
|
+
if (!this.isApp && this.isFullScr) {
|
|
74582
|
+
s.width = s.height = '';
|
|
74583
|
+
}
|
|
74584
|
+
else {
|
|
74585
|
+
s.width = ps.width;
|
|
74586
|
+
s.height = ps.height;
|
|
74587
|
+
}
|
|
74588
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, cr.left, "f");
|
|
74589
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, cr.top, "f");
|
|
74590
|
+
if (this.isFullScr) {
|
|
74591
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f") + (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
|
|
74592
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f") + (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
|
|
74593
|
+
}
|
|
74594
|
+
return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
74595
|
+
}
|
|
74686
74596
|
attach_debug(main) {
|
|
74687
74597
|
this.attach_debug = () => { };
|
|
74688
74598
|
const gs = document.createElement('style');
|
|
@@ -74727,28 +74637,26 @@ class SysBase {
|
|
|
74727
74637
|
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
74728
74638
|
}
|
|
74729
74639
|
toast(nm) {
|
|
74730
|
-
const
|
|
74731
|
-
if (!cvs)
|
|
74732
|
-
return;
|
|
74733
|
-
const p = cvs.parentNode;
|
|
74640
|
+
const p = document.body;
|
|
74734
74641
|
p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
|
|
74735
74642
|
const img = document.createElement('img');
|
|
74736
74643
|
const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
|
|
74737
74644
|
img.src = `data:image/svg+xml;base64,${td.dat}`;
|
|
74738
|
-
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 *
|
|
74645
|
+
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f");
|
|
74739
74646
|
img.width = img.height = size;
|
|
74740
74647
|
img.style.cssText =
|
|
74741
74648
|
`position: absolute;
|
|
74742
|
-
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 *
|
|
74743
|
-
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 *
|
|
74649
|
+
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dx ?? 0)}px;
|
|
74650
|
+
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dy ?? 0)}px;`;
|
|
74744
74651
|
img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
|
|
74745
74652
|
if (!td.ease)
|
|
74746
74653
|
img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
|
|
74747
|
-
p.insertBefore(img,
|
|
74654
|
+
p.insertBefore(img, this.appPixi.view);
|
|
74748
74655
|
}
|
|
74749
74656
|
setFire(fire) { this.fire = fire; }
|
|
74750
74657
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
74751
74658
|
titleSub(_txt) { }
|
|
74659
|
+
tglFlscr_sub() { }
|
|
74752
74660
|
setTitleInfo(txt) {
|
|
74753
74661
|
__classPrivateFieldSet(this, _SysBase_info_title, txt, "f");
|
|
74754
74662
|
this.titleSub(__classPrivateFieldGet(this, _SysBase_main_title, "f") + __classPrivateFieldGet(this, _SysBase_info_title, "f"));
|
|
@@ -74765,28 +74673,9 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
74765
74673
|
;
|
|
74766
74674
|
async appendFile(_path, _data, _callback) { }
|
|
74767
74675
|
async ensureFileSync(_path) { }
|
|
74768
|
-
resizeFrames() {
|
|
74769
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
74770
|
-
const a = document.getElementsByTagName('iframe');
|
|
74771
|
-
const len = a.length;
|
|
74772
|
-
for (let i = 0; i < len; ++i) {
|
|
74773
|
-
const it = a[i];
|
|
74774
|
-
const frmnm = `const.sn.frm.${it.id}`;
|
|
74775
|
-
it.style.left = this.ofsLeft4frm + cr.left
|
|
74776
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.x`)) * this.reso4frame
|
|
74777
|
-
+ 'px';
|
|
74778
|
-
it.style.top = this.ofsTop4frm + cr.top
|
|
74779
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.y`)) * this.reso4frame
|
|
74780
|
-
+ 'px';
|
|
74781
|
-
it.width = String(Number(this.val.getVal(`tmp:${frmnm}.width`))
|
|
74782
|
-
* this.reso4frame);
|
|
74783
|
-
it.height = String(Number(this.val.getVal(`tmp:${frmnm}.height`))
|
|
74784
|
-
* this.reso4frame);
|
|
74785
|
-
}
|
|
74786
|
-
}
|
|
74787
74676
|
}
|
|
74788
74677
|
exports.SysBase = SysBase;
|
|
74789
|
-
_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();
|
|
74678
|
+
_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();
|
|
74790
74679
|
SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
|
|
74791
74680
|
_SysBase_hToastDat = { value: {
|
|
74792
74681
|
'接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
|
|
@@ -74822,7 +74711,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
74822
74711
|
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");
|
|
74823
74712
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
74824
74713
|
};
|
|
74825
|
-
var
|
|
74714
|
+
var _SysWeb_path_base, _SysWeb_now_prj, _SysWeb_main, _SysWeb_hAppendFile;
|
|
74826
74715
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74827
74716
|
exports.SysWeb = void 0;
|
|
74828
74717
|
const SysBase_1 = __webpack_require__(/*! ./SysBase */ "./core/src/sn/SysBase.ts");
|
|
@@ -74833,9 +74722,7 @@ __webpack_require__(/*! devtools-detect */ "./node_modules/devtools-detect/index
|
|
|
74833
74722
|
class SysWeb extends SysBase_1.SysBase {
|
|
74834
74723
|
constructor(hPlg = {}, arg = { cur: 'prj/', crypto: false, dip: '' }) {
|
|
74835
74724
|
super(hPlg, arg);
|
|
74836
|
-
_SysWeb_instances.add(this);
|
|
74837
74725
|
_SysWeb_path_base.set(this, '');
|
|
74838
|
-
_SysWeb_isFullScr.set(this, false);
|
|
74839
74726
|
_SysWeb_now_prj.set(this, ':');
|
|
74840
74727
|
this.run = async () => {
|
|
74841
74728
|
if (__classPrivateFieldGet(this, _SysWeb_main, "f")) {
|
|
@@ -74904,7 +74791,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74904
74791
|
return false;
|
|
74905
74792
|
};
|
|
74906
74793
|
this.navigate_to = hArg => {
|
|
74907
|
-
const url = hArg
|
|
74794
|
+
const { url } = hArg;
|
|
74908
74795
|
if (!url)
|
|
74909
74796
|
throw '[navigate_to] urlは必須です';
|
|
74910
74797
|
globalThis.open(url, '_blank');
|
|
@@ -74917,38 +74804,6 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74917
74804
|
}
|
|
74918
74805
|
async loaded(hPlg, arg) {
|
|
74919
74806
|
await super.loaded(hPlg, arg);
|
|
74920
|
-
const tgl_full_scr = ('requestFullscreen' in document.body)
|
|
74921
|
-
? () => {
|
|
74922
|
-
((__classPrivateFieldSet(this, _SysWeb_isFullScr, !Boolean(document.fullscreenElement), "f"))
|
|
74923
|
-
? document.body.requestFullscreen()
|
|
74924
|
-
: document.exitFullscreen())
|
|
74925
|
-
.then(() => __classPrivateFieldGet(this, _SysWeb_instances, "m", _SysWeb_resizeFramesWork).call(this));
|
|
74926
|
-
}
|
|
74927
|
-
: () => {
|
|
74928
|
-
const doc = document;
|
|
74929
|
-
((__classPrivateFieldSet(this, _SysWeb_isFullScr, !Boolean(doc.webkitFullscreenElement), "f"))
|
|
74930
|
-
? doc.body.webkitRequestFullscreen()
|
|
74931
|
-
: doc.webkitCancelFullScreen())
|
|
74932
|
-
.then(() => __classPrivateFieldGet(this, _SysWeb_instances, "m", _SysWeb_resizeFramesWork).call(this));
|
|
74933
|
-
};
|
|
74934
|
-
this.tgl_full_scr = (hArg) => {
|
|
74935
|
-
if (!hArg.key) {
|
|
74936
|
-
tgl_full_scr();
|
|
74937
|
-
return false;
|
|
74938
|
-
}
|
|
74939
|
-
const key = hArg.key.toLowerCase();
|
|
74940
|
-
document.addEventListener('keydown', (e) => {
|
|
74941
|
-
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
74942
|
-
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
74943
|
-
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
74944
|
-
+ e.key.toLowerCase();
|
|
74945
|
-
if (key2 !== key)
|
|
74946
|
-
return;
|
|
74947
|
-
e.stopPropagation();
|
|
74948
|
-
tgl_full_scr();
|
|
74949
|
-
}, { passive: true });
|
|
74950
|
-
return false;
|
|
74951
|
-
};
|
|
74952
74807
|
document.querySelectorAll('[data-prj]').forEach(v => {
|
|
74953
74808
|
const elm = v.attributes.getNamedItem('data-prj');
|
|
74954
74809
|
if (elm)
|
|
@@ -75004,7 +74859,6 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
75004
74859
|
initVal(data, hTmp, comp) {
|
|
75005
74860
|
const hn = encodeURIComponent(document.location.hostname);
|
|
75006
74861
|
hTmp['const.sn.isDebugger'] = (hn === 'localhost' || hn === '127.0.0.1');
|
|
75007
|
-
this.val.defTmp('const.sn.displayState', () => __classPrivateFieldGet(this, _SysWeb_isFullScr, "f"));
|
|
75008
74862
|
const ns = this.cfg.getNs();
|
|
75009
74863
|
this.flush = this.crypto
|
|
75010
74864
|
? async () => {
|
|
@@ -75050,6 +74904,20 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
75050
74904
|
}
|
|
75051
74905
|
init(hTag, appPixi, val, main) {
|
|
75052
74906
|
super.init(hTag, appPixi, val, main);
|
|
74907
|
+
const pCvs = appPixi.view.parentElement;
|
|
74908
|
+
if ('requestFullscreen' in document.body) {
|
|
74909
|
+
this.tglFlscr_sub = () => this.isFullScr
|
|
74910
|
+
? document.exitFullscreen()
|
|
74911
|
+
: pCvs.requestFullscreen();
|
|
74912
|
+
document.addEventListener('fullscreenchange', () => this.isFullScr = Boolean(document.fullscreenElement));
|
|
74913
|
+
}
|
|
74914
|
+
else {
|
|
74915
|
+
const doc = document;
|
|
74916
|
+
this.tglFlscr_sub = () => this.isFullScr
|
|
74917
|
+
? doc.webkitCancelFullScreen()
|
|
74918
|
+
: pCvs.webkitRequestFullscreen();
|
|
74919
|
+
document.addEventListener('fullscreenchange', () => this.isFullScr = Boolean(doc.webkitFullscreenElement));
|
|
74920
|
+
}
|
|
75053
74921
|
if (!this.cfg.oCfg.debug.devtool)
|
|
75054
74922
|
window.addEventListener('devtoolschange', e => {
|
|
75055
74923
|
if (!e.detail.isOpen)
|
|
@@ -75082,20 +74950,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
75082
74950
|
}
|
|
75083
74951
|
}
|
|
75084
74952
|
exports.SysWeb = SysWeb;
|
|
75085
|
-
_SysWeb_path_base = new WeakMap(),
|
|
75086
|
-
const is_fs = __classPrivateFieldGet(this, _SysWeb_isFullScr, "f");
|
|
75087
|
-
const ratioWidth = screen.width / CmnLib_1.CmnLib.stageW;
|
|
75088
|
-
const ratioHeight = screen.height / CmnLib_1.CmnLib.stageH;
|
|
75089
|
-
const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
|
|
75090
|
-
this.reso4frame = is_fs ? ratio : 1;
|
|
75091
|
-
this.ofsLeft4frm = is_fs
|
|
75092
|
-
? (screen.width - CmnLib_1.CmnLib.stageW * this.reso4frame * CmnLib_1.CmnLib.cvsScale) / 2
|
|
75093
|
-
: 0;
|
|
75094
|
-
this.ofsTop4frm = is_fs
|
|
75095
|
-
? (screen.height - CmnLib_1.CmnLib.stageH * this.reso4frame * CmnLib_1.CmnLib.cvsScale) / 2
|
|
75096
|
-
: 0;
|
|
75097
|
-
this.resizeFrames();
|
|
75098
|
-
};
|
|
74953
|
+
_SysWeb_path_base = new WeakMap(), _SysWeb_now_prj = new WeakMap(), _SysWeb_main = new WeakMap(), _SysWeb_hAppendFile = new WeakMap();
|
|
75099
74954
|
|
|
75100
74955
|
|
|
75101
74956
|
/***/ }),
|
|
@@ -75119,7 +74974,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
75119
74974
|
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");
|
|
75120
74975
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
75121
74976
|
};
|
|
75122
|
-
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;
|
|
74977
|
+
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;
|
|
75123
74978
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75124
74979
|
exports.TxtLayer = void 0;
|
|
75125
74980
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -75140,7 +74995,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
75140
74995
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
75141
74996
|
_TxtLayer_b_do.set(this, undefined);
|
|
75142
74997
|
_TxtLayer_b_pic.set(this, '');
|
|
75143
|
-
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
74998
|
+
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus(), __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_sys)));
|
|
75144
74999
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
75145
75000
|
_TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
|
|
75146
75001
|
_TxtLayer_$ch_in_style.set(this, '');
|
|
@@ -75434,12 +75289,12 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75434
75289
|
__classPrivateFieldGet(this, _TxtLayer_rbSpl, "f").init(__classPrivateFieldGet(this, _TxtLayer_putCh, "f"));
|
|
75435
75290
|
this.spLay.addChild(__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f"));
|
|
75436
75291
|
__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").name = 'cntBtn';
|
|
75437
|
-
const padding = 16
|
|
75292
|
+
const padding = 16;
|
|
75438
75293
|
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' });
|
|
75439
75294
|
}
|
|
75440
|
-
static init(cfg, hTag, val, recText, isPageFore) {
|
|
75295
|
+
static init(cfg, hTag, val, recText, isPageFore, appPixi) {
|
|
75441
75296
|
__classPrivateFieldSet(TxtLayer, _a, cfg, "f", _TxtLayer_cfg);
|
|
75442
|
-
TxtStage_1.TxtStage.init(cfg);
|
|
75297
|
+
TxtStage_1.TxtStage.init(cfg, appPixi);
|
|
75443
75298
|
__classPrivateFieldSet(TxtLayer, _a, val, "f", _TxtLayer_val);
|
|
75444
75299
|
__classPrivateFieldSet(TxtLayer, _a, recText, "f", _TxtLayer_recText);
|
|
75445
75300
|
__classPrivateFieldSet(TxtLayer, _a, isPageFore, "f", _TxtLayer_isPageFore);
|
|
@@ -75499,9 +75354,10 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75499
75354
|
ease: 'ease-out',
|
|
75500
75355
|
});
|
|
75501
75356
|
}
|
|
75502
|
-
static setEvtMng(main, evtMng) {
|
|
75357
|
+
static setEvtMng(main, evtMng, sys) {
|
|
75503
75358
|
__classPrivateFieldSet(TxtLayer, _a, main, "f", _TxtLayer_main);
|
|
75504
75359
|
__classPrivateFieldSet(TxtLayer, _a, evtMng, "f", _TxtLayer_evtMng);
|
|
75360
|
+
__classPrivateFieldSet(TxtLayer, _a, sys, "f", _TxtLayer_sys);
|
|
75505
75361
|
TxtStage_1.TxtStage.setEvtMng(evtMng);
|
|
75506
75362
|
}
|
|
75507
75363
|
destroy() {
|
|
@@ -75670,7 +75526,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75670
75526
|
const o = TxtStage_1.TxtStage.ch_in_style(hArg);
|
|
75671
75527
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
75672
75528
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
75673
|
-
const name = hArg
|
|
75529
|
+
const { name } = hArg;
|
|
75674
75530
|
(0, CmnLib_1.addStyle)(`
|
|
75675
75531
|
.sn_ch_in_${name} {
|
|
75676
75532
|
position: relative;
|
|
@@ -75692,7 +75548,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75692
75548
|
const o = TxtStage_1.TxtStage.ch_out_style(hArg);
|
|
75693
75549
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
75694
75550
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
75695
|
-
const name = hArg
|
|
75551
|
+
const { name } = hArg;
|
|
75696
75552
|
(0, CmnLib_1.addStyle)(`
|
|
75697
75553
|
.go_ch_out_${name} {
|
|
75698
75554
|
position: relative;
|
|
@@ -75709,41 +75565,41 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75709
75565
|
}, _TxtLayer_autowc = function _TxtLayer_autowc(hArg) {
|
|
75710
75566
|
__classPrivateFieldSet(TxtLayer, _a, (0, CmnLib_1.argChk_Boolean)(hArg, 'enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)), "f", _TxtLayer_doAutoWc);
|
|
75711
75567
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc));
|
|
75712
|
-
const
|
|
75568
|
+
const { text } = hArg;
|
|
75713
75569
|
if (('text' in hArg) !== ('time' in hArg))
|
|
75714
75570
|
throw '[autowc] textとtimeは同時指定必須です';
|
|
75715
|
-
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text',
|
|
75716
|
-
if (!
|
|
75571
|
+
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', text);
|
|
75572
|
+
if (!text) {
|
|
75717
75573
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', '');
|
|
75718
75574
|
return false;
|
|
75719
75575
|
}
|
|
75720
|
-
const len =
|
|
75576
|
+
const len = text.length;
|
|
75721
75577
|
if (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc) && len === 0)
|
|
75722
75578
|
throw '[autowc] enabled === false かつ text === "" は許されません';
|
|
75723
75579
|
const a = String(hArg.time).split(',');
|
|
75724
75580
|
if (a.length !== len)
|
|
75725
75581
|
throw '[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい';
|
|
75726
75582
|
__classPrivateFieldSet(TxtLayer, _a, {}, "f", _TxtLayer_hAutoWc);
|
|
75727
|
-
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[
|
|
75583
|
+
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[text[i]] = (0, CmnLib_1.uint)(v));
|
|
75728
75584
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', hArg.time);
|
|
75729
75585
|
return false;
|
|
75730
75586
|
}, _TxtLayer_set_ch_in = function _TxtLayer_set_ch_in(hArg) {
|
|
75731
|
-
const
|
|
75732
|
-
if (!
|
|
75587
|
+
const { in_style } = hArg;
|
|
75588
|
+
if (!in_style)
|
|
75733
75589
|
return;
|
|
75734
|
-
const cis = TxtStage_1.TxtStage.getChInStyle(
|
|
75590
|
+
const cis = TxtStage_1.TxtStage.getChInStyle(in_style);
|
|
75735
75591
|
if (!cis)
|
|
75736
|
-
throw `存在しないin_style【${
|
|
75737
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style,
|
|
75592
|
+
throw `存在しないin_style【${in_style}】です`;
|
|
75593
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style, in_style, "f");
|
|
75738
75594
|
__classPrivateFieldSet(this, _TxtLayer_ch_in_join, cis.join, "f");
|
|
75739
75595
|
}, _TxtLayer_set_ch_out = function _TxtLayer_set_ch_out(hArg) {
|
|
75740
|
-
const
|
|
75741
|
-
if (!
|
|
75596
|
+
const { out_style } = hArg;
|
|
75597
|
+
if (!out_style)
|
|
75742
75598
|
return;
|
|
75743
|
-
const cos = TxtStage_1.TxtStage.getChOutStyle(
|
|
75599
|
+
const cos = TxtStage_1.TxtStage.getChOutStyle(out_style);
|
|
75744
75600
|
if (!cos)
|
|
75745
|
-
throw `存在しないout_style【${
|
|
75746
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style,
|
|
75601
|
+
throw `存在しないout_style【${out_style}】です`;
|
|
75602
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style, out_style, "f");
|
|
75747
75603
|
}, _TxtLayer_drawBack = function _TxtLayer_drawBack(hArg, fncComp) {
|
|
75748
75604
|
if ('back_clear' in hArg) {
|
|
75749
75605
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'back_clear', false)) {
|
|
@@ -75906,6 +75762,7 @@ _TxtLayer_recText = { value: void 0 };
|
|
|
75906
75762
|
_TxtLayer_isPageFore = { value: void 0 };
|
|
75907
75763
|
_TxtLayer_main = { value: void 0 };
|
|
75908
75764
|
_TxtLayer_evtMng = { value: void 0 };
|
|
75765
|
+
_TxtLayer_sys = { value: void 0 };
|
|
75909
75766
|
_TxtLayer_doAutoWc = { value: false };
|
|
75910
75767
|
_TxtLayer_hAutoWc = { value: {} };
|
|
75911
75768
|
TxtLayer.rec = (tx) => tx;
|
|
@@ -75932,7 +75789,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
75932
75789
|
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");
|
|
75933
75790
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
75934
75791
|
};
|
|
75935
|
-
var _TxtStage_instances, _a, _TxtStage_cfg,
|
|
75792
|
+
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;
|
|
75936
75793
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75937
75794
|
exports.TxtStage = void 0;
|
|
75938
75795
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -75945,10 +75802,11 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
|
|
|
75945
75802
|
;
|
|
75946
75803
|
;
|
|
75947
75804
|
class TxtStage extends pixi_js_1.Container {
|
|
75948
|
-
constructor(spLay, canFocus) {
|
|
75805
|
+
constructor(spLay, canFocus, sys) {
|
|
75949
75806
|
super();
|
|
75950
75807
|
this.spLay = spLay;
|
|
75951
75808
|
this.canFocus = canFocus;
|
|
75809
|
+
this.sys = sys;
|
|
75952
75810
|
_TxtStage_instances.add(this);
|
|
75953
75811
|
_TxtStage_htmTxt.set(this, document.createElement('span'));
|
|
75954
75812
|
_TxtStage_cntTxt.set(this, new pixi_js_1.Container);
|
|
@@ -75985,15 +75843,15 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75985
75843
|
_TxtStage_sss.set(this, undefined);
|
|
75986
75844
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
75987
75845
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
75988
|
-
__classPrivateFieldGet(TxtStage, _a, "f",
|
|
75846
|
+
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_appPixi).view.parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
75989
75847
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
|
|
75990
75848
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
|
|
75991
75849
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
|
|
75992
75850
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").adopt(__classPrivateFieldGet(this, _TxtStage_idcCh, "f"));
|
|
75993
75851
|
}
|
|
75994
|
-
static init(cfg) {
|
|
75852
|
+
static init(cfg, appPixi) {
|
|
75995
75853
|
__classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
|
|
75996
|
-
__classPrivateFieldSet(TxtStage, _a,
|
|
75854
|
+
__classPrivateFieldSet(TxtStage, _a, appPixi, "f", _TxtStage_appPixi);
|
|
75997
75855
|
__classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
|
|
75998
75856
|
__classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
|
|
75999
75857
|
__classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
|
|
@@ -76070,9 +75928,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76070
75928
|
}
|
|
76071
75929
|
cvsResize() {
|
|
76072
75930
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
76073
|
-
s.left =
|
|
76074
|
-
s.top =
|
|
76075
|
-
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x *
|
|
75931
|
+
s.left = `${this.sys.ofsLeft4elm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
|
|
75932
|
+
s.top = `${this.sys.ofsTop4elm + this.spLay.position.y * this.sys.cvsScale}px`;
|
|
75933
|
+
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
|
|
76076
75934
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
|
|
76077
75935
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|
|
76078
75936
|
}
|
|
@@ -76113,21 +75971,21 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76113
75971
|
do {
|
|
76114
75972
|
const e = __classPrivateFieldSet(this, _TxtStage_aRect, __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_getChRects).call(this, __classPrivateFieldGet(this, _TxtStage_htmTxt, "f")), "f");
|
|
76115
75973
|
len = e.length;
|
|
76116
|
-
if (
|
|
76117
|
-
const ox =
|
|
75974
|
+
if (this.sys.cvsScale !== 1) {
|
|
75975
|
+
const ox = this.sys.ofsPadLeft_Dom2PIXI
|
|
76118
75976
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.left)
|
|
76119
|
-
* (1 -
|
|
76120
|
-
const oy =
|
|
75977
|
+
* (1 - this.sys.cvsScale);
|
|
75978
|
+
const oy = this.sys.ofsPadTop_Dom2PIXI
|
|
76121
75979
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.top)
|
|
76122
|
-
* (1 -
|
|
75980
|
+
* (1 - this.sys.cvsScale);
|
|
76123
75981
|
for (let i = 0; i < len; ++i) {
|
|
76124
75982
|
const r = e[i].rect;
|
|
76125
75983
|
r.x -= ox;
|
|
76126
75984
|
r.y -= oy;
|
|
76127
|
-
r.x /=
|
|
76128
|
-
r.y /=
|
|
76129
|
-
r.width /=
|
|
76130
|
-
r.height /=
|
|
75985
|
+
r.x /= this.sys.cvsScale;
|
|
75986
|
+
r.y /= this.sys.cvsScale;
|
|
75987
|
+
r.width /= this.sys.cvsScale;
|
|
75988
|
+
r.height /= this.sys.cvsScale;
|
|
76131
75989
|
}
|
|
76132
75990
|
}
|
|
76133
75991
|
if (len < 2)
|
|
@@ -76310,7 +76168,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76310
76168
|
}
|
|
76311
76169
|
static getChInStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChInStyle)[name]; }
|
|
76312
76170
|
static ch_in_style(hArg) {
|
|
76313
|
-
const name = hArg
|
|
76171
|
+
const { name } = hArg;
|
|
76314
76172
|
if (!name)
|
|
76315
76173
|
throw 'nameは必須です';
|
|
76316
76174
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -76336,7 +76194,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76336
76194
|
}
|
|
76337
76195
|
static getChOutStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChOutStyle)[name]; }
|
|
76338
76196
|
static ch_out_style(hArg) {
|
|
76339
|
-
const name = hArg
|
|
76197
|
+
const { name } = hArg;
|
|
76340
76198
|
if (!name)
|
|
76341
76199
|
throw 'nameは必須です';
|
|
76342
76200
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -76379,7 +76237,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76379
76237
|
}
|
|
76380
76238
|
reNew() {
|
|
76381
76239
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
|
|
76382
|
-
const to = new TxtStage(this.spLay, () => this.canFocus());
|
|
76240
|
+
const to = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
|
|
76383
76241
|
__classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
|
|
76384
76242
|
__classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
|
|
76385
76243
|
__classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
|
|
@@ -76832,7 +76690,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
76832
76690
|
__classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
|
|
76833
76691
|
};
|
|
76834
76692
|
_TxtStage_cfg = { value: void 0 };
|
|
76835
|
-
|
|
76693
|
+
_TxtStage_appPixi = { value: void 0 };
|
|
76836
76694
|
_TxtStage_evtMng = { value: void 0 };
|
|
76837
76695
|
_TxtStage_hWarning = { value: {
|
|
76838
76696
|
backgroundColor: 0,
|
|
@@ -77199,7 +77057,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77199
77057
|
__classPrivateFieldGet(this, _Variable_sys, "f").copyBMFolder(from, to);
|
|
77200
77058
|
return false;
|
|
77201
77059
|
}, _Variable_erasebookmark = function _Variable_erasebookmark(hArg) {
|
|
77202
|
-
const place = hArg
|
|
77060
|
+
const { place } = hArg;
|
|
77203
77061
|
if (!place)
|
|
77204
77062
|
throw 'placeは必須です';
|
|
77205
77063
|
delete __classPrivateFieldGet(this, _Variable_data, "f").mark[place];
|
|
@@ -77243,7 +77101,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77243
77101
|
__classPrivateFieldGet(this, _Variable_instances, "m", _Variable_let).call(this, hArg);
|
|
77244
77102
|
return false;
|
|
77245
77103
|
}, _Variable_let_index_of = function _Variable_let_index_of(hArg) {
|
|
77246
|
-
const val = hArg
|
|
77104
|
+
const { val } = hArg;
|
|
77247
77105
|
if (!val)
|
|
77248
77106
|
throw 'valは必須です';
|
|
77249
77107
|
const start = (0, CmnLib_1.argChk_Num)(hArg, 'start', 0);
|
|
@@ -77257,7 +77115,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77257
77115
|
}, _Variable_let_replace = function _Variable_let_replace(hArg) {
|
|
77258
77116
|
if (!hArg.reg)
|
|
77259
77117
|
throw 'regは必須です';
|
|
77260
|
-
const flags = hArg
|
|
77118
|
+
const { flags } = hArg;
|
|
77261
77119
|
const reg = (!flags)
|
|
77262
77120
|
? new RegExp(hArg.reg)
|
|
77263
77121
|
: new RegExp(hArg.reg, flags);
|
|
@@ -77272,7 +77130,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77272
77130
|
}, _Variable_let_search = function _Variable_let_search(hArg) {
|
|
77273
77131
|
if (!hArg.reg)
|
|
77274
77132
|
throw 'regは必須です';
|
|
77275
|
-
const flags = hArg
|
|
77133
|
+
const { flags } = hArg;
|
|
77276
77134
|
const reg = (!flags)
|
|
77277
77135
|
? new RegExp(hArg.reg)
|
|
77278
77136
|
: new RegExp(hArg.reg, flags);
|