@famibee/skynovel 1.27.5 → 1.27.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app.js CHANGED
@@ -66337,71 +66337,10 @@ function getExt(p) { return (p.match(REG_EXT) ?? [''])[1]; }
66337
66337
  exports.getExt = getExt;
66338
66338
  const platform = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js");
66339
66339
  class CmnLib {
66340
- static cvsResize(cvs) {
66341
- const bk_cw = CmnLib.cvsWidth;
66342
- const bk_ch = CmnLib.cvsHeight;
66343
- let w = globalThis.innerWidth;
66344
- let h = globalThis.innerHeight;
66345
- const angle = screen.orientation?.angle ?? 0;
66346
- const lp = angle % 180 === 0 ? 'p' : 'l';
66347
- if (CmnLib.isMobile &&
66348
- ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
66349
- [w, h] = [h, w];
66350
- if (argChk_Boolean(CmnLib.hDip, 'expanding', true) ||
66351
- CmnLib.stageW > w ||
66352
- CmnLib.stageH > h) {
66353
- if (CmnLib.stageW / CmnLib.stageH <= w / h) {
66354
- CmnLib.cvsHeight = h;
66355
- CmnLib.cvsWidth = CmnLib.stageW / CmnLib.stageH * h;
66356
- }
66357
- else {
66358
- CmnLib.cvsWidth = w;
66359
- CmnLib.cvsHeight = CmnLib.stageH / CmnLib.stageW * w;
66360
- }
66361
- CmnLib.cvsScale = CmnLib.cvsWidth / CmnLib.stageW;
66362
- const cr = cvs.getBoundingClientRect();
66363
- CmnLib.ofsPadLeft_Dom2PIXI = (CmnLib.isMobile
66364
- ? (globalThis.innerWidth - CmnLib.cvsWidth) / 2
66365
- : cr.left)
66366
- * (1 - CmnLib.cvsScale);
66367
- CmnLib.ofsPadTop_Dom2PIXI = (CmnLib.isMobile
66368
- ? (globalThis.innerHeight - CmnLib.cvsHeight) / 2
66369
- : cr.top)
66370
- * (1 - CmnLib.cvsScale);
66371
- }
66372
- else {
66373
- CmnLib.cvsWidth = CmnLib.stageW;
66374
- CmnLib.cvsHeight = CmnLib.stageH;
66375
- CmnLib.cvsScale = 1;
66376
- CmnLib.ofsPadLeft_Dom2PIXI = 0;
66377
- CmnLib.ofsPadTop_Dom2PIXI = 0;
66378
- }
66379
- if (cvs.parentElement) {
66380
- const ps = cvs.parentElement.style;
66381
- ps.position = 'relative';
66382
- ps.width = `${CmnLib.cvsWidth}px`;
66383
- ps.height = `${CmnLib.cvsHeight}px`;
66384
- const s = cvs.style;
66385
- if (CmnLib.isFullScr) {
66386
- s.width = '';
66387
- s.height = '';
66388
- }
66389
- else {
66390
- s.width = ps.width;
66391
- s.height = ps.height;
66392
- }
66393
- }
66394
- return bk_cw !== CmnLib.cvsWidth || bk_ch !== CmnLib.cvsHeight;
66395
- }
66396
66340
  }
66397
66341
  exports.CmnLib = CmnLib;
66398
66342
  CmnLib.stageW = 0;
66399
66343
  CmnLib.stageH = 0;
66400
- CmnLib.ofsPadLeft_Dom2PIXI = 0;
66401
- CmnLib.ofsPadTop_Dom2PIXI = 0;
66402
- CmnLib.cvsWidth = 0;
66403
- CmnLib.cvsHeight = 0;
66404
- CmnLib.cvsScale = 1;
66405
66344
  CmnLib.debugLog = false;
66406
66345
  CmnLib.isSafari = platform.name === 'Safari';
66407
66346
  CmnLib.isFirefox = platform.name === 'Firefox';
@@ -66410,11 +66349,7 @@ CmnLib.isMobile = !new RegExp('(Windows|OS X)').test(platform.os?.family ?? '');
66410
66349
  CmnLib.hDip = {};
66411
66350
  CmnLib.isDbg = false;
66412
66351
  CmnLib.isPackaged = false;
66413
- CmnLib.isRetina = false;
66414
66352
  CmnLib.isDarkMode = false;
66415
- CmnLib.retinaRate = 1;
66416
- CmnLib.SN_ID = 'skynovel';
66417
- CmnLib.isFullScr = false;
66418
66353
 
66419
66354
 
66420
66355
  /***/ }),
@@ -66883,7 +66818,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
66883
66818
  var __importDefault = (this && this.__importDefault) || function (mod) {
66884
66819
  return (mod && mod.__esModule) ? mod : { "default": mod };
66885
66820
  };
66886
- var _DesignCast_instances, _a, _DesignCast_divDesignRoot, _DesignCast_sys, _DesignCast_scrItr, _DesignCast_alzTagArg, _DesignCast_cfg, _DesignCast_ID_DESIGNMODE, _DesignCast_cntDesignCast, _DesignCast_hId2dc, _DesignCast_aDC, _DesignCast_resizeDiv, _GrpLayDesignCast_sp, _TxtLayPadDesignCast_instances, _TxtLayPadDesignCast_procHint, _PicBtnDesignCast_sp;
66821
+ var _DesignCast_instances, _a, _DesignCast_divDesignRoot, _DesignCast_scrItr, _DesignCast_alzTagArg, _DesignCast_cfg, _DesignCast_ID_DESIGNMODE, _DesignCast_cntDesignCast, _DesignCast_hId2dc, _DesignCast_aDC, _DesignCast_resizeDiv, _GrpLayDesignCast_sp, _TxtLayPadDesignCast_instances, _TxtLayPadDesignCast_procHint, _PicBtnDesignCast_sp;
66887
66822
  Object.defineProperty(exports, "__esModule", ({ value: true }));
66888
66823
  exports.PicBtnDesignCast = exports.TxtBtnDesignCast = exports.BtnDesignCast = exports.TxtLayPadDesignCast = exports.TxtLayDesignCast = exports.GrpLayDesignCast = exports.DesignCast = void 0;
66889
66824
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -66927,11 +66862,11 @@ class DesignCast {
66927
66862
  this.rotatable = true;
66928
66863
  }
66929
66864
  static init(appPixi, sys, scrItr, prpPrs, alzTagArg, cfg, hPages) {
66930
- appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * CmnLib_1.CmnLib.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * CmnLib_1.CmnLib.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
66865
+ appPixi.view.insertAdjacentHTML('beforebegin', `<div id="${__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)}" style="width: ${CmnLib_1.CmnLib.stageW * sys.cvsScale}px; height: ${CmnLib_1.CmnLib.stageH * sys.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`);
66931
66866
  __classPrivateFieldSet(DesignCast, _a, document.getElementById(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_ID_DESIGNMODE)), "f", _DesignCast_divDesignRoot);
66932
66867
  DesignCast.divHint.classList.add('sn_design_hint');
66933
66868
  document.body.appendChild(DesignCast.divHint);
66934
- __classPrivateFieldSet(DesignCast, _a, sys, "f", _DesignCast_sys);
66869
+ DesignCast.sys = sys;
66935
66870
  __classPrivateFieldSet(DesignCast, _a, scrItr, "f", _DesignCast_scrItr);
66936
66871
  DesignCast.prpPrs = prpPrs;
66937
66872
  __classPrivateFieldSet(DesignCast, _a, alzTagArg, "f", _DesignCast_alzTagArg);
@@ -66974,8 +66909,8 @@ class DesignCast {
66974
66909
  }
66975
66910
  static cvsResizeDesign() {
66976
66911
  const s = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_divDesignRoot).style;
66977
- s.width = `${CmnLib_1.CmnLib.stageW * CmnLib_1.CmnLib.cvsScale}px`;
66978
- s.height = `${CmnLib_1.CmnLib.stageH * CmnLib_1.CmnLib.cvsScale}px`;
66912
+ s.width = `${CmnLib_1.CmnLib.stageW * DesignCast.sys.cvsScale}px`;
66913
+ s.height = `${CmnLib_1.CmnLib.stageH * DesignCast.sys.cvsScale}px`;
66979
66914
  }
66980
66915
  destroy() {
66981
66916
  this.div = undefined;
@@ -67055,8 +66990,8 @@ class DesignCast {
67055
66990
  const procStart = () => {
67056
66991
  tmp.aPos = [NaN, NaN];
67057
66992
  tmp.roDeg = this.rotation;
67058
- const dpx = this.pivot.x * CmnLib_1.CmnLib.cvsScale;
67059
- const dpy = this.pivot.y * CmnLib_1.CmnLib.cvsScale;
66993
+ const dpx = this.pivot.x * DesignCast.sys.cvsScale;
66994
+ const dpy = this.pivot.y * DesignCast.sys.cvsScale;
67060
66995
  tmp.trOrg = `${dpx}px ${dpy}px`;
67061
66996
  tmp.origin = [dpx, dpy];
67062
66997
  Object.assign(this.mov, {
@@ -67065,7 +67000,7 @@ class DesignCast {
67065
67000
  });
67066
67001
  };
67067
67002
  const procEnd = (o) => {
67068
- __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_sys).send2Dbg('_changeCast', {
67003
+ DesignCast.sys.send2Dbg('_changeCast', {
67069
67004
  ...o, ':id_tag': this.id_tag,
67070
67005
  });
67071
67006
  DesignCast.divHint.style.display = 'none';
@@ -67076,8 +67011,8 @@ class DesignCast {
67076
67011
  DesignCast.divHint.style.display = 'none';
67077
67012
  return;
67078
67013
  }
67079
- const ix = (0, CmnLib_1.int)(this.rect.x += dx / CmnLib_1.CmnLib.cvsScale + this.pivot.x);
67080
- const iy = (0, CmnLib_1.int)(this.rect.y += dy / CmnLib_1.CmnLib.cvsScale + this.pivot.y);
67014
+ const ix = (0, CmnLib_1.int)(this.rect.x += dx / DesignCast.sys.cvsScale + this.pivot.x);
67015
+ const iy = (0, CmnLib_1.int)(this.rect.y += dy / DesignCast.sys.cvsScale + this.pivot.y);
67081
67016
  this.setPos(ix, iy);
67082
67017
  const iw = (0, CmnLib_1.uint)(this.rect.width), ih = (0, CmnLib_1.uint)(this.rect.height);
67083
67018
  this.setSize(iw, ih);
@@ -67121,8 +67056,8 @@ class DesignCast {
67121
67056
  d.style.width = `${e.width}px`;
67122
67057
  d.style.height = `${e.height}px`;
67123
67058
  tmp.aPos = e.drag.beforeTranslate;
67124
- this.rect.width = e.width / CmnLib_1.CmnLib.cvsScale;
67125
- this.rect.height = e.height / CmnLib_1.CmnLib.cvsScale;
67059
+ this.rect.width = e.width / DesignCast.sys.cvsScale;
67060
+ this.rect.height = e.height / DesignCast.sys.cvsScale;
67126
67061
  this.procResizeHint(e, e.drag.left, e.drag.top);
67127
67062
  })
67128
67063
  .on('resizeEnd', resizeEnd)
@@ -67144,8 +67079,8 @@ class DesignCast {
67144
67079
  .on('dragOriginEnd', () => {
67145
67080
  const [dpx, dpy] = tmp.origin;
67146
67081
  tmp.trOrg = `${dpx}px ${dpy}px`;
67147
- const px = this.pivot.x = dpx / CmnLib_1.CmnLib.cvsScale;
67148
- const py = this.pivot.y = dpy / CmnLib_1.CmnLib.cvsScale;
67082
+ const px = this.pivot.x = dpx / DesignCast.sys.cvsScale;
67083
+ const py = this.pivot.y = dpy / DesignCast.sys.cvsScale;
67149
67084
  this.setOther({});
67150
67085
  const ix = (0, CmnLib_1.int)(this.rect.x + px);
67151
67086
  const iy = (0, CmnLib_1.int)(this.rect.y + py);
@@ -67193,18 +67128,18 @@ class DesignCast {
67193
67128
  o.url = __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_scrItr).cnvPath4Dbg(__classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_cfg).searchPath(f.name, Config_1.Config.EXT_SPRITE));
67194
67129
  }
67195
67130
  catch { }
67196
- __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_sys).send2Dbg('_dropFile', o);
67131
+ DesignCast.sys.send2Dbg('_dropFile', o);
67197
67132
  })
67198
67133
  .catch(e => console.error(`drop2dc %o`, e));
67199
67134
  });
67200
67135
  d.addEventListener('dblclick', e => {
67201
67136
  e.preventDefault();
67202
- __classPrivateFieldGet(DesignCast, _a, "f", _DesignCast_sys).send2Dbg('_focusScript', this.hArg);
67137
+ DesignCast.sys.send2Dbg('_focusScript', this.hArg);
67203
67138
  });
67204
67139
  }
67205
67140
  procDragHint(e, left, top) {
67206
67141
  const [dx, dy] = e.beforeTranslate;
67207
- DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx / CmnLib_1.CmnLib.cvsScale)}, ${(0, CmnLib_1.int)(this.rect.y + dy / CmnLib_1.CmnLib.cvsScale)})`, left, top, this);
67142
+ DesignCast.setHint(`(${(0, CmnLib_1.int)(this.rect.x + dx / DesignCast.sys.cvsScale)}, ${(0, CmnLib_1.int)(this.rect.y + dy / DesignCast.sys.cvsScale)})`, left, top, this);
67208
67143
  }
67209
67144
  procResizeHint(e, left, top) {
67210
67145
  DesignCast.setHint(`(${(0, CmnLib_1.int)(e.drag.left)}, ${(0, CmnLib_1.int)(e.drag.top)})<br/>${(0, CmnLib_1.int)(this.rect.width)} x ${(0, CmnLib_1.int)(this.rect.height)}`, left, top, this);
@@ -67270,16 +67205,15 @@ _a = DesignCast, _DesignCast_instances = new WeakSet(), _DesignCast_resizeDiv =
67270
67205
  this.fncLay();
67271
67206
  if (this.div)
67272
67207
  Object.assign(this.div.style, {
67273
- left: `${this.lx + this.rect.x * CmnLib_1.CmnLib.cvsScale}px`,
67274
- top: `${this.ly + this.rect.y * CmnLib_1.CmnLib.cvsScale}px`,
67275
- width: `${this.rect.width * CmnLib_1.CmnLib.cvsScale}px`,
67276
- height: `${this.rect.height * CmnLib_1.CmnLib.cvsScale}px`,
67277
- transformOrigin: `${this.pivot.x * CmnLib_1.CmnLib.cvsScale}px ${this.pivot.y * CmnLib_1.CmnLib.cvsScale}px`,
67208
+ left: `${this.lx + this.rect.x * DesignCast.sys.cvsScale}px`,
67209
+ top: `${this.ly + this.rect.y * DesignCast.sys.cvsScale}px`,
67210
+ width: `${this.rect.width * DesignCast.sys.cvsScale}px`,
67211
+ height: `${this.rect.height * DesignCast.sys.cvsScale}px`,
67212
+ transformOrigin: `${this.pivot.x * DesignCast.sys.cvsScale}px ${this.pivot.y * DesignCast.sys.cvsScale}px`,
67278
67213
  transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`,
67279
67214
  });
67280
67215
  };
67281
67216
  _DesignCast_divDesignRoot = { value: void 0 };
67282
- _DesignCast_sys = { value: void 0 };
67283
67217
  _DesignCast_scrItr = { value: void 0 };
67284
67218
  _DesignCast_alzTagArg = { value: void 0 };
67285
67219
  _DesignCast_cfg = { value: void 0 };
@@ -67413,8 +67347,8 @@ _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint =
67413
67347
  const x = this.rect.x, y = this.rect.y;
67414
67348
  const w = this.rect.width, h = this.rect.height;
67415
67349
  const it = this.ts.infTL;
67416
- const pl = (0, CmnLib_1.int)(x + dx / CmnLib_1.CmnLib.cvsScale);
67417
- const pt = (0, CmnLib_1.int)(y + dy / CmnLib_1.CmnLib.cvsScale);
67350
+ const pl = (0, CmnLib_1.int)(x + dx / DesignCast.sys.cvsScale);
67351
+ const pt = (0, CmnLib_1.int)(y + dy / DesignCast.sys.cvsScale);
67418
67352
  const pr = (0, CmnLib_1.int)(it.$width - pl - w);
67419
67353
  const pb = (0, CmnLib_1.int)(it.$height - pt - h);
67420
67354
  const sp = (re) => '&nbsp;'.repeat(re);
@@ -67441,8 +67375,8 @@ class BtnDesignCast extends DesignCast {
67441
67375
  this.fncLay = (!this.parent && !this.child && layer)
67442
67376
  ? () => {
67443
67377
  const f = DesignCast.hPages[layer].fore;
67444
- this.lx = f.x * CmnLib_1.CmnLib.cvsScale;
67445
- this.ly = f.y * CmnLib_1.CmnLib.cvsScale;
67378
+ this.lx = f.x * DesignCast.sys.cvsScale;
67379
+ this.ly = f.y * DesignCast.sys.cvsScale;
67446
67380
  }
67447
67381
  : () => { };
67448
67382
  }
@@ -67457,8 +67391,8 @@ class BtnDesignCast extends DesignCast {
67457
67391
  onDragStart() {
67458
67392
  const aBtn = this.btn.parent.children.filter(b => b !== this.btn);
67459
67393
  Object.assign(this.mov, {
67460
- verticalGuidelines: aBtn.map(b => this.lx + b.x * CmnLib_1.CmnLib.cvsScale),
67461
- horizontalGuidelines: aBtn.map(b => this.ly + b.y * CmnLib_1.CmnLib.cvsScale),
67394
+ verticalGuidelines: aBtn.map(b => this.lx + b.x * DesignCast.sys.cvsScale),
67395
+ horizontalGuidelines: aBtn.map(b => this.ly + b.y * DesignCast.sys.cvsScale),
67462
67396
  });
67463
67397
  }
67464
67398
  }
@@ -67688,7 +67622,7 @@ class EventMng {
67688
67622
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
67689
67623
  sndMng.setEvtMng(this);
67690
67624
  scrItr.setOtherObj(this, layMng);
67691
- TxtLayer_1.TxtLayer.setEvtMng(main, this);
67625
+ TxtLayer_1.TxtLayer.setEvtMng(main, this, sys);
67692
67626
  layMng.setEvtMng(this);
67693
67627
  sys.setFire((KEY, e) => this.fire(KEY, e));
67694
67628
  if (CmnLib_1.CmnLib.isDbg) {
@@ -67725,7 +67659,7 @@ class EventMng {
67725
67659
  const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
67726
67660
  if (ctx) {
67727
67661
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
67728
- appPixi.view.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
67662
+ document.body.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
67729
67663
  const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
67730
67664
  s.position = 'absolute';
67731
67665
  s.left = s.top = '0';
@@ -68110,11 +68044,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
68110
68044
  const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
68111
68045
  const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
68112
68046
  const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
68113
- const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
68114
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
68115
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
68047
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * this.sys.cvsScale}px`;
68048
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * this.sys.cvsScale}px`;
68116
68049
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
68117
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * scale}, ${scale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
68050
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * this.sys.cvsScale}, ${this.sys.cvsScale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
68118
68051
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
68119
68052
  if (masume)
68120
68053
  __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
@@ -68613,7 +68546,6 @@ class FrameMng {
68613
68546
  }
68614
68547
  getFrmDisabled(id) { return __classPrivateFieldGet(this, _FrameMng_hDisabled, "f")[id]; }
68615
68548
  cvsResize() {
68616
- const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
68617
68549
  for (const id in __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")) {
68618
68550
  const f = __classPrivateFieldGet(this, _FrameMng_hIfrm, "f")[id];
68619
68551
  const vn = 'const.sn.frm.' + id;
@@ -68621,16 +68553,16 @@ class FrameMng {
68621
68553
  const y = Number(this.val.getVal(vn + '.y'));
68622
68554
  const w = Number(this.val.getVal(vn + '.width'));
68623
68555
  const h = Number(this.val.getVal(vn + '.height'));
68624
- f.style.left = this.sys.ofsLeft4frm + x * scale + 'px';
68625
- f.style.top = this.sys.ofsTop4frm + y * scale + 'px';
68626
- f.width = String(w * scale);
68627
- f.height = String(h * scale);
68556
+ f.style.left = `${this.sys.ofsLeft4frm + x * this.sys.cvsScale}px`;
68557
+ f.style.top = `${this.sys.ofsTop4frm + y * this.sys.cvsScale}px`;
68558
+ f.width = String(w * this.sys.cvsScale);
68559
+ f.height = String(h * this.sys.cvsScale);
68628
68560
  }
68629
68561
  }
68630
68562
  }
68631
68563
  exports.FrameMng = FrameMng;
68632
68564
  _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
68633
- const { id, src } = hArg;
68565
+ const { id, src, alpha: a = 1, scale_x: sx = 1, scale_y: sy = 1, rotate: r = 0, } = hArg;
68634
68566
  if (!id)
68635
68567
  throw 'idは必須です';
68636
68568
  if (!src)
@@ -68638,15 +68570,10 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68638
68570
  const vn = 'const.sn.frm.' + id;
68639
68571
  if (this.val.getVal(`tmp:${vn}`))
68640
68572
  throw `frame【${id}】はすでにあります`;
68641
- const a = (0, CmnLib_1.argChk_Num)(hArg, 'alpha', 1);
68642
- const sx = (0, CmnLib_1.argChk_Num)(hArg, 'scale_x', 1);
68643
- const sy = (0, CmnLib_1.argChk_Num)(hArg, 'scale_y', 1);
68644
- const r = (0, CmnLib_1.argChk_Num)(hArg, 'rotate', 0);
68645
68573
  const v = (0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true);
68646
68574
  const b_color = hArg.b_color ? ` background-color: ${hArg.b_color};` : '';
68647
68575
  const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
68648
- const scl = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
68649
- this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4frm + rct.x * scl}px; top: ${this.sys.ofsTop4frm + rct.y * scl}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * scl}" height="${rct.height * scl}"></iframe>`);
68576
+ this.appPixi.view.insertAdjacentHTML('beforebegin', `<iframe id="${id}" sandbox="allow-scripts allow-same-origin" style="opacity: ${a}; position: absolute; left:${this.sys.ofsLeft4frm + rct.x * this.sys.cvsScale}px; top: ${this.sys.ofsTop4frm + rct.y * this.sys.cvsScale}px; z-index: 1; ${b_color} border: 0px; overflow: hidden; display: ${v ? 'inline' : 'none'}; transform: scale(${sx}, ${sy}) rotate(${r}deg);" width="${rct.width * this.sys.cvsScale}" height="${rct.height * this.sys.cvsScale}"></iframe>`);
68650
68577
  const url = this.cfg.searchPath(src, Config_1.Config.EXT_HTML);
68651
68578
  const ld = (new pixi_js_1.Loader())
68652
68579
  .add({ name: src, url, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.TEXT });
@@ -68741,7 +68668,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68741
68668
  const s = f.style;
68742
68669
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'float', false))
68743
68670
  s.zIndex = `${__classPrivateFieldSet(this, _FrameMng_zIdx, (_a = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_a), "f")}`;
68744
- else if (hArg.index)
68671
+ else if ('index' in hArg)
68745
68672
  s.zIndex = `${(0, CmnLib_1.argChk_Num)(hArg, 'index', 0)}`;
68746
68673
  else if (hArg.dive)
68747
68674
  s.zIndex = `-${__classPrivateFieldSet(this, _FrameMng_zIdx, (_b = __classPrivateFieldGet(this, _FrameMng_zIdx, "f"), ++_b), "f")}`;
@@ -68750,10 +68677,9 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68750
68677
  this.val.setVal_Nochk('tmp', vn + '.alpha', a);
68751
68678
  }
68752
68679
  const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg);
68753
- const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
68754
68680
  if ('x' in hArg || 'y' in hArg) {
68755
- s.left = `${this.sys.ofsLeft4frm + rct.x * scale}px`;
68756
- s.top = `${this.sys.ofsTop4frm + rct.y * scale}px`;
68681
+ s.left = `${this.sys.ofsLeft4frm + rct.x * this.sys.cvsScale}px`;
68682
+ s.top = `${this.sys.ofsTop4frm + rct.y * this.sys.cvsScale}px`;
68757
68683
  this.val.setVal_Nochk('tmp', vn + '.x', rct.x);
68758
68684
  this.val.setVal_Nochk('tmp', vn + '.y', rct.y);
68759
68685
  }
@@ -68767,11 +68693,11 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68767
68693
  this.val.setVal_Nochk('tmp', vn + '.rotate', r);
68768
68694
  }
68769
68695
  if ('width' in hArg) {
68770
- f.width = String(rct.width * scale);
68696
+ f.width = String(rct.width * this.sys.cvsScale);
68771
68697
  this.val.setVal_Nochk('tmp', vn + '.width', rct.width);
68772
68698
  }
68773
68699
  if ('height' in hArg) {
68774
- f.height = String(rct.height * scale);
68700
+ f.height = String(rct.height * this.sys.cvsScale);
68775
68701
  this.val.setVal_Nochk('tmp', vn + '.height', rct.height);
68776
68702
  }
68777
68703
  if ('visible' in hArg) {
@@ -68825,7 +68751,6 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68825
68751
  }
68826
68752
  let fncXYSR = () => { };
68827
68753
  const rct = __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_rect).call(this, hArg2);
68828
- const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
68829
68754
  if ('x' in hArg || 'y' in hArg
68830
68755
  || 'scale_x' in hArg || 'scale_y' in hArg || 'rotate' in hArg) {
68831
68756
  hTo.x = rct.x;
@@ -68834,8 +68759,8 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68834
68759
  hTo.sy = (0, CmnLib_1.argChk_Num)(hArg2, 'scale_y', 1);
68835
68760
  hTo.r = (0, CmnLib_1.argChk_Num)(hArg2, 'rotate', 0);
68836
68761
  fncXYSR = () => {
68837
- f.style.left = this.sys.ofsLeft4frm + hNow.x * scale + 'px';
68838
- f.style.top = this.sys.ofsTop4frm + hNow.y * scale + 'px';
68762
+ f.style.left = this.sys.ofsLeft4frm + hNow.x * this.sys.cvsScale + 'px';
68763
+ f.style.top = this.sys.ofsTop4frm + hNow.y * this.sys.cvsScale + 'px';
68839
68764
  f.style.transform = `scale(${hNow.sx}, ${hNow.sy}) rotate(${hNow.r}deg)`;
68840
68765
  this.val.setVal_Nochk('tmp', vn + '.x', hNow.x);
68841
68766
  this.val.setVal_Nochk('tmp', vn + '.y', hNow.y);
@@ -68848,7 +68773,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68848
68773
  if ('width' in hArg) {
68849
68774
  hTo.w = rct.width;
68850
68775
  fncW = () => {
68851
- f.width = hNow.w * scale + 'px';
68776
+ f.width = hNow.w * this.sys.cvsScale + 'px';
68852
68777
  this.val.setVal_Nochk('tmp', vn + '.width', hNow.w);
68853
68778
  };
68854
68779
  }
@@ -68856,7 +68781,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68856
68781
  if ('height' in hArg) {
68857
68782
  hTo.h = rct.height;
68858
68783
  fncH = () => {
68859
- f.height = hNow.h * scale + 'px';
68784
+ f.height = hNow.h * this.sys.cvsScale + 'px';
68860
68785
  this.val.setVal_Nochk('tmp', vn + '.height', hNow.h);
68861
68786
  };
68862
68787
  }
@@ -69368,8 +69293,8 @@ class GrpLayer extends Layer_1.Layer {
69368
69293
  const { fn = name } = hArg;
69369
69294
  __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
69370
69295
  fn,
69371
- dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0) * CmnLib_1.CmnLib.retinaRate,
69372
- dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0) * CmnLib_1.CmnLib.retinaRate,
69296
+ dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0),
69297
+ dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0),
69373
69298
  blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
69374
69299
  };
69375
69300
  return false;
@@ -69694,7 +69619,7 @@ class Layer {
69694
69619
  }
69695
69620
  ret.x = (0, CmnLib_1.int)(((ret.scale.x < 0)
69696
69621
  ? x + (isButton ? b_width / 3 : b_width)
69697
- : x) * CmnLib_1.CmnLib.retinaRate);
69622
+ : x));
69698
69623
  let y = ret.y;
69699
69624
  if ('top' in hArg) {
69700
69625
  y = (0, CmnLib_1.argChk_Num)(hArg, 'top', 0);
@@ -69719,8 +69644,7 @@ class Layer {
69719
69644
  y *= CmnLib_1.CmnLib.stageH;
69720
69645
  y = CmnLib_1.CmnLib.stageH - y - b_height;
69721
69646
  }
69722
- ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y)
69723
- * CmnLib_1.CmnLib.retinaRate);
69647
+ ret.y = (0, CmnLib_1.int)(((ret.scale.y < 0) ? y + b_height : y));
69724
69648
  if (isGrp) {
69725
69649
  if (!('left' in hArg)
69726
69650
  && !('center' in hArg)
@@ -69757,7 +69681,7 @@ class Layer {
69757
69681
  c = b_width * 0.5;
69758
69682
  }
69759
69683
  else {
69760
- c = (0, CmnLib_1.int)(pos) * CmnLib_1.CmnLib.retinaRate;
69684
+ c = (0, CmnLib_1.int)(pos);
69761
69685
  }
69762
69686
  ret.x = (0, CmnLib_1.int)(c - b_width * 0.5);
69763
69687
  ret.y = CmnLib_1.CmnLib.stageH - b_height;
@@ -69925,7 +69849,7 @@ void main(void) {
69925
69849
  _LayerMng_oLastPage.set(this, { text: '' });
69926
69850
  _LayerMng_aTxtLog.set(this, []);
69927
69851
  const fncResizeLay = () => {
69928
- if (!CmnLib_1.CmnLib.cvsResize(appPixi.view))
69852
+ if (!sys.cvsResize())
69929
69853
  return;
69930
69854
  this.cvsResizeDesign();
69931
69855
  if (__classPrivateFieldGet(this, _LayerMng_modeLnSub, "f"))
@@ -69939,14 +69863,14 @@ void main(void) {
69939
69863
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
69940
69864
  }
69941
69865
  else {
69942
- let tid = 0;
69866
+ let tid = undefined;
69943
69867
  globalThis.addEventListener('resize', () => {
69944
69868
  if (tid)
69945
69869
  return;
69946
- tid = setTimeout(() => { tid = 0; fncResizeLay(); }, 500);
69870
+ tid = setTimeout(() => { tid = undefined; fncResizeLay(); }, 1000 / 60 * 10);
69947
69871
  }, { passive: true });
69948
69872
  }
69949
- CmnLib_1.CmnLib.cvsResize(appPixi.view);
69873
+ sys.cvsResize();
69950
69874
  TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
69951
69875
  GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
69952
69876
  Button_1.Button.init(cfg);
@@ -70773,7 +70697,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
70773
70697
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
70774
70698
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
70775
70699
  };
70776
- var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
70700
+ var _Main_instances, _Main_cfg, _Main_appPixi, _Main_hTag, _Main_val, _Main_prpPrs, _Main_sndMng, _Main_scrItr, _Main_dbgMng, _Main_layMng, _Main_evtMng, _Main_fncNext, _Main_alzTagArg, _Main_inited, _Main_SN_ID, _Main_init, _Main_fncTicker, _Main_fncresume, _Main_isLoop, _Main_runAnalyze, _Main_destroyed, _Main_clone_cvs;
70777
70701
  Object.defineProperty(exports, "__esModule", ({ value: true }));
70778
70702
  exports.Main = void 0;
70779
70703
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -70805,6 +70729,7 @@ class Main {
70805
70729
  _Main_fncNext.set(this, () => { });
70806
70730
  _Main_alzTagArg.set(this, new AnalyzeTagArg_1.AnalyzeTagArg);
70807
70731
  _Main_inited.set(this, false);
70732
+ _Main_SN_ID.set(this, 'skynovel');
70808
70733
  _Main_fncTicker.set(this, () => __classPrivateFieldGet(this, _Main_fncNext, "f").call(this));
70809
70734
  _Main_fncresume.set(this, (fnc = __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze)) => {
70810
70735
  if (__classPrivateFieldGet(this, _Main_destroyed, "f"))
@@ -70881,14 +70806,14 @@ class Main {
70881
70806
  __classPrivateFieldGet(this, _Main_dbgMng, "f").destroy();
70882
70807
  __classPrivateFieldGet(this, _Main_appPixi, "f").ticker.remove(__classPrivateFieldGet(this, _Main_fncTicker, "f"));
70883
70808
  if (__classPrivateFieldGet(this, _Main_clone_cvs, "f") && __classPrivateFieldGet(this, _Main_appPixi, "f")) {
70884
- __classPrivateFieldGet(this, _Main_appPixi, "f").view.parentElement.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
70809
+ document.body.insertBefore(__classPrivateFieldGet(this, _Main_clone_cvs, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f").view);
70885
70810
  }
70886
70811
  pixi_js_1.utils.clearTextureCache();
70887
70812
  __classPrivateFieldGet(this, _Main_appPixi, "f").destroy(true);
70888
70813
  }
70889
70814
  }
70890
70815
  exports.Main = Main;
70891
- _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
70816
+ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakMap(), _Main_val = new WeakMap(), _Main_prpPrs = new WeakMap(), _Main_sndMng = new WeakMap(), _Main_scrItr = new WeakMap(), _Main_dbgMng = new WeakMap(), _Main_layMng = new WeakMap(), _Main_evtMng = new WeakMap(), _Main_fncNext = new WeakMap(), _Main_alzTagArg = new WeakMap(), _Main_inited = new WeakMap(), _Main_SN_ID = new WeakMap(), _Main_fncTicker = new WeakMap(), _Main_fncresume = new WeakMap(), _Main_isLoop = new WeakMap(), _Main_destroyed = new WeakMap(), _Main_clone_cvs = new WeakMap(), _Main_instances = new WeakSet(), _Main_init = async function _Main_init() {
70892
70817
  const cc = document.createElement('canvas')?.getContext('2d');
70893
70818
  if (!cc)
70894
70819
  throw 'argChk_Color err';
@@ -70901,16 +70826,16 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
70901
70826
  resolution: globalThis.devicePixelRatio ?? 1,
70902
70827
  autoResize: true,
70903
70828
  };
70904
- const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
70829
+ const cvs = document.getElementById(__classPrivateFieldGet(this, _Main_SN_ID, "f"));
70905
70830
  if (cvs) {
70906
70831
  __classPrivateFieldSet(this, _Main_clone_cvs, cvs.cloneNode(true), "f");
70907
- __classPrivateFieldGet(this, _Main_clone_cvs, "f").id = CmnLib_1.CmnLib.SN_ID;
70832
+ __classPrivateFieldGet(this, _Main_clone_cvs, "f").id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
70908
70833
  hApp.view = cvs;
70909
70834
  }
70910
70835
  __classPrivateFieldSet(this, _Main_appPixi, new pixi_js_1.Application(hApp), "f");
70911
70836
  if (!cvs) {
70912
70837
  document.body.appendChild(__classPrivateFieldGet(this, _Main_appPixi, "f").view);
70913
- __classPrivateFieldGet(this, _Main_appPixi, "f").view.id = CmnLib_1.CmnLib.SN_ID;
70838
+ __classPrivateFieldGet(this, _Main_appPixi, "f").view.id = __classPrivateFieldGet(this, _Main_SN_ID, "f");
70914
70839
  }
70915
70840
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
70916
70841
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
@@ -73273,15 +73198,13 @@ class SysApp extends SysNode_1.SysNode {
73273
73198
  this.tgl_full_scr_sub = async () => {
73274
73199
  if (await to_app.isSimpleFullScreen()) {
73275
73200
  await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
73276
- this.reso4frame = 1;
73201
+ this.isFullScr = false;
73277
73202
  }
73278
73203
  else {
73279
73204
  await to_app.setSimpleFullScreen(true, screen.width, screen.height);
73280
73205
  await to_app.win_setContentSize(screen.width, screen.height);
73281
- const cr = this.appPixi.view.getBoundingClientRect();
73282
- this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
73206
+ this.isFullScr = true;
73283
73207
  }
73284
- this.resizeFrames();
73285
73208
  };
73286
73209
  this.update_check = hArg => {
73287
73210
  const { url } = hArg;
@@ -73417,7 +73340,6 @@ class SysApp extends SysNode_1.SysNode {
73417
73340
  hTmp['const.sn.isDebugger'] = false;
73418
73341
  hTmp['const.sn.screenResolutionX'] = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionX;
73419
73342
  hTmp['const.sn.screenResolutionY'] = __classPrivateFieldGet(this, _SysApp_hInfo, "f").screenResolutionY;
73420
- this.val.defTmp('const.sn.displayState', async () => await to_app.isSimpleFullScreen());
73421
73343
  this.$path_userdata = CmnLib_1.CmnLib.isDbg
73422
73344
  ? __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath.slice(0, -3) + '.vscode/'
73423
73345
  : __classPrivateFieldGet(this, _SysApp_hInfo, "f").userData.replaceAll('\\', '/') + '/';
@@ -73514,7 +73436,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
73514
73436
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
73515
73437
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
73516
73438
  };
73517
- var _a, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
73439
+ var _a, _SysBase_cvsWidth, _SysBase_cvsHeight, _SysBase_cvsScale, _SysBase_ofsLeft4frm, _SysBase_ofsTop4frm, _SysBase_ofsPadLeft_Dom2PIXI, _SysBase_ofsPadTop_Dom2PIXI, _SysBase_sk, _SysBase_hHook, _SysBase_hToastDat, _SysBase_aFncHook, _SysBase_main_title, _SysBase_info_title, _SysBase_preFromPlg, _SysBase_hN2Ext, _SysBase_genImage, _SysBase_genVideo;
73518
73440
  Object.defineProperty(exports, "__esModule", ({ value: true }));
73519
73441
  exports.SysBase = void 0;
73520
73442
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -73526,8 +73448,15 @@ class SysBase {
73526
73448
  this.hFactoryCls = {};
73527
73449
  this.fetch = (url) => fetch(url);
73528
73450
  this.resolution = 1;
73529
- this.reso4frame = 1;
73530
73451
  this.data = { sys: {}, mark: {}, kidoku: {} };
73452
+ _SysBase_cvsWidth.set(this, 0);
73453
+ _SysBase_cvsHeight.set(this, 0);
73454
+ _SysBase_cvsScale.set(this, 1);
73455
+ _SysBase_ofsLeft4frm.set(this, 0);
73456
+ _SysBase_ofsTop4frm.set(this, 0);
73457
+ _SysBase_ofsPadLeft_Dom2PIXI.set(this, 0);
73458
+ _SysBase_ofsPadTop_Dom2PIXI.set(this, 0);
73459
+ this.isFullScr = false;
73531
73460
  this.extPort = 3776;
73532
73461
  _SysBase_sk.set(this, undefined);
73533
73462
  _SysBase_hHook.set(this, {
@@ -73615,8 +73544,6 @@ class SysBase {
73615
73544
  this.$path_downloads = '';
73616
73545
  this.$path_userdata = '';
73617
73546
  this.canCapturePage = (_fn) => false;
73618
- this.ofsLeft4frm = 0;
73619
- this.ofsTop4frm = 0;
73620
73547
  }
73621
73548
  async loaded(hPlg, _arg) {
73622
73549
  const fncPre = hPlg.snsys_pre;
@@ -73665,6 +73592,7 @@ class SysBase {
73665
73592
  val.setVal_Nochk('tmp', 'const.sn.isApp', () => this.isApp);
73666
73593
  val.setVal_Nochk('tmp', 'const.sn.isDbg', () => CmnLib_1.CmnLib.isDbg);
73667
73594
  val.setVal_Nochk('tmp', 'const.sn.isPackaged', () => CmnLib_1.CmnLib.isPackaged);
73595
+ this.val.defTmp('const.sn.displayState', () => this.isFullScr);
73668
73596
  val.setVal_Nochk('sys', SysBase.VALNM_CFG_NS, this.cfg.oCfg.save_ns);
73669
73597
  val.flush();
73670
73598
  if (CmnLib_1.CmnLib.isDbg)
@@ -73694,6 +73622,78 @@ class SysBase {
73694
73622
  }));
73695
73623
  return a;
73696
73624
  }
73625
+ get cvsScale() { return __classPrivateFieldGet(this, _SysBase_cvsScale, "f"); }
73626
+ ;
73627
+ get ofsLeft4frm() { return __classPrivateFieldGet(this, _SysBase_ofsLeft4frm, "f"); }
73628
+ ;
73629
+ get ofsTop4frm() { return __classPrivateFieldGet(this, _SysBase_ofsTop4frm, "f"); }
73630
+ ;
73631
+ get ofsPadLeft_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadLeft_Dom2PIXI, "f"); }
73632
+ ;
73633
+ get ofsPadTop_Dom2PIXI() { return __classPrivateFieldGet(this, _SysBase_ofsPadTop_Dom2PIXI, "f"); }
73634
+ ;
73635
+ cvsResize() {
73636
+ const bk_cw = __classPrivateFieldGet(this, _SysBase_cvsWidth, "f");
73637
+ const bk_ch = __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
73638
+ let w = globalThis.innerWidth;
73639
+ let h = globalThis.innerHeight;
73640
+ const { angle = 0 } = screen.orientation;
73641
+ const lp = angle % 180 === 0 ? 'p' : 'l';
73642
+ if (CmnLib_1.CmnLib.isMobile && ((lp === 'p' && w > h) || (lp === 'l' && w < h)))
73643
+ [w, h] = [h, w];
73644
+ const cvs = this.appPixi.view;
73645
+ if ((0, CmnLib_1.argChk_Boolean)(CmnLib_1.CmnLib.hDip, 'expanding', true) ||
73646
+ CmnLib_1.CmnLib.stageW > w ||
73647
+ CmnLib_1.CmnLib.stageH > h) {
73648
+ if (CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH <= w / h) {
73649
+ __classPrivateFieldSet(this, _SysBase_cvsHeight, h, "f");
73650
+ __classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW / CmnLib_1.CmnLib.stageH * h, "f");
73651
+ }
73652
+ else {
73653
+ __classPrivateFieldSet(this, _SysBase_cvsWidth, w, "f");
73654
+ __classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH / CmnLib_1.CmnLib.stageW * w, "f");
73655
+ }
73656
+ __classPrivateFieldSet(this, _SysBase_cvsScale, __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") / CmnLib_1.CmnLib.stageW, "f");
73657
+ const cr = cvs.getBoundingClientRect();
73658
+ __classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
73659
+ ? (globalThis.innerWidth - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2
73660
+ : cr.left) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
73661
+ __classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, (CmnLib_1.CmnLib.isMobile
73662
+ ? (globalThis.innerHeight - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2
73663
+ : cr.top) * (1 - __classPrivateFieldGet(this, _SysBase_cvsScale, "f")), "f");
73664
+ }
73665
+ else {
73666
+ __classPrivateFieldSet(this, _SysBase_cvsWidth, CmnLib_1.CmnLib.stageW, "f");
73667
+ __classPrivateFieldSet(this, _SysBase_cvsHeight, CmnLib_1.CmnLib.stageH, "f");
73668
+ __classPrivateFieldSet(this, _SysBase_cvsScale, 1, "f");
73669
+ __classPrivateFieldSet(this, _SysBase_ofsPadLeft_Dom2PIXI, 0, "f");
73670
+ __classPrivateFieldSet(this, _SysBase_ofsPadTop_Dom2PIXI, 0, "f");
73671
+ }
73672
+ if (cvs.parentElement) {
73673
+ const ps = cvs.parentElement.style;
73674
+ ps.position = 'relative';
73675
+ ps.width = `${__classPrivateFieldGet(this, _SysBase_cvsWidth, "f")}px`;
73676
+ ps.height = `${__classPrivateFieldGet(this, _SysBase_cvsHeight, "f")}px`;
73677
+ const s = cvs.style;
73678
+ if (this.isFullScr) {
73679
+ s.width = '';
73680
+ s.height = '';
73681
+ }
73682
+ else {
73683
+ s.width = ps.width;
73684
+ s.height = ps.height;
73685
+ }
73686
+ }
73687
+ if (this.isFullScr) {
73688
+ __classPrivateFieldSet(this, _SysBase_ofsLeft4frm, (w - __classPrivateFieldGet(this, _SysBase_cvsWidth, "f")) / 2, "f");
73689
+ __classPrivateFieldSet(this, _SysBase_ofsTop4frm, (h - __classPrivateFieldGet(this, _SysBase_cvsHeight, "f")) / 2, "f");
73690
+ }
73691
+ else {
73692
+ __classPrivateFieldSet(this, _SysBase_ofsLeft4frm, 0, "f");
73693
+ __classPrivateFieldSet(this, _SysBase_ofsTop4frm, 0, "f");
73694
+ }
73695
+ return bk_cw !== __classPrivateFieldGet(this, _SysBase_cvsWidth, "f") || bk_ch !== __classPrivateFieldGet(this, _SysBase_cvsHeight, "f");
73696
+ }
73697
73697
  attach_debug(main) {
73698
73698
  this.attach_debug = () => { };
73699
73699
  const gs = document.createElement('style');
@@ -73738,17 +73738,17 @@ class SysBase {
73738
73738
  __classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
73739
73739
  }
73740
73740
  toast(nm) {
73741
- const p = this.appPixi.view.parentNode;
73741
+ const p = document.body;
73742
73742
  p.querySelectorAll('.sn_BounceIn, .sn_HopIn').forEach(v => p.removeChild(v));
73743
73743
  const img = document.createElement('img');
73744
73744
  const td = __classPrivateFieldGet(SysBase, _a, "f", _SysBase_hToastDat)[nm];
73745
73745
  img.src = `data:image/svg+xml;base64,${td.dat}`;
73746
- const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * CmnLib_1.CmnLib.cvsScale;
73746
+ const size = Math.min(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH) / 4 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f");
73747
73747
  img.width = img.height = size;
73748
73748
  img.style.cssText =
73749
73749
  `position: absolute;
73750
- left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (td.dx ?? 0)}px;
73751
- top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (td.dy ?? 0)}px;`;
73750
+ left: ${(CmnLib_1.CmnLib.stageW - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dx ?? 0)}px;
73751
+ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * __classPrivateFieldGet(this, _SysBase_cvsScale, "f") + size * (td.dy ?? 0)}px;`;
73752
73752
  img.classList.add('sn_toast', td.ease ?? 'sn_BounceInOut');
73753
73753
  if (!td.ease)
73754
73754
  img.addEventListener('animationend', () => p.removeChild(img), { once: true, passive: true });
@@ -73773,26 +73773,9 @@ top: ${(CmnLib_1.CmnLib.stageH - size) / 2 * CmnLib_1.CmnLib.cvsScale + size * (
73773
73773
  ;
73774
73774
  async appendFile(_path, _data, _callback) { }
73775
73775
  async ensureFileSync(_path) { }
73776
- resizeFrames() {
73777
- const cr = this.appPixi.view.getBoundingClientRect();
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;
73782
- for (let i = 0; i < len; ++i) {
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'))
73788
- * this.reso4frame);
73789
- f.height = String(Number(this.val.getVal(tvn + '.height'))
73790
- * this.reso4frame);
73791
- }
73792
- }
73793
73776
  }
73794
73777
  exports.SysBase = SysBase;
73795
- _a = SysBase, _SysBase_sk = new WeakMap(), _SysBase_hHook = new WeakMap(), _SysBase_aFncHook = new WeakMap(), _SysBase_main_title = new WeakMap(), _SysBase_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
73778
+ _a = SysBase, _SysBase_cvsWidth = new WeakMap(), _SysBase_cvsHeight = new WeakMap(), _SysBase_cvsScale = new WeakMap(), _SysBase_ofsLeft4frm = new WeakMap(), _SysBase_ofsTop4frm = new WeakMap(), _SysBase_ofsPadLeft_Dom2PIXI = new WeakMap(), _SysBase_ofsPadTop_Dom2PIXI = new WeakMap(), _SysBase_sk = new WeakMap(), _SysBase_hHook = new WeakMap(), _SysBase_aFncHook = new WeakMap(), _SysBase_main_title = new WeakMap(), _SysBase_info_title = new WeakMap(), _SysBase_preFromPlg = new WeakMap(), _SysBase_hN2Ext = new WeakMap(), _SysBase_genImage = new WeakMap(), _SysBase_genVideo = new WeakMap();
73796
73779
  SysBase.VALNM_CFG_NS = 'const.sn.cfg.ns';
73797
73780
  _SysBase_hToastDat = { value: {
73798
73781
  '接続': { dx: -1, dat: 'PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+' },
@@ -73878,7 +73861,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
73878
73861
  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");
73879
73862
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
73880
73863
  };
73881
- var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
73864
+ var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_sys, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
73882
73865
  Object.defineProperty(exports, "__esModule", ({ value: true }));
73883
73866
  exports.TxtLayer = void 0;
73884
73867
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -73899,7 +73882,7 @@ class TxtLayer extends Layer_1.Layer {
73899
73882
  _TxtLayer_b_alpha_isfixed.set(this, false);
73900
73883
  _TxtLayer_b_do.set(this, undefined);
73901
73884
  _TxtLayer_b_pic.set(this, '');
73902
- _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
73885
+ _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus(), __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_sys)));
73903
73886
  _TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
73904
73887
  _TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
73905
73888
  _TxtLayer_$ch_in_style.set(this, '');
@@ -74193,7 +74176,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
74193
74176
  __classPrivateFieldGet(this, _TxtLayer_rbSpl, "f").init(__classPrivateFieldGet(this, _TxtLayer_putCh, "f"));
74194
74177
  this.spLay.addChild(__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f"));
74195
74178
  __classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").name = 'cntBtn';
74196
- const padding = 16 * CmnLib_1.CmnLib.retinaRate;
74179
+ const padding = 16;
74197
74180
  this.lay({ style: `width: ${CmnLib_1.CmnLib.stageW}px; height: ${CmnLib_1.CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${padding}px;`, in_style: 'default', out_style: 'default', back_clear: 'true' });
74198
74181
  }
74199
74182
  static init(cfg, hTag, val, recText, isPageFore) {
@@ -74258,9 +74241,10 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
74258
74241
  ease: 'ease-out',
74259
74242
  });
74260
74243
  }
74261
- static setEvtMng(main, evtMng) {
74244
+ static setEvtMng(main, evtMng, sys) {
74262
74245
  __classPrivateFieldSet(TxtLayer, _a, main, "f", _TxtLayer_main);
74263
74246
  __classPrivateFieldSet(TxtLayer, _a, evtMng, "f", _TxtLayer_evtMng);
74247
+ __classPrivateFieldSet(TxtLayer, _a, sys, "f", _TxtLayer_sys);
74264
74248
  TxtStage_1.TxtStage.setEvtMng(evtMng);
74265
74249
  }
74266
74250
  destroy() {
@@ -74665,6 +74649,7 @@ _TxtLayer_recText = { value: void 0 };
74665
74649
  _TxtLayer_isPageFore = { value: void 0 };
74666
74650
  _TxtLayer_main = { value: void 0 };
74667
74651
  _TxtLayer_evtMng = { value: void 0 };
74652
+ _TxtLayer_sys = { value: void 0 };
74668
74653
  _TxtLayer_doAutoWc = { value: false };
74669
74654
  _TxtLayer_hAutoWc = { value: {} };
74670
74655
  TxtLayer.rec = (tx) => tx;
@@ -74691,7 +74676,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
74691
74676
  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");
74692
74677
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
74693
74678
  };
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;
74679
+ var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _TxtStage_break_fixed, _TxtStage_break_fixed_left, _TxtStage_break_fixed_top, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm, _TxtStage_REGDS, _TxtStage_fncEndChIn, _TxtStage_spWork, _TxtStage_isChInIng, _TxtStage_hChInStyle, _TxtStage_REG_NG_CHSTYLE_NAME_CHR, _TxtStage_hChOutStyle, _TxtStage_cntBreak, _TxtStage_lh_half, _TxtStage_getChRects, _TxtStage_fi_easing, _TxtStage_fo_easing, _TxtStage_clearText, _TxtStage_sss;
74695
74680
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74696
74681
  exports.TxtStage = void 0;
74697
74682
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -74704,10 +74689,11 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
74704
74689
  ;
74705
74690
  ;
74706
74691
  class TxtStage extends pixi_js_1.Container {
74707
- constructor(spLay, canFocus) {
74692
+ constructor(spLay, canFocus, sys) {
74708
74693
  super();
74709
74694
  this.spLay = spLay;
74710
74695
  this.canFocus = canFocus;
74696
+ this.sys = sys;
74711
74697
  _TxtStage_instances.add(this);
74712
74698
  _TxtStage_htmTxt.set(this, document.createElement('span'));
74713
74699
  _TxtStage_cntTxt.set(this, new pixi_js_1.Container);
@@ -74744,7 +74730,7 @@ class TxtStage extends pixi_js_1.Container {
74744
74730
  _TxtStage_sss.set(this, undefined);
74745
74731
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
74746
74732
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
74747
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_parSn).appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
74733
+ document.body.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
74748
74734
  this.addChild(__classPrivateFieldGet(this, _TxtStage_cntTxt, "f"));
74749
74735
  this.addChild(__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f"));
74750
74736
  __classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").name = 'grpDbgMasume';
@@ -74752,7 +74738,6 @@ class TxtStage extends pixi_js_1.Container {
74752
74738
  }
74753
74739
  static init(cfg) {
74754
74740
  __classPrivateFieldSet(TxtStage, _a, cfg, "f", _TxtStage_cfg);
74755
- __classPrivateFieldSet(TxtStage, _a, document.getElementById(CmnLib_1.CmnLib.SN_ID).parentElement, "f", _TxtStage_parSn);
74756
74741
  __classPrivateFieldSet(TxtStage, _a, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, "f", _TxtStage_reg行頭禁則);
74757
74742
  __classPrivateFieldSet(TxtStage, _a, /[[({〈「『【〔“〝]/, "f", _TxtStage_reg行末禁則);
74758
74743
  __classPrivateFieldSet(TxtStage, _a, /[─‥…]/, "f", _TxtStage_reg分割禁止);
@@ -74829,9 +74814,9 @@ class TxtStage extends pixi_js_1.Container {
74829
74814
  }
74830
74815
  cvsResize() {
74831
74816
  const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
74832
- s.left = (__classPrivateFieldGet(this, _TxtStage_left, "f") * CmnLib_1.CmnLib.cvsScale) + 'px';
74833
- s.top = (this.spLay.position.y * CmnLib_1.CmnLib.cvsScale) + 'px';
74834
- s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * CmnLib_1.CmnLib.cvsScale}, ${this.spLay.scale.y * CmnLib_1.CmnLib.cvsScale}`;
74817
+ s.left = `${this.sys.ofsLeft4frm + __classPrivateFieldGet(this, _TxtStage_left, "f") * this.sys.cvsScale}px`;
74818
+ s.top = `${this.sys.ofsTop4frm + this.spLay.position.y * this.sys.cvsScale}px`;
74819
+ s.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * this.sys.cvsScale}, ${this.spLay.scale.y * this.sys.cvsScale})`;
74835
74820
  __classPrivateFieldGet(this, _TxtStage_idc, "f").cvsResize();
74836
74821
  __classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
74837
74822
  }
@@ -74872,21 +74857,21 @@ class TxtStage extends pixi_js_1.Container {
74872
74857
  do {
74873
74858
  const e = __classPrivateFieldSet(this, _TxtStage_aRect, __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_getChRects).call(this, __classPrivateFieldGet(this, _TxtStage_htmTxt, "f")), "f");
74874
74859
  len = e.length;
74875
- if (CmnLib_1.CmnLib.cvsScale !== 1) {
74876
- const ox = CmnLib_1.CmnLib.ofsPadLeft_Dom2PIXI
74860
+ if (this.sys.cvsScale !== 1) {
74861
+ const ox = this.sys.ofsPadLeft_Dom2PIXI
74877
74862
  + parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.left)
74878
- * (1 - CmnLib_1.CmnLib.cvsScale);
74879
- const oy = CmnLib_1.CmnLib.ofsPadTop_Dom2PIXI
74863
+ * (1 - this.sys.cvsScale);
74864
+ const oy = this.sys.ofsPadTop_Dom2PIXI
74880
74865
  + parseFloat(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.top)
74881
- * (1 - CmnLib_1.CmnLib.cvsScale);
74866
+ * (1 - this.sys.cvsScale);
74882
74867
  for (let i = 0; i < len; ++i) {
74883
74868
  const r = e[i].rect;
74884
74869
  r.x -= ox;
74885
74870
  r.y -= oy;
74886
- r.x /= CmnLib_1.CmnLib.cvsScale;
74887
- r.y /= CmnLib_1.CmnLib.cvsScale;
74888
- r.width /= CmnLib_1.CmnLib.cvsScale;
74889
- r.height /= CmnLib_1.CmnLib.cvsScale;
74871
+ r.x /= this.sys.cvsScale;
74872
+ r.y /= this.sys.cvsScale;
74873
+ r.width /= this.sys.cvsScale;
74874
+ r.height /= this.sys.cvsScale;
74890
74875
  }
74891
74876
  }
74892
74877
  if (len < 2)
@@ -75138,7 +75123,7 @@ class TxtStage extends pixi_js_1.Container {
75138
75123
  }
75139
75124
  reNew() {
75140
75125
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
75141
- const to = new TxtStage(this.spLay, () => this.canFocus());
75126
+ const to = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
75142
75127
  __classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
75143
75128
  __classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
75144
75129
  __classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
@@ -75591,7 +75576,6 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
75591
75576
  __classPrivateFieldSet(this, _TxtStage_htmTxt, n, "f");
75592
75577
  };
75593
75578
  _TxtStage_cfg = { value: void 0 };
75594
- _TxtStage_parSn = { value: void 0 };
75595
75579
  _TxtStage_evtMng = { value: void 0 };
75596
75580
  _TxtStage_hWarning = { value: {
75597
75581
  backgroundColor: 0,