@famibee/skynovel 1.27.4 → 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/app.js CHANGED
@@ -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
- ps.width = s.width = `${CmnLib.cvsWidth}px`;
66384
- ps.height = s.height = `${CmnLib.cvsHeight}px`;
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
- cvs.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
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.add;
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 n in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
68612
- const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[n];
68613
- const x = Number(this.val.getVal(`const.sn.frm.${n}.x`));
68614
- const y = Number(this.val.getVal(`const.sn.frm.${n}.y`));
68615
- const w = Number(this.val.getVal(`const.sn.frm.${n}.width`));
68616
- const h = Number(this.val.getVal(`const.sn.frm.${n}.height`));
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.id;
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 frmnm = `const.sn.frm.${id}`;
68633
- if (this.val.getVal(`tmp:${frmnm}`))
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', frmnm, true);
68668
- this.val.setVal_Nochk('tmp', frmnm + '.alpha', a);
68669
- this.val.setVal_Nochk('tmp', frmnm + '.x', rct.x);
68670
- this.val.setVal_Nochk('tmp', frmnm + '.y', rct.y);
68671
- this.val.setVal_Nochk('tmp', frmnm + '.scale_x', sx);
68672
- this.val.setVal_Nochk('tmp', frmnm + '.scale_y', sy);
68673
- this.val.setVal_Nochk('tmp', frmnm + '.rotate', r);
68674
- this.val.setVal_Nochk('tmp', frmnm + '.width', rct.width);
68675
- this.val.setVal_Nochk('tmp', frmnm + '.height', rct.height);
68676
- this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
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.id;
68695
+ const { id, var_name } = hArg;
68690
68696
  if (!id)
68691
68697
  throw 'idは必須です';
68692
- const ifrm = document.getElementById(id);
68693
- if (!ifrm)
68698
+ const f = document.getElementById(id);
68699
+ if (!f)
68694
68700
  throw `id【${id}】はフレームではありません`;
68695
- const frmnm = `const.sn.frm.${id}`;
68696
- if (!this.val.getVal(`tmp:${frmnm}`))
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 = ifrm.contentWindow;
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', frmnm + '.' + var_name, (0, CmnLib_1.argChk_Boolean)(hArg, 'function', false) ? v() : v);
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.id;
68713
+ const { id, var_name, text } = hArg;
68709
68714
  if (!id)
68710
68715
  throw 'idは必須です';
68711
- const ifrm = document.getElementById(id);
68712
- if (!ifrm)
68716
+ const f = document.getElementById(id);
68717
+ if (!f)
68713
68718
  throw `id【${id}】はフレームではありません`;
68714
- const frmnm = `const.sn.frm.${id}`;
68715
- if (!this.val.getVal(`tmp:${frmnm}`))
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', frmnm + '.' + var_name, text);
68724
- const win = ifrm.contentWindow;
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.id;
68732
+ const { id } = hArg;
68730
68733
  if (!id)
68731
68734
  throw 'idは必須です';
68732
- const ifrm = document.getElementById(id);
68733
- if (!ifrm)
68735
+ const f = document.getElementById(id);
68736
+ if (!f)
68734
68737
  throw `id【${id}】はフレームではありません`;
68735
- const frmnm = `const.sn.frm.${id}`;
68736
- if (!this.val.getVal(`tmp:${frmnm}`))
68738
+ const vn = 'const.sn.frm.' + id;
68739
+ if (!this.val.getVal('tmp:' + vn))
68737
68740
  throw `frame【${id}】が読み込まれていません`;
68738
- if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false)) {
68739
- ifrm.style.zIndex = String(__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f"));
68740
- }
68741
- else if (hArg.index) {
68742
- ifrm.style.zIndex = String((0, CmnLib_1.argChk_Num)(hArg, 'index', 0));
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
- ifrm.style.zIndex = '-' + String(__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f"));
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
- ifrm.style.opacity = a;
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
- ifrm.style.left = this.sys.ofsLeft4frm + rct.x * scale + 'px';
68755
- ifrm.style.top = this.sys.ofsTop4frm + rct.y * scale + 'px';
68756
- this.val.setVal_Nochk('tmp', frmnm + '.x', rct.x);
68757
- this.val.setVal_Nochk('tmp', frmnm + '.y', rct.y);
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
- ifrm.style.transform = `scale(${sx}, ${sy}) rotate(${r}deg)`;
68764
- this.val.setVal_Nochk('tmp', frmnm + '.scale_x', sx);
68765
- this.val.setVal_Nochk('tmp', frmnm + '.scale_y', sy);
68766
- this.val.setVal_Nochk('tmp', frmnm + '.rotate', r);
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
- ifrm.width = String(rct.width * scale);
68770
- this.val.setVal_Nochk('tmp', frmnm + '.width', rct.width);
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
- ifrm.height = String(rct.height * scale);
68774
- this.val.setVal_Nochk('tmp', frmnm + '.height', rct.height);
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
- ifrm.style.display = v ? 'inline' : 'none';
68779
- this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
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
- ifrm.style.backgroundColor = hArg.b_color;
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 = ifrm.contentDocument.body.querySelectorAll('input,select');
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.id;
68791
+ const { id } = hArg;
68791
68792
  if (!id)
68792
68793
  throw 'idは必須です';
68793
- const ifrm = document.getElementById(id);
68794
- if (!ifrm)
68794
+ const f = document.getElementById(id);
68795
+ if (!f)
68795
68796
  throw `id【${id}】はフレームではありません`;
68796
- const frmnm = `const.sn.frm.${id}`;
68797
- if (!this.val.getVal(`tmp:${frmnm}`, 0))
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 = ifrm.style.opacity;
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:${frmnm}.x`));
68805
- hNow.y = Number(this.val.getVal(`tmp:${frmnm}.y`));
68806
- hNow.sx = Number(this.val.getVal(`tmp:${frmnm}.scale_x`));
68807
- hNow.sy = Number(this.val.getVal(`tmp:${frmnm}.scale_y`));
68808
- hNow.r = Number(this.val.getVal(`tmp:${frmnm}.rotate`));
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:${frmnm}.width`);
68812
+ hNow.w = this.val.getVal(`tmp:${vn}.width`);
68812
68813
  if ('height' in hArg)
68813
- hNow.h = this.val.getVal(`tmp:${frmnm}.height`);
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
- ifrm.style.opacity = hNow.a;
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
- ifrm.style.left = this.sys.ofsLeft4frm + hNow.x * scale + 'px';
68837
- ifrm.style.top = this.sys.ofsTop4frm + hNow.y * scale + 'px';
68838
- ifrm.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
68839
- this.val.setVal_Nochk('tmp', frmnm + '.x', hNow.x);
68840
- this.val.setVal_Nochk('tmp', frmnm + '.y', hNow.y);
68841
- this.val.setVal_Nochk('tmp', frmnm + '.scale_x', hNow.sx);
68842
- this.val.setVal_Nochk('tmp', frmnm + '.scale_y', hNow.sy);
68843
- this.val.setVal_Nochk('tmp', frmnm + '.rotate', hNow.r);
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
- ifrm.width = hNow.w * scale + 'px';
68851
- this.val.setVal_Nochk('tmp', frmnm + '.width', hNow.w);
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
- ifrm.height = hNow.h * scale + 'px';
68859
- this.val.setVal_Nochk('tmp', frmnm + '.height', hNow.h);
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.name;
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.char;
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.fn;
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.fn;
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.name;
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 = hArg.fn ?? name;
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 bm_name = hArg.blendmode;
69582
- if (!bm_name)
69579
+ const { blendmode } = hArg;
69580
+ if (!blendmode)
69583
69581
  return;
69584
- const bmn = Layer.getBlendmodeNum(bm_name);
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(cvs))
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(cvs);
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);
@@ -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.fn;
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.layer;
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.dive;
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 txt = hArg.text;
70625
- if (!txt)
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;
@@ -70634,7 +70630,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70634
70630
  const doRecLog = this.val.doRecLog();
70635
70631
  if (!record)
70636
70632
  this.val.setVal_Nochk('save', 'sn.doRecLog', record);
70637
- tl.tagCh(txt.replaceAll('[r]', '\n'));
70633
+ tl.tagCh(text.replaceAll('[r]', '\n'));
70638
70634
  if (!record)
70639
70635
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
70640
70636
  return false;
@@ -70647,7 +70643,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70647
70643
  const tf = lay;
70648
70644
  return tf;
70649
70645
  }, _LayerMng_$current = function _LayerMng_$current(hArg) {
70650
- const layer = hArg.layer;
70646
+ const { layer } = hArg;
70651
70647
  if (!layer)
70652
70648
  throw '[current] layerは必須です';
70653
70649
  __classPrivateFieldSet(this, _LayerMng_pgTxtlay, __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer], "f");
@@ -70706,10 +70702,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70706
70702
  this.val.setVal_Nochk('save', 'const.sn.sLog', (hArg.text) ? `[{text:"${hArg.text}"}]` : '[]');
70707
70703
  return false;
70708
70704
  }, _LayerMng_ruby2 = function _LayerMng_ruby2(hArg) {
70709
- const t = hArg.t;
70705
+ const { t, r } = hArg;
70710
70706
  if (!t)
70711
70707
  throw '[ruby2] tは必須です';
70712
- const r = hArg.r;
70713
70708
  if (!r)
70714
70709
  throw '[ruby2] rは必須です';
70715
70710
  hArg.text = '|' + t + '《' + r + '》';
@@ -72060,7 +72055,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72060
72055
  return a;
72061
72056
  }, _ScriptIterator_let_ml = function _ScriptIterator_let_ml(hArg) {
72062
72057
  var _b;
72063
- const name = hArg.name;
72058
+ const { name } = hArg;
72064
72059
  if (!name)
72065
72060
  throw 'nameは必須です';
72066
72061
  let ml = '';
@@ -72118,7 +72113,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72118
72113
  }
72119
72114
  return ret;
72120
72115
  }, _ScriptIterator_dump_script = function _ScriptIterator_dump_script(hArg) {
72121
- const set_fnc = hArg.set_fnc;
72116
+ const { set_fnc, break_fnc } = hArg;
72122
72117
  if (!set_fnc)
72123
72118
  throw 'set_fncは必須です';
72124
72119
  __classPrivateFieldSet(this, _ScriptIterator_fncSet, globalThis[set_fnc], "f");
@@ -72138,7 +72133,6 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72138
72133
  __classPrivateFieldGet(this, _ScriptIterator_fncBreak, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"), goto);
72139
72134
  };
72140
72135
  this.noticeBreak(true);
72141
- const break_fnc = hArg.break_fnc;
72142
72136
  if (!break_fnc)
72143
72137
  return false;
72144
72138
  __classPrivateFieldSet(this, _ScriptIterator_fncBreak, globalThis[break_fnc], "f");
@@ -72156,7 +72150,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72156
72150
  return false;
72157
72151
  }, _ScriptIterator_if = function _ScriptIterator_if(hArg) {
72158
72152
  var _b, _c;
72159
- const exp = hArg.exp;
72153
+ const { exp } = hArg;
72160
72154
  if (!exp)
72161
72155
  throw 'expは必須です';
72162
72156
  if (exp.charAt(0) === '&')
@@ -72225,7 +72219,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72225
72219
  }, _ScriptIterator_call = function _ScriptIterator_call(hArg) {
72226
72220
  if (!(0, CmnLib_1.argChk_Boolean)(hArg, 'count', false))
72227
72221
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_eraseKidoku).call(this);
72228
- const fn = hArg.fn;
72222
+ const { fn } = hArg;
72229
72223
  if (fn)
72230
72224
  __classPrivateFieldGet(this, _ScriptIterator_cnvSnPath, "f").call(this, fn);
72231
72225
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_callSub).call(this, { ':hEvt1Time': __classPrivateFieldGet(this, _ScriptIterator_evtMng, "f").popLocalEvts(), ':hMp': this.val.cloneMp() });
@@ -72256,7 +72250,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72256
72250
  __classPrivateFieldSet(this, _ScriptIterator_posAPageLog, -1, "f");
72257
72251
  return false;
72258
72252
  }
72259
- const to = hArg.to;
72253
+ const { to } = hArg;
72260
72254
  if (!to)
72261
72255
  throw 'clearかtoは必須です';
72262
72256
  const oldPos = __classPrivateFieldGet(this, _ScriptIterator_posAPageLog, "f");
@@ -72532,7 +72526,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72532
72526
  return false;
72533
72527
  }, _ScriptIterator_macro = function _ScriptIterator_macro(hArg) {
72534
72528
  var _b, _c;
72535
- const name = hArg.name;
72529
+ const { name } = hArg;
72536
72530
  if (!name)
72537
72531
  throw 'nameは必須です';
72538
72532
  if (name in this.hTag)
@@ -72782,7 +72776,7 @@ class SoundMng {
72782
72776
  }
72783
72777
  exports.SoundMng = SoundMng;
72784
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) {
72785
- const buf = hArg.buf ?? 'SE';
72779
+ const { buf = 'SE' } = hArg;
72786
72780
  const bvn = 'const.sn.sound.' + buf + '.volume';
72787
72781
  const arg_vol = __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_getVol).call(this, hArg, 1);
72788
72782
  if (Number(this.val.getVal('sys:' + bvn)) === arg_vol)
@@ -72801,7 +72795,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72801
72795
  return vol;
72802
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) {
72803
72797
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
72804
- const buf = hArg.buf ?? 'SE';
72798
+ const { buf = 'SE' } = hArg;
72805
72799
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
72806
72800
  if (!oSb?.playing() || !oSb.snd)
72807
72801
  return false;
@@ -72852,9 +72846,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72852
72846
  (0, CmnLib_1.argChk_Boolean)(hArg, 'loop', true);
72853
72847
  return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playse).call(this, hArg);
72854
72848
  }, _SoundMng_playse = function _SoundMng_playse(hArg) {
72855
- const buf = hArg.buf ?? 'SE';
72849
+ const { buf = 'SE', fn } = hArg;
72856
72850
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
72857
- const fn = hArg.fn;
72858
72851
  if (!fn)
72859
72852
  throw `[playse] fnは必須です buf:${buf}`;
72860
72853
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
@@ -73052,7 +73045,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73052
73045
  sound_1.sound.stopAll();
73053
73046
  return false;
73054
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) {
73055
- const buf = hArg.buf ?? 'SE';
73048
+ const { buf = 'SE' } = hArg;
73056
73049
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
73057
73050
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
73058
73051
  if (oSb) {
@@ -73061,17 +73054,17 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73061
73054
  }
73062
73055
  return false;
73063
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) {
73064
- const buf = hArg.buf ?? 'SE';
73057
+ const { buf = 'SE' } = hArg;
73065
73058
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
73066
73059
  if (!oSb?.twFade || !oSb.playing())
73067
73060
  return false;
73068
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));
73069
73062
  }, _SoundMng_stopfadese = function _SoundMng_stopfadese(hArg) {
73070
- const buf = hArg.buf ?? 'SE';
73063
+ const { buf = 'SE' } = hArg;
73071
73064
  __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.twFade?.stop().end();
73072
73065
  return false;
73073
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) {
73074
- const buf = hArg.buf ?? 'SE';
73067
+ const { buf = 'SE' } = hArg;
73075
73068
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
73076
73069
  if (!oSb?.playing() || oSb.loop)
73077
73070
  return false;
@@ -73084,8 +73077,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73084
73077
  oSb2.onend();
73085
73078
  }, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', false), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
73086
73079
  }, _SoundMng_xchgbuf = function _SoundMng_xchgbuf(hArg) {
73087
- const buf1 = hArg.buf ?? 'SE';
73088
- const buf2 = hArg.buf2 ?? 'SE';
73080
+ const { buf: buf1 = 'SE', buf2 = 'SE' } = hArg;
73089
73081
  if (buf1 === buf2)
73090
73082
  return false;
73091
73083
  const sb1 = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf1];
@@ -73254,7 +73246,7 @@ class SysApp extends SysNode_1.SysNode {
73254
73246
  return false;
73255
73247
  };
73256
73248
  this.navigate_to = hArg => {
73257
- const url = hArg.url;
73249
+ const { url } = hArg;
73258
73250
  if (!url)
73259
73251
  throw '[navigate_to] urlは必須です';
73260
73252
  to_app.navigate_to(url);
@@ -73279,29 +73271,12 @@ class SysApp extends SysNode_1.SysNode {
73279
73271
  return false;
73280
73272
  };
73281
73273
  this.tgl_full_scr_sub = async () => {
73282
- const st = this.appPixi.view.style;
73283
73274
  if (await to_app.isSimpleFullScreen()) {
73284
73275
  await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
73285
- st.width = CmnLib_1.CmnLib.stageW + 'px';
73286
- st.height = CmnLib_1.CmnLib.stageH + 'px';
73287
- st.marginLeft = '0px';
73288
- st.marginTop = '0px';
73289
73276
  this.reso4frame = 1;
73290
73277
  }
73291
73278
  else {
73292
- const w = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
73293
- const h = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
73294
- const ratioWidth = w / CmnLib_1.CmnLib.stageW;
73295
- const ratioHeight = h / CmnLib_1.CmnLib.stageH;
73296
- const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
73297
73279
  await to_app.setSimpleFullScreen(true, screen.width, screen.height);
73298
- st.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
73299
- st.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
73300
- if (ratioWidth >= ratioHeight) {
73301
- st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
73302
- }
73303
- else
73304
- st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
73305
73280
  await to_app.win_setContentSize(screen.width, screen.height);
73306
73281
  const cr = this.appPixi.view.getBoundingClientRect();
73307
73282
  this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
@@ -73309,7 +73284,7 @@ class SysApp extends SysNode_1.SysNode {
73309
73284
  this.resizeFrames();
73310
73285
  };
73311
73286
  this.update_check = hArg => {
73312
- const url = hArg.url;
73287
+ const { url } = hArg;
73313
73288
  if (!url)
73314
73289
  throw '[update_check] urlは必須です';
73315
73290
  if (url.slice(-1) !== '/')
@@ -73593,7 +73568,7 @@ class SysBase {
73593
73568
  this._import = () => false;
73594
73569
  this.navigate_to = () => false;
73595
73570
  this.title = hArg => {
73596
- const text = hArg.text;
73571
+ const { text } = hArg;
73597
73572
  if (!text)
73598
73573
  throw '[title] textは必須です';
73599
73574
  __classPrivateFieldSet(this, _SysBase_main_title, text, "f");
@@ -73763,10 +73738,7 @@ class SysBase {
73763
73738
  __classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
73764
73739
  }
73765
73740
  toast(nm) {
73766
- const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
73767
- if (!cvs)
73768
- return;
73769
- const p = cvs.parentNode;
73741
+ const p = this.appPixi.view.parentNode;
73770
73742
  p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
73771
73743
  const img = document.createElement('img');
73772
73744
  const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
@@ -73780,7 +73752,7 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
73780
73752
  img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
73781
73753
  if (!td.ease)
73782
73754
  img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
73783
- p.insertBefore(img, cvs);
73755
+ p.insertBefore(img, this.appPixi.view);
73784
73756
  }
73785
73757
  setFire(fire) { this.fire = fire; }
73786
73758
  addHook(fnc) { __classPrivateFieldGet(this, _SysBase_aFncHook, "f").push(fnc); }
@@ -73803,20 +73775,18 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
73803
73775
  async ensureFileSync(_path) { }
73804
73776
  resizeFrames() {
73805
73777
  const cr = this.appPixi.view.getBoundingClientRect();
73806
- const a = document.getElementsByTagName('iframe');
73807
- const len = a.length;
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;
73808
73782
  for (let i = 0; i < len; ++i) {
73809
- const it = a[i];
73810
- const frmnm = `const.sn.frm.${it.id}`;
73811
- it.style.left = this.ofsLeft4frm + cr.left
73812
- + Number(this.val.getVal(`tmp:${frmnm}.x`)) * this.reso4frame
73813
- + 'px';
73814
- it.style.top = this.ofsTop4frm + cr.top
73815
- + Number(this.val.getVal(`tmp:${frmnm}.y`)) * this.reso4frame
73816
- + 'px';
73817
- it.width = String(Number(this.val.getVal(`tmp:${frmnm}.width`))
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'))
73818
73788
  * this.reso4frame);
73819
- it.height = String(Number(this.val.getVal(`tmp:${frmnm}.height`))
73789
+ f.height = String(Number(this.val.getVal(tvn + '.height'))
73820
73790
  * this.reso4frame);
73821
73791
  }
73822
73792
  }
@@ -74459,7 +74429,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
74459
74429
  const o = TxtStage_1.TxtStage.ch_in_style(hArg);
74460
74430
  const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
74461
74431
  const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
74462
- const name = hArg.name;
74432
+ const { name } = hArg;
74463
74433
  (0, CmnLib_1.addStyle)(`
74464
74434
  .sn_ch_in_${name} {
74465
74435
  position: relative;
@@ -74481,7 +74451,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
74481
74451
  const o = TxtStage_1.TxtStage.ch_out_style(hArg);
74482
74452
  const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
74483
74453
  const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
74484
- const name = hArg.name;
74454
+ const { name } = hArg;
74485
74455
  (0, CmnLib_1.addStyle)(`
74486
74456
  .go_ch_out_${name} {
74487
74457
  position: relative;
@@ -74498,41 +74468,41 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
74498
74468
  }, _TxtLayer_autowc = function _TxtLayer_autowc(hArg) {
74499
74469
  __classPrivateFieldSet(TxtLayer, _a, (0, CmnLib_1.argChk_Boolean)(hArg, 'enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)), "f", _TxtLayer_doAutoWc);
74500
74470
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.enabled', __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc));
74501
- const ch = hArg.text;
74471
+ const { text } = hArg;
74502
74472
  if (('text' in hArg) !== ('time' in hArg))
74503
74473
  throw '[autowc] textとtimeは同時指定必須です';
74504
- __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', ch);
74505
- if (!ch) {
74474
+ __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.text', text);
74475
+ if (!text) {
74506
74476
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', '');
74507
74477
  return false;
74508
74478
  }
74509
- const len = ch.length;
74479
+ const len = text.length;
74510
74480
  if (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc) && len === 0)
74511
74481
  throw '[autowc] enabled === false かつ text === "" は許されません';
74512
74482
  const a = String(hArg.time).split(',');
74513
74483
  if (a.length !== len)
74514
74484
  throw '[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい';
74515
74485
  __classPrivateFieldSet(TxtLayer, _a, {}, "f", _TxtLayer_hAutoWc);
74516
- a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[ch[i]] = (0, CmnLib_1.uint)(v));
74486
+ a.forEach((v, i) => __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[text[i]] = (0, CmnLib_1.uint)(v));
74517
74487
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_val).setVal_Nochk('save', 'const.sn.autowc.time', hArg.time);
74518
74488
  return false;
74519
74489
  }, _TxtLayer_set_ch_in = function _TxtLayer_set_ch_in(hArg) {
74520
- const ins = hArg.in_style;
74521
- if (!ins)
74490
+ const { in_style } = hArg;
74491
+ if (!in_style)
74522
74492
  return;
74523
- const cis = TxtStage_1.TxtStage.getChInStyle(ins);
74493
+ const cis = TxtStage_1.TxtStage.getChInStyle(in_style);
74524
74494
  if (!cis)
74525
- throw `存在しないin_style【${ins}】です`;
74526
- __classPrivateFieldSet(this, _TxtLayer_$ch_in_style, ins, "f");
74495
+ throw `存在しないin_style【${in_style}】です`;
74496
+ __classPrivateFieldSet(this, _TxtLayer_$ch_in_style, in_style, "f");
74527
74497
  __classPrivateFieldSet(this, _TxtLayer_ch_in_join, cis.join, "f");
74528
74498
  }, _TxtLayer_set_ch_out = function _TxtLayer_set_ch_out(hArg) {
74529
- const outs = hArg.out_style;
74530
- if (!outs)
74499
+ const { out_style } = hArg;
74500
+ if (!out_style)
74531
74501
  return;
74532
- const cos = TxtStage_1.TxtStage.getChOutStyle(outs);
74502
+ const cos = TxtStage_1.TxtStage.getChOutStyle(out_style);
74533
74503
  if (!cos)
74534
- throw `存在しないout_style【${outs}】です`;
74535
- __classPrivateFieldSet(this, _TxtLayer_$ch_out_style, outs, "f");
74504
+ throw `存在しないout_style【${out_style}】です`;
74505
+ __classPrivateFieldSet(this, _TxtLayer_$ch_out_style, out_style, "f");
74536
74506
  }, _TxtLayer_drawBack = function _TxtLayer_drawBack(hArg, fncComp) {
74537
74507
  if ('back_clear' in hArg) {
74538
74508
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'back_clear', false)) {
@@ -74721,7 +74691,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
74721
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");
74722
74692
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
74723
74693
  };
74724
- var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _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;
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;
74725
74695
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74726
74696
  exports.TxtStage = void 0;
74727
74697
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -74774,7 +74744,7 @@ class TxtStage extends pixi_js_1.Container {
74774
74744
  _TxtStage_sss.set(this, undefined);
74775
74745
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
74776
74746
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
74777
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cvs).parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
74747
+ __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_parSn).appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
74778
74748
  this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
74779
74749
  this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
74780
74750
  __classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
@@ -74782,7 +74752,7 @@ class TxtStage extends pixi_js_1.Container {
74782
74752
  }
74783
74753
  static init(cfg) {
74784
74754
  __classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
74785
- __classPrivateFieldSet(TxtStage, _a, document.getElementById(CmnLib_1.CmnLib.SN_ID), "f", _TxtStage_cvs);
74755
+ __classPrivateFieldSet(TxtStage, _a, document.getElementById(CmnLib_1.CmnLib.SN_ID).parentElement, "f", _TxtStage_parSn);
74786
74756
  __classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
74787
74757
  __classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
74788
74758
  __classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
@@ -75099,7 +75069,7 @@ class TxtStage extends pixi_js_1.Container {
75099
75069
  }
75100
75070
  static getChInStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChInStyle)[name]; }
75101
75071
  static ch_in_style(hArg) {
75102
- const name = hArg.name;
75072
+ const { name } = hArg;
75103
75073
  if (!name)
75104
75074
  throw 'nameは必須です';
75105
75075
  __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
@@ -75125,7 +75095,7 @@ class TxtStage extends pixi_js_1.Container {
75125
75095
  }
75126
75096
  static getChOutStyle(name) { return __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_hChOutStyle)[name]; }
75127
75097
  static ch_out_style(hArg) {
75128
- const name = hArg.name;
75098
+ const { name } = hArg;
75129
75099
  if (!name)
75130
75100
  throw 'nameは必須です';
75131
75101
  __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
@@ -75621,7 +75591,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
75621
75591
  __classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
75622
75592
  };
75623
75593
  _TxtStage_cfg = { value: void 0 };
75624
- _TxtStage_cvs = { value: void 0 };
75594
+ _TxtStage_parSn = { value: void 0 };
75625
75595
  _TxtStage_evtMng = { value: void 0 };
75626
75596
  _TxtStage_hWarning = { value: {
75627
75597
  backgroundColor: 0,
@@ -75988,7 +75958,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
75988
75958
  __classPrivateFieldGet(this, _Variable_sys, "f").copyBMFolder(from, to);
75989
75959
  return false;
75990
75960
  }, _Variable_erasebookmark = function _Variable_erasebookmark(hArg) {
75991
- const place = hArg.place;
75961
+ const { place } = hArg;
75992
75962
  if (!place)
75993
75963
  throw 'placeは必須です';
75994
75964
  delete __classPrivateFieldGet(this, _Variable_data, "f").mark[place];
@@ -76032,7 +76002,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
76032
76002
  __classPrivateFieldGet(this, _Variable_instances, "m", _Variable_let).call(this, hArg);
76033
76003
  return false;
76034
76004
  }, _Variable_let_index_of = function _Variable_let_index_of(hArg) {
76035
- const val = hArg.val;
76005
+ const { val } = hArg;
76036
76006
  if (!val)
76037
76007
  throw 'valは必須です';
76038
76008
  const start = (0, CmnLib_1.argChk_Num)(hArg, 'start', 0);
@@ -76046,7 +76016,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
76046
76016
  }, _Variable_let_replace = function _Variable_let_replace(hArg) {
76047
76017
  if (!hArg.reg)
76048
76018
  throw 'regは必須です';
76049
- const flags = hArg.flags;
76019
+ const { flags } = hArg;
76050
76020
  const reg = (!flags)
76051
76021
  ? new RegExp(hArg.reg)
76052
76022
  : new RegExp(hArg.reg, flags);
@@ -76061,7 +76031,7 @@ _a = Variable, _Variable_hScopes = new WeakMap(), _Variable_hSave = new WeakMap(
76061
76031
  }, _Variable_let_search = function _Variable_let_search(hArg) {
76062
76032
  if (!hArg.reg)
76063
76033
  throw 'regは必須です';
76064
- const flags = hArg.flags;
76034
+ const { flags } = hArg;
76065
76035
  const reg = (!flags)
76066
76036
  ? new RegExp(hArg.reg)
76067
76037
  : new RegExp(hArg.reg, flags);