@famibee/skynovel 1.27.2 → 1.27.6
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 +57 -0
- package/app.js +392 -428
- package/appMain.js +21 -6
- package/core/lib/preload.d.ts +1 -0
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +7 -0
- 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 +7 -4
- 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 +2 -1
- package/core/lib/sn/TxtLayer.d.ts.map +1 -1
- package/core/lib/sn/TxtStage.d.ts +3 -1
- package/core/lib/sn/TxtStage.d.ts.map +1 -1
- package/package.json +7 -7
- package/web.js +386 -432
package/web.js
CHANGED
|
@@ -43280,6 +43280,72 @@ function getCenter(points) {
|
|
|
43280
43280
|
//# sourceMappingURL=matrix.esm.js.map
|
|
43281
43281
|
|
|
43282
43282
|
|
|
43283
|
+
/***/ }),
|
|
43284
|
+
|
|
43285
|
+
/***/ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js":
|
|
43286
|
+
/*!***********************************************************************************!*\
|
|
43287
|
+
!*** ./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js ***!
|
|
43288
|
+
\***********************************************************************************/
|
|
43289
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
43290
|
+
|
|
43291
|
+
"use strict";
|
|
43292
|
+
__webpack_require__.r(__webpack_exports__);
|
|
43293
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43294
|
+
/* harmony export */ "decode": () => (/* binding */ decode),
|
|
43295
|
+
/* harmony export */ "encode": () => (/* binding */ encode)
|
|
43296
|
+
/* harmony export */ });
|
|
43297
|
+
/*
|
|
43298
|
+
* base64-arraybuffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>
|
|
43299
|
+
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
43300
|
+
* Released under MIT License
|
|
43301
|
+
*/
|
|
43302
|
+
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
43303
|
+
// Use a lookup table to find the index.
|
|
43304
|
+
var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
|
|
43305
|
+
for (var i = 0; i < chars.length; i++) {
|
|
43306
|
+
lookup[chars.charCodeAt(i)] = i;
|
|
43307
|
+
}
|
|
43308
|
+
var encode = function (arraybuffer) {
|
|
43309
|
+
var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';
|
|
43310
|
+
for (i = 0; i < len; i += 3) {
|
|
43311
|
+
base64 += chars[bytes[i] >> 2];
|
|
43312
|
+
base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
|
|
43313
|
+
base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
|
|
43314
|
+
base64 += chars[bytes[i + 2] & 63];
|
|
43315
|
+
}
|
|
43316
|
+
if (len % 3 === 2) {
|
|
43317
|
+
base64 = base64.substring(0, base64.length - 1) + '=';
|
|
43318
|
+
}
|
|
43319
|
+
else if (len % 3 === 1) {
|
|
43320
|
+
base64 = base64.substring(0, base64.length - 2) + '==';
|
|
43321
|
+
}
|
|
43322
|
+
return base64;
|
|
43323
|
+
};
|
|
43324
|
+
var decode = function (base64) {
|
|
43325
|
+
var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
|
|
43326
|
+
if (base64[base64.length - 1] === '=') {
|
|
43327
|
+
bufferLength--;
|
|
43328
|
+
if (base64[base64.length - 2] === '=') {
|
|
43329
|
+
bufferLength--;
|
|
43330
|
+
}
|
|
43331
|
+
}
|
|
43332
|
+
var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);
|
|
43333
|
+
for (i = 0; i < len; i += 4) {
|
|
43334
|
+
encoded1 = lookup[base64.charCodeAt(i)];
|
|
43335
|
+
encoded2 = lookup[base64.charCodeAt(i + 1)];
|
|
43336
|
+
encoded3 = lookup[base64.charCodeAt(i + 2)];
|
|
43337
|
+
encoded4 = lookup[base64.charCodeAt(i + 3)];
|
|
43338
|
+
bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
|
|
43339
|
+
bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
|
|
43340
|
+
bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
|
|
43341
|
+
}
|
|
43342
|
+
return arraybuffer;
|
|
43343
|
+
};
|
|
43344
|
+
|
|
43345
|
+
|
|
43346
|
+
//# sourceMappingURL=base64-arraybuffer.es5.js.map
|
|
43347
|
+
|
|
43348
|
+
|
|
43283
43349
|
/***/ }),
|
|
43284
43350
|
|
|
43285
43351
|
/***/ "./node_modules/@socket.io/component-emitter/index.js":
|
|
@@ -44392,72 +44458,6 @@ Backoff.prototype.setJitter = function(jitter){
|
|
|
44392
44458
|
|
|
44393
44459
|
|
|
44394
44460
|
|
|
44395
|
-
/***/ }),
|
|
44396
|
-
|
|
44397
|
-
/***/ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js":
|
|
44398
|
-
/*!************************************************************************!*\
|
|
44399
|
-
!*** ./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js ***!
|
|
44400
|
-
\************************************************************************/
|
|
44401
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44402
|
-
|
|
44403
|
-
"use strict";
|
|
44404
|
-
__webpack_require__.r(__webpack_exports__);
|
|
44405
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44406
|
-
/* harmony export */ "decode": () => (/* binding */ decode),
|
|
44407
|
-
/* harmony export */ "encode": () => (/* binding */ encode)
|
|
44408
|
-
/* harmony export */ });
|
|
44409
|
-
/*
|
|
44410
|
-
* base64-arraybuffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>
|
|
44411
|
-
* Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
|
|
44412
|
-
* Released under MIT License
|
|
44413
|
-
*/
|
|
44414
|
-
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
44415
|
-
// Use a lookup table to find the index.
|
|
44416
|
-
var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
|
|
44417
|
-
for (var i = 0; i < chars.length; i++) {
|
|
44418
|
-
lookup[chars.charCodeAt(i)] = i;
|
|
44419
|
-
}
|
|
44420
|
-
var encode = function (arraybuffer) {
|
|
44421
|
-
var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';
|
|
44422
|
-
for (i = 0; i < len; i += 3) {
|
|
44423
|
-
base64 += chars[bytes[i] >> 2];
|
|
44424
|
-
base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
|
|
44425
|
-
base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
|
|
44426
|
-
base64 += chars[bytes[i + 2] & 63];
|
|
44427
|
-
}
|
|
44428
|
-
if (len % 3 === 2) {
|
|
44429
|
-
base64 = base64.substring(0, base64.length - 1) + '=';
|
|
44430
|
-
}
|
|
44431
|
-
else if (len % 3 === 1) {
|
|
44432
|
-
base64 = base64.substring(0, base64.length - 2) + '==';
|
|
44433
|
-
}
|
|
44434
|
-
return base64;
|
|
44435
|
-
};
|
|
44436
|
-
var decode = function (base64) {
|
|
44437
|
-
var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
|
|
44438
|
-
if (base64[base64.length - 1] === '=') {
|
|
44439
|
-
bufferLength--;
|
|
44440
|
-
if (base64[base64.length - 2] === '=') {
|
|
44441
|
-
bufferLength--;
|
|
44442
|
-
}
|
|
44443
|
-
}
|
|
44444
|
-
var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);
|
|
44445
|
-
for (i = 0; i < len; i += 4) {
|
|
44446
|
-
encoded1 = lookup[base64.charCodeAt(i)];
|
|
44447
|
-
encoded2 = lookup[base64.charCodeAt(i + 1)];
|
|
44448
|
-
encoded3 = lookup[base64.charCodeAt(i + 2)];
|
|
44449
|
-
encoded4 = lookup[base64.charCodeAt(i + 3)];
|
|
44450
|
-
bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
|
|
44451
|
-
bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
|
|
44452
|
-
bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
|
|
44453
|
-
}
|
|
44454
|
-
return arraybuffer;
|
|
44455
|
-
};
|
|
44456
|
-
|
|
44457
|
-
|
|
44458
|
-
//# sourceMappingURL=base64-arraybuffer.es5.js.map
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
44461
|
/***/ }),
|
|
44462
44462
|
|
|
44463
44463
|
/***/ "./node_modules/css-styled/dist/styled.esm.js":
|
|
@@ -67685,63 +67685,10 @@ function getExt(p) { return (p.match(REG_EXT) ?? [''])[1]; }
|
|
|
67685
67685
|
exports.getExt = getExt;
|
|
67686
67686
|
const platform = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js");
|
|
67687
67687
|
class CmnLib {
|
|
67688
|
-
static cvsResize(cvs) {
|
|
67689
|
-
const bk_cw = CmnLib.cvsWidth;
|
|
67690
|
-
const bk_ch = CmnLib.cvsHeight;
|
|
67691
|
-
let w = globalThis.innerWidth;
|
|
67692
|
-
let h = globalThis.innerHeight;
|
|
67693
|
-
const angle = screen.orientation?.angle ?? 0;
|
|
67694
|
-
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
67695
|
-
if (CmnLib.isMobile &&
|
|
67696
|
-
((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
67697
|
-
[w, h] = [h, w];
|
|
67698
|
-
if (argChk_Boolean(CmnLib.hDip, 'expanding', true) ||
|
|
67699
|
-
CmnLib.stageW > w ||
|
|
67700
|
-
CmnLib.stageH > h) {
|
|
67701
|
-
if (CmnLib.stageW / CmnLib.stageH <= w / h) {
|
|
67702
|
-
CmnLib.cvsHeight = h;
|
|
67703
|
-
CmnLib.cvsWidth = CmnLib.stageW / CmnLib.stageH * h;
|
|
67704
|
-
}
|
|
67705
|
-
else {
|
|
67706
|
-
CmnLib.cvsWidth = w;
|
|
67707
|
-
CmnLib.cvsHeight = CmnLib.stageH / CmnLib.stageW * w;
|
|
67708
|
-
}
|
|
67709
|
-
CmnLib.cvsScale = CmnLib.cvsWidth / CmnLib.stageW;
|
|
67710
|
-
const cr = cvs.getBoundingClientRect();
|
|
67711
|
-
CmnLib.ofsPadLeft_Dom2PIXI = (CmnLib.isMobile
|
|
67712
|
-
? (globalThis.innerWidth - CmnLib.cvsWidth) / 2
|
|
67713
|
-
: cr.left)
|
|
67714
|
-
* (1 - CmnLib.cvsScale);
|
|
67715
|
-
CmnLib.ofsPadTop_Dom2PIXI = (CmnLib.isMobile
|
|
67716
|
-
? (globalThis.innerHeight - CmnLib.cvsHeight) / 2
|
|
67717
|
-
: cr.top)
|
|
67718
|
-
* (1 - CmnLib.cvsScale);
|
|
67719
|
-
}
|
|
67720
|
-
else {
|
|
67721
|
-
CmnLib.cvsWidth = CmnLib.stageW;
|
|
67722
|
-
CmnLib.cvsHeight = CmnLib.stageH;
|
|
67723
|
-
CmnLib.cvsScale = 1;
|
|
67724
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
67725
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
67726
|
-
}
|
|
67727
|
-
if (cvs.parentElement) {
|
|
67728
|
-
const ps = cvs.parentElement.style;
|
|
67729
|
-
ps.position = 'relative';
|
|
67730
|
-
const s = cvs.style;
|
|
67731
|
-
ps.width = s.width = `${CmnLib.cvsWidth}px`;
|
|
67732
|
-
ps.height = s.height = `${CmnLib.cvsHeight}px`;
|
|
67733
|
-
}
|
|
67734
|
-
return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
|
|
67735
|
-
}
|
|
67736
67688
|
}
|
|
67737
67689
|
exports.CmnLib = CmnLib;
|
|
67738
67690
|
CmnLib.stageW = 0;
|
|
67739
67691
|
CmnLib.stageH = 0;
|
|
67740
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
67741
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
67742
|
-
CmnLib.cvsWidth = 0;
|
|
67743
|
-
CmnLib.cvsHeight = 0;
|
|
67744
|
-
CmnLib.cvsScale = 1;
|
|
67745
67692
|
CmnLib.debugLog = false;
|
|
67746
67693
|
CmnLib.isSafari = platform.name === 'Safari';
|
|
67747
67694
|
CmnLib.isFirefox = platform.name === 'Firefox';
|
|
@@ -67750,10 +67697,7 @@ CmnLib.isMobile = !new RegExp('(Windows|OS X)').test(platform.os?.family ?? '');
|
|
|
67750
67697
|
CmnLib.hDip = {};
|
|
67751
67698
|
CmnLib.isDbg = false;
|
|
67752
67699
|
CmnLib.isPackaged = false;
|
|
67753
|
-
CmnLib.isRetina = false;
|
|
67754
67700
|
CmnLib.isDarkMode = false;
|
|
67755
|
-
CmnLib.retinaRate = 1;
|
|
67756
|
-
CmnLib.SN_ID = 'skynovel';
|
|
67757
67701
|
|
|
67758
67702
|
|
|
67759
67703
|
/***/ }),
|
|
@@ -68222,7 +68166,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
68222
68166
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
68223
68167
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
68224
68168
|
};
|
|
68225
|
-
var _DesignCast_instances, _a, _DesignCast_divDesignRoot,
|
|
68169
|
+
var _DesignCast_instances, _a, _DesignCast_divDesignRoot, _DesignCast_scrItr, _DesignCast_alzTagArg, _DesignCast_cfg, _DesignCast_ID_DESIGNMODE, _DesignCast_cntDesignCast, _DesignCast_hId2dc, _DesignCast_aDC, _DesignCast_resizeDiv, _GrpLayDesignCast_sp, _TxtLayPadDesignCast_instances, _TxtLayPadDesignCast_procHint, _PicBtnDesignCast_sp;
|
|
68226
68170
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68227
68171
|
exports.PicBtnDesignCast = exports.TxtBtnDesignCast = exports.BtnDesignCast = exports.TxtLayPadDesignCast = exports.TxtLayDesignCast = exports.GrpLayDesignCast = exports.DesignCast = void 0;
|
|
68228
68172
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -68266,11 +68210,11 @@ class DesignCast {
|
|
|
68266
68210
|
this.rotatable = true;
|
|
68267
68211
|
}
|
|
68268
68212
|
static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
|
|
68269
|
-
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW *
|
|
68213
|
+
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * sys.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * sys.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
|
|
68270
68214
|
__classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
|
|
68271
68215
|
DesignCast.divHint.classList.add('sn_design_hint');
|
|
68272
68216
|
document.body.appendChild(DesignCast.divHint);
|
|
68273
|
-
|
|
68217
|
+
DesignCast.sys = sys;
|
|
68274
68218
|
__classPrivateFieldSet(DesignCast, _a, scrItr, "f", _DesignCast_scrItr);
|
|
68275
68219
|
DesignCast.prpPrs = prpPrs;
|
|
68276
68220
|
__classPrivateFieldSet(DesignCast, _a, alzTagArg, "f", _DesignCast_alzTagArg);
|
|
@@ -68313,8 +68257,8 @@ class DesignCast {
|
|
|
68313
68257
|
}
|
|
68314
68258
|
static cvsResizeDesign() {
|
|
68315
68259
|
const s = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_divDesignRoot).style;
|
|
68316
|
-
s.width = `${CmnLib_1.CmnLib.stageW *
|
|
68317
|
-
s.height = `${CmnLib_1.CmnLib.stageH *
|
|
68260
|
+
s.width = `${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px`;
|
|
68261
|
+
s.height = `${CmnLib_1.CmnLib.stageH * DesignCast.sys.cvsScale}px`;
|
|
68318
68262
|
}
|
|
68319
68263
|
destroy() {
|
|
68320
68264
|
this.div = undefined;
|
|
@@ -68394,8 +68338,8 @@ class DesignCast {
|
|
|
68394
68338
|
const procStart = () => {
|
|
68395
68339
|
tmp.aPos = [NaN, NaN];
|
|
68396
68340
|
tmp.roDeg = this.rotation;
|
|
68397
|
-
const dpx = this.pivot.x *
|
|
68398
|
-
const dpy = this.pivot.y *
|
|
68341
|
+
const dpx = this.pivot.x * DesignCast.sys.cvsScale;
|
|
68342
|
+
const dpy = this.pivot.y * DesignCast.sys.cvsScale;
|
|
68399
68343
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
68400
68344
|
tmp.origin = [dpx, dpy];
|
|
68401
68345
|
Object.assign(this.mov, {
|
|
@@ -68404,7 +68348,7 @@ class DesignCast {
|
|
|
68404
68348
|
});
|
|
68405
68349
|
};
|
|
68406
68350
|
const procEnd = (o) => {
|
|
68407
|
-
|
|
68351
|
+
DesignCast.sys.send2Dbg('_changeCast', {
|
|
68408
68352
|
...o, ':id_tag': this.id_tag,
|
|
68409
68353
|
});
|
|
68410
68354
|
DesignCast.divHint.style.display = 'none';
|
|
@@ -68415,8 +68359,8 @@ class DesignCast {
|
|
|
68415
68359
|
DesignCast.divHint.style.display = 'none';
|
|
68416
68360
|
return;
|
|
68417
68361
|
}
|
|
68418
|
-
const ix = (0, CmnLib_1.int)(this.rect.x += dx /
|
|
68419
|
-
const iy = (0, CmnLib_1.int)(this.rect.y += dy /
|
|
68362
|
+
const ix = (0, CmnLib_1.int)(this.rect.x += dx / DesignCast.sys.cvsScale + this.pivot.x);
|
|
68363
|
+
const iy = (0, CmnLib_1.int)(this.rect.y += dy / DesignCast.sys.cvsScale + this.pivot.y);
|
|
68420
68364
|
this.setPos(ix, iy);
|
|
68421
68365
|
const iw = (0, CmnLib_1.uint)(this.rect.width), ih = (0, CmnLib_1.uint)(this.rect.height);
|
|
68422
68366
|
this.setSize(iw, ih);
|
|
@@ -68460,8 +68404,8 @@ class DesignCast {
|
|
|
68460
68404
|
d.style.width = `${e.width}px`;
|
|
68461
68405
|
d.style.height = `${e.height}px`;
|
|
68462
68406
|
tmp.aPos = e.drag.beforeTranslate;
|
|
68463
|
-
this.rect.width = e.width /
|
|
68464
|
-
this.rect.height = e.height /
|
|
68407
|
+
this.rect.width = e.width / DesignCast.sys.cvsScale;
|
|
68408
|
+
this.rect.height = e.height / DesignCast.sys.cvsScale;
|
|
68465
68409
|
this.procResizeHint(e, e.drag.left, e.drag.top);
|
|
68466
68410
|
})
|
|
68467
68411
|
.on('resizeEnd', resizeEnd)
|
|
@@ -68483,8 +68427,8 @@ class DesignCast {
|
|
|
68483
68427
|
.on('dragOriginEnd', () => {
|
|
68484
68428
|
const [dpx, dpy] = tmp.origin;
|
|
68485
68429
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
68486
|
-
const px = this.pivot.x = dpx /
|
|
68487
|
-
const py = this.pivot.y = dpy /
|
|
68430
|
+
const px = this.pivot.x = dpx / DesignCast.sys.cvsScale;
|
|
68431
|
+
const py = this.pivot.y = dpy / DesignCast.sys.cvsScale;
|
|
68488
68432
|
this.setOther({});
|
|
68489
68433
|
const ix = (0, CmnLib_1.int)(this.rect.x + px);
|
|
68490
68434
|
const iy = (0, CmnLib_1.int)(this.rect.y + py);
|
|
@@ -68532,18 +68476,18 @@ class DesignCast {
|
|
|
68532
68476
|
o.url = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_scrItr).cnvPath4Dbg(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_cfg).searchPath(f.name, Config_1.Config.EXT_SPRITE));
|
|
68533
68477
|
}
|
|
68534
68478
|
catch { }
|
|
68535
|
-
|
|
68479
|
+
DesignCast.sys.send2Dbg('_dropFile', o);
|
|
68536
68480
|
})
|
|
68537
68481
|
.catch(e => console.error(`drop2dc %o`, e));
|
|
68538
68482
|
});
|
|
68539
68483
|
d.addEventListener('dblclick', e => {
|
|
68540
68484
|
e.preventDefault();
|
|
68541
|
-
|
|
68485
|
+
DesignCast.sys.send2Dbg('_focusScript', this.hArg);
|
|
68542
68486
|
});
|
|
68543
68487
|
}
|
|
68544
68488
|
procDragHint(e, left, top) {
|
|
68545
68489
|
const [dx, dy] = e.beforeTranslate;
|
|
68546
|
-
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx /
|
|
68490
|
+
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx / DesignCast.sys.cvsScale)}, ${(0, CmnLib_1.int)(this.rect.y + dy / DesignCast.sys.cvsScale)})`, left, top, this);
|
|
68547
68491
|
}
|
|
68548
68492
|
procResizeHint(e, left, top) {
|
|
68549
68493
|
DesignCast.setHint(`(${(0, CmnLib_1.int)(e.drag.left)}, ${(0, CmnLib_1.int)(e.drag.top)})<br/>${(0, CmnLib_1.int)(this.rect.width)} x ${(0, CmnLib_1.int)(this.rect.height)}`, left, top, this);
|
|
@@ -68609,16 +68553,15 @@ _a = DesignCast, _DesignCast_instances = new WeakSet(), _DesignCast_resizeDiv =
|
|
|
68609
68553
|
this.fncLay();
|
|
68610
68554
|
if (this.div)
|
|
68611
68555
|
Object.assign(this.div.style, {
|
|
68612
|
-
left: `${this.lx + this.rect.x *
|
|
68613
|
-
top: `${this.ly + this.rect.y *
|
|
68614
|
-
width: `${this.rect.width *
|
|
68615
|
-
height: `${this.rect.height *
|
|
68616
|
-
transformOrigin: `${this.pivot.x *
|
|
68556
|
+
left: `${this.lx + this.rect.x * DesignCast.sys.cvsScale}px`,
|
|
68557
|
+
top: `${this.ly + this.rect.y * DesignCast.sys.cvsScale}px`,
|
|
68558
|
+
width: `${this.rect.width * DesignCast.sys.cvsScale}px`,
|
|
68559
|
+
height: `${this.rect.height * DesignCast.sys.cvsScale}px`,
|
|
68560
|
+
transformOrigin: `${this.pivot.x * DesignCast.sys.cvsScale}px ${this.pivot.y * DesignCast.sys.cvsScale}px`,
|
|
68617
68561
|
transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`,
|
|
68618
68562
|
});
|
|
68619
68563
|
};
|
|
68620
68564
|
_DesignCast_divDesignRoot = { value: void 0 };
|
|
68621
|
-
_DesignCast_sys = { value: void 0 };
|
|
68622
68565
|
_DesignCast_scrItr = { value: void 0 };
|
|
68623
68566
|
_DesignCast_alzTagArg = { value: void 0 };
|
|
68624
68567
|
_DesignCast_cfg = { value: void 0 };
|
|
@@ -68752,8 +68695,8 @@ _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint =
|
|
|
68752
68695
|
const x = this.rect.x, y = this.rect.y;
|
|
68753
68696
|
const w = this.rect.width, h = this.rect.height;
|
|
68754
68697
|
const it = this.ts.infTL;
|
|
68755
|
-
const pl = (0, CmnLib_1.int)(x + dx /
|
|
68756
|
-
const pt = (0, CmnLib_1.int)(y + dy /
|
|
68698
|
+
const pl = (0, CmnLib_1.int)(x + dx / DesignCast.sys.cvsScale);
|
|
68699
|
+
const pt = (0, CmnLib_1.int)(y + dy / DesignCast.sys.cvsScale);
|
|
68757
68700
|
const pr = (0, CmnLib_1.int)(it.$width - pl - w);
|
|
68758
68701
|
const pb = (0, CmnLib_1.int)(it.$height - pt - h);
|
|
68759
68702
|
const sp = (re) => ' '.repeat(re);
|
|
@@ -68780,8 +68723,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
68780
68723
|
this.fncLay = (!this.parent && !this.child && layer)
|
|
68781
68724
|
? () => {
|
|
68782
68725
|
const f = DesignCast.hPages[layer].fore;
|
|
68783
|
-
this.lx = f.x *
|
|
68784
|
-
this.ly = f.y *
|
|
68726
|
+
this.lx = f.x * DesignCast.sys.cvsScale;
|
|
68727
|
+
this.ly = f.y * DesignCast.sys.cvsScale;
|
|
68785
68728
|
}
|
|
68786
68729
|
: () => { };
|
|
68787
68730
|
}
|
|
@@ -68796,8 +68739,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
68796
68739
|
onDragStart() {
|
|
68797
68740
|
const aBtn = this.btn.parent.children.filter(b => b !== this.btn);
|
|
68798
68741
|
Object.assign(this.mov, {
|
|
68799
|
-
verticalGuidelines: aBtn.map(b => this.lx + b.x *
|
|
68800
|
-
horizontalGuidelines: aBtn.map(b => this.ly + b.y *
|
|
68742
|
+
verticalGuidelines: aBtn.map(b => this.lx + b.x * DesignCast.sys.cvsScale),
|
|
68743
|
+
horizontalGuidelines: aBtn.map(b => this.ly + b.y * DesignCast.sys.cvsScale),
|
|
68801
68744
|
});
|
|
68802
68745
|
}
|
|
68803
68746
|
}
|
|
@@ -69027,7 +68970,7 @@ class EventMng {
|
|
|
69027
68970
|
hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
|
|
69028
68971
|
sndMng.setEvtMng(this);
|
|
69029
68972
|
scrItr.setOtherObj(this, layMng);
|
|
69030
|
-
TxtLayer_1.TxtLayer.setEvtMng(main, this);
|
|
68973
|
+
TxtLayer_1.TxtLayer.setEvtMng(main, this, sys);
|
|
69031
68974
|
layMng.setEvtMng(this);
|
|
69032
68975
|
sys.setFire((KEY, e) => this.fire(KEY, e));
|
|
69033
68976
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
@@ -69063,9 +69006,8 @@ class EventMng {
|
|
|
69063
69006
|
catch { }
|
|
69064
69007
|
const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
|
|
69065
69008
|
if (ctx) {
|
|
69066
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
69067
69009
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
|
|
69068
|
-
|
|
69010
|
+
document.body.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
69069
69011
|
const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
|
|
69070
69012
|
s.position = 'absolute';
|
|
69071
69013
|
s.left = s.top = '0';
|
|
@@ -69450,11 +69392,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69450
69392
|
const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
|
|
69451
69393
|
const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
|
|
69452
69394
|
const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
|
|
69453
|
-
|
|
69454
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.
|
|
69455
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
|
|
69395
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * this.sys.cvsScale}px`;
|
|
69396
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * this.sys.cvsScale}px`;
|
|
69456
69397
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
|
|
69457
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x *
|
|
69398
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * this.sys.cvsScale}, ${this.sys.cvsScale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
|
|
69458
69399
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
|
|
69459
69400
|
if (masume)
|
|
69460
69401
|
__classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
|
|
@@ -69623,7 +69564,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69623
69564
|
}, "f");
|
|
69624
69565
|
return false;
|
|
69625
69566
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
69626
|
-
const add = hArg
|
|
69567
|
+
const { add, del, to } = hArg;
|
|
69627
69568
|
if (add?.slice(0, 4) === 'dom=') {
|
|
69628
69569
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
|
|
69629
69570
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -69636,7 +69577,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69636
69577
|
}, () => { }));
|
|
69637
69578
|
return false;
|
|
69638
69579
|
}
|
|
69639
|
-
const del = hArg.del;
|
|
69640
69580
|
if (del?.slice(0, 4) === 'dom=') {
|
|
69641
69581
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
|
|
69642
69582
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -69644,7 +69584,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69644
69584
|
g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
|
|
69645
69585
|
return false;
|
|
69646
69586
|
}
|
|
69647
|
-
const to = hArg.to;
|
|
69648
69587
|
if (!to)
|
|
69649
69588
|
throw '[set_focus] add か to は必須です';
|
|
69650
69589
|
switch (to) {
|
|
@@ -69955,40 +69894,34 @@ class FrameMng {
|
|
|
69955
69894
|
}
|
|
69956
69895
|
getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
|
|
69957
69896
|
cvsResize() {
|
|
69958
|
-
const
|
|
69959
|
-
|
|
69960
|
-
const
|
|
69961
|
-
const x = Number(this.val.getVal(
|
|
69962
|
-
const y = Number(this.val.getVal(
|
|
69963
|
-
const w = Number(this.val.getVal(
|
|
69964
|
-
const h = Number(this.val.getVal(
|
|
69965
|
-
f.style.left = this.sys.ofsLeft4frm + x *
|
|
69966
|
-
f.style.top = this.sys.ofsTop4frm + y *
|
|
69967
|
-
f.width = String(w *
|
|
69968
|
-
f.height = String(h *
|
|
69897
|
+
for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
|
|
69898
|
+
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
|
|
69899
|
+
const vn = 'const.sn.frm.' + id;
|
|
69900
|
+
const x = Number(this.val.getVal(vn + '.x'));
|
|
69901
|
+
const y = Number(this.val.getVal(vn + '.y'));
|
|
69902
|
+
const w = Number(this.val.getVal(vn + '.width'));
|
|
69903
|
+
const h = Number(this.val.getVal(vn + '.height'));
|
|
69904
|
+
f.style.left = `${this.sys.ofsLeft4frm + x * this.sys.cvsScale}px`;
|
|
69905
|
+
f.style.top = `${this.sys.ofsTop4frm + y * this.sys.cvsScale}px`;
|
|
69906
|
+
f.width = String(w * this.sys.cvsScale);
|
|
69907
|
+
f.height = String(h * this.sys.cvsScale);
|
|
69969
69908
|
}
|
|
69970
69909
|
}
|
|
69971
69910
|
}
|
|
69972
69911
|
exports.FrameMng = FrameMng;
|
|
69973
69912
|
_FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
|
|
69974
|
-
const id = hArg
|
|
69913
|
+
const { id, src, alpha: a = 1, scale_x: sx = 1, scale_y: sy = 1, rotate: r = 0, } = hArg;
|
|
69975
69914
|
if (!id)
|
|
69976
69915
|
throw 'idは必須です';
|
|
69977
|
-
const src = hArg.src;
|
|
69978
69916
|
if (!src)
|
|
69979
69917
|
throw 'srcは必須です';
|
|
69980
|
-
const
|
|
69981
|
-
if (this.val.getVal(`tmp:${
|
|
69918
|
+
const vn = 'const.sn.frm.' + id;
|
|
69919
|
+
if (this.val.getVal(`tmp:${vn}`))
|
|
69982
69920
|
throw `frame【${id}】はすでにあります`;
|
|
69983
|
-
const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
|
|
69984
|
-
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
69985
|
-
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
69986
|
-
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
69987
69921
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
69988
69922
|
const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
|
|
69989
69923
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
69990
|
-
|
|
69991
|
-
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4frm + rct.x * scl}px; top: ${this.sys.ofsTop4frm + rct.y * scl}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * scl}" height="${rct.height * scl}"></iframe>`);
|
|
69924
|
+
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 * this.sys.cvsScale}px; top: ${this.sys.ofsTop4frm + rct.y * this.sys.cvsScale}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * this.sys.cvsScale}" height="${rct.height * this.sys.cvsScale}"></iframe>`);
|
|
69992
69925
|
const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
|
|
69993
69926
|
const ld = (new pixi_js_1.Loader())
|
|
69994
69927
|
.add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
@@ -70012,16 +69945,16 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70012
69945
|
? this.sys.cur + p2.slice(4)
|
|
70013
69946
|
: v.replace(p1, p1 + url.slice(0, url.lastIndexOf('/') + 1)));
|
|
70014
69947
|
ifrm.onload = () => {
|
|
70015
|
-
this.val.setVal_Nochk('tmp',
|
|
70016
|
-
this.val.setVal_Nochk('tmp',
|
|
70017
|
-
this.val.setVal_Nochk('tmp',
|
|
70018
|
-
this.val.setVal_Nochk('tmp',
|
|
70019
|
-
this.val.setVal_Nochk('tmp',
|
|
70020
|
-
this.val.setVal_Nochk('tmp',
|
|
70021
|
-
this.val.setVal_Nochk('tmp',
|
|
70022
|
-
this.val.setVal_Nochk('tmp',
|
|
70023
|
-
this.val.setVal_Nochk('tmp',
|
|
70024
|
-
this.val.setVal_Nochk('tmp',
|
|
69948
|
+
this.val.setVal_Nochk('tmp', vn, true);
|
|
69949
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
69950
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
69951
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
69952
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
69953
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
69954
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
69955
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
69956
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
69957
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
70025
69958
|
const win = ifrm.contentWindow;
|
|
70026
69959
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
70027
69960
|
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
@@ -70034,131 +69967,125 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70034
69967
|
const re = this.sys.resolution;
|
|
70035
69968
|
return new DOMRect((0, CmnLib_1.argChk_Num)(a, 'x', 0) * re, (0, CmnLib_1.argChk_Num)(a, 'y', 0) * re, (0, CmnLib_1.argChk_Num)(a, 'width', CmnLib_1.CmnLib.stageW) * re, (0, CmnLib_1.argChk_Num)(a, 'height', CmnLib_1.CmnLib.stageH) * re);
|
|
70036
69969
|
}, _FrameMng_let_frame = function _FrameMng_let_frame(hArg) {
|
|
70037
|
-
const id = hArg
|
|
69970
|
+
const { id, var_name } = hArg;
|
|
70038
69971
|
if (!id)
|
|
70039
69972
|
throw 'idは必須です';
|
|
70040
|
-
const
|
|
70041
|
-
if (!
|
|
69973
|
+
const f = document.getElementById(id);
|
|
69974
|
+
if (!f)
|
|
70042
69975
|
throw `id【${id}】はフレームではありません`;
|
|
70043
|
-
const
|
|
70044
|
-
if (!this.val.getVal(`tmp:${
|
|
69976
|
+
const vn = 'const.sn.frm.' + id;
|
|
69977
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
70045
69978
|
throw `frame【${id}】が読み込まれていません`;
|
|
70046
|
-
const var_name = hArg.var_name;
|
|
70047
69979
|
if (!var_name)
|
|
70048
69980
|
throw 'var_nameは必須です';
|
|
70049
|
-
const win =
|
|
69981
|
+
const win = f.contentWindow;
|
|
70050
69982
|
if (!win.hasOwnProperty(var_name))
|
|
70051
69983
|
throw `frame【${id}】に変数/関数【${var_name}】がありません。変数は var付きにして下さい`;
|
|
70052
69984
|
const v = win[var_name];
|
|
70053
|
-
this.val.setVal_Nochk('tmp',
|
|
69985
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, (0, CmnLib_1.argChk_Boolean)(hArg, 'function', false) ? v() : v);
|
|
70054
69986
|
return false;
|
|
70055
69987
|
}, _FrameMng_set_frame = function _FrameMng_set_frame(hArg) {
|
|
70056
|
-
const id = hArg
|
|
69988
|
+
const { id, var_name, text } = hArg;
|
|
70057
69989
|
if (!id)
|
|
70058
69990
|
throw 'idは必須です';
|
|
70059
|
-
const
|
|
70060
|
-
if (!
|
|
69991
|
+
const f = document.getElementById(id);
|
|
69992
|
+
if (!f)
|
|
70061
69993
|
throw `id【${id}】はフレームではありません`;
|
|
70062
|
-
const
|
|
70063
|
-
if (!this.val.getVal(`tmp:${
|
|
69994
|
+
const vn = 'const.sn.frm.' + id;
|
|
69995
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
70064
69996
|
throw `frame【${id}】が読み込まれていません`;
|
|
70065
|
-
const var_name = hArg.var_name;
|
|
70066
69997
|
if (!var_name)
|
|
70067
69998
|
throw 'var_nameは必須です';
|
|
70068
|
-
const text = hArg.text;
|
|
70069
69999
|
if (!text)
|
|
70070
70000
|
throw 'textは必須です';
|
|
70071
|
-
this.val.setVal_Nochk('tmp',
|
|
70072
|
-
const win =
|
|
70001
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, text);
|
|
70002
|
+
const win = f.contentWindow;
|
|
70073
70003
|
win[var_name] = text;
|
|
70074
70004
|
return false;
|
|
70075
70005
|
}, _FrameMng_frame = function _FrameMng_frame(hArg) {
|
|
70076
70006
|
var _a, _b;
|
|
70077
|
-
const id = hArg
|
|
70007
|
+
const { id } = hArg;
|
|
70078
70008
|
if (!id)
|
|
70079
70009
|
throw 'idは必須です';
|
|
70080
|
-
const
|
|
70081
|
-
if (!
|
|
70010
|
+
const f = document.getElementById(id);
|
|
70011
|
+
if (!f)
|
|
70082
70012
|
throw `id【${id}】はフレームではありません`;
|
|
70083
|
-
const
|
|
70084
|
-
if (!this.val.getVal(
|
|
70013
|
+
const vn = 'const.sn.frm.' + id;
|
|
70014
|
+
if (!this.val.getVal('tmp:' + vn))
|
|
70085
70015
|
throw `frame【${id}】が読み込まれていません`;
|
|
70086
|
-
|
|
70087
|
-
|
|
70088
|
-
|
|
70089
|
-
else if (hArg
|
|
70090
|
-
|
|
70091
|
-
}
|
|
70016
|
+
const s = f.style;
|
|
70017
|
+
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
|
|
70018
|
+
s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
|
|
70019
|
+
else if ('index' in hArg)
|
|
70020
|
+
s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
|
|
70092
70021
|
else if (hArg.dive)
|
|
70093
|
-
|
|
70022
|
+
s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
|
|
70094
70023
|
if ('alpha' in hArg) {
|
|
70095
|
-
const a = String(hArg.alpha);
|
|
70096
|
-
|
|
70097
|
-
this.val.setVal_Nochk('tmp', frmnm + '.alpha', a);
|
|
70024
|
+
const a = s.opacity = String(hArg.alpha);
|
|
70025
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
70098
70026
|
}
|
|
70099
70027
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
70100
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
70101
70028
|
if ('x' in hArg || 'y' in hArg) {
|
|
70102
|
-
|
|
70103
|
-
|
|
70104
|
-
this.val.setVal_Nochk('tmp',
|
|
70105
|
-
this.val.setVal_Nochk('tmp',
|
|
70029
|
+
s.left = `${this.sys.ofsLeft4frm + rct.x * this.sys.cvsScale}px`;
|
|
70030
|
+
s.top = `${this.sys.ofsTop4frm + rct.y * this.sys.cvsScale}px`;
|
|
70031
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
70032
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
70106
70033
|
}
|
|
70107
70034
|
if ('scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
70108
70035
|
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
70109
70036
|
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
70110
70037
|
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
70111
|
-
|
|
70112
|
-
this.val.setVal_Nochk('tmp',
|
|
70113
|
-
this.val.setVal_Nochk('tmp',
|
|
70114
|
-
this.val.setVal_Nochk('tmp',
|
|
70038
|
+
s.transform = `scale(${sx}, ${sy}) rotate(${r}deg)`;
|
|
70039
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
70040
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
70041
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
70115
70042
|
}
|
|
70116
70043
|
if ('width' in hArg) {
|
|
70117
|
-
|
|
70118
|
-
this.val.setVal_Nochk('tmp',
|
|
70044
|
+
f.width = String(rct.width * this.sys.cvsScale);
|
|
70045
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
70119
70046
|
}
|
|
70120
70047
|
if ('height' in hArg) {
|
|
70121
|
-
|
|
70122
|
-
this.val.setVal_Nochk('tmp',
|
|
70048
|
+
f.height = String(rct.height * this.sys.cvsScale);
|
|
70049
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
70123
70050
|
}
|
|
70124
70051
|
if ('visible' in hArg) {
|
|
70125
70052
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
70126
|
-
|
|
70127
|
-
this.val.setVal_Nochk('tmp',
|
|
70053
|
+
s.display = v ? 'inline' : 'none';
|
|
70054
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
70128
70055
|
}
|
|
70129
70056
|
if ('b_color' in hArg)
|
|
70130
|
-
|
|
70057
|
+
s.backgroundColor = hArg.b_color;
|
|
70131
70058
|
if ('disabled' in hArg) {
|
|
70132
70059
|
const d = __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id] = (0, CmnLib_1.argChk_Boolean)(hArg, 'disabled', true);
|
|
70133
|
-
const il =
|
|
70060
|
+
const il = f.contentDocument.body.querySelectorAll('input,select');
|
|
70134
70061
|
il.forEach(v => v.disabled = d);
|
|
70135
70062
|
}
|
|
70136
70063
|
return false;
|
|
70137
70064
|
}, _FrameMng_tsy_frame = function _FrameMng_tsy_frame(hArg) {
|
|
70138
|
-
const id = hArg
|
|
70065
|
+
const { id } = hArg;
|
|
70139
70066
|
if (!id)
|
|
70140
70067
|
throw 'idは必須です';
|
|
70141
|
-
const
|
|
70142
|
-
if (!
|
|
70068
|
+
const f = document.getElementById(id);
|
|
70069
|
+
if (!f)
|
|
70143
70070
|
throw `id【${id}】はフレームではありません`;
|
|
70144
|
-
const
|
|
70145
|
-
if (!this.val.getVal(`tmp:${
|
|
70071
|
+
const vn = `const.sn.frm.` + id;
|
|
70072
|
+
if (!this.val.getVal(`tmp:${vn}`, 0))
|
|
70146
70073
|
throw `frame【${id}】が読み込まれていません`;
|
|
70147
70074
|
const hNow = {};
|
|
70148
70075
|
if ('alpha' in hArg)
|
|
70149
|
-
hNow.a =
|
|
70076
|
+
hNow.a = f.style.opacity;
|
|
70150
70077
|
if ('x' in hArg || 'y' in hArg
|
|
70151
70078
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
70152
|
-
hNow.x = Number(this.val.getVal(`tmp:${
|
|
70153
|
-
hNow.y = Number(this.val.getVal(`tmp:${
|
|
70154
|
-
hNow.sx = Number(this.val.getVal(`tmp:${
|
|
70155
|
-
hNow.sy = Number(this.val.getVal(`tmp:${
|
|
70156
|
-
hNow.r = Number(this.val.getVal(`tmp:${
|
|
70079
|
+
hNow.x = Number(this.val.getVal(`tmp:${vn}.x`));
|
|
70080
|
+
hNow.y = Number(this.val.getVal(`tmp:${vn}.y`));
|
|
70081
|
+
hNow.sx = Number(this.val.getVal(`tmp:${vn}.scale_x`));
|
|
70082
|
+
hNow.sy = Number(this.val.getVal(`tmp:${vn}.scale_y`));
|
|
70083
|
+
hNow.r = Number(this.val.getVal(`tmp:${vn}.rotate`));
|
|
70157
70084
|
}
|
|
70158
70085
|
if ('width' in hArg)
|
|
70159
|
-
hNow.w = this.val.getVal(`tmp:${
|
|
70086
|
+
hNow.w = this.val.getVal(`tmp:${vn}.width`);
|
|
70160
70087
|
if ('height' in hArg)
|
|
70161
|
-
hNow.h = this.val.getVal(`tmp:${
|
|
70088
|
+
hNow.h = this.val.getVal(`tmp:${vn}.height`);
|
|
70162
70089
|
const hArg2 = (0, CmnLib_1.cnvTweenArg)(hArg, hNow);
|
|
70163
70090
|
const hTo = {};
|
|
70164
70091
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
@@ -70166,13 +70093,12 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70166
70093
|
if ('alpha' in hArg) {
|
|
70167
70094
|
hTo.a = (0, CmnLib_1.argChk_Num)(hArg2, 'alpha', 0);
|
|
70168
70095
|
fncA = () => {
|
|
70169
|
-
|
|
70096
|
+
f.style.opacity = hNow.a;
|
|
70170
70097
|
this.val.setVal_Nochk('tmp', 'alpha', hNow.a);
|
|
70171
70098
|
};
|
|
70172
70099
|
}
|
|
70173
70100
|
let fncXYSR = () => { };
|
|
70174
70101
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg2);
|
|
70175
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
70176
70102
|
if ('x' in hArg || 'y' in hArg
|
|
70177
70103
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
70178
70104
|
hTo.x = rct.x;
|
|
@@ -70181,30 +70107,30 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70181
70107
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
70182
70108
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
70183
70109
|
fncXYSR = () => {
|
|
70184
|
-
|
|
70185
|
-
|
|
70186
|
-
|
|
70187
|
-
this.val.setVal_Nochk('tmp',
|
|
70188
|
-
this.val.setVal_Nochk('tmp',
|
|
70189
|
-
this.val.setVal_Nochk('tmp',
|
|
70190
|
-
this.val.setVal_Nochk('tmp',
|
|
70191
|
-
this.val.setVal_Nochk('tmp',
|
|
70110
|
+
f.style.left = this.sys.ofsLeft4frm + hNow.x * this.sys.cvsScale + 'px';
|
|
70111
|
+
f.style.top = this.sys.ofsTop4frm + hNow.y * this.sys.cvsScale + 'px';
|
|
70112
|
+
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
70113
|
+
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
70114
|
+
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
70115
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', hNow.sx);
|
|
70116
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', hNow.sy);
|
|
70117
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', hNow.r);
|
|
70192
70118
|
};
|
|
70193
70119
|
}
|
|
70194
70120
|
let fncW = () => { };
|
|
70195
70121
|
if ('width' in hArg) {
|
|
70196
70122
|
hTo.w = rct.width;
|
|
70197
70123
|
fncW = () => {
|
|
70198
|
-
|
|
70199
|
-
this.val.setVal_Nochk('tmp',
|
|
70124
|
+
f.width = hNow.w * this.sys.cvsScale + 'px';
|
|
70125
|
+
this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
|
|
70200
70126
|
};
|
|
70201
70127
|
}
|
|
70202
70128
|
let fncH = () => { };
|
|
70203
70129
|
if ('height' in hArg) {
|
|
70204
70130
|
hTo.h = rct.height;
|
|
70205
70131
|
fncH = () => {
|
|
70206
|
-
|
|
70207
|
-
this.val.setVal_Nochk('tmp',
|
|
70132
|
+
f.height = hNow.h * this.sys.cvsScale + 'px';
|
|
70133
|
+
this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
|
|
70208
70134
|
};
|
|
70209
70135
|
}
|
|
70210
70136
|
this.appPixi.stage.interactive = false;
|
|
@@ -70361,10 +70287,9 @@ class Grammar {
|
|
|
70361
70287
|
this.REG_TOKEN_NOTXT = new RegExp(`[\\n\\t;\\[*&${ce ? `\\${ce}` : ''}]`);
|
|
70362
70288
|
}
|
|
70363
70289
|
bracket2macro(hArg, script, idxToken) {
|
|
70364
|
-
const name = hArg
|
|
70290
|
+
const { name, text } = hArg;
|
|
70365
70291
|
if (!name)
|
|
70366
70292
|
throw '[bracket2macro] nameは必須です';
|
|
70367
|
-
const text = hArg.text;
|
|
70368
70293
|
if (!text)
|
|
70369
70294
|
throw '[bracket2macro] textは必須です';
|
|
70370
70295
|
if (text.length !== 2)
|
|
@@ -70388,7 +70313,7 @@ class Grammar {
|
|
|
70388
70313
|
this.replaceScr_C2M_And_let_ml(script, idxToken);
|
|
70389
70314
|
}
|
|
70390
70315
|
char2macro(hArg, hTag, script, idxToken) {
|
|
70391
|
-
const char = hArg
|
|
70316
|
+
const { char, name } = hArg;
|
|
70392
70317
|
if (!char)
|
|
70393
70318
|
throw '[char2macro] charは必須です';
|
|
70394
70319
|
__classPrivateFieldSet(this, _Grammar_hC2M, __classPrivateFieldGet(this, _Grammar_hC2M, "f") ?? {}, "f");
|
|
@@ -70397,7 +70322,6 @@ class Grammar {
|
|
|
70397
70322
|
__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").lastIndex = 0;
|
|
70398
70323
|
if (__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").test(char))
|
|
70399
70324
|
throw '[char2macro] char【' + char + '】は一文字マクロに使用できない文字です';
|
|
70400
|
-
const name = hArg.name;
|
|
70401
70325
|
if (!name)
|
|
70402
70326
|
throw '[char2macro] nameは必須です';
|
|
70403
70327
|
if (!(name in hTag))
|
|
@@ -70499,8 +70423,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70499
70423
|
}
|
|
70500
70424
|
setSp(_sp) { }
|
|
70501
70425
|
laySub(hArg, resolve) {
|
|
70502
|
-
const fn = hArg
|
|
70503
|
-
const face = hArg.face ?? '';
|
|
70426
|
+
const { fn, face = '' } = hArg;
|
|
70504
70427
|
__classPrivateFieldGet(this, _GrpLayer_idc, "f").sethArg(hArg);
|
|
70505
70428
|
if (!fn) {
|
|
70506
70429
|
super.lay(hArg);
|
|
@@ -70611,7 +70534,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70611
70534
|
return needLoad;
|
|
70612
70535
|
}
|
|
70613
70536
|
static wv(hArg) {
|
|
70614
|
-
const fn = hArg
|
|
70537
|
+
const { fn } = hArg;
|
|
70615
70538
|
if (!fn)
|
|
70616
70539
|
throw 'fnは必須です';
|
|
70617
70540
|
const hve = GrpLayer.hFn2VElm[fn];
|
|
@@ -70710,16 +70633,16 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70710
70633
|
Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
|
|
70711
70634
|
}
|
|
70712
70635
|
static add_face(hArg) {
|
|
70713
|
-
const name = hArg
|
|
70636
|
+
const { name } = hArg;
|
|
70714
70637
|
if (!name)
|
|
70715
70638
|
throw 'nameは必須です';
|
|
70716
70639
|
if (name in __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace))
|
|
70717
70640
|
throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
|
|
70718
|
-
const fn =
|
|
70641
|
+
const { fn = name } = hArg;
|
|
70719
70642
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
70720
70643
|
fn,
|
|
70721
|
-
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0)
|
|
70722
|
-
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0)
|
|
70644
|
+
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0),
|
|
70645
|
+
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0),
|
|
70723
70646
|
blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
|
|
70724
70647
|
};
|
|
70725
70648
|
return false;
|
|
@@ -70926,10 +70849,10 @@ class Layer {
|
|
|
70926
70849
|
return false;
|
|
70927
70850
|
}
|
|
70928
70851
|
static setBlendmode(cnt, hArg) {
|
|
70929
|
-
const
|
|
70930
|
-
if (!
|
|
70852
|
+
const { blendmode } = hArg;
|
|
70853
|
+
if (!blendmode)
|
|
70931
70854
|
return;
|
|
70932
|
-
const bmn = Layer.getBlendmodeNum(
|
|
70855
|
+
const bmn = Layer.getBlendmodeNum(blendmode);
|
|
70933
70856
|
const sp = cnt;
|
|
70934
70857
|
if (sp)
|
|
70935
70858
|
sp.blendMode = bmn;
|
|
@@ -71044,7 +70967,7 @@ class Layer {
|
|
|
71044
70967
|
}
|
|
71045
70968
|
ret.x = (0, CmnLib_1.int)(((ret.scale.x < 0)
|
|
71046
70969
|
? x + (isButton ? b_width / 3 : b_width)
|
|
71047
|
-
: x)
|
|
70970
|
+
: x));
|
|
71048
70971
|
let y = ret.y;
|
|
71049
70972
|
if ('top' in hArg) {
|
|
71050
70973
|
y = (0, CmnLib_1.argChk_Num)(hArg, 'top', 0);
|
|
@@ -71069,8 +70992,7 @@ class Layer {
|
|
|
71069
70992
|
y *= CmnLib_1.CmnLib.stageH;
|
|
71070
70993
|
y = CmnLib_1.CmnLib.stageH - y - b_height;
|
|
71071
70994
|
}
|
|
71072
|
-
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y)
|
|
71073
|
-
* CmnLib_1.CmnLib.retinaRate);
|
|
70995
|
+
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y));
|
|
71074
70996
|
if (isGrp) {
|
|
71075
70997
|
if (!('left' in hArg)
|
|
71076
70998
|
&& !('center' in hArg)
|
|
@@ -71107,7 +71029,7 @@ class Layer {
|
|
|
71107
71029
|
c = b_width * 0.5;
|
|
71108
71030
|
}
|
|
71109
71031
|
else {
|
|
71110
|
-
c = (0, CmnLib_1.int)(pos)
|
|
71032
|
+
c = (0, CmnLib_1.int)(pos);
|
|
71111
71033
|
}
|
|
71112
71034
|
ret.x = (0, CmnLib_1.int)(c - b_width * 0.5);
|
|
71113
71035
|
ret.y = CmnLib_1.CmnLib.stageH - b_height;
|
|
@@ -71274,9 +71196,8 @@ void main(void) {
|
|
|
71274
71196
|
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
71275
71197
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
71276
71198
|
_LayerMng_aTxtLog.set(this, []);
|
|
71277
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
71278
71199
|
const fncResizeLay = () => {
|
|
71279
|
-
if (!
|
|
71200
|
+
if (!sys.cvsResize())
|
|
71280
71201
|
return;
|
|
71281
71202
|
this.cvsResizeDesign();
|
|
71282
71203
|
if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
|
|
@@ -71290,14 +71211,14 @@ void main(void) {
|
|
|
71290
71211
|
globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
|
|
71291
71212
|
}
|
|
71292
71213
|
else {
|
|
71293
|
-
let tid =
|
|
71214
|
+
let tid = undefined;
|
|
71294
71215
|
globalThis.addEventListener('resize', () => {
|
|
71295
71216
|
if (tid)
|
|
71296
71217
|
return;
|
|
71297
|
-
tid = setTimeout(() => { tid =
|
|
71218
|
+
tid = setTimeout(() => { tid = undefined; fncResizeLay(); }, 1000 / 60 * 10);
|
|
71298
71219
|
}, { passive: true });
|
|
71299
71220
|
}
|
|
71300
|
-
|
|
71221
|
+
sys.cvsResize();
|
|
71301
71222
|
TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
|
|
71302
71223
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
71303
71224
|
Button_1.Button.init(cfg);
|
|
@@ -71575,7 +71496,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71575
71496
|
});
|
|
71576
71497
|
return false;
|
|
71577
71498
|
}, _LayerMng_loadplugin = function _LayerMng_loadplugin(hArg) {
|
|
71578
|
-
const fn = hArg
|
|
71499
|
+
const { fn } = hArg;
|
|
71579
71500
|
if (!fn)
|
|
71580
71501
|
throw 'fnは必須です';
|
|
71581
71502
|
const join = (0, CmnLib_1.argChk_Boolean)(hArg, 'join', true);
|
|
@@ -71594,14 +71515,13 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71594
71515
|
}
|
|
71595
71516
|
return join;
|
|
71596
71517
|
}, _LayerMng_add_lay = function _LayerMng_add_lay(hArg) {
|
|
71597
|
-
const layer = hArg
|
|
71518
|
+
const { layer, class: cls } = hArg;
|
|
71598
71519
|
if (!layer)
|
|
71599
71520
|
throw 'layerは必須です';
|
|
71600
71521
|
if (layer.includes(','))
|
|
71601
71522
|
throw 'layer名に「,」は使えません';
|
|
71602
71523
|
if (layer in __classPrivateFieldGet(this, _LayerMng_hPages, "f"))
|
|
71603
71524
|
throw `layer【${layer}】はすでにあります`;
|
|
71604
|
-
const cls = hArg.class;
|
|
71605
71525
|
if (!cls)
|
|
71606
71526
|
throw 'clsは必須です';
|
|
71607
71527
|
const ret = { isWait: false };
|
|
@@ -71657,7 +71577,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71657
71577
|
}
|
|
71658
71578
|
}
|
|
71659
71579
|
else if (hArg.dive) {
|
|
71660
|
-
const dive = hArg
|
|
71580
|
+
const { dive } = hArg;
|
|
71661
71581
|
let idx_dive = 0;
|
|
71662
71582
|
if (layer === dive)
|
|
71663
71583
|
throw '[lay] 属性 layerとdiveが同じ【' + dive + '】です';
|
|
@@ -71969,8 +71889,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71969
71889
|
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm]?.tw?.resume();
|
|
71970
71890
|
return false;
|
|
71971
71891
|
}, _LayerMng_ch = function _LayerMng_ch(hArg) {
|
|
71972
|
-
const
|
|
71973
|
-
if (!
|
|
71892
|
+
const { text } = hArg;
|
|
71893
|
+
if (!text)
|
|
71974
71894
|
throw 'textは必須です';
|
|
71975
71895
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
71976
71896
|
delete hArg.text;
|
|
@@ -71982,7 +71902,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71982
71902
|
const doRecLog = this.val.doRecLog();
|
|
71983
71903
|
if (!record)
|
|
71984
71904
|
this.val.setVal_Nochk('save', 'sn.doRecLog', record);
|
|
71985
|
-
tl.tagCh(
|
|
71905
|
+
tl.tagCh(text.replaceAll('[r]', '\n'));
|
|
71986
71906
|
if (!record)
|
|
71987
71907
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
71988
71908
|
return false;
|
|
@@ -71995,7 +71915,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71995
71915
|
const tf = lay;
|
|
71996
71916
|
return tf;
|
|
71997
71917
|
}, _LayerMng_$current = function _LayerMng_$current(hArg) {
|
|
71998
|
-
const layer = hArg
|
|
71918
|
+
const { layer } = hArg;
|
|
71999
71919
|
if (!layer)
|
|
72000
71920
|
throw '[current] layerは必須です';
|
|
72001
71921
|
__classPrivateFieldSet(this, _LayerMng_pgTxtlay, __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer], "f");
|
|
@@ -72054,10 +71974,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
72054
71974
|
this.val.setVal_Nochk('save', 'const.sn.sLog', (hArg.text) ? `[{text:"${hArg.text}"}]` : '[]');
|
|
72055
71975
|
return false;
|
|
72056
71976
|
}, _LayerMng_ruby2 = function _LayerMng_ruby2(hArg) {
|
|
72057
|
-
const t = hArg
|
|
71977
|
+
const { t, r } = hArg;
|
|
72058
71978
|
if (!t)
|
|
72059
71979
|
throw '[ruby2] tは必須です';
|
|
72060
|
-
const r = hArg.r;
|
|
72061
71980
|
if (!r)
|
|
72062
71981
|
throw '[ruby2] rは必須です';
|
|
72063
71982
|
hArg.text = '|' + t + '《' + r + '》';
|
|
@@ -72126,7 +72045,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
72126
72045
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
72127
72046
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
72128
72047
|
};
|
|
72129
|
-
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
72048
|
+
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_SN_ID, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
72130
72049
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
72131
72050
|
exports.Main = void 0;
|
|
72132
72051
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -72158,6 +72077,7 @@ class Main {
|
|
|
72158
72077
|
_Main_fncNext.set(this, () => { });
|
|
72159
72078
|
_Main_alzTagArg.set(this, new AnalyzeTagArg_1.AnalyzeTagArg);
|
|
72160
72079
|
_Main_inited.set(this, false);
|
|
72080
|
+
_Main_SN_ID.set(this, 'skynovel');
|
|
72161
72081
|
_Main_fncTicker.set(this, () => __classPrivateFieldGet(this, _Main_fncNext, "f").call(this));
|
|
72162
72082
|
_Main_fncresume.set(this, (fnc = __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze)) => {
|
|
72163
72083
|
if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
|
|
@@ -72234,14 +72154,14 @@ class Main {
|
|
|
72234
72154
|
__classPrivateFieldGet(this, _Main_dbgMng, "f").destroy();
|
|
72235
72155
|
__classPrivateFieldGet(this, _Main_appPixi, "f").ticker.remove(__classPrivateFieldGet(this, _Main_fncTicker, "f"));
|
|
72236
72156
|
if (__classPrivateFieldGet(this, _Main_clone_cvs, "f") && __classPrivateFieldGet(this, _Main_appPixi, "f")) {
|
|
72237
|
-
|
|
72157
|
+
document.body.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
72238
72158
|
}
|
|
72239
72159
|
pixi_js_1.utils.clearTextureCache();
|
|
72240
72160
|
__classPrivateFieldGet(this, _Main_appPixi, "f").destroy(true);
|
|
72241
72161
|
}
|
|
72242
72162
|
}
|
|
72243
72163
|
exports.Main = Main;
|
|
72244
|
-
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
72164
|
+
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_SN_ID = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
72245
72165
|
const cc = document.createElement('canvas')?.getContext('2d');
|
|
72246
72166
|
if (!cc)
|
|
72247
72167
|
throw 'argChk_Color err';
|
|
@@ -72254,16 +72174,16 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
72254
72174
|
resolution: globalThis.devicePixelRatio ?? 1,
|
|
72255
72175
|
autoResize: true,
|
|
72256
72176
|
};
|
|
72257
|
-
const cvs = document.getElementById(
|
|
72177
|
+
const cvs = document.getElementById(__classPrivateFieldGet(this, _Main_SN_ID, "f"));
|
|
72258
72178
|
if (cvs) {
|
|
72259
72179
|
__classPrivateFieldSet(this, _Main_clone_cvs, cvs.cloneNode(true), "f");
|
|
72260
|
-
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id =
|
|
72180
|
+
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
72261
72181
|
hApp.view = cvs;
|
|
72262
72182
|
}
|
|
72263
72183
|
__classPrivateFieldSet(this, _Main_appPixi, new pixi_js_1.Application(hApp), "f");
|
|
72264
72184
|
if (!cvs) {
|
|
72265
72185
|
document.body.appendChild(__classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
72266
|
-
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id =
|
|
72186
|
+
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
72267
72187
|
}
|
|
72268
72188
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
72269
72189
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
@@ -73408,7 +73328,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73408
73328
|
return a;
|
|
73409
73329
|
}, _ScriptIterator_let_ml = function _ScriptIterator_let_ml(hArg) {
|
|
73410
73330
|
var _b;
|
|
73411
|
-
const name = hArg
|
|
73331
|
+
const { name } = hArg;
|
|
73412
73332
|
if (!name)
|
|
73413
73333
|
throw 'nameは必須です';
|
|
73414
73334
|
let ml = '';
|
|
@@ -73466,7 +73386,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73466
73386
|
}
|
|
73467
73387
|
return ret;
|
|
73468
73388
|
}, _ScriptIterator_dump_script = function _ScriptIterator_dump_script(hArg) {
|
|
73469
|
-
const set_fnc = hArg
|
|
73389
|
+
const { set_fnc, break_fnc } = hArg;
|
|
73470
73390
|
if (!set_fnc)
|
|
73471
73391
|
throw 'set_fncは必須です';
|
|
73472
73392
|
__classPrivateFieldSet(this, _ScriptIterator_fncSet, globalThis[set_fnc], "f");
|
|
@@ -73486,7 +73406,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73486
73406
|
__classPrivateFieldGet(this, _ScriptIterator_fncBreak, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"), goto);
|
|
73487
73407
|
};
|
|
73488
73408
|
this.noticeBreak(true);
|
|
73489
|
-
const break_fnc = hArg.break_fnc;
|
|
73490
73409
|
if (!break_fnc)
|
|
73491
73410
|
return false;
|
|
73492
73411
|
__classPrivateFieldSet(this, _ScriptIterator_fncBreak, globalThis[break_fnc], "f");
|
|
@@ -73504,7 +73423,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73504
73423
|
return false;
|
|
73505
73424
|
}, _ScriptIterator_if = function _ScriptIterator_if(hArg) {
|
|
73506
73425
|
var _b, _c;
|
|
73507
|
-
const exp = hArg
|
|
73426
|
+
const { exp } = hArg;
|
|
73508
73427
|
if (!exp)
|
|
73509
73428
|
throw 'expは必須です';
|
|
73510
73429
|
if (exp.charAt(0) === '&')
|
|
@@ -73573,7 +73492,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73573
73492
|
}, _ScriptIterator_call = function _ScriptIterator_call(hArg) {
|
|
73574
73493
|
if (!(0, CmnLib_1.argChk_Boolean)(hArg, 'count', false))
|
|
73575
73494
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_eraseKidoku).call(this);
|
|
73576
|
-
const fn = hArg
|
|
73495
|
+
const { fn } = hArg;
|
|
73577
73496
|
if (fn)
|
|
73578
73497
|
__classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
|
|
73579
73498
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
|
|
@@ -73604,7 +73523,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73604
73523
|
__classPrivateFieldSet(this, _ScriptIterator_posAPageLog, -1, "f");
|
|
73605
73524
|
return false;
|
|
73606
73525
|
}
|
|
73607
|
-
const to = hArg
|
|
73526
|
+
const { to } = hArg;
|
|
73608
73527
|
if (!to)
|
|
73609
73528
|
throw 'clearかtoは必須です';
|
|
73610
73529
|
const oldPos = __classPrivateFieldGet(this, _ScriptIterator_posAPageLog, "f");
|
|
@@ -73880,7 +73799,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73880
73799
|
return false;
|
|
73881
73800
|
}, _ScriptIterator_macro = function _ScriptIterator_macro(hArg) {
|
|
73882
73801
|
var _b, _c;
|
|
73883
|
-
const name = hArg
|
|
73802
|
+
const { name } = hArg;
|
|
73884
73803
|
if (!name)
|
|
73885
73804
|
throw 'nameは必須です';
|
|
73886
73805
|
if (name in this.hTag)
|
|
@@ -74130,7 +74049,7 @@ class SoundMng {
|
|
|
74130
74049
|
}
|
|
74131
74050
|
exports.SoundMng = SoundMng;
|
|
74132
74051
|
_a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(), _SoundMng_evtMng = new WeakMap(), _SoundMng_initVol = new WeakMap(), _SoundMng_instances = new WeakSet(), _SoundMng_volume = function _SoundMng_volume(hArg) {
|
|
74133
|
-
const buf =
|
|
74052
|
+
const { buf = 'SE' } = hArg;
|
|
74134
74053
|
const bvn = 'const.sn.sound.' + buf + '.volume';
|
|
74135
74054
|
const arg_vol = __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_getVol).call(this, hArg, 1);
|
|
74136
74055
|
if (Number(this.val.getVal('sys:' + bvn)) === arg_vol)
|
|
@@ -74149,7 +74068,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74149
74068
|
return vol;
|
|
74150
74069
|
}, _SoundMng_fadeoutbgm = function _SoundMng_fadeoutbgm(hArg) { hArg.volume = 0; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadebgm).call(this, hArg); }, _SoundMng_fadeoutse = function _SoundMng_fadeoutse(hArg) { hArg.volume = 0; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadese).call(this, hArg); }, _SoundMng_fadebgm = function _SoundMng_fadebgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadese).call(this, hArg); }, _SoundMng_fadese = function _SoundMng_fadese(hArg) {
|
|
74151
74070
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
74152
|
-
const buf =
|
|
74071
|
+
const { buf = 'SE' } = hArg;
|
|
74153
74072
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74154
74073
|
if (!oSb?.playing() || !oSb.snd)
|
|
74155
74074
|
return false;
|
|
@@ -74200,9 +74119,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74200
74119
|
(0, CmnLib_1.argChk_Boolean)(hArg, 'loop', true);
|
|
74201
74120
|
return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playse).call(this, hArg);
|
|
74202
74121
|
}, _SoundMng_playse = function _SoundMng_playse(hArg) {
|
|
74203
|
-
const buf =
|
|
74122
|
+
const { buf = 'SE', fn } = hArg;
|
|
74204
74123
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
74205
|
-
const fn = hArg.fn;
|
|
74206
74124
|
if (!fn)
|
|
74207
74125
|
throw `[playse] fnは必須です buf:${buf}`;
|
|
74208
74126
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
@@ -74400,7 +74318,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74400
74318
|
sound_1.sound.stopAll();
|
|
74401
74319
|
return false;
|
|
74402
74320
|
}, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
|
|
74403
|
-
const buf =
|
|
74321
|
+
const { buf = 'SE' } = hArg;
|
|
74404
74322
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
74405
74323
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74406
74324
|
if (oSb) {
|
|
@@ -74409,17 +74327,17 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74409
74327
|
}
|
|
74410
74328
|
return false;
|
|
74411
74329
|
}, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
|
|
74412
|
-
const buf =
|
|
74330
|
+
const { buf = 'SE' } = hArg;
|
|
74413
74331
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74414
74332
|
if (!oSb?.twFade || !oSb.playing())
|
|
74415
74333
|
return false;
|
|
74416
74334
|
return oSb.resumeFade = __classPrivateFieldGet(this, _SoundMng_evtMng, "f").waitEvent(() => __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg), (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
74417
74335
|
}, _SoundMng_stopfadese = function _SoundMng_stopfadese(hArg) {
|
|
74418
|
-
const buf =
|
|
74336
|
+
const { buf = 'SE' } = hArg;
|
|
74419
74337
|
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.twFade?.stop().end();
|
|
74420
74338
|
return false;
|
|
74421
74339
|
}, _SoundMng_wl = function _SoundMng_wl(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_ws).call(this, hArg); }, _SoundMng_ws = function _SoundMng_ws(hArg) {
|
|
74422
|
-
const buf =
|
|
74340
|
+
const { buf = 'SE' } = hArg;
|
|
74423
74341
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74424
74342
|
if (!oSb?.playing() || oSb.loop)
|
|
74425
74343
|
return false;
|
|
@@ -74432,8 +74350,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74432
74350
|
oSb2.onend();
|
|
74433
74351
|
}, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', false), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
74434
74352
|
}, _SoundMng_xchgbuf = function _SoundMng_xchgbuf(hArg) {
|
|
74435
|
-
const buf1 =
|
|
74436
|
-
const buf2 = hArg.buf2 ?? 'SE';
|
|
74353
|
+
const { buf: buf1 = 'SE', buf2 = 'SE' } = hArg;
|
|
74437
74354
|
if (buf1 === buf2)
|
|
74438
74355
|
return false;
|
|
74439
74356
|
const sb1 = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf1];
|
|
@@ -74503,7 +74420,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
74503
74420
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
74504
74421
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
74505
74422
|
};
|
|
74506
|
-
var _a, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
74423
|
+
var _a, _SysBase_cvsWidth, _SysBase_cvsHeight, _SysBase_cvsScale, _SysBase_ofsLeft4frm, _SysBase_ofsTop4frm, _SysBase_ofsPadLeft_Dom2PIXI, _SysBase_ofsPadTop_Dom2PIXI, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
74507
74424
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74508
74425
|
exports.SysBase = void 0;
|
|
74509
74426
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -74515,8 +74432,15 @@ class SysBase {
|
|
|
74515
74432
|
this.hFactoryCls = {};
|
|
74516
74433
|
this.fetch = (url) => fetch(url);
|
|
74517
74434
|
this.resolution = 1;
|
|
74518
|
-
this.reso4frame = 1;
|
|
74519
74435
|
this.data = { sys: {}, mark: {}, kidoku: {} };
|
|
74436
|
+
_SysBase_cvsWidth.set(this, 0);
|
|
74437
|
+
_SysBase_cvsHeight.set(this, 0);
|
|
74438
|
+
_SysBase_cvsScale.set(this, 1);
|
|
74439
|
+
_SysBase_ofsLeft4frm.set(this, 0);
|
|
74440
|
+
_SysBase_ofsTop4frm.set(this, 0);
|
|
74441
|
+
_SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
|
|
74442
|
+
_SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
|
|
74443
|
+
this.isFullScr = false;
|
|
74520
74444
|
this.extPort = 3776;
|
|
74521
74445
|
_SysBase_sk.set(this, undefined);
|
|
74522
74446
|
_SysBase_hHook.set(this, {
|
|
@@ -74557,7 +74481,7 @@ class SysBase {
|
|
|
74557
74481
|
this._import = () => false;
|
|
74558
74482
|
this.navigate_to = () => false;
|
|
74559
74483
|
this.title = hArg => {
|
|
74560
|
-
const text = hArg
|
|
74484
|
+
const { text } = hArg;
|
|
74561
74485
|
if (!text)
|
|
74562
74486
|
throw '[title] textは必須です';
|
|
74563
74487
|
__classPrivateFieldSet(this, _SysBase_main_title, text, "f");
|
|
@@ -74604,8 +74528,6 @@ class SysBase {
|
|
|
74604
74528
|
this.$path_downloads = '';
|
|
74605
74529
|
this.$path_userdata = '';
|
|
74606
74530
|
this.canCapturePage = (_fn) => false;
|
|
74607
|
-
this.ofsLeft4frm = 0;
|
|
74608
|
-
this.ofsTop4frm = 0;
|
|
74609
74531
|
}
|
|
74610
74532
|
async loaded(hPlg, _arg) {
|
|
74611
74533
|
const fncPre = hPlg.snsys_pre;
|
|
@@ -74654,6 +74576,7 @@ class SysBase {
|
|
|
74654
74576
|
val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
|
|
74655
74577
|
val.setVal_Nochk('tmp', 'const.sn.isDbg', () => CmnLib_1.CmnLib.isDbg);
|
|
74656
74578
|
val.setVal_Nochk('tmp', 'const.sn.isPackaged', () => CmnLib_1.CmnLib.isPackaged);
|
|
74579
|
+
this.val.defTmp('const.sn.displayState', () => this.isFullScr);
|
|
74657
74580
|
val.setVal_Nochk('sys', SysBase.VALNM_CFG_NS, this.cfg.oCfg.save_ns);
|
|
74658
74581
|
val.flush();
|
|
74659
74582
|
if (CmnLib_1.CmnLib.isDbg)
|
|
@@ -74683,6 +74606,78 @@ class SysBase {
|
|
|
74683
74606
|
}));
|
|
74684
74607
|
return a;
|
|
74685
74608
|
}
|
|
74609
|
+
get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
|
|
74610
|
+
;
|
|
74611
|
+
get ofsLeft4frm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4frm, "f"); }
|
|
74612
|
+
;
|
|
74613
|
+
get ofsTop4frm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4frm, "f"); }
|
|
74614
|
+
;
|
|
74615
|
+
get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
|
|
74616
|
+
;
|
|
74617
|
+
get ofsPadTop_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadTop_Dom2PIXI, "f"); }
|
|
74618
|
+
;
|
|
74619
|
+
cvsResize() {
|
|
74620
|
+
const bk_cw = __classPrivateFieldGet(this, _SysBase_cvsWidth, "f");
|
|
74621
|
+
const bk_ch = __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
74622
|
+
let w = globalThis.innerWidth;
|
|
74623
|
+
let h = globalThis.innerHeight;
|
|
74624
|
+
const { angle = 0 } = screen.orientation;
|
|
74625
|
+
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
74626
|
+
if (CmnLib_1.CmnLib.isMobile && ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
74627
|
+
[w, h] = [h, w];
|
|
74628
|
+
const cvs = this.appPixi.view;
|
|
74629
|
+
if ((0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true) ||
|
|
74630
|
+
CmnLib_1.CmnLib.stageW > w ||
|
|
74631
|
+
CmnLib_1.CmnLib.stageH > h) {
|
|
74632
|
+
if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
|
|
74633
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, h, "f");
|
|
74634
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH * h, "f");
|
|
74635
|
+
}
|
|
74636
|
+
else {
|
|
74637
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, w, "f");
|
|
74638
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH / CmnLib_1.CmnLib.stageW * w, "f");
|
|
74639
|
+
}
|
|
74640
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") / CmnLib_1.CmnLib.stageW, "f");
|
|
74641
|
+
const cr = cvs.getBoundingClientRect();
|
|
74642
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
74643
|
+
? (globalThis.innerWidth - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2
|
|
74644
|
+
: cr.left) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
74645
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
74646
|
+
? (globalThis.innerHeight - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2
|
|
74647
|
+
: cr.top) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
74648
|
+
}
|
|
74649
|
+
else {
|
|
74650
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW, "f");
|
|
74651
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH, "f");
|
|
74652
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, 1, "f");
|
|
74653
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, 0, "f");
|
|
74654
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, 0, "f");
|
|
74655
|
+
}
|
|
74656
|
+
if (cvs.parentElement) {
|
|
74657
|
+
const ps = cvs.parentElement.style;
|
|
74658
|
+
ps.position = 'relative';
|
|
74659
|
+
ps.width = `${__classPrivateFieldGet(this, _SysBase_cvsWidth, "f")}px`;
|
|
74660
|
+
ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
|
|
74661
|
+
const s = cvs.style;
|
|
74662
|
+
if (this.isFullScr) {
|
|
74663
|
+
s.width = '';
|
|
74664
|
+
s.height = '';
|
|
74665
|
+
}
|
|
74666
|
+
else {
|
|
74667
|
+
s.width = ps.width;
|
|
74668
|
+
s.height = ps.height;
|
|
74669
|
+
}
|
|
74670
|
+
}
|
|
74671
|
+
if (this.isFullScr) {
|
|
74672
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4frm, (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
|
|
74673
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4frm, (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
|
|
74674
|
+
}
|
|
74675
|
+
else {
|
|
74676
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4frm, 0, "f");
|
|
74677
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4frm, 0, "f");
|
|
74678
|
+
}
|
|
74679
|
+
return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
74680
|
+
}
|
|
74686
74681
|
attach_debug(main) {
|
|
74687
74682
|
this.attach_debug = () => { };
|
|
74688
74683
|
const gs = document.createElement('style');
|
|
@@ -74727,24 +74722,21 @@ class SysBase {
|
|
|
74727
74722
|
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
74728
74723
|
}
|
|
74729
74724
|
toast(nm) {
|
|
74730
|
-
const
|
|
74731
|
-
if (!cvs)
|
|
74732
|
-
return;
|
|
74733
|
-
const p = cvs.parentNode;
|
|
74725
|
+
const p = document.body;
|
|
74734
74726
|
p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
|
|
74735
74727
|
const img = document.createElement('img');
|
|
74736
74728
|
const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
|
|
74737
74729
|
img.src = `data:image/svg+xml;base64,${td.dat}`;
|
|
74738
|
-
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 *
|
|
74730
|
+
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f");
|
|
74739
74731
|
img.width = img.height = size;
|
|
74740
74732
|
img.style.cssText =
|
|
74741
74733
|
`position: absolute;
|
|
74742
|
-
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 *
|
|
74743
|
-
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 *
|
|
74734
|
+
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dx ?? 0)}px;
|
|
74735
|
+
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dy ?? 0)}px;`;
|
|
74744
74736
|
img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
|
|
74745
74737
|
if (!td.ease)
|
|
74746
74738
|
img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
|
|
74747
|
-
p.insertBefore(img,
|
|
74739
|
+
p.insertBefore(img, this.appPixi.view);
|
|
74748
74740
|
}
|
|
74749
74741
|
setFire(fire) { this.fire = fire; }
|
|
74750
74742
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
@@ -74765,28 +74757,9 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
74765
74757
|
;
|
|
74766
74758
|
async appendFile(_path, _data, _callback) { }
|
|
74767
74759
|
async ensureFileSync(_path) { }
|
|
74768
|
-
resizeFrames() {
|
|
74769
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
74770
|
-
const a = document.getElementsByTagName('iframe');
|
|
74771
|
-
const len = a.length;
|
|
74772
|
-
for (let i = 0; i < len; ++i) {
|
|
74773
|
-
const it = a[i];
|
|
74774
|
-
const frmnm = `const.sn.frm.${it.id}`;
|
|
74775
|
-
it.style.left = this.ofsLeft4frm + cr.left
|
|
74776
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.x`)) * this.reso4frame
|
|
74777
|
-
+ 'px';
|
|
74778
|
-
it.style.top = this.ofsTop4frm + cr.top
|
|
74779
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.y`)) * this.reso4frame
|
|
74780
|
-
+ 'px';
|
|
74781
|
-
it.width = String(Number(this.val.getVal(`tmp:${frmnm}.width`))
|
|
74782
|
-
* this.reso4frame);
|
|
74783
|
-
it.height = String(Number(this.val.getVal(`tmp:${frmnm}.height`))
|
|
74784
|
-
* this.reso4frame);
|
|
74785
|
-
}
|
|
74786
|
-
}
|
|
74787
74760
|
}
|
|
74788
74761
|
exports.SysBase = SysBase;
|
|
74789
|
-
_a = SysBase, _SysBase_sk = new WeakMap(), _SysBase_hHook = new WeakMap(), _SysBase_aFncHook = new WeakMap(), _SysBase_main_title = new WeakMap(), _SysBase_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
|
|
74762
|
+
_a = SysBase, _SysBase_cvsWidth = new WeakMap(), _SysBase_cvsHeight = new WeakMap(), _SysBase_cvsScale = new WeakMap(), _SysBase_ofsLeft4frm = new WeakMap(), _SysBase_ofsTop4frm = 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_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
|
|
74790
74763
|
SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
|
|
74791
74764
|
_SysBase_hToastDat = { value: {
|
|
74792
74765
|
'接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
|
|
@@ -74822,7 +74795,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
74822
74795
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
74823
74796
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
74824
74797
|
};
|
|
74825
|
-
var
|
|
74798
|
+
var _SysWeb_path_base, _SysWeb_now_prj, _SysWeb_main, _SysWeb_hAppendFile;
|
|
74826
74799
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74827
74800
|
exports.SysWeb = void 0;
|
|
74828
74801
|
const SysBase_1 = __webpack_require__(/*! ./SysBase */ "./core/src/sn/SysBase.ts");
|
|
@@ -74833,9 +74806,7 @@ __webpack_require__(/*! devtools-detect */ "./node_modules/devtools-detect/index
|
|
|
74833
74806
|
class SysWeb extends SysBase_1.SysBase {
|
|
74834
74807
|
constructor(hPlg = {}, arg = { cur: 'prj/', crypto: false, dip: '' }) {
|
|
74835
74808
|
super(hPlg, arg);
|
|
74836
|
-
_SysWeb_instances.add(this);
|
|
74837
74809
|
_SysWeb_path_base.set(this, '');
|
|
74838
|
-
_SysWeb_isFullScr.set(this, false);
|
|
74839
74810
|
_SysWeb_now_prj.set(this, ':');
|
|
74840
74811
|
this.run = async () => {
|
|
74841
74812
|
if (__classPrivateFieldGet(this, _SysWeb_main, "f")) {
|
|
@@ -74904,7 +74875,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74904
74875
|
return false;
|
|
74905
74876
|
};
|
|
74906
74877
|
this.navigate_to = hArg => {
|
|
74907
|
-
const url = hArg
|
|
74878
|
+
const { url } = hArg;
|
|
74908
74879
|
if (!url)
|
|
74909
74880
|
throw '[navigate_to] urlは必須です';
|
|
74910
74881
|
globalThis.open(url, '_blank');
|
|
@@ -74918,18 +74889,14 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74918
74889
|
async loaded(hPlg, arg) {
|
|
74919
74890
|
await super.loaded(hPlg, arg);
|
|
74920
74891
|
const tgl_full_scr = ('requestFullscreen' in document.body)
|
|
74921
|
-
? () =>
|
|
74922
|
-
|
|
74923
|
-
|
|
74924
|
-
: document.exitFullscreen())
|
|
74925
|
-
.then(() => __classPrivateFieldGet(this, _SysWeb_instances, "m", _SysWeb_resizeFramesWork).call(this));
|
|
74926
|
-
}
|
|
74892
|
+
? () => ((this.isFullScr = !Boolean(document.fullscreenElement))
|
|
74893
|
+
? document.body.requestFullscreen()
|
|
74894
|
+
: document.exitFullscreen())
|
|
74927
74895
|
: () => {
|
|
74928
74896
|
const doc = document;
|
|
74929
|
-
((
|
|
74897
|
+
((this.isFullScr = !Boolean(doc.webkitFullscreenElement))
|
|
74930
74898
|
? doc.body.webkitRequestFullscreen()
|
|
74931
|
-
: doc.webkitCancelFullScreen())
|
|
74932
|
-
.then(() => __classPrivateFieldGet(this, _SysWeb_instances, "m", _SysWeb_resizeFramesWork).call(this));
|
|
74899
|
+
: doc.webkitCancelFullScreen());
|
|
74933
74900
|
};
|
|
74934
74901
|
this.tgl_full_scr = (hArg) => {
|
|
74935
74902
|
if (!hArg.key) {
|
|
@@ -75002,9 +74969,8 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
75002
74969
|
}
|
|
75003
74970
|
}
|
|
75004
74971
|
initVal(data, hTmp, comp) {
|
|
75005
|
-
const hn = document.location.hostname;
|
|
74972
|
+
const hn = encodeURIComponent(document.location.hostname);
|
|
75006
74973
|
hTmp['const.sn.isDebugger'] = (hn === 'localhost' || hn === '127.0.0.1');
|
|
75007
|
-
this.val.defTmp('const.sn.displayState', () => __classPrivateFieldGet(this, _SysWeb_isFullScr, "f"));
|
|
75008
74974
|
const ns = this.cfg.getNs();
|
|
75009
74975
|
this.flush = this.crypto
|
|
75010
74976
|
? async () => {
|
|
@@ -75082,20 +75048,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
75082
75048
|
}
|
|
75083
75049
|
}
|
|
75084
75050
|
exports.SysWeb = SysWeb;
|
|
75085
|
-
_SysWeb_path_base = new WeakMap(),
|
|
75086
|
-
const is_fs = __classPrivateFieldGet(this, _SysWeb_isFullScr, "f");
|
|
75087
|
-
const ratioWidth = screen.width / CmnLib_1.CmnLib.stageW;
|
|
75088
|
-
const ratioHeight = screen.height / CmnLib_1.CmnLib.stageH;
|
|
75089
|
-
const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
|
|
75090
|
-
this.reso4frame = is_fs ? ratio : 1;
|
|
75091
|
-
this.ofsLeft4frm = is_fs
|
|
75092
|
-
? (screen.width - CmnLib_1.CmnLib.stageW * this.reso4frame * CmnLib_1.CmnLib.cvsScale) / 2
|
|
75093
|
-
: 0;
|
|
75094
|
-
this.ofsTop4frm = is_fs
|
|
75095
|
-
? (screen.height - CmnLib_1.CmnLib.stageH * this.reso4frame * CmnLib_1.CmnLib.cvsScale) / 2
|
|
75096
|
-
: 0;
|
|
75097
|
-
this.resizeFrames();
|
|
75098
|
-
};
|
|
75051
|
+
_SysWeb_path_base = new WeakMap(), _SysWeb_now_prj = new WeakMap(), _SysWeb_main = new WeakMap(), _SysWeb_hAppendFile = new WeakMap();
|
|
75099
75052
|
|
|
75100
75053
|
|
|
75101
75054
|
/***/ }),
|
|
@@ -75119,7 +75072,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
75119
75072
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
75120
75073
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
75121
75074
|
};
|
|
75122
|
-
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
75075
|
+
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_sys, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
75123
75076
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75124
75077
|
exports.TxtLayer = void 0;
|
|
75125
75078
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -75140,7 +75093,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
75140
75093
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
75141
75094
|
_TxtLayer_b_do.set(this, undefined);
|
|
75142
75095
|
_TxtLayer_b_pic.set(this, '');
|
|
75143
|
-
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
75096
|
+
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus(), __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_sys)));
|
|
75144
75097
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
75145
75098
|
_TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
|
|
75146
75099
|
_TxtLayer_$ch_in_style.set(this, '');
|
|
@@ -75434,7 +75387,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75434
75387
|
__classPrivateFieldGet(this, _TxtLayer_rbSpl, "f").init(__classPrivateFieldGet(this, _TxtLayer_putCh, "f"));
|
|
75435
75388
|
this.spLay.addChild(__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f"));
|
|
75436
75389
|
__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").name = 'cntBtn';
|
|
75437
|
-
const padding = 16
|
|
75390
|
+
const padding = 16;
|
|
75438
75391
|
this.lay({ style: `width: ${CmnLib_1.CmnLib.stageW}px; height: ${CmnLib_1.CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${padding}px;`, in_style: 'default', out_style: 'default', back_clear: 'true' });
|
|
75439
75392
|
}
|
|
75440
75393
|
static init(cfg, hTag, val, recText, isPageFore) {
|
|
@@ -75499,9 +75452,10 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75499
75452
|
ease: 'ease-out',
|
|
75500
75453
|
});
|
|
75501
75454
|
}
|
|
75502
|
-
static setEvtMng(main, evtMng) {
|
|
75455
|
+
static setEvtMng(main, evtMng, sys) {
|
|
75503
75456
|
__classPrivateFieldSet(TxtLayer, _a, main, "f", _TxtLayer_main);
|
|
75504
75457
|
__classPrivateFieldSet(TxtLayer, _a, evtMng, "f", _TxtLayer_evtMng);
|
|
75458
|
+
__classPrivateFieldSet(TxtLayer, _a, sys, "f", _TxtLayer_sys);
|
|
75505
75459
|
TxtStage_1.TxtStage.setEvtMng(evtMng);
|
|
75506
75460
|
}
|
|
75507
75461
|
destroy() {
|
|
@@ -75670,7 +75624,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75670
75624
|
const o = TxtStage_1.TxtStage.ch_in_style(hArg);
|
|
75671
75625
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
75672
75626
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
75673
|
-
const name = hArg
|
|
75627
|
+
const { name } = hArg;
|
|
75674
75628
|
(0, CmnLib_1.addStyle)(`
|
|
75675
75629
|
.sn_ch_in_${name} {
|
|
75676
75630
|
position: relative;
|
|
@@ -75692,7 +75646,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75692
75646
|
const o = TxtStage_1.TxtStage.ch_out_style(hArg);
|
|
75693
75647
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
75694
75648
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
75695
|
-
const name = hArg
|
|
75649
|
+
const { name } = hArg;
|
|
75696
75650
|
(0, CmnLib_1.addStyle)(`
|
|
75697
75651
|
.go_ch_out_${name} {
|
|
75698
75652
|
position: relative;
|
|
@@ -75709,41 +75663,41 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75709
75663
|
}, _TxtLayer_autowc = function _TxtLayer_autowc(hArg) {
|
|
75710
75664
|
__classPrivateFieldSet(TxtLayer, _a, (0, CmnLib_1.argChk_Boolean)(hArg, 'enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)), "f", _TxtLayer_doAutoWc);
|
|
75711
75665
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc));
|
|
75712
|
-
const
|
|
75666
|
+
const { text } = hArg;
|
|
75713
75667
|
if (('text' in hArg) !== ('time' in hArg))
|
|
75714
75668
|
throw '[autowc] textとtimeは同時指定必須です';
|
|
75715
|
-
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text',
|
|
75716
|
-
if (!
|
|
75669
|
+
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', text);
|
|
75670
|
+
if (!text) {
|
|
75717
75671
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', '');
|
|
75718
75672
|
return false;
|
|
75719
75673
|
}
|
|
75720
|
-
const len =
|
|
75674
|
+
const len = text.length;
|
|
75721
75675
|
if (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc) && len === 0)
|
|
75722
75676
|
throw '[autowc] enabled === false かつ text === "" は許されません';
|
|
75723
75677
|
const a = String(hArg.time).split(',');
|
|
75724
75678
|
if (a.length !== len)
|
|
75725
75679
|
throw '[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい';
|
|
75726
75680
|
__classPrivateFieldSet(TxtLayer, _a, {}, "f", _TxtLayer_hAutoWc);
|
|
75727
|
-
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[
|
|
75681
|
+
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[text[i]] = (0, CmnLib_1.uint)(v));
|
|
75728
75682
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', hArg.time);
|
|
75729
75683
|
return false;
|
|
75730
75684
|
}, _TxtLayer_set_ch_in = function _TxtLayer_set_ch_in(hArg) {
|
|
75731
|
-
const
|
|
75732
|
-
if (!
|
|
75685
|
+
const { in_style } = hArg;
|
|
75686
|
+
if (!in_style)
|
|
75733
75687
|
return;
|
|
75734
|
-
const cis = TxtStage_1.TxtStage.getChInStyle(
|
|
75688
|
+
const cis = TxtStage_1.TxtStage.getChInStyle(in_style);
|
|
75735
75689
|
if (!cis)
|
|
75736
|
-
throw `存在しないin_style【${
|
|
75737
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style,
|
|
75690
|
+
throw `存在しないin_style【${in_style}】です`;
|
|
75691
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style, in_style, "f");
|
|
75738
75692
|
__classPrivateFieldSet(this, _TxtLayer_ch_in_join, cis.join, "f");
|
|
75739
75693
|
}, _TxtLayer_set_ch_out = function _TxtLayer_set_ch_out(hArg) {
|
|
75740
|
-
const
|
|
75741
|
-
if (!
|
|
75694
|
+
const { out_style } = hArg;
|
|
75695
|
+
if (!out_style)
|
|
75742
75696
|
return;
|
|
75743
|
-
const cos = TxtStage_1.TxtStage.getChOutStyle(
|
|
75697
|
+
const cos = TxtStage_1.TxtStage.getChOutStyle(out_style);
|
|
75744
75698
|
if (!cos)
|
|
75745
|
-
throw `存在しないout_style【${
|
|
75746
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style,
|
|
75699
|
+
throw `存在しないout_style【${out_style}】です`;
|
|
75700
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style, out_style, "f");
|
|
75747
75701
|
}, _TxtLayer_drawBack = function _TxtLayer_drawBack(hArg, fncComp) {
|
|
75748
75702
|
if ('back_clear' in hArg) {
|
|
75749
75703
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'back_clear', false)) {
|
|
@@ -75906,6 +75860,7 @@ _TxtLayer_recText = { value: void 0 };
|
|
|
75906
75860
|
_TxtLayer_isPageFore = { value: void 0 };
|
|
75907
75861
|
_TxtLayer_main = { value: void 0 };
|
|
75908
75862
|
_TxtLayer_evtMng = { value: void 0 };
|
|
75863
|
+
_TxtLayer_sys = { value: void 0 };
|
|
75909
75864
|
_TxtLayer_doAutoWc = { value: false };
|
|
75910
75865
|
_TxtLayer_hAutoWc = { value: {} };
|
|
75911
75866
|
TxtLayer.rec = (tx) => tx;
|
|
@@ -75932,7 +75887,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
75932
75887
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
75933
75888
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
75934
75889
|
};
|
|
75935
|
-
var _TxtStage_instances, _a, _TxtStage_cfg,
|
|
75890
|
+
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _TxtStage_break_fixed, _TxtStage_break_fixed_left, _TxtStage_break_fixed_top, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm, _TxtStage_REGDS, _TxtStage_fncEndChIn, _TxtStage_spWork, _TxtStage_isChInIng, _TxtStage_hChInStyle, _TxtStage_REG_NG_CHSTYLE_NAME_CHR, _TxtStage_hChOutStyle, _TxtStage_cntBreak, _TxtStage_lh_half, _TxtStage_getChRects, _TxtStage_fi_easing, _TxtStage_fo_easing, _TxtStage_clearText, _TxtStage_sss;
|
|
75936
75891
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75937
75892
|
exports.TxtStage = void 0;
|
|
75938
75893
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -75945,10 +75900,11 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
|
|
|
75945
75900
|
;
|
|
75946
75901
|
;
|
|
75947
75902
|
class TxtStage extends pixi_js_1.Container {
|
|
75948
|
-
constructor(spLay, canFocus) {
|
|
75903
|
+
constructor(spLay, canFocus, sys) {
|
|
75949
75904
|
super();
|
|
75950
75905
|
this.spLay = spLay;
|
|
75951
75906
|
this.canFocus = canFocus;
|
|
75907
|
+
this.sys = sys;
|
|
75952
75908
|
_TxtStage_instances.add(this);
|
|
75953
75909
|
_TxtStage_htmTxt.set(this, document.createElement('span'));
|
|
75954
75910
|
_TxtStage_cntTxt.set(this, new pixi_js_1.Container);
|
|
@@ -75985,7 +75941,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75985
75941
|
_TxtStage_sss.set(this, undefined);
|
|
75986
75942
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
75987
75943
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
75988
|
-
|
|
75944
|
+
document.body.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
75989
75945
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
|
|
75990
75946
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
|
|
75991
75947
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
|
|
@@ -75993,7 +75949,6 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75993
75949
|
}
|
|
75994
75950
|
static init(cfg) {
|
|
75995
75951
|
__classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
|
|
75996
|
-
__classPrivateFieldSet(TxtStage, _a, document.getElementById(CmnLib_1.CmnLib.SN_ID), "f", _TxtStage_cvs);
|
|
75997
75952
|
__classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
|
|
75998
75953
|
__classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
|
|
75999
75954
|
__classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
|
|
@@ -76070,9 +76025,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76070
76025
|
}
|
|
76071
76026
|
cvsResize() {
|
|
76072
76027
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
76073
|
-
s.left =
|
|
76074
|
-
s.top =
|
|
76075
|
-
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x *
|
|
76028
|
+
s.left = `${this.sys.ofsLeft4frm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
|
|
76029
|
+
s.top = `${this.sys.ofsTop4frm + this.spLay.position.y * this.sys.cvsScale}px`;
|
|
76030
|
+
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
|
|
76076
76031
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
|
|
76077
76032
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|
|
76078
76033
|
}
|
|
@@ -76113,21 +76068,21 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76113
76068
|
do {
|
|
76114
76069
|
const e = __classPrivateFieldSet(this, _TxtStage_aRect, __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_getChRects).call(this, __classPrivateFieldGet(this, _TxtStage_htmTxt, "f")), "f");
|
|
76115
76070
|
len = e.length;
|
|
76116
|
-
if (
|
|
76117
|
-
const ox =
|
|
76071
|
+
if (this.sys.cvsScale !== 1) {
|
|
76072
|
+
const ox = this.sys.ofsPadLeft_Dom2PIXI
|
|
76118
76073
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.left)
|
|
76119
|
-
* (1 -
|
|
76120
|
-
const oy =
|
|
76074
|
+
* (1 - this.sys.cvsScale);
|
|
76075
|
+
const oy = this.sys.ofsPadTop_Dom2PIXI
|
|
76121
76076
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.top)
|
|
76122
|
-
* (1 -
|
|
76077
|
+
* (1 - this.sys.cvsScale);
|
|
76123
76078
|
for (let i = 0; i < len; ++i) {
|
|
76124
76079
|
const r = e[i].rect;
|
|
76125
76080
|
r.x -= ox;
|
|
76126
76081
|
r.y -= oy;
|
|
76127
|
-
r.x /=
|
|
76128
|
-
r.y /=
|
|
76129
|
-
r.width /=
|
|
76130
|
-
r.height /=
|
|
76082
|
+
r.x /= this.sys.cvsScale;
|
|
76083
|
+
r.y /= this.sys.cvsScale;
|
|
76084
|
+
r.width /= this.sys.cvsScale;
|
|
76085
|
+
r.height /= this.sys.cvsScale;
|
|
76131
76086
|
}
|
|
76132
76087
|
}
|
|
76133
76088
|
if (len < 2)
|
|
@@ -76310,7 +76265,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76310
76265
|
}
|
|
76311
76266
|
static getChInStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChInStyle)[name]; }
|
|
76312
76267
|
static ch_in_style(hArg) {
|
|
76313
|
-
const name = hArg
|
|
76268
|
+
const { name } = hArg;
|
|
76314
76269
|
if (!name)
|
|
76315
76270
|
throw 'nameは必須です';
|
|
76316
76271
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -76336,7 +76291,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76336
76291
|
}
|
|
76337
76292
|
static getChOutStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChOutStyle)[name]; }
|
|
76338
76293
|
static ch_out_style(hArg) {
|
|
76339
|
-
const name = hArg
|
|
76294
|
+
const { name } = hArg;
|
|
76340
76295
|
if (!name)
|
|
76341
76296
|
throw 'nameは必須です';
|
|
76342
76297
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -76379,7 +76334,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76379
76334
|
}
|
|
76380
76335
|
reNew() {
|
|
76381
76336
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
|
|
76382
|
-
const to = new TxtStage(this.spLay, () => this.canFocus());
|
|
76337
|
+
const to = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
|
|
76383
76338
|
__classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
|
|
76384
76339
|
__classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
|
|
76385
76340
|
__classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
|
|
@@ -76832,7 +76787,6 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
76832
76787
|
__classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
|
|
76833
76788
|
};
|
|
76834
76789
|
_TxtStage_cfg = { value: void 0 };
|
|
76835
|
-
_TxtStage_cvs = { value: void 0 };
|
|
76836
76790
|
_TxtStage_evtMng = { value: void 0 };
|
|
76837
76791
|
_TxtStage_hWarning = { value: {
|
|
76838
76792
|
backgroundColor: 0,
|
|
@@ -77199,7 +77153,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77199
77153
|
__classPrivateFieldGet(this, _Variable_sys, "f").copyBMFolder(from, to);
|
|
77200
77154
|
return false;
|
|
77201
77155
|
}, _Variable_erasebookmark = function _Variable_erasebookmark(hArg) {
|
|
77202
|
-
const place = hArg
|
|
77156
|
+
const { place } = hArg;
|
|
77203
77157
|
if (!place)
|
|
77204
77158
|
throw 'placeは必須です';
|
|
77205
77159
|
delete __classPrivateFieldGet(this, _Variable_data, "f").mark[place];
|
|
@@ -77243,7 +77197,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77243
77197
|
__classPrivateFieldGet(this, _Variable_instances, "m", _Variable_let).call(this, hArg);
|
|
77244
77198
|
return false;
|
|
77245
77199
|
}, _Variable_let_index_of = function _Variable_let_index_of(hArg) {
|
|
77246
|
-
const val = hArg
|
|
77200
|
+
const { val } = hArg;
|
|
77247
77201
|
if (!val)
|
|
77248
77202
|
throw 'valは必須です';
|
|
77249
77203
|
const start = (0, CmnLib_1.argChk_Num)(hArg, 'start', 0);
|
|
@@ -77257,7 +77211,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77257
77211
|
}, _Variable_let_replace = function _Variable_let_replace(hArg) {
|
|
77258
77212
|
if (!hArg.reg)
|
|
77259
77213
|
throw 'regは必須です';
|
|
77260
|
-
const flags = hArg
|
|
77214
|
+
const { flags } = hArg;
|
|
77261
77215
|
const reg = (!flags)
|
|
77262
77216
|
? new RegExp(hArg.reg)
|
|
77263
77217
|
: new RegExp(hArg.reg, flags);
|
|
@@ -77272,7 +77226,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
77272
77226
|
}, _Variable_let_search = function _Variable_let_search(hArg) {
|
|
77273
77227
|
if (!hArg.reg)
|
|
77274
77228
|
throw 'regは必須です';
|
|
77275
|
-
const flags = hArg
|
|
77229
|
+
const { flags } = hArg;
|
|
77276
77230
|
const reg = (!flags)
|
|
77277
77231
|
? new RegExp(hArg.reg)
|
|
77278
77232
|
: new RegExp(hArg.reg, flags);
|
|
@@ -80386,7 +80340,7 @@ exports.ERROR_PACKET = ERROR_PACKET;
|
|
|
80386
80340
|
|
|
80387
80341
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
80388
80342
|
const commons_js_1 = __webpack_require__(/*! ./commons.js */ "./node_modules/engine.io-parser/build/cjs/commons.js");
|
|
80389
|
-
const base64_arraybuffer_1 = __webpack_require__(/*! base64-arraybuffer */ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
|
|
80343
|
+
const base64_arraybuffer_1 = __webpack_require__(/*! @socket.io/base64-arraybuffer */ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
|
|
80390
80344
|
const withNativeArrayBuffer = typeof ArrayBuffer === "function";
|
|
80391
80345
|
const decodePacket = (encodedPacket, binaryType) => {
|
|
80392
80346
|
if (typeof encodedPacket !== "string") {
|