@famibee/skynovel 1.27.1 → 1.27.5
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 +45 -0
- package/app.js +260 -282
- package/appMain.js +21 -6
- package/core/lib/preload.d.ts +1 -0
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +7 -0
- package/core/lib/sn/CmnLib.d.ts +5 -4
- package/core/lib/sn/CmnLib.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/LayerMng.d.ts.map +1 -1
- package/core/lib/sn/ScriptIterator.d.ts.map +1 -1
- package/core/lib/sn/SoundMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts +2 -2
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/SysBase.d.ts.map +1 -1
- package/core/lib/sn/SysWeb.d.ts.map +1 -1
- package/package.json +6 -6
- package/web.js +259 -276
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":
|
|
@@ -66379,9 +66379,17 @@ class CmnLib {
|
|
|
66379
66379
|
if (cvs.parentElement) {
|
|
66380
66380
|
const ps = cvs.parentElement.style;
|
|
66381
66381
|
ps.position = 'relative';
|
|
66382
|
+
ps.width = `${CmnLib.cvsWidth}px`;
|
|
66383
|
+
ps.height = `${CmnLib.cvsHeight}px`;
|
|
66382
66384
|
const s = cvs.style;
|
|
66383
|
-
|
|
66384
|
-
|
|
66385
|
+
if (CmnLib.isFullScr) {
|
|
66386
|
+
s.width = '';
|
|
66387
|
+
s.height = '';
|
|
66388
|
+
}
|
|
66389
|
+
else {
|
|
66390
|
+
s.width = ps.width;
|
|
66391
|
+
s.height = ps.height;
|
|
66392
|
+
}
|
|
66385
66393
|
}
|
|
66386
66394
|
return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
|
|
66387
66395
|
}
|
|
@@ -66406,6 +66414,7 @@ CmnLib.isRetina = false;
|
|
|
66406
66414
|
CmnLib.isDarkMode = false;
|
|
66407
66415
|
CmnLib.retinaRate = 1;
|
|
66408
66416
|
CmnLib.SN_ID = 'skynovel';
|
|
66417
|
+
CmnLib.isFullScr = false;
|
|
66409
66418
|
|
|
66410
66419
|
|
|
66411
66420
|
/***/ }),
|
|
@@ -67715,9 +67724,8 @@ class EventMng {
|
|
|
67715
67724
|
catch { }
|
|
67716
67725
|
const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
|
|
67717
67726
|
if (ctx) {
|
|
67718
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
67719
67727
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
|
|
67720
|
-
|
|
67728
|
+
appPixi.view.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
67721
67729
|
const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
|
|
67722
67730
|
s.position = 'absolute';
|
|
67723
67731
|
s.left = s.top = '0';
|
|
@@ -68275,7 +68283,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68275
68283
|
}, "f");
|
|
68276
68284
|
return false;
|
|
68277
68285
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
68278
|
-
const add = hArg
|
|
68286
|
+
const { add, del, to } = hArg;
|
|
68279
68287
|
if (add?.slice(0, 4) === 'dom=') {
|
|
68280
68288
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
|
|
68281
68289
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -68288,7 +68296,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68288
68296
|
}, () => { }));
|
|
68289
68297
|
return false;
|
|
68290
68298
|
}
|
|
68291
|
-
const del = hArg.del;
|
|
68292
68299
|
if (del?.slice(0, 4) === 'dom=') {
|
|
68293
68300
|
const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
|
|
68294
68301
|
if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
|
|
@@ -68296,7 +68303,6 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68296
68303
|
g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
|
|
68297
68304
|
return false;
|
|
68298
68305
|
}
|
|
68299
|
-
const to = hArg.to;
|
|
68300
68306
|
if (!to)
|
|
68301
68307
|
throw '[set_focus] add か to は必須です';
|
|
68302
68308
|
switch (to) {
|
|
@@ -68608,12 +68614,13 @@ class FrameMng {
|
|
|
68608
68614
|
getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
|
|
68609
68615
|
cvsResize() {
|
|
68610
68616
|
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68611
|
-
for (const
|
|
68612
|
-
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[
|
|
68613
|
-
const
|
|
68614
|
-
const
|
|
68615
|
-
const
|
|
68616
|
-
const
|
|
68617
|
+
for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
|
|
68618
|
+
const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
|
|
68619
|
+
const vn = 'const.sn.frm.' + id;
|
|
68620
|
+
const x = Number(this.val.getVal(vn + '.x'));
|
|
68621
|
+
const y = Number(this.val.getVal(vn + '.y'));
|
|
68622
|
+
const w = Number(this.val.getVal(vn + '.width'));
|
|
68623
|
+
const h = Number(this.val.getVal(vn + '.height'));
|
|
68617
68624
|
f.style.left = this.sys.ofsLeft4frm + x * scale + 'px';
|
|
68618
68625
|
f.style.top = this.sys.ofsTop4frm + y * scale + 'px';
|
|
68619
68626
|
f.width = String(w * scale);
|
|
@@ -68623,14 +68630,13 @@ class FrameMng {
|
|
|
68623
68630
|
}
|
|
68624
68631
|
exports.FrameMng = FrameMng;
|
|
68625
68632
|
_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
|
|
68633
|
+
const { id, src } = hArg;
|
|
68627
68634
|
if (!id)
|
|
68628
68635
|
throw 'idは必須です';
|
|
68629
|
-
const src = hArg.src;
|
|
68630
68636
|
if (!src)
|
|
68631
68637
|
throw 'srcは必須です';
|
|
68632
|
-
const
|
|
68633
|
-
if (this.val.getVal(`tmp:${
|
|
68638
|
+
const vn = 'const.sn.frm.' + id;
|
|
68639
|
+
if (this.val.getVal(`tmp:${vn}`))
|
|
68634
68640
|
throw `frame【${id}】はすでにあります`;
|
|
68635
68641
|
const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
|
|
68636
68642
|
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
@@ -68664,16 +68670,16 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68664
68670
|
? this.sys.cur + p2.slice(4)
|
|
68665
68671
|
: v.replace(p1, p1 + url.slice(0, url.lastIndexOf('/') + 1)));
|
|
68666
68672
|
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',
|
|
68673
|
+
this.val.setVal_Nochk('tmp', vn, true);
|
|
68674
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68675
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68676
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68677
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
68678
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
68679
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68680
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68681
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68682
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
68677
68683
|
const win = ifrm.contentWindow;
|
|
68678
68684
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
68679
68685
|
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
@@ -68686,131 +68692,126 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68686
68692
|
const re = this.sys.resolution;
|
|
68687
68693
|
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
68694
|
}, _FrameMng_let_frame = function _FrameMng_let_frame(hArg) {
|
|
68689
|
-
const id = hArg
|
|
68695
|
+
const { id, var_name } = hArg;
|
|
68690
68696
|
if (!id)
|
|
68691
68697
|
throw 'idは必須です';
|
|
68692
|
-
const
|
|
68693
|
-
if (!
|
|
68698
|
+
const f = document.getElementById(id);
|
|
68699
|
+
if (!f)
|
|
68694
68700
|
throw `id【${id}】はフレームではありません`;
|
|
68695
|
-
const
|
|
68696
|
-
if (!this.val.getVal(`tmp:${
|
|
68701
|
+
const vn = 'const.sn.frm.' + id;
|
|
68702
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
68697
68703
|
throw `frame【${id}】が読み込まれていません`;
|
|
68698
|
-
const var_name = hArg.var_name;
|
|
68699
68704
|
if (!var_name)
|
|
68700
68705
|
throw 'var_nameは必須です';
|
|
68701
|
-
const win =
|
|
68706
|
+
const win = f.contentWindow;
|
|
68702
68707
|
if (!win.hasOwnProperty(var_name))
|
|
68703
68708
|
throw `frame【${id}】に変数/関数【${var_name}】がありません。変数は var付きにして下さい`;
|
|
68704
68709
|
const v = win[var_name];
|
|
68705
|
-
this.val.setVal_Nochk('tmp',
|
|
68710
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, (0, CmnLib_1.argChk_Boolean)(hArg, 'function', false) ? v() : v);
|
|
68706
68711
|
return false;
|
|
68707
68712
|
}, _FrameMng_set_frame = function _FrameMng_set_frame(hArg) {
|
|
68708
|
-
const id = hArg
|
|
68713
|
+
const { id, var_name, text } = hArg;
|
|
68709
68714
|
if (!id)
|
|
68710
68715
|
throw 'idは必須です';
|
|
68711
|
-
const
|
|
68712
|
-
if (!
|
|
68716
|
+
const f = document.getElementById(id);
|
|
68717
|
+
if (!f)
|
|
68713
68718
|
throw `id【${id}】はフレームではありません`;
|
|
68714
|
-
const
|
|
68715
|
-
if (!this.val.getVal(`tmp:${
|
|
68719
|
+
const vn = 'const.sn.frm.' + id;
|
|
68720
|
+
if (!this.val.getVal(`tmp:${vn}`))
|
|
68716
68721
|
throw `frame【${id}】が読み込まれていません`;
|
|
68717
|
-
const var_name = hArg.var_name;
|
|
68718
68722
|
if (!var_name)
|
|
68719
68723
|
throw 'var_nameは必須です';
|
|
68720
|
-
const text = hArg.text;
|
|
68721
68724
|
if (!text)
|
|
68722
68725
|
throw 'textは必須です';
|
|
68723
|
-
this.val.setVal_Nochk('tmp',
|
|
68724
|
-
const win =
|
|
68726
|
+
this.val.setVal_Nochk('tmp', vn + '.' + var_name, text);
|
|
68727
|
+
const win = f.contentWindow;
|
|
68725
68728
|
win[var_name] = text;
|
|
68726
68729
|
return false;
|
|
68727
68730
|
}, _FrameMng_frame = function _FrameMng_frame(hArg) {
|
|
68728
68731
|
var _a, _b;
|
|
68729
|
-
const id = hArg
|
|
68732
|
+
const { id } = hArg;
|
|
68730
68733
|
if (!id)
|
|
68731
68734
|
throw 'idは必須です';
|
|
68732
|
-
const
|
|
68733
|
-
if (!
|
|
68735
|
+
const f = document.getElementById(id);
|
|
68736
|
+
if (!f)
|
|
68734
68737
|
throw `id【${id}】はフレームではありません`;
|
|
68735
|
-
const
|
|
68736
|
-
if (!this.val.getVal(
|
|
68738
|
+
const vn = 'const.sn.frm.' + id;
|
|
68739
|
+
if (!this.val.getVal('tmp:' + vn))
|
|
68737
68740
|
throw `frame【${id}】が読み込まれていません`;
|
|
68738
|
-
|
|
68739
|
-
|
|
68740
|
-
|
|
68741
|
-
else if (hArg.index)
|
|
68742
|
-
|
|
68743
|
-
}
|
|
68741
|
+
const s = f.style;
|
|
68742
|
+
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
|
|
68743
|
+
s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
|
|
68744
|
+
else if (hArg.index)
|
|
68745
|
+
s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
|
|
68744
68746
|
else if (hArg.dive)
|
|
68745
|
-
|
|
68747
|
+
s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
|
|
68746
68748
|
if ('alpha' in hArg) {
|
|
68747
|
-
const a = String(hArg.alpha);
|
|
68748
|
-
|
|
68749
|
-
this.val.setVal_Nochk('tmp', frmnm + '.alpha', a);
|
|
68749
|
+
const a = s.opacity = String(hArg.alpha);
|
|
68750
|
+
this.val.setVal_Nochk('tmp', vn + '.alpha', a);
|
|
68750
68751
|
}
|
|
68751
68752
|
const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
|
|
68752
68753
|
const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
|
|
68753
68754
|
if ('x' in hArg || 'y' in hArg) {
|
|
68754
|
-
|
|
68755
|
-
|
|
68756
|
-
this.val.setVal_Nochk('tmp',
|
|
68757
|
-
this.val.setVal_Nochk('tmp',
|
|
68755
|
+
s.left = `${this.sys.ofsLeft4frm + rct.x * scale}px`;
|
|
68756
|
+
s.top = `${this.sys.ofsTop4frm + rct.y * scale}px`;
|
|
68757
|
+
this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
|
|
68758
|
+
this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
|
|
68758
68759
|
}
|
|
68759
68760
|
if ('scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
|
|
68760
68761
|
const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
|
|
68761
68762
|
const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
|
|
68762
68763
|
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',
|
|
68764
|
+
s.transform = `scale(${sx}, ${sy}) rotate(${r}deg)`;
|
|
68765
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', sx);
|
|
68766
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', sy);
|
|
68767
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', r);
|
|
68767
68768
|
}
|
|
68768
68769
|
if ('width' in hArg) {
|
|
68769
|
-
|
|
68770
|
-
this.val.setVal_Nochk('tmp',
|
|
68770
|
+
f.width = String(rct.width * scale);
|
|
68771
|
+
this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
|
|
68771
68772
|
}
|
|
68772
68773
|
if ('height' in hArg) {
|
|
68773
|
-
|
|
68774
|
-
this.val.setVal_Nochk('tmp',
|
|
68774
|
+
f.height = String(rct.height * scale);
|
|
68775
|
+
this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
|
|
68775
68776
|
}
|
|
68776
68777
|
if ('visible' in hArg) {
|
|
68777
68778
|
const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
|
|
68778
|
-
|
|
68779
|
-
this.val.setVal_Nochk('tmp',
|
|
68779
|
+
s.display = v ? 'inline' : 'none';
|
|
68780
|
+
this.val.setVal_Nochk('tmp', vn + '.visible', v);
|
|
68780
68781
|
}
|
|
68781
68782
|
if ('b_color' in hArg)
|
|
68782
|
-
|
|
68783
|
+
s.backgroundColor = hArg.b_color;
|
|
68783
68784
|
if ('disabled' in hArg) {
|
|
68784
68785
|
const d = __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id] = (0, CmnLib_1.argChk_Boolean)(hArg, 'disabled', true);
|
|
68785
|
-
const il =
|
|
68786
|
+
const il = f.contentDocument.body.querySelectorAll('input,select');
|
|
68786
68787
|
il.forEach(v => v.disabled = d);
|
|
68787
68788
|
}
|
|
68788
68789
|
return false;
|
|
68789
68790
|
}, _FrameMng_tsy_frame = function _FrameMng_tsy_frame(hArg) {
|
|
68790
|
-
const id = hArg
|
|
68791
|
+
const { id } = hArg;
|
|
68791
68792
|
if (!id)
|
|
68792
68793
|
throw 'idは必須です';
|
|
68793
|
-
const
|
|
68794
|
-
if (!
|
|
68794
|
+
const f = document.getElementById(id);
|
|
68795
|
+
if (!f)
|
|
68795
68796
|
throw `id【${id}】はフレームではありません`;
|
|
68796
|
-
const
|
|
68797
|
-
if (!this.val.getVal(`tmp:${
|
|
68797
|
+
const vn = `const.sn.frm.` + id;
|
|
68798
|
+
if (!this.val.getVal(`tmp:${vn}`, 0))
|
|
68798
68799
|
throw `frame【${id}】が読み込まれていません`;
|
|
68799
68800
|
const hNow = {};
|
|
68800
68801
|
if ('alpha' in hArg)
|
|
68801
|
-
hNow.a =
|
|
68802
|
+
hNow.a = f.style.opacity;
|
|
68802
68803
|
if ('x' in hArg || 'y' in hArg
|
|
68803
68804
|
|| '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:${
|
|
68805
|
+
hNow.x = Number(this.val.getVal(`tmp:${vn}.x`));
|
|
68806
|
+
hNow.y = Number(this.val.getVal(`tmp:${vn}.y`));
|
|
68807
|
+
hNow.sx = Number(this.val.getVal(`tmp:${vn}.scale_x`));
|
|
68808
|
+
hNow.sy = Number(this.val.getVal(`tmp:${vn}.scale_y`));
|
|
68809
|
+
hNow.r = Number(this.val.getVal(`tmp:${vn}.rotate`));
|
|
68809
68810
|
}
|
|
68810
68811
|
if ('width' in hArg)
|
|
68811
|
-
hNow.w = this.val.getVal(`tmp:${
|
|
68812
|
+
hNow.w = this.val.getVal(`tmp:${vn}.width`);
|
|
68812
68813
|
if ('height' in hArg)
|
|
68813
|
-
hNow.h = this.val.getVal(`tmp:${
|
|
68814
|
+
hNow.h = this.val.getVal(`tmp:${vn}.height`);
|
|
68814
68815
|
const hArg2 = (0, CmnLib_1.cnvTweenArg)(hArg, hNow);
|
|
68815
68816
|
const hTo = {};
|
|
68816
68817
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
@@ -68818,7 +68819,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68818
68819
|
if ('alpha' in hArg) {
|
|
68819
68820
|
hTo.a = (0, CmnLib_1.argChk_Num)(hArg2, 'alpha', 0);
|
|
68820
68821
|
fncA = () => {
|
|
68821
|
-
|
|
68822
|
+
f.style.opacity = hNow.a;
|
|
68822
68823
|
this.val.setVal_Nochk('tmp', 'alpha', hNow.a);
|
|
68823
68824
|
};
|
|
68824
68825
|
}
|
|
@@ -68833,30 +68834,30 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68833
68834
|
hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
|
|
68834
68835
|
hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
|
|
68835
68836
|
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',
|
|
68837
|
+
f.style.left = this.sys.ofsLeft4frm + hNow.x * scale + 'px';
|
|
68838
|
+
f.style.top = this.sys.ofsTop4frm + hNow.y * scale + 'px';
|
|
68839
|
+
f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
|
|
68840
|
+
this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
|
|
68841
|
+
this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
|
|
68842
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_x', hNow.sx);
|
|
68843
|
+
this.val.setVal_Nochk('tmp', vn + '.scale_y', hNow.sy);
|
|
68844
|
+
this.val.setVal_Nochk('tmp', vn + '.rotate', hNow.r);
|
|
68844
68845
|
};
|
|
68845
68846
|
}
|
|
68846
68847
|
let fncW = () => { };
|
|
68847
68848
|
if ('width' in hArg) {
|
|
68848
68849
|
hTo.w = rct.width;
|
|
68849
68850
|
fncW = () => {
|
|
68850
|
-
|
|
68851
|
-
this.val.setVal_Nochk('tmp',
|
|
68851
|
+
f.width = hNow.w * scale + 'px';
|
|
68852
|
+
this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
|
|
68852
68853
|
};
|
|
68853
68854
|
}
|
|
68854
68855
|
let fncH = () => { };
|
|
68855
68856
|
if ('height' in hArg) {
|
|
68856
68857
|
hTo.h = rct.height;
|
|
68857
68858
|
fncH = () => {
|
|
68858
|
-
|
|
68859
|
-
this.val.setVal_Nochk('tmp',
|
|
68859
|
+
f.height = hNow.h * scale + 'px';
|
|
68860
|
+
this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
|
|
68860
68861
|
};
|
|
68861
68862
|
}
|
|
68862
68863
|
this.appPixi.stage.interactive = false;
|
|
@@ -69013,10 +69014,9 @@ class Grammar {
|
|
|
69013
69014
|
this.REG_TOKEN_NOTXT = new RegExp(`[\\n\\t;\\[*&${ce ? `\\${ce}` : ''}]`);
|
|
69014
69015
|
}
|
|
69015
69016
|
bracket2macro(hArg, script, idxToken) {
|
|
69016
|
-
const name = hArg
|
|
69017
|
+
const { name, text } = hArg;
|
|
69017
69018
|
if (!name)
|
|
69018
69019
|
throw '[bracket2macro] nameは必須です';
|
|
69019
|
-
const text = hArg.text;
|
|
69020
69020
|
if (!text)
|
|
69021
69021
|
throw '[bracket2macro] textは必須です';
|
|
69022
69022
|
if (text.length !== 2)
|
|
@@ -69040,7 +69040,7 @@ class Grammar {
|
|
|
69040
69040
|
this.replaceScr_C2M_And_let_ml(script, idxToken);
|
|
69041
69041
|
}
|
|
69042
69042
|
char2macro(hArg, hTag, script, idxToken) {
|
|
69043
|
-
const char = hArg
|
|
69043
|
+
const { char, name } = hArg;
|
|
69044
69044
|
if (!char)
|
|
69045
69045
|
throw '[char2macro] charは必須です';
|
|
69046
69046
|
__classPrivateFieldSet(this, _Grammar_hC2M, __classPrivateFieldGet(this, _Grammar_hC2M, "f") ?? {}, "f");
|
|
@@ -69049,7 +69049,6 @@ class Grammar {
|
|
|
69049
69049
|
__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").lastIndex = 0;
|
|
69050
69050
|
if (__classPrivateFieldGet(this, _Grammar_REG_CANTC2M, "f").test(char))
|
|
69051
69051
|
throw '[char2macro] char【' + char + '】は一文字マクロに使用できない文字です';
|
|
69052
|
-
const name = hArg.name;
|
|
69053
69052
|
if (!name)
|
|
69054
69053
|
throw '[char2macro] nameは必須です';
|
|
69055
69054
|
if (!(name in hTag))
|
|
@@ -69151,8 +69150,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69151
69150
|
}
|
|
69152
69151
|
setSp(_sp) { }
|
|
69153
69152
|
laySub(hArg, resolve) {
|
|
69154
|
-
const fn = hArg
|
|
69155
|
-
const face = hArg.face ?? '';
|
|
69153
|
+
const { fn, face = '' } = hArg;
|
|
69156
69154
|
__classPrivateFieldGet(this, _GrpLayer_idc, "f").sethArg(hArg);
|
|
69157
69155
|
if (!fn) {
|
|
69158
69156
|
super.lay(hArg);
|
|
@@ -69263,7 +69261,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69263
69261
|
return needLoad;
|
|
69264
69262
|
}
|
|
69265
69263
|
static wv(hArg) {
|
|
69266
|
-
const fn = hArg
|
|
69264
|
+
const { fn } = hArg;
|
|
69267
69265
|
if (!fn)
|
|
69268
69266
|
throw 'fnは必須です';
|
|
69269
69267
|
const hve = GrpLayer.hFn2VElm[fn];
|
|
@@ -69362,12 +69360,12 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
69362
69360
|
Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
|
|
69363
69361
|
}
|
|
69364
69362
|
static add_face(hArg) {
|
|
69365
|
-
const name = hArg
|
|
69363
|
+
const { name } = hArg;
|
|
69366
69364
|
if (!name)
|
|
69367
69365
|
throw 'nameは必須です';
|
|
69368
69366
|
if (name in __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace))
|
|
69369
69367
|
throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
|
|
69370
|
-
const fn =
|
|
69368
|
+
const { fn = name } = hArg;
|
|
69371
69369
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
69372
69370
|
fn,
|
|
69373
69371
|
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0) * CmnLib_1.CmnLib.retinaRate,
|
|
@@ -69578,10 +69576,10 @@ class Layer {
|
|
|
69578
69576
|
return false;
|
|
69579
69577
|
}
|
|
69580
69578
|
static setBlendmode(cnt, hArg) {
|
|
69581
|
-
const
|
|
69582
|
-
if (!
|
|
69579
|
+
const { blendmode } = hArg;
|
|
69580
|
+
if (!blendmode)
|
|
69583
69581
|
return;
|
|
69584
|
-
const bmn = Layer.getBlendmodeNum(
|
|
69582
|
+
const bmn = Layer.getBlendmodeNum(blendmode);
|
|
69585
69583
|
const sp = cnt;
|
|
69586
69584
|
if (sp)
|
|
69587
69585
|
sp.blendMode = bmn;
|
|
@@ -69926,9 +69924,8 @@ void main(void) {
|
|
|
69926
69924
|
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
69927
69925
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
69928
69926
|
_LayerMng_aTxtLog.set(this, []);
|
|
69929
|
-
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
69930
69927
|
const fncResizeLay = () => {
|
|
69931
|
-
if (!CmnLib_1.CmnLib.cvsResize(
|
|
69928
|
+
if (!CmnLib_1.CmnLib.cvsResize(appPixi.view))
|
|
69932
69929
|
return;
|
|
69933
69930
|
this.cvsResizeDesign();
|
|
69934
69931
|
if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
|
|
@@ -69949,7 +69946,7 @@ void main(void) {
|
|
|
69949
69946
|
tid = setTimeout(() => { tid = 0; fncResizeLay(); }, 500);
|
|
69950
69947
|
}, { passive: true });
|
|
69951
69948
|
}
|
|
69952
|
-
CmnLib_1.CmnLib.cvsResize(
|
|
69949
|
+
CmnLib_1.CmnLib.cvsResize(appPixi.view);
|
|
69953
69950
|
TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
|
|
69954
69951
|
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
69955
69952
|
Button_1.Button.init(cfg);
|
|
@@ -70216,7 +70213,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70216
70213
|
}));
|
|
70217
70214
|
else
|
|
70218
70215
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
|
|
70219
|
-
Promise.
|
|
70216
|
+
Promise.allSettled(a).then(async () => {
|
|
70220
70217
|
const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
|
|
70221
70218
|
rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
|
|
70222
70219
|
await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
|
|
@@ -70227,7 +70224,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70227
70224
|
});
|
|
70228
70225
|
return false;
|
|
70229
70226
|
}, _LayerMng_loadplugin = function _LayerMng_loadplugin(hArg) {
|
|
70230
|
-
const fn = hArg
|
|
70227
|
+
const { fn } = hArg;
|
|
70231
70228
|
if (!fn)
|
|
70232
70229
|
throw 'fnは必須です';
|
|
70233
70230
|
const join = (0, CmnLib_1.argChk_Boolean)(hArg, 'join', true);
|
|
@@ -70246,14 +70243,13 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70246
70243
|
}
|
|
70247
70244
|
return join;
|
|
70248
70245
|
}, _LayerMng_add_lay = function _LayerMng_add_lay(hArg) {
|
|
70249
|
-
const layer = hArg
|
|
70246
|
+
const { layer, class: cls } = hArg;
|
|
70250
70247
|
if (!layer)
|
|
70251
70248
|
throw 'layerは必須です';
|
|
70252
70249
|
if (layer.includes(','))
|
|
70253
70250
|
throw 'layer名に「,」は使えません';
|
|
70254
70251
|
if (layer in __classPrivateFieldGet(this, _LayerMng_hPages, "f"))
|
|
70255
70252
|
throw `layer【${layer}】はすでにあります`;
|
|
70256
|
-
const cls = hArg.class;
|
|
70257
70253
|
if (!cls)
|
|
70258
70254
|
throw 'clsは必須です';
|
|
70259
70255
|
const ret = { isWait: false };
|
|
@@ -70309,7 +70305,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70309
70305
|
}
|
|
70310
70306
|
}
|
|
70311
70307
|
else if (hArg.dive) {
|
|
70312
|
-
const dive = hArg
|
|
70308
|
+
const { dive } = hArg;
|
|
70313
70309
|
let idx_dive = 0;
|
|
70314
70310
|
if (layer === dive)
|
|
70315
70311
|
throw '[lay] 属性 layerとdiveが同じ【' + dive + '】です';
|
|
@@ -70621,8 +70617,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70621
70617
|
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm]?.tw?.resume();
|
|
70622
70618
|
return false;
|
|
70623
70619
|
}, _LayerMng_ch = function _LayerMng_ch(hArg) {
|
|
70624
|
-
const
|
|
70625
|
-
if (!
|
|
70620
|
+
const { text } = hArg;
|
|
70621
|
+
if (!text)
|
|
70626
70622
|
throw 'textは必須です';
|
|
70627
70623
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
70628
70624
|
delete hArg.text;
|
|
@@ -70630,15 +70626,13 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70630
70626
|
hArg.wait = 0;
|
|
70631
70627
|
else if ('wait' in hArg)
|
|
70632
70628
|
(0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
|
|
70633
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
|
|
70634
70629
|
const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
|
|
70635
70630
|
const doRecLog = this.val.doRecLog();
|
|
70636
70631
|
if (!record)
|
|
70637
70632
|
this.val.setVal_Nochk('save', 'sn.doRecLog', record);
|
|
70638
|
-
tl.tagCh(
|
|
70633
|
+
tl.tagCh(text.replaceAll('[r]', '\n'));
|
|
70639
70634
|
if (!record)
|
|
70640
70635
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
70641
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
|
|
70642
70636
|
return false;
|
|
70643
70637
|
}, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
|
|
70644
70638
|
const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
|
|
@@ -70649,7 +70643,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70649
70643
|
const tf = lay;
|
|
70650
70644
|
return tf;
|
|
70651
70645
|
}, _LayerMng_$current = function _LayerMng_$current(hArg) {
|
|
70652
|
-
const layer = hArg
|
|
70646
|
+
const { layer } = hArg;
|
|
70653
70647
|
if (!layer)
|
|
70654
70648
|
throw '[current] layerは必須です';
|
|
70655
70649
|
__classPrivateFieldSet(this, _LayerMng_pgTxtlay, __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer], "f");
|
|
@@ -70708,10 +70702,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70708
70702
|
this.val.setVal_Nochk('save', 'const.sn.sLog', (hArg.text) ? `[{text:"${hArg.text}"}]` : '[]');
|
|
70709
70703
|
return false;
|
|
70710
70704
|
}, _LayerMng_ruby2 = function _LayerMng_ruby2(hArg) {
|
|
70711
|
-
const t = hArg
|
|
70705
|
+
const { t, r } = hArg;
|
|
70712
70706
|
if (!t)
|
|
70713
70707
|
throw '[ruby2] tは必須です';
|
|
70714
|
-
const r = hArg.r;
|
|
70715
70708
|
if (!r)
|
|
70716
70709
|
throw '[ruby2] rは必須です';
|
|
70717
70710
|
hArg.text = '|' + t + '《' + r + '》';
|
|
@@ -70722,7 +70715,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70722
70715
|
}, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
|
|
70723
70716
|
if (!hArg.t)
|
|
70724
70717
|
throw '[tcy] tは必須です';
|
|
70725
|
-
hArg.text = '|
|
|
70718
|
+
hArg.text = '| 《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
|
|
70726
70719
|
return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
|
|
70727
70720
|
}, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
|
|
70728
70721
|
console.group('🥟 [dump_lay]');
|
|
@@ -70921,7 +70914,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
70921
70914
|
}
|
|
70922
70915
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
70923
70916
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
70924
|
-
await Promise.
|
|
70917
|
+
await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
|
|
70925
70918
|
__classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
|
|
70926
70919
|
__classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
|
|
70927
70920
|
__classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
|
|
@@ -72062,7 +72055,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72062
72055
|
return a;
|
|
72063
72056
|
}, _ScriptIterator_let_ml = function _ScriptIterator_let_ml(hArg) {
|
|
72064
72057
|
var _b;
|
|
72065
|
-
const name = hArg
|
|
72058
|
+
const { name } = hArg;
|
|
72066
72059
|
if (!name)
|
|
72067
72060
|
throw 'nameは必須です';
|
|
72068
72061
|
let ml = '';
|
|
@@ -72120,7 +72113,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72120
72113
|
}
|
|
72121
72114
|
return ret;
|
|
72122
72115
|
}, _ScriptIterator_dump_script = function _ScriptIterator_dump_script(hArg) {
|
|
72123
|
-
const set_fnc = hArg
|
|
72116
|
+
const { set_fnc, break_fnc } = hArg;
|
|
72124
72117
|
if (!set_fnc)
|
|
72125
72118
|
throw 'set_fncは必須です';
|
|
72126
72119
|
__classPrivateFieldSet(this, _ScriptIterator_fncSet, globalThis[set_fnc], "f");
|
|
@@ -72140,7 +72133,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72140
72133
|
__classPrivateFieldGet(this, _ScriptIterator_fncBreak, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"), goto);
|
|
72141
72134
|
};
|
|
72142
72135
|
this.noticeBreak(true);
|
|
72143
|
-
const break_fnc = hArg.break_fnc;
|
|
72144
72136
|
if (!break_fnc)
|
|
72145
72137
|
return false;
|
|
72146
72138
|
__classPrivateFieldSet(this, _ScriptIterator_fncBreak, globalThis[break_fnc], "f");
|
|
@@ -72158,7 +72150,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72158
72150
|
return false;
|
|
72159
72151
|
}, _ScriptIterator_if = function _ScriptIterator_if(hArg) {
|
|
72160
72152
|
var _b, _c;
|
|
72161
|
-
const exp = hArg
|
|
72153
|
+
const { exp } = hArg;
|
|
72162
72154
|
if (!exp)
|
|
72163
72155
|
throw 'expは必須です';
|
|
72164
72156
|
if (exp.charAt(0) === '&')
|
|
@@ -72227,7 +72219,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72227
72219
|
}, _ScriptIterator_call = function _ScriptIterator_call(hArg) {
|
|
72228
72220
|
if (!(0, CmnLib_1.argChk_Boolean)(hArg, 'count', false))
|
|
72229
72221
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_eraseKidoku).call(this);
|
|
72230
|
-
const fn = hArg
|
|
72222
|
+
const { fn } = hArg;
|
|
72231
72223
|
if (fn)
|
|
72232
72224
|
__classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
|
|
72233
72225
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
|
|
@@ -72258,7 +72250,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72258
72250
|
__classPrivateFieldSet(this, _ScriptIterator_posAPageLog, -1, "f");
|
|
72259
72251
|
return false;
|
|
72260
72252
|
}
|
|
72261
|
-
const to = hArg
|
|
72253
|
+
const { to } = hArg;
|
|
72262
72254
|
if (!to)
|
|
72263
72255
|
throw 'clearかtoは必須です';
|
|
72264
72256
|
const oldPos = __classPrivateFieldGet(this, _ScriptIterator_posAPageLog, "f");
|
|
@@ -72534,7 +72526,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72534
72526
|
return false;
|
|
72535
72527
|
}, _ScriptIterator_macro = function _ScriptIterator_macro(hArg) {
|
|
72536
72528
|
var _b, _c;
|
|
72537
|
-
const name = hArg
|
|
72529
|
+
const { name } = hArg;
|
|
72538
72530
|
if (!name)
|
|
72539
72531
|
throw 'nameは必須です';
|
|
72540
72532
|
if (name in this.hTag)
|
|
@@ -72784,7 +72776,7 @@ class SoundMng {
|
|
|
72784
72776
|
}
|
|
72785
72777
|
exports.SoundMng = SoundMng;
|
|
72786
72778
|
_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) {
|
|
72787
|
-
const buf =
|
|
72779
|
+
const { buf = 'SE' } = hArg;
|
|
72788
72780
|
const bvn = 'const.sn.sound.' + buf + '.volume';
|
|
72789
72781
|
const arg_vol = __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_getVol).call(this, hArg, 1);
|
|
72790
72782
|
if (Number(this.val.getVal('sys:' + bvn)) === arg_vol)
|
|
@@ -72803,7 +72795,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72803
72795
|
return vol;
|
|
72804
72796
|
}, _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) {
|
|
72805
72797
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
72806
|
-
const buf =
|
|
72798
|
+
const { buf = 'SE' } = hArg;
|
|
72807
72799
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
72808
72800
|
if (!oSb?.playing() || !oSb.snd)
|
|
72809
72801
|
return false;
|
|
@@ -72854,9 +72846,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72854
72846
|
(0, CmnLib_1.argChk_Boolean)(hArg, 'loop', true);
|
|
72855
72847
|
return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playse).call(this, hArg);
|
|
72856
72848
|
}, _SoundMng_playse = function _SoundMng_playse(hArg) {
|
|
72857
|
-
const buf =
|
|
72849
|
+
const { buf = 'SE', fn } = hArg;
|
|
72858
72850
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
72859
|
-
const fn = hArg.fn;
|
|
72860
72851
|
if (!fn)
|
|
72861
72852
|
throw `[playse] fnは必須です buf:${buf}`;
|
|
72862
72853
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
@@ -73054,7 +73045,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73054
73045
|
sound_1.sound.stopAll();
|
|
73055
73046
|
return false;
|
|
73056
73047
|
}, _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) {
|
|
73057
|
-
const buf =
|
|
73048
|
+
const { buf = 'SE' } = hArg;
|
|
73058
73049
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
73059
73050
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73060
73051
|
if (oSb) {
|
|
@@ -73063,17 +73054,17 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73063
73054
|
}
|
|
73064
73055
|
return false;
|
|
73065
73056
|
}, _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) {
|
|
73066
|
-
const buf =
|
|
73057
|
+
const { buf = 'SE' } = hArg;
|
|
73067
73058
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73068
73059
|
if (!oSb?.twFade || !oSb.playing())
|
|
73069
73060
|
return false;
|
|
73070
73061
|
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));
|
|
73071
73062
|
}, _SoundMng_stopfadese = function _SoundMng_stopfadese(hArg) {
|
|
73072
|
-
const buf =
|
|
73063
|
+
const { buf = 'SE' } = hArg;
|
|
73073
73064
|
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.twFade?.stop().end();
|
|
73074
73065
|
return false;
|
|
73075
73066
|
}, _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) {
|
|
73076
|
-
const buf =
|
|
73067
|
+
const { buf = 'SE' } = hArg;
|
|
73077
73068
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73078
73069
|
if (!oSb?.playing() || oSb.loop)
|
|
73079
73070
|
return false;
|
|
@@ -73086,8 +73077,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73086
73077
|
oSb2.onend();
|
|
73087
73078
|
}, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', false), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
73088
73079
|
}, _SoundMng_xchgbuf = function _SoundMng_xchgbuf(hArg) {
|
|
73089
|
-
const buf1 =
|
|
73090
|
-
const buf2 = hArg.buf2 ?? 'SE';
|
|
73080
|
+
const { buf: buf1 = 'SE', buf2 = 'SE' } = hArg;
|
|
73091
73081
|
if (buf1 === buf2)
|
|
73092
73082
|
return false;
|
|
73093
73083
|
const sb1 = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf1];
|
|
@@ -73256,7 +73246,7 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73256
73246
|
return false;
|
|
73257
73247
|
};
|
|
73258
73248
|
this.navigate_to = hArg => {
|
|
73259
|
-
const url = hArg
|
|
73249
|
+
const { url } = hArg;
|
|
73260
73250
|
if (!url)
|
|
73261
73251
|
throw '[navigate_to] urlは必須です';
|
|
73262
73252
|
to_app.navigate_to(url);
|
|
@@ -73281,29 +73271,12 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73281
73271
|
return false;
|
|
73282
73272
|
};
|
|
73283
73273
|
this.tgl_full_scr_sub = async () => {
|
|
73284
|
-
const st = this.appPixi.view.style;
|
|
73285
73274
|
if (await to_app.isSimpleFullScreen()) {
|
|
73286
73275
|
await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73287
|
-
st.width = CmnLib_1.CmnLib.stageW + 'px';
|
|
73288
|
-
st.height = CmnLib_1.CmnLib.stageH + 'px';
|
|
73289
|
-
st.marginLeft = '0px';
|
|
73290
|
-
st.marginTop = '0px';
|
|
73291
73276
|
this.reso4frame = 1;
|
|
73292
73277
|
}
|
|
73293
73278
|
else {
|
|
73294
|
-
const w = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
|
|
73295
|
-
const h = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
|
|
73296
|
-
const ratioWidth = w / CmnLib_1.CmnLib.stageW;
|
|
73297
|
-
const ratioHeight = h / CmnLib_1.CmnLib.stageH;
|
|
73298
|
-
const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
|
|
73299
73279
|
await to_app.setSimpleFullScreen(true, screen.width, screen.height);
|
|
73300
|
-
st.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
|
|
73301
|
-
st.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
|
|
73302
|
-
if (ratioWidth < ratioHeight) {
|
|
73303
|
-
st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
|
|
73304
|
-
}
|
|
73305
|
-
else
|
|
73306
|
-
st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
|
|
73307
73280
|
await to_app.win_setContentSize(screen.width, screen.height);
|
|
73308
73281
|
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73309
73282
|
this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
|
|
@@ -73311,7 +73284,7 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73311
73284
|
this.resizeFrames();
|
|
73312
73285
|
};
|
|
73313
73286
|
this.update_check = hArg => {
|
|
73314
|
-
const url = hArg
|
|
73287
|
+
const { url } = hArg;
|
|
73315
73288
|
if (!url)
|
|
73316
73289
|
throw '[update_check] urlは必須です';
|
|
73317
73290
|
if (url.slice(-1) !== '/')
|
|
@@ -73387,7 +73360,7 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73387
73360
|
const di = await to_app.showMessageBox(mbo);
|
|
73388
73361
|
if (di.response > 0)
|
|
73389
73362
|
return;
|
|
73390
|
-
await Promise.
|
|
73363
|
+
await Promise.allSettled(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
|
|
73391
73364
|
}
|
|
73392
73365
|
}
|
|
73393
73366
|
else {
|
|
@@ -73455,7 +73428,9 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73455
73428
|
});
|
|
73456
73429
|
this.flush = () => to_app.flush(this.data);
|
|
73457
73430
|
(async () => {
|
|
73458
|
-
|
|
73431
|
+
const first = hTmp['const.sn.isFirstBoot']
|
|
73432
|
+
= await to_app.Store_isEmpty();
|
|
73433
|
+
if (first) {
|
|
73459
73434
|
this.data.sys = data.sys;
|
|
73460
73435
|
this.data.mark = data.mark;
|
|
73461
73436
|
this.data.kidoku = data.kidoku;
|
|
@@ -73467,6 +73442,14 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73467
73442
|
this.data.mark = store.mark;
|
|
73468
73443
|
this.data.kidoku = store.kidoku;
|
|
73469
73444
|
}
|
|
73445
|
+
const x = this.data.sys['const.sn.nativeWindow.x'] ?? 0;
|
|
73446
|
+
const y = this.data.sys['const.sn.nativeWindow.y'] ?? 0;
|
|
73447
|
+
to_app.window(first, x, y, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73448
|
+
to_app.on('save_win_pos', (_e, x, y) => {
|
|
73449
|
+
this.val.setVal_Nochk('sys', 'const.sn.nativeWindow.x', x);
|
|
73450
|
+
this.val.setVal_Nochk('sys', 'const.sn.nativeWindow.y', y);
|
|
73451
|
+
this.flush();
|
|
73452
|
+
});
|
|
73470
73453
|
comp(this.data);
|
|
73471
73454
|
})();
|
|
73472
73455
|
}
|
|
@@ -73585,7 +73568,7 @@ class SysBase {
|
|
|
73585
73568
|
this._import = () => false;
|
|
73586
73569
|
this.navigate_to = () => false;
|
|
73587
73570
|
this.title = hArg => {
|
|
73588
|
-
const text = hArg
|
|
73571
|
+
const { text } = hArg;
|
|
73589
73572
|
if (!text)
|
|
73590
73573
|
throw '[title] textは必須です';
|
|
73591
73574
|
__classPrivateFieldSet(this, _SysBase_main_title, text, "f");
|
|
@@ -73755,10 +73738,7 @@ class SysBase {
|
|
|
73755
73738
|
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
73756
73739
|
}
|
|
73757
73740
|
toast(nm) {
|
|
73758
|
-
const
|
|
73759
|
-
if (!cvs)
|
|
73760
|
-
return;
|
|
73761
|
-
const p = cvs.parentNode;
|
|
73741
|
+
const p = this.appPixi.view.parentNode;
|
|
73762
73742
|
p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
|
|
73763
73743
|
const img = document.createElement('img');
|
|
73764
73744
|
const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
|
|
@@ -73772,7 +73752,7 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
73772
73752
|
img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
|
|
73773
73753
|
if (!td.ease)
|
|
73774
73754
|
img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
|
|
73775
|
-
p.insertBefore(img,
|
|
73755
|
+
p.insertBefore(img, this.appPixi.view);
|
|
73776
73756
|
}
|
|
73777
73757
|
setFire(fire) { this.fire = fire; }
|
|
73778
73758
|
addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
|
|
@@ -73795,20 +73775,18 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
|
|
|
73795
73775
|
async ensureFileSync(_path) { }
|
|
73796
73776
|
resizeFrames() {
|
|
73797
73777
|
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73798
|
-
const
|
|
73799
|
-
const
|
|
73778
|
+
const l = this.ofsLeft4frm + cr.left;
|
|
73779
|
+
const t = this.ofsTop4frm + cr.top;
|
|
73780
|
+
const c = document.getElementsByTagName('iframe');
|
|
73781
|
+
const len = c.length;
|
|
73800
73782
|
for (let i = 0; i < len; ++i) {
|
|
73801
|
-
const
|
|
73802
|
-
const
|
|
73803
|
-
|
|
73804
|
-
|
|
73805
|
-
|
|
73806
|
-
it.style.top = this.ofsTop4frm + cr.top
|
|
73807
|
-
+ Number(this.val.getVal(`tmp:${frmnm}.y`)) * this.reso4frame
|
|
73808
|
-
+ 'px';
|
|
73809
|
-
it.width = String(Number(this.val.getVal(`tmp:${frmnm}.width`))
|
|
73783
|
+
const f = c[i];
|
|
73784
|
+
const tvn = 'tmp:const.sn.frm.' + f.id;
|
|
73785
|
+
f.style.left = `${l + Number(this.val.getVal(tvn + '.x')) * this.reso4frame}px`;
|
|
73786
|
+
f.style.top = `${t + Number(this.val.getVal(tvn + '.y')) * this.reso4frame}px`;
|
|
73787
|
+
f.width = String(Number(this.val.getVal(tvn + '.width'))
|
|
73810
73788
|
* this.reso4frame);
|
|
73811
|
-
|
|
73789
|
+
f.height = String(Number(this.val.getVal(tvn + '.height'))
|
|
73812
73790
|
* this.reso4frame);
|
|
73813
73791
|
}
|
|
73814
73792
|
}
|
|
@@ -74451,7 +74429,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74451
74429
|
const o = TxtStage_1.TxtStage.ch_in_style(hArg);
|
|
74452
74430
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
74453
74431
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
74454
|
-
const name = hArg
|
|
74432
|
+
const { name } = hArg;
|
|
74455
74433
|
(0, CmnLib_1.addStyle)(`
|
|
74456
74434
|
.sn_ch_in_${name} {
|
|
74457
74435
|
position: relative;
|
|
@@ -74473,7 +74451,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74473
74451
|
const o = TxtStage_1.TxtStage.ch_out_style(hArg);
|
|
74474
74452
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
74475
74453
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
74476
|
-
const name = hArg
|
|
74454
|
+
const { name } = hArg;
|
|
74477
74455
|
(0, CmnLib_1.addStyle)(`
|
|
74478
74456
|
.go_ch_out_${name} {
|
|
74479
74457
|
position: relative;
|
|
@@ -74490,41 +74468,41 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
74490
74468
|
}, _TxtLayer_autowc = function _TxtLayer_autowc(hArg) {
|
|
74491
74469
|
__classPrivateFieldSet(TxtLayer, _a, (0, CmnLib_1.argChk_Boolean)(hArg, 'enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)), "f", _TxtLayer_doAutoWc);
|
|
74492
74470
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc));
|
|
74493
|
-
const
|
|
74471
|
+
const { text } = hArg;
|
|
74494
74472
|
if (('text' in hArg) !== ('time' in hArg))
|
|
74495
74473
|
throw '[autowc] textとtimeは同時指定必須です';
|
|
74496
|
-
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text',
|
|
74497
|
-
if (!
|
|
74474
|
+
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', text);
|
|
74475
|
+
if (!text) {
|
|
74498
74476
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', '');
|
|
74499
74477
|
return false;
|
|
74500
74478
|
}
|
|
74501
|
-
const len =
|
|
74479
|
+
const len = text.length;
|
|
74502
74480
|
if (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc) && len === 0)
|
|
74503
74481
|
throw '[autowc] enabled === false かつ text === "" は許されません';
|
|
74504
74482
|
const a = String(hArg.time).split(',');
|
|
74505
74483
|
if (a.length !== len)
|
|
74506
74484
|
throw '[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい';
|
|
74507
74485
|
__classPrivateFieldSet(TxtLayer, _a, {}, "f", _TxtLayer_hAutoWc);
|
|
74508
|
-
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[
|
|
74486
|
+
a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[text[i]] = (0, CmnLib_1.uint)(v));
|
|
74509
74487
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', hArg.time);
|
|
74510
74488
|
return false;
|
|
74511
74489
|
}, _TxtLayer_set_ch_in = function _TxtLayer_set_ch_in(hArg) {
|
|
74512
|
-
const
|
|
74513
|
-
if (!
|
|
74490
|
+
const { in_style } = hArg;
|
|
74491
|
+
if (!in_style)
|
|
74514
74492
|
return;
|
|
74515
|
-
const cis = TxtStage_1.TxtStage.getChInStyle(
|
|
74493
|
+
const cis = TxtStage_1.TxtStage.getChInStyle(in_style);
|
|
74516
74494
|
if (!cis)
|
|
74517
|
-
throw `存在しないin_style【${
|
|
74518
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style,
|
|
74495
|
+
throw `存在しないin_style【${in_style}】です`;
|
|
74496
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_in_style, in_style, "f");
|
|
74519
74497
|
__classPrivateFieldSet(this, _TxtLayer_ch_in_join, cis.join, "f");
|
|
74520
74498
|
}, _TxtLayer_set_ch_out = function _TxtLayer_set_ch_out(hArg) {
|
|
74521
|
-
const
|
|
74522
|
-
if (!
|
|
74499
|
+
const { out_style } = hArg;
|
|
74500
|
+
if (!out_style)
|
|
74523
74501
|
return;
|
|
74524
|
-
const cos = TxtStage_1.TxtStage.getChOutStyle(
|
|
74502
|
+
const cos = TxtStage_1.TxtStage.getChOutStyle(out_style);
|
|
74525
74503
|
if (!cos)
|
|
74526
|
-
throw `存在しないout_style【${
|
|
74527
|
-
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style,
|
|
74504
|
+
throw `存在しないout_style【${out_style}】です`;
|
|
74505
|
+
__classPrivateFieldSet(this, _TxtLayer_$ch_out_style, out_style, "f");
|
|
74528
74506
|
}, _TxtLayer_drawBack = function _TxtLayer_drawBack(hArg, fncComp) {
|
|
74529
74507
|
if ('back_clear' in hArg) {
|
|
74530
74508
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'back_clear', false)) {
|
|
@@ -74713,7 +74691,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
74713
74691
|
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");
|
|
74714
74692
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
74715
74693
|
};
|
|
74716
|
-
var _TxtStage_instances, _a, _TxtStage_cfg,
|
|
74694
|
+
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_parSn, _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;
|
|
74717
74695
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74718
74696
|
exports.TxtStage = void 0;
|
|
74719
74697
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -74766,7 +74744,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74766
74744
|
_TxtStage_sss.set(this, undefined);
|
|
74767
74745
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
74768
74746
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
74769
|
-
__classPrivateFieldGet(TxtStage, _a, "f",
|
|
74747
|
+
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_parSn).appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
74770
74748
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
|
|
74771
74749
|
this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
|
|
74772
74750
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
|
|
@@ -74774,7 +74752,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
74774
74752
|
}
|
|
74775
74753
|
static init(cfg) {
|
|
74776
74754
|
__classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
|
|
74777
|
-
__classPrivateFieldSet(TxtStage, _a, document.getElementById(CmnLib_1.CmnLib.SN_ID), "f",
|
|
74755
|
+
__classPrivateFieldSet(TxtStage, _a, document.getElementById(CmnLib_1.CmnLib.SN_ID).parentElement, "f", _TxtStage_parSn);
|
|
74778
74756
|
__classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
|
|
74779
74757
|
__classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
|
|
74780
74758
|
__classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
|
|
@@ -75091,7 +75069,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75091
75069
|
}
|
|
75092
75070
|
static getChInStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChInStyle)[name]; }
|
|
75093
75071
|
static ch_in_style(hArg) {
|
|
75094
|
-
const name = hArg
|
|
75072
|
+
const { name } = hArg;
|
|
75095
75073
|
if (!name)
|
|
75096
75074
|
throw 'nameは必須です';
|
|
75097
75075
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -75117,7 +75095,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75117
75095
|
}
|
|
75118
75096
|
static getChOutStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChOutStyle)[name]; }
|
|
75119
75097
|
static ch_out_style(hArg) {
|
|
75120
|
-
const name = hArg
|
|
75098
|
+
const { name } = hArg;
|
|
75121
75099
|
if (!name)
|
|
75122
75100
|
throw 'nameは必須です';
|
|
75123
75101
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
|
|
@@ -75427,7 +75405,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
75427
75405
|
};
|
|
75428
75406
|
function resolveAll() {
|
|
75429
75407
|
return readAll()
|
|
75430
|
-
.then(webFonts => Promise.
|
|
75408
|
+
.then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
|
|
75431
75409
|
.then(cssStrings => cssStrings.join('\n'));
|
|
75432
75410
|
}
|
|
75433
75411
|
function readAll() {
|
|
@@ -75613,7 +75591,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
75613
75591
|
__classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
|
|
75614
75592
|
};
|
|
75615
75593
|
_TxtStage_cfg = { value: void 0 };
|
|
75616
|
-
|
|
75594
|
+
_TxtStage_parSn = { value: void 0 };
|
|
75617
75595
|
_TxtStage_evtMng = { value: void 0 };
|
|
75618
75596
|
_TxtStage_hWarning = { value: {
|
|
75619
75597
|
backgroundColor: 0,
|
|
@@ -75980,7 +75958,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
75980
75958
|
__classPrivateFieldGet(this, _Variable_sys, "f").copyBMFolder(from, to);
|
|
75981
75959
|
return false;
|
|
75982
75960
|
}, _Variable_erasebookmark = function _Variable_erasebookmark(hArg) {
|
|
75983
|
-
const place = hArg
|
|
75961
|
+
const { place } = hArg;
|
|
75984
75962
|
if (!place)
|
|
75985
75963
|
throw 'placeは必須です';
|
|
75986
75964
|
delete __classPrivateFieldGet(this, _Variable_data, "f").mark[place];
|
|
@@ -76024,7 +76002,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76024
76002
|
__classPrivateFieldGet(this, _Variable_instances, "m", _Variable_let).call(this, hArg);
|
|
76025
76003
|
return false;
|
|
76026
76004
|
}, _Variable_let_index_of = function _Variable_let_index_of(hArg) {
|
|
76027
|
-
const val = hArg
|
|
76005
|
+
const { val } = hArg;
|
|
76028
76006
|
if (!val)
|
|
76029
76007
|
throw 'valは必須です';
|
|
76030
76008
|
const start = (0, CmnLib_1.argChk_Num)(hArg, 'start', 0);
|
|
@@ -76038,7 +76016,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76038
76016
|
}, _Variable_let_replace = function _Variable_let_replace(hArg) {
|
|
76039
76017
|
if (!hArg.reg)
|
|
76040
76018
|
throw 'regは必須です';
|
|
76041
|
-
const flags = hArg
|
|
76019
|
+
const { flags } = hArg;
|
|
76042
76020
|
const reg = (!flags)
|
|
76043
76021
|
? new RegExp(hArg.reg)
|
|
76044
76022
|
: new RegExp(hArg.reg, flags);
|
|
@@ -76053,7 +76031,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
|
|
|
76053
76031
|
}, _Variable_let_search = function _Variable_let_search(hArg) {
|
|
76054
76032
|
if (!hArg.reg)
|
|
76055
76033
|
throw 'regは必須です';
|
|
76056
|
-
const flags = hArg
|
|
76034
|
+
const { flags } = hArg;
|
|
76057
76035
|
const reg = (!flags)
|
|
76058
76036
|
? new RegExp(hArg.reg)
|
|
76059
76037
|
: new RegExp(hArg.reg, flags);
|
|
@@ -79167,7 +79145,7 @@ exports.ERROR_PACKET = ERROR_PACKET;
|
|
|
79167
79145
|
|
|
79168
79146
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
79169
79147
|
const commons_js_1 = __webpack_require__(/*! ./commons.js */ "./node_modules/engine.io-parser/build/cjs/commons.js");
|
|
79170
|
-
const base64_arraybuffer_1 = __webpack_require__(/*! base64-arraybuffer */ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
|
|
79148
|
+
const base64_arraybuffer_1 = __webpack_require__(/*! @socket.io/base64-arraybuffer */ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
|
|
79171
79149
|
const withNativeArrayBuffer = typeof ArrayBuffer === "function";
|
|
79172
79150
|
const decodePacket = (encodedPacket, binaryType) => {
|
|
79173
79151
|
if (typeof encodedPacket !== "string") {
|