@famibee/skynovel 1.27.3 → 1.27.7
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 +384 -432
- package/appMain.js +19 -4
- 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 +1 -0
- 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 +4 -3
- package/core/lib/sn/TxtLayer.d.ts.map +1 -1
- package/core/lib/sn/TxtStage.d.ts +5 -3
- package/core/lib/sn/TxtStage.d.ts.map +1 -1
- package/package.json +8 -8
- package/web.js +412 -459
package/app.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":
|
|
@@ -66337,63 +66337,10 @@ function getExt(p) { return (p.match(REG_EXT) ?? [''])[1]; }
|
|
|
66337
66337
|
exports.getExt = getExt;
|
|
66338
66338
|
const platform = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js");
|
|
66339
66339
|
class CmnLib {
|
|
66340
|
-
static cvsResize(cvs) {
|
|
66341
|
-
const bk_cw = CmnLib.cvsWidth;
|
|
66342
|
-
const bk_ch = CmnLib.cvsHeight;
|
|
66343
|
-
let w = globalThis.innerWidth;
|
|
66344
|
-
let h = globalThis.innerHeight;
|
|
66345
|
-
const angle = screen.orientation?.angle ?? 0;
|
|
66346
|
-
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
66347
|
-
if (CmnLib.isMobile &&
|
|
66348
|
-
((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
66349
|
-
[w, h] = [h, w];
|
|
66350
|
-
if (argChk_Boolean(CmnLib.hDip, 'expanding', true) ||
|
|
66351
|
-
CmnLib.stageW > w ||
|
|
66352
|
-
CmnLib.stageH > h) {
|
|
66353
|
-
if (CmnLib.stageW / CmnLib.stageH <= w / h) {
|
|
66354
|
-
CmnLib.cvsHeight = h;
|
|
66355
|
-
CmnLib.cvsWidth = CmnLib.stageW / CmnLib.stageH * h;
|
|
66356
|
-
}
|
|
66357
|
-
else {
|
|
66358
|
-
CmnLib.cvsWidth = w;
|
|
66359
|
-
CmnLib.cvsHeight = CmnLib.stageH / CmnLib.stageW * w;
|
|
66360
|
-
}
|
|
66361
|
-
CmnLib.cvsScale = CmnLib.cvsWidth / CmnLib.stageW;
|
|
66362
|
-
const cr = cvs.getBoundingClientRect();
|
|
66363
|
-
CmnLib.ofsPadLeft_Dom2PIXI = (CmnLib.isMobile
|
|
66364
|
-
? (globalThis.innerWidth - CmnLib.cvsWidth) / 2
|
|
66365
|
-
: cr.left)
|
|
66366
|
-
* (1 - CmnLib.cvsScale);
|
|
66367
|
-
CmnLib.ofsPadTop_Dom2PIXI = (CmnLib.isMobile
|
|
66368
|
-
? (globalThis.innerHeight - CmnLib.cvsHeight) / 2
|
|
66369
|
-
: cr.top)
|
|
66370
|
-
* (1 - CmnLib.cvsScale);
|
|
66371
|
-
}
|
|
66372
|
-
else {
|
|
66373
|
-
CmnLib.cvsWidth = CmnLib.stageW;
|
|
66374
|
-
CmnLib.cvsHeight = CmnLib.stageH;
|
|
66375
|
-
CmnLib.cvsScale = 1;
|
|
66376
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
66377
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
66378
|
-
}
|
|
66379
|
-
if (cvs.parentElement) {
|
|
66380
|
-
const ps = cvs.parentElement.style;
|
|
66381
|
-
ps.position = 'relative';
|
|
66382
|
-
const s = cvs.style;
|
|
66383
|
-
ps.width = s.width = `${CmnLib.cvsWidth}px`;
|
|
66384
|
-
ps.height = s.height = `${CmnLib.cvsHeight}px`;
|
|
66385
|
-
}
|
|
66386
|
-
return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
|
|
66387
|
-
}
|
|
66388
66340
|
}
|
|
66389
66341
|
exports.CmnLib = CmnLib;
|
|
66390
66342
|
CmnLib.stageW = 0;
|
|
66391
66343
|
CmnLib.stageH = 0;
|
|
66392
|
-
CmnLib.ofsPadLeft_Dom2PIXI = 0;
|
|
66393
|
-
CmnLib.ofsPadTop_Dom2PIXI = 0;
|
|
66394
|
-
CmnLib.cvsWidth = 0;
|
|
66395
|
-
CmnLib.cvsHeight = 0;
|
|
66396
|
-
CmnLib.cvsScale = 1;
|
|
66397
66344
|
CmnLib.debugLog = false;
|
|
66398
66345
|
CmnLib.isSafari = platform.name === 'Safari';
|
|
66399
66346
|
CmnLib.isFirefox = platform.name === 'Firefox';
|
|
@@ -66402,10 +66349,7 @@ CmnLib.isMobile = !new RegExp('(Windows|OS X)').test(platform.os?.family ?? '');
|
|
|
66402
66349
|
CmnLib.hDip = {};
|
|
66403
66350
|
CmnLib.isDbg = false;
|
|
66404
66351
|
CmnLib.isPackaged = false;
|
|
66405
|
-
CmnLib.isRetina = false;
|
|
66406
66352
|
CmnLib.isDarkMode = false;
|
|
66407
|
-
CmnLib.retinaRate = 1;
|
|
66408
|
-
CmnLib.SN_ID = 'skynovel';
|
|
66409
66353
|
|
|
66410
66354
|
|
|
66411
66355
|
/***/ }),
|
|
@@ -66874,7 +66818,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
66874
66818
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
66875
66819
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
66876
66820
|
};
|
|
66877
|
-
var _DesignCast_instances, _a, _DesignCast_divDesignRoot,
|
|
66821
|
+
var _DesignCast_instances, _a, _DesignCast_divDesignRoot, _DesignCast_scrItr, _DesignCast_alzTagArg, _DesignCast_cfg, _DesignCast_ID_DESIGNMODE, _DesignCast_cntDesignCast, _DesignCast_hId2dc, _DesignCast_aDC, _DesignCast_resizeDiv, _GrpLayDesignCast_sp, _TxtLayPadDesignCast_instances, _TxtLayPadDesignCast_procHint, _PicBtnDesignCast_sp;
|
|
66878
66822
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
66879
66823
|
exports.PicBtnDesignCast = exports.TxtBtnDesignCast = exports.BtnDesignCast = exports.TxtLayPadDesignCast = exports.TxtLayDesignCast = exports.GrpLayDesignCast = exports.DesignCast = void 0;
|
|
66880
66824
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -66918,11 +66862,11 @@ class DesignCast {
|
|
|
66918
66862
|
this.rotatable = true;
|
|
66919
66863
|
}
|
|
66920
66864
|
static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
|
|
66921
|
-
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW *
|
|
66865
|
+
appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * sys.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * sys.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
|
|
66922
66866
|
__classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
|
|
66923
66867
|
DesignCast.divHint.classList.add('sn_design_hint');
|
|
66924
|
-
|
|
66925
|
-
|
|
66868
|
+
appPixi.view.parentElement.appendChild(DesignCast.divHint);
|
|
66869
|
+
DesignCast.sys = sys;
|
|
66926
66870
|
__classPrivateFieldSet(DesignCast, _a, scrItr, "f", _DesignCast_scrItr);
|
|
66927
66871
|
DesignCast.prpPrs = prpPrs;
|
|
66928
66872
|
__classPrivateFieldSet(DesignCast, _a, alzTagArg, "f", _DesignCast_alzTagArg);
|
|
@@ -66965,8 +66909,8 @@ class DesignCast {
|
|
|
66965
66909
|
}
|
|
66966
66910
|
static cvsResizeDesign() {
|
|
66967
66911
|
const s = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_divDesignRoot).style;
|
|
66968
|
-
s.width = `${CmnLib_1.CmnLib.stageW *
|
|
66969
|
-
s.height = `${CmnLib_1.CmnLib.stageH *
|
|
66912
|
+
s.width = `${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px`;
|
|
66913
|
+
s.height = `${CmnLib_1.CmnLib.stageH * DesignCast.sys.cvsScale}px`;
|
|
66970
66914
|
}
|
|
66971
66915
|
destroy() {
|
|
66972
66916
|
this.div = undefined;
|
|
@@ -67046,8 +66990,8 @@ class DesignCast {
|
|
|
67046
66990
|
const procStart = () => {
|
|
67047
66991
|
tmp.aPos = [NaN, NaN];
|
|
67048
66992
|
tmp.roDeg = this.rotation;
|
|
67049
|
-
const dpx = this.pivot.x *
|
|
67050
|
-
const dpy = this.pivot.y *
|
|
66993
|
+
const dpx = this.pivot.x * DesignCast.sys.cvsScale;
|
|
66994
|
+
const dpy = this.pivot.y * DesignCast.sys.cvsScale;
|
|
67051
66995
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
67052
66996
|
tmp.origin = [dpx, dpy];
|
|
67053
66997
|
Object.assign(this.mov, {
|
|
@@ -67056,7 +67000,7 @@ class DesignCast {
|
|
|
67056
67000
|
});
|
|
67057
67001
|
};
|
|
67058
67002
|
const procEnd = (o) => {
|
|
67059
|
-
|
|
67003
|
+
DesignCast.sys.send2Dbg('_changeCast', {
|
|
67060
67004
|
...o, ':id_tag': this.id_tag,
|
|
67061
67005
|
});
|
|
67062
67006
|
DesignCast.divHint.style.display = 'none';
|
|
@@ -67067,8 +67011,8 @@ class DesignCast {
|
|
|
67067
67011
|
DesignCast.divHint.style.display = 'none';
|
|
67068
67012
|
return;
|
|
67069
67013
|
}
|
|
67070
|
-
const ix = (0, CmnLib_1.int)(this.rect.x += dx /
|
|
67071
|
-
const iy = (0, CmnLib_1.int)(this.rect.y += dy /
|
|
67014
|
+
const ix = (0, CmnLib_1.int)(this.rect.x += dx / DesignCast.sys.cvsScale + this.pivot.x);
|
|
67015
|
+
const iy = (0, CmnLib_1.int)(this.rect.y += dy / DesignCast.sys.cvsScale + this.pivot.y);
|
|
67072
67016
|
this.setPos(ix, iy);
|
|
67073
67017
|
const iw = (0, CmnLib_1.uint)(this.rect.width), ih = (0, CmnLib_1.uint)(this.rect.height);
|
|
67074
67018
|
this.setSize(iw, ih);
|
|
@@ -67112,8 +67056,8 @@ class DesignCast {
|
|
|
67112
67056
|
d.style.width = `${e.width}px`;
|
|
67113
67057
|
d.style.height = `${e.height}px`;
|
|
67114
67058
|
tmp.aPos = e.drag.beforeTranslate;
|
|
67115
|
-
this.rect.width = e.width /
|
|
67116
|
-
this.rect.height = e.height /
|
|
67059
|
+
this.rect.width = e.width / DesignCast.sys.cvsScale;
|
|
67060
|
+
this.rect.height = e.height / DesignCast.sys.cvsScale;
|
|
67117
67061
|
this.procResizeHint(e, e.drag.left, e.drag.top);
|
|
67118
67062
|
})
|
|
67119
67063
|
.on('resizeEnd', resizeEnd)
|
|
@@ -67135,8 +67079,8 @@ class DesignCast {
|
|
|
67135
67079
|
.on('dragOriginEnd', () => {
|
|
67136
67080
|
const [dpx, dpy] = tmp.origin;
|
|
67137
67081
|
tmp.trOrg = `${dpx}px ${dpy}px`;
|
|
67138
|
-
const px = this.pivot.x = dpx /
|
|
67139
|
-
const py = this.pivot.y = dpy /
|
|
67082
|
+
const px = this.pivot.x = dpx / DesignCast.sys.cvsScale;
|
|
67083
|
+
const py = this.pivot.y = dpy / DesignCast.sys.cvsScale;
|
|
67140
67084
|
this.setOther({});
|
|
67141
67085
|
const ix = (0, CmnLib_1.int)(this.rect.x + px);
|
|
67142
67086
|
const iy = (0, CmnLib_1.int)(this.rect.y + py);
|
|
@@ -67184,18 +67128,18 @@ class DesignCast {
|
|
|
67184
67128
|
o.url = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_scrItr).cnvPath4Dbg(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_cfg).searchPath(f.name, Config_1.Config.EXT_SPRITE));
|
|
67185
67129
|
}
|
|
67186
67130
|
catch { }
|
|
67187
|
-
|
|
67131
|
+
DesignCast.sys.send2Dbg('_dropFile', o);
|
|
67188
67132
|
})
|
|
67189
67133
|
.catch(e => console.error(`drop2dc %o`, e));
|
|
67190
67134
|
});
|
|
67191
67135
|
d.addEventListener('dblclick', e => {
|
|
67192
67136
|
e.preventDefault();
|
|
67193
|
-
|
|
67137
|
+
DesignCast.sys.send2Dbg('_focusScript', this.hArg);
|
|
67194
67138
|
});
|
|
67195
67139
|
}
|
|
67196
67140
|
procDragHint(e, left, top) {
|
|
67197
67141
|
const [dx, dy] = e.beforeTranslate;
|
|
67198
|
-
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx /
|
|
67142
|
+
DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx / DesignCast.sys.cvsScale)}, ${(0, CmnLib_1.int)(this.rect.y + dy / DesignCast.sys.cvsScale)})`, left, top, this);
|
|
67199
67143
|
}
|
|
67200
67144
|
procResizeHint(e, left, top) {
|
|
67201
67145
|
DesignCast.setHint(`(${(0, CmnLib_1.int)(e.drag.left)}, ${(0, CmnLib_1.int)(e.drag.top)})<br/>${(0, CmnLib_1.int)(this.rect.width)} x ${(0, CmnLib_1.int)(this.rect.height)}`, left, top, this);
|
|
@@ -67261,16 +67205,15 @@ _a = DesignCast, _DesignCast_instances = new WeakSet(), _DesignCast_resizeDiv =
|
|
|
67261
67205
|
this.fncLay();
|
|
67262
67206
|
if (this.div)
|
|
67263
67207
|
Object.assign(this.div.style, {
|
|
67264
|
-
left: `${this.lx + this.rect.x *
|
|
67265
|
-
top: `${this.ly + this.rect.y *
|
|
67266
|
-
width: `${this.rect.width *
|
|
67267
|
-
height: `${this.rect.height *
|
|
67268
|
-
transformOrigin: `${this.pivot.x *
|
|
67208
|
+
left: `${this.lx + this.rect.x * DesignCast.sys.cvsScale}px`,
|
|
67209
|
+
top: `${this.ly + this.rect.y * DesignCast.sys.cvsScale}px`,
|
|
67210
|
+
width: `${this.rect.width * DesignCast.sys.cvsScale}px`,
|
|
67211
|
+
height: `${this.rect.height * DesignCast.sys.cvsScale}px`,
|
|
67212
|
+
transformOrigin: `${this.pivot.x * DesignCast.sys.cvsScale}px ${this.pivot.y * DesignCast.sys.cvsScale}px`,
|
|
67269
67213
|
transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`,
|
|
67270
67214
|
});
|
|
67271
67215
|
};
|
|
67272
67216
|
_DesignCast_divDesignRoot = { value: void 0 };
|
|
67273
|
-
_DesignCast_sys = { value: void 0 };
|
|
67274
67217
|
_DesignCast_scrItr = { value: void 0 };
|
|
67275
67218
|
_DesignCast_alzTagArg = { value: void 0 };
|
|
67276
67219
|
_DesignCast_cfg = { value: void 0 };
|
|
@@ -67404,8 +67347,8 @@ _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint =
|
|
|
67404
67347
|
const x = this.rect.x, y = this.rect.y;
|
|
67405
67348
|
const w = this.rect.width, h = this.rect.height;
|
|
67406
67349
|
const it = this.ts.infTL;
|
|
67407
|
-
const pl = (0, CmnLib_1.int)(x + dx /
|
|
67408
|
-
const pt = (0, CmnLib_1.int)(y + dy /
|
|
67350
|
+
const pl = (0, CmnLib_1.int)(x + dx / DesignCast.sys.cvsScale);
|
|
67351
|
+
const pt = (0, CmnLib_1.int)(y + dy / DesignCast.sys.cvsScale);
|
|
67409
67352
|
const pr = (0, CmnLib_1.int)(it.$width - pl - w);
|
|
67410
67353
|
const pb = (0, CmnLib_1.int)(it.$height - pt - h);
|
|
67411
67354
|
const sp = (re) => ' '.repeat(re);
|
|
@@ -67432,8 +67375,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
67432
67375
|
this.fncLay = (!this.parent && !this.child && layer)
|
|
67433
67376
|
? () => {
|
|
67434
67377
|
const f = DesignCast.hPages[layer].fore;
|
|
67435
|
-
this.lx = f.x *
|
|
67436
|
-
this.ly = f.y *
|
|
67378
|
+
this.lx = f.x * DesignCast.sys.cvsScale;
|
|
67379
|
+
this.ly = f.y * DesignCast.sys.cvsScale;
|
|
67437
67380
|
}
|
|
67438
67381
|
: () => { };
|
|
67439
67382
|
}
|
|
@@ -67448,8 +67391,8 @@ class BtnDesignCast extends DesignCast {
|
|
|
67448
67391
|
onDragStart() {
|
|
67449
67392
|
const aBtn = this.btn.parent.children.filter(b => b !== this.btn);
|
|
67450
67393
|
Object.assign(this.mov, {
|
|
67451
|
-
verticalGuidelines: aBtn.map(b => this.lx + b.x *
|
|
67452
|
-
horizontalGuidelines: aBtn.map(b => this.ly + b.y *
|
|
67394
|
+
verticalGuidelines: aBtn.map(b => this.lx + b.x * DesignCast.sys.cvsScale),
|
|
67395
|
+
horizontalGuidelines: aBtn.map(b => this.ly + b.y * DesignCast.sys.cvsScale),
|
|
67453
67396
|
});
|
|
67454
67397
|
}
|
|
67455
67398
|
}
|
|
@@ -67679,7 +67622,7 @@ class EventMng {
|
|
|
67679
67622
|
hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
|
|
67680
67623
|
sndMng.setEvtMng(this);
|
|
67681
67624
|
scrItr.setOtherObj(this, layMng);
|
|
67682
|
-
TxtLayer_1.TxtLayer.setEvtMng(main, this);
|
|
67625
|
+
TxtLayer_1.TxtLayer.setEvtMng(main, this, sys);
|
|
67683
67626
|
layMng.setEvtMng(this);
|
|
67684
67627
|
sys.setFire((KEY, e) => this.fire(KEY, e));
|
|
67685
67628
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
@@ -67715,9 +67658,8 @@ class EventMng {
|
|
|
67715
67658
|
catch { }
|
|
67716
67659
|
const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
|
|
67717
67660
|
if (ctx) {
|
|
67718
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
67719
67661
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
|
|
67720
|
-
|
|
67662
|
+
appPixi.view.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
67721
67663
|
const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
|
|
67722
67664
|
s.position = 'absolute';
|
|
67723
67665
|
s.left = s.top = '0';
|
|
@@ -68102,11 +68044,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68102
68044
|
const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
|
|
68103
68045
|
const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
|
|
68104
68046
|
const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
|
|
68105
|
-
|
|
68106
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.
|
|
68107
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
|
|
68047
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * this.sys.cvsScale}px`;
|
|
68048
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * this.sys.cvsScale}px`;
|
|
68108
68049
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
|
|
68109
|
-
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x *
|
|
68050
|
+
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * this.sys.cvsScale}, ${this.sys.cvsScale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
|
|
68110
68051
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
|
|
68111
68052
|
if (masume)
|
|
68112
68053
|
__classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
|
|
@@ -68275,7 +68216,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68275
68216
|
}, "f");
|
|
68276
68217
|
return false;
|
|
68277
68218
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
68278
|
-
const add = hArg
|
|
68219
|
+
const { add, del, to } = hArg;
|
|
68279
68220
|
if (add?.slice(0, 4) === 'dom=') {
|
|
68280
68221
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
|
|
68281
68222
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -68288,7 +68229,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68288
68229
|
}, () => { }));
|
|
68289
68230
|
return false;
|
|
68290
68231
|
}
|
|
68291
|
-
const del = hArg.del;
|
|
68292
68232
|
if (del?.slice(0, 4) === 'dom=') {
|
|
68293
68233
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
|
|
68294
68234
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -68296,7 +68236,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68296
68236
|
g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
|
|
68297
68237
|
return false;
|
|
68298
68238
|
}
|
|
68299
|
-
const to = hArg.to;
|
|
68300
68239
|
if (!to)
|
|
68301
68240
|
throw '[set_focus] add か to は必須です';
|
|
68302
68241
|
switch (to) {
|
|
@@ -68607,40 +68546,34 @@ class FrameMng {
|
|
|
68607
68546
|
}
|
|
68608
68547
|
getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
|
|
68609
68548
|
cvsResize() {
|
|
68610
|
-
const
|
|
68611
|
-
|
|
68612
|
-
const
|
|
68613
|
-
const x = Number(this.val.getVal(
|
|
68614
|
-
const y = Number(this.val.getVal(
|
|
68615
|
-
const w = Number(this.val.getVal(
|
|
68616
|
-
const h = Number(this.val.getVal(
|
|
68617
|
-
f.style.left = this.sys.ofsLeft4frm + x *
|
|
68618
|
-
f.style.top = this.sys.ofsTop4frm + y *
|
|
68619
|
-
f.width = String(w *
|
|
68620
|
-
f.height = String(h *
|
|
68549
|
+
for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
|
|
68550
|
+
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
|
|
68551
|
+
const vn = 'const.sn.frm.' + id;
|
|
68552
|
+
const x = Number(this.val.getVal(vn + '.x'));
|
|
68553
|
+
const y = Number(this.val.getVal(vn + '.y'));
|
|
68554
|
+
const w = Number(this.val.getVal(vn + '.width'));
|
|
68555
|
+
const h = Number(this.val.getVal(vn + '.height'));
|
|
68556
|
+
f.style.left = `${this.sys.ofsLeft4frm + x * this.sys.cvsScale}px`;
|
|
68557
|
+
f.style.top = `${this.sys.ofsTop4frm + y * this.sys.cvsScale}px`;
|
|
68558
|
+
f.width = String(w * this.sys.cvsScale);
|
|
68559
|
+
f.height = String(h * this.sys.cvsScale);
|
|
68621
68560
|
}
|
|
68622
68561
|
}
|
|
68623
68562
|
}
|
|
68624
68563
|
exports.FrameMng = FrameMng;
|
|
68625
68564
|
_FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
|
|
68626
|
-
const id = hArg
|
|
68565
|
+
const { id, src, alpha: a = 1, scale_x: sx = 1, scale_y: sy = 1, rotate: r = 0, } = hArg;
|
|
68627
68566
|
if (!id)
|
|
68628
68567
|
throw 'idは必須です';
|
|
68629
|
-
const src = hArg.src;
|
|
68630
68568
|
if (!src)
|
|
68631
68569
|
throw 'srcは必須です';
|
|
68632
|
-
const
|
|
68633
|
-
if (this.val.getVal(`tmp:${
|
|
68570
|
+
const vn = 'const.sn.frm.' + id;
|
|
68571
|
+
if (this.val.getVal(`tmp:${vn}`))
|
|
68634
68572
|
throw `frame【${id}】はすでにあります`;
|
|
68635
|
-
const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
|
|
68636
|
-
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
68637
|
-
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
68638
|
-
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
68639
68573
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68640
68574
|
const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
|
|
68641
68575
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68642
|
-
|
|
68643
|
-
this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4frm + rct.x * scl}px; top: ${this.sys.ofsTop4frm + rct.y * scl}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * scl}" height="${rct.height * scl}"></iframe>`);
|
|
68576
|
+
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>`);
|
|
68644
68577
|
const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
|
|
68645
68578
|
const ld = (new pixi_js_1.Loader())
|
|
68646
68579
|
.add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
@@ -68664,16 +68597,16 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68664
68597
|
? this.sys.cur + p2.slice(4)
|
|
68665
68598
|
: v.replace(p1, p1 + url.slice(0, url.lastIndexOf('/') + 1)));
|
|
68666
68599
|
ifrm.onload = () => {
|
|
68667
|
-
this.val.setVal_Nochk('tmp',
|
|
68668
|
-
this.val.setVal_Nochk('tmp',
|
|
68669
|
-
this.val.setVal_Nochk('tmp',
|
|
68670
|
-
this.val.setVal_Nochk('tmp',
|
|
68671
|
-
this.val.setVal_Nochk('tmp',
|
|
68672
|
-
this.val.setVal_Nochk('tmp',
|
|
68673
|
-
this.val.setVal_Nochk('tmp',
|
|
68674
|
-
this.val.setVal_Nochk('tmp',
|
|
68675
|
-
this.val.setVal_Nochk('tmp',
|
|
68676
|
-
this.val.setVal_Nochk('tmp',
|
|
68600
|
+
this.val.setVal_Nochk('tmp', vn, true);
|
|
68601
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68602
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68603
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68604
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
68605
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
68606
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68607
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68608
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68609
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
68677
68610
|
const win = ifrm.contentWindow;
|
|
68678
68611
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
68679
68612
|
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
@@ -68686,131 +68619,125 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68686
68619
|
const re = this.sys.resolution;
|
|
68687
68620
|
return new DOMRect((0, CmnLib_1.argChk_Num)(a, 'x', 0) * re, (0, CmnLib_1.argChk_Num)(a, 'y', 0) * re, (0, CmnLib_1.argChk_Num)(a, 'width', CmnLib_1.CmnLib.stageW) * re, (0, CmnLib_1.argChk_Num)(a, 'height', CmnLib_1.CmnLib.stageH) * re);
|
|
68688
68621
|
}, _FrameMng_let_frame = function _FrameMng_let_frame(hArg) {
|
|
68689
|
-
const id = hArg
|
|
68622
|
+
const { id, var_name } = hArg;
|
|
68690
68623
|
if (!id)
|
|
68691
68624
|
throw 'idは必須です';
|
|
68692
|
-
const
|
|
68693
|
-
if (!
|
|
68625
|
+
const f = document.getElementById(id);
|
|
68626
|
+
if (!f)
|
|
68694
68627
|
throw `id【${id}】はフレームではありません`;
|
|
68695
|
-
const
|
|
68696
|
-
if (!this.val.getVal(`tmp:${
|
|
68628
|
+
const vn = 'const.sn.frm.' + id;
|
|
68629
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
68697
68630
|
throw `frame【${id}】が読み込まれていません`;
|
|
68698
|
-
const var_name = hArg.var_name;
|
|
68699
68631
|
if (!var_name)
|
|
68700
68632
|
throw 'var_nameは必須です';
|
|
68701
|
-
const win =
|
|
68633
|
+
const win = f.contentWindow;
|
|
68702
68634
|
if (!win.hasOwnProperty(var_name))
|
|
68703
68635
|
throw `frame【${id}】に変数/関数【${var_name}】がありません。変数は var付きにして下さい`;
|
|
68704
68636
|
const v = win[var_name];
|
|
68705
|
-
this.val.setVal_Nochk('tmp',
|
|
68637
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, (0, CmnLib_1.argChk_Boolean)(hArg, 'function', false) ? v() : v);
|
|
68706
68638
|
return false;
|
|
68707
68639
|
}, _FrameMng_set_frame = function _FrameMng_set_frame(hArg) {
|
|
68708
|
-
const id = hArg
|
|
68640
|
+
const { id, var_name, text } = hArg;
|
|
68709
68641
|
if (!id)
|
|
68710
68642
|
throw 'idは必須です';
|
|
68711
|
-
const
|
|
68712
|
-
if (!
|
|
68643
|
+
const f = document.getElementById(id);
|
|
68644
|
+
if (!f)
|
|
68713
68645
|
throw `id【${id}】はフレームではありません`;
|
|
68714
|
-
const
|
|
68715
|
-
if (!this.val.getVal(`tmp:${
|
|
68646
|
+
const vn = 'const.sn.frm.' + id;
|
|
68647
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
68716
68648
|
throw `frame【${id}】が読み込まれていません`;
|
|
68717
|
-
const var_name = hArg.var_name;
|
|
68718
68649
|
if (!var_name)
|
|
68719
68650
|
throw 'var_nameは必須です';
|
|
68720
|
-
const text = hArg.text;
|
|
68721
68651
|
if (!text)
|
|
68722
68652
|
throw 'textは必須です';
|
|
68723
|
-
this.val.setVal_Nochk('tmp',
|
|
68724
|
-
const win =
|
|
68653
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, text);
|
|
68654
|
+
const win = f.contentWindow;
|
|
68725
68655
|
win[var_name] = text;
|
|
68726
68656
|
return false;
|
|
68727
68657
|
}, _FrameMng_frame = function _FrameMng_frame(hArg) {
|
|
68728
68658
|
var _a, _b;
|
|
68729
|
-
const id = hArg
|
|
68659
|
+
const { id } = hArg;
|
|
68730
68660
|
if (!id)
|
|
68731
68661
|
throw 'idは必須です';
|
|
68732
|
-
const
|
|
68733
|
-
if (!
|
|
68662
|
+
const f = document.getElementById(id);
|
|
68663
|
+
if (!f)
|
|
68734
68664
|
throw `id【${id}】はフレームではありません`;
|
|
68735
|
-
const
|
|
68736
|
-
if (!this.val.getVal(
|
|
68665
|
+
const vn = 'const.sn.frm.' + id;
|
|
68666
|
+
if (!this.val.getVal('tmp:' + vn))
|
|
68737
68667
|
throw `frame【${id}】が読み込まれていません`;
|
|
68738
|
-
|
|
68739
|
-
|
|
68740
|
-
|
|
68741
|
-
else if (hArg
|
|
68742
|
-
|
|
68743
|
-
}
|
|
68668
|
+
const s = f.style;
|
|
68669
|
+
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
|
|
68670
|
+
s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
|
|
68671
|
+
else if ('index' in hArg)
|
|
68672
|
+
s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
|
|
68744
68673
|
else if (hArg.dive)
|
|
68745
|
-
|
|
68674
|
+
s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
|
|
68746
68675
|
if ('alpha' in hArg) {
|
|
68747
|
-
const a = String(hArg.alpha);
|
|
68748
|
-
|
|
68749
|
-
this.val.setVal_Nochk('tmp', frmnm + '.alpha', a);
|
|
68676
|
+
const a = s.opacity = String(hArg.alpha);
|
|
68677
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68750
68678
|
}
|
|
68751
68679
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68752
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68753
68680
|
if ('x' in hArg || 'y' in hArg) {
|
|
68754
|
-
|
|
68755
|
-
|
|
68756
|
-
this.val.setVal_Nochk('tmp',
|
|
68757
|
-
this.val.setVal_Nochk('tmp',
|
|
68681
|
+
s.left = `${this.sys.ofsLeft4frm + rct.x * this.sys.cvsScale}px`;
|
|
68682
|
+
s.top = `${this.sys.ofsTop4frm + rct.y * this.sys.cvsScale}px`;
|
|
68683
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68684
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68758
68685
|
}
|
|
68759
68686
|
if ('scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68760
68687
|
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
68761
68688
|
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
68762
68689
|
const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
|
|
68763
|
-
|
|
68764
|
-
this.val.setVal_Nochk('tmp',
|
|
68765
|
-
this.val.setVal_Nochk('tmp',
|
|
68766
|
-
this.val.setVal_Nochk('tmp',
|
|
68690
|
+
s.transform = `scale(${sx}, ${sy}) rotate(${r}deg)`;
|
|
68691
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
68692
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
68693
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68767
68694
|
}
|
|
68768
68695
|
if ('width' in hArg) {
|
|
68769
|
-
|
|
68770
|
-
this.val.setVal_Nochk('tmp',
|
|
68696
|
+
f.width = String(rct.width * this.sys.cvsScale);
|
|
68697
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68771
68698
|
}
|
|
68772
68699
|
if ('height' in hArg) {
|
|
68773
|
-
|
|
68774
|
-
this.val.setVal_Nochk('tmp',
|
|
68700
|
+
f.height = String(rct.height * this.sys.cvsScale);
|
|
68701
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68775
68702
|
}
|
|
68776
68703
|
if ('visible' in hArg) {
|
|
68777
68704
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68778
|
-
|
|
68779
|
-
this.val.setVal_Nochk('tmp',
|
|
68705
|
+
s.display = v ? 'inline' : 'none';
|
|
68706
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
68780
68707
|
}
|
|
68781
68708
|
if ('b_color' in hArg)
|
|
68782
|
-
|
|
68709
|
+
s.backgroundColor = hArg.b_color;
|
|
68783
68710
|
if ('disabled' in hArg) {
|
|
68784
68711
|
const d = __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id] = (0, CmnLib_1.argChk_Boolean)(hArg, 'disabled', true);
|
|
68785
|
-
const il =
|
|
68712
|
+
const il = f.contentDocument.body.querySelectorAll('input,select');
|
|
68786
68713
|
il.forEach(v => v.disabled = d);
|
|
68787
68714
|
}
|
|
68788
68715
|
return false;
|
|
68789
68716
|
}, _FrameMng_tsy_frame = function _FrameMng_tsy_frame(hArg) {
|
|
68790
|
-
const id = hArg
|
|
68717
|
+
const { id } = hArg;
|
|
68791
68718
|
if (!id)
|
|
68792
68719
|
throw 'idは必須です';
|
|
68793
|
-
const
|
|
68794
|
-
if (!
|
|
68720
|
+
const f = document.getElementById(id);
|
|
68721
|
+
if (!f)
|
|
68795
68722
|
throw `id【${id}】はフレームではありません`;
|
|
68796
|
-
const
|
|
68797
|
-
if (!this.val.getVal(`tmp:${
|
|
68723
|
+
const vn = `const.sn.frm.` + id;
|
|
68724
|
+
if (!this.val.getVal(`tmp:${vn}`, 0))
|
|
68798
68725
|
throw `frame【${id}】が読み込まれていません`;
|
|
68799
68726
|
const hNow = {};
|
|
68800
68727
|
if ('alpha' in hArg)
|
|
68801
|
-
hNow.a =
|
|
68728
|
+
hNow.a = f.style.opacity;
|
|
68802
68729
|
if ('x' in hArg || 'y' in hArg
|
|
68803
68730
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68804
|
-
hNow.x = Number(this.val.getVal(`tmp:${
|
|
68805
|
-
hNow.y = Number(this.val.getVal(`tmp:${
|
|
68806
|
-
hNow.sx = Number(this.val.getVal(`tmp:${
|
|
68807
|
-
hNow.sy = Number(this.val.getVal(`tmp:${
|
|
68808
|
-
hNow.r = Number(this.val.getVal(`tmp:${
|
|
68731
|
+
hNow.x = Number(this.val.getVal(`tmp:${vn}.x`));
|
|
68732
|
+
hNow.y = Number(this.val.getVal(`tmp:${vn}.y`));
|
|
68733
|
+
hNow.sx = Number(this.val.getVal(`tmp:${vn}.scale_x`));
|
|
68734
|
+
hNow.sy = Number(this.val.getVal(`tmp:${vn}.scale_y`));
|
|
68735
|
+
hNow.r = Number(this.val.getVal(`tmp:${vn}.rotate`));
|
|
68809
68736
|
}
|
|
68810
68737
|
if ('width' in hArg)
|
|
68811
|
-
hNow.w = this.val.getVal(`tmp:${
|
|
68738
|
+
hNow.w = this.val.getVal(`tmp:${vn}.width`);
|
|
68812
68739
|
if ('height' in hArg)
|
|
68813
|
-
hNow.h = this.val.getVal(`tmp:${
|
|
68740
|
+
hNow.h = this.val.getVal(`tmp:${vn}.height`);
|
|
68814
68741
|
const hArg2 = (0, CmnLib_1.cnvTweenArg)(hArg, hNow);
|
|
68815
68742
|
const hTo = {};
|
|
68816
68743
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
@@ -68818,13 +68745,12 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68818
68745
|
if ('alpha' in hArg) {
|
|
68819
68746
|
hTo.a = (0, CmnLib_1.argChk_Num)(hArg2, 'alpha', 0);
|
|
68820
68747
|
fncA = () => {
|
|
68821
|
-
|
|
68748
|
+
f.style.opacity = hNow.a;
|
|
68822
68749
|
this.val.setVal_Nochk('tmp', 'alpha', hNow.a);
|
|
68823
68750
|
};
|
|
68824
68751
|
}
|
|
68825
68752
|
let fncXYSR = () => { };
|
|
68826
68753
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg2);
|
|
68827
|
-
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68828
68754
|
if ('x' in hArg || 'y' in hArg
|
|
68829
68755
|
|| 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68830
68756
|
hTo.x = rct.x;
|
|
@@ -68833,30 +68759,30 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68833
68759
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
68834
68760
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
68835
68761
|
fncXYSR = () => {
|
|
68836
|
-
|
|
68837
|
-
|
|
68838
|
-
|
|
68839
|
-
this.val.setVal_Nochk('tmp',
|
|
68840
|
-
this.val.setVal_Nochk('tmp',
|
|
68841
|
-
this.val.setVal_Nochk('tmp',
|
|
68842
|
-
this.val.setVal_Nochk('tmp',
|
|
68843
|
-
this.val.setVal_Nochk('tmp',
|
|
68762
|
+
f.style.left = this.sys.ofsLeft4frm + hNow.x * this.sys.cvsScale + 'px';
|
|
68763
|
+
f.style.top = this.sys.ofsTop4frm + hNow.y * this.sys.cvsScale + 'px';
|
|
68764
|
+
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
68765
|
+
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
68766
|
+
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
68767
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', hNow.sx);
|
|
68768
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', hNow.sy);
|
|
68769
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', hNow.r);
|
|
68844
68770
|
};
|
|
68845
68771
|
}
|
|
68846
68772
|
let fncW = () => { };
|
|
68847
68773
|
if ('width' in hArg) {
|
|
68848
68774
|
hTo.w = rct.width;
|
|
68849
68775
|
fncW = () => {
|
|
68850
|
-
|
|
68851
|
-
this.val.setVal_Nochk('tmp',
|
|
68776
|
+
f.width = hNow.w * this.sys.cvsScale + 'px';
|
|
68777
|
+
this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
|
|
68852
68778
|
};
|
|
68853
68779
|
}
|
|
68854
68780
|
let fncH = () => { };
|
|
68855
68781
|
if ('height' in hArg) {
|
|
68856
68782
|
hTo.h = rct.height;
|
|
68857
68783
|
fncH = () => {
|
|
68858
|
-
|
|
68859
|
-
this.val.setVal_Nochk('tmp',
|
|
68784
|
+
f.height = hNow.h * this.sys.cvsScale + 'px';
|
|
68785
|
+
this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
|
|
68860
68786
|
};
|
|
68861
68787
|
}
|
|
68862
68788
|
this.appPixi.stage.interactive = false;
|
|
@@ -69013,10 +68939,9 @@ class Grammar {
|
|
|
69013
68939
|
this.REG_TOKEN_NOTXT = new RegExp(`[\\n\\t;\\[*&${ce ? `\\${ce}` : ''}]`);
|
|
69014
68940
|
}
|
|
69015
68941
|
bracket2macro(hArg, script, idxToken) {
|
|
69016
|
-
const name = hArg
|
|
68942
|
+
const { name, text } = hArg;
|
|
69017
68943
|
if (!name)
|
|
69018
68944
|
throw '[bracket2macro] nameは必須です';
|
|
69019
|
-
const text = hArg.text;
|
|
69020
68945
|
if (!text)
|
|
69021
68946
|
throw '[bracket2macro] textは必須です';
|
|
69022
68947
|
if (text.length !== 2)
|
|
@@ -69040,7 +68965,7 @@ class Grammar {
|
|
|
69040
68965
|
this.replaceScr_C2M_And_let_ml(script, idxToken);
|
|
69041
68966
|
}
|
|
69042
68967
|
char2macro(hArg, hTag, script, idxToken) {
|
|
69043
|
-
const char = hArg
|
|
68968
|
+
const { char, name } = hArg;
|
|
69044
68969
|
if (!char)
|
|
69045
68970
|
throw '[char2macro] charは必須です';
|
|
69046
68971
|
__classPrivateFieldSet(this, _Grammar_hC2M, __classPrivateFieldGet(this, _Grammar_hC2M, "f") ?? {}, "f");
|
|
@@ -69049,7 +68974,6 @@ class Grammar {
|
|
|
69049
68974
|
__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").lastIndex = 0;
|
|
69050
68975
|
if (__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").test(char))
|
|
69051
68976
|
throw '[char2macro] char【' + char + '】は一文字マクロに使用できない文字です';
|
|
69052
|
-
const name = hArg.name;
|
|
69053
68977
|
if (!name)
|
|
69054
68978
|
throw '[char2macro] nameは必須です';
|
|
69055
68979
|
if (!(name in hTag))
|
|
@@ -69151,8 +69075,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69151
69075
|
}
|
|
69152
69076
|
setSp(_sp) { }
|
|
69153
69077
|
laySub(hArg, resolve) {
|
|
69154
|
-
const fn = hArg
|
|
69155
|
-
const face = hArg.face ?? '';
|
|
69078
|
+
const { fn, face = '' } = hArg;
|
|
69156
69079
|
__classPrivateFieldGet(this, _GrpLayer_idc, "f").sethArg(hArg);
|
|
69157
69080
|
if (!fn) {
|
|
69158
69081
|
super.lay(hArg);
|
|
@@ -69263,7 +69186,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69263
69186
|
return needLoad;
|
|
69264
69187
|
}
|
|
69265
69188
|
static wv(hArg) {
|
|
69266
|
-
const fn = hArg
|
|
69189
|
+
const { fn } = hArg;
|
|
69267
69190
|
if (!fn)
|
|
69268
69191
|
throw 'fnは必須です';
|
|
69269
69192
|
const hve = GrpLayer.hFn2VElm[fn];
|
|
@@ -69362,16 +69285,16 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69362
69285
|
Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
|
|
69363
69286
|
}
|
|
69364
69287
|
static add_face(hArg) {
|
|
69365
|
-
const name = hArg
|
|
69288
|
+
const { name } = hArg;
|
|
69366
69289
|
if (!name)
|
|
69367
69290
|
throw 'nameは必須です';
|
|
69368
69291
|
if (name in __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace))
|
|
69369
69292
|
throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
|
|
69370
|
-
const fn =
|
|
69293
|
+
const { fn = name } = hArg;
|
|
69371
69294
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
69372
69295
|
fn,
|
|
69373
|
-
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0)
|
|
69374
|
-
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0)
|
|
69296
|
+
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0),
|
|
69297
|
+
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0),
|
|
69375
69298
|
blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
|
|
69376
69299
|
};
|
|
69377
69300
|
return false;
|
|
@@ -69578,10 +69501,10 @@ class Layer {
|
|
|
69578
69501
|
return false;
|
|
69579
69502
|
}
|
|
69580
69503
|
static setBlendmode(cnt, hArg) {
|
|
69581
|
-
const
|
|
69582
|
-
if (!
|
|
69504
|
+
const { blendmode } = hArg;
|
|
69505
|
+
if (!blendmode)
|
|
69583
69506
|
return;
|
|
69584
|
-
const bmn = Layer.getBlendmodeNum(
|
|
69507
|
+
const bmn = Layer.getBlendmodeNum(blendmode);
|
|
69585
69508
|
const sp = cnt;
|
|
69586
69509
|
if (sp)
|
|
69587
69510
|
sp.blendMode = bmn;
|
|
@@ -69696,7 +69619,7 @@ class Layer {
|
|
|
69696
69619
|
}
|
|
69697
69620
|
ret.x = (0, CmnLib_1.int)(((ret.scale.x < 0)
|
|
69698
69621
|
? x + (isButton ? b_width / 3 : b_width)
|
|
69699
|
-
: x)
|
|
69622
|
+
: x));
|
|
69700
69623
|
let y = ret.y;
|
|
69701
69624
|
if ('top' in hArg) {
|
|
69702
69625
|
y = (0, CmnLib_1.argChk_Num)(hArg, 'top', 0);
|
|
@@ -69721,8 +69644,7 @@ class Layer {
|
|
|
69721
69644
|
y *= CmnLib_1.CmnLib.stageH;
|
|
69722
69645
|
y = CmnLib_1.CmnLib.stageH - y - b_height;
|
|
69723
69646
|
}
|
|
69724
|
-
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y)
|
|
69725
|
-
* CmnLib_1.CmnLib.retinaRate);
|
|
69647
|
+
ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y));
|
|
69726
69648
|
if (isGrp) {
|
|
69727
69649
|
if (!('left' in hArg)
|
|
69728
69650
|
&& !('center' in hArg)
|
|
@@ -69759,7 +69681,7 @@ class Layer {
|
|
|
69759
69681
|
c = b_width * 0.5;
|
|
69760
69682
|
}
|
|
69761
69683
|
else {
|
|
69762
|
-
c = (0, CmnLib_1.int)(pos)
|
|
69684
|
+
c = (0, CmnLib_1.int)(pos);
|
|
69763
69685
|
}
|
|
69764
69686
|
ret.x = (0, CmnLib_1.int)(c - b_width * 0.5);
|
|
69765
69687
|
ret.y = CmnLib_1.CmnLib.stageH - b_height;
|
|
@@ -69926,9 +69848,8 @@ void main(void) {
|
|
|
69926
69848
|
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
69927
69849
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
69928
69850
|
_LayerMng_aTxtLog.set(this, []);
|
|
69929
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
69930
69851
|
const fncResizeLay = () => {
|
|
69931
|
-
if (!
|
|
69852
|
+
if (!sys.cvsResize())
|
|
69932
69853
|
return;
|
|
69933
69854
|
this.cvsResizeDesign();
|
|
69934
69855
|
if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
|
|
@@ -69942,15 +69863,15 @@ void main(void) {
|
|
|
69942
69863
|
globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
|
|
69943
69864
|
}
|
|
69944
69865
|
else {
|
|
69945
|
-
let tid =
|
|
69866
|
+
let tid = undefined;
|
|
69946
69867
|
globalThis.addEventListener('resize', () => {
|
|
69947
69868
|
if (tid)
|
|
69948
69869
|
return;
|
|
69949
|
-
tid = setTimeout(() => { tid =
|
|
69870
|
+
tid = setTimeout(() => { tid = undefined; fncResizeLay(); }, 1000 / 60 * 10);
|
|
69950
69871
|
}, { passive: true });
|
|
69951
69872
|
}
|
|
69952
|
-
|
|
69953
|
-
TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
|
|
69873
|
+
sys.cvsResize();
|
|
69874
|
+
TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me, appPixi);
|
|
69954
69875
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
69955
69876
|
Button_1.Button.init(cfg);
|
|
69956
69877
|
__classPrivateFieldSet(this, _LayerMng_frmMng, new FrameMng_1.FrameMng(this.cfg, this.hTag, this.appPixi, this.val, main, this.sys, __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")), "f");
|
|
@@ -70227,7 +70148,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70227
70148
|
});
|
|
70228
70149
|
return false;
|
|
70229
70150
|
}, _LayerMng_loadplugin = function _LayerMng_loadplugin(hArg) {
|
|
70230
|
-
const fn = hArg
|
|
70151
|
+
const { fn } = hArg;
|
|
70231
70152
|
if (!fn)
|
|
70232
70153
|
throw 'fnは必須です';
|
|
70233
70154
|
const join = (0, CmnLib_1.argChk_Boolean)(hArg, 'join', true);
|
|
@@ -70246,14 +70167,13 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70246
70167
|
}
|
|
70247
70168
|
return join;
|
|
70248
70169
|
}, _LayerMng_add_lay = function _LayerMng_add_lay(hArg) {
|
|
70249
|
-
const layer = hArg
|
|
70170
|
+
const { layer, class: cls } = hArg;
|
|
70250
70171
|
if (!layer)
|
|
70251
70172
|
throw 'layerは必須です';
|
|
70252
70173
|
if (layer.includes(','))
|
|
70253
70174
|
throw 'layer名に「,」は使えません';
|
|
70254
70175
|
if (layer in __classPrivateFieldGet(this, _LayerMng_hPages, "f"))
|
|
70255
70176
|
throw `layer【${layer}】はすでにあります`;
|
|
70256
|
-
const cls = hArg.class;
|
|
70257
70177
|
if (!cls)
|
|
70258
70178
|
throw 'clsは必須です';
|
|
70259
70179
|
const ret = { isWait: false };
|
|
@@ -70309,7 +70229,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70309
70229
|
}
|
|
70310
70230
|
}
|
|
70311
70231
|
else if (hArg.dive) {
|
|
70312
|
-
const dive = hArg
|
|
70232
|
+
const { dive } = hArg;
|
|
70313
70233
|
let idx_dive = 0;
|
|
70314
70234
|
if (layer === dive)
|
|
70315
70235
|
throw '[lay] 属性 layerとdiveが同じ【' + dive + '】です';
|
|
@@ -70621,8 +70541,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70621
70541
|
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm]?.tw?.resume();
|
|
70622
70542
|
return false;
|
|
70623
70543
|
}, _LayerMng_ch = function _LayerMng_ch(hArg) {
|
|
70624
|
-
const
|
|
70625
|
-
if (!
|
|
70544
|
+
const { text } = hArg;
|
|
70545
|
+
if (!text)
|
|
70626
70546
|
throw 'textは必須です';
|
|
70627
70547
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
70628
70548
|
delete hArg.text;
|
|
@@ -70634,7 +70554,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70634
70554
|
const doRecLog = this.val.doRecLog();
|
|
70635
70555
|
if (!record)
|
|
70636
70556
|
this.val.setVal_Nochk('save', 'sn.doRecLog', record);
|
|
70637
|
-
tl.tagCh(
|
|
70557
|
+
tl.tagCh(text.replaceAll('[r]', '\n'));
|
|
70638
70558
|
if (!record)
|
|
70639
70559
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
70640
70560
|
return false;
|
|
@@ -70647,7 +70567,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70647
70567
|
const tf = lay;
|
|
70648
70568
|
return tf;
|
|
70649
70569
|
}, _LayerMng_$current = function _LayerMng_$current(hArg) {
|
|
70650
|
-
const layer = hArg
|
|
70570
|
+
const { layer } = hArg;
|
|
70651
70571
|
if (!layer)
|
|
70652
70572
|
throw '[current] layerは必須です';
|
|
70653
70573
|
__classPrivateFieldSet(this, _LayerMng_pgTxtlay, __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer], "f");
|
|
@@ -70706,10 +70626,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70706
70626
|
this.val.setVal_Nochk('save', 'const.sn.sLog', (hArg.text) ? `[{text:"${hArg.text}"}]` : '[]');
|
|
70707
70627
|
return false;
|
|
70708
70628
|
}, _LayerMng_ruby2 = function _LayerMng_ruby2(hArg) {
|
|
70709
|
-
const t = hArg
|
|
70629
|
+
const { t, r } = hArg;
|
|
70710
70630
|
if (!t)
|
|
70711
70631
|
throw '[ruby2] tは必須です';
|
|
70712
|
-
const r = hArg.r;
|
|
70713
70632
|
if (!r)
|
|
70714
70633
|
throw '[ruby2] rは必須です';
|
|
70715
70634
|
hArg.text = '|' + t + '《' + r + '》';
|
|
@@ -70778,7 +70697,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
70778
70697
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
70779
70698
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
70780
70699
|
};
|
|
70781
|
-
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
70700
|
+
var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_SN_ID, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
|
|
70782
70701
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70783
70702
|
exports.Main = void 0;
|
|
70784
70703
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -70810,6 +70729,7 @@ class Main {
|
|
|
70810
70729
|
_Main_fncNext.set(this, () => { });
|
|
70811
70730
|
_Main_alzTagArg.set(this, new AnalyzeTagArg_1.AnalyzeTagArg);
|
|
70812
70731
|
_Main_inited.set(this, false);
|
|
70732
|
+
_Main_SN_ID.set(this, 'skynovel');
|
|
70813
70733
|
_Main_fncTicker.set(this, () => __classPrivateFieldGet(this, _Main_fncNext, "f").call(this));
|
|
70814
70734
|
_Main_fncresume.set(this, (fnc = __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze)) => {
|
|
70815
70735
|
if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
|
|
@@ -70886,14 +70806,14 @@ class Main {
|
|
|
70886
70806
|
__classPrivateFieldGet(this, _Main_dbgMng, "f").destroy();
|
|
70887
70807
|
__classPrivateFieldGet(this, _Main_appPixi, "f").ticker.remove(__classPrivateFieldGet(this, _Main_fncTicker, "f"));
|
|
70888
70808
|
if (__classPrivateFieldGet(this, _Main_clone_cvs, "f") && __classPrivateFieldGet(this, _Main_appPixi, "f")) {
|
|
70889
|
-
|
|
70809
|
+
document.body.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
70890
70810
|
}
|
|
70891
70811
|
pixi_js_1.utils.clearTextureCache();
|
|
70892
70812
|
__classPrivateFieldGet(this, _Main_appPixi, "f").destroy(true);
|
|
70893
70813
|
}
|
|
70894
70814
|
}
|
|
70895
70815
|
exports.Main = Main;
|
|
70896
|
-
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
70816
|
+
_Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_SN_ID = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
|
|
70897
70817
|
const cc = document.createElement('canvas')?.getContext('2d');
|
|
70898
70818
|
if (!cc)
|
|
70899
70819
|
throw 'argChk_Color err';
|
|
@@ -70906,16 +70826,16 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
70906
70826
|
resolution: globalThis.devicePixelRatio ?? 1,
|
|
70907
70827
|
autoResize: true,
|
|
70908
70828
|
};
|
|
70909
|
-
const cvs = document.getElementById(
|
|
70829
|
+
const cvs = document.getElementById(__classPrivateFieldGet(this, _Main_SN_ID, "f"));
|
|
70910
70830
|
if (cvs) {
|
|
70911
70831
|
__classPrivateFieldSet(this, _Main_clone_cvs, cvs.cloneNode(true), "f");
|
|
70912
|
-
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id =
|
|
70832
|
+
__classPrivateFieldGet(this, _Main_clone_cvs, "f").id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
70913
70833
|
hApp.view = cvs;
|
|
70914
70834
|
}
|
|
70915
70835
|
__classPrivateFieldSet(this, _Main_appPixi, new pixi_js_1.Application(hApp), "f");
|
|
70916
70836
|
if (!cvs) {
|
|
70917
70837
|
document.body.appendChild(__classPrivateFieldGet(this, _Main_appPixi, "f").view);
|
|
70918
|
-
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id =
|
|
70838
|
+
__classPrivateFieldGet(this, _Main_appPixi, "f").view.id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
|
|
70919
70839
|
}
|
|
70920
70840
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
70921
70841
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
@@ -72060,7 +71980,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72060
71980
|
return a;
|
|
72061
71981
|
}, _ScriptIterator_let_ml = function _ScriptIterator_let_ml(hArg) {
|
|
72062
71982
|
var _b;
|
|
72063
|
-
const name = hArg
|
|
71983
|
+
const { name } = hArg;
|
|
72064
71984
|
if (!name)
|
|
72065
71985
|
throw 'nameは必須です';
|
|
72066
71986
|
let ml = '';
|
|
@@ -72118,7 +72038,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72118
72038
|
}
|
|
72119
72039
|
return ret;
|
|
72120
72040
|
}, _ScriptIterator_dump_script = function _ScriptIterator_dump_script(hArg) {
|
|
72121
|
-
const set_fnc = hArg
|
|
72041
|
+
const { set_fnc, break_fnc } = hArg;
|
|
72122
72042
|
if (!set_fnc)
|
|
72123
72043
|
throw 'set_fncは必須です';
|
|
72124
72044
|
__classPrivateFieldSet(this, _ScriptIterator_fncSet, globalThis[set_fnc], "f");
|
|
@@ -72138,7 +72058,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72138
72058
|
__classPrivateFieldGet(this, _ScriptIterator_fncBreak, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"), goto);
|
|
72139
72059
|
};
|
|
72140
72060
|
this.noticeBreak(true);
|
|
72141
|
-
const break_fnc = hArg.break_fnc;
|
|
72142
72061
|
if (!break_fnc)
|
|
72143
72062
|
return false;
|
|
72144
72063
|
__classPrivateFieldSet(this, _ScriptIterator_fncBreak, globalThis[break_fnc], "f");
|
|
@@ -72156,7 +72075,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72156
72075
|
return false;
|
|
72157
72076
|
}, _ScriptIterator_if = function _ScriptIterator_if(hArg) {
|
|
72158
72077
|
var _b, _c;
|
|
72159
|
-
const exp = hArg
|
|
72078
|
+
const { exp } = hArg;
|
|
72160
72079
|
if (!exp)
|
|
72161
72080
|
throw 'expは必須です';
|
|
72162
72081
|
if (exp.charAt(0) === '&')
|
|
@@ -72225,7 +72144,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72225
72144
|
}, _ScriptIterator_call = function _ScriptIterator_call(hArg) {
|
|
72226
72145
|
if (!(0, CmnLib_1.argChk_Boolean)(hArg, 'count', false))
|
|
72227
72146
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_eraseKidoku).call(this);
|
|
72228
|
-
const fn = hArg
|
|
72147
|
+
const { fn } = hArg;
|
|
72229
72148
|
if (fn)
|
|
72230
72149
|
__classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
|
|
72231
72150
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
|
|
@@ -72256,7 +72175,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72256
72175
|
__classPrivateFieldSet(this, _ScriptIterator_posAPageLog, -1, "f");
|
|
72257
72176
|
return false;
|
|
72258
72177
|
}
|
|
72259
|
-
const to = hArg
|
|
72178
|
+
const { to } = hArg;
|
|
72260
72179
|
if (!to)
|
|
72261
72180
|
throw 'clearかtoは必須です';
|
|
72262
72181
|
const oldPos = __classPrivateFieldGet(this, _ScriptIterator_posAPageLog, "f");
|
|
@@ -72532,7 +72451,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72532
72451
|
return false;
|
|
72533
72452
|
}, _ScriptIterator_macro = function _ScriptIterator_macro(hArg) {
|
|
72534
72453
|
var _b, _c;
|
|
72535
|
-
const name = hArg
|
|
72454
|
+
const { name } = hArg;
|
|
72536
72455
|
if (!name)
|
|
72537
72456
|
throw 'nameは必須です';
|
|
72538
72457
|
if (name in this.hTag)
|
|
@@ -72782,7 +72701,7 @@ class SoundMng {
|
|
|
72782
72701
|
}
|
|
72783
72702
|
exports.SoundMng = SoundMng;
|
|
72784
72703
|
_a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(), _SoundMng_evtMng = new WeakMap(), _SoundMng_initVol = new WeakMap(), _SoundMng_instances = new WeakSet(), _SoundMng_volume = function _SoundMng_volume(hArg) {
|
|
72785
|
-
const buf =
|
|
72704
|
+
const { buf = 'SE' } = hArg;
|
|
72786
72705
|
const bvn = 'const.sn.sound.' + buf + '.volume';
|
|
72787
72706
|
const arg_vol = __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_getVol).call(this, hArg, 1);
|
|
72788
72707
|
if (Number(this.val.getVal('sys:' + bvn)) === arg_vol)
|
|
@@ -72801,7 +72720,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72801
72720
|
return vol;
|
|
72802
72721
|
}, _SoundMng_fadeoutbgm = function _SoundMng_fadeoutbgm(hArg) { hArg.volume = 0; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadebgm).call(this, hArg); }, _SoundMng_fadeoutse = function _SoundMng_fadeoutse(hArg) { hArg.volume = 0; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadese).call(this, hArg); }, _SoundMng_fadebgm = function _SoundMng_fadebgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_fadese).call(this, hArg); }, _SoundMng_fadese = function _SoundMng_fadese(hArg) {
|
|
72803
72722
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
72804
|
-
const buf =
|
|
72723
|
+
const { buf = 'SE' } = hArg;
|
|
72805
72724
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
72806
72725
|
if (!oSb?.playing() || !oSb.snd)
|
|
72807
72726
|
return false;
|
|
@@ -72852,9 +72771,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72852
72771
|
(0, CmnLib_1.argChk_Boolean)(hArg, 'loop', true);
|
|
72853
72772
|
return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playse).call(this, hArg);
|
|
72854
72773
|
}, _SoundMng_playse = function _SoundMng_playse(hArg) {
|
|
72855
|
-
const buf =
|
|
72774
|
+
const { buf = 'SE', fn } = hArg;
|
|
72856
72775
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
72857
|
-
const fn = hArg.fn;
|
|
72858
72776
|
if (!fn)
|
|
72859
72777
|
throw `[playse] fnは必須です buf:${buf}`;
|
|
72860
72778
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
@@ -73052,7 +72970,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73052
72970
|
sound_1.sound.stopAll();
|
|
73053
72971
|
return false;
|
|
73054
72972
|
}, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
|
|
73055
|
-
const buf =
|
|
72973
|
+
const { buf = 'SE' } = hArg;
|
|
73056
72974
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
73057
72975
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73058
72976
|
if (oSb) {
|
|
@@ -73061,17 +72979,17 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73061
72979
|
}
|
|
73062
72980
|
return false;
|
|
73063
72981
|
}, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
|
|
73064
|
-
const buf =
|
|
72982
|
+
const { buf = 'SE' } = hArg;
|
|
73065
72983
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73066
72984
|
if (!oSb?.twFade || !oSb.playing())
|
|
73067
72985
|
return false;
|
|
73068
72986
|
return oSb.resumeFade = __classPrivateFieldGet(this, _SoundMng_evtMng, "f").waitEvent(() => __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg), (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
73069
72987
|
}, _SoundMng_stopfadese = function _SoundMng_stopfadese(hArg) {
|
|
73070
|
-
const buf =
|
|
72988
|
+
const { buf = 'SE' } = hArg;
|
|
73071
72989
|
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.twFade?.stop().end();
|
|
73072
72990
|
return false;
|
|
73073
72991
|
}, _SoundMng_wl = function _SoundMng_wl(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_ws).call(this, hArg); }, _SoundMng_ws = function _SoundMng_ws(hArg) {
|
|
73074
|
-
const buf =
|
|
72992
|
+
const { buf = 'SE' } = hArg;
|
|
73075
72993
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73076
72994
|
if (!oSb?.playing() || oSb.loop)
|
|
73077
72995
|
return false;
|
|
@@ -73084,8 +73002,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73084
73002
|
oSb2.onend();
|
|
73085
73003
|
}, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', false), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
73086
73004
|
}, _SoundMng_xchgbuf = function _SoundMng_xchgbuf(hArg) {
|
|
73087
|
-
const buf1 =
|
|
73088
|
-
const buf2 = hArg.buf2 ?? 'SE';
|
|
73005
|
+
const { buf: buf1 = 'SE', buf2 = 'SE' } = hArg;
|
|
73089
73006
|
if (buf1 === buf2)
|
|
73090
73007
|
return false;
|
|
73091
73008
|
const sb1 = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf1];
|
|
@@ -73254,7 +73171,7 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73254
73171
|
return false;
|
|
73255
73172
|
};
|
|
73256
73173
|
this.navigate_to = hArg => {
|
|
73257
|
-
const url = hArg
|
|
73174
|
+
const { url } = hArg;
|
|
73258
73175
|
if (!url)
|
|
73259
73176
|
throw '[navigate_to] urlは必須です';
|
|
73260
73177
|
to_app.navigate_to(url);
|
|
@@ -73279,37 +73196,18 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73279
73196
|
return false;
|
|
73280
73197
|
};
|
|
73281
73198
|
this.tgl_full_scr_sub = async () => {
|
|
73282
|
-
const st = this.appPixi.view.style;
|
|
73283
73199
|
if (await to_app.isSimpleFullScreen()) {
|
|
73284
73200
|
await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73285
|
-
|
|
73286
|
-
st.height = CmnLib_1.CmnLib.stageH + 'px';
|
|
73287
|
-
st.marginLeft = '0px';
|
|
73288
|
-
st.marginTop = '0px';
|
|
73289
|
-
this.reso4frame = 1;
|
|
73201
|
+
this.isFullScr = false;
|
|
73290
73202
|
}
|
|
73291
73203
|
else {
|
|
73292
|
-
const w = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
|
|
73293
|
-
const h = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
|
|
73294
|
-
const ratioWidth = w / CmnLib_1.CmnLib.stageW;
|
|
73295
|
-
const ratioHeight = h / CmnLib_1.CmnLib.stageH;
|
|
73296
|
-
const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
|
|
73297
73204
|
await to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73298
|
-
st.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
|
|
73299
|
-
st.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
|
|
73300
|
-
if (ratioWidth < ratioHeight) {
|
|
73301
|
-
st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
|
|
73302
|
-
}
|
|
73303
|
-
else
|
|
73304
|
-
st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
|
|
73305
73205
|
await to_app.win_setContentSize(screen.width, screen.height);
|
|
73306
|
-
|
|
73307
|
-
this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
|
|
73206
|
+
this.isFullScr = true;
|
|
73308
73207
|
}
|
|
73309
|
-
this.resizeFrames();
|
|
73310
73208
|
};
|
|
73311
73209
|
this.update_check = hArg => {
|
|
73312
|
-
const url = hArg
|
|
73210
|
+
const { url } = hArg;
|
|
73313
73211
|
if (!url)
|
|
73314
73212
|
throw '[update_check] urlは必須です';
|
|
73315
73213
|
if (url.slice(-1) !== '/')
|
|
@@ -73442,7 +73340,6 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73442
73340
|
hTmp['const.sn.isDebugger'] = false;
|
|
73443
73341
|
hTmp['const.sn.screenResolutionX'] = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
|
|
73444
73342
|
hTmp['const.sn.screenResolutionY'] = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
|
|
73445
|
-
this.val.defTmp('const.sn.displayState', async () => await to_app.isSimpleFullScreen());
|
|
73446
73343
|
this.$path_userdata = CmnLib_1.CmnLib.isDbg
|
|
73447
73344
|
? __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath.slice(0, -3) + '.vscode/'
|
|
73448
73345
|
: __classPrivateFieldGet(this, _SysApp_hInfo, "f").userData.replaceAll('\\', '/') + '/';
|
|
@@ -73539,7 +73436,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73539
73436
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
73540
73437
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73541
73438
|
};
|
|
73542
|
-
var _a, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
|
|
73439
|
+
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;
|
|
73543
73440
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73544
73441
|
exports.SysBase = void 0;
|
|
73545
73442
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -73551,8 +73448,15 @@ class SysBase {
|
|
|
73551
73448
|
this.hFactoryCls = {};
|
|
73552
73449
|
this.fetch = (url) => fetch(url);
|
|
73553
73450
|
this.resolution = 1;
|
|
73554
|
-
this.reso4frame = 1;
|
|
73555
73451
|
this.data = { sys: {}, mark: {}, kidoku: {} };
|
|
73452
|
+
_SysBase_cvsWidth.set(this, 0);
|
|
73453
|
+
_SysBase_cvsHeight.set(this, 0);
|
|
73454
|
+
_SysBase_cvsScale.set(this, 1);
|
|
73455
|
+
_SysBase_ofsLeft4frm.set(this, 0);
|
|
73456
|
+
_SysBase_ofsTop4frm.set(this, 0);
|
|
73457
|
+
_SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
|
|
73458
|
+
_SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
|
|
73459
|
+
this.isFullScr = false;
|
|
73556
73460
|
this.extPort = 3776;
|
|
73557
73461
|
_SysBase_sk.set(this, undefined);
|
|
73558
73462
|
_SysBase_hHook.set(this, {
|
|
@@ -73593,7 +73497,7 @@ class SysBase {
|
|
|
73593
73497
|
this._import = () => false;
|
|
73594
73498
|
this.navigate_to = () => false;
|
|
73595
73499
|
this.title = hArg => {
|
|
73596
|
-
const text = hArg
|
|
73500
|
+
const { text } = hArg;
|
|
73597
73501
|
if (!text)
|
|
73598
73502
|
throw '[title] textは必須です';
|
|
73599
73503
|
__classPrivateFieldSet(this, _SysBase_main_title, text, "f");
|
|
@@ -73640,8 +73544,6 @@ class SysBase {
|
|
|
73640
73544
|
this.$path_downloads = '';
|
|
73641
73545
|
this.$path_userdata = '';
|
|
73642
73546
|
this.canCapturePage = (_fn) => false;
|
|
73643
|
-
this.ofsLeft4frm = 0;
|
|
73644
|
-
this.ofsTop4frm = 0;
|
|
73645
73547
|
}
|
|
73646
73548
|
async loaded(hPlg, _arg) {
|
|
73647
73549
|
const fncPre = hPlg.snsys_pre;
|
|
@@ -73690,6 +73592,7 @@ class SysBase {
|
|
|
73690
73592
|
val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
|
|
73691
73593
|
val.setVal_Nochk('tmp', 'const.sn.isDbg', () => CmnLib_1.CmnLib.isDbg);
|
|
73692
73594
|
val.setVal_Nochk('tmp', 'const.sn.isPackaged', () => CmnLib_1.CmnLib.isPackaged);
|
|
73595
|
+
this.val.defTmp('const.sn.displayState', () => this.isFullScr);
|
|
73693
73596
|
val.setVal_Nochk('sys', SysBase.VALNM_CFG_NS, this.cfg.oCfg.save_ns);
|
|
73694
73597
|
val.flush();
|
|
73695
73598
|
if (CmnLib_1.CmnLib.isDbg)
|
|
@@ -73719,6 +73622,74 @@ class SysBase {
|
|
|
73719
73622
|
}));
|
|
73720
73623
|
return a;
|
|
73721
73624
|
}
|
|
73625
|
+
get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
|
|
73626
|
+
;
|
|
73627
|
+
get ofsLeft4frm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4frm, "f"); }
|
|
73628
|
+
;
|
|
73629
|
+
get ofsTop4frm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4frm, "f"); }
|
|
73630
|
+
;
|
|
73631
|
+
get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
|
|
73632
|
+
;
|
|
73633
|
+
get ofsPadTop_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadTop_Dom2PIXI, "f"); }
|
|
73634
|
+
;
|
|
73635
|
+
cvsResize() {
|
|
73636
|
+
const bk_cw = __classPrivateFieldGet(this, _SysBase_cvsWidth, "f");
|
|
73637
|
+
const bk_ch = __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73638
|
+
let w = globalThis.innerWidth;
|
|
73639
|
+
let h = globalThis.innerHeight;
|
|
73640
|
+
const { angle = 0 } = screen.orientation;
|
|
73641
|
+
const lp = angle % 180 === 0 ? 'p' : 'l';
|
|
73642
|
+
if (CmnLib_1.CmnLib.isMobile && ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
|
|
73643
|
+
[w, h] = [h, w];
|
|
73644
|
+
const cvs = this.appPixi.view;
|
|
73645
|
+
const cr = cvs.getBoundingClientRect();
|
|
73646
|
+
if (this.isFullScr || (0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true)
|
|
73647
|
+
|| CmnLib_1.CmnLib.stageW > w
|
|
73648
|
+
|| CmnLib_1.CmnLib.stageH > h) {
|
|
73649
|
+
if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
|
|
73650
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, h, "f");
|
|
73651
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH * h, "f");
|
|
73652
|
+
}
|
|
73653
|
+
else {
|
|
73654
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, w, "f");
|
|
73655
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH / CmnLib_1.CmnLib.stageW * w, "f");
|
|
73656
|
+
}
|
|
73657
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") / CmnLib_1.CmnLib.stageW, "f");
|
|
73658
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
73659
|
+
? (globalThis.innerWidth - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2
|
|
73660
|
+
: cr.left) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
73661
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
|
|
73662
|
+
? (globalThis.innerHeight - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2
|
|
73663
|
+
: cr.top) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
|
|
73664
|
+
}
|
|
73665
|
+
else {
|
|
73666
|
+
__classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW, "f");
|
|
73667
|
+
__classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH, "f");
|
|
73668
|
+
__classPrivateFieldSet(this, _SysBase_cvsScale, 1, "f");
|
|
73669
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, 0, "f");
|
|
73670
|
+
__classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, 0, "f");
|
|
73671
|
+
}
|
|
73672
|
+
const ps = cvs.parentElement.style;
|
|
73673
|
+
if (cvs.parentElement === document.body) {
|
|
73674
|
+
ps.position = 'relative';
|
|
73675
|
+
ps.width = `${__classPrivateFieldGet(this, _SysBase_cvsWidth, "f")}px`;
|
|
73676
|
+
ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
|
|
73677
|
+
}
|
|
73678
|
+
const s = cvs.style;
|
|
73679
|
+
if (this.isFullScr)
|
|
73680
|
+
s.width = s.height = '';
|
|
73681
|
+
else {
|
|
73682
|
+
s.width = ps.width;
|
|
73683
|
+
s.height = ps.height;
|
|
73684
|
+
}
|
|
73685
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4frm, cr.left, "f");
|
|
73686
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4frm, cr.top, "f");
|
|
73687
|
+
if (this.isFullScr) {
|
|
73688
|
+
__classPrivateFieldSet(this, _SysBase_ofsLeft4frm, __classPrivateFieldGet(this, _SysBase_ofsLeft4frm, "f") + (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
|
|
73689
|
+
__classPrivateFieldSet(this, _SysBase_ofsTop4frm, __classPrivateFieldGet(this, _SysBase_ofsTop4frm, "f") + (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
|
|
73690
|
+
}
|
|
73691
|
+
return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
|
|
73692
|
+
}
|
|
73722
73693
|
attach_debug(main) {
|
|
73723
73694
|
this.attach_debug = () => { };
|
|
73724
73695
|
const gs = document.createElement('style');
|
|
@@ -73763,24 +73734,21 @@ class SysBase {
|
|
|
73763
73734
|
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
73764
73735
|
}
|
|
73765
73736
|
toast(nm) {
|
|
73766
|
-
const
|
|
73767
|
-
if (!cvs)
|
|
73768
|
-
return;
|
|
73769
|
-
const p = cvs.parentNode;
|
|
73737
|
+
const p = document.body;
|
|
73770
73738
|
p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
|
|
73771
73739
|
const img = document.createElement('img');
|
|
73772
73740
|
const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
|
|
73773
73741
|
img.src = `data:image/svg+xml;base64,${td.dat}`;
|
|
73774
|
-
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 *
|
|
73742
|
+
const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f");
|
|
73775
73743
|
img.width = img.height = size;
|
|
73776
73744
|
img.style.cssText =
|
|
73777
73745
|
`position: absolute;
|
|
73778
|
-
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 *
|
|
73779
|
-
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 *
|
|
73746
|
+
left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dx ?? 0)}px;
|
|
73747
|
+
top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dy ?? 0)}px;`;
|
|
73780
73748
|
img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
|
|
73781
73749
|
if (!td.ease)
|
|
73782
73750
|
img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
|
|
73783
|
-
p.insertBefore(img,
|
|
73751
|
+
p.insertBefore(img, this.appPixi.view);
|
|
73784
73752
|
}
|
|
73785
73753
|
setFire(fire) { this.fire = fire; }
|
|
73786
73754
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
@@ -73801,28 +73769,9 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
73801
73769
|
;
|
|
73802
73770
|
async appendFile(_path, _data, _callback) { }
|
|
73803
73771
|
async ensureFileSync(_path) { }
|
|
73804
|
-
resizeFrames() {
|
|
73805
|
-
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73806
|
-
const a = document.getElementsByTagName('iframe');
|
|
73807
|
-
const len = a.length;
|
|
73808
|
-
for (let i = 0; i < len; ++i) {
|
|
73809
|
-
const it = a[i];
|
|
73810
|
-
const frmnm = `const.sn.frm.${it.id}`;
|
|
73811
|
-
it.style.left = this.ofsLeft4frm + cr.left
|
|
73812
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.x`)) * this.reso4frame
|
|
73813
|
-
+ 'px';
|
|
73814
|
-
it.style.top = this.ofsTop4frm + cr.top
|
|
73815
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.y`)) * this.reso4frame
|
|
73816
|
-
+ 'px';
|
|
73817
|
-
it.width = String(Number(this.val.getVal(`tmp:${frmnm}.width`))
|
|
73818
|
-
* this.reso4frame);
|
|
73819
|
-
it.height = String(Number(this.val.getVal(`tmp:${frmnm}.height`))
|
|
73820
|
-
* this.reso4frame);
|
|
73821
|
-
}
|
|
73822
|
-
}
|
|
73823
73772
|
}
|
|
73824
73773
|
exports.SysBase = SysBase;
|
|
73825
|
-
_a = SysBase, _SysBase_sk = new WeakMap(), _SysBase_hHook = new WeakMap(), _SysBase_aFncHook = new WeakMap(), _SysBase_main_title = new WeakMap(), _SysBase_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
|
|
73774
|
+
_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();
|
|
73826
73775
|
SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
|
|
73827
73776
|
_SysBase_hToastDat = { value: {
|
|
73828
73777
|
'接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
|
|
@@ -73908,7 +73857,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73908
73857
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
73909
73858
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73910
73859
|
};
|
|
73911
|
-
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
73860
|
+
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_sys, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
73912
73861
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73913
73862
|
exports.TxtLayer = void 0;
|
|
73914
73863
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -73929,7 +73878,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
73929
73878
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
73930
73879
|
_TxtLayer_b_do.set(this, undefined);
|
|
73931
73880
|
_TxtLayer_b_pic.set(this, '');
|
|
73932
|
-
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
73881
|
+
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus(), __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_sys)));
|
|
73933
73882
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
73934
73883
|
_TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
|
|
73935
73884
|
_TxtLayer_$ch_in_style.set(this, '');
|
|
@@ -74223,12 +74172,12 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
74223
74172
|
__classPrivateFieldGet(this, _TxtLayer_rbSpl, "f").init(__classPrivateFieldGet(this, _TxtLayer_putCh, "f"));
|
|
74224
74173
|
this.spLay.addChild(__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f"));
|
|
74225
74174
|
__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").name = 'cntBtn';
|
|
74226
|
-
const padding = 16
|
|
74175
|
+
const padding = 16;
|
|
74227
74176
|
this.lay({ style: `width: ${CmnLib_1.CmnLib.stageW}px; height: ${CmnLib_1.CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${padding}px;`, in_style: 'default', out_style: 'default', back_clear: 'true' });
|
|
74228
74177
|
}
|
|
74229
|
-
static init(cfg, hTag, val, recText, isPageFore) {
|
|
74178
|
+
static init(cfg, hTag, val, recText, isPageFore, appPixi) {
|
|
74230
74179
|
__classPrivateFieldSet(TxtLayer, _a, cfg, "f", _TxtLayer_cfg);
|
|
74231
|
-
TxtStage_1.TxtStage.init(cfg);
|
|
74180
|
+
TxtStage_1.TxtStage.init(cfg, appPixi);
|
|
74232
74181
|
__classPrivateFieldSet(TxtLayer, _a, val, "f", _TxtLayer_val);
|
|
74233
74182
|
__classPrivateFieldSet(TxtLayer, _a, recText, "f", _TxtLayer_recText);
|
|
74234
74183
|
__classPrivateFieldSet(TxtLayer, _a, isPageFore, "f", _TxtLayer_isPageFore);
|
|
@@ -74288,9 +74237,10 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
74288
74237
|
ease: 'ease-out',
|
|
74289
74238
|
});
|
|
74290
74239
|
}
|
|
74291
|
-
static setEvtMng(main, evtMng) {
|
|
74240
|
+
static setEvtMng(main, evtMng, sys) {
|
|
74292
74241
|
__classPrivateFieldSet(TxtLayer, _a, main, "f", _TxtLayer_main);
|
|
74293
74242
|
__classPrivateFieldSet(TxtLayer, _a, evtMng, "f", _TxtLayer_evtMng);
|
|
74243
|
+
__classPrivateFieldSet(TxtLayer, _a, sys, "f", _TxtLayer_sys);
|
|
74294
74244
|
TxtStage_1.TxtStage.setEvtMng(evtMng);
|
|
74295
74245
|
}
|
|
74296
74246
|
destroy() {
|
|
@@ -74459,7 +74409,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74459
74409
|
const o = TxtStage_1.TxtStage.ch_in_style(hArg);
|
|
74460
74410
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
74461
74411
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
74462
|
-
const name = hArg
|
|
74412
|
+
const { name } = hArg;
|
|
74463
74413
|
(0, CmnLib_1.addStyle)(`
|
|
74464
74414
|
.sn_ch_in_${name} {
|
|
74465
74415
|
position: relative;
|
|
@@ -74481,7 +74431,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74481
74431
|
const o = TxtStage_1.TxtStage.ch_out_style(hArg);
|
|
74482
74432
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
74483
74433
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
74484
|
-
const name = hArg
|
|
74434
|
+
const { name } = hArg;
|
|
74485
74435
|
(0, CmnLib_1.addStyle)(`
|
|
74486
74436
|
.go_ch_out_${name} {
|
|
74487
74437
|
position: relative;
|
|
@@ -74498,41 +74448,41 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74498
74448
|
}, _TxtLayer_autowc = function _TxtLayer_autowc(hArg) {
|
|
74499
74449
|
__classPrivateFieldSet(TxtLayer, _a, (0, CmnLib_1.argChk_Boolean)(hArg, 'enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)), "f", _TxtLayer_doAutoWc);
|
|
74500
74450
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc));
|
|
74501
|
-
const
|
|
74451
|
+
const { text } = hArg;
|
|
74502
74452
|
if (('text' in hArg) !== ('time' in hArg))
|
|
74503
74453
|
throw '[autowc] textとtimeは同時指定必須です';
|
|
74504
|
-
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text',
|
|
74505
|
-
if (!
|
|
74454
|
+
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', text);
|
|
74455
|
+
if (!text) {
|
|
74506
74456
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', '');
|
|
74507
74457
|
return false;
|
|
74508
74458
|
}
|
|
74509
|
-
const len =
|
|
74459
|
+
const len = text.length;
|
|
74510
74460
|
if (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc) && len === 0)
|
|
74511
74461
|
throw '[autowc] enabled === false かつ text === "" は許されません';
|
|
74512
74462
|
const a = String(hArg.time).split(',');
|
|
74513
74463
|
if (a.length !== len)
|
|
74514
74464
|
throw '[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい';
|
|
74515
74465
|
__classPrivateFieldSet(TxtLayer, _a, {}, "f", _TxtLayer_hAutoWc);
|
|
74516
|
-
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[
|
|
74466
|
+
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[text[i]] = (0, CmnLib_1.uint)(v));
|
|
74517
74467
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', hArg.time);
|
|
74518
74468
|
return false;
|
|
74519
74469
|
}, _TxtLayer_set_ch_in = function _TxtLayer_set_ch_in(hArg) {
|
|
74520
|
-
const
|
|
74521
|
-
if (!
|
|
74470
|
+
const { in_style } = hArg;
|
|
74471
|
+
if (!in_style)
|
|
74522
74472
|
return;
|
|
74523
|
-
const cis = TxtStage_1.TxtStage.getChInStyle(
|
|
74473
|
+
const cis = TxtStage_1.TxtStage.getChInStyle(in_style);
|
|
74524
74474
|
if (!cis)
|
|
74525
|
-
throw `存在しないin_style【${
|
|
74526
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style,
|
|
74475
|
+
throw `存在しないin_style【${in_style}】です`;
|
|
74476
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style, in_style, "f");
|
|
74527
74477
|
__classPrivateFieldSet(this, _TxtLayer_ch_in_join, cis.join, "f");
|
|
74528
74478
|
}, _TxtLayer_set_ch_out = function _TxtLayer_set_ch_out(hArg) {
|
|
74529
|
-
const
|
|
74530
|
-
if (!
|
|
74479
|
+
const { out_style } = hArg;
|
|
74480
|
+
if (!out_style)
|
|
74531
74481
|
return;
|
|
74532
|
-
const cos = TxtStage_1.TxtStage.getChOutStyle(
|
|
74482
|
+
const cos = TxtStage_1.TxtStage.getChOutStyle(out_style);
|
|
74533
74483
|
if (!cos)
|
|
74534
|
-
throw `存在しないout_style【${
|
|
74535
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style,
|
|
74484
|
+
throw `存在しないout_style【${out_style}】です`;
|
|
74485
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style, out_style, "f");
|
|
74536
74486
|
}, _TxtLayer_drawBack = function _TxtLayer_drawBack(hArg, fncComp) {
|
|
74537
74487
|
if ('back_clear' in hArg) {
|
|
74538
74488
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'back_clear', false)) {
|
|
@@ -74695,6 +74645,7 @@ _TxtLayer_recText = { value: void 0 };
|
|
|
74695
74645
|
_TxtLayer_isPageFore = { value: void 0 };
|
|
74696
74646
|
_TxtLayer_main = { value: void 0 };
|
|
74697
74647
|
_TxtLayer_evtMng = { value: void 0 };
|
|
74648
|
+
_TxtLayer_sys = { value: void 0 };
|
|
74698
74649
|
_TxtLayer_doAutoWc = { value: false };
|
|
74699
74650
|
_TxtLayer_hAutoWc = { value: {} };
|
|
74700
74651
|
TxtLayer.rec = (tx) => tx;
|
|
@@ -74721,7 +74672,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
74721
74672
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
74722
74673
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
74723
74674
|
};
|
|
74724
|
-
var _TxtStage_instances, _a, _TxtStage_cfg,
|
|
74675
|
+
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_appPixi, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _TxtStage_break_fixed, _TxtStage_break_fixed_left, _TxtStage_break_fixed_top, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm, _TxtStage_REGDS, _TxtStage_fncEndChIn, _TxtStage_spWork, _TxtStage_isChInIng, _TxtStage_hChInStyle, _TxtStage_REG_NG_CHSTYLE_NAME_CHR, _TxtStage_hChOutStyle, _TxtStage_cntBreak, _TxtStage_lh_half, _TxtStage_getChRects, _TxtStage_fi_easing, _TxtStage_fo_easing, _TxtStage_clearText, _TxtStage_sss;
|
|
74725
74676
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74726
74677
|
exports.TxtStage = void 0;
|
|
74727
74678
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -74734,10 +74685,11 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
|
|
|
74734
74685
|
;
|
|
74735
74686
|
;
|
|
74736
74687
|
class TxtStage extends pixi_js_1.Container {
|
|
74737
|
-
constructor(spLay, canFocus) {
|
|
74688
|
+
constructor(spLay, canFocus, sys) {
|
|
74738
74689
|
super();
|
|
74739
74690
|
this.spLay = spLay;
|
|
74740
74691
|
this.canFocus = canFocus;
|
|
74692
|
+
this.sys = sys;
|
|
74741
74693
|
_TxtStage_instances.add(this);
|
|
74742
74694
|
_TxtStage_htmTxt.set(this, document.createElement('span'));
|
|
74743
74695
|
_TxtStage_cntTxt.set(this, new pixi_js_1.Container);
|
|
@@ -74774,15 +74726,15 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74774
74726
|
_TxtStage_sss.set(this, undefined);
|
|
74775
74727
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
74776
74728
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
74777
|
-
__classPrivateFieldGet(TxtStage, _a, "f",
|
|
74729
|
+
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_appPixi).view.parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
74778
74730
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
|
|
74779
74731
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
|
|
74780
74732
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
|
|
74781
74733
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").adopt(__classPrivateFieldGet(this, _TxtStage_idcCh, "f"));
|
|
74782
74734
|
}
|
|
74783
|
-
static init(cfg) {
|
|
74735
|
+
static init(cfg, appPixi) {
|
|
74784
74736
|
__classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
|
|
74785
|
-
__classPrivateFieldSet(TxtStage, _a,
|
|
74737
|
+
__classPrivateFieldSet(TxtStage, _a, appPixi, "f", _TxtStage_appPixi);
|
|
74786
74738
|
__classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
|
|
74787
74739
|
__classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
|
|
74788
74740
|
__classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
|
|
@@ -74859,9 +74811,9 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74859
74811
|
}
|
|
74860
74812
|
cvsResize() {
|
|
74861
74813
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
74862
|
-
s.left =
|
|
74863
|
-
s.top =
|
|
74864
|
-
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x *
|
|
74814
|
+
s.left = `${this.sys.ofsLeft4frm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
|
|
74815
|
+
s.top = `${this.sys.ofsTop4frm + this.spLay.position.y * this.sys.cvsScale}px`;
|
|
74816
|
+
s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
|
|
74865
74817
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
|
|
74866
74818
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|
|
74867
74819
|
}
|
|
@@ -74902,21 +74854,21 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74902
74854
|
do {
|
|
74903
74855
|
const e = __classPrivateFieldSet(this, _TxtStage_aRect, __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_getChRects).call(this, __classPrivateFieldGet(this, _TxtStage_htmTxt, "f")), "f");
|
|
74904
74856
|
len = e.length;
|
|
74905
|
-
if (
|
|
74906
|
-
const ox =
|
|
74857
|
+
if (this.sys.cvsScale !== 1) {
|
|
74858
|
+
const ox = this.sys.ofsPadLeft_Dom2PIXI
|
|
74907
74859
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.left)
|
|
74908
|
-
* (1 -
|
|
74909
|
-
const oy =
|
|
74860
|
+
* (1 - this.sys.cvsScale);
|
|
74861
|
+
const oy = this.sys.ofsPadTop_Dom2PIXI
|
|
74910
74862
|
+ parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.top)
|
|
74911
|
-
* (1 -
|
|
74863
|
+
* (1 - this.sys.cvsScale);
|
|
74912
74864
|
for (let i = 0; i < len; ++i) {
|
|
74913
74865
|
const r = e[i].rect;
|
|
74914
74866
|
r.x -= ox;
|
|
74915
74867
|
r.y -= oy;
|
|
74916
|
-
r.x /=
|
|
74917
|
-
r.y /=
|
|
74918
|
-
r.width /=
|
|
74919
|
-
r.height /=
|
|
74868
|
+
r.x /= this.sys.cvsScale;
|
|
74869
|
+
r.y /= this.sys.cvsScale;
|
|
74870
|
+
r.width /= this.sys.cvsScale;
|
|
74871
|
+
r.height /= this.sys.cvsScale;
|
|
74920
74872
|
}
|
|
74921
74873
|
}
|
|
74922
74874
|
if (len < 2)
|
|
@@ -75099,7 +75051,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75099
75051
|
}
|
|
75100
75052
|
static getChInStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChInStyle)[name]; }
|
|
75101
75053
|
static ch_in_style(hArg) {
|
|
75102
|
-
const name = hArg
|
|
75054
|
+
const { name } = hArg;
|
|
75103
75055
|
if (!name)
|
|
75104
75056
|
throw 'nameは必須です';
|
|
75105
75057
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -75125,7 +75077,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75125
75077
|
}
|
|
75126
75078
|
static getChOutStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChOutStyle)[name]; }
|
|
75127
75079
|
static ch_out_style(hArg) {
|
|
75128
|
-
const name = hArg
|
|
75080
|
+
const { name } = hArg;
|
|
75129
75081
|
if (!name)
|
|
75130
75082
|
throw 'nameは必須です';
|
|
75131
75083
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -75168,7 +75120,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75168
75120
|
}
|
|
75169
75121
|
reNew() {
|
|
75170
75122
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
|
|
75171
|
-
const to = new TxtStage(this.spLay, () => this.canFocus());
|
|
75123
|
+
const to = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
|
|
75172
75124
|
__classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
|
|
75173
75125
|
__classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
|
|
75174
75126
|
__classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
|
|
@@ -75621,7 +75573,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
75621
75573
|
__classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
|
|
75622
75574
|
};
|
|
75623
75575
|
_TxtStage_cfg = { value: void 0 };
|
|
75624
|
-
|
|
75576
|
+
_TxtStage_appPixi = { value: void 0 };
|
|
75625
75577
|
_TxtStage_evtMng = { value: void 0 };
|
|
75626
75578
|
_TxtStage_hWarning = { value: {
|
|
75627
75579
|
backgroundColor: 0,
|
|
@@ -75988,7 +75940,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
75988
75940
|
__classPrivateFieldGet(this, _Variable_sys, "f").copyBMFolder(from, to);
|
|
75989
75941
|
return false;
|
|
75990
75942
|
}, _Variable_erasebookmark = function _Variable_erasebookmark(hArg) {
|
|
75991
|
-
const place = hArg
|
|
75943
|
+
const { place } = hArg;
|
|
75992
75944
|
if (!place)
|
|
75993
75945
|
throw 'placeは必須です';
|
|
75994
75946
|
delete __classPrivateFieldGet(this, _Variable_data, "f").mark[place];
|
|
@@ -76032,7 +75984,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76032
75984
|
__classPrivateFieldGet(this, _Variable_instances, "m", _Variable_let).call(this, hArg);
|
|
76033
75985
|
return false;
|
|
76034
75986
|
}, _Variable_let_index_of = function _Variable_let_index_of(hArg) {
|
|
76035
|
-
const val = hArg
|
|
75987
|
+
const { val } = hArg;
|
|
76036
75988
|
if (!val)
|
|
76037
75989
|
throw 'valは必須です';
|
|
76038
75990
|
const start = (0, CmnLib_1.argChk_Num)(hArg, 'start', 0);
|
|
@@ -76046,7 +75998,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76046
75998
|
}, _Variable_let_replace = function _Variable_let_replace(hArg) {
|
|
76047
75999
|
if (!hArg.reg)
|
|
76048
76000
|
throw 'regは必須です';
|
|
76049
|
-
const flags = hArg
|
|
76001
|
+
const { flags } = hArg;
|
|
76050
76002
|
const reg = (!flags)
|
|
76051
76003
|
? new RegExp(hArg.reg)
|
|
76052
76004
|
: new RegExp(hArg.reg, flags);
|
|
@@ -76061,7 +76013,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76061
76013
|
}, _Variable_let_search = function _Variable_let_search(hArg) {
|
|
76062
76014
|
if (!hArg.reg)
|
|
76063
76015
|
throw 'regは必須です';
|
|
76064
|
-
const flags = hArg
|
|
76016
|
+
const { flags } = hArg;
|
|
76065
76017
|
const reg = (!flags)
|
|
76066
76018
|
? new RegExp(hArg.reg)
|
|
76067
76019
|
: new RegExp(hArg.reg, flags);
|
|
@@ -79175,7 +79127,7 @@ exports.ERROR_PACKET = ERROR_PACKET;
|
|
|
79175
79127
|
|
|
79176
79128
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
79177
79129
|
const commons_js_1 = __webpack_require__(/*! ./commons.js */ "./node_modules/engine.io-parser/build/cjs/commons.js");
|
|
79178
|
-
const base64_arraybuffer_1 = __webpack_require__(/*! base64-arraybuffer */ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
|
|
79130
|
+
const base64_arraybuffer_1 = __webpack_require__(/*! @socket.io/base64-arraybuffer */ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
|
|
79179
79131
|
const withNativeArrayBuffer = typeof ArrayBuffer === "function";
|
|
79180
79132
|
const decodePacket = (encodedPacket, binaryType) => {
|
|
79181
79133
|
if (typeof encodedPacket !== "string") {
|