@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/app.js
CHANGED
|
@@ -2599,8 +2599,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2599
2599
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
2600
2600
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
2601
2601
|
/*!
|
|
2602
|
-
* @pixi/accessibility - v6.2.
|
|
2603
|
-
* Compiled
|
|
2602
|
+
* @pixi/accessibility - v6.2.2
|
|
2603
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
2604
2604
|
*
|
|
2605
2605
|
* @pixi/accessibility is licensed under the MIT License.
|
|
2606
2606
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -3165,8 +3165,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3165
3165
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
3166
3166
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
3167
3167
|
/*!
|
|
3168
|
-
* @pixi/app - v6.2.
|
|
3169
|
-
* Compiled
|
|
3168
|
+
* @pixi/app - v6.2.2
|
|
3169
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
3170
3170
|
*
|
|
3171
3171
|
* @pixi/app is licensed under the MIT License.
|
|
3172
3172
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -3462,8 +3462,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3462
3462
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
3463
3463
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
3464
3464
|
/*!
|
|
3465
|
-
* @pixi/compressed-textures - v6.2.
|
|
3466
|
-
* Compiled
|
|
3465
|
+
* @pixi/compressed-textures - v6.2.2
|
|
3466
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
3467
3467
|
*
|
|
3468
3468
|
* @pixi/compressed-textures is licensed under the MIT License.
|
|
3469
3469
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -4724,8 +4724,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4724
4724
|
/* harmony export */ "WRAP_MODES": () => (/* binding */ WRAP_MODES)
|
|
4725
4725
|
/* harmony export */ });
|
|
4726
4726
|
/*!
|
|
4727
|
-
* @pixi/constants - v6.2.
|
|
4728
|
-
* Compiled
|
|
4727
|
+
* @pixi/constants - v6.2.2
|
|
4728
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
4729
4729
|
*
|
|
4730
4730
|
* @pixi/constants is licensed under the MIT License.
|
|
4731
4731
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -5337,8 +5337,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5337
5337
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
5338
5338
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
5339
5339
|
/*!
|
|
5340
|
-
* @pixi/core - v6.2.
|
|
5341
|
-
* Compiled
|
|
5340
|
+
* @pixi/core - v6.2.2
|
|
5341
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
5342
5342
|
*
|
|
5343
5343
|
* @pixi/core is licensed under the MIT License.
|
|
5344
5344
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -9730,6 +9730,9 @@ var FilterSystem = /** @class */ (function () {
|
|
|
9730
9730
|
rect.height = y1 - y0;
|
|
9731
9731
|
};
|
|
9732
9732
|
FilterSystem.prototype.roundFrame = function (frame, resolution, bindingSourceFrame, bindingDestinationFrame, transform) {
|
|
9733
|
+
if (frame.width <= 0 || frame.height <= 0 || bindingSourceFrame.width <= 0 || bindingSourceFrame.height <= 0) {
|
|
9734
|
+
return;
|
|
9735
|
+
}
|
|
9733
9736
|
if (transform) {
|
|
9734
9737
|
var a = transform.a, b = transform.b, c = transform.c, d = transform.d;
|
|
9735
9738
|
// Skip if skew/rotation present in matrix, except for multiple of 90° rotation. If rotation
|
|
@@ -16371,8 +16374,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16371
16374
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
16372
16375
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
16373
16376
|
/*!
|
|
16374
|
-
* @pixi/display - v6.2.
|
|
16375
|
-
* Compiled
|
|
16377
|
+
* @pixi/display - v6.2.2
|
|
16378
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
16376
16379
|
*
|
|
16377
16380
|
* @pixi/display is licensed under the MIT License.
|
|
16378
16381
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -17764,8 +17767,8 @@ var TemporaryDisplayObject = /** @class */ (function (_super) {
|
|
|
17764
17767
|
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
|
|
17765
17768
|
|
|
17766
17769
|
/*!
|
|
17767
|
-
* @pixi/constants - v6.2.
|
|
17768
|
-
* Compiled
|
|
17770
|
+
* @pixi/constants - v6.2.2
|
|
17771
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
17769
17772
|
*
|
|
17770
17773
|
* @pixi/constants is licensed under the MIT License.
|
|
17771
17774
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -18896,8 +18899,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18896
18899
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
18897
18900
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
18898
18901
|
/*!
|
|
18899
|
-
* @pixi/extract - v6.2.
|
|
18900
|
-
* Compiled
|
|
18902
|
+
* @pixi/extract - v6.2.2
|
|
18903
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
18901
18904
|
*
|
|
18902
18905
|
* @pixi/extract is licensed under the MIT License.
|
|
18903
18906
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19125,8 +19128,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19125
19128
|
/* harmony export */ });
|
|
19126
19129
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19127
19130
|
/*!
|
|
19128
|
-
* @pixi/filter-alpha - v6.2.
|
|
19129
|
-
* Compiled
|
|
19131
|
+
* @pixi/filter-alpha - v6.2.2
|
|
19132
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
19130
19133
|
*
|
|
19131
19134
|
* @pixi/filter-alpha is licensed under the MIT License.
|
|
19132
19135
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19229,8 +19232,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19229
19232
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
19230
19233
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
19231
19234
|
/*!
|
|
19232
|
-
* @pixi/filter-blur - v6.2.
|
|
19233
|
-
* Compiled
|
|
19235
|
+
* @pixi/filter-blur - v6.2.2
|
|
19236
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
19234
19237
|
*
|
|
19235
19238
|
* @pixi/filter-blur is licensed under the MIT License.
|
|
19236
19239
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -19329,8 +19332,8 @@ function generateBlurFragSource(kernelSize) {
|
|
|
19329
19332
|
}
|
|
19330
19333
|
|
|
19331
19334
|
/*!
|
|
19332
|
-
* @pixi/constants - v6.2.
|
|
19333
|
-
* Compiled
|
|
19335
|
+
* @pixi/constants - v6.2.2
|
|
19336
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
19334
19337
|
*
|
|
19335
19338
|
* @pixi/constants is licensed under the MIT License.
|
|
19336
19339
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20147,8 +20150,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20147
20150
|
/* harmony export */ });
|
|
20148
20151
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20149
20152
|
/*!
|
|
20150
|
-
* @pixi/filter-color-matrix - v6.2.
|
|
20151
|
-
* Compiled
|
|
20153
|
+
* @pixi/filter-color-matrix - v6.2.2
|
|
20154
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20152
20155
|
*
|
|
20153
20156
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
|
20154
20157
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20708,8 +20711,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20708
20711
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20709
20712
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
20710
20713
|
/*!
|
|
20711
|
-
* @pixi/filter-displacement - v6.2.
|
|
20712
|
-
* Compiled
|
|
20714
|
+
* @pixi/filter-displacement - v6.2.2
|
|
20715
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20713
20716
|
*
|
|
20714
20717
|
* @pixi/filter-displacement is licensed under the MIT License.
|
|
20715
20718
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20853,8 +20856,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20853
20856
|
/* harmony export */ });
|
|
20854
20857
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20855
20858
|
/*!
|
|
20856
|
-
* @pixi/filter-fxaa - v6.2.
|
|
20857
|
-
* Compiled
|
|
20859
|
+
* @pixi/filter-fxaa - v6.2.2
|
|
20860
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20858
20861
|
*
|
|
20859
20862
|
* @pixi/filter-fxaa is licensed under the MIT License.
|
|
20860
20863
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -20930,8 +20933,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20930
20933
|
/* harmony export */ });
|
|
20931
20934
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
20932
20935
|
/*!
|
|
20933
|
-
* @pixi/filter-noise - v6.2.
|
|
20934
|
-
* Compiled
|
|
20936
|
+
* @pixi/filter-noise - v6.2.2
|
|
20937
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
20935
20938
|
*
|
|
20936
20939
|
* @pixi/filter-noise is licensed under the MIT License.
|
|
20937
20940
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -21054,8 +21057,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21054
21057
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
21055
21058
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
21056
21059
|
/*!
|
|
21057
|
-
* @pixi/graphics - v6.2.
|
|
21058
|
-
* Compiled
|
|
21060
|
+
* @pixi/graphics - v6.2.2
|
|
21061
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
21059
21062
|
*
|
|
21060
21063
|
* @pixi/graphics is licensed under the MIT License.
|
|
21061
21064
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -23781,6 +23784,7 @@ var Graphics = /** @class */ (function (_super) {
|
|
|
23781
23784
|
var data = this._geometry.graphicsData;
|
|
23782
23785
|
return data.length === 1
|
|
23783
23786
|
&& data[0].shape.type === _pixi_math__WEBPACK_IMPORTED_MODULE_1__.SHAPES.RECT
|
|
23787
|
+
&& !data[0].matrix
|
|
23784
23788
|
&& !data[0].holes.length
|
|
23785
23789
|
&& !(data[0].lineStyle.visible && data[0].lineStyle.width);
|
|
23786
23790
|
};
|
|
@@ -24128,8 +24132,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24128
24132
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
24129
24133
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
24130
24134
|
/*!
|
|
24131
|
-
* @pixi/interaction - v6.2.
|
|
24132
|
-
* Compiled
|
|
24135
|
+
* @pixi/interaction - v6.2.2
|
|
24136
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
24133
24137
|
*
|
|
24134
24138
|
* @pixi/interaction is licensed under the MIT License.
|
|
24135
24139
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -26392,8 +26396,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26392
26396
|
/* harmony export */ });
|
|
26393
26397
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
26394
26398
|
/*!
|
|
26395
|
-
* @pixi/loaders - v6.2.
|
|
26396
|
-
* Compiled
|
|
26399
|
+
* @pixi/loaders - v6.2.2
|
|
26400
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
26397
26401
|
*
|
|
26398
26402
|
* @pixi/loaders is licensed under the MIT License.
|
|
26399
26403
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -27776,8 +27780,8 @@ var rgxExtractUrlHash = /(#[\w-]+)?$/;
|
|
|
27776
27780
|
*
|
|
27777
27781
|
* ```js
|
|
27778
27782
|
* const loader = PIXI.Loader.shared; // PixiJS exposes a premade instance for you to use.
|
|
27779
|
-
* //or
|
|
27780
|
-
* const loader = new PIXI.Loader(); //
|
|
27783
|
+
* // or
|
|
27784
|
+
* const loader = new PIXI.Loader(); // You can also create your own if you want
|
|
27781
27785
|
*
|
|
27782
27786
|
* const sprites = {};
|
|
27783
27787
|
*
|
|
@@ -27815,7 +27819,6 @@ var rgxExtractUrlHash = /(#[\w-]+)?$/;
|
|
|
27815
27819
|
* loader.onComplete.add(() => {}); // called once when the queued resources all load.
|
|
27816
27820
|
* ```
|
|
27817
27821
|
*
|
|
27818
|
-
* @class Loader
|
|
27819
27822
|
* @memberof PIXI
|
|
27820
27823
|
*/
|
|
27821
27824
|
var Loader = /** @class */ (function () {
|
|
@@ -27827,6 +27830,35 @@ var Loader = /** @class */ (function () {
|
|
|
27827
27830
|
var _this = this;
|
|
27828
27831
|
if (baseUrl === void 0) { baseUrl = ''; }
|
|
27829
27832
|
if (concurrency === void 0) { concurrency = 10; }
|
|
27833
|
+
/**
|
|
27834
|
+
* The progress percent of the loader going through the queue.
|
|
27835
|
+
*/
|
|
27836
|
+
this.progress = 0;
|
|
27837
|
+
/**
|
|
27838
|
+
* Loading state of the loader, true if it is currently loading resources.
|
|
27839
|
+
*/
|
|
27840
|
+
this.loading = false;
|
|
27841
|
+
/**
|
|
27842
|
+
* A querystring to append to every URL added to the loader.
|
|
27843
|
+
*
|
|
27844
|
+
* This should be a valid query string *without* the question-mark (`?`). The loader will
|
|
27845
|
+
* also *not* escape values for you. Make sure to escape your parameters with
|
|
27846
|
+
* [`encodeURIComponent`](https://mdn.io/encodeURIComponent) before assigning this property.
|
|
27847
|
+
*
|
|
27848
|
+
* @example
|
|
27849
|
+
* const loader = new Loader();
|
|
27850
|
+
*
|
|
27851
|
+
* loader.defaultQueryString = 'user=me&password=secret';
|
|
27852
|
+
*
|
|
27853
|
+
* // This will request 'image.png?user=me&password=secret'
|
|
27854
|
+
* loader.add('image.png').load();
|
|
27855
|
+
*
|
|
27856
|
+
* loader.reset();
|
|
27857
|
+
*
|
|
27858
|
+
* // This will request 'image.png?v=1&user=me&password=secret'
|
|
27859
|
+
* loader.add('iamge.png?v=1').load();
|
|
27860
|
+
*/
|
|
27861
|
+
this.defaultQueryString = '';
|
|
27830
27862
|
/**
|
|
27831
27863
|
* The middleware to run before loading each resource.
|
|
27832
27864
|
*/
|
|
@@ -27842,23 +27874,15 @@ var Loader = /** @class */ (function () {
|
|
|
27842
27874
|
/**
|
|
27843
27875
|
* The `_loadResource` function bound with this object context.
|
|
27844
27876
|
*
|
|
27845
|
-
* @
|
|
27846
|
-
* @
|
|
27847
|
-
* @param {PIXI.LoaderResource} r - The resource to load
|
|
27848
|
-
* @param {Function} d - The dequeue function
|
|
27849
|
-
* @return {undefined}
|
|
27877
|
+
* @param r - The resource to load
|
|
27878
|
+
* @param d - The dequeue function
|
|
27850
27879
|
*/
|
|
27851
27880
|
this._boundLoadResource = function (r, d) { return _this._loadResource(r, d); };
|
|
27852
27881
|
/**
|
|
27853
27882
|
* All the resources for this loader keyed by name.
|
|
27854
|
-
*
|
|
27855
|
-
* @member {object<string, PIXI.LoaderResource>}
|
|
27856
27883
|
*/
|
|
27857
27884
|
this.resources = {};
|
|
27858
27885
|
this.baseUrl = baseUrl;
|
|
27859
|
-
this.progress = 0;
|
|
27860
|
-
this.loading = false;
|
|
27861
|
-
this.defaultQueryString = '';
|
|
27862
27886
|
this._beforeMiddleware = [];
|
|
27863
27887
|
this._afterMiddleware = [];
|
|
27864
27888
|
this._resourcesParsing = [];
|
|
@@ -27885,12 +27909,13 @@ var Loader = /** @class */ (function () {
|
|
|
27885
27909
|
}
|
|
27886
27910
|
/**
|
|
27887
27911
|
* Same as add, params have strict order
|
|
27912
|
+
*
|
|
27888
27913
|
* @private
|
|
27889
27914
|
* @param name - The name of the resource to load.
|
|
27890
27915
|
* @param url - The url for this resource, relative to the baseUrl of this loader.
|
|
27891
27916
|
* @param options - The options for the load.
|
|
27892
27917
|
* @param callback - Function to call when this specific resource completes loading.
|
|
27893
|
-
* @return
|
|
27918
|
+
* @return The loader itself.
|
|
27894
27919
|
*/
|
|
27895
27920
|
Loader.prototype._add = function (name, url, options, callback) {
|
|
27896
27921
|
// if loading already you can only add resources that have a parent.
|
|
@@ -27936,7 +27961,7 @@ var Loader = /** @class */ (function () {
|
|
|
27936
27961
|
* resource is loaded.
|
|
27937
27962
|
*
|
|
27938
27963
|
* @param fn - The middleware function to register.
|
|
27939
|
-
* @return
|
|
27964
|
+
* @return The loader itself.
|
|
27940
27965
|
*/
|
|
27941
27966
|
Loader.prototype.pre = function (fn) {
|
|
27942
27967
|
this._beforeMiddleware.push(fn);
|
|
@@ -27947,7 +27972,7 @@ var Loader = /** @class */ (function () {
|
|
|
27947
27972
|
* resource is loaded.
|
|
27948
27973
|
*
|
|
27949
27974
|
* @param fn - The middleware function to register.
|
|
27950
|
-
* @return
|
|
27975
|
+
* @return The loader itself.
|
|
27951
27976
|
*/
|
|
27952
27977
|
Loader.prototype.use = function (fn) {
|
|
27953
27978
|
this._afterMiddleware.push(fn);
|
|
@@ -27956,7 +27981,7 @@ var Loader = /** @class */ (function () {
|
|
|
27956
27981
|
/**
|
|
27957
27982
|
* Resets the queue of the loader to prepare for a new load.
|
|
27958
27983
|
*
|
|
27959
|
-
* @return
|
|
27984
|
+
* @return The loader itself.
|
|
27960
27985
|
*/
|
|
27961
27986
|
Loader.prototype.reset = function () {
|
|
27962
27987
|
this.progress = 0;
|
|
@@ -27978,8 +28003,8 @@ var Loader = /** @class */ (function () {
|
|
|
27978
28003
|
};
|
|
27979
28004
|
/**
|
|
27980
28005
|
* Starts loading the queued resources.
|
|
27981
|
-
* @param
|
|
27982
|
-
* @return
|
|
28006
|
+
* @param cb - Optional callback that will be bound to the `complete` event.
|
|
28007
|
+
* @return The loader itself.
|
|
27983
28008
|
*/
|
|
27984
28009
|
Loader.prototype.load = function (cb) {
|
|
27985
28010
|
// register complete callback if they pass one
|
|
@@ -28012,13 +28037,11 @@ var Loader = /** @class */ (function () {
|
|
|
28012
28037
|
/**
|
|
28013
28038
|
* The number of resources to load concurrently.
|
|
28014
28039
|
*
|
|
28015
|
-
* @member {number}
|
|
28016
28040
|
* @default 10
|
|
28017
28041
|
*/
|
|
28018
28042
|
get: function () {
|
|
28019
28043
|
return this._queue.concurrency;
|
|
28020
28044
|
},
|
|
28021
|
-
// eslint-disable-next-line require-jsdoc
|
|
28022
28045
|
set: function (concurrency) {
|
|
28023
28046
|
this._queue.concurrency = concurrency;
|
|
28024
28047
|
},
|
|
@@ -28063,9 +28086,8 @@ var Loader = /** @class */ (function () {
|
|
|
28063
28086
|
/**
|
|
28064
28087
|
* Loads a single resource.
|
|
28065
28088
|
*
|
|
28066
|
-
* @
|
|
28067
|
-
* @param
|
|
28068
|
-
* @param {function} dequeue - The function to call when we need to dequeue this item.
|
|
28089
|
+
* @param resource - The resource to load.
|
|
28090
|
+
* @param dequeue - The function to call when we need to dequeue this item.
|
|
28069
28091
|
*/
|
|
28070
28092
|
Loader.prototype._loadResource = function (resource, dequeue) {
|
|
28071
28093
|
var _this = this;
|
|
@@ -28214,7 +28236,6 @@ Loader.prototype.add = function add(name, url, options, callback) {
|
|
|
28214
28236
|
* import {AppLoaderPlugin} from '@pixi/loaders';
|
|
28215
28237
|
* import {Application} from '@pixi/app';
|
|
28216
28238
|
* Application.registerPlugin(AppLoaderPlugin);
|
|
28217
|
-
* @class
|
|
28218
28239
|
* @memberof PIXI
|
|
28219
28240
|
*/
|
|
28220
28241
|
var AppLoaderPlugin = /** @class */ (function () {
|
|
@@ -28222,19 +28243,13 @@ var AppLoaderPlugin = /** @class */ (function () {
|
|
|
28222
28243
|
}
|
|
28223
28244
|
/**
|
|
28224
28245
|
* Called on application constructor
|
|
28225
|
-
*
|
|
28246
|
+
*
|
|
28226
28247
|
* @private
|
|
28227
28248
|
*/
|
|
28228
28249
|
AppLoaderPlugin.init = function (options) {
|
|
28229
28250
|
options = Object.assign({
|
|
28230
28251
|
sharedLoader: false,
|
|
28231
28252
|
}, options);
|
|
28232
|
-
/**
|
|
28233
|
-
* Loader instance to help with asset loading.
|
|
28234
|
-
* @memberof PIXI.Application#
|
|
28235
|
-
* @type {PIXI.Loader}
|
|
28236
|
-
* @readonly
|
|
28237
|
-
*/
|
|
28238
28253
|
this.loader = options.sharedLoader ? Loader.shared : new Loader();
|
|
28239
28254
|
};
|
|
28240
28255
|
/**
|
|
@@ -28441,8 +28456,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28441
28456
|
/* harmony export */ "groupD8": () => (/* binding */ groupD8)
|
|
28442
28457
|
/* harmony export */ });
|
|
28443
28458
|
/*!
|
|
28444
|
-
* @pixi/math - v6.2.
|
|
28445
|
-
* Compiled
|
|
28459
|
+
* @pixi/math - v6.2.2
|
|
28460
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
28446
28461
|
*
|
|
28447
28462
|
* @pixi/math is licensed under the MIT License.
|
|
28448
28463
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -30086,8 +30101,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30086
30101
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
30087
30102
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
30088
30103
|
/*!
|
|
30089
|
-
* @pixi/mesh-extras - v6.2.
|
|
30090
|
-
* Compiled
|
|
30104
|
+
* @pixi/mesh-extras - v6.2.2
|
|
30105
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
30091
30106
|
*
|
|
30092
30107
|
* @pixi/mesh-extras is licensed under the MIT License.
|
|
30093
30108
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -30770,8 +30785,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30770
30785
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
30771
30786
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
30772
30787
|
/*!
|
|
30773
|
-
* @pixi/mesh - v6.2.
|
|
30774
|
-
* Compiled
|
|
30788
|
+
* @pixi/mesh - v6.2.2
|
|
30789
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
30775
30790
|
*
|
|
30776
30791
|
* @pixi/mesh is licensed under the MIT License.
|
|
30777
30792
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31445,8 +31460,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31445
31460
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
31446
31461
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
31447
31462
|
/*!
|
|
31448
|
-
* @pixi/mixin-cache-as-bitmap - v6.2.
|
|
31449
|
-
* Compiled
|
|
31463
|
+
* @pixi/mixin-cache-as-bitmap - v6.2.2
|
|
31464
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
31450
31465
|
*
|
|
31451
31466
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
|
31452
31467
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31459,8 +31474,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31459
31474
|
|
|
31460
31475
|
|
|
31461
31476
|
/*!
|
|
31462
|
-
* @pixi/constants - v6.2.
|
|
31463
|
-
* Compiled
|
|
31477
|
+
* @pixi/constants - v6.2.2
|
|
31478
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
31464
31479
|
*
|
|
31465
31480
|
* @pixi/constants is licensed under the MIT License.
|
|
31466
31481
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32365,8 +32380,8 @@ _pixi_display__WEBPACK_IMPORTED_MODULE_2__.DisplayObject.prototype._cacheAsBitma
|
|
|
32365
32380
|
__webpack_require__.r(__webpack_exports__);
|
|
32366
32381
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
32367
32382
|
/*!
|
|
32368
|
-
* @pixi/mixin-get-child-by-name - v6.2.
|
|
32369
|
-
* Compiled
|
|
32383
|
+
* @pixi/mixin-get-child-by-name - v6.2.2
|
|
32384
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
32370
32385
|
*
|
|
32371
32386
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
|
32372
32387
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32427,8 +32442,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32427
32442
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
32428
32443
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
32429
32444
|
/*!
|
|
32430
|
-
* @pixi/mixin-get-global-position - v6.2.
|
|
32431
|
-
* Compiled
|
|
32445
|
+
* @pixi/mixin-get-global-position - v6.2.2
|
|
32446
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
32432
32447
|
*
|
|
32433
32448
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
|
32434
32449
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32482,8 +32497,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32482
32497
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
32483
32498
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
32484
32499
|
/*!
|
|
32485
|
-
* @pixi/particle-container - v6.2.
|
|
32486
|
-
* Compiled
|
|
32500
|
+
* @pixi/particle-container - v6.2.2
|
|
32501
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
32487
32502
|
*
|
|
32488
32503
|
* @pixi/particle-container is licensed under the MIT License.
|
|
32489
32504
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -32546,16 +32561,14 @@ function __extends(d, b) {
|
|
|
32546
32561
|
*
|
|
32547
32562
|
* And here you have a hundred sprites that will be rendered at the speed of light.
|
|
32548
32563
|
*
|
|
32549
|
-
* @class
|
|
32550
|
-
* @extends PIXI.Container
|
|
32551
32564
|
* @memberof PIXI
|
|
32552
32565
|
*/
|
|
32553
32566
|
var ParticleContainer = /** @class */ (function (_super) {
|
|
32554
32567
|
__extends(ParticleContainer, _super);
|
|
32555
32568
|
/**
|
|
32556
|
-
* @param
|
|
32569
|
+
* @param maxSize - The maximum number of particles that can be rendered by the container.
|
|
32557
32570
|
* Affects size of allocated buffers.
|
|
32558
|
-
* @param
|
|
32571
|
+
* @param properties - The properties of children that should be uploaded to the gpu and applied.
|
|
32559
32572
|
* @param {boolean} [properties.vertices=false] - When true, vertices be uploaded and applied.
|
|
32560
32573
|
* if sprite's ` scale/anchor/trim/frame/orig` is dynamic, please set `true`.
|
|
32561
32574
|
* @param {boolean} [properties.position=true] - When true, position be uploaded and applied.
|
|
@@ -32578,86 +32591,18 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32578
32591
|
if (batchSize > maxBatchSize) {
|
|
32579
32592
|
batchSize = maxBatchSize;
|
|
32580
32593
|
}
|
|
32581
|
-
/**
|
|
32582
|
-
* Set properties to be dynamic (true) / static (false)
|
|
32583
|
-
*
|
|
32584
|
-
* @member {boolean[]}
|
|
32585
|
-
* @private
|
|
32586
|
-
*/
|
|
32587
32594
|
_this._properties = [false, true, false, false, false];
|
|
32588
|
-
/**
|
|
32589
|
-
* @member {number}
|
|
32590
|
-
* @private
|
|
32591
|
-
*/
|
|
32592
32595
|
_this._maxSize = maxSize;
|
|
32593
|
-
/**
|
|
32594
|
-
* @member {number}
|
|
32595
|
-
* @private
|
|
32596
|
-
*/
|
|
32597
32596
|
_this._batchSize = batchSize;
|
|
32598
|
-
/**
|
|
32599
|
-
* @member {Array<PIXI.Buffer>}
|
|
32600
|
-
* @private
|
|
32601
|
-
*/
|
|
32602
32597
|
_this._buffers = null;
|
|
32603
|
-
/**
|
|
32604
|
-
* for every batch stores _updateID corresponding to the last change in that batch
|
|
32605
|
-
* @member {number[]}
|
|
32606
|
-
* @private
|
|
32607
|
-
*/
|
|
32608
32598
|
_this._bufferUpdateIDs = [];
|
|
32609
|
-
/**
|
|
32610
|
-
* when child inserted, removed or changes position this number goes up
|
|
32611
|
-
* @member {number[]}
|
|
32612
|
-
* @private
|
|
32613
|
-
*/
|
|
32614
32599
|
_this._updateID = 0;
|
|
32615
|
-
/**
|
|
32616
|
-
* @member {boolean}
|
|
32617
|
-
*
|
|
32618
|
-
*/
|
|
32619
32600
|
_this.interactiveChildren = false;
|
|
32620
|
-
/**
|
|
32621
|
-
* The blend mode to be applied to the sprite. Apply a value of `PIXI.BLEND_MODES.NORMAL`
|
|
32622
|
-
* to reset the blend mode.
|
|
32623
|
-
*
|
|
32624
|
-
* @member {number}
|
|
32625
|
-
* @default PIXI.BLEND_MODES.NORMAL
|
|
32626
|
-
* @see PIXI.BLEND_MODES
|
|
32627
|
-
*/
|
|
32628
32601
|
_this.blendMode = _pixi_constants__WEBPACK_IMPORTED_MODULE_0__.BLEND_MODES.NORMAL;
|
|
32629
|
-
/**
|
|
32630
|
-
* If true, container allocates more batches in case there are more than `maxSize` particles.
|
|
32631
|
-
* @member {boolean}
|
|
32632
|
-
* @default false
|
|
32633
|
-
*/
|
|
32634
32602
|
_this.autoResize = autoResize;
|
|
32635
|
-
/**
|
|
32636
|
-
* If true PixiJS will Math.floor() x/y values when rendering, stopping pixel interpolation.
|
|
32637
|
-
* Advantages can include sharper image quality (like text) and faster rendering on canvas.
|
|
32638
|
-
* The main disadvantage is movement of objects may appear less smooth.
|
|
32639
|
-
* Default to true here as performance is usually the priority for particles.
|
|
32640
|
-
*
|
|
32641
|
-
* @member {boolean}
|
|
32642
|
-
* @default true
|
|
32643
|
-
*/
|
|
32644
32603
|
_this.roundPixels = true;
|
|
32645
|
-
/**
|
|
32646
|
-
* The texture used to render the children.
|
|
32647
|
-
*
|
|
32648
|
-
* @readonly
|
|
32649
|
-
* @member {PIXI.BaseTexture}
|
|
32650
|
-
*/
|
|
32651
32604
|
_this.baseTexture = null;
|
|
32652
32605
|
_this.setProperties(properties);
|
|
32653
|
-
/**
|
|
32654
|
-
* The tint applied to the container.
|
|
32655
|
-
* This is a hex value. A value of 0xFFFFFF will remove any tint effect.
|
|
32656
|
-
*
|
|
32657
|
-
* @private
|
|
32658
|
-
* @member {number}
|
|
32659
|
-
* @default 0xFFFFFF
|
|
32660
|
-
*/
|
|
32661
32606
|
_this._tint = 0;
|
|
32662
32607
|
_this.tintRgb = new Float32Array(4);
|
|
32663
32608
|
_this.tint = 0xFFFFFF;
|
|
@@ -32666,7 +32611,7 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32666
32611
|
/**
|
|
32667
32612
|
* Sets the private properties array to dynamic / static based on the passed properties object
|
|
32668
32613
|
*
|
|
32669
|
-
* @param
|
|
32614
|
+
* @param properties - The properties to be uploaded
|
|
32670
32615
|
*/
|
|
32671
32616
|
ParticleContainer.prototype.setProperties = function (properties) {
|
|
32672
32617
|
if (properties) {
|
|
@@ -32679,11 +32624,6 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32679
32624
|
? !!properties.tint || !!properties.alpha : this._properties[4];
|
|
32680
32625
|
}
|
|
32681
32626
|
};
|
|
32682
|
-
/**
|
|
32683
|
-
* Updates the object transform for rendering
|
|
32684
|
-
*
|
|
32685
|
-
* @private
|
|
32686
|
-
*/
|
|
32687
32627
|
ParticleContainer.prototype.updateTransform = function () {
|
|
32688
32628
|
// TODO don't need to!
|
|
32689
32629
|
this.displayObjectUpdateTransform();
|
|
@@ -32692,8 +32632,8 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32692
32632
|
/**
|
|
32693
32633
|
* The tint applied to the container. This is a hex value.
|
|
32694
32634
|
* A value of 0xFFFFFF will remove any tint effect.
|
|
32695
|
-
|
|
32696
|
-
*
|
|
32635
|
+
* IMPORTANT: This is a WebGL only feature and will be ignored by the canvas renderer.
|
|
32636
|
+
*
|
|
32697
32637
|
* @default 0xFFFFFF
|
|
32698
32638
|
*/
|
|
32699
32639
|
get: function () {
|
|
@@ -32707,10 +32647,9 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32707
32647
|
configurable: true
|
|
32708
32648
|
});
|
|
32709
32649
|
/**
|
|
32710
|
-
* Renders the container using the WebGL renderer
|
|
32650
|
+
* Renders the container using the WebGL renderer.
|
|
32711
32651
|
*
|
|
32712
|
-
* @
|
|
32713
|
-
* @param {PIXI.Renderer} renderer - The webgl renderer
|
|
32652
|
+
* @param renderer - The WebGL renderer.
|
|
32714
32653
|
*/
|
|
32715
32654
|
ParticleContainer.prototype.render = function (renderer) {
|
|
32716
32655
|
var _this = this;
|
|
@@ -32729,8 +32668,7 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32729
32668
|
/**
|
|
32730
32669
|
* Set the flag that static data should be updated to true
|
|
32731
32670
|
*
|
|
32732
|
-
* @
|
|
32733
|
-
* @param {number} smallestChildIndex - The smallest child index
|
|
32671
|
+
* @param smallestChildIndex - The smallest child index.
|
|
32734
32672
|
*/
|
|
32735
32673
|
ParticleContainer.prototype.onChildrenChange = function (smallestChildIndex) {
|
|
32736
32674
|
var bufferIndex = Math.floor(smallestChildIndex / this._batchSize);
|
|
@@ -32750,7 +32688,7 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32750
32688
|
/**
|
|
32751
32689
|
* Destroys the container
|
|
32752
32690
|
*
|
|
32753
|
-
* @param
|
|
32691
|
+
* @param options - Options parameter. A boolean will act as if all options
|
|
32754
32692
|
* have been set to that value
|
|
32755
32693
|
* @param {boolean} [options.children=false] - if set to true, all the children will have their
|
|
32756
32694
|
* destroy method called as well. 'options' will be passed on to those calls.
|
|
@@ -32783,13 +32721,11 @@ var ParticleContainer = /** @class */ (function (_super) {
|
|
|
32783
32721
|
/**
|
|
32784
32722
|
* The particle buffer manages the static and dynamic buffers for a particle container.
|
|
32785
32723
|
*
|
|
32786
|
-
* @class
|
|
32787
32724
|
* @private
|
|
32788
32725
|
* @memberof PIXI
|
|
32789
32726
|
*/
|
|
32790
32727
|
var ParticleBuffer = /** @class */ (function () {
|
|
32791
32728
|
/**
|
|
32792
|
-
* @private
|
|
32793
32729
|
* @param {object} properties - The properties to upload.
|
|
32794
32730
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
32795
32731
|
* @param {number} size - The size of the batch.
|
|
@@ -32797,26 +32733,8 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32797
32733
|
function ParticleBuffer(properties, dynamicPropertyFlags, size) {
|
|
32798
32734
|
this.geometry = new _pixi_core__WEBPACK_IMPORTED_MODULE_3__.Geometry();
|
|
32799
32735
|
this.indexBuffer = null;
|
|
32800
|
-
/**
|
|
32801
|
-
* The number of particles the buffer can hold
|
|
32802
|
-
*
|
|
32803
|
-
* @private
|
|
32804
|
-
* @member {number}
|
|
32805
|
-
*/
|
|
32806
32736
|
this.size = size;
|
|
32807
|
-
/**
|
|
32808
|
-
* A list of the properties that are dynamic.
|
|
32809
|
-
*
|
|
32810
|
-
* @private
|
|
32811
|
-
* @member {object[]}
|
|
32812
|
-
*/
|
|
32813
32737
|
this.dynamicProperties = [];
|
|
32814
|
-
/**
|
|
32815
|
-
* A list of the properties that are static.
|
|
32816
|
-
*
|
|
32817
|
-
* @private
|
|
32818
|
-
* @member {object[]}
|
|
32819
|
-
*/
|
|
32820
32738
|
this.staticProperties = [];
|
|
32821
32739
|
for (var i = 0; i < properties.length; ++i) {
|
|
32822
32740
|
var property = properties[i];
|
|
@@ -32847,20 +32765,10 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32847
32765
|
this._updateID = 0;
|
|
32848
32766
|
this.initBuffers();
|
|
32849
32767
|
}
|
|
32850
|
-
/**
|
|
32851
|
-
* Sets up the renderer context and necessary buffers.
|
|
32852
|
-
*
|
|
32853
|
-
* @private
|
|
32854
|
-
*/
|
|
32768
|
+
/** Sets up the renderer context and necessary buffers. */
|
|
32855
32769
|
ParticleBuffer.prototype.initBuffers = function () {
|
|
32856
32770
|
var geometry = this.geometry;
|
|
32857
32771
|
var dynamicOffset = 0;
|
|
32858
|
-
/**
|
|
32859
|
-
* Holds the indices of the geometry (quads) to draw
|
|
32860
|
-
*
|
|
32861
|
-
* @member {Uint16Array}
|
|
32862
|
-
* @private
|
|
32863
|
-
*/
|
|
32864
32772
|
this.indexBuffer = new _pixi_core__WEBPACK_IMPORTED_MODULE_3__.Buffer((0,_pixi_utils__WEBPACK_IMPORTED_MODULE_2__.createIndicesForQuads)(this.size), true, true);
|
|
32865
32773
|
geometry.addIndex(this.indexBuffer);
|
|
32866
32774
|
this.dynamicStride = 0;
|
|
@@ -32899,10 +32807,9 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32899
32807
|
/**
|
|
32900
32808
|
* Uploads the dynamic properties.
|
|
32901
32809
|
*
|
|
32902
|
-
* @
|
|
32903
|
-
* @param
|
|
32904
|
-
* @param
|
|
32905
|
-
* @param {number} amount - The number to upload.
|
|
32810
|
+
* @param children - The children to upload.
|
|
32811
|
+
* @param startIndex - The index to start at.
|
|
32812
|
+
* @param amount - The number to upload.
|
|
32906
32813
|
*/
|
|
32907
32814
|
ParticleBuffer.prototype.uploadDynamic = function (children, startIndex, amount) {
|
|
32908
32815
|
for (var i = 0; i < this.dynamicProperties.length; i++) {
|
|
@@ -32914,10 +32821,9 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32914
32821
|
/**
|
|
32915
32822
|
* Uploads the static properties.
|
|
32916
32823
|
*
|
|
32917
|
-
* @
|
|
32918
|
-
* @param
|
|
32919
|
-
* @param
|
|
32920
|
-
* @param {number} amount - The number to upload.
|
|
32824
|
+
* @param children - The children to upload.
|
|
32825
|
+
* @param startIndex - The index to start at.
|
|
32826
|
+
* @param amount - The number to upload.
|
|
32921
32827
|
*/
|
|
32922
32828
|
ParticleBuffer.prototype.uploadStatic = function (children, startIndex, amount) {
|
|
32923
32829
|
for (var i = 0; i < this.staticProperties.length; i++) {
|
|
@@ -32926,11 +32832,7 @@ var ParticleBuffer = /** @class */ (function () {
|
|
|
32926
32832
|
}
|
|
32927
32833
|
this.staticBuffer._updateID++;
|
|
32928
32834
|
};
|
|
32929
|
-
/**
|
|
32930
|
-
* Destroys the ParticleBuffer.
|
|
32931
|
-
*
|
|
32932
|
-
* @private
|
|
32933
|
-
*/
|
|
32835
|
+
/** Destroys the ParticleBuffer. */
|
|
32934
32836
|
ParticleBuffer.prototype.destroy = function () {
|
|
32935
32837
|
this.indexBuffer = null;
|
|
32936
32838
|
this.dynamicProperties = null;
|
|
@@ -32965,13 +32867,12 @@ var vertex = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nat
|
|
|
32965
32867
|
/**
|
|
32966
32868
|
* Renderer for Particles that is designer for speed over feature set.
|
|
32967
32869
|
*
|
|
32968
|
-
* @class
|
|
32969
32870
|
* @memberof PIXI
|
|
32970
32871
|
*/
|
|
32971
32872
|
var ParticleRenderer = /** @class */ (function (_super) {
|
|
32972
32873
|
__extends(ParticleRenderer, _super);
|
|
32973
32874
|
/**
|
|
32974
|
-
* @param
|
|
32875
|
+
* @param renderer - The renderer this sprite batch works for.
|
|
32975
32876
|
*/
|
|
32976
32877
|
function ParticleRenderer(renderer) {
|
|
32977
32878
|
var _this = _super.call(this, renderer) || this;
|
|
@@ -32980,11 +32881,6 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
32980
32881
|
// and max number of element in the index buffer is 16384 * 6 = 98304
|
|
32981
32882
|
// Creating a full index buffer, overhead is 98304 * 2 = 196Ko
|
|
32982
32883
|
// let numIndices = 98304;
|
|
32983
|
-
/**
|
|
32984
|
-
* The default shader that is used if a sprite doesn't have a more specific one.
|
|
32985
|
-
*
|
|
32986
|
-
* @member {PIXI.Shader}
|
|
32987
|
-
*/
|
|
32988
32884
|
_this.shader = null;
|
|
32989
32885
|
_this.properties = null;
|
|
32990
32886
|
_this.tempMatrix = new _pixi_math__WEBPACK_IMPORTED_MODULE_4__.Matrix();
|
|
@@ -33026,19 +32922,13 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33026
32922
|
offset: 0,
|
|
33027
32923
|
} ];
|
|
33028
32924
|
_this.shader = _pixi_core__WEBPACK_IMPORTED_MODULE_3__.Shader.from(vertex, fragment, {});
|
|
33029
|
-
/**
|
|
33030
|
-
* The WebGL state in which this renderer will work.
|
|
33031
|
-
*
|
|
33032
|
-
* @member {PIXI.State}
|
|
33033
|
-
* @readonly
|
|
33034
|
-
*/
|
|
33035
32925
|
_this.state = _pixi_core__WEBPACK_IMPORTED_MODULE_3__.State.for2d();
|
|
33036
32926
|
return _this;
|
|
33037
32927
|
}
|
|
33038
32928
|
/**
|
|
33039
32929
|
* Renders the particle container object.
|
|
33040
32930
|
*
|
|
33041
|
-
* @param
|
|
32931
|
+
* @param container - The container to render using this ParticleRenderer.
|
|
33042
32932
|
*/
|
|
33043
32933
|
ParticleRenderer.prototype.render = function (container) {
|
|
33044
32934
|
var children = container.children;
|
|
@@ -33093,11 +32983,10 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33093
32983
|
}
|
|
33094
32984
|
};
|
|
33095
32985
|
/**
|
|
33096
|
-
* Creates one particle buffer for each child in the container we want to render and updates internal properties
|
|
32986
|
+
* Creates one particle buffer for each child in the container we want to render and updates internal properties.
|
|
33097
32987
|
*
|
|
33098
|
-
* @param
|
|
33099
|
-
* @return
|
|
33100
|
-
* @private
|
|
32988
|
+
* @param container - The container to render using this ParticleRenderer
|
|
32989
|
+
* @return - The buffers
|
|
33101
32990
|
*/
|
|
33102
32991
|
ParticleRenderer.prototype.generateBuffers = function (container) {
|
|
33103
32992
|
var buffers = [];
|
|
@@ -33110,11 +32999,10 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33110
32999
|
return buffers;
|
|
33111
33000
|
};
|
|
33112
33001
|
/**
|
|
33113
|
-
* Creates one more particle buffer, because container has autoResize feature
|
|
33002
|
+
* Creates one more particle buffer, because container has autoResize feature.
|
|
33114
33003
|
*
|
|
33115
|
-
* @param
|
|
33116
|
-
* @return
|
|
33117
|
-
* @private
|
|
33004
|
+
* @param container - The container to render using this ParticleRenderer
|
|
33005
|
+
* @return - The generated buffer
|
|
33118
33006
|
*/
|
|
33119
33007
|
ParticleRenderer.prototype._generateOneMoreBuffer = function (container) {
|
|
33120
33008
|
var batchSize = container._batchSize;
|
|
@@ -33124,12 +33012,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33124
33012
|
/**
|
|
33125
33013
|
* Uploads the vertices.
|
|
33126
33014
|
*
|
|
33127
|
-
* @param
|
|
33128
|
-
* @param
|
|
33129
|
-
* @param
|
|
33130
|
-
* @param
|
|
33131
|
-
* @param
|
|
33132
|
-
* @param
|
|
33015
|
+
* @param children - the array of display objects to render
|
|
33016
|
+
* @param startIndex - the index to start from in the children array
|
|
33017
|
+
* @param amount - the amount of children that will have their vertices uploaded
|
|
33018
|
+
* @param array - The vertices to upload.
|
|
33019
|
+
* @param stride - Stride to use for iteration.
|
|
33020
|
+
* @param offset - Offset to start at.
|
|
33133
33021
|
*/
|
|
33134
33022
|
ParticleRenderer.prototype.uploadVertices = function (children, startIndex, amount, array, stride, offset) {
|
|
33135
33023
|
var w0 = 0;
|
|
@@ -33171,12 +33059,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33171
33059
|
/**
|
|
33172
33060
|
* Uploads the position.
|
|
33173
33061
|
*
|
|
33174
|
-
* @param
|
|
33175
|
-
* @param
|
|
33176
|
-
* @param
|
|
33177
|
-
* @param
|
|
33178
|
-
* @param
|
|
33179
|
-
* @param
|
|
33062
|
+
* @param children - the array of display objects to render
|
|
33063
|
+
* @param startIndex - the index to start from in the children array
|
|
33064
|
+
* @param amount - the amount of children that will have their positions uploaded
|
|
33065
|
+
* @param array - The vertices to upload.
|
|
33066
|
+
* @param stride - Stride to use for iteration.
|
|
33067
|
+
* @param offset - Offset to start at.
|
|
33180
33068
|
*/
|
|
33181
33069
|
ParticleRenderer.prototype.uploadPosition = function (children, startIndex, amount, array, stride, offset) {
|
|
33182
33070
|
for (var i = 0; i < amount; i++) {
|
|
@@ -33195,12 +33083,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33195
33083
|
/**
|
|
33196
33084
|
* Uploads the rotation.
|
|
33197
33085
|
*
|
|
33198
|
-
* @param
|
|
33199
|
-
* @param
|
|
33200
|
-
* @param
|
|
33201
|
-
* @param
|
|
33202
|
-
* @param
|
|
33203
|
-
* @param
|
|
33086
|
+
* @param children - the array of display objects to render
|
|
33087
|
+
* @param startIndex - the index to start from in the children array
|
|
33088
|
+
* @param amount - the amount of children that will have their rotation uploaded
|
|
33089
|
+
* @param array - The vertices to upload.
|
|
33090
|
+
* @param stride - Stride to use for iteration.
|
|
33091
|
+
* @param offset - Offset to start at.
|
|
33204
33092
|
*/
|
|
33205
33093
|
ParticleRenderer.prototype.uploadRotation = function (children, startIndex, amount, array, stride, offset) {
|
|
33206
33094
|
for (var i = 0; i < amount; i++) {
|
|
@@ -33213,14 +33101,14 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33213
33101
|
}
|
|
33214
33102
|
};
|
|
33215
33103
|
/**
|
|
33216
|
-
* Uploads the
|
|
33104
|
+
* Uploads the UVs.
|
|
33217
33105
|
*
|
|
33218
|
-
* @param
|
|
33219
|
-
* @param
|
|
33220
|
-
* @param
|
|
33221
|
-
* @param
|
|
33222
|
-
* @param
|
|
33223
|
-
* @param
|
|
33106
|
+
* @param children - the array of display objects to render
|
|
33107
|
+
* @param startIndex - the index to start from in the children array
|
|
33108
|
+
* @param amount - the amount of children that will have their rotation uploaded
|
|
33109
|
+
* @param array - The vertices to upload.
|
|
33110
|
+
* @param stride - Stride to use for iteration.
|
|
33111
|
+
* @param offset - Offset to start at.
|
|
33224
33112
|
*/
|
|
33225
33113
|
ParticleRenderer.prototype.uploadUvs = function (children, startIndex, amount, array, stride, offset) {
|
|
33226
33114
|
for (var i = 0; i < amount; ++i) {
|
|
@@ -33253,12 +33141,12 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33253
33141
|
/**
|
|
33254
33142
|
* Uploads the tint.
|
|
33255
33143
|
*
|
|
33256
|
-
* @param
|
|
33257
|
-
* @param
|
|
33258
|
-
* @param
|
|
33259
|
-
* @param
|
|
33260
|
-
* @param
|
|
33261
|
-
* @param
|
|
33144
|
+
* @param children - the array of display objects to render
|
|
33145
|
+
* @param startIndex - the index to start from in the children array
|
|
33146
|
+
* @param amount - the amount of children that will have their rotation uploaded
|
|
33147
|
+
* @param array - The vertices to upload.
|
|
33148
|
+
* @param stride - Stride to use for iteration.
|
|
33149
|
+
* @param offset - Offset to start at.
|
|
33262
33150
|
*/
|
|
33263
33151
|
ParticleRenderer.prototype.uploadTint = function (children, startIndex, amount, array, stride, offset) {
|
|
33264
33152
|
for (var i = 0; i < amount; ++i) {
|
|
@@ -33275,9 +33163,7 @@ var ParticleRenderer = /** @class */ (function (_super) {
|
|
|
33275
33163
|
offset += stride * 4;
|
|
33276
33164
|
}
|
|
33277
33165
|
};
|
|
33278
|
-
/**
|
|
33279
|
-
* Destroys the ParticleRenderer.
|
|
33280
|
-
*/
|
|
33166
|
+
/** Destroys the ParticleRenderer. */
|
|
33281
33167
|
ParticleRenderer.prototype.destroy = function () {
|
|
33282
33168
|
_super.prototype.destroy.call(this);
|
|
33283
33169
|
if (this.shader) {
|
|
@@ -33307,8 +33193,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33307
33193
|
/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
|
33308
33194
|
/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__);
|
|
33309
33195
|
/*!
|
|
33310
|
-
* @pixi/polyfill - v6.2.
|
|
33311
|
-
* Compiled
|
|
33196
|
+
* @pixi/polyfill - v6.2.2
|
|
33197
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
33312
33198
|
*
|
|
33313
33199
|
* @pixi/polyfill is licensed under the MIT License.
|
|
33314
33200
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33444,8 +33330,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33444
33330
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
33445
33331
|
/* harmony import */ var _pixi_text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/text */ "./node_modules/@pixi/text/dist/esm/text.js");
|
|
33446
33332
|
/*!
|
|
33447
|
-
* @pixi/prepare - v6.2.
|
|
33448
|
-
* Compiled
|
|
33333
|
+
* @pixi/prepare - v6.2.2
|
|
33334
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
33449
33335
|
*
|
|
33450
33336
|
* @pixi/prepare is licensed under the MIT License.
|
|
33451
33337
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34017,8 +33903,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34017
33903
|
/* harmony export */ "Runner": () => (/* binding */ Runner)
|
|
34018
33904
|
/* harmony export */ });
|
|
34019
33905
|
/*!
|
|
34020
|
-
* @pixi/runner - v6.2.
|
|
34021
|
-
* Compiled
|
|
33906
|
+
* @pixi/runner - v6.2.2
|
|
33907
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
34022
33908
|
*
|
|
34023
33909
|
* @pixi/runner is licensed under the MIT License.
|
|
34024
33910
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34225,8 +34111,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34225
34111
|
/* harmony export */ });
|
|
34226
34112
|
/* harmony import */ var ismobilejs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ismobilejs */ "./node_modules/ismobilejs/esm/index.js");
|
|
34227
34113
|
/*!
|
|
34228
|
-
* @pixi/settings - v6.2.
|
|
34229
|
-
* Compiled
|
|
34114
|
+
* @pixi/settings - v6.2.2
|
|
34115
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
34230
34116
|
*
|
|
34231
34117
|
* @pixi/settings is licensed under the MIT License.
|
|
34232
34118
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34289,8 +34175,8 @@ function canUploadSameBuffer() {
|
|
|
34289
34175
|
}
|
|
34290
34176
|
|
|
34291
34177
|
/*!
|
|
34292
|
-
* @pixi/constants - v6.2.
|
|
34293
|
-
* Compiled
|
|
34178
|
+
* @pixi/constants - v6.2.2
|
|
34179
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
34294
34180
|
*
|
|
34295
34181
|
* @pixi/constants is licensed under the MIT License.
|
|
34296
34182
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35089,8 +34975,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35089
34975
|
/* harmony import */ var _pixi_sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pixi/sprite */ "./node_modules/@pixi/sprite/dist/esm/sprite.js");
|
|
35090
34976
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
35091
34977
|
/*!
|
|
35092
|
-
* @pixi/sprite-animated - v6.2.
|
|
35093
|
-
* Compiled
|
|
34978
|
+
* @pixi/sprite-animated - v6.2.2
|
|
34979
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
35094
34980
|
*
|
|
35095
34981
|
* @pixi/sprite-animated is licensed under the MIT License.
|
|
35096
34982
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35463,8 +35349,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35463
35349
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
35464
35350
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
35465
35351
|
/*!
|
|
35466
|
-
* @pixi/sprite-tiling - v6.2.
|
|
35467
|
-
* Compiled
|
|
35352
|
+
* @pixi/sprite-tiling - v6.2.2
|
|
35353
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
35468
35354
|
*
|
|
35469
35355
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
|
35470
35356
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35852,8 +35738,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35852
35738
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
35853
35739
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
35854
35740
|
/*!
|
|
35855
|
-
* @pixi/sprite - v6.2.
|
|
35856
|
-
* Compiled
|
|
35741
|
+
* @pixi/sprite - v6.2.2
|
|
35742
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
35857
35743
|
*
|
|
35858
35744
|
* @pixi/sprite is licensed under the MIT License.
|
|
35859
35745
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36114,17 +36000,20 @@ var Sprite = /** @class */ (function (_super) {
|
|
|
36114
36000
|
Sprite.prototype.getLocalBounds = function (rect) {
|
|
36115
36001
|
// we can do a fast local bounds if the sprite has no children!
|
|
36116
36002
|
if (this.children.length === 0) {
|
|
36117
|
-
|
|
36118
|
-
|
|
36119
|
-
|
|
36120
|
-
this.
|
|
36003
|
+
if (!this._localBounds) {
|
|
36004
|
+
this._localBounds = new _pixi_display__WEBPACK_IMPORTED_MODULE_2__.Bounds();
|
|
36005
|
+
}
|
|
36006
|
+
this._localBounds.minX = this._texture.orig.width * -this._anchor._x;
|
|
36007
|
+
this._localBounds.minY = this._texture.orig.height * -this._anchor._y;
|
|
36008
|
+
this._localBounds.maxX = this._texture.orig.width * (1 - this._anchor._x);
|
|
36009
|
+
this._localBounds.maxY = this._texture.orig.height * (1 - this._anchor._y);
|
|
36121
36010
|
if (!rect) {
|
|
36122
36011
|
if (!this._localBoundsRect) {
|
|
36123
36012
|
this._localBoundsRect = new _pixi_math__WEBPACK_IMPORTED_MODULE_3__.Rectangle();
|
|
36124
36013
|
}
|
|
36125
36014
|
rect = this._localBoundsRect;
|
|
36126
36015
|
}
|
|
36127
|
-
return this.
|
|
36016
|
+
return this._localBounds.getRectangle(rect);
|
|
36128
36017
|
}
|
|
36129
36018
|
return _super.prototype.getLocalBounds.call(this, rect);
|
|
36130
36019
|
};
|
|
@@ -36332,8 +36221,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36332
36221
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
36333
36222
|
/* harmony import */ var _pixi_loaders__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/loaders */ "./node_modules/@pixi/loaders/dist/esm/loaders.js");
|
|
36334
36223
|
/*!
|
|
36335
|
-
* @pixi/spritesheet - v6.2.
|
|
36336
|
-
* Compiled
|
|
36224
|
+
* @pixi/spritesheet - v6.2.2
|
|
36225
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
36337
36226
|
*
|
|
36338
36227
|
* @pixi/spritesheet is licensed under the MIT License.
|
|
36339
36228
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36679,8 +36568,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36679
36568
|
/* harmony import */ var _pixi_display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @pixi/display */ "./node_modules/@pixi/display/dist/esm/display.js");
|
|
36680
36569
|
/* harmony import */ var _pixi_loaders__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @pixi/loaders */ "./node_modules/@pixi/loaders/dist/esm/loaders.js");
|
|
36681
36570
|
/*!
|
|
36682
|
-
* @pixi/text-bitmap - v6.2.
|
|
36683
|
-
* Compiled
|
|
36571
|
+
* @pixi/text-bitmap - v6.2.2
|
|
36572
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
36684
36573
|
*
|
|
36685
36574
|
* @pixi/text-bitmap is licensed under the MIT License.
|
|
36686
36575
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37105,13 +36994,15 @@ function drawGlyph(canvas, context, metrics, x, y, resolution, style) {
|
|
|
37105
36994
|
// set canvas text styles
|
|
37106
36995
|
context.fillStyle = generateFillStyle(canvas, context, style, resolution, [char], metrics);
|
|
37107
36996
|
context.strokeStyle = style.stroke;
|
|
37108
|
-
var dropShadowColor = style.dropShadowColor;
|
|
37109
|
-
var rgb = (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.hex2rgb)(typeof dropShadowColor === 'number' ? dropShadowColor : (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.string2hex)(dropShadowColor));
|
|
37110
36997
|
if (style.dropShadow) {
|
|
36998
|
+
var dropShadowColor = style.dropShadowColor;
|
|
36999
|
+
var rgb = (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.hex2rgb)(typeof dropShadowColor === 'number' ? dropShadowColor : (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_3__.string2hex)(dropShadowColor));
|
|
37000
|
+
var dropShadowBlur = style.dropShadowBlur * resolution;
|
|
37001
|
+
var dropShadowDistance = style.dropShadowDistance * resolution;
|
|
37111
37002
|
context.shadowColor = "rgba(" + rgb[0] * 255 + "," + rgb[1] * 255 + "," + rgb[2] * 255 + "," + style.dropShadowAlpha + ")";
|
|
37112
|
-
context.shadowBlur =
|
|
37113
|
-
context.shadowOffsetX = Math.cos(style.dropShadowAngle) *
|
|
37114
|
-
context.shadowOffsetY = Math.sin(style.dropShadowAngle) *
|
|
37003
|
+
context.shadowBlur = dropShadowBlur;
|
|
37004
|
+
context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance;
|
|
37005
|
+
context.shadowOffsetY = Math.sin(style.dropShadowAngle) * dropShadowDistance;
|
|
37115
37006
|
}
|
|
37116
37007
|
else {
|
|
37117
37008
|
context.shadowColor = 'black';
|
|
@@ -38301,8 +38192,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38301
38192
|
/* harmony import */ var _pixi_math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/math */ "./node_modules/@pixi/math/dist/esm/math.js");
|
|
38302
38193
|
/* harmony import */ var _pixi_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/utils */ "./node_modules/@pixi/utils/dist/esm/utils.js");
|
|
38303
38194
|
/*!
|
|
38304
|
-
* @pixi/text - v6.2.
|
|
38305
|
-
* Compiled
|
|
38195
|
+
* @pixi/text - v6.2.2
|
|
38196
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
38306
38197
|
*
|
|
38307
38198
|
* @pixi/text is licensed under the MIT License.
|
|
38308
38199
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -39806,10 +39697,12 @@ var Text = /** @class */ (function (_super) {
|
|
|
39806
39697
|
context.strokeStyle = 'black';
|
|
39807
39698
|
var dropShadowColor = style.dropShadowColor;
|
|
39808
39699
|
var rgb = (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_4__.hex2rgb)(typeof dropShadowColor === 'number' ? dropShadowColor : (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_4__.string2hex)(dropShadowColor));
|
|
39700
|
+
var dropShadowBlur = style.dropShadowBlur * this._resolution;
|
|
39701
|
+
var dropShadowDistance = style.dropShadowDistance * this._resolution;
|
|
39809
39702
|
context.shadowColor = "rgba(" + rgb[0] * 255 + "," + rgb[1] * 255 + "," + rgb[2] * 255 + "," + style.dropShadowAlpha + ")";
|
|
39810
|
-
context.shadowBlur =
|
|
39811
|
-
context.shadowOffsetX = Math.cos(style.dropShadowAngle) *
|
|
39812
|
-
context.shadowOffsetY = (Math.sin(style.dropShadowAngle) *
|
|
39703
|
+
context.shadowBlur = dropShadowBlur;
|
|
39704
|
+
context.shadowOffsetX = Math.cos(style.dropShadowAngle) * dropShadowDistance;
|
|
39705
|
+
context.shadowOffsetY = (Math.sin(style.dropShadowAngle) * dropShadowDistance) + dsOffsetShadow;
|
|
39813
39706
|
}
|
|
39814
39707
|
else {
|
|
39815
39708
|
// set canvas text styles
|
|
@@ -39899,7 +39792,11 @@ var Text = /** @class */ (function (_super) {
|
|
|
39899
39792
|
else {
|
|
39900
39793
|
this.context.fillText(currentChar, currentPosition, y);
|
|
39901
39794
|
}
|
|
39902
|
-
|
|
39795
|
+
var textStr = '';
|
|
39796
|
+
for (var j = i + 1; j < stringArray.length; ++j) {
|
|
39797
|
+
textStr += stringArray[j];
|
|
39798
|
+
}
|
|
39799
|
+
currentWidth = this.context.measureText(textStr).width;
|
|
39903
39800
|
currentPosition += previousWidth - currentWidth + letterSpacing;
|
|
39904
39801
|
previousWidth = currentWidth;
|
|
39905
39802
|
}
|
|
@@ -40222,8 +40119,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40222
40119
|
/* harmony export */ });
|
|
40223
40120
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
40224
40121
|
/*!
|
|
40225
|
-
* @pixi/ticker - v6.2.
|
|
40226
|
-
* Compiled
|
|
40122
|
+
* @pixi/ticker - v6.2.2
|
|
40123
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
40227
40124
|
*
|
|
40228
40125
|
* @pixi/ticker is licensed under the MIT License.
|
|
40229
40126
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -40435,7 +40332,7 @@ var Ticker = /** @class */ (function () {
|
|
|
40435
40332
|
this._maxElapsedMS = 100;
|
|
40436
40333
|
/**
|
|
40437
40334
|
* Internal value managed by minFPS property setter and getter.
|
|
40438
|
-
* This is the
|
|
40335
|
+
* This is the minimum allowed milliseconds between updates.
|
|
40439
40336
|
*/
|
|
40440
40337
|
this._minElapsedMS = 0;
|
|
40441
40338
|
/** If enabled, deleting is disabled.*/
|
|
@@ -41027,8 +40924,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41027
40924
|
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url */ "./node_modules/url/url.js");
|
|
41028
40925
|
/* harmony import */ var _pixi_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pixi/constants */ "./node_modules/@pixi/constants/dist/esm/constants.js");
|
|
41029
40926
|
/*!
|
|
41030
|
-
* @pixi/utils - v6.2.
|
|
41031
|
-
* Compiled
|
|
40927
|
+
* @pixi/utils - v6.2.2
|
|
40928
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
41032
40929
|
*
|
|
41033
40930
|
* @pixi/utils is licensed under the MIT License.
|
|
41034
40931
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -41092,7 +40989,7 @@ _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.RETINA_PREFIX = /@([0-9\.]+
|
|
|
41092
40989
|
_pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
|
|
41093
40990
|
|
|
41094
40991
|
var saidHello = false;
|
|
41095
|
-
var VERSION = '6.2.
|
|
40992
|
+
var VERSION = '6.2.2';
|
|
41096
40993
|
/**
|
|
41097
40994
|
* Skips the hello message of renderers that are created after this is run.
|
|
41098
40995
|
*
|
|
@@ -49158,8 +49055,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49158
49055
|
/* harmony import */ var _pixi_text__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @pixi/text */ "./node_modules/@pixi/text/dist/esm/text.js");
|
|
49159
49056
|
/* harmony import */ var _pixi_settings__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @pixi/settings */ "./node_modules/@pixi/settings/dist/esm/settings.js");
|
|
49160
49057
|
/*!
|
|
49161
|
-
* pixi.js - v6.2.
|
|
49162
|
-
* Compiled
|
|
49058
|
+
* pixi.js - v6.2.2
|
|
49059
|
+
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
|
|
49163
49060
|
*
|
|
49164
49061
|
* pixi.js is licensed under the MIT License.
|
|
49165
49062
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -49240,7 +49137,7 @@ _pixi_app__WEBPACK_IMPORTED_MODULE_4__.Application.registerPlugin(_pixi_loaders_
|
|
|
49240
49137
|
* @name VERSION
|
|
49241
49138
|
* @type {string}
|
|
49242
49139
|
*/
|
|
49243
|
-
var VERSION = '6.2.
|
|
49140
|
+
var VERSION = '6.2.2';
|
|
49244
49141
|
/**
|
|
49245
49142
|
* @namespace PIXI
|
|
49246
49143
|
*/
|
|
@@ -66337,63 +66234,10 @@ function getExt(p) { return (p.match(REG_EXT) ?? [''])[1]; }
|
|
|
66337
66234
|
exports.getExt = getExt;
|
|
66338
66235
|
const platform = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js");
|
|
66339
66236
|
class CmnLib {
|
|
66340
|
-
static cvsResize(cvs) {
|
|
66341
|
-
const bk_cw = CmnLib.cvsWidth;
|
|
66342
|
-
const bk_ch = CmnLib.cvsHeight;
|
|
66343
|
-
let w = globalThis.innerWidth;
|
|
66344
|
-
let h = globalThis.innerHeight;
|
|
66345
|
-
const angle = screen.orientation?.angle ?? 0;
|
|
66346
|
-
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
66347
|
-
if (CmnLib.isMobile &&
|
|
66348
|
-
((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
66349
|
-
[w, h] = [h, w];
|
|
66350
|
-
if (argChk_Boolean(CmnLib.hDip, 'expanding', true) ||
|
|
66351
|
-
CmnLib.stageW > w ||
|
|
66352
|
-
CmnLib.stageH > h) {
|
|
66353
|
-
if (CmnLib.stageW / CmnLib.stageH <= w / h) {
|
|
66354
|
-
CmnLib.cvsHeight = h;
|
|
66355
|
-
CmnLib.cvsWidth = CmnLib.stageW / CmnLib.stageH * h;
|
|
66356
|
-
}
|
|
66357
|
-
else {
|
|
66358
|
-
CmnLib.cvsWidth = w;
|
|
66359
|
-
CmnLib.cvsHeight = CmnLib.stageH / CmnLib.stageW * w;
|
|
66360
|
-
}
|
|
66361
|
-
CmnLib.cvsScale = CmnLib.cvsWidth / CmnLib.stageW;
|
|
66362
|
-
const cr = cvs.getBoundingClientRect();
|
|
66363
|
-
CmnLib.ofsPadLeft_Dom2PIXI = (CmnLib.isMobile
|
|
66364
|
-
? (globalThis.innerWidth - CmnLib.cvsWidth) / 2
|
|
66365
|
-
: cr.left)
|
|
66366
|
-
* (1 - CmnLib.cvsScale);
|
|
66367
|
-
CmnLib.ofsPadTop_Dom2PIXI = (CmnLib.isMobile
|
|
66368
|
-
? (globalThis.innerHeight - CmnLib.cvsHeight) / 2
|
|
66369
|
-
: cr.top)
|
|
66370
|
-
* (1 - CmnLib.cvsScale);
|
|
66371
|
-
}
|
|
66372
|
-
else {
|
|
66373
|
-
CmnLib.cvsWidth = CmnLib.stageW;
|
|
66374
|
-
CmnLib.cvsHeight = CmnLib.stageH;
|
|
66375
|
-
CmnLib.cvsScale = 1;
|
|
66376
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
66377
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
66378
|
-
}
|
|
66379
|
-
if (cvs.parentElement) {
|
|
66380
|
-
const ps = cvs.parentElement.style;
|
|
66381
|
-
ps.position = 'relative';
|
|
66382
|
-
const s = cvs.style;
|
|
66383
|
-
ps.width = s.width = `${CmnLib.cvsWidth}px`;
|
|
66384
|
-
ps.height = s.height = `${CmnLib.cvsHeight}px`;
|
|
66385
|
-
}
|
|
66386
|
-
return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
|
|
66387
|
-
}
|
|
66388
66237
|
}
|
|
66389
66238
|
exports.CmnLib = CmnLib;
|
|
66390
66239
|
CmnLib.stageW = 0;
|
|
66391
66240
|
CmnLib.stageH = 0;
|
|
66392
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
66393
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
66394
|
-
CmnLib.cvsWidth = 0;
|
|
66395
|
-
CmnLib.cvsHeight = 0;
|
|
66396
|
-
CmnLib.cvsScale = 1;
|
|
66397
66241
|
CmnLib.debugLog = false;
|
|
66398
66242
|
CmnLib.isSafari = platform.name === 'Safari';
|
|
66399
66243
|
CmnLib.isFirefox = platform.name === 'Firefox';
|
|
@@ -66402,10 +66246,7 @@ CmnLib.isMobile = !new RegExp('(Windows|OS X)').test(platform.os?.family ?? '');
|
|
|
66402
66246
|
CmnLib.hDip = {};
|
|
66403
66247
|
CmnLib.isDbg = false;
|
|
66404
66248
|
CmnLib.isPackaged = false;
|
|
66405
|
-
CmnLib.isRetina = false;
|
|
66406
66249
|
CmnLib.isDarkMode = false;
|
|
66407
|
-
CmnLib.retinaRate = 1;
|
|
66408
|
-
CmnLib.SN_ID = 'skynovel';
|
|
66409
66250
|
|
|
66410
66251
|
|
|
66411
66252
|
/***/ }),
|
|
@@ -66874,7 +66715,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
66874
66715
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
66875
66716
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
66876
66717
|
};
|
|
66877
|
-
var _DesignCast_instances, _a, _DesignCast_divDesignRoot,
|
|
66718
|
+
var _DesignCast_instances, _a, _DesignCast_divDesignRoot, _DesignCast_scrItr, _DesignCast_alzTagArg, _DesignCast_cfg, _DesignCast_ID_DESIGNMODE, _DesignCast_cntDesignCast, _DesignCast_hId2dc, _DesignCast_aDC, _DesignCast_resizeDiv, _GrpLayDesignCast_sp, _TxtLayPadDesignCast_instances, _TxtLayPadDesignCast_procHint, _PicBtnDesignCast_sp;
|
|
66878
66719
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
66879
66720
|
exports.PicBtnDesignCast = exports.TxtBtnDesignCast = exports.BtnDesignCast = exports.TxtLayPadDesignCast = exports.TxtLayDesignCast = exports.GrpLayDesignCast = exports.DesignCast = void 0;
|
|
66880
66721
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -66918,11 +66759,11 @@ class DesignCast {
|
|
|
66918
66759
|
this.rotatable = true;
|
|
66919
66760
|
}
|
|
66920
66761
|
static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
|
|
66921
|
-
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW *
|
|
66762
|
+
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * sys.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
|
|
66922
66763
|
__classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
|
|
66923
66764
|
DesignCast.divHint.classList.add('sn_design_hint');
|
|
66924
|
-
|
|
66925
|
-
|
|
66765
|
+
appPixi.view.parentElement.appendChild(DesignCast.divHint);
|
|
66766
|
+
DesignCast.sys = sys;
|
|
66926
66767
|
__classPrivateFieldSet(DesignCast, _a, scrItr, "f", _DesignCast_scrItr);
|
|
66927
66768
|
DesignCast.prpPrs = prpPrs;
|
|
66928
66769
|
__classPrivateFieldSet(DesignCast, _a, alzTagArg, "f", _DesignCast_alzTagArg);
|
|
@@ -66965,8 +66806,8 @@ class DesignCast {
|
|
|
66965
66806
|
}
|
|
66966
66807
|
static cvsResizeDesign() {
|
|
66967
66808
|
const s = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_divDesignRoot).style;
|
|
66968
|
-
s.width = `${CmnLib_1.CmnLib.stageW *
|
|
66969
|
-
s.height = `${CmnLib_1.CmnLib.stageH *
|
|
66809
|
+
s.width = `${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px`;
|
|
66810
|
+
s.height = `${CmnLib_1.CmnLib.stageH * DesignCast.sys.cvsScale}px`;
|
|
66970
66811
|
}
|
|
66971
66812
|
destroy() {
|
|
66972
66813
|
this.div = undefined;
|
|
@@ -67046,8 +66887,8 @@ class DesignCast {
|
|
|
67046
66887
|
const procStart = () => {
|
|
67047
66888
|
tmp.aPos = [NaN, NaN];
|
|
67048
66889
|
tmp.roDeg = this.rotation;
|
|
67049
|
-
const dpx = this.pivot.x *
|
|
67050
|
-
const dpy = this.pivot.y *
|
|
66890
|
+
const dpx = this.pivot.x * DesignCast.sys.cvsScale;
|
|
66891
|
+
const dpy = this.pivot.y * DesignCast.sys.cvsScale;
|
|
67051
66892
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
67052
66893
|
tmp.origin = [dpx, dpy];
|
|
67053
66894
|
Object.assign(this.mov, {
|
|
@@ -67056,7 +66897,7 @@ class DesignCast {
|
|
|
67056
66897
|
});
|
|
67057
66898
|
};
|
|
67058
66899
|
const procEnd = (o) => {
|
|
67059
|
-
|
|
66900
|
+
DesignCast.sys.send2Dbg('_changeCast', {
|
|
67060
66901
|
...o, ':id_tag': this.id_tag,
|
|
67061
66902
|
});
|
|
67062
66903
|
DesignCast.divHint.style.display = 'none';
|
|
@@ -67067,8 +66908,8 @@ class DesignCast {
|
|
|
67067
66908
|
DesignCast.divHint.style.display = 'none';
|
|
67068
66909
|
return;
|
|
67069
66910
|
}
|
|
67070
|
-
const ix = (0, CmnLib_1.int)(this.rect.x += dx /
|
|
67071
|
-
const iy = (0, CmnLib_1.int)(this.rect.y += dy /
|
|
66911
|
+
const ix = (0, CmnLib_1.int)(this.rect.x += dx / DesignCast.sys.cvsScale + this.pivot.x);
|
|
66912
|
+
const iy = (0, CmnLib_1.int)(this.rect.y += dy / DesignCast.sys.cvsScale + this.pivot.y);
|
|
67072
66913
|
this.setPos(ix, iy);
|
|
67073
66914
|
const iw = (0, CmnLib_1.uint)(this.rect.width), ih = (0, CmnLib_1.uint)(this.rect.height);
|
|
67074
66915
|
this.setSize(iw, ih);
|
|
@@ -67112,8 +66953,8 @@ class DesignCast {
|
|
|
67112
66953
|
d.style.width = `${e.width}px`;
|
|
67113
66954
|
d.style.height = `${e.height}px`;
|
|
67114
66955
|
tmp.aPos = e.drag.beforeTranslate;
|
|
67115
|
-
this.rect.width = e.width /
|
|
67116
|
-
this.rect.height = e.height /
|
|
66956
|
+
this.rect.width = e.width / DesignCast.sys.cvsScale;
|
|
66957
|
+
this.rect.height = e.height / DesignCast.sys.cvsScale;
|
|
67117
66958
|
this.procResizeHint(e, e.drag.left, e.drag.top);
|
|
67118
66959
|
})
|
|
67119
66960
|
.on('resizeEnd', resizeEnd)
|
|
@@ -67135,8 +66976,8 @@ class DesignCast {
|
|
|
67135
66976
|
.on('dragOriginEnd', () => {
|
|
67136
66977
|
const [dpx, dpy] = tmp.origin;
|
|
67137
66978
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
67138
|
-
const px = this.pivot.x = dpx /
|
|
67139
|
-
const py = this.pivot.y = dpy /
|
|
66979
|
+
const px = this.pivot.x = dpx / DesignCast.sys.cvsScale;
|
|
66980
|
+
const py = this.pivot.y = dpy / DesignCast.sys.cvsScale;
|
|
67140
66981
|
this.setOther({});
|
|
67141
66982
|
const ix = (0, CmnLib_1.int)(this.rect.x + px);
|
|
67142
66983
|
const iy = (0, CmnLib_1.int)(this.rect.y + py);
|
|
@@ -67184,18 +67025,18 @@ class DesignCast {
|
|
|
67184
67025
|
o.url = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_scrItr).cnvPath4Dbg(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_cfg).searchPath(f.name, Config_1.Config.EXT_SPRITE));
|
|
67185
67026
|
}
|
|
67186
67027
|
catch { }
|
|
67187
|
-
|
|
67028
|
+
DesignCast.sys.send2Dbg('_dropFile', o);
|
|
67188
67029
|
})
|
|
67189
67030
|
.catch(e => console.error(`drop2dc %o`, e));
|
|
67190
67031
|
});
|
|
67191
67032
|
d.addEventListener('dblclick', e => {
|
|
67192
67033
|
e.preventDefault();
|
|
67193
|
-
|
|
67034
|
+
DesignCast.sys.send2Dbg('_focusScript', this.hArg);
|
|
67194
67035
|
});
|
|
67195
67036
|
}
|
|
67196
67037
|
procDragHint(e, left, top) {
|
|
67197
67038
|
const [dx, dy] = e.beforeTranslate;
|
|
67198
|
-
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx /
|
|
67039
|
+
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx / DesignCast.sys.cvsScale)}, ${(0, CmnLib_1.int)(this.rect.y + dy / DesignCast.sys.cvsScale)})`, left, top, this);
|
|
67199
67040
|
}
|
|
67200
67041
|
procResizeHint(e, left, top) {
|
|
67201
67042
|
DesignCast.setHint(`(${(0, CmnLib_1.int)(e.drag.left)}, ${(0, CmnLib_1.int)(e.drag.top)})<br/>${(0, CmnLib_1.int)(this.rect.width)} x ${(0, CmnLib_1.int)(this.rect.height)}`, left, top, this);
|
|
@@ -67261,16 +67102,15 @@ _a = DesignCast, _DesignCast_instances = new WeakSet(), _DesignCast_resizeDiv =
|
|
|
67261
67102
|
this.fncLay();
|
|
67262
67103
|
if (this.div)
|
|
67263
67104
|
Object.assign(this.div.style, {
|
|
67264
|
-
left: `${this.lx + this.rect.x *
|
|
67265
|
-
top: `${this.ly + this.rect.y *
|
|
67266
|
-
width: `${this.rect.width *
|
|
67267
|
-
height: `${this.rect.height *
|
|
67268
|
-
transformOrigin: `${this.pivot.x *
|
|
67105
|
+
left: `${this.lx + this.rect.x * DesignCast.sys.cvsScale}px`,
|
|
67106
|
+
top: `${this.ly + this.rect.y * DesignCast.sys.cvsScale}px`,
|
|
67107
|
+
width: `${this.rect.width * DesignCast.sys.cvsScale}px`,
|
|
67108
|
+
height: `${this.rect.height * DesignCast.sys.cvsScale}px`,
|
|
67109
|
+
transformOrigin: `${this.pivot.x * DesignCast.sys.cvsScale}px ${this.pivot.y * DesignCast.sys.cvsScale}px`,
|
|
67269
67110
|
transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`,
|
|
67270
67111
|
});
|
|
67271
67112
|
};
|
|
67272
67113
|
_DesignCast_divDesignRoot = { value: void 0 };
|
|
67273
|
-
_DesignCast_sys = { value: void 0 };
|
|
67274
67114
|
_DesignCast_scrItr = { value: void 0 };
|
|
67275
67115
|
_DesignCast_alzTagArg = { value: void 0 };
|
|
67276
67116
|
_DesignCast_cfg = { value: void 0 };
|
|
@@ -67404,8 +67244,8 @@ _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint =
|
|
|
67404
67244
|
const x = this.rect.x, y = this.rect.y;
|
|
67405
67245
|
const w = this.rect.width, h = this.rect.height;
|
|
67406
67246
|
const it = this.ts.infTL;
|
|
67407
|
-
const pl = (0, CmnLib_1.int)(x + dx /
|
|
67408
|
-
const pt = (0, CmnLib_1.int)(y + dy /
|
|
67247
|
+
const pl = (0, CmnLib_1.int)(x + dx / DesignCast.sys.cvsScale);
|
|
67248
|
+
const pt = (0, CmnLib_1.int)(y + dy / DesignCast.sys.cvsScale);
|
|
67409
67249
|
const pr = (0, CmnLib_1.int)(it.$width - pl - w);
|
|
67410
67250
|
const pb = (0, CmnLib_1.int)(it.$height - pt - h);
|
|
67411
67251
|
const sp = (re) => ' '.repeat(re);
|
|
@@ -67432,8 +67272,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
67432
67272
|
this.fncLay = (!this.parent && !this.child && layer)
|
|
67433
67273
|
? () => {
|
|
67434
67274
|
const f = DesignCast.hPages[layer].fore;
|
|
67435
|
-
this.lx = f.x *
|
|
67436
|
-
this.ly = f.y *
|
|
67275
|
+
this.lx = f.x * DesignCast.sys.cvsScale;
|
|
67276
|
+
this.ly = f.y * DesignCast.sys.cvsScale;
|
|
67437
67277
|
}
|
|
67438
67278
|
: () => { };
|
|
67439
67279
|
}
|
|
@@ -67448,8 +67288,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
67448
67288
|
onDragStart() {
|
|
67449
67289
|
const aBtn = this.btn.parent.children.filter(b => b !== this.btn);
|
|
67450
67290
|
Object.assign(this.mov, {
|
|
67451
|
-
verticalGuidelines: aBtn.map(b => this.lx + b.x *
|
|
67452
|
-
horizontalGuidelines: aBtn.map(b => this.ly + b.y *
|
|
67291
|
+
verticalGuidelines: aBtn.map(b => this.lx + b.x * DesignCast.sys.cvsScale),
|
|
67292
|
+
horizontalGuidelines: aBtn.map(b => this.ly + b.y * DesignCast.sys.cvsScale),
|
|
67453
67293
|
});
|
|
67454
67294
|
}
|
|
67455
67295
|
}
|
|
@@ -67679,7 +67519,7 @@ class EventMng {
|
|
|
67679
67519
|
hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
|
|
67680
67520
|
sndMng.setEvtMng(this);
|
|
67681
67521
|
scrItr.setOtherObj(this, layMng);
|
|
67682
|
-
TxtLayer_1.TxtLayer.setEvtMng(main, this);
|
|
67522
|
+
TxtLayer_1.TxtLayer.setEvtMng(main, this, sys);
|
|
67683
67523
|
layMng.setEvtMng(this);
|
|
67684
67524
|
sys.setFire((KEY, e) => this.fire(KEY, e));
|
|
67685
67525
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
@@ -67715,9 +67555,8 @@ class EventMng {
|
|
|
67715
67555
|
catch { }
|
|
67716
67556
|
const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
|
|
67717
67557
|
if (ctx) {
|
|
67718
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
67719
67558
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
|
|
67720
|
-
|
|
67559
|
+
appPixi.view.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
67721
67560
|
const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
|
|
67722
67561
|
s.position = 'absolute';
|
|
67723
67562
|
s.left = s.top = '0';
|
|
@@ -68102,11 +67941,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68102
67941
|
const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
|
|
68103
67942
|
const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
|
|
68104
67943
|
const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
|
|
68105
|
-
|
|
68106
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.
|
|
68107
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
|
|
67944
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4elm + rctBtn.x * this.sys.cvsScale}px`;
|
|
67945
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4elm + rctBtn.y * this.sys.cvsScale}px`;
|
|
68108
67946
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
|
|
68109
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x *
|
|
67947
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * this.sys.cvsScale}, ${this.sys.cvsScale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
|
|
68110
67948
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
|
|
68111
67949
|
if (masume)
|
|
68112
67950
|
__classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
|
|
@@ -68275,7 +68113,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68275
68113
|
}, "f");
|
|
68276
68114
|
return false;
|
|
68277
68115
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
68278
|
-
const add = hArg
|
|
68116
|
+
const { add, del, to } = hArg;
|
|
68279
68117
|
if (add?.slice(0, 4) === 'dom=') {
|
|
68280
68118
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
|
|
68281
68119
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -68288,7 +68126,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68288
68126
|
}, () => { }));
|
|
68289
68127
|
return false;
|
|
68290
68128
|
}
|
|
68291
|
-
const del = hArg.del;
|
|
68292
68129
|
if (del?.slice(0, 4) === 'dom=') {
|
|
68293
68130
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
|
|
68294
68131
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -68296,7 +68133,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68296
68133
|
g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
|
|
68297
68134
|
return false;
|
|
68298
68135
|
}
|
|
68299
|
-
const to = hArg.to;
|
|
68300
68136
|
if (!to)
|
|
68301
68137
|
throw '[set_focus] add か to は必須です';
|
|
68302
68138
|
switch (to) {
|
|
@@ -68607,40 +68443,34 @@ class FrameMng {
|
|
|
68607
68443
|
}
|
|
68608
68444
|
getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
|
|
68609
68445
|
cvsResize() {
|
|
68610
|
-
const
|
|
68611
|
-
|
|
68612
|
-
const
|
|
68613
|
-
const x = Number(this.val.getVal(
|
|
68614
|
-
const y = Number(this.val.getVal(
|
|
68615
|
-
const w = Number(this.val.getVal(
|
|
68616
|
-
const h = Number(this.val.getVal(
|
|
68617
|
-
f.style.left = this.sys.
|
|
68618
|
-
f.style.top = this.sys.
|
|
68619
|
-
f.width = String(w *
|
|
68620
|
-
f.height = String(h *
|
|
68446
|
+
for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
|
|
68447
|
+
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
|
|
68448
|
+
const vn = 'const.sn.frm.' + id;
|
|
68449
|
+
const x = Number(this.val.getVal(vn + '.x'));
|
|
68450
|
+
const y = Number(this.val.getVal(vn + '.y'));
|
|
68451
|
+
const w = Number(this.val.getVal(vn + '.width'));
|
|
68452
|
+
const h = Number(this.val.getVal(vn + '.height'));
|
|
68453
|
+
f.style.left = `${this.sys.ofsLeft4elm + x * this.sys.cvsScale}px`;
|
|
68454
|
+
f.style.top = `${this.sys.ofsTop4elm + y * this.sys.cvsScale}px`;
|
|
68455
|
+
f.width = String(w * this.sys.cvsScale);
|
|
68456
|
+
f.height = String(h * this.sys.cvsScale);
|
|
68621
68457
|
}
|
|
68622
68458
|
}
|
|
68623
68459
|
}
|
|
68624
68460
|
exports.FrameMng = FrameMng;
|
|
68625
68461
|
_FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
|
|
68626
|
-
const id = hArg
|
|
68462
|
+
const { id, src, alpha: a = 1, scale_x: sx = 1, scale_y: sy = 1, rotate: r = 0, } = hArg;
|
|
68627
68463
|
if (!id)
|
|
68628
68464
|
throw 'idは必須です';
|
|
68629
|
-
const src = hArg.src;
|
|
68630
68465
|
if (!src)
|
|
68631
68466
|
throw 'srcは必須です';
|
|
68632
|
-
const
|
|
68633
|
-
if (this.val.getVal(`tmp:${
|
|
68467
|
+
const vn = 'const.sn.frm.' + id;
|
|
68468
|
+
if (this.val.getVal(`tmp:${vn}`))
|
|
68634
68469
|
throw `frame【${id}】はすでにあります`;
|
|
68635
|
-
const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
|
|
68636
|
-
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
68637
|
-
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
68638
|
-
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
68639
68470
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68640
68471
|
const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
|
|
68641
68472
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68642
|
-
|
|
68643
|
-
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4frm + rct.x * scl}px; top: ${this.sys.ofsTop4frm + rct.y * scl}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * scl}" height="${rct.height * scl}"></iframe>`);
|
|
68473
|
+
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4elm + rct.x * this.sys.cvsScale}px; top: ${this.sys.ofsTop4elm + rct.y * this.sys.cvsScale}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * this.sys.cvsScale}" height="${rct.height * this.sys.cvsScale}"></iframe>`);
|
|
68644
68474
|
const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
|
|
68645
68475
|
const ld = (new pixi_js_1.Loader())
|
|
68646
68476
|
.add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
@@ -68664,16 +68494,16 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68664
68494
|
? this.sys.cur + p2.slice(4)
|
|
68665
68495
|
: v.replace(p1, p1 + url.slice(0, url.lastIndexOf('/') + 1)));
|
|
68666
68496
|
ifrm.onload = () => {
|
|
68667
|
-
this.val.setVal_Nochk('tmp',
|
|
68668
|
-
this.val.setVal_Nochk('tmp',
|
|
68669
|
-
this.val.setVal_Nochk('tmp',
|
|
68670
|
-
this.val.setVal_Nochk('tmp',
|
|
68671
|
-
this.val.setVal_Nochk('tmp',
|
|
68672
|
-
this.val.setVal_Nochk('tmp',
|
|
68673
|
-
this.val.setVal_Nochk('tmp',
|
|
68674
|
-
this.val.setVal_Nochk('tmp',
|
|
68675
|
-
this.val.setVal_Nochk('tmp',
|
|
68676
|
-
this.val.setVal_Nochk('tmp',
|
|
68497
|
+
this.val.setVal_Nochk('tmp', vn, true);
|
|
68498
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68499
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68500
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68501
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
68502
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
68503
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68504
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68505
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68506
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
68677
68507
|
const win = ifrm.contentWindow;
|
|
68678
68508
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
68679
68509
|
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
@@ -68686,131 +68516,125 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68686
68516
|
const re = this.sys.resolution;
|
|
68687
68517
|
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);
|
|
68688
68518
|
}, _FrameMng_let_frame = function _FrameMng_let_frame(hArg) {
|
|
68689
|
-
const id = hArg
|
|
68519
|
+
const { id, var_name } = hArg;
|
|
68690
68520
|
if (!id)
|
|
68691
68521
|
throw 'idは必須です';
|
|
68692
|
-
const
|
|
68693
|
-
if (!
|
|
68522
|
+
const f = document.getElementById(id);
|
|
68523
|
+
if (!f)
|
|
68694
68524
|
throw `id【${id}】はフレームではありません`;
|
|
68695
|
-
const
|
|
68696
|
-
if (!this.val.getVal(`tmp:${
|
|
68525
|
+
const vn = 'const.sn.frm.' + id;
|
|
68526
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
68697
68527
|
throw `frame【${id}】が読み込まれていません`;
|
|
68698
|
-
const var_name = hArg.var_name;
|
|
68699
68528
|
if (!var_name)
|
|
68700
68529
|
throw 'var_nameは必須です';
|
|
68701
|
-
const win =
|
|
68530
|
+
const win = f.contentWindow;
|
|
68702
68531
|
if (!win.hasOwnProperty(var_name))
|
|
68703
68532
|
throw `frame【${id}】に変数/関数【${var_name}】がありません。変数は var付きにして下さい`;
|
|
68704
68533
|
const v = win[var_name];
|
|
68705
|
-
this.val.setVal_Nochk('tmp',
|
|
68534
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, (0, CmnLib_1.argChk_Boolean)(hArg, 'function', false) ? v() : v);
|
|
68706
68535
|
return false;
|
|
68707
68536
|
}, _FrameMng_set_frame = function _FrameMng_set_frame(hArg) {
|
|
68708
|
-
const id = hArg
|
|
68537
|
+
const { id, var_name, text } = hArg;
|
|
68709
68538
|
if (!id)
|
|
68710
68539
|
throw 'idは必須です';
|
|
68711
|
-
const
|
|
68712
|
-
if (!
|
|
68540
|
+
const f = document.getElementById(id);
|
|
68541
|
+
if (!f)
|
|
68713
68542
|
throw `id【${id}】はフレームではありません`;
|
|
68714
|
-
const
|
|
68715
|
-
if (!this.val.getVal(`tmp:${
|
|
68543
|
+
const vn = 'const.sn.frm.' + id;
|
|
68544
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
68716
68545
|
throw `frame【${id}】が読み込まれていません`;
|
|
68717
|
-
const var_name = hArg.var_name;
|
|
68718
68546
|
if (!var_name)
|
|
68719
68547
|
throw 'var_nameは必須です';
|
|
68720
|
-
const text = hArg.text;
|
|
68721
68548
|
if (!text)
|
|
68722
68549
|
throw 'textは必須です';
|
|
68723
|
-
this.val.setVal_Nochk('tmp',
|
|
68724
|
-
const win =
|
|
68550
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, text);
|
|
68551
|
+
const win = f.contentWindow;
|
|
68725
68552
|
win[var_name] = text;
|
|
68726
68553
|
return false;
|
|
68727
68554
|
}, _FrameMng_frame = function _FrameMng_frame(hArg) {
|
|
68728
68555
|
var _a, _b;
|
|
68729
|
-
const id = hArg
|
|
68556
|
+
const { id } = hArg;
|
|
68730
68557
|
if (!id)
|
|
68731
68558
|
throw 'idは必須です';
|
|
68732
|
-
const
|
|
68733
|
-
if (!
|
|
68559
|
+
const f = document.getElementById(id);
|
|
68560
|
+
if (!f)
|
|
68734
68561
|
throw `id【${id}】はフレームではありません`;
|
|
68735
|
-
const
|
|
68736
|
-
if (!this.val.getVal(
|
|
68562
|
+
const vn = 'const.sn.frm.' + id;
|
|
68563
|
+
if (!this.val.getVal('tmp:' + vn))
|
|
68737
68564
|
throw `frame【${id}】が読み込まれていません`;
|
|
68738
|
-
|
|
68739
|
-
|
|
68740
|
-
|
|
68741
|
-
else if (hArg
|
|
68742
|
-
|
|
68743
|
-
}
|
|
68565
|
+
const s = f.style;
|
|
68566
|
+
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
|
|
68567
|
+
s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
|
|
68568
|
+
else if ('index' in hArg)
|
|
68569
|
+
s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
|
|
68744
68570
|
else if (hArg.dive)
|
|
68745
|
-
|
|
68571
|
+
s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
|
|
68746
68572
|
if ('alpha' in hArg) {
|
|
68747
|
-
const a = String(hArg.alpha);
|
|
68748
|
-
|
|
68749
|
-
this.val.setVal_Nochk('tmp', frmnm + '.alpha', a);
|
|
68573
|
+
const a = s.opacity = String(hArg.alpha);
|
|
68574
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68750
68575
|
}
|
|
68751
68576
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68752
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68753
68577
|
if ('x' in hArg || 'y' in hArg) {
|
|
68754
|
-
|
|
68755
|
-
|
|
68756
|
-
this.val.setVal_Nochk('tmp',
|
|
68757
|
-
this.val.setVal_Nochk('tmp',
|
|
68578
|
+
s.left = `${this.sys.ofsLeft4elm + rct.x * this.sys.cvsScale}px`;
|
|
68579
|
+
s.top = `${this.sys.ofsTop4elm + rct.y * this.sys.cvsScale}px`;
|
|
68580
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68581
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68758
68582
|
}
|
|
68759
68583
|
if ('scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68760
68584
|
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
68761
68585
|
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
68762
68586
|
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
68763
|
-
|
|
68764
|
-
this.val.setVal_Nochk('tmp',
|
|
68765
|
-
this.val.setVal_Nochk('tmp',
|
|
68766
|
-
this.val.setVal_Nochk('tmp',
|
|
68587
|
+
s.transform = `scale(${sx}, ${sy}) rotate(${r}deg)`;
|
|
68588
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
68589
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
68590
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68767
68591
|
}
|
|
68768
68592
|
if ('width' in hArg) {
|
|
68769
|
-
|
|
68770
|
-
this.val.setVal_Nochk('tmp',
|
|
68593
|
+
f.width = String(rct.width * this.sys.cvsScale);
|
|
68594
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68771
68595
|
}
|
|
68772
68596
|
if ('height' in hArg) {
|
|
68773
|
-
|
|
68774
|
-
this.val.setVal_Nochk('tmp',
|
|
68597
|
+
f.height = String(rct.height * this.sys.cvsScale);
|
|
68598
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68775
68599
|
}
|
|
68776
68600
|
if ('visible' in hArg) {
|
|
68777
68601
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68778
|
-
|
|
68779
|
-
this.val.setVal_Nochk('tmp',
|
|
68602
|
+
s.display = v ? 'inline' : 'none';
|
|
68603
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
68780
68604
|
}
|
|
68781
68605
|
if ('b_color' in hArg)
|
|
68782
|
-
|
|
68606
|
+
s.backgroundColor = hArg.b_color;
|
|
68783
68607
|
if ('disabled' in hArg) {
|
|
68784
68608
|
const d = __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id] = (0, CmnLib_1.argChk_Boolean)(hArg, 'disabled', true);
|
|
68785
|
-
const il =
|
|
68609
|
+
const il = f.contentDocument.body.querySelectorAll('input,select');
|
|
68786
68610
|
il.forEach(v => v.disabled = d);
|
|
68787
68611
|
}
|
|
68788
68612
|
return false;
|
|
68789
68613
|
}, _FrameMng_tsy_frame = function _FrameMng_tsy_frame(hArg) {
|
|
68790
|
-
const id = hArg
|
|
68614
|
+
const { id } = hArg;
|
|
68791
68615
|
if (!id)
|
|
68792
68616
|
throw 'idは必須です';
|
|
68793
|
-
const
|
|
68794
|
-
if (!
|
|
68617
|
+
const f = document.getElementById(id);
|
|
68618
|
+
if (!f)
|
|
68795
68619
|
throw `id【${id}】はフレームではありません`;
|
|
68796
|
-
const
|
|
68797
|
-
if (!this.val.getVal(`tmp:${
|
|
68620
|
+
const vn = `const.sn.frm.` + id;
|
|
68621
|
+
if (!this.val.getVal(`tmp:${vn}`, 0))
|
|
68798
68622
|
throw `frame【${id}】が読み込まれていません`;
|
|
68799
68623
|
const hNow = {};
|
|
68800
68624
|
if ('alpha' in hArg)
|
|
68801
|
-
hNow.a =
|
|
68625
|
+
hNow.a = f.style.opacity;
|
|
68802
68626
|
if ('x' in hArg || 'y' in hArg
|
|
68803
68627
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68804
|
-
hNow.x = Number(this.val.getVal(`tmp:${
|
|
68805
|
-
hNow.y = Number(this.val.getVal(`tmp:${
|
|
68806
|
-
hNow.sx = Number(this.val.getVal(`tmp:${
|
|
68807
|
-
hNow.sy = Number(this.val.getVal(`tmp:${
|
|
68808
|
-
hNow.r = Number(this.val.getVal(`tmp:${
|
|
68628
|
+
hNow.x = Number(this.val.getVal(`tmp:${vn}.x`));
|
|
68629
|
+
hNow.y = Number(this.val.getVal(`tmp:${vn}.y`));
|
|
68630
|
+
hNow.sx = Number(this.val.getVal(`tmp:${vn}.scale_x`));
|
|
68631
|
+
hNow.sy = Number(this.val.getVal(`tmp:${vn}.scale_y`));
|
|
68632
|
+
hNow.r = Number(this.val.getVal(`tmp:${vn}.rotate`));
|
|
68809
68633
|
}
|
|
68810
68634
|
if ('width' in hArg)
|
|
68811
|
-
hNow.w = this.val.getVal(`tmp:${
|
|
68635
|
+
hNow.w = this.val.getVal(`tmp:${vn}.width`);
|
|
68812
68636
|
if ('height' in hArg)
|
|
68813
|
-
hNow.h = this.val.getVal(`tmp:${
|
|
68637
|
+
hNow.h = this.val.getVal(`tmp:${vn}.height`);
|
|
68814
68638
|
const hArg2 = (0, CmnLib_1.cnvTweenArg)(hArg, hNow);
|
|
68815
68639
|
const hTo = {};
|
|
68816
68640
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
@@ -68818,13 +68642,12 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68818
68642
|
if ('alpha' in hArg) {
|
|
68819
68643
|
hTo.a = (0, CmnLib_1.argChk_Num)(hArg2, 'alpha', 0);
|
|
68820
68644
|
fncA = () => {
|
|
68821
|
-
|
|
68645
|
+
f.style.opacity = hNow.a;
|
|
68822
68646
|
this.val.setVal_Nochk('tmp', 'alpha', hNow.a);
|
|
68823
68647
|
};
|
|
68824
68648
|
}
|
|
68825
68649
|
let fncXYSR = () => { };
|
|
68826
68650
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg2);
|
|
68827
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68828
68651
|
if ('x' in hArg || 'y' in hArg
|
|
68829
68652
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68830
68653
|
hTo.x = rct.x;
|
|
@@ -68833,30 +68656,30 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68833
68656
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
68834
68657
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
68835
68658
|
fncXYSR = () => {
|
|
68836
|
-
|
|
68837
|
-
|
|
68838
|
-
|
|
68839
|
-
this.val.setVal_Nochk('tmp',
|
|
68840
|
-
this.val.setVal_Nochk('tmp',
|
|
68841
|
-
this.val.setVal_Nochk('tmp',
|
|
68842
|
-
this.val.setVal_Nochk('tmp',
|
|
68843
|
-
this.val.setVal_Nochk('tmp',
|
|
68659
|
+
f.style.left = this.sys.ofsLeft4elm + hNow.x * this.sys.cvsScale + 'px';
|
|
68660
|
+
f.style.top = this.sys.ofsTop4elm + hNow.y * this.sys.cvsScale + 'px';
|
|
68661
|
+
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
68662
|
+
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
68663
|
+
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
68664
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', hNow.sx);
|
|
68665
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', hNow.sy);
|
|
68666
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', hNow.r);
|
|
68844
68667
|
};
|
|
68845
68668
|
}
|
|
68846
68669
|
let fncW = () => { };
|
|
68847
68670
|
if ('width' in hArg) {
|
|
68848
68671
|
hTo.w = rct.width;
|
|
68849
68672
|
fncW = () => {
|
|
68850
|
-
|
|
68851
|
-
this.val.setVal_Nochk('tmp',
|
|
68673
|
+
f.width = hNow.w * this.sys.cvsScale + 'px';
|
|
68674
|
+
this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
|
|
68852
68675
|
};
|
|
68853
68676
|
}
|
|
68854
68677
|
let fncH = () => { };
|
|
68855
68678
|
if ('height' in hArg) {
|
|
68856
68679
|
hTo.h = rct.height;
|
|
68857
68680
|
fncH = () => {
|
|
68858
|
-
|
|
68859
|
-
this.val.setVal_Nochk('tmp',
|
|
68681
|
+
f.height = hNow.h * this.sys.cvsScale + 'px';
|
|
68682
|
+
this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
|
|
68860
68683
|
};
|
|
68861
68684
|
}
|
|
68862
68685
|
this.appPixi.stage.interactive = false;
|
|
@@ -69013,10 +68836,9 @@ class Grammar {
|
|
|
69013
68836
|
this.REG_TOKEN_NOTXT = new RegExp(`[\\n\\t;\\[*&${ce ? `\\${ce}` : ''}]`);
|
|
69014
68837
|
}
|
|
69015
68838
|
bracket2macro(hArg, script, idxToken) {
|
|
69016
|
-
const name = hArg
|
|
68839
|
+
const { name, text } = hArg;
|
|
69017
68840
|
if (!name)
|
|
69018
68841
|
throw '[bracket2macro] nameは必須です';
|
|
69019
|
-
const text = hArg.text;
|
|
69020
68842
|
if (!text)
|
|
69021
68843
|
throw '[bracket2macro] textは必須です';
|
|
69022
68844
|
if (text.length !== 2)
|
|
@@ -69040,7 +68862,7 @@ class Grammar {
|
|
|
69040
68862
|
this.replaceScr_C2M_And_let_ml(script, idxToken);
|
|
69041
68863
|
}
|
|
69042
68864
|
char2macro(hArg, hTag, script, idxToken) {
|
|
69043
|
-
const char = hArg
|
|
68865
|
+
const { char, name } = hArg;
|
|
69044
68866
|
if (!char)
|
|
69045
68867
|
throw '[char2macro] charは必須です';
|
|
69046
68868
|
__classPrivateFieldSet(this, _Grammar_hC2M, __classPrivateFieldGet(this, _Grammar_hC2M, "f") ?? {}, "f");
|
|
@@ -69049,7 +68871,6 @@ class Grammar {
|
|
|
69049
68871
|
__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").lastIndex = 0;
|
|
69050
68872
|
if (__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").test(char))
|
|
69051
68873
|
throw '[char2macro] char【' + char + '】は一文字マクロに使用できない文字です';
|
|
69052
|
-
const name = hArg.name;
|
|
69053
68874
|
if (!name)
|
|
69054
68875
|
throw '[char2macro] nameは必須です';
|
|
69055
68876
|
if (!(name in hTag))
|
|
@@ -69151,8 +68972,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69151
68972
|
}
|
|
69152
68973
|
setSp(_sp) { }
|
|
69153
68974
|
laySub(hArg, resolve) {
|
|
69154
|
-
const fn = hArg
|
|
69155
|
-
const face = hArg.face ?? '';
|
|
68975
|
+
const { fn, face = '' } = hArg;
|
|
69156
68976
|
__classPrivateFieldGet(this, _GrpLayer_idc, "f").sethArg(hArg);
|
|
69157
68977
|
if (!fn) {
|
|
69158
68978
|
super.lay(hArg);
|
|
@@ -69263,7 +69083,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69263
69083
|
return needLoad;
|
|
69264
69084
|
}
|
|
69265
69085
|
static wv(hArg) {
|
|
69266
|
-
const fn = hArg
|
|
69086
|
+
const { fn } = hArg;
|
|
69267
69087
|
if (!fn)
|
|
69268
69088
|
throw 'fnは必須です';
|
|
69269
69089
|
const hve = GrpLayer.hFn2VElm[fn];
|
|
@@ -69362,16 +69182,16 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69362
69182
|
Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
|
|
69363
69183
|
}
|
|
69364
69184
|
static add_face(hArg) {
|
|
69365
|
-
const name = hArg
|
|
69185
|
+
const { name } = hArg;
|
|
69366
69186
|
if (!name)
|
|
69367
69187
|
throw 'nameは必須です';
|
|
69368
69188
|
if (name in __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace))
|
|
69369
69189
|
throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
|
|
69370
|
-
const fn =
|
|
69190
|
+
const { fn = name } = hArg;
|
|
69371
69191
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
69372
69192
|
fn,
|
|
69373
|
-
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0)
|
|
69374
|
-
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0)
|
|
69193
|
+
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0),
|
|
69194
|
+
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0),
|
|
69375
69195
|
blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
|
|
69376
69196
|
};
|
|
69377
69197
|
return false;
|
|
@@ -69578,10 +69398,10 @@ class Layer {
|
|
|
69578
69398
|
return false;
|
|
69579
69399
|
}
|
|
69580
69400
|
static setBlendmode(cnt, hArg) {
|
|
69581
|
-
const
|
|
69582
|
-
if (!
|
|
69401
|
+
const { blendmode } = hArg;
|
|
69402
|
+
if (!blendmode)
|
|
69583
69403
|
return;
|
|
69584
|
-
const bmn = Layer.getBlendmodeNum(
|
|
69404
|
+
const bmn = Layer.getBlendmodeNum(blendmode);
|
|
69585
69405
|
const sp = cnt;
|
|
69586
69406
|
if (sp)
|
|
69587
69407
|
sp.blendMode = bmn;
|
|
@@ -69696,7 +69516,7 @@ class Layer {
|
|
|
69696
69516
|
}
|
|
69697
69517
|
ret.x = (0, CmnLib_1.int)(((ret.scale.x < 0)
|
|
69698
69518
|
? x + (isButton ? b_width / 3 : b_width)
|
|
69699
|
-
: x)
|
|
69519
|
+
: x));
|
|
69700
69520
|
let y = ret.y;
|
|
69701
69521
|
if ('top' in hArg) {
|
|
69702
69522
|
y = (0, CmnLib_1.argChk_Num)(hArg, 'top', 0);
|
|
@@ -69721,8 +69541,7 @@ class Layer {
|
|
|
69721
69541
|
y *= CmnLib_1.CmnLib.stageH;
|
|
69722
69542
|
y = CmnLib_1.CmnLib.stageH - y - b_height;
|
|
69723
69543
|
}
|
|
69724
|
-
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y)
|
|
69725
|
-
* CmnLib_1.CmnLib.retinaRate);
|
|
69544
|
+
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y));
|
|
69726
69545
|
if (isGrp) {
|
|
69727
69546
|
if (!('left' in hArg)
|
|
69728
69547
|
&& !('center' in hArg)
|
|
@@ -69759,7 +69578,7 @@ class Layer {
|
|
|
69759
69578
|
c = b_width * 0.5;
|
|
69760
69579
|
}
|
|
69761
69580
|
else {
|
|
69762
|
-
c = (0, CmnLib_1.int)(pos)
|
|
69581
|
+
c = (0, CmnLib_1.int)(pos);
|
|
69763
69582
|
}
|
|
69764
69583
|
ret.x = (0, CmnLib_1.int)(c - b_width * 0.5);
|
|
69765
69584
|
ret.y = CmnLib_1.CmnLib.stageH - b_height;
|
|
@@ -69926,9 +69745,8 @@ void main(void) {
|
|
|
69926
69745
|
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
69927
69746
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
69928
69747
|
_LayerMng_aTxtLog.set(this, []);
|
|
69929
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
69930
69748
|
const fncResizeLay = () => {
|
|
69931
|
-
if (!
|
|
69749
|
+
if (!sys.cvsResize())
|
|
69932
69750
|
return;
|
|
69933
69751
|
this.cvsResizeDesign();
|
|
69934
69752
|
if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
|
|
@@ -69942,15 +69760,15 @@ void main(void) {
|
|
|
69942
69760
|
globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
|
|
69943
69761
|
}
|
|
69944
69762
|
else {
|
|
69945
|
-
let tid =
|
|
69763
|
+
let tid = undefined;
|
|
69946
69764
|
globalThis.addEventListener('resize', () => {
|
|
69947
69765
|
if (tid)
|
|
69948
69766
|
return;
|
|
69949
|
-
tid = setTimeout(() => { tid =
|
|
69767
|
+
tid = setTimeout(() => { tid = undefined; fncResizeLay(); }, 1000 / 60 * 10);
|
|
69950
69768
|
}, { passive: true });
|
|
69951
69769
|
}
|
|
69952
|
-
|
|
69953
|
-
TxtLayer_1.TxtLayer.init(cfg, hTag, val,
|
|
69770
|
+
sys.cvsResize();
|
|
69771
|
+
TxtLayer_1.TxtLayer.init(cfg, hTag, val, txt => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me, appPixi);
|
|
69954
69772
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
69955
69773
|
Button_1.Button.init(cfg);
|
|
69956
69774
|
__classPrivateFieldSet(this, _LayerMng_frmMng, new FrameMng_1.FrameMng(this.cfg, this.hTag, this.appPixi, this.val, main, this.sys, __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")), "f");
|
|
@@ -70227,7 +70045,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70227
70045
|
});
|
|
70228
70046
|
return false;
|
|
70229
70047
|
}, _LayerMng_loadplugin = function _LayerMng_loadplugin(hArg) {
|
|
70230
|
-
const fn = hArg
|
|
70048
|
+
const { fn } = hArg;
|
|
70231
70049
|
if (!fn)
|
|
70232
70050
|
throw 'fnは必須です';
|
|
70233
70051
|
const join = (0, CmnLib_1.argChk_Boolean)(hArg, 'join', true);
|
|
@@ -70246,14 +70064,13 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70246
70064
|
}
|
|
70247
70065
|
return join;
|
|
70248
70066
|
}, _LayerMng_add_lay = function _LayerMng_add_lay(hArg) {
|
|
70249
|
-
const layer = hArg
|
|
70067
|
+
const { layer, class: cls } = hArg;
|
|
70250
70068
|
if (!layer)
|
|
70251
70069
|
throw 'layerは必須です';
|
|
70252
70070
|
if (layer.includes(','))
|
|
70253
70071
|
throw 'layer名に「,」は使えません';
|
|
70254
70072
|
if (layer in __classPrivateFieldGet(this, _LayerMng_hPages, "f"))
|
|
70255
70073
|
throw `layer【${layer}】はすでにあります`;
|
|
70256
|
-
const cls = hArg.class;
|
|
70257
70074
|
if (!cls)
|
|
70258
70075
|
throw 'clsは必須です';
|
|
70259
70076
|
const ret = { isWait: false };
|
|
@@ -70309,7 +70126,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70309
70126
|
}
|
|
70310
70127
|
}
|
|
70311
70128
|
else if (hArg.dive) {
|
|
70312
|
-
const dive = hArg
|
|
70129
|
+
const { dive } = hArg;
|
|
70313
70130
|
let idx_dive = 0;
|
|
70314
70131
|
if (layer === dive)
|
|
70315
70132
|
throw '[lay] 属性 layerとdiveが同じ【' + dive + '】です';
|
|
@@ -70621,8 +70438,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70621
70438
|
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm]?.tw?.resume();
|
|
70622
70439
|
return false;
|
|
70623
70440
|
}, _LayerMng_ch = function _LayerMng_ch(hArg) {
|
|
70624
|
-
const
|
|
70625
|
-
if (!
|
|
70441
|
+
const { text } = hArg;
|
|
70442
|
+
if (!text)
|
|
70626
70443
|
throw 'textは必須です';
|
|
70627
70444
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
70628
70445
|
delete hArg.text;
|
|
@@ -70634,7 +70451,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70634
70451
|
const doRecLog = this.val.doRecLog();
|
|
70635
70452
|
if (!record)
|
|
70636
70453
|
this.val.setVal_Nochk('save', 'sn.doRecLog', record);
|
|
70637
|
-
tl.tagCh(
|
|
70454
|
+
tl.tagCh(text.replaceAll('[r]', '\n'));
|
|
70638
70455
|
if (!record)
|
|
70639
70456
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
70640
70457
|
return false;
|
|
@@ -70647,7 +70464,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70647
70464
|
const tf = lay;
|
|
70648
70465
|
return tf;
|
|
70649
70466
|
}, _LayerMng_$current = function _LayerMng_$current(hArg) {
|
|
70650
|
-
const layer = hArg
|
|
70467
|
+
const { layer } = hArg;
|
|
70651
70468
|
if (!layer)
|
|
70652
70469
|
throw '[current] layerは必須です';
|
|
70653
70470
|
__classPrivateFieldSet(this, _LayerMng_pgTxtlay, __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer], "f");
|
|
@@ -70706,10 +70523,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70706
70523
|
this.val.setVal_Nochk('save', 'const.sn.sLog', (hArg.text) ? `[{text:"${hArg.text}"}]` : '[]');
|
|
70707
70524
|
return false;
|
|
70708
70525
|
}, _LayerMng_ruby2 = function _LayerMng_ruby2(hArg) {
|
|
70709
|
-
const t = hArg
|
|
70526
|
+
const { t, r } = hArg;
|
|
70710
70527
|
if (!t)
|
|
70711
70528
|
throw '[ruby2] tは必須です';
|
|
70712
|
-
const r = hArg.r;
|
|
70713
70529
|
if (!r)
|
|
70714
70530
|
throw '[ruby2] rは必須です';
|
|
70715
70531
|
hArg.text = '|' + t + '《' + r + '》';
|
|
@@ -70778,7 +70594,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
70778
70594
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
70779
70595
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
70780
70596
|
};
|
|
70781
|
-
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
70597
|
+
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_SN_ID, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
70782
70598
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70783
70599
|
exports.Main = void 0;
|
|
70784
70600
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -70810,6 +70626,7 @@ class Main {
|
|
|
70810
70626
|
_Main_fncNext.set(this, () => { });
|
|
70811
70627
|
_Main_alzTagArg.set(this, new AnalyzeTagArg_1.AnalyzeTagArg);
|
|
70812
70628
|
_Main_inited.set(this, false);
|
|
70629
|
+
_Main_SN_ID.set(this, 'skynovel');
|
|
70813
70630
|
_Main_fncTicker.set(this, () => __classPrivateFieldGet(this, _Main_fncNext, "f").call(this));
|
|
70814
70631
|
_Main_fncresume.set(this, (fnc = __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze)) => {
|
|
70815
70632
|
if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
|
|
@@ -70886,14 +70703,14 @@ class Main {
|
|
|
70886
70703
|
__classPrivateFieldGet(this, _Main_dbgMng, "f").destroy();
|
|
70887
70704
|
__classPrivateFieldGet(this, _Main_appPixi, "f").ticker.remove(__classPrivateFieldGet(this, _Main_fncTicker, "f"));
|
|
70888
70705
|
if (__classPrivateFieldGet(this, _Main_clone_cvs, "f") && __classPrivateFieldGet(this, _Main_appPixi, "f")) {
|
|
70889
|
-
|
|
70706
|
+
document.body.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
70890
70707
|
}
|
|
70891
70708
|
pixi_js_1.utils.clearTextureCache();
|
|
70892
70709
|
__classPrivateFieldGet(this, _Main_appPixi, "f").destroy(true);
|
|
70893
70710
|
}
|
|
70894
70711
|
}
|
|
70895
70712
|
exports.Main = Main;
|
|
70896
|
-
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
70713
|
+
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_SN_ID = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
70897
70714
|
const cc = document.createElement('canvas')?.getContext('2d');
|
|
70898
70715
|
if (!cc)
|
|
70899
70716
|
throw 'argChk_Color err';
|
|
@@ -70906,16 +70723,16 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
70906
70723
|
resolution: globalThis.devicePixelRatio ?? 1,
|
|
70907
70724
|
autoResize: true,
|
|
70908
70725
|
};
|
|
70909
|
-
const cvs = document.getElementById(
|
|
70726
|
+
const cvs = document.getElementById(__classPrivateFieldGet(this, _Main_SN_ID, "f"));
|
|
70910
70727
|
if (cvs) {
|
|
70911
70728
|
__classPrivateFieldSet(this, _Main_clone_cvs, cvs.cloneNode(true), "f");
|
|
70912
|
-
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id =
|
|
70729
|
+
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
70913
70730
|
hApp.view = cvs;
|
|
70914
70731
|
}
|
|
70915
70732
|
__classPrivateFieldSet(this, _Main_appPixi, new pixi_js_1.Application(hApp), "f");
|
|
70916
70733
|
if (!cvs) {
|
|
70917
70734
|
document.body.appendChild(__classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
70918
|
-
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id =
|
|
70735
|
+
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
70919
70736
|
}
|
|
70920
70737
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
70921
70738
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
@@ -72060,7 +71877,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72060
71877
|
return a;
|
|
72061
71878
|
}, _ScriptIterator_let_ml = function _ScriptIterator_let_ml(hArg) {
|
|
72062
71879
|
var _b;
|
|
72063
|
-
const name = hArg
|
|
71880
|
+
const { name } = hArg;
|
|
72064
71881
|
if (!name)
|
|
72065
71882
|
throw 'nameは必須です';
|
|
72066
71883
|
let ml = '';
|
|
@@ -72118,7 +71935,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72118
71935
|
}
|
|
72119
71936
|
return ret;
|
|
72120
71937
|
}, _ScriptIterator_dump_script = function _ScriptIterator_dump_script(hArg) {
|
|
72121
|
-
const set_fnc = hArg
|
|
71938
|
+
const { set_fnc, break_fnc } = hArg;
|
|
72122
71939
|
if (!set_fnc)
|
|
72123
71940
|
throw 'set_fncは必須です';
|
|
72124
71941
|
__classPrivateFieldSet(this, _ScriptIterator_fncSet, globalThis[set_fnc], "f");
|
|
@@ -72138,7 +71955,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72138
71955
|
__classPrivateFieldGet(this, _ScriptIterator_fncBreak, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"), goto);
|
|
72139
71956
|
};
|
|
72140
71957
|
this.noticeBreak(true);
|
|
72141
|
-
const break_fnc = hArg.break_fnc;
|
|
72142
71958
|
if (!break_fnc)
|
|
72143
71959
|
return false;
|
|
72144
71960
|
__classPrivateFieldSet(this, _ScriptIterator_fncBreak, globalThis[break_fnc], "f");
|
|
@@ -72156,7 +71972,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72156
71972
|
return false;
|
|
72157
71973
|
}, _ScriptIterator_if = function _ScriptIterator_if(hArg) {
|
|
72158
71974
|
var _b, _c;
|
|
72159
|
-
const exp = hArg
|
|
71975
|
+
const { exp } = hArg;
|
|
72160
71976
|
if (!exp)
|
|
72161
71977
|
throw 'expは必須です';
|
|
72162
71978
|
if (exp.charAt(0) === '&')
|
|
@@ -72225,7 +72041,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72225
72041
|
}, _ScriptIterator_call = function _ScriptIterator_call(hArg) {
|
|
72226
72042
|
if (!(0, CmnLib_1.argChk_Boolean)(hArg, 'count', false))
|
|
72227
72043
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_eraseKidoku).call(this);
|
|
72228
|
-
const fn = hArg
|
|
72044
|
+
const { fn } = hArg;
|
|
72229
72045
|
if (fn)
|
|
72230
72046
|
__classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
|
|
72231
72047
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
|
|
@@ -72256,7 +72072,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72256
72072
|
__classPrivateFieldSet(this, _ScriptIterator_posAPageLog, -1, "f");
|
|
72257
72073
|
return false;
|
|
72258
72074
|
}
|
|
72259
|
-
const to = hArg
|
|
72075
|
+
const { to } = hArg;
|
|
72260
72076
|
if (!to)
|
|
72261
72077
|
throw 'clearかtoは必須です';
|
|
72262
72078
|
const oldPos = __classPrivateFieldGet(this, _ScriptIterator_posAPageLog, "f");
|
|
@@ -72532,7 +72348,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72532
72348
|
return false;
|
|
72533
72349
|
}, _ScriptIterator_macro = function _ScriptIterator_macro(hArg) {
|
|
72534
72350
|
var _b, _c;
|
|
72535
|
-
const name = hArg
|
|
72351
|
+
const { name } = hArg;
|
|
72536
72352
|
if (!name)
|
|
72537
72353
|
throw 'nameは必須です';
|
|
72538
72354
|
if (name in this.hTag)
|
|
@@ -72782,7 +72598,7 @@ class SoundMng {
|
|
|
72782
72598
|
}
|
|
72783
72599
|
exports.SoundMng = SoundMng;
|
|
72784
72600
|
_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) {
|
|
72785
|
-
const buf =
|
|
72601
|
+
const { buf = 'SE' } = hArg;
|
|
72786
72602
|
const bvn = 'const.sn.sound.' + buf + '.volume';
|
|
72787
72603
|
const arg_vol = __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_getVol).call(this, hArg, 1);
|
|
72788
72604
|
if (Number(this.val.getVal('sys:' + bvn)) === arg_vol)
|
|
@@ -72801,7 +72617,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72801
72617
|
return vol;
|
|
72802
72618
|
}, _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) {
|
|
72803
72619
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
72804
|
-
const buf =
|
|
72620
|
+
const { buf = 'SE' } = hArg;
|
|
72805
72621
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
72806
72622
|
if (!oSb?.playing() || !oSb.snd)
|
|
72807
72623
|
return false;
|
|
@@ -72852,9 +72668,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72852
72668
|
(0, CmnLib_1.argChk_Boolean)(hArg, 'loop', true);
|
|
72853
72669
|
return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playse).call(this, hArg);
|
|
72854
72670
|
}, _SoundMng_playse = function _SoundMng_playse(hArg) {
|
|
72855
|
-
const buf =
|
|
72671
|
+
const { buf = 'SE', fn } = hArg;
|
|
72856
72672
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
72857
|
-
const fn = hArg.fn;
|
|
72858
72673
|
if (!fn)
|
|
72859
72674
|
throw `[playse] fnは必須です buf:${buf}`;
|
|
72860
72675
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
@@ -73052,7 +72867,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73052
72867
|
sound_1.sound.stopAll();
|
|
73053
72868
|
return false;
|
|
73054
72869
|
}, _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) {
|
|
73055
|
-
const buf =
|
|
72870
|
+
const { buf = 'SE' } = hArg;
|
|
73056
72871
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
73057
72872
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73058
72873
|
if (oSb) {
|
|
@@ -73061,17 +72876,17 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73061
72876
|
}
|
|
73062
72877
|
return false;
|
|
73063
72878
|
}, _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) {
|
|
73064
|
-
const buf =
|
|
72879
|
+
const { buf = 'SE' } = hArg;
|
|
73065
72880
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73066
72881
|
if (!oSb?.twFade || !oSb.playing())
|
|
73067
72882
|
return false;
|
|
73068
72883
|
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));
|
|
73069
72884
|
}, _SoundMng_stopfadese = function _SoundMng_stopfadese(hArg) {
|
|
73070
|
-
const buf =
|
|
72885
|
+
const { buf = 'SE' } = hArg;
|
|
73071
72886
|
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.twFade?.stop().end();
|
|
73072
72887
|
return false;
|
|
73073
72888
|
}, _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) {
|
|
73074
|
-
const buf =
|
|
72889
|
+
const { buf = 'SE' } = hArg;
|
|
73075
72890
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73076
72891
|
if (!oSb?.playing() || oSb.loop)
|
|
73077
72892
|
return false;
|
|
@@ -73084,8 +72899,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73084
72899
|
oSb2.onend();
|
|
73085
72900
|
}, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', false), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
73086
72901
|
}, _SoundMng_xchgbuf = function _SoundMng_xchgbuf(hArg) {
|
|
73087
|
-
const buf1 =
|
|
73088
|
-
const buf2 = hArg.buf2 ?? 'SE';
|
|
72902
|
+
const { buf: buf1 = 'SE', buf2 = 'SE' } = hArg;
|
|
73089
72903
|
if (buf1 === buf2)
|
|
73090
72904
|
return false;
|
|
73091
72905
|
const sb1 = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf1];
|
|
@@ -73254,62 +73068,21 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73254
73068
|
return false;
|
|
73255
73069
|
};
|
|
73256
73070
|
this.navigate_to = hArg => {
|
|
73257
|
-
const url = hArg
|
|
73071
|
+
const { url } = hArg;
|
|
73258
73072
|
if (!url)
|
|
73259
73073
|
throw '[navigate_to] urlは必須です';
|
|
73260
73074
|
to_app.navigate_to(url);
|
|
73261
73075
|
return false;
|
|
73262
73076
|
};
|
|
73263
|
-
this.
|
|
73264
|
-
|
|
73265
|
-
|
|
73266
|
-
|
|
73267
|
-
|
|
73268
|
-
|
|
73269
|
-
|
|
73270
|
-
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
73271
|
-
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
73272
|
-
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
73273
|
-
+ e.key.toLowerCase();
|
|
73274
|
-
if (key2 !== key)
|
|
73275
|
-
return;
|
|
73276
|
-
e.stopPropagation();
|
|
73277
|
-
this.tgl_full_scr_sub();
|
|
73278
|
-
}, { passive: true });
|
|
73279
|
-
return false;
|
|
73280
|
-
};
|
|
73281
|
-
this.tgl_full_scr_sub = async () => {
|
|
73282
|
-
const st = this.appPixi.view.style;
|
|
73283
|
-
if (await to_app.isSimpleFullScreen()) {
|
|
73284
|
-
await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73285
|
-
st.width = CmnLib_1.CmnLib.stageW + 'px';
|
|
73286
|
-
st.height = CmnLib_1.CmnLib.stageH + 'px';
|
|
73287
|
-
st.marginLeft = '0px';
|
|
73288
|
-
st.marginTop = '0px';
|
|
73289
|
-
this.reso4frame = 1;
|
|
73290
|
-
}
|
|
73291
|
-
else {
|
|
73292
|
-
const w = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
|
|
73293
|
-
const h = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
|
|
73294
|
-
const ratioWidth = w / CmnLib_1.CmnLib.stageW;
|
|
73295
|
-
const ratioHeight = h / CmnLib_1.CmnLib.stageH;
|
|
73296
|
-
const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
|
|
73297
|
-
await to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73298
|
-
st.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
|
|
73299
|
-
st.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
|
|
73300
|
-
if (ratioWidth >= ratioHeight) {
|
|
73301
|
-
st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
|
|
73302
|
-
}
|
|
73303
|
-
else
|
|
73304
|
-
st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
|
|
73305
|
-
await to_app.win_setContentSize(screen.width, screen.height);
|
|
73306
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73307
|
-
this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
|
|
73308
|
-
}
|
|
73309
|
-
this.resizeFrames();
|
|
73310
|
-
};
|
|
73077
|
+
this.tglFlscr_sub = () => this.isFullScr = !to_app.isSimpleFullScreen()
|
|
73078
|
+
.then(fs => {
|
|
73079
|
+
if (fs)
|
|
73080
|
+
to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73081
|
+
else
|
|
73082
|
+
to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73083
|
+
});
|
|
73311
73084
|
this.update_check = hArg => {
|
|
73312
|
-
const url = hArg
|
|
73085
|
+
const { url } = hArg;
|
|
73313
73086
|
if (!url)
|
|
73314
73087
|
throw '[update_check] urlは必須です';
|
|
73315
73088
|
if (url.slice(-1) !== '/')
|
|
@@ -73442,7 +73215,6 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73442
73215
|
hTmp['const.sn.isDebugger'] = false;
|
|
73443
73216
|
hTmp['const.sn.screenResolutionX'] = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
|
|
73444
73217
|
hTmp['const.sn.screenResolutionY'] = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
|
|
73445
|
-
this.val.defTmp('const.sn.displayState', async () => await to_app.isSimpleFullScreen());
|
|
73446
73218
|
this.$path_userdata = CmnLib_1.CmnLib.isDbg
|
|
73447
73219
|
? __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath.slice(0, -3) + '.vscode/'
|
|
73448
73220
|
: __classPrivateFieldGet(this, _SysApp_hInfo, "f").userData.replaceAll('\\', '/') + '/';
|
|
@@ -73539,7 +73311,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73539
73311
|
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");
|
|
73540
73312
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73541
73313
|
};
|
|
73542
|
-
var _a, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
73314
|
+
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;
|
|
73543
73315
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73544
73316
|
exports.SysBase = void 0;
|
|
73545
73317
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -73551,8 +73323,15 @@ class SysBase {
|
|
|
73551
73323
|
this.hFactoryCls = {};
|
|
73552
73324
|
this.fetch = (url) => fetch(url);
|
|
73553
73325
|
this.resolution = 1;
|
|
73554
|
-
this.reso4frame = 1;
|
|
73555
73326
|
this.data = { sys: {}, mark: {}, kidoku: {} };
|
|
73327
|
+
_SysBase_cvsWidth.set(this, 0);
|
|
73328
|
+
_SysBase_cvsHeight.set(this, 0);
|
|
73329
|
+
_SysBase_cvsScale.set(this, 1);
|
|
73330
|
+
_SysBase_ofsLeft4elm.set(this, 0);
|
|
73331
|
+
_SysBase_ofsTop4elm.set(this, 0);
|
|
73332
|
+
_SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
|
|
73333
|
+
_SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
|
|
73334
|
+
this.isFullScr = false;
|
|
73556
73335
|
this.extPort = 3776;
|
|
73557
73336
|
_SysBase_sk.set(this, undefined);
|
|
73558
73337
|
_SysBase_hHook.set(this, {
|
|
@@ -73593,7 +73372,7 @@ class SysBase {
|
|
|
73593
73372
|
this._import = () => false;
|
|
73594
73373
|
this.navigate_to = () => false;
|
|
73595
73374
|
this.title = hArg => {
|
|
73596
|
-
const text = hArg
|
|
73375
|
+
const { text } = hArg;
|
|
73597
73376
|
if (!text)
|
|
73598
73377
|
throw '[title] textは必須です';
|
|
73599
73378
|
__classPrivateFieldSet(this, _SysBase_main_title, text, "f");
|
|
@@ -73601,7 +73380,24 @@ class SysBase {
|
|
|
73601
73380
|
return false;
|
|
73602
73381
|
};
|
|
73603
73382
|
_SysBase_main_title.set(this, '');
|
|
73604
|
-
this
|
|
73383
|
+
_SysBase_tglFlscr.set(this, hArg => {
|
|
73384
|
+
if (!hArg.key) {
|
|
73385
|
+
this.tglFlscr_sub();
|
|
73386
|
+
return false;
|
|
73387
|
+
}
|
|
73388
|
+
const key = hArg.key.toLowerCase();
|
|
73389
|
+
document.addEventListener('keydown', (e) => {
|
|
73390
|
+
const key2 = (e.altKey ? (e.key === 'Alt' ? '' : 'alt+') : '')
|
|
73391
|
+
+ (e.ctrlKey ? (e.key === 'Control' ? '' : 'ctrl+') : '')
|
|
73392
|
+
+ (e.shiftKey ? (e.key === 'Shift' ? '' : 'shift+') : '')
|
|
73393
|
+
+ e.key.toLowerCase();
|
|
73394
|
+
if (key2 !== key)
|
|
73395
|
+
return;
|
|
73396
|
+
e.stopPropagation();
|
|
73397
|
+
this.tglFlscr_sub();
|
|
73398
|
+
}, { passive: true });
|
|
73399
|
+
return false;
|
|
73400
|
+
});
|
|
73605
73401
|
this.update_check = () => false;
|
|
73606
73402
|
this.window = () => false;
|
|
73607
73403
|
_SysBase_info_title.set(this, '');
|
|
@@ -73640,8 +73436,6 @@ class SysBase {
|
|
|
73640
73436
|
this.$path_downloads = '';
|
|
73641
73437
|
this.$path_userdata = '';
|
|
73642
73438
|
this.canCapturePage = (_fn) => false;
|
|
73643
|
-
this.ofsLeft4frm = 0;
|
|
73644
|
-
this.ofsTop4frm = 0;
|
|
73645
73439
|
}
|
|
73646
73440
|
async loaded(hPlg, _arg) {
|
|
73647
73441
|
const fncPre = hPlg.snsys_pre;
|
|
@@ -73684,12 +73478,13 @@ class SysBase {
|
|
|
73684
73478
|
hTag.import = o => this._import(o);
|
|
73685
73479
|
hTag.navigate_to = o => this.navigate_to(o);
|
|
73686
73480
|
hTag.title = o => this.title(o);
|
|
73687
|
-
hTag.toggle_full_screen = o => this.
|
|
73481
|
+
hTag.toggle_full_screen = o => __classPrivateFieldGet(this, _SysBase_tglFlscr, "f").call(this, o);
|
|
73688
73482
|
hTag.update_check = o => this.update_check(o);
|
|
73689
73483
|
hTag.window = o => this.window(o);
|
|
73690
73484
|
val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
|
|
73691
73485
|
val.setVal_Nochk('tmp', 'const.sn.isDbg', () => CmnLib_1.CmnLib.isDbg);
|
|
73692
73486
|
val.setVal_Nochk('tmp', 'const.sn.isPackaged', () => CmnLib_1.CmnLib.isPackaged);
|
|
73487
|
+
this.val.defTmp('const.sn.displayState', () => this.isFullScr);
|
|
73693
73488
|
val.setVal_Nochk('sys', SysBase.VALNM_CFG_NS, this.cfg.oCfg.save_ns);
|
|
73694
73489
|
val.flush();
|
|
73695
73490
|
if (CmnLib_1.CmnLib.isDbg)
|
|
@@ -73719,6 +73514,79 @@ class SysBase {
|
|
|
73719
73514
|
}));
|
|
73720
73515
|
return a;
|
|
73721
73516
|
}
|
|
73517
|
+
get cvsWidth() { return __classPrivateFieldGet(this, _SysBase_cvsWidth, "f"); }
|
|
73518
|
+
;
|
|
73519
|
+
get cvsHeight() { return __classPrivateFieldGet(this, _SysBase_cvsHeight, "f"); }
|
|
73520
|
+
;
|
|
73521
|
+
get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
|
|
73522
|
+
;
|
|
73523
|
+
get ofsLeft4elm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f"); }
|
|
73524
|
+
;
|
|
73525
|
+
get ofsTop4elm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f"); }
|
|
73526
|
+
;
|
|
73527
|
+
get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
|
|
73528
|
+
;
|
|
73529
|
+
get ofsPadTop_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadTop_Dom2PIXI, "f"); }
|
|
73530
|
+
;
|
|
73531
|
+
cvsResize() {
|
|
73532
|
+
const bk_cw = __classPrivateFieldGet(this, _SysBase_cvsWidth, "f");
|
|
73533
|
+
const bk_ch = __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73534
|
+
let w = globalThis.innerWidth;
|
|
73535
|
+
let h = globalThis.innerHeight;
|
|
73536
|
+
const { angle = 0 } = screen.orientation;
|
|
73537
|
+
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
73538
|
+
if (CmnLib_1.CmnLib.isMobile && ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
73539
|
+
[w, h] = [h, w];
|
|
73540
|
+
const cvs = this.appPixi.view;
|
|
73541
|
+
const cr = cvs.getBoundingClientRect();
|
|
73542
|
+
if ((0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true)
|
|
73543
|
+
|| CmnLib_1.CmnLib.stageW > w
|
|
73544
|
+
|| CmnLib_1.CmnLib.stageH > h) {
|
|
73545
|
+
if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
|
|
73546
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, h, "f");
|
|
73547
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH * h, "f");
|
|
73548
|
+
}
|
|
73549
|
+
else {
|
|
73550
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, w, "f");
|
|
73551
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH / CmnLib_1.CmnLib.stageW * w, "f");
|
|
73552
|
+
}
|
|
73553
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") / CmnLib_1.CmnLib.stageW, "f");
|
|
73554
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
73555
|
+
? (globalThis.innerWidth - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2
|
|
73556
|
+
: cr.left) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
73557
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
73558
|
+
? (globalThis.innerHeight - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2
|
|
73559
|
+
: cr.top) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
73560
|
+
}
|
|
73561
|
+
else {
|
|
73562
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW, "f");
|
|
73563
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH, "f");
|
|
73564
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, 1, "f");
|
|
73565
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, 0, "f");
|
|
73566
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, 0, "f");
|
|
73567
|
+
}
|
|
73568
|
+
const ps = cvs.parentElement.style;
|
|
73569
|
+
if (cvs.parentElement === document.body) {
|
|
73570
|
+
ps.position = 'relative';
|
|
73571
|
+
ps.width = `${__classPrivateFieldGet(this, _SysBase_cvsWidth, "f")}px`;
|
|
73572
|
+
ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
|
|
73573
|
+
}
|
|
73574
|
+
const s = cvs.style;
|
|
73575
|
+
if (!this.isApp && this.isFullScr) {
|
|
73576
|
+
s.width = s.height = '';
|
|
73577
|
+
}
|
|
73578
|
+
else {
|
|
73579
|
+
s.width = ps.width;
|
|
73580
|
+
s.height = ps.height;
|
|
73581
|
+
}
|
|
73582
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, cr.left, "f");
|
|
73583
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, cr.top, "f");
|
|
73584
|
+
if (this.isFullScr) {
|
|
73585
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4elm, __classPrivateFieldGet(this, _SysBase_ofsLeft4elm, "f") + (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
|
|
73586
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4elm, __classPrivateFieldGet(this, _SysBase_ofsTop4elm, "f") + (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
|
|
73587
|
+
}
|
|
73588
|
+
return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73589
|
+
}
|
|
73722
73590
|
attach_debug(main) {
|
|
73723
73591
|
this.attach_debug = () => { };
|
|
73724
73592
|
const gs = document.createElement('style');
|
|
@@ -73763,28 +73631,26 @@ class SysBase {
|
|
|
73763
73631
|
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
73764
73632
|
}
|
|
73765
73633
|
toast(nm) {
|
|
73766
|
-
const
|
|
73767
|
-
if (!cvs)
|
|
73768
|
-
return;
|
|
73769
|
-
const p = cvs.parentNode;
|
|
73634
|
+
const p = document.body;
|
|
73770
73635
|
p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
|
|
73771
73636
|
const img = document.createElement('img');
|
|
73772
73637
|
const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
|
|
73773
73638
|
img.src = `data:image/svg+xml;base64,${td.dat}`;
|
|
73774
|
-
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 *
|
|
73639
|
+
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f");
|
|
73775
73640
|
img.width = img.height = size;
|
|
73776
73641
|
img.style.cssText =
|
|
73777
73642
|
`position: absolute;
|
|
73778
|
-
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 *
|
|
73779
|
-
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 *
|
|
73643
|
+
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dx ?? 0)}px;
|
|
73644
|
+
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dy ?? 0)}px;`;
|
|
73780
73645
|
img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
|
|
73781
73646
|
if (!td.ease)
|
|
73782
73647
|
img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
|
|
73783
|
-
p.insertBefore(img,
|
|
73648
|
+
p.insertBefore(img, this.appPixi.view);
|
|
73784
73649
|
}
|
|
73785
73650
|
setFire(fire) { this.fire = fire; }
|
|
73786
73651
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
73787
73652
|
titleSub(_txt) { }
|
|
73653
|
+
tglFlscr_sub() { }
|
|
73788
73654
|
setTitleInfo(txt) {
|
|
73789
73655
|
__classPrivateFieldSet(this, _SysBase_info_title, txt, "f");
|
|
73790
73656
|
this.titleSub(__classPrivateFieldGet(this, _SysBase_main_title, "f") + __classPrivateFieldGet(this, _SysBase_info_title, "f"));
|
|
@@ -73801,28 +73667,9 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
73801
73667
|
;
|
|
73802
73668
|
async appendFile(_path, _data, _callback) { }
|
|
73803
73669
|
async ensureFileSync(_path) { }
|
|
73804
|
-
resizeFrames() {
|
|
73805
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73806
|
-
const a = document.getElementsByTagName('iframe');
|
|
73807
|
-
const len = a.length;
|
|
73808
|
-
for (let i = 0; i < len; ++i) {
|
|
73809
|
-
const it = a[i];
|
|
73810
|
-
const frmnm = `const.sn.frm.${it.id}`;
|
|
73811
|
-
it.style.left = this.ofsLeft4frm + cr.left
|
|
73812
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.x`)) * this.reso4frame
|
|
73813
|
-
+ 'px';
|
|
73814
|
-
it.style.top = this.ofsTop4frm + cr.top
|
|
73815
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.y`)) * this.reso4frame
|
|
73816
|
-
+ 'px';
|
|
73817
|
-
it.width = String(Number(this.val.getVal(`tmp:${frmnm}.width`))
|
|
73818
|
-
* this.reso4frame);
|
|
73819
|
-
it.height = String(Number(this.val.getVal(`tmp:${frmnm}.height`))
|
|
73820
|
-
* this.reso4frame);
|
|
73821
|
-
}
|
|
73822
|
-
}
|
|
73823
73670
|
}
|
|
73824
73671
|
exports.SysBase = SysBase;
|
|
73825
|
-
_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();
|
|
73672
|
+
_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();
|
|
73826
73673
|
SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
|
|
73827
73674
|
_SysBase_hToastDat = { value: {
|
|
73828
73675
|
'接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
|
|
@@ -73908,7 +73755,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73908
73755
|
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");
|
|
73909
73756
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73910
73757
|
};
|
|
73911
|
-
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;
|
|
73758
|
+
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;
|
|
73912
73759
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73913
73760
|
exports.TxtLayer = void 0;
|
|
73914
73761
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -73929,7 +73776,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
73929
73776
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
73930
73777
|
_TxtLayer_b_do.set(this, undefined);
|
|
73931
73778
|
_TxtLayer_b_pic.set(this, '');
|
|
73932
|
-
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
73779
|
+
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus(), __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_sys)));
|
|
73933
73780
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
73934
73781
|
_TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
|
|
73935
73782
|
_TxtLayer_$ch_in_style.set(this, '');
|
|
@@ -74223,12 +74070,12 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
74223
74070
|
__classPrivateFieldGet(this, _TxtLayer_rbSpl, "f").init(__classPrivateFieldGet(this, _TxtLayer_putCh, "f"));
|
|
74224
74071
|
this.spLay.addChild(__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f"));
|
|
74225
74072
|
__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").name = 'cntBtn';
|
|
74226
|
-
const padding = 16
|
|
74073
|
+
const padding = 16;
|
|
74227
74074
|
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' });
|
|
74228
74075
|
}
|
|
74229
|
-
static init(cfg, hTag, val, recText, isPageFore) {
|
|
74076
|
+
static init(cfg, hTag, val, recText, isPageFore, appPixi) {
|
|
74230
74077
|
__classPrivateFieldSet(TxtLayer, _a, cfg, "f", _TxtLayer_cfg);
|
|
74231
|
-
TxtStage_1.TxtStage.init(cfg);
|
|
74078
|
+
TxtStage_1.TxtStage.init(cfg, appPixi);
|
|
74232
74079
|
__classPrivateFieldSet(TxtLayer, _a, val, "f", _TxtLayer_val);
|
|
74233
74080
|
__classPrivateFieldSet(TxtLayer, _a, recText, "f", _TxtLayer_recText);
|
|
74234
74081
|
__classPrivateFieldSet(TxtLayer, _a, isPageFore, "f", _TxtLayer_isPageFore);
|
|
@@ -74288,9 +74135,10 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
74288
74135
|
ease: 'ease-out',
|
|
74289
74136
|
});
|
|
74290
74137
|
}
|
|
74291
|
-
static setEvtMng(main, evtMng) {
|
|
74138
|
+
static setEvtMng(main, evtMng, sys) {
|
|
74292
74139
|
__classPrivateFieldSet(TxtLayer, _a, main, "f", _TxtLayer_main);
|
|
74293
74140
|
__classPrivateFieldSet(TxtLayer, _a, evtMng, "f", _TxtLayer_evtMng);
|
|
74141
|
+
__classPrivateFieldSet(TxtLayer, _a, sys, "f", _TxtLayer_sys);
|
|
74294
74142
|
TxtStage_1.TxtStage.setEvtMng(evtMng);
|
|
74295
74143
|
}
|
|
74296
74144
|
destroy() {
|
|
@@ -74459,7 +74307,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74459
74307
|
const o = TxtStage_1.TxtStage.ch_in_style(hArg);
|
|
74460
74308
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
74461
74309
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
74462
|
-
const name = hArg
|
|
74310
|
+
const { name } = hArg;
|
|
74463
74311
|
(0, CmnLib_1.addStyle)(`
|
|
74464
74312
|
.sn_ch_in_${name} {
|
|
74465
74313
|
position: relative;
|
|
@@ -74481,7 +74329,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74481
74329
|
const o = TxtStage_1.TxtStage.ch_out_style(hArg);
|
|
74482
74330
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
74483
74331
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
74484
|
-
const name = hArg
|
|
74332
|
+
const { name } = hArg;
|
|
74485
74333
|
(0, CmnLib_1.addStyle)(`
|
|
74486
74334
|
.go_ch_out_${name} {
|
|
74487
74335
|
position: relative;
|
|
@@ -74498,41 +74346,41 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74498
74346
|
}, _TxtLayer_autowc = function _TxtLayer_autowc(hArg) {
|
|
74499
74347
|
__classPrivateFieldSet(TxtLayer, _a, (0, CmnLib_1.argChk_Boolean)(hArg, 'enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)), "f", _TxtLayer_doAutoWc);
|
|
74500
74348
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc));
|
|
74501
|
-
const
|
|
74349
|
+
const { text } = hArg;
|
|
74502
74350
|
if (('text' in hArg) !== ('time' in hArg))
|
|
74503
74351
|
throw '[autowc] textとtimeは同時指定必須です';
|
|
74504
|
-
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text',
|
|
74505
|
-
if (!
|
|
74352
|
+
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', text);
|
|
74353
|
+
if (!text) {
|
|
74506
74354
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', '');
|
|
74507
74355
|
return false;
|
|
74508
74356
|
}
|
|
74509
|
-
const len =
|
|
74357
|
+
const len = text.length;
|
|
74510
74358
|
if (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc) && len === 0)
|
|
74511
74359
|
throw '[autowc] enabled === false かつ text === "" は許されません';
|
|
74512
74360
|
const a = String(hArg.time).split(',');
|
|
74513
74361
|
if (a.length !== len)
|
|
74514
74362
|
throw '[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい';
|
|
74515
74363
|
__classPrivateFieldSet(TxtLayer, _a, {}, "f", _TxtLayer_hAutoWc);
|
|
74516
|
-
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[
|
|
74364
|
+
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[text[i]] = (0, CmnLib_1.uint)(v));
|
|
74517
74365
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', hArg.time);
|
|
74518
74366
|
return false;
|
|
74519
74367
|
}, _TxtLayer_set_ch_in = function _TxtLayer_set_ch_in(hArg) {
|
|
74520
|
-
const
|
|
74521
|
-
if (!
|
|
74368
|
+
const { in_style } = hArg;
|
|
74369
|
+
if (!in_style)
|
|
74522
74370
|
return;
|
|
74523
|
-
const cis = TxtStage_1.TxtStage.getChInStyle(
|
|
74371
|
+
const cis = TxtStage_1.TxtStage.getChInStyle(in_style);
|
|
74524
74372
|
if (!cis)
|
|
74525
|
-
throw `存在しないin_style【${
|
|
74526
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style,
|
|
74373
|
+
throw `存在しないin_style【${in_style}】です`;
|
|
74374
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style, in_style, "f");
|
|
74527
74375
|
__classPrivateFieldSet(this, _TxtLayer_ch_in_join, cis.join, "f");
|
|
74528
74376
|
}, _TxtLayer_set_ch_out = function _TxtLayer_set_ch_out(hArg) {
|
|
74529
|
-
const
|
|
74530
|
-
if (!
|
|
74377
|
+
const { out_style } = hArg;
|
|
74378
|
+
if (!out_style)
|
|
74531
74379
|
return;
|
|
74532
|
-
const cos = TxtStage_1.TxtStage.getChOutStyle(
|
|
74380
|
+
const cos = TxtStage_1.TxtStage.getChOutStyle(out_style);
|
|
74533
74381
|
if (!cos)
|
|
74534
|
-
throw `存在しないout_style【${
|
|
74535
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style,
|
|
74382
|
+
throw `存在しないout_style【${out_style}】です`;
|
|
74383
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style, out_style, "f");
|
|
74536
74384
|
}, _TxtLayer_drawBack = function _TxtLayer_drawBack(hArg, fncComp) {
|
|
74537
74385
|
if ('back_clear' in hArg) {
|
|
74538
74386
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'back_clear', false)) {
|
|
@@ -74695,6 +74543,7 @@ _TxtLayer_recText = { value: void 0 };
|
|
|
74695
74543
|
_TxtLayer_isPageFore = { value: void 0 };
|
|
74696
74544
|
_TxtLayer_main = { value: void 0 };
|
|
74697
74545
|
_TxtLayer_evtMng = { value: void 0 };
|
|
74546
|
+
_TxtLayer_sys = { value: void 0 };
|
|
74698
74547
|
_TxtLayer_doAutoWc = { value: false };
|
|
74699
74548
|
_TxtLayer_hAutoWc = { value: {} };
|
|
74700
74549
|
TxtLayer.rec = (tx) => tx;
|
|
@@ -74721,7 +74570,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
74721
74570
|
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");
|
|
74722
74571
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
74723
74572
|
};
|
|
74724
|
-
var _TxtStage_instances, _a, _TxtStage_cfg,
|
|
74573
|
+
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;
|
|
74725
74574
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74726
74575
|
exports.TxtStage = void 0;
|
|
74727
74576
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -74734,10 +74583,11 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
|
|
|
74734
74583
|
;
|
|
74735
74584
|
;
|
|
74736
74585
|
class TxtStage extends pixi_js_1.Container {
|
|
74737
|
-
constructor(spLay, canFocus) {
|
|
74586
|
+
constructor(spLay, canFocus, sys) {
|
|
74738
74587
|
super();
|
|
74739
74588
|
this.spLay = spLay;
|
|
74740
74589
|
this.canFocus = canFocus;
|
|
74590
|
+
this.sys = sys;
|
|
74741
74591
|
_TxtStage_instances.add(this);
|
|
74742
74592
|
_TxtStage_htmTxt.set(this, document.createElement('span'));
|
|
74743
74593
|
_TxtStage_cntTxt.set(this, new pixi_js_1.Container);
|
|
@@ -74774,15 +74624,15 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74774
74624
|
_TxtStage_sss.set(this, undefined);
|
|
74775
74625
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
74776
74626
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
74777
|
-
__classPrivateFieldGet(TxtStage, _a, "f",
|
|
74627
|
+
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_appPixi).view.parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
74778
74628
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
|
|
74779
74629
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
|
|
74780
74630
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
|
|
74781
74631
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").adopt(__classPrivateFieldGet(this, _TxtStage_idcCh, "f"));
|
|
74782
74632
|
}
|
|
74783
|
-
static init(cfg) {
|
|
74633
|
+
static init(cfg, appPixi) {
|
|
74784
74634
|
__classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
|
|
74785
|
-
__classPrivateFieldSet(TxtStage, _a,
|
|
74635
|
+
__classPrivateFieldSet(TxtStage, _a, appPixi, "f", _TxtStage_appPixi);
|
|
74786
74636
|
__classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
|
|
74787
74637
|
__classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
|
|
74788
74638
|
__classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
|
|
@@ -74859,9 +74709,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74859
74709
|
}
|
|
74860
74710
|
cvsResize() {
|
|
74861
74711
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
74862
|
-
s.left =
|
|
74863
|
-
s.top =
|
|
74864
|
-
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x *
|
|
74712
|
+
s.left = `${this.sys.ofsLeft4elm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
|
|
74713
|
+
s.top = `${this.sys.ofsTop4elm + this.spLay.position.y * this.sys.cvsScale}px`;
|
|
74714
|
+
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
|
|
74865
74715
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
|
|
74866
74716
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|
|
74867
74717
|
}
|
|
@@ -74902,21 +74752,21 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74902
74752
|
do {
|
|
74903
74753
|
const e = __classPrivateFieldSet(this, _TxtStage_aRect, __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_getChRects).call(this, __classPrivateFieldGet(this, _TxtStage_htmTxt, "f")), "f");
|
|
74904
74754
|
len = e.length;
|
|
74905
|
-
if (
|
|
74906
|
-
const ox =
|
|
74755
|
+
if (this.sys.cvsScale !== 1) {
|
|
74756
|
+
const ox = this.sys.ofsPadLeft_Dom2PIXI
|
|
74907
74757
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.left)
|
|
74908
|
-
* (1 -
|
|
74909
|
-
const oy =
|
|
74758
|
+
* (1 - this.sys.cvsScale);
|
|
74759
|
+
const oy = this.sys.ofsPadTop_Dom2PIXI
|
|
74910
74760
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.top)
|
|
74911
|
-
* (1 -
|
|
74761
|
+
* (1 - this.sys.cvsScale);
|
|
74912
74762
|
for (let i = 0; i < len; ++i) {
|
|
74913
74763
|
const r = e[i].rect;
|
|
74914
74764
|
r.x -= ox;
|
|
74915
74765
|
r.y -= oy;
|
|
74916
|
-
r.x /=
|
|
74917
|
-
r.y /=
|
|
74918
|
-
r.width /=
|
|
74919
|
-
r.height /=
|
|
74766
|
+
r.x /= this.sys.cvsScale;
|
|
74767
|
+
r.y /= this.sys.cvsScale;
|
|
74768
|
+
r.width /= this.sys.cvsScale;
|
|
74769
|
+
r.height /= this.sys.cvsScale;
|
|
74920
74770
|
}
|
|
74921
74771
|
}
|
|
74922
74772
|
if (len < 2)
|
|
@@ -75099,7 +74949,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75099
74949
|
}
|
|
75100
74950
|
static getChInStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChInStyle)[name]; }
|
|
75101
74951
|
static ch_in_style(hArg) {
|
|
75102
|
-
const name = hArg
|
|
74952
|
+
const { name } = hArg;
|
|
75103
74953
|
if (!name)
|
|
75104
74954
|
throw 'nameは必須です';
|
|
75105
74955
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -75125,7 +74975,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75125
74975
|
}
|
|
75126
74976
|
static getChOutStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChOutStyle)[name]; }
|
|
75127
74977
|
static ch_out_style(hArg) {
|
|
75128
|
-
const name = hArg
|
|
74978
|
+
const { name } = hArg;
|
|
75129
74979
|
if (!name)
|
|
75130
74980
|
throw 'nameは必須です';
|
|
75131
74981
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -75168,7 +75018,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75168
75018
|
}
|
|
75169
75019
|
reNew() {
|
|
75170
75020
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
|
|
75171
|
-
const to = new TxtStage(this.spLay, () => this.canFocus());
|
|
75021
|
+
const to = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
|
|
75172
75022
|
__classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
|
|
75173
75023
|
__classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
|
|
75174
75024
|
__classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
|
|
@@ -75621,7 +75471,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
75621
75471
|
__classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
|
|
75622
75472
|
};
|
|
75623
75473
|
_TxtStage_cfg = { value: void 0 };
|
|
75624
|
-
|
|
75474
|
+
_TxtStage_appPixi = { value: void 0 };
|
|
75625
75475
|
_TxtStage_evtMng = { value: void 0 };
|
|
75626
75476
|
_TxtStage_hWarning = { value: {
|
|
75627
75477
|
backgroundColor: 0,
|
|
@@ -75988,7 +75838,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
75988
75838
|
__classPrivateFieldGet(this, _Variable_sys, "f").copyBMFolder(from, to);
|
|
75989
75839
|
return false;
|
|
75990
75840
|
}, _Variable_erasebookmark = function _Variable_erasebookmark(hArg) {
|
|
75991
|
-
const place = hArg
|
|
75841
|
+
const { place } = hArg;
|
|
75992
75842
|
if (!place)
|
|
75993
75843
|
throw 'placeは必須です';
|
|
75994
75844
|
delete __classPrivateFieldGet(this, _Variable_data, "f").mark[place];
|
|
@@ -76032,7 +75882,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76032
75882
|
__classPrivateFieldGet(this, _Variable_instances, "m", _Variable_let).call(this, hArg);
|
|
76033
75883
|
return false;
|
|
76034
75884
|
}, _Variable_let_index_of = function _Variable_let_index_of(hArg) {
|
|
76035
|
-
const val = hArg
|
|
75885
|
+
const { val } = hArg;
|
|
76036
75886
|
if (!val)
|
|
76037
75887
|
throw 'valは必須です';
|
|
76038
75888
|
const start = (0, CmnLib_1.argChk_Num)(hArg, 'start', 0);
|
|
@@ -76046,7 +75896,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76046
75896
|
}, _Variable_let_replace = function _Variable_let_replace(hArg) {
|
|
76047
75897
|
if (!hArg.reg)
|
|
76048
75898
|
throw 'regは必須です';
|
|
76049
|
-
const flags = hArg
|
|
75899
|
+
const { flags } = hArg;
|
|
76050
75900
|
const reg = (!flags)
|
|
76051
75901
|
? new RegExp(hArg.reg)
|
|
76052
75902
|
: new RegExp(hArg.reg, flags);
|
|
@@ -76061,7 +75911,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76061
75911
|
}, _Variable_let_search = function _Variable_let_search(hArg) {
|
|
76062
75912
|
if (!hArg.reg)
|
|
76063
75913
|
throw 'regは必須です';
|
|
76064
|
-
const flags = hArg
|
|
75914
|
+
const { flags } = hArg;
|
|
76065
75915
|
const reg = (!flags)
|
|
76066
75916
|
? new RegExp(hArg.reg)
|
|
76067
75917
|
: new RegExp(hArg.reg, flags);
|