@famibee/skynovel 1.26.0 → 1.27.3
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 +46 -0
- package/app.js +165 -95
- package/appMain.js +5 -2
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +5 -1
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +8 -0
- package/core/lib/sn/LayerMng.d.ts.map +1 -1
- package/core/lib/sn/SoundMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts +3 -4
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/SysBase.d.ts +1 -1
- package/core/lib/sn/SysBase.d.ts.map +1 -1
- package/core/lib/sn/SysNode.d.ts +1 -1
- package/core/lib/sn/SysNode.d.ts.map +1 -1
- package/package.json +5 -5
- package/web.js +60 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
## [1.27.3](https://github.com/famibee/SKYNovel/compare/v1.27.2...v1.27.3) (2022-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ウインドウ位置が保存されない件 ([95f0786](https://github.com/famibee/SKYNovel/commit/95f0786e10a0ba4cc28c46f85e2ce5dd9a1359ad))
|
|
7
|
+
|
|
8
|
+
- fix: ウインドウ位置が保存されない件
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [1.27.2](https://github.com/famibee/SKYNovel/compare/v1.27.1...v1.27.2) (2022-01-13)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* [r]を挟むと[span]色変更がキャンセルされる件 ([88224d3](https://github.com/famibee/SKYNovel/commit/88224d3f5c59a0d1501fc94b125fdad6e004a3e5))
|
|
17
|
+
|
|
18
|
+
- fix: [r]を挟むと[span]色変更がキャンセルされる件
|
|
19
|
+
- fix: [tcy]で[tcy t='Day 1']と半角を入れると表示が変になる件
|
|
20
|
+
- fix: (問題ないか確認しつつ)Promise.all を Promise.allSettled に
|
|
21
|
+
|
|
22
|
+
## [1.27.1](https://github.com/famibee/SKYNovel/compare/v1.27.0...v1.27.1) (2022-01-12)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* [playse][stopse][fadeoutse]にてObjの扱いでエラーになる件 ([ed92d0b](https://github.com/famibee/SKYNovel/commit/ed92d0b82942f3fbaf0c9da338b76d21a29339d8))
|
|
28
|
+
|
|
29
|
+
- fix: [playse][stopse][fadeoutse]にてオブジェクトの扱いによりエラーになる場合に対応
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# [1.27.0](https://github.com/famibee/SKYNovel/compare/v1.26.0...v1.27.0) (2022-01-11)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
* [update_check]DLでアーキテクチャ(x32、x64など)別の対応が可能に ([b8e569f](https://github.com/famibee/SKYNovel/commit/b8e569febb418f69c58879cab036d370fa66a3f1))
|
|
38
|
+
|
|
39
|
+
- feat: [update_check]のアプリダウンロードでアーキテクチャ(ia32、x64など)別の対応が可能に
|
|
40
|
+
- 拡張機能により生成された _index.json ファイルを使用
|
|
41
|
+
- 旧版の .yml ファイルもしばらく対応する
|
|
42
|
+
- feat: アプリ実行時に OSや CPU アーキテクチャに対応するファイルが見つからない場合、同じOSのファイルをすべてダウンロードさせる
|
|
43
|
+
- fix: [update_check]でDLするか確認するダイアログを無効にしていたのを修正
|
|
44
|
+
- fix: [update_check]のダウンロードテクノロジーを[snapshot]と同じにし、保存ダイアログなしでダウンロードフォルダに保存するように
|
|
45
|
+
|
|
46
|
+
|
|
1
47
|
# [1.26.0](https://github.com/famibee/SKYNovel/compare/v1.25.10...v1.26.0) (2022-01-10)
|
|
2
48
|
|
|
3
49
|
|
package/app.js
CHANGED
|
@@ -70216,7 +70216,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70216
70216
|
}));
|
|
70217
70217
|
else
|
|
70218
70218
|
__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.
|
|
70219
|
+
Promise.allSettled(a).then(async () => {
|
|
70220
70220
|
const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
|
|
70221
70221
|
rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
|
|
70222
70222
|
await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
|
|
@@ -70630,7 +70630,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70630
70630
|
hArg.wait = 0;
|
|
70631
70631
|
else if ('wait' in hArg)
|
|
70632
70632
|
(0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
|
|
70633
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
|
|
70634
70633
|
const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
|
|
70635
70634
|
const doRecLog = this.val.doRecLog();
|
|
70636
70635
|
if (!record)
|
|
@@ -70638,7 +70637,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70638
70637
|
tl.tagCh(txt.replaceAll('[r]', '\n'));
|
|
70639
70638
|
if (!record)
|
|
70640
70639
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
70641
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
|
|
70642
70640
|
return false;
|
|
70643
70641
|
}, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
|
|
70644
70642
|
const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
|
|
@@ -70722,7 +70720,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70722
70720
|
}, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
|
|
70723
70721
|
if (!hArg.t)
|
|
70724
70722
|
throw '[tcy] tは必須です';
|
|
70725
|
-
hArg.text = '|
|
|
70723
|
+
hArg.text = '| 《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
|
|
70726
70724
|
return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
|
|
70727
70725
|
}, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
|
|
70728
70726
|
console.group('🥟 [dump_lay]');
|
|
@@ -70921,7 +70919,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
70921
70919
|
}
|
|
70922
70920
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
70923
70921
|
__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.
|
|
70922
|
+
await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
|
|
70925
70923
|
__classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
|
|
70926
70924
|
__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
70925
|
__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");
|
|
@@ -71525,14 +71523,14 @@ const DebugMng_1 = __webpack_require__(/*! ./DebugMng */ "./core/src/sn/DebugMng
|
|
|
71525
71523
|
;
|
|
71526
71524
|
var BreakState;
|
|
71527
71525
|
(function (BreakState) {
|
|
71528
|
-
BreakState[BreakState["
|
|
71529
|
-
BreakState[BreakState["
|
|
71530
|
-
BreakState[BreakState["
|
|
71531
|
-
BreakState[BreakState["
|
|
71532
|
-
BreakState[BreakState["
|
|
71533
|
-
BreakState[BreakState["
|
|
71534
|
-
BreakState[BreakState["
|
|
71535
|
-
BreakState[BreakState["
|
|
71526
|
+
BreakState[BreakState["Running"] = 0] = "Running";
|
|
71527
|
+
BreakState[BreakState["Wait"] = 1] = "Wait";
|
|
71528
|
+
BreakState[BreakState["Break"] = 2] = "Break";
|
|
71529
|
+
BreakState[BreakState["Breaking"] = 3] = "Breaking";
|
|
71530
|
+
BreakState[BreakState["Step"] = 4] = "Step";
|
|
71531
|
+
BreakState[BreakState["Stepping"] = 5] = "Stepping";
|
|
71532
|
+
BreakState[BreakState["StepOuting"] = 6] = "StepOuting";
|
|
71533
|
+
BreakState[BreakState["StepOut"] = 7] = "StepOut";
|
|
71536
71534
|
})(BreakState || (BreakState = {}));
|
|
71537
71535
|
;
|
|
71538
71536
|
class ScriptIterator {
|
|
@@ -71561,14 +71559,14 @@ class ScriptIterator {
|
|
|
71561
71559
|
__classPrivateFieldSet(ScriptIterator, _a, {}, "f", _ScriptIterator_hFuncBP);
|
|
71562
71560
|
this.isBreak = () => false;
|
|
71563
71561
|
__classPrivateFieldGet(this, _ScriptIterator_hHook, "f").continue({});
|
|
71564
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71562
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
|
|
71565
71563
|
},
|
|
71566
71564
|
restart: () => this.isBreak = () => false,
|
|
71567
71565
|
add_break: o => __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_regBreakPoint).call(this, o.fn, o.o),
|
|
71568
71566
|
data_break: o => {
|
|
71569
|
-
if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.
|
|
71567
|
+
if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.Running)
|
|
71570
71568
|
return;
|
|
71571
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71569
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Wait, "f");
|
|
71572
71570
|
this.main.setLoop(false, `変数 ${o.dataId}【${o.old_v}】→【${o.new_v}】データブレーク`);
|
|
71573
71571
|
this.sys.callHook('stopOnDataBreakpoint', {});
|
|
71574
71572
|
this.sys.send2Dbg('stopOnDataBreakpoint', {});
|
|
@@ -71584,7 +71582,7 @@ class ScriptIterator {
|
|
|
71584
71582
|
if (__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_isIdxOverLast).call(this))
|
|
71585
71583
|
return;
|
|
71586
71584
|
__classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
|
|
71587
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71585
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Breaking, "f");
|
|
71588
71586
|
this.main.setLoop(true);
|
|
71589
71587
|
this.main.resume();
|
|
71590
71588
|
},
|
|
@@ -71595,9 +71593,9 @@ class ScriptIterator {
|
|
|
71595
71593
|
const tkn = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get)];
|
|
71596
71594
|
this.sys.callHook(`stopOnStep${__classPrivateFieldGet(this, _ScriptIterator_REGSTEPIN, "f").test(tkn) ? 'In' : ''}`, {});
|
|
71597
71595
|
__classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
|
|
71598
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
71599
|
-
? BreakState.
|
|
71600
|
-
: BreakState.
|
|
71596
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Wait
|
|
71597
|
+
? BreakState.Step
|
|
71598
|
+
: BreakState.Stepping, "f");
|
|
71601
71599
|
this.main.setLoop(true);
|
|
71602
71600
|
this.main.resume();
|
|
71603
71601
|
},
|
|
@@ -71610,12 +71608,12 @@ class ScriptIterator {
|
|
|
71610
71608
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_go_stepover).call(this, o);
|
|
71611
71609
|
},
|
|
71612
71610
|
pause: () => {
|
|
71613
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71611
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
71614
71612
|
this.main.setLoop(false, '一時停止');
|
|
71615
71613
|
this.sys.send2Dbg('stopOnStep', {});
|
|
71616
71614
|
},
|
|
71617
71615
|
stopOnEntry: () => {
|
|
71618
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71616
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
71619
71617
|
this.main.setLoop(false, '一時停止');
|
|
71620
71618
|
this.sys.send2Dbg('stopOnEntry', {});
|
|
71621
71619
|
},
|
|
@@ -71625,7 +71623,7 @@ class ScriptIterator {
|
|
|
71625
71623
|
.replace(__classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_REG4CODE_FN), `$1/prj/$2/${__classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f")}$3`));
|
|
71626
71624
|
this.cnvPath4Dbg = (fn) => this.sys.pathBaseCnvSnPath4Dbg + fn.replace('/crypto_prj/', '/prj/');
|
|
71627
71625
|
_ScriptIterator_csDepth_macro_esc.set(this, 0);
|
|
71628
|
-
_ScriptIterator_breakState.set(this, BreakState.
|
|
71626
|
+
_ScriptIterator_breakState.set(this, BreakState.Running);
|
|
71629
71627
|
this.isBreak = (_token) => false;
|
|
71630
71628
|
_ScriptIterator_procDebugtag.set(this, (_tag_name) => { });
|
|
71631
71629
|
_ScriptIterator_evtMng.set(this, void 0);
|
|
@@ -71956,12 +71954,12 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
71956
71954
|
this.sys.callHook(`stopOnStep${out ? 'Out' : ''}`, {});
|
|
71957
71955
|
__classPrivateFieldSet(this, _ScriptIterator_csDepth_macro_esc, __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length - (out ? 1 : 0), "f");
|
|
71958
71956
|
__classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
|
|
71959
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.
|
|
71957
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.StepOut : BreakState.StepOuting, "f");
|
|
71960
71958
|
this.main.setLoop(true);
|
|
71961
71959
|
this.main.resume();
|
|
71962
71960
|
}, _ScriptIterator_idxDx4Dbg_get = function _ScriptIterator_idxDx4Dbg_get() {
|
|
71963
|
-
return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
71964
|
-
|| __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
71961
|
+
return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Break
|
|
71962
|
+
|| __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Step ? 1 : 0;
|
|
71965
71963
|
}, _ScriptIterator_isIdxOverLast = function _ScriptIterator_isIdxOverLast() {
|
|
71966
71964
|
if (__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") < __classPrivateFieldGet(this, _ScriptIterator_script, "f").len)
|
|
71967
71965
|
return false;
|
|
@@ -71970,34 +71968,34 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
71970
71968
|
return true;
|
|
71971
71969
|
}, _ScriptIterator_isBreak_base = function _ScriptIterator_isBreak_base(token) {
|
|
71972
71970
|
switch (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f")) {
|
|
71973
|
-
case BreakState.
|
|
71971
|
+
case BreakState.StepOuting:
|
|
71974
71972
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
71975
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71973
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.StepOut, "f");
|
|
71976
71974
|
break;
|
|
71977
|
-
case BreakState.
|
|
71975
|
+
case BreakState.StepOut:
|
|
71978
71976
|
if (__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length !== __classPrivateFieldGet(this, _ScriptIterator_csDepth_macro_esc, "f"))
|
|
71979
71977
|
break;
|
|
71980
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71978
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
71981
71979
|
this.main.setLoop(false, 'ステップ実行');
|
|
71982
71980
|
this.sys.send2Dbg('stopOnStep', {});
|
|
71983
71981
|
return true;
|
|
71984
|
-
case BreakState.
|
|
71982
|
+
case BreakState.Stepping:
|
|
71985
71983
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
71986
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71984
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
71987
71985
|
break;
|
|
71988
|
-
case BreakState.
|
|
71986
|
+
case BreakState.Step:
|
|
71989
71987
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
71990
71988
|
this.main.setLoop(false, 'ステップ実行');
|
|
71991
71989
|
this.sys.send2Dbg('stopOnStep', {});
|
|
71992
71990
|
return true;
|
|
71993
|
-
case BreakState.
|
|
71991
|
+
case BreakState.Breaking:
|
|
71994
71992
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
71995
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71993
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
|
|
71996
71994
|
break;
|
|
71997
71995
|
default:
|
|
71998
71996
|
{
|
|
71999
71997
|
if ((0, Grammar_1.tagToken2Name)(token) in __classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_hFuncBP)) {
|
|
72000
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
71998
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
|
|
72001
71999
|
this.main.setLoop(false, `関数 ${token} ブレーク`);
|
|
72002
72000
|
this.sys.callHook('stopOnBreakpoint', {});
|
|
72003
72001
|
this.sys.send2Dbg('stopOnBreakpoint', {});
|
|
@@ -72017,8 +72015,8 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72017
72015
|
}
|
|
72018
72016
|
else if (('hitCondition' in o) && --o.hitCondition > 0)
|
|
72019
72017
|
break;
|
|
72020
|
-
const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
72021
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
72018
|
+
const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Running;
|
|
72019
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
|
|
72022
72020
|
this.main.setLoop(false, isBreak ? ((o.condition ? '条件' : 'ヒットカウント') + 'ブレーク') : 'ステップ実行');
|
|
72023
72021
|
const type = isBreak ? 'stopOnBreakpoint' : 'stopOnStep';
|
|
72024
72022
|
this.sys.callHook(type, {});
|
|
@@ -72032,7 +72030,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
72032
72030
|
if (o?.hitCondition)
|
|
72033
72031
|
--o.hitCondition;
|
|
72034
72032
|
}, _ScriptIterator_aStack = function _ScriptIterator_aStack() {
|
|
72035
|
-
const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
72033
|
+
const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Breaking ? 1 : 0;
|
|
72036
72034
|
const tkn0 = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - 1 + idx_n];
|
|
72037
72035
|
const fn0 = __classPrivateFieldGet(this, _ScriptIterator_cnvSnPath4Dbg, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f"));
|
|
72038
72036
|
const tag_name0 = (0, Grammar_1.tagToken2Name)(tkn0);
|
|
@@ -72747,7 +72745,7 @@ class SoundMng {
|
|
|
72747
72745
|
[hArg.clickse, hArg.enterse, hArg.leavese].forEach(fn => {
|
|
72748
72746
|
if (!fn || sound_1.sound.exists(fn))
|
|
72749
72747
|
return;
|
|
72750
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, { preload: true, autoPlay: false });
|
|
72748
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, '', fn, { preload: true, autoPlay: false });
|
|
72751
72749
|
});
|
|
72752
72750
|
}
|
|
72753
72751
|
playLoopFromSaveObj() {
|
|
@@ -72858,7 +72856,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72858
72856
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
72859
72857
|
const fn = hArg.fn;
|
|
72860
72858
|
if (!fn)
|
|
72861
|
-
throw
|
|
72859
|
+
throw `[playse] fnは必須です buf:${buf}`;
|
|
72862
72860
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
72863
72861
|
&& __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
|
|
72864
72862
|
return false;
|
|
@@ -72889,11 +72887,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72889
72887
|
const snd = sound_1.sound.find(fn);
|
|
72890
72888
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf] = {
|
|
72891
72889
|
now_buf: buf,
|
|
72892
|
-
snd
|
|
72893
|
-
loop
|
|
72894
|
-
start_ms
|
|
72895
|
-
end_ms
|
|
72896
|
-
ret_ms
|
|
72890
|
+
snd,
|
|
72891
|
+
loop,
|
|
72892
|
+
start_ms,
|
|
72893
|
+
end_ms,
|
|
72894
|
+
ret_ms,
|
|
72897
72895
|
resume: false,
|
|
72898
72896
|
playing: () => true,
|
|
72899
72897
|
onend: () => {
|
|
@@ -72908,7 +72906,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72908
72906
|
},
|
|
72909
72907
|
};
|
|
72910
72908
|
const o = {
|
|
72911
|
-
loop
|
|
72909
|
+
loop,
|
|
72912
72910
|
volume: vol,
|
|
72913
72911
|
speed: (0, CmnLib_1.argChk_Num)(hArg, 'speed', 1),
|
|
72914
72912
|
sprites: {},
|
|
@@ -72993,14 +72991,14 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72993
72991
|
}
|
|
72994
72992
|
if (o2s.start >= d)
|
|
72995
72993
|
throw `[playse] ret_ms:${ret_ms} >= 音声ファイル再生時間:${d} は異常値です`;
|
|
72996
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o2);
|
|
72994
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o2);
|
|
72997
72995
|
};
|
|
72998
72996
|
}
|
|
72999
72997
|
__classPrivateFieldGet(this, _SoundMng_initVol, "f").call(this);
|
|
73000
72998
|
if (snd) {
|
|
73001
72999
|
snd.volume = vol;
|
|
73002
73000
|
if (sp_nm)
|
|
73003
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
|
|
73001
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
|
|
73004
73002
|
else if (snd.isPlayable) {
|
|
73005
73003
|
const ab = snd.options.source;
|
|
73006
73004
|
if (!(ab instanceof ArrayBuffer)
|
|
@@ -73020,13 +73018,15 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73020
73018
|
const old = o.loaded;
|
|
73021
73019
|
o.loaded = (e, snd) => { old?.(e, snd); this.main.resume(); };
|
|
73022
73020
|
}
|
|
73023
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
|
|
73021
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
|
|
73024
73022
|
return join;
|
|
73025
|
-
}, _SoundMng_playseSub = function _SoundMng_playseSub(fn, o) {
|
|
73023
|
+
}, _SoundMng_playseSub = function _SoundMng_playseSub(buf, fn, o) {
|
|
73026
73024
|
const url = this.cfg.searchPath(fn, Config_1.Config.EXT_SOUND);
|
|
73027
73025
|
if (url.slice(-4) !== '.bin') {
|
|
73028
73026
|
o.url = url;
|
|
73029
73027
|
const snd = sound_1.Sound.from(o);
|
|
73028
|
+
if (buf)
|
|
73029
|
+
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
|
|
73030
73030
|
if (!o.loop)
|
|
73031
73031
|
sound_1.sound.add(fn, snd);
|
|
73032
73032
|
return;
|
|
@@ -73040,6 +73040,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73040
73040
|
.load((_ldr, hRes) => {
|
|
73041
73041
|
o.source = hRes[fn]?.data;
|
|
73042
73042
|
const snd = sound_1.Sound.from(o);
|
|
73043
|
+
if (buf)
|
|
73044
|
+
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
|
|
73043
73045
|
if (!o.loop)
|
|
73044
73046
|
sound_1.sound.add(fn, snd);
|
|
73045
73047
|
});
|
|
@@ -73051,9 +73053,12 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
73051
73053
|
return false;
|
|
73052
73054
|
}, _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) {
|
|
73053
73055
|
const buf = hArg.buf ?? 'SE';
|
|
73054
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
73055
73056
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
73056
|
-
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]
|
|
73057
|
+
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
73058
|
+
if (oSb) {
|
|
73059
|
+
oSb.snd?.stop();
|
|
73060
|
+
oSb.onend();
|
|
73061
|
+
}
|
|
73057
73062
|
return false;
|
|
73058
73063
|
}, _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) {
|
|
73059
73064
|
const buf = hArg.buf ?? 'SE';
|
|
@@ -73150,7 +73155,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
73150
73155
|
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");
|
|
73151
73156
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73152
73157
|
};
|
|
73153
|
-
var _SysApp_hInfo, _SysApp_main;
|
|
73158
|
+
var _SysApp_instances, _SysApp_hInfo, _SysApp_main, _SysApp_dl_app;
|
|
73154
73159
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73155
73160
|
exports.SysApp = void 0;
|
|
73156
73161
|
const SysNode_1 = __webpack_require__(/*! ./SysNode */ "./core/src/sn/SysNode.ts");
|
|
@@ -73162,6 +73167,7 @@ const { to_app } = window;
|
|
|
73162
73167
|
class SysApp extends SysNode_1.SysNode {
|
|
73163
73168
|
constructor(hPlg = {}, arg = { cur: 'prj/', crypto: false, dip: '' }) {
|
|
73164
73169
|
super(hPlg, arg);
|
|
73170
|
+
_SysApp_instances.add(this);
|
|
73165
73171
|
_SysApp_hInfo.set(this, {
|
|
73166
73172
|
getAppPath: '',
|
|
73167
73173
|
isPackaged: false,
|
|
@@ -73169,6 +73175,8 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73169
73175
|
userData: '',
|
|
73170
73176
|
getVersion: '',
|
|
73171
73177
|
env: {},
|
|
73178
|
+
platform: '',
|
|
73179
|
+
arch: '',
|
|
73172
73180
|
screenResolutionX: 0,
|
|
73173
73181
|
screenResolutionY: 0,
|
|
73174
73182
|
});
|
|
@@ -73309,19 +73317,31 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73309
73317
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73310
73318
|
DebugMng_1.DebugMng.myTrace(`[update_check] url=${url}`, 'D');
|
|
73311
73319
|
(async () => {
|
|
73312
|
-
|
|
73313
|
-
|
|
73320
|
+
let oIdx = {};
|
|
73321
|
+
let sYml = '';
|
|
73322
|
+
let netver = '';
|
|
73323
|
+
const resIdxJS = await this.fetch(url + '_index.json');
|
|
73324
|
+
if (resIdxJS.ok) {
|
|
73314
73325
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73315
|
-
DebugMng_1.DebugMng.myTrace(`[update_check]
|
|
73316
|
-
|
|
73326
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] _index.jsonを取得しました`, 'D');
|
|
73327
|
+
oIdx = await resIdxJS.json();
|
|
73328
|
+
netver = oIdx.version;
|
|
73329
|
+
}
|
|
73330
|
+
else {
|
|
73331
|
+
const resYml = await this.fetch(url + `latest${CmnLib_1.CmnLib.isMac ? '-mac' : ''}.yml`);
|
|
73332
|
+
if (!resYml.ok) {
|
|
73333
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73334
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] [update_check] .ymlが見つかりません`);
|
|
73335
|
+
return;
|
|
73336
|
+
}
|
|
73337
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73338
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] .ymlを取得しました`, 'D');
|
|
73339
|
+
sYml = await resYml.text();
|
|
73340
|
+
const mv = /version: (.+)/.exec(sYml);
|
|
73341
|
+
if (!mv)
|
|
73342
|
+
throw `[update_check] .yml に version が見つかりません`;
|
|
73343
|
+
netver = mv[1];
|
|
73317
73344
|
}
|
|
73318
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
73319
|
-
DebugMng_1.DebugMng.myTrace(`[update_check] .ymlを取得しました`, 'D');
|
|
73320
|
-
const txtYml = await res.text();
|
|
73321
|
-
const mv = /version: (.+)/.exec(txtYml);
|
|
73322
|
-
if (!mv)
|
|
73323
|
-
throw `[update_check] .yml に version が見つかりません`;
|
|
73324
|
-
const netver = mv[1];
|
|
73325
73345
|
const appver = __classPrivateFieldGet(this, _SysApp_hInfo, "f").getVersion;
|
|
73326
73346
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73327
73347
|
DebugMng_1.DebugMng.myTrace(`[update_check] 現在ver=${appver} 新規ver=${netver}`, 'D');
|
|
@@ -73330,39 +73350,65 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73330
73350
|
DebugMng_1.DebugMng.myTrace(`[update_check] バージョン更新なし`, 'I');
|
|
73331
73351
|
return;
|
|
73332
73352
|
}
|
|
73353
|
+
const mbo = {
|
|
73354
|
+
title: 'アプリ更新',
|
|
73355
|
+
icon: (__classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath + '/app/icon.png'),
|
|
73356
|
+
buttons: ['OK', 'Cancel'],
|
|
73357
|
+
defaultId: 0,
|
|
73358
|
+
cancelId: 1,
|
|
73359
|
+
message: `アプリ【${this.cfg.oCfg.book.title}】に更新があります。\nダウンロードしますか?`,
|
|
73360
|
+
detail: `現在 NOW ver ${appver}\n新規 NEW ver ${netver}`,
|
|
73361
|
+
};
|
|
73362
|
+
const di = await to_app.showMessageBox(mbo);
|
|
73363
|
+
if (di.response > 0)
|
|
73364
|
+
return;
|
|
73333
73365
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73334
73366
|
DebugMng_1.DebugMng.myTrace(`[update_check] アプリダウンロード開始`, 'D');
|
|
73335
|
-
|
|
73336
|
-
|
|
73337
|
-
|
|
73338
|
-
|
|
73339
|
-
|
|
73340
|
-
|
|
73341
|
-
|
|
73342
|
-
|
|
73343
|
-
|
|
73344
|
-
|
|
73345
|
-
|
|
73346
|
-
|
|
73347
|
-
|
|
73348
|
-
|
|
73367
|
+
if (resIdxJS.ok) {
|
|
73368
|
+
const key = __classPrivateFieldGet(this, _SysApp_hInfo, "f").platform + '_' + __classPrivateFieldGet(this, _SysApp_hInfo, "f").arch;
|
|
73369
|
+
let pa = oIdx[key];
|
|
73370
|
+
if (pa)
|
|
73371
|
+
await __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, url, key + '-' + pa.cn, pa.path);
|
|
73372
|
+
else {
|
|
73373
|
+
let d = '';
|
|
73374
|
+
const aApp = [];
|
|
73375
|
+
const regOldSameKey = new RegExp('^' + __classPrivateFieldGet(this, _SysApp_hInfo, "f").platform + '_');
|
|
73376
|
+
for (const k in oIdx) {
|
|
73377
|
+
if (!regOldSameKey.test(k))
|
|
73378
|
+
continue;
|
|
73379
|
+
const ap = oIdx[k];
|
|
73380
|
+
d += '\n- ' + ap.path;
|
|
73381
|
+
aApp.push({ url, urlApp: k + '-' + ap.cn, fn: String(ap.path) });
|
|
73382
|
+
}
|
|
73383
|
+
mbo.message = `CPU = ${__classPrivateFieldGet(this, _SysApp_hInfo, "f").arch}\nに対応するファイルが見つかりません。同じOSのファイルをすべてダウンロードしますか?`;
|
|
73384
|
+
mbo.detail = aApp.length + ' 個ファイルがあります' + d;
|
|
73385
|
+
const di = await to_app.showMessageBox(mbo);
|
|
73386
|
+
if (di.response > 0)
|
|
73387
|
+
return;
|
|
73388
|
+
await Promise.allSettled(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
|
|
73389
|
+
}
|
|
73390
|
+
}
|
|
73391
|
+
else {
|
|
73392
|
+
const mp = /path: (.+)/.exec(sYml);
|
|
73393
|
+
if (!mp)
|
|
73394
|
+
throw `[update_check] path が見つかりません`;
|
|
73395
|
+
const path = mp[1];
|
|
73349
73396
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73350
|
-
DebugMng_1.DebugMng.myTrace(`[update_check]
|
|
73351
|
-
|
|
73397
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] path=${path}`, 'D');
|
|
73398
|
+
const mc = /sha512: (.+)/.exec(sYml);
|
|
73399
|
+
if (!mc)
|
|
73400
|
+
throw `[update_check] sha512 が見つかりません`;
|
|
73401
|
+
const sha = mc[1];
|
|
73402
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73403
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] sha=${sha}=`, 'D');
|
|
73404
|
+
const mm = /(.+)(\.\w+)/.exec(path) ?? ['', '', ''];
|
|
73405
|
+
await __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, url, mm[1] + '-' + __classPrivateFieldGet(this, _SysApp_hInfo, "f").arch + mm[2], path);
|
|
73352
73406
|
}
|
|
73353
|
-
const pathDL = __classPrivateFieldGet(this, _SysApp_hInfo, "f").downloads + '/' + path;
|
|
73354
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
73355
|
-
DebugMng_1.DebugMng.myTrace(`[update_check] pathDL=${pathDL}`, 'D');
|
|
73356
|
-
const b = await res_dl.blob();
|
|
73357
|
-
const url2 = URL.createObjectURL(b);
|
|
73358
|
-
const a = document.createElement('a');
|
|
73359
|
-
document.body.appendChild(a);
|
|
73360
|
-
a.download = path;
|
|
73361
|
-
a.href = url2;
|
|
73362
|
-
a.click();
|
|
73363
|
-
a.remove();
|
|
73364
73407
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73365
73408
|
DebugMng_1.DebugMng.myTrace(`アプリファイルを保存しました`, 'D');
|
|
73409
|
+
mbo.buttons.pop();
|
|
73410
|
+
mbo.message = `アプリ【${this.cfg.oCfg.book.title}】の更新パッケージを\nダウンロードしました`;
|
|
73411
|
+
to_app.showMessageBox(mbo);
|
|
73366
73412
|
})();
|
|
73367
73413
|
return false;
|
|
73368
73414
|
};
|
|
@@ -73407,7 +73453,9 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73407
73453
|
});
|
|
73408
73454
|
this.flush = () => to_app.flush(this.data);
|
|
73409
73455
|
(async () => {
|
|
73410
|
-
|
|
73456
|
+
const first = hTmp['const.sn.isFirstBoot']
|
|
73457
|
+
= await to_app.Store_isEmpty();
|
|
73458
|
+
if (first) {
|
|
73411
73459
|
this.data.sys = data.sys;
|
|
73412
73460
|
this.data.mark = data.mark;
|
|
73413
73461
|
this.data.kidoku = data.kidoku;
|
|
@@ -73419,6 +73467,14 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73419
73467
|
this.data.mark = store.mark;
|
|
73420
73468
|
this.data.kidoku = store.kidoku;
|
|
73421
73469
|
}
|
|
73470
|
+
const x = this.data.sys['const.sn.nativeWindow.x'] ?? 0;
|
|
73471
|
+
const y = this.data.sys['const.sn.nativeWindow.y'] ?? 0;
|
|
73472
|
+
to_app.window(first, x, y, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
73473
|
+
to_app.on('save_win_pos', (_e, x, y) => {
|
|
73474
|
+
this.val.setVal_Nochk('sys', 'const.sn.nativeWindow.x', x);
|
|
73475
|
+
this.val.setVal_Nochk('sys', 'const.sn.nativeWindow.y', y);
|
|
73476
|
+
this.flush();
|
|
73477
|
+
});
|
|
73422
73478
|
comp(this.data);
|
|
73423
73479
|
})();
|
|
73424
73480
|
}
|
|
@@ -73445,7 +73501,21 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73445
73501
|
titleSub(title) { to_app.win_setTitle(title); }
|
|
73446
73502
|
}
|
|
73447
73503
|
exports.SysApp = SysApp;
|
|
73448
|
-
_SysApp_hInfo = new WeakMap(), _SysApp_main = new WeakMap()
|
|
73504
|
+
_SysApp_hInfo = new WeakMap(), _SysApp_main = new WeakMap(), _SysApp_instances = new WeakSet(), _SysApp_dl_app = async function _SysApp_dl_app(url, urlApp, fn) {
|
|
73505
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73506
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルDL試行... url=${url + urlApp}`, 'D');
|
|
73507
|
+
const res = await this.fetch(url + urlApp);
|
|
73508
|
+
if (!res.ok) {
|
|
73509
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73510
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルが見つかりません url=${url + fn}`);
|
|
73511
|
+
return;
|
|
73512
|
+
}
|
|
73513
|
+
const pathDL = __classPrivateFieldGet(this, _SysApp_hInfo, "f").downloads + '/' + fn;
|
|
73514
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73515
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] pathDL=${pathDL}`, 'D');
|
|
73516
|
+
const ab = await res.arrayBuffer();
|
|
73517
|
+
await this.writeFileSync(pathDL, new DataView(ab));
|
|
73518
|
+
};
|
|
73449
73519
|
|
|
73450
73520
|
|
|
73451
73521
|
/***/ }),
|
|
@@ -75365,7 +75435,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
75365
75435
|
};
|
|
75366
75436
|
function resolveAll() {
|
|
75367
75437
|
return readAll()
|
|
75368
|
-
.then(webFonts => Promise.
|
|
75438
|
+
.then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
|
|
75369
75439
|
.then(cssStrings => cssStrings.join('\n'));
|
|
75370
75440
|
}
|
|
75371
75441
|
function readAll() {
|
package/appMain.js
CHANGED
|
@@ -23499,6 +23499,8 @@ class appMain {
|
|
|
23499
23499
|
userData: electron_1.app.getPath('userData'),
|
|
23500
23500
|
getVersion: '',
|
|
23501
23501
|
env: { ...process.env },
|
|
23502
|
+
platform: process.platform,
|
|
23503
|
+
arch: process.arch,
|
|
23502
23504
|
screenResolutionX: __classPrivateFieldGet(this, _appMain_screenRX, "f"),
|
|
23503
23505
|
screenResolutionY: __classPrivateFieldGet(this, _appMain_screenRY, "f"),
|
|
23504
23506
|
});
|
|
@@ -23542,6 +23544,7 @@ class appMain {
|
|
|
23542
23544
|
bw.setSize(w, h);
|
|
23543
23545
|
__classPrivateFieldSet(this, _appMain_isMovingWin, false, "f");
|
|
23544
23546
|
});
|
|
23547
|
+
electron_1.ipcMain.handle('showMessageBox', (_, o) => electron_1.dialog.showMessageBox(o));
|
|
23545
23548
|
electron_1.ipcMain.handle('capturePage', (_, fn) => bw.webContents.capturePage()
|
|
23546
23549
|
.then(ni => (0, fs_extra_1.writeFileSync)(fn, (fn.slice(-4) === '.png') ? ni.toPNG() : ni.toJPEG(80))));
|
|
23547
23550
|
electron_1.ipcMain.handle('navigate_to', (_, url) => electron_1.shell.openExternal(url));
|
|
@@ -23609,11 +23612,11 @@ _a = appMain, _appMain_dsp = new WeakMap(), _appMain_screenRX = new WeakMap(), _
|
|
|
23609
23612
|
setTimeout(() => __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_delayWinPos).call(this), 500);
|
|
23610
23613
|
return;
|
|
23611
23614
|
}
|
|
23615
|
+
__classPrivateFieldSet(this, _appMain_isMovingWin, false, "f");
|
|
23612
23616
|
__classPrivateFieldGet(this, _appMain_instances, "m", _appMain_window).call(this, false, rct.x, rct.y, rct.width, rct.height);
|
|
23613
23617
|
}, _appMain_window = function _appMain_window(centering, x, y, w, h) {
|
|
23614
23618
|
if (__classPrivateFieldGet(this, _appMain_isMovingWin, "f"))
|
|
23615
23619
|
return;
|
|
23616
|
-
__classPrivateFieldSet(this, _appMain_isMovingWin, true, "f");
|
|
23617
23620
|
if (centering) {
|
|
23618
23621
|
const s = this.bw.getPosition();
|
|
23619
23622
|
x = (__classPrivateFieldGet(this, _appMain_screenRX, "f") - s[0]) * 0.5;
|
|
@@ -23633,7 +23636,7 @@ _a = appMain, _appMain_dsp = new WeakMap(), _appMain_screenRX = new WeakMap(), _
|
|
|
23633
23636
|
this.bw.setContentSize(w, h);
|
|
23634
23637
|
const hz = this.bw.getContentSize()[1];
|
|
23635
23638
|
this.bw.setContentSize(w, h * 2 - hz);
|
|
23636
|
-
|
|
23639
|
+
this.bw.webContents.send('save_win_pos', x, y);
|
|
23637
23640
|
};
|
|
23638
23641
|
_appMain_ins = { value: void 0 };
|
|
23639
23642
|
_appMain_menu_height = { value: 0 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appMain.d.ts","sourceRoot":"","sources":["../src/appMain.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,aAAa,
|
|
1
|
+
{"version":3,"file":"appMain.d.ts","sourceRoot":"","sources":["../src/appMain.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,aAAa,EAAoC,MAAM,UAAU,CAAC;AAOvF,qBAAa,OAAO;;IAkBC,OAAO,CAAC,QAAQ,CAAC,EAAE;IAAvC,OAAO;IA4HP,YAAY;IAIZ,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa;CAgDhF"}
|
package/core/lib/preload.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare type HPROC = {
|
|
|
12
12
|
createReadStream: (path: string) => Promise<ReadStream>;
|
|
13
13
|
readFileSync: (path: string) => Promise<string>;
|
|
14
14
|
readFile: (path: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void) => void;
|
|
15
|
-
writeFileSync: (path: string, data:
|
|
15
|
+
writeFileSync: (path: string, data: string | NodeJS.ArrayBufferView, o?: object) => Promise<void>;
|
|
16
16
|
appendFile: (path: string, data: string, callback: (err: Error) => void) => Promise<void>;
|
|
17
17
|
window: (centering: boolean, x: number, y: number, w: number, h: number) => void;
|
|
18
18
|
isSimpleFullScreen: () => Promise<boolean>;
|
|
@@ -21,6 +21,7 @@ export declare type HPROC = {
|
|
|
21
21
|
win_setTitle: (title: string) => void;
|
|
22
22
|
win_setContentSize: (w: number, h: number) => Promise<void>;
|
|
23
23
|
win_setSize: (w: number, h: number) => Promise<void>;
|
|
24
|
+
showMessageBox: (o: Electron.MessageBoxOptions) => Promise<Electron.MessageBoxReturnValue>;
|
|
24
25
|
capturePage: (fn: string) => Promise<void>;
|
|
25
26
|
navigate_to: (url: string) => void;
|
|
26
27
|
openDevTools: () => void;
|
|
@@ -31,6 +32,7 @@ export declare type HPROC = {
|
|
|
31
32
|
Store_get: () => Promise<any>;
|
|
32
33
|
tarFs_pack: (path: string) => Promise<Pack>;
|
|
33
34
|
tarFs_extract: (path: string) => Promise<Extract>;
|
|
35
|
+
on: (channel: string, callback: Function) => void;
|
|
34
36
|
};
|
|
35
37
|
export declare type HINFO = {
|
|
36
38
|
getAppPath: string;
|
|
@@ -41,6 +43,8 @@ export declare type HINFO = {
|
|
|
41
43
|
env: {
|
|
42
44
|
[name: string]: any;
|
|
43
45
|
};
|
|
46
|
+
platform: string;
|
|
47
|
+
arch: string;
|
|
44
48
|
screenResolutionX: number;
|
|
45
49
|
screenResolutionY: number;
|
|
46
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preload.d.ts","sourceRoot":"","sources":["../src/preload.ts"],"names":[],"mappings":";AAQA,OAAO,EAAC,WAAW,EAA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AO,CAAC,CAAC;IACtC,SAAS,EAAG,MAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAE9B,UAAU,EAAI,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,aAAa,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAGlD,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,oBAAY,KAAK,GAAG;IACnB,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,OAAO,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,QAAQ,EAAG,MAAM,CAAC;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,GAAG,EAAK;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC9B,QAAQ,EAAG,MAAM,CAAC;IAClB,IAAI,EAAI,MAAM,CAAC;IACf,iBAAiB,EAAG,MAAM,CAAC;IAC3B,iBAAiB,EAAG,MAAM,CAAC;CAC3B,CAAA;AAID,eAAO,MAAM,KAAK,EAAG,KAgEpB,CAAC"}
|
package/core/lib/preload.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.hProc = {
|
|
|
33
33
|
win_setTitle: title => ipcRenderer.invoke('win_setTitle', title).catch(fncE),
|
|
34
34
|
win_setContentSize: (w, h) => ipcRenderer.invoke('win_setContentSize', w, h).catch(fncE),
|
|
35
35
|
win_setSize: (w, h) => ipcRenderer.invoke('win_setSize', w, h).catch(fncE),
|
|
36
|
+
showMessageBox: o => ipcRenderer.invoke('showMessageBox', o).catch(fncE),
|
|
36
37
|
capturePage: fn => ipcRenderer.invoke('capturePage', fn).catch(fncE),
|
|
37
38
|
navigate_to: url => ipcRenderer.invoke('navigate_to', url).catch(fncE),
|
|
38
39
|
openDevTools: () => ipcRenderer.invoke('openDevTools').catch(fncE),
|
|
@@ -43,6 +44,13 @@ exports.hProc = {
|
|
|
43
44
|
Store_get: () => ipcRenderer.invoke('Store_get').catch(fncE),
|
|
44
45
|
tarFs_pack: path => ipcRenderer.invoke('tarFs_pack', path).catch(fncE),
|
|
45
46
|
tarFs_extract: path => ipcRenderer.invoke('tarFs_extract', path).catch(fncE),
|
|
47
|
+
on: (ch, cb) => {
|
|
48
|
+
switch (ch) {
|
|
49
|
+
case 'save_win_pos':
|
|
50
|
+
ipcRenderer.on(ch, (e, x, y) => cb(e, x, y));
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
46
54
|
};
|
|
47
55
|
contextBridge.exposeInMainWorld('to_app', exports.hProc);
|
|
48
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerMng.d.ts","sourceRoot":"","sources":["../../src/sn/LayerMng.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2B,OAAO,EAAsF,MAAM,UAAU,CAAC;AAEhJ,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAQ,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAG9B,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAY,WAAW,EAAsF,MAAM,SAAS,CAAC;AAEpI,MAAM,WAAW,eAAe;IAAG,CAAC,GAAG,EAAG,UAAU,G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CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { SysNode } from './SysNode';
|
|
3
2
|
import { ITag, IHTag, IVariable, IData4Vari, IMain, HPlugin, HSysBaseArg } from './CmnInterface';
|
|
4
3
|
import { Application } from 'pixi.js';
|
|
@@ -11,7 +10,7 @@ export declare class SysApp extends SysNode {
|
|
|
11
10
|
});
|
|
12
11
|
protected loaded(hPlg: HPlugin, arg: HSysBaseArg): Promise<void>;
|
|
13
12
|
protected readFileSync: (path: string) => Promise<string>;
|
|
14
|
-
protected writeFileSync: (path: string, data:
|
|
13
|
+
protected writeFileSync: (path: string, data: string | NodeJS.ArrayBufferView, o?: object | undefined) => Promise<void>;
|
|
15
14
|
appendFile: (path: string, data: string, callback: (err: Error) => void) => Promise<void>;
|
|
16
15
|
ensureFileSync: (path: string) => Promise<void>;
|
|
17
16
|
protected $path_userdata: string;
|
|
@@ -22,8 +21,8 @@ export declare class SysApp extends SysNode {
|
|
|
22
21
|
copyBMFolder: (from: number, to: number) => Promise<void>;
|
|
23
22
|
eraseBMFolder: (place: number) => Promise<void>;
|
|
24
23
|
protected readonly close: () => boolean;
|
|
25
|
-
protected readonly _export:
|
|
26
|
-
protected readonly _import:
|
|
24
|
+
protected readonly _export: () => boolean;
|
|
25
|
+
protected readonly _import: () => boolean;
|
|
27
26
|
protected readonly navigate_to: ITag;
|
|
28
27
|
protected titleSub(title: string): void;
|
|
29
28
|
protected readonly tgl_full_scr: ITag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SysApp.d.ts","sourceRoot":"","sources":["../../src/sn/SysApp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SysApp.d.ts","sourceRoot":"","sources":["../../src/sn/SysApp.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,E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ITag;
|
|
53
53
|
setTitleInfo(txt: string): void;
|
|
54
54
|
decStr(ext: string, d: string): string;
|
|
55
|
-
dec(ext: string, d: ArrayBuffer): Promise<string |
|
|
55
|
+
dec(ext: string, d: ArrayBuffer): Promise<string | ArrayBuffer | HTMLImageElement | HTMLVideoElement>;
|
|
56
56
|
protected enc: (d: string) => string;
|
|
57
57
|
protected stk: () => string;
|
|
58
58
|
hash: (_data: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SysBase.d.ts","sourceRoot":"","sources":["../../src/sn/SysBase.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAiB,MAAM,gBAAgB,CAAC;AAG5K,OAAO,EAAC,WAAW,EAA+B,MAAM,SAAS,CAAC;AAGlE,qBAAa,OAAQ,YAAW,QAAQ;;IAG3B,QAAQ,CAAC,IAAI,EAAE,OAAO;IAAO,SAAS,CAAC,GAAG,EAAE,WAAW;IAFnE,WAAW,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAA;KAAC,CAAM;gBAE7B,IAAI,EAAE,OAAY,EAAY,GAAG,EAAE,WAAW;cACnD,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW;IAgBvD,IAAI,GAAG,WAAwB;IAC/B,IAAI,MAAM,YAA2B;IACrC,KAAK,QAAS,MAAM,uBAAe;IAEnC,UAAU,SAAK;IACf,UAAU,SAAK;IAEf,SAAS,CAAC,GAAG,EAAG,OAAO,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO;IAEpD,SAAS,CAAC,QAAQ,CAAC,IAAI;;;;MAAgC;IACvD,OAAO,CAAC,KAAK,EAAE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,QAAQ,CAAC,KAAK,EAAK,IAAI,CAQ/B;IAED,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAChC,SAAS,CAAG,YAAY,EAAG,IAAI,CAAc;IAC7C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAG,IAAI,CAAc;IACpD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAK,IAAI,CAAc;IAGhD,YAAY,CAAC,GAAG,EAAE,MAAM;IAQxB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IACvB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW;IAwCrC,SAAS,CAAC,GAAG,MAAO,MAAM,YAAM;IAChC,SAAS,CAAC,GAAG,eAAW;IACxB,IAAI,UAAW,MAAM,YAAO;IAE5B,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAS;IAC1C,SAAS,CAAC,eAAe,SAAM;IAC/B,IAAI,cAAc,WAAgC;IAClD,SAAS,CAAC,cAAc,SAAM;IAC9B,IAAI,aAAa,WAA+B;IAEhD,QAAQ,CAAC,cAAc,QAAS,MAAM,aAAU;IAC1C,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IACtC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,KAAI,IAAI;IACvF,cAAc,CAAC,KAAK,EAAE,MAAM;IAGlC,WAAW,SAAK;IAChB,UAAU,SAAK;IACf,SAAS,CAAC,YAAY;CAoBtB"}
|
package/core/lib/sn/SysNode.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export declare class SysNode extends SysBase {
|
|
|
6
6
|
protected readonly isApp = true;
|
|
7
7
|
savePic(fn: string, data_url: string): Promise<void>;
|
|
8
8
|
protected readFileSync(_path: string): Promise<string>;
|
|
9
|
-
protected writeFileSync(_path: string, _data:
|
|
9
|
+
protected writeFileSync(_path: string, _data: string | NodeJS.ArrayBufferView, _o?: object): Promise<void>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=SysNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SysNode.d.ts","sourceRoot":"","sources":["../../src/sn/SysNode.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEjD,qBAAa,OAAQ,SAAQ,OAAO;IACpB,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO;IAY5D,mBAA4B,KAAK,QAAQ;IAE1B,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;cAQnC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;cAC5C,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"SysNode.d.ts","sourceRoot":"","sources":["../../src/sn/SysNode.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEjD,qBAAa,OAAQ,SAAQ,OAAO;IACpB,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO;IAY5D,mBAA4B,KAAK,QAAQ;IAE1B,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;cAQnC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;cAC5C,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,EAAE,MAAM;CAEhG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@famibee/skynovel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.3",
|
|
4
4
|
"description": "webgl novelgame framework",
|
|
5
5
|
"main": "core/web.js",
|
|
6
6
|
"types": "core/lib/index.d.ts",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@types/store": "^2.0.2",
|
|
37
37
|
"@types/tar-fs": "^2.0.1",
|
|
38
38
|
"@types/xml2js": "^0.4.9",
|
|
39
|
-
"electron": "^16.0.
|
|
40
|
-
"mocha": "^9.1.
|
|
39
|
+
"electron": "^16.0.7",
|
|
40
|
+
"mocha": "^9.1.4",
|
|
41
41
|
"power-assert": "^1.6.1",
|
|
42
42
|
"rimraf": "^3.0.2",
|
|
43
43
|
"semantic-release": "^18.0.1",
|
|
44
44
|
"ts-loader": "^9.2.6",
|
|
45
45
|
"ts-node": "^10.4.0",
|
|
46
46
|
"typescript": "^4.5.4",
|
|
47
|
-
"webpack": "^5.
|
|
47
|
+
"webpack": "^5.66.0",
|
|
48
48
|
"webpack-cli": "^4.9.1",
|
|
49
|
-
"webpack-dev-server": "^4.7.
|
|
49
|
+
"webpack-dev-server": "^4.7.3"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "npm run wp && npm run test",
|
package/web.js
CHANGED
|
@@ -71564,7 +71564,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71564
71564
|
}));
|
|
71565
71565
|
else
|
|
71566
71566
|
__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()))));
|
|
71567
|
-
Promise.
|
|
71567
|
+
Promise.allSettled(a).then(async () => {
|
|
71568
71568
|
const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
|
|
71569
71569
|
rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
|
|
71570
71570
|
await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
|
|
@@ -71978,7 +71978,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71978
71978
|
hArg.wait = 0;
|
|
71979
71979
|
else if ('wait' in hArg)
|
|
71980
71980
|
(0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
|
|
71981
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
|
|
71982
71981
|
const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
|
|
71983
71982
|
const doRecLog = this.val.doRecLog();
|
|
71984
71983
|
if (!record)
|
|
@@ -71986,7 +71985,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71986
71985
|
tl.tagCh(txt.replaceAll('[r]', '\n'));
|
|
71987
71986
|
if (!record)
|
|
71988
71987
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
71989
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
|
|
71990
71988
|
return false;
|
|
71991
71989
|
}, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
|
|
71992
71990
|
const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
|
|
@@ -72070,7 +72068,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
72070
72068
|
}, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
|
|
72071
72069
|
if (!hArg.t)
|
|
72072
72070
|
throw '[tcy] tは必須です';
|
|
72073
|
-
hArg.text = '|
|
|
72071
|
+
hArg.text = '| 《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
|
|
72074
72072
|
return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
|
|
72075
72073
|
}, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
|
|
72076
72074
|
console.group('🥟 [dump_lay]');
|
|
@@ -72269,7 +72267,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
72269
72267
|
}
|
|
72270
72268
|
__classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
|
|
72271
72269
|
__classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
|
|
72272
|
-
await Promise.
|
|
72270
|
+
await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
|
|
72273
72271
|
__classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
|
|
72274
72272
|
__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");
|
|
72275
72273
|
__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");
|
|
@@ -72873,14 +72871,14 @@ const DebugMng_1 = __webpack_require__(/*! ./DebugMng */ "./core/src/sn/DebugMng
|
|
|
72873
72871
|
;
|
|
72874
72872
|
var BreakState;
|
|
72875
72873
|
(function (BreakState) {
|
|
72876
|
-
BreakState[BreakState["
|
|
72877
|
-
BreakState[BreakState["
|
|
72878
|
-
BreakState[BreakState["
|
|
72879
|
-
BreakState[BreakState["
|
|
72880
|
-
BreakState[BreakState["
|
|
72881
|
-
BreakState[BreakState["
|
|
72882
|
-
BreakState[BreakState["
|
|
72883
|
-
BreakState[BreakState["
|
|
72874
|
+
BreakState[BreakState["Running"] = 0] = "Running";
|
|
72875
|
+
BreakState[BreakState["Wait"] = 1] = "Wait";
|
|
72876
|
+
BreakState[BreakState["Break"] = 2] = "Break";
|
|
72877
|
+
BreakState[BreakState["Breaking"] = 3] = "Breaking";
|
|
72878
|
+
BreakState[BreakState["Step"] = 4] = "Step";
|
|
72879
|
+
BreakState[BreakState["Stepping"] = 5] = "Stepping";
|
|
72880
|
+
BreakState[BreakState["StepOuting"] = 6] = "StepOuting";
|
|
72881
|
+
BreakState[BreakState["StepOut"] = 7] = "StepOut";
|
|
72884
72882
|
})(BreakState || (BreakState = {}));
|
|
72885
72883
|
;
|
|
72886
72884
|
class ScriptIterator {
|
|
@@ -72909,14 +72907,14 @@ class ScriptIterator {
|
|
|
72909
72907
|
__classPrivateFieldSet(ScriptIterator, _a, {}, "f", _ScriptIterator_hFuncBP);
|
|
72910
72908
|
this.isBreak = () => false;
|
|
72911
72909
|
__classPrivateFieldGet(this, _ScriptIterator_hHook, "f").continue({});
|
|
72912
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
72910
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
|
|
72913
72911
|
},
|
|
72914
72912
|
restart: () => this.isBreak = () => false,
|
|
72915
72913
|
add_break: o => __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_regBreakPoint).call(this, o.fn, o.o),
|
|
72916
72914
|
data_break: o => {
|
|
72917
|
-
if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.
|
|
72915
|
+
if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.Running)
|
|
72918
72916
|
return;
|
|
72919
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
72917
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Wait, "f");
|
|
72920
72918
|
this.main.setLoop(false, `変数 ${o.dataId}【${o.old_v}】→【${o.new_v}】データブレーク`);
|
|
72921
72919
|
this.sys.callHook('stopOnDataBreakpoint', {});
|
|
72922
72920
|
this.sys.send2Dbg('stopOnDataBreakpoint', {});
|
|
@@ -72932,7 +72930,7 @@ class ScriptIterator {
|
|
|
72932
72930
|
if (__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_isIdxOverLast).call(this))
|
|
72933
72931
|
return;
|
|
72934
72932
|
__classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
|
|
72935
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
72933
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Breaking, "f");
|
|
72936
72934
|
this.main.setLoop(true);
|
|
72937
72935
|
this.main.resume();
|
|
72938
72936
|
},
|
|
@@ -72943,9 +72941,9 @@ class ScriptIterator {
|
|
|
72943
72941
|
const tkn = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get)];
|
|
72944
72942
|
this.sys.callHook(`stopOnStep${__classPrivateFieldGet(this, _ScriptIterator_REGSTEPIN, "f").test(tkn) ? 'In' : ''}`, {});
|
|
72945
72943
|
__classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
|
|
72946
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
72947
|
-
? BreakState.
|
|
72948
|
-
: BreakState.
|
|
72944
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Wait
|
|
72945
|
+
? BreakState.Step
|
|
72946
|
+
: BreakState.Stepping, "f");
|
|
72949
72947
|
this.main.setLoop(true);
|
|
72950
72948
|
this.main.resume();
|
|
72951
72949
|
},
|
|
@@ -72958,12 +72956,12 @@ class ScriptIterator {
|
|
|
72958
72956
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_go_stepover).call(this, o);
|
|
72959
72957
|
},
|
|
72960
72958
|
pause: () => {
|
|
72961
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
72959
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
72962
72960
|
this.main.setLoop(false, '一時停止');
|
|
72963
72961
|
this.sys.send2Dbg('stopOnStep', {});
|
|
72964
72962
|
},
|
|
72965
72963
|
stopOnEntry: () => {
|
|
72966
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
72964
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
72967
72965
|
this.main.setLoop(false, '一時停止');
|
|
72968
72966
|
this.sys.send2Dbg('stopOnEntry', {});
|
|
72969
72967
|
},
|
|
@@ -72973,7 +72971,7 @@ class ScriptIterator {
|
|
|
72973
72971
|
.replace(__classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_REG4CODE_FN), `$1/prj/$2/${__classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f")}$3`));
|
|
72974
72972
|
this.cnvPath4Dbg = (fn) => this.sys.pathBaseCnvSnPath4Dbg + fn.replace('/crypto_prj/', '/prj/');
|
|
72975
72973
|
_ScriptIterator_csDepth_macro_esc.set(this, 0);
|
|
72976
|
-
_ScriptIterator_breakState.set(this, BreakState.
|
|
72974
|
+
_ScriptIterator_breakState.set(this, BreakState.Running);
|
|
72977
72975
|
this.isBreak = (_token) => false;
|
|
72978
72976
|
_ScriptIterator_procDebugtag.set(this, (_tag_name) => { });
|
|
72979
72977
|
_ScriptIterator_evtMng.set(this, void 0);
|
|
@@ -73304,12 +73302,12 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73304
73302
|
this.sys.callHook(`stopOnStep${out ? 'Out' : ''}`, {});
|
|
73305
73303
|
__classPrivateFieldSet(this, _ScriptIterator_csDepth_macro_esc, __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length - (out ? 1 : 0), "f");
|
|
73306
73304
|
__classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
|
|
73307
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.
|
|
73305
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.StepOut : BreakState.StepOuting, "f");
|
|
73308
73306
|
this.main.setLoop(true);
|
|
73309
73307
|
this.main.resume();
|
|
73310
73308
|
}, _ScriptIterator_idxDx4Dbg_get = function _ScriptIterator_idxDx4Dbg_get() {
|
|
73311
|
-
return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
73312
|
-
|| __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
73309
|
+
return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Break
|
|
73310
|
+
|| __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Step ? 1 : 0;
|
|
73313
73311
|
}, _ScriptIterator_isIdxOverLast = function _ScriptIterator_isIdxOverLast() {
|
|
73314
73312
|
if (__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") < __classPrivateFieldGet(this, _ScriptIterator_script, "f").len)
|
|
73315
73313
|
return false;
|
|
@@ -73318,34 +73316,34 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73318
73316
|
return true;
|
|
73319
73317
|
}, _ScriptIterator_isBreak_base = function _ScriptIterator_isBreak_base(token) {
|
|
73320
73318
|
switch (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f")) {
|
|
73321
|
-
case BreakState.
|
|
73319
|
+
case BreakState.StepOuting:
|
|
73322
73320
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
73323
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
73321
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.StepOut, "f");
|
|
73324
73322
|
break;
|
|
73325
|
-
case BreakState.
|
|
73323
|
+
case BreakState.StepOut:
|
|
73326
73324
|
if (__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length !== __classPrivateFieldGet(this, _ScriptIterator_csDepth_macro_esc, "f"))
|
|
73327
73325
|
break;
|
|
73328
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
73326
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
73329
73327
|
this.main.setLoop(false, 'ステップ実行');
|
|
73330
73328
|
this.sys.send2Dbg('stopOnStep', {});
|
|
73331
73329
|
return true;
|
|
73332
|
-
case BreakState.
|
|
73330
|
+
case BreakState.Stepping:
|
|
73333
73331
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
73334
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
73332
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
|
|
73335
73333
|
break;
|
|
73336
|
-
case BreakState.
|
|
73334
|
+
case BreakState.Step:
|
|
73337
73335
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
73338
73336
|
this.main.setLoop(false, 'ステップ実行');
|
|
73339
73337
|
this.sys.send2Dbg('stopOnStep', {});
|
|
73340
73338
|
return true;
|
|
73341
|
-
case BreakState.
|
|
73339
|
+
case BreakState.Breaking:
|
|
73342
73340
|
__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
|
|
73343
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
73341
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
|
|
73344
73342
|
break;
|
|
73345
73343
|
default:
|
|
73346
73344
|
{
|
|
73347
73345
|
if ((0, Grammar_1.tagToken2Name)(token) in __classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_hFuncBP)) {
|
|
73348
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
73346
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
|
|
73349
73347
|
this.main.setLoop(false, `関数 ${token} ブレーク`);
|
|
73350
73348
|
this.sys.callHook('stopOnBreakpoint', {});
|
|
73351
73349
|
this.sys.send2Dbg('stopOnBreakpoint', {});
|
|
@@ -73365,8 +73363,8 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73365
73363
|
}
|
|
73366
73364
|
else if (('hitCondition' in o) && --o.hitCondition > 0)
|
|
73367
73365
|
break;
|
|
73368
|
-
const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
73369
|
-
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.
|
|
73366
|
+
const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Running;
|
|
73367
|
+
__classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
|
|
73370
73368
|
this.main.setLoop(false, isBreak ? ((o.condition ? '条件' : 'ヒットカウント') + 'ブレーク') : 'ステップ実行');
|
|
73371
73369
|
const type = isBreak ? 'stopOnBreakpoint' : 'stopOnStep';
|
|
73372
73370
|
this.sys.callHook(type, {});
|
|
@@ -73380,7 +73378,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73380
73378
|
if (o?.hitCondition)
|
|
73381
73379
|
--o.hitCondition;
|
|
73382
73380
|
}, _ScriptIterator_aStack = function _ScriptIterator_aStack() {
|
|
73383
|
-
const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.
|
|
73381
|
+
const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Breaking ? 1 : 0;
|
|
73384
73382
|
const tkn0 = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - 1 + idx_n];
|
|
73385
73383
|
const fn0 = __classPrivateFieldGet(this, _ScriptIterator_cnvSnPath4Dbg, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f"));
|
|
73386
73384
|
const tag_name0 = (0, Grammar_1.tagToken2Name)(tkn0);
|
|
@@ -74095,7 +74093,7 @@ class SoundMng {
|
|
|
74095
74093
|
[hArg.clickse, hArg.enterse, hArg.leavese].forEach(fn => {
|
|
74096
74094
|
if (!fn || sound_1.sound.exists(fn))
|
|
74097
74095
|
return;
|
|
74098
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, { preload: true, autoPlay: false });
|
|
74096
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, '', fn, { preload: true, autoPlay: false });
|
|
74099
74097
|
});
|
|
74100
74098
|
}
|
|
74101
74099
|
playLoopFromSaveObj() {
|
|
@@ -74206,7 +74204,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74206
74204
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
|
|
74207
74205
|
const fn = hArg.fn;
|
|
74208
74206
|
if (!fn)
|
|
74209
|
-
throw
|
|
74207
|
+
throw `[playse] fnは必須です buf:${buf}`;
|
|
74210
74208
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
74211
74209
|
&& __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
|
|
74212
74210
|
return false;
|
|
@@ -74237,11 +74235,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74237
74235
|
const snd = sound_1.sound.find(fn);
|
|
74238
74236
|
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf] = {
|
|
74239
74237
|
now_buf: buf,
|
|
74240
|
-
snd
|
|
74241
|
-
loop
|
|
74242
|
-
start_ms
|
|
74243
|
-
end_ms
|
|
74244
|
-
ret_ms
|
|
74238
|
+
snd,
|
|
74239
|
+
loop,
|
|
74240
|
+
start_ms,
|
|
74241
|
+
end_ms,
|
|
74242
|
+
ret_ms,
|
|
74245
74243
|
resume: false,
|
|
74246
74244
|
playing: () => true,
|
|
74247
74245
|
onend: () => {
|
|
@@ -74256,7 +74254,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74256
74254
|
},
|
|
74257
74255
|
};
|
|
74258
74256
|
const o = {
|
|
74259
|
-
loop
|
|
74257
|
+
loop,
|
|
74260
74258
|
volume: vol,
|
|
74261
74259
|
speed: (0, CmnLib_1.argChk_Num)(hArg, 'speed', 1),
|
|
74262
74260
|
sprites: {},
|
|
@@ -74341,14 +74339,14 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74341
74339
|
}
|
|
74342
74340
|
if (o2s.start >= d)
|
|
74343
74341
|
throw `[playse] ret_ms:${ret_ms} >= 音声ファイル再生時間:${d} は異常値です`;
|
|
74344
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o2);
|
|
74342
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o2);
|
|
74345
74343
|
};
|
|
74346
74344
|
}
|
|
74347
74345
|
__classPrivateFieldGet(this, _SoundMng_initVol, "f").call(this);
|
|
74348
74346
|
if (snd) {
|
|
74349
74347
|
snd.volume = vol;
|
|
74350
74348
|
if (sp_nm)
|
|
74351
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
|
|
74349
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
|
|
74352
74350
|
else if (snd.isPlayable) {
|
|
74353
74351
|
const ab = snd.options.source;
|
|
74354
74352
|
if (!(ab instanceof ArrayBuffer)
|
|
@@ -74368,13 +74366,15 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74368
74366
|
const old = o.loaded;
|
|
74369
74367
|
o.loaded = (e, snd) => { old?.(e, snd); this.main.resume(); };
|
|
74370
74368
|
}
|
|
74371
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
|
|
74369
|
+
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
|
|
74372
74370
|
return join;
|
|
74373
|
-
}, _SoundMng_playseSub = function _SoundMng_playseSub(fn, o) {
|
|
74371
|
+
}, _SoundMng_playseSub = function _SoundMng_playseSub(buf, fn, o) {
|
|
74374
74372
|
const url = this.cfg.searchPath(fn, Config_1.Config.EXT_SOUND);
|
|
74375
74373
|
if (url.slice(-4) !== '.bin') {
|
|
74376
74374
|
o.url = url;
|
|
74377
74375
|
const snd = sound_1.Sound.from(o);
|
|
74376
|
+
if (buf)
|
|
74377
|
+
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
|
|
74378
74378
|
if (!o.loop)
|
|
74379
74379
|
sound_1.sound.add(fn, snd);
|
|
74380
74380
|
return;
|
|
@@ -74388,6 +74388,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74388
74388
|
.load((_ldr, hRes) => {
|
|
74389
74389
|
o.source = hRes[fn]?.data;
|
|
74390
74390
|
const snd = sound_1.Sound.from(o);
|
|
74391
|
+
if (buf)
|
|
74392
|
+
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
|
|
74391
74393
|
if (!o.loop)
|
|
74392
74394
|
sound_1.sound.add(fn, snd);
|
|
74393
74395
|
});
|
|
@@ -74399,9 +74401,12 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74399
74401
|
return false;
|
|
74400
74402
|
}, _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) {
|
|
74401
74403
|
const buf = hArg.buf ?? 'SE';
|
|
74402
|
-
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
|
|
74403
74404
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
|
|
74404
|
-
__classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]
|
|
74405
|
+
const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
|
|
74406
|
+
if (oSb) {
|
|
74407
|
+
oSb.snd?.stop();
|
|
74408
|
+
oSb.onend();
|
|
74409
|
+
}
|
|
74405
74410
|
return false;
|
|
74406
74411
|
}, _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) {
|
|
74407
74412
|
const buf = hArg.buf ?? 'SE';
|
|
@@ -74997,7 +75002,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74997
75002
|
}
|
|
74998
75003
|
}
|
|
74999
75004
|
initVal(data, hTmp, comp) {
|
|
75000
|
-
const hn = document.location.hostname;
|
|
75005
|
+
const hn = encodeURIComponent(document.location.hostname);
|
|
75001
75006
|
hTmp['const.sn.isDebugger'] = (hn === 'localhost' || hn === '127.0.0.1');
|
|
75002
75007
|
this.val.defTmp('const.sn.displayState', () => __classPrivateFieldGet(this, _SysWeb_isFullScr, "f"));
|
|
75003
75008
|
const ns = this.cfg.getNs();
|
|
@@ -76641,7 +76646,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
76641
76646
|
};
|
|
76642
76647
|
function resolveAll() {
|
|
76643
76648
|
return readAll()
|
|
76644
|
-
.then(webFonts => Promise.
|
|
76649
|
+
.then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
|
|
76645
76650
|
.then(cssStrings => cssStrings.join('\n'));
|
|
76646
76651
|
}
|
|
76647
76652
|
function readAll() {
|