@famibee/skynovel 1.22.2 → 1.23.2

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/web.js CHANGED
@@ -68253,7 +68253,7 @@ class Button extends pixi_js_1.Container {
68253
68253
  align: 'center',
68254
68254
  dropShadow: true,
68255
68255
  dropShadowAlpha: 0.7,
68256
- dropShadowColor: '#ffffff',
68256
+ dropShadowColor: 'white',
68257
68257
  dropShadowBlur: 7,
68258
68258
  dropShadowDistance: 0,
68259
68259
  fill: 'black',
@@ -68469,7 +68469,7 @@ exports.CallStack = CallStack;
68469
68469
  "use strict";
68470
68470
 
68471
68471
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68472
- exports.CmnLib = exports.getExt = exports.getFn = exports.argChk_Boolean = exports.argChk_Num = exports.addStyle = exports.initStyle = exports.cnvTweenArg = exports.hMemberCnt = exports.getDateStr = exports.uint = exports.int = void 0;
68472
+ exports.CmnLib = exports.getExt = exports.getFn = exports.argChk_Color = exports.parseColor = exports.argChk_Boolean = exports.argChk_Num = exports.addStyle = exports.initStyle = exports.cnvTweenArg = exports.hMemberCnt = exports.getDateStr = exports.uint = exports.int = void 0;
68473
68473
  function int(o) { return parseInt(String(o), 10); }
68474
68474
  exports.int = int;
68475
68475
  function uint(o) {
@@ -68571,6 +68571,28 @@ function argChk_Boolean(hash, name, def) {
68571
68571
  return hash[name] = (v2 === 'false') ? false : Boolean(v2);
68572
68572
  }
68573
68573
  exports.argChk_Boolean = argChk_Boolean;
68574
+ function parseColor(v) {
68575
+ if (v.charAt(0) === '#')
68576
+ return parseInt(v.slice(1), 16);
68577
+ const n = Number(v);
68578
+ if (!isNaN(n))
68579
+ return n;
68580
+ if (v === 'black')
68581
+ return 0;
68582
+ CmnLib.cc4ColorName.fillStyle = v;
68583
+ const cc = CmnLib.cc4ColorName.fillStyle;
68584
+ if (cc === '#000000')
68585
+ throw `色名前 ${v} が異常です`;
68586
+ return parseInt(cc.slice(1), 16);
68587
+ }
68588
+ exports.parseColor = parseColor;
68589
+ function argChk_Color(hash, name, def) {
68590
+ const v = hash[name];
68591
+ if (!v)
68592
+ return hash[name] = def;
68593
+ return hash[name] = parseColor(String(v));
68594
+ }
68595
+ exports.argChk_Color = argChk_Color;
68574
68596
  const REG_FN = /^[^\/\.]+$|[^\/]+(?=\.)/;
68575
68597
  function getFn(p) { return (p.match(REG_FN) ?? [''])[0]; }
68576
68598
  exports.getFn = getFn;
@@ -68801,12 +68823,7 @@ class Config {
68801
68823
  this.oCfg.book = { ...this.oCfg.book, ...oCfg.book };
68802
68824
  this.oCfg.log.max_len = oCfg.log?.max_len?.max_len ?? this.oCfg.log.max_len;
68803
68825
  this.oCfg.init = { ...this.oCfg.init, ...oCfg.init };
68804
- if ('init' in oCfg)
68805
- for (const n in this.oCfg.init) {
68806
- const v = String(this.oCfg.init[n]);
68807
- if (v.charAt(0) === '#')
68808
- this.oCfg.init[n] = parseInt(v.slice(1), 16);
68809
- }
68826
+ this.oCfg.init.bg_color = (0, CmnLib_1.parseColor)(String(this.oCfg.init.bg_color));
68810
68827
  this.oCfg.debug = { ...this.oCfg.debug, ...oCfg.debug };
68811
68828
  CmnLib_1.CmnLib.debugLog = this.oCfg.debug.debugLog;
68812
68829
  this.oCfg.debuger_token = oCfg.debuger_token;
@@ -69578,7 +69595,7 @@ class TxtLayDesignCast extends DesignCast {
69578
69595
  };
69579
69596
  }
69580
69597
  getRect() {
69581
- const it = this.ts.getInfTL();
69598
+ const it = this.ts.infTL;
69582
69599
  return new pixi_js_1.Rectangle(this.spLay.x, this.spLay.y, it.$width, it.$height);
69583
69600
  }
69584
69601
  cnvPosArg(left, top) { return { left, top }; }
@@ -69606,12 +69623,12 @@ class TxtLayPadDesignCast extends DesignCast {
69606
69623
  this.rotatable = false;
69607
69624
  }
69608
69625
  getRect() {
69609
- const it = this.ts.getInfTL();
69626
+ const it = this.ts.infTL;
69610
69627
  return new pixi_js_1.Rectangle(it.pad_left, it.pad_top, it.$width - it.pad_left - it.pad_right, it.$height - it.pad_top - it.pad_bottom);
69611
69628
  }
69612
69629
  cnvPosArg(pl, pt) { return { pl, pt }; }
69613
69630
  cnvSizeArg(w, h) {
69614
- const it = this.ts.getInfTL();
69631
+ const it = this.ts.infTL;
69615
69632
  return {
69616
69633
  pr: it.$width - it.pad_left - w,
69617
69634
  pb: it.$height - it.pad_top - h,
@@ -69622,7 +69639,7 @@ class TxtLayPadDesignCast extends DesignCast {
69622
69639
  this.ts.lay({ ...this.cnvSizeArg(w, h), ':redraw': true });
69623
69640
  }
69624
69641
  setOther(hPrm) {
69625
- const it = this.ts.getInfTL();
69642
+ const it = this.ts.infTL;
69626
69643
  if ('pl' in hPrm || 'pt' in hPrm) {
69627
69644
  this.setPos(this.rect.x = parseFloat(DesignCast.prpPrs.getValAmpersand(hPrm.pl?.val ?? `${it.pad_left}`)), this.rect.y = parseFloat(DesignCast.prpPrs.getValAmpersand(hPrm.pt?.val ?? `${it.pad_top}`)));
69628
69645
  this.cvsResize();
@@ -69650,7 +69667,7 @@ exports.TxtLayPadDesignCast = TxtLayPadDesignCast;
69650
69667
  _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint = function _TxtLayPadDesignCast_procHint(left, top, dx, dy) {
69651
69668
  const x = this.rect.x, y = this.rect.y;
69652
69669
  const w = this.rect.width, h = this.rect.height;
69653
- const it = this.ts.getInfTL();
69670
+ const it = this.ts.infTL;
69654
69671
  const pl = (0, CmnLib_1.int)(x + dx / CmnLib_1.CmnLib.cvsScale);
69655
69672
  const pt = (0, CmnLib_1.int)(y + dy / CmnLib_1.CmnLib.cvsScale);
69656
69673
  const pr = (0, CmnLib_1.int)(it.$width - pl - w);
@@ -69823,7 +69840,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
69823
69840
  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");
69824
69841
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
69825
69842
  };
69826
- var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p, _EventMng_fncCancelSkip, _EventMng_set_cancel_skip, _EventMng_unregisterClickEvts, _EventMng_wait, _EventMng_waitclick, _EventMng_hDownKeys;
69843
+ var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_hArg, _EventMng_dispHint_ctnBtn, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p, _EventMng_fncCancelSkip, _EventMng_set_cancel_skip, _EventMng_unregisterClickEvts, _EventMng_set_focus, _EventMng_wait, _EventMng_waitclick, _EventMng_hDownKeys;
69827
69844
  Object.defineProperty(exports, "__esModule", ({ value: true }));
69828
69845
  exports.EventMng = void 0;
69829
69846
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -69873,6 +69890,8 @@ class EventMng {
69873
69890
  __classPrivateFieldSet(this, _EventMng_firstWait, () => { }, "f");
69874
69891
  this.scrItr.firstWait();
69875
69892
  });
69893
+ _EventMng_dispHint_hArg.set(this, void 0);
69894
+ _EventMng_dispHint_ctnBtn.set(this, void 0);
69876
69895
  _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate) => {
69877
69896
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").zIndex = 1000;
69878
69897
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").x = rctBtn.x;
@@ -69918,7 +69937,7 @@ class EventMng {
69918
69937
  return true;
69919
69938
  };
69920
69939
  hTag.set_cancel_skip = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_cancel_skip).call(this);
69921
- hTag.set_focus = o => this.set_focus(o);
69940
+ hTag.set_focus = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_focus).call(this, o);
69922
69941
  hTag.wait = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_wait).call(this, o);
69923
69942
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
69924
69943
  sndMng.setEvtMng(this);
@@ -70226,6 +70245,11 @@ class EventMng {
70226
70245
  }
70227
70246
  this.sndMng.loadAheadSnd(hArg);
70228
70247
  }
70248
+ cvsResize() {
70249
+ if (__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden)
70250
+ return;
70251
+ __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, __classPrivateFieldGet(this, _EventMng_dispHint_hArg, "f"), __classPrivateFieldGet(this, _EventMng_dispHint_ctnBtn, "f"), false);
70252
+ }
70229
70253
  waitLimitedEvent(hArg, onFinish) {
70230
70254
  __classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
70231
70255
  this.val.saveKidoku();
@@ -70251,44 +70275,6 @@ class EventMng {
70251
70275
  __classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
70252
70276
  return true;
70253
70277
  }
70254
- set_focus(hArg) {
70255
- const add = hArg.add;
70256
- if (add?.slice(0, 4) === 'dom=') {
70257
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
70258
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70259
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70260
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
70261
- if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
70262
- return false;
70263
- elm.focus();
70264
- return true;
70265
- }, () => { }));
70266
- return false;
70267
- }
70268
- const del = hArg.del;
70269
- if (del?.slice(0, 4) === 'dom=') {
70270
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
70271
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70272
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70273
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
70274
- return false;
70275
- }
70276
- const to = hArg.to;
70277
- if (!to)
70278
- throw '[set_focus] add か to は必須です';
70279
- switch (to) {
70280
- case 'null':
70281
- __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
70282
- break;
70283
- case 'next':
70284
- __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
70285
- break;
70286
- case 'prev':
70287
- __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
70288
- break;
70289
- }
70290
- return false;
70291
- }
70292
70278
  isSkipKeyDown() {
70293
70279
  if (this.scrItr.skip4page)
70294
70280
  return true;
@@ -70299,7 +70285,7 @@ class EventMng {
70299
70285
  }
70300
70286
  }
70301
70287
  exports.EventMng = EventMng;
70302
- _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(), _EventMng_fncCancelSkip = new WeakMap(), _EventMng_hDownKeys = new WeakMap(), _EventMng_instances = new WeakSet(), _EventMng_ev_keydown = function _EventMng_ev_keydown(e) {
70288
+ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_hArg = new WeakMap(), _EventMng_dispHint_ctnBtn = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(), _EventMng_fncCancelSkip = new WeakMap(), _EventMng_hDownKeys = new WeakMap(), _EventMng_instances = new WeakSet(), _EventMng_ev_keydown = function _EventMng_ev_keydown(e) {
70303
70289
  if (e['isComposing'])
70304
70290
  return;
70305
70291
  if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
@@ -70366,7 +70352,9 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70366
70352
  o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
70367
70353
  console.log(`🎍 wait event... %o`, o);
70368
70354
  }
70369
- }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
70355
+ }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn, masume = true) {
70356
+ __classPrivateFieldSet(this, _EventMng_dispHint_hArg, hArg, "f");
70357
+ __classPrivateFieldSet(this, _EventMng_dispHint_ctnBtn, ctnBtn, "f");
70370
70358
  const rctBtn = ctnBtn instanceof Button_1.Button
70371
70359
  ? ctnBtn.getBtnBounds()
70372
70360
  : ctnBtn.getBounds();
@@ -70380,12 +70368,14 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70380
70368
  const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
70381
70369
  const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
70382
70370
  const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
70383
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${rctBtn.x}px`;
70384
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${rctBtn.y}px`;
70371
+ const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
70372
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
70373
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
70385
70374
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
70386
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x}, 1) 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)`;
70375
+ __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)`;
70387
70376
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
70388
- __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
70377
+ if (masume)
70378
+ __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
70389
70379
  }, _EventMng_clear_event = function _EventMng_clear_event(hArg) {
70390
70380
  const glb = (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false);
70391
70381
  const h = glb ? __classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f") : __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -70563,6 +70553,43 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70563
70553
  delete hE1T['ArrowDown'];
70564
70554
  delete hE1T['wheel.y>0'];
70565
70555
  }
70556
+ }, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
70557
+ const add = hArg.add;
70558
+ if (add?.slice(0, 4) === 'dom=') {
70559
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
70560
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70561
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70562
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
70563
+ if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
70564
+ return false;
70565
+ elm.focus();
70566
+ return true;
70567
+ }, () => { }));
70568
+ return false;
70569
+ }
70570
+ const del = hArg.del;
70571
+ if (del?.slice(0, 4) === 'dom=') {
70572
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
70573
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70574
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70575
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
70576
+ return false;
70577
+ }
70578
+ const to = hArg.to;
70579
+ if (!to)
70580
+ throw '[set_focus] add か to は必須です';
70581
+ switch (to) {
70582
+ case 'null':
70583
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
70584
+ break;
70585
+ case 'next':
70586
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
70587
+ break;
70588
+ case 'prev':
70589
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
70590
+ break;
70591
+ }
70592
+ return false;
70566
70593
  }, _EventMng_wait = function _EventMng_wait(hArg) {
70567
70594
  if (this.scrItr.skip4page)
70568
70595
  return false;
@@ -72134,6 +72161,7 @@ void main(void) {
72134
72161
  else
72135
72162
  __classPrivateFieldGet(this, _LayerMng_aLayName, "f").forEach(layer => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore.cvsResize());
72136
72163
  __classPrivateFieldGet(this, _LayerMng_frmMng, "f").cvsResize();
72164
+ __classPrivateFieldGet(this, _LayerMng_evtMng, "f").cvsResize();
72137
72165
  };
72138
72166
  if (CmnLib_1.CmnLib.isMobile) {
72139
72167
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
@@ -72386,14 +72414,14 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
72386
72414
  if (this.sys.canCapturePage(fn))
72387
72415
  return false;
72388
72416
  const ext = (0, CmnLib_1.getExt)(fn);
72389
- const b_color = hArg.b_color ?? this.cfg.oCfg.init.bg_color;
72417
+ const b_color = (0, CmnLib_1.argChk_Color)(hArg, 'b_color', this.cfg.oCfg.init.bg_color);
72390
72418
  const rnd = (0, pixi_js_1.autoDetectRenderer)({
72391
72419
  width: (0, CmnLib_1.argChk_Num)(hArg, 'width', CmnLib_1.CmnLib.stageW),
72392
72420
  height: (0, CmnLib_1.argChk_Num)(hArg, 'height', CmnLib_1.CmnLib.stageH),
72393
72421
  backgroundAlpha: (b_color > 0x1000000) && (ext === 'png') ? 0 : 1,
72394
72422
  antialias: (0, CmnLib_1.argChk_Boolean)(hArg, 'smoothing', false),
72395
72423
  preserveDrawingBuffer: true,
72396
- backgroundColor: (0, CmnLib_1.uint)(b_color) & 0xFFFFFF,
72424
+ backgroundColor: b_color & 0xFFFFFF,
72397
72425
  autoDensity: true,
72398
72426
  });
72399
72427
  const a = [];
@@ -73064,10 +73092,15 @@ class Main {
73064
73092
  }
73065
73093
  exports.Main = Main;
73066
73094
  _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() {
73095
+ const cc = document.createElement('canvas')?.getContext('2d');
73096
+ if (!cc)
73097
+ throw 'argChk_Color err';
73098
+ CmnLib_1.CmnLib.cc4ColorName = cc;
73067
73099
  const hApp = {
73068
73100
  width: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.width,
73069
73101
  height: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.height,
73070
- backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color,
73102
+ backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color =
73103
+ (0, CmnLib_1.parseColor)(String(__classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color)),
73071
73104
  resolution: globalThis.devicePixelRatio ?? 1,
73072
73105
  autoResize: true,
73073
73106
  };
@@ -75938,7 +75971,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
75938
75971
  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");
75939
75972
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
75940
75973
  };
75941
- 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_infTL, _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;
75974
+ 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;
75942
75975
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75943
75976
  exports.TxtLayer = void 0;
75944
75977
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -75954,21 +75987,12 @@ class TxtLayer extends Layer_1.Layer {
75954
75987
  constructor() {
75955
75988
  super();
75956
75989
  _TxtLayer_instances.add(this);
75957
- _TxtLayer_infTL.set(this, {
75958
- fontsize: 24,
75959
- $width: 0,
75960
- $height: 0,
75961
- pad_left: 0,
75962
- pad_right: 0,
75963
- pad_top: 0,
75964
- pad_bottom: 0,
75965
- });
75966
75990
  _TxtLayer_b_color.set(this, 0x000000);
75967
75991
  _TxtLayer_b_alpha.set(this, 0);
75968
75992
  _TxtLayer_b_alpha_isfixed.set(this, false);
75969
75993
  _TxtLayer_b_do.set(this, null);
75970
75994
  _TxtLayer_b_pic.set(this, '');
75971
- _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(__classPrivateFieldGet(this, _TxtLayer_infTL, "f"), this.spLay, () => this.canFocus()));
75995
+ _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
75972
75996
  _TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
75973
75997
  _TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
75974
75998
  _TxtLayer_$ch_in_style.set(this, '');
@@ -76384,8 +76408,8 @@ class TxtLayer extends Layer_1.Layer {
76384
76408
  return __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_drawBack).call(this, hArg, isStop => { if (isStop)
76385
76409
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_main).resume(); });
76386
76410
  }
76387
- get width() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth(); }
76388
- get height() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight(); }
76411
+ get width() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth; }
76412
+ get height() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight; }
76389
76413
  chgBackAlpha(g_alpha) {
76390
76414
  const alpha = __classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")
76391
76415
  ? __classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")
@@ -76395,13 +76419,12 @@ class TxtLayer extends Layer_1.Layer {
76395
76419
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
76396
76420
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
76397
76421
  }
76398
- const grp = __classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f");
76399
- grp.name = 'back(color)';
76400
- grp.beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"));
76401
- grp.lineStyle(undefined);
76402
- grp.drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$width, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$height);
76403
- grp.endFill();
76404
- this.spLay.addChildAt(grp, 0);
76422
+ this.spLay.addChildAt((__classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f"))
76423
+ .beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"))
76424
+ .lineStyle(undefined)
76425
+ .drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight)
76426
+ .endFill(), 0);
76427
+ __classPrivateFieldGet(this, _TxtLayer_b_do, "f").name = 'back(color)';
76405
76428
  }
76406
76429
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
76407
76430
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").visible = (alpha > 0);
@@ -76466,6 +76489,8 @@ class TxtLayer extends Layer_1.Layer {
76466
76489
  this.enabled = hLay.enabled;
76467
76490
  __classPrivateFieldSet(this, _TxtLayer_r_align, hLay.r_align, "f");
76468
76491
  this.cvsResize();
76492
+ __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_setFfs).call(this, hLay);
76493
+ __classPrivateFieldGet(this, _TxtLayer_txs, "f").playback(hLay.txs);
76469
76494
  __classPrivateFieldSet(this, _TxtLayer_b_alpha, hLay.b_alpha, "f");
76470
76495
  __classPrivateFieldSet(this, _TxtLayer_b_alpha_isfixed, hLay.b_alpha_isfixed, "f");
76471
76496
  aPrm.push(new Promise(re => {
@@ -76477,8 +76502,6 @@ class TxtLayer extends Layer_1.Layer {
76477
76502
  re(); }))
76478
76503
  re();
76479
76504
  }));
76480
- __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_setFfs).call(this, hLay);
76481
- __classPrivateFieldGet(this, _TxtLayer_txs, "f").playback(hLay.txs);
76482
76505
  const aBtn = hLay.btns;
76483
76506
  aPrm = aPrm.concat(aBtn.map(v => this.addButton(JSON.parse(v.replaceAll(`'`, '"')))));
76484
76507
  }
@@ -76503,11 +76526,11 @@ class TxtLayer extends Layer_1.Layer {
76503
76526
  }
76504
76527
  dump() {
76505
76528
  __classPrivateFieldGet(this, _TxtLayer_putCh, "f").call(this, '', 'gotxt|');
76506
- return super.dump() + `, "enabled":"${this.enabled}", ${__classPrivateFieldGet(this, _TxtLayer_txs, "f").dump()}, "b_pic":"${__classPrivateFieldGet(this, _TxtLayer_b_pic, "f")}", "b_color":"${__classPrivateFieldGet(this, _TxtLayer_b_color, "f")}", "b_alpha":${__classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")}, "b_alpha_isfixed":"${__classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")}", "b_width":${__classPrivateFieldGet(this, _TxtLayer_infTL, "f").$width}, "b_height":${__classPrivateFieldGet(this, _TxtLayer_infTL, "f").$height}, "pixi_obj":[${this.spLay.children.map(e => `{"class":"${(e instanceof pixi_js_1.Sprite) ? 'Sprite' : ((e instanceof pixi_js_1.Graphics) ? 'Graphics' : ((e instanceof pixi_js_1.Container) ? 'Container' : '?'))}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(',')}], "button":[${__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").children.map(d => d.children[0].name ?? '{}').join(',')}]`;
76529
+ return super.dump() + `, "enabled":"${this.enabled}", ${__classPrivateFieldGet(this, _TxtLayer_txs, "f").dump()}, "b_pic":"${__classPrivateFieldGet(this, _TxtLayer_b_pic, "f")}", "b_color":"${__classPrivateFieldGet(this, _TxtLayer_b_color, "f")}", "b_alpha":${__classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")}, "b_alpha_isfixed":"${__classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")}", "width":${__classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth}, "height":${__classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight}, "pixi_obj":[${this.spLay.children.map(e => `{"class":"${(e instanceof pixi_js_1.Sprite) ? 'Sprite' : ((e instanceof pixi_js_1.Graphics) ? 'Graphics' : ((e instanceof pixi_js_1.Container) ? 'Container' : '?'))}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(',')}], "button":[${__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").children.map(d => d.children[0].name ?? '{}').join(',')}]`;
76507
76530
  }
76508
76531
  }
76509
76532
  exports.TxtLayer = TxtLayer;
76510
- _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMap(), _TxtLayer_b_alpha_isfixed = new WeakMap(), _TxtLayer_b_do = new WeakMap(), _TxtLayer_b_pic = new WeakMap(), _TxtLayer_txs = new WeakMap(), _TxtLayer_rbSpl = new WeakMap(), _TxtLayer_cntBtn = new WeakMap(), _TxtLayer_$ch_in_style = new WeakMap(), _TxtLayer_ch_in_join = new WeakMap(), _TxtLayer_$ch_out_style = new WeakMap(), _TxtLayer_ffs = new WeakMap(), _TxtLayer_fncFFSStyle = new WeakMap(), _TxtLayer_fncFFSSpan = new WeakMap(), _TxtLayer_strNoFFS = new WeakMap(), _TxtLayer_regNoFFS = new WeakMap(), _TxtLayer_ruby_pd = new WeakMap(), _TxtLayer_r_align = new WeakMap(), _TxtLayer_needGoTxt = new WeakMap(), _TxtLayer_putCh = new WeakMap(), _TxtLayer_cumDelay = new WeakMap(), _TxtLayer_firstCh = new WeakMap(), _TxtLayer_aSpan = new WeakMap(), _TxtLayer_aSpan_bk = new WeakMap(), _TxtLayer_aSpan_link = new WeakMap(), _TxtLayer_hSpanBk = new WeakMap(), _TxtLayer_page_text = new WeakMap(), _TxtLayer_instances = new WeakSet(), _TxtLayer_ch_in_style = function _TxtLayer_ch_in_style(hArg) {
76533
+ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMap(), _TxtLayer_b_alpha_isfixed = new WeakMap(), _TxtLayer_b_do = new WeakMap(), _TxtLayer_b_pic = new WeakMap(), _TxtLayer_txs = new WeakMap(), _TxtLayer_rbSpl = new WeakMap(), _TxtLayer_cntBtn = new WeakMap(), _TxtLayer_$ch_in_style = new WeakMap(), _TxtLayer_ch_in_join = new WeakMap(), _TxtLayer_$ch_out_style = new WeakMap(), _TxtLayer_ffs = new WeakMap(), _TxtLayer_fncFFSStyle = new WeakMap(), _TxtLayer_fncFFSSpan = new WeakMap(), _TxtLayer_strNoFFS = new WeakMap(), _TxtLayer_regNoFFS = new WeakMap(), _TxtLayer_ruby_pd = new WeakMap(), _TxtLayer_r_align = new WeakMap(), _TxtLayer_needGoTxt = new WeakMap(), _TxtLayer_putCh = new WeakMap(), _TxtLayer_cumDelay = new WeakMap(), _TxtLayer_firstCh = new WeakMap(), _TxtLayer_aSpan = new WeakMap(), _TxtLayer_aSpan_bk = new WeakMap(), _TxtLayer_aSpan_link = new WeakMap(), _TxtLayer_hSpanBk = new WeakMap(), _TxtLayer_page_text = new WeakMap(), _TxtLayer_instances = new WeakSet(), _TxtLayer_ch_in_style = function _TxtLayer_ch_in_style(hArg) {
76511
76534
  const o = TxtStage_1.TxtStage.ch_in_style(hArg);
76512
76535
  const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
76513
76536
  const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
@@ -76620,19 +76643,18 @@ _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(
76620
76643
  }
76621
76644
  }
76622
76645
  else if ('b_color' in hArg) {
76623
- __classPrivateFieldSet(this, _TxtLayer_b_color, parseInt(hArg.b_color || '0'), "f");
76646
+ __classPrivateFieldSet(this, _TxtLayer_b_color, (0, CmnLib_1.argChk_Color)(hArg, 'b_color', 0x000000), "f");
76624
76647
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
76625
76648
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
76626
76649
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
76627
76650
  }
76628
76651
  __classPrivateFieldSet(this, _TxtLayer_b_pic, '', "f");
76629
- const grp = __classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f");
76630
- grp.name = 'back(color)';
76631
- grp.beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"));
76632
- grp.lineStyle(undefined);
76633
- grp.drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$width, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$height);
76634
- grp.endFill();
76635
- this.spLay.addChildAt(grp, 0);
76652
+ this.spLay.addChildAt((__classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f"))
76653
+ .beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"))
76654
+ .lineStyle(undefined)
76655
+ .drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight)
76656
+ .endFill(), 0);
76657
+ __classPrivateFieldGet(this, _TxtLayer_b_do, "f").name = 'back(color)';
76636
76658
  }
76637
76659
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
76638
76660
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").visible = (alpha > 0);
@@ -76773,7 +76795,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
76773
76795
  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");
76774
76796
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
76775
76797
  };
76776
- var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _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_rctm, _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;
76798
+ var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _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_rctm, _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;
76777
76799
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76778
76800
  exports.TxtStage = void 0;
76779
76801
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -76786,9 +76808,8 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
76786
76808
  ;
76787
76809
  ;
76788
76810
  class TxtStage extends pixi_js_1.Container {
76789
- constructor(infTL, spLay, canFocus) {
76811
+ constructor(spLay, canFocus) {
76790
76812
  super();
76791
- this.infTL = infTL;
76792
76813
  this.spLay = spLay;
76793
76814
  this.canFocus = canFocus;
76794
76815
  _TxtStage_instances.add(this);
@@ -76797,6 +76818,15 @@ class TxtStage extends pixi_js_1.Container {
76797
76818
  _TxtStage_grpDbgMasume.set(this, new pixi_js_1.Graphics);
76798
76819
  _TxtStage_idc.set(this, new DesignCast_1.TxtLayDesignCast(this.spLay, this));
76799
76820
  _TxtStage_idcCh.set(this, new DesignCast_1.TxtLayPadDesignCast(this));
76821
+ _TxtStage_infTL.set(this, {
76822
+ fontsize: 24,
76823
+ $width: 0,
76824
+ $height: 0,
76825
+ pad_left: 0,
76826
+ pad_right: 0,
76827
+ pad_top: 0,
76828
+ pad_bottom: 0,
76829
+ });
76800
76830
  _TxtStage_left.set(this, 0);
76801
76831
  _TxtStage_isTategaki.set(this, false);
76802
76832
  _TxtStage_padTx4x.set(this, 0);
@@ -76846,7 +76876,6 @@ class TxtStage extends pixi_js_1.Container {
76846
76876
  __classPrivateFieldSet(TxtStage, _a, Object.create(null), "f", _TxtStage_hChOutStyle);
76847
76877
  __classPrivateFieldSet(TxtStage, _a, new pixi_js_1.Container, "f", _TxtStage_cntBreak);
76848
76878
  }
76849
- getInfTL() { return this.infTL; }
76850
76879
  lay(hArg) {
76851
76880
  const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
76852
76881
  if (hArg.style) {
@@ -76882,7 +76911,7 @@ class TxtStage extends pixi_js_1.Container {
76882
76911
  __classPrivateFieldGet(this, _TxtStage_idc, "f").sethArg(hArg);
76883
76912
  __classPrivateFieldSet(this, _TxtStage_left, this.spLay.position.x
76884
76913
  - (CmnLib_1.CmnLib.isSafari && !CmnLib_1.CmnLib.isMobile && __classPrivateFieldGet(this, _TxtStage_isTategaki, "f")
76885
- ? this.infTL.pad_left + this.infTL.pad_right
76914
+ ? __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right
76886
76915
  : 0), "f");
76887
76916
  s.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`;
76888
76917
  this.cvsResize();
@@ -76906,13 +76935,14 @@ class TxtStage extends pixi_js_1.Container {
76906
76935
  __classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
76907
76936
  }
76908
76937
  get tategaki() { return __classPrivateFieldGet(this, _TxtStage_isTategaki, "f"); }
76909
- getWidth() { return this.infTL.$width; }
76910
- getHeight() { return this.infTL.$height; }
76938
+ get infTL() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f"); }
76939
+ get getWidth() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width; }
76940
+ get getHeight() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height; }
76911
76941
  setSize(width, height) {
76912
- this.infTL.$width = width;
76913
- this.infTL.$height = height;
76914
- __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.width = this.infTL.$width + 'px';
76915
- __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = this.infTL.$height + 'px';
76942
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width = width;
76943
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height = height;
76944
+ __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.width = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width + 'px';
76945
+ __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height + 'px';
76916
76946
  }
76917
76947
  goTxt(aSpan) {
76918
76948
  var _b;
@@ -76921,15 +76951,15 @@ class TxtStage extends pixi_js_1.Container {
76921
76951
  if (begin === 0) {
76922
76952
  if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cfg).oCfg.debug.masume) {
76923
76953
  if (CmnLib_1.CmnLib.debugLog)
76924
- console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${this.infTL.pad_left} pr:${this.infTL.pad_right} pt:${this.infTL.pad_top} pb:${this.infTL.pad_bottom} w:${this.infTL.$width} h:${this.infTL.$height}`);
76954
+ console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left} pr:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right} pt:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top} pb:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom} w:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width} h:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height}`);
76925
76955
  __classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").clear()
76926
76956
  .beginFill(0x33FF00, 0.2)
76927
76957
  .lineStyle(1, 0x33FF00, 1)
76928
- .drawRect(-this.infTL.pad_left, -this.infTL.pad_top, this.infTL.$width, this.infTL.$height)
76958
+ .drawRect(-__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, -__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height)
76929
76959
  .endFill()
76930
76960
  .beginFill(0x0033FF, 0.2)
76931
76961
  .lineStyle(2, 0x0033FF, 1)
76932
- .drawRect(0, 0, this.infTL.$width - this.infTL.pad_left - this.infTL.pad_right, this.infTL.$height - this.infTL.pad_top - this.infTL.pad_bottom)
76962
+ .drawRect(0, 0, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom)
76933
76963
  .endFill();
76934
76964
  }
76935
76965
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").innerHTML = [...aSpan].join('');
@@ -77026,8 +77056,8 @@ class TxtStage extends pixi_js_1.Container {
77026
77056
  : () => { };
77027
77057
  const ease = CmnTween_1.CmnTween.ease(__classPrivateFieldGet(this, _TxtStage_fi_easing, "f"));
77028
77058
  const bcr = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getBoundingClientRect();
77029
- const sx = bcr.left + globalThis.scrollX + this.infTL.pad_left;
77030
- const sy = bcr.top + globalThis.scrollY + this.infTL.pad_top;
77059
+ const sx = bcr.left + globalThis.scrollX + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left;
77060
+ const sy = bcr.top + globalThis.scrollY + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top;
77031
77061
  for (let i = begin; i < len; ++i) {
77032
77062
  const v = __classPrivateFieldGet(this, _TxtStage_aRect, "f")[i];
77033
77063
  const rct = v.rect;
@@ -77208,7 +77238,8 @@ class TxtStage extends pixi_js_1.Container {
77208
77238
  }
77209
77239
  reNew() {
77210
77240
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
77211
- const to = new TxtStage(this.infTL, this.spLay, () => this.canFocus());
77241
+ const to = new TxtStage(this.spLay, () => this.canFocus());
77242
+ __classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
77212
77243
  __classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
77213
77244
  __classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
77214
77245
  to.name = this.name;
@@ -77222,7 +77253,7 @@ class TxtStage extends pixi_js_1.Container {
77222
77253
  }
77223
77254
  record() {
77224
77255
  return {
77225
- infTL: this.infTL,
77256
+ infTL: __classPrivateFieldGet(this, _TxtStage_infTL, "f"),
77226
77257
  cssText: __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText,
77227
77258
  left: __classPrivateFieldGet(this, _TxtStage_left, "f"),
77228
77259
  idc_hArg: __classPrivateFieldGet(this, _TxtStage_idc, "f").gethArg(),
@@ -77233,8 +77264,8 @@ class TxtStage extends pixi_js_1.Container {
77233
77264
  }
77234
77265
  ;
77235
77266
  playback(hLay) {
77236
- this.infTL = hLay.infTL;
77237
- this.position.set(this.infTL.pad_left, this.infTL.pad_top);
77267
+ __classPrivateFieldSet(this, _TxtStage_infTL, hLay.infTL, "f");
77268
+ this.position.set(__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top);
77238
77269
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText = hLay.cssText;
77239
77270
  __classPrivateFieldSet(this, _TxtStage_left, hLay.left, "f");
77240
77271
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_lay_sub).call(this);
@@ -77247,13 +77278,13 @@ class TxtStage extends pixi_js_1.Container {
77247
77278
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_htm2tx).call(this, tx => {
77248
77279
  __classPrivateFieldSet(this, _TxtStage_sss, new pixi_js_1.Sprite(tx), "f");
77249
77280
  if (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f")) {
77250
- __classPrivateFieldGet(this, _TxtStage_sss, "f").x += CmnLib_1.CmnLib.stageW - (__classPrivateFieldGet(this, _TxtStage_left, "f") + this.infTL.$width)
77281
+ __classPrivateFieldGet(this, _TxtStage_sss, "f").x += CmnLib_1.CmnLib.stageW - (__classPrivateFieldGet(this, _TxtStage_left, "f") + __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width)
77251
77282
  - ((CmnLib_1.CmnLib.isSafari && !CmnLib_1.CmnLib.isMobile)
77252
77283
  ? 0
77253
- : this.infTL.pad_left + this.infTL.pad_right);
77284
+ : __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right);
77254
77285
  }
77255
77286
  __classPrivateFieldGet(this, _TxtStage_sss, "f").y -= __classPrivateFieldGet(this, _TxtStage_padTx4y, "f");
77256
- __classPrivateFieldGet(this, _TxtStage_sss, "f").texture.frame = new pixi_js_1.Rectangle(0, 0, this.infTL.$width - __classPrivateFieldGet(this, _TxtStage_left, "f"), this.infTL.$height);
77287
+ __classPrivateFieldGet(this, _TxtStage_sss, "f").texture.frame = new pixi_js_1.Rectangle(0, 0, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_left, "f"), __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height);
77257
77288
  __classPrivateFieldGet(this, _TxtStage_cntTxt, "f").addChild(__classPrivateFieldGet(this, _TxtStage_sss, "f"));
77258
77289
  rnd.render(__classPrivateFieldGet(this, _TxtStage_sss, "f"), undefined, false);
77259
77290
  re();
@@ -77291,17 +77322,17 @@ class TxtStage extends pixi_js_1.Container {
77291
77322
  }
77292
77323
  }
77293
77324
  exports.TxtStage = TxtStage;
77294
- _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(), _TxtStage_grpDbgMasume = new WeakMap(), _TxtStage_idc = new WeakMap(), _TxtStage_idcCh = new WeakMap(), _TxtStage_left = new WeakMap(), _TxtStage_isTategaki = new WeakMap(), _TxtStage_padTx4x = new WeakMap(), _TxtStage_padTx4y = new WeakMap(), _TxtStage_ch_filter = new WeakMap(), _TxtStage_aSpTw = new WeakMap(), _TxtStage_aRect = new WeakMap(), _TxtStage_lenHtmTxt = new WeakMap(), _TxtStage_beforeHTMLElm = new WeakMap(), _TxtStage_rctm = new WeakMap(), _TxtStage_REGDS = new WeakMap(), _TxtStage_fncEndChIn = new WeakMap(), _TxtStage_isChInIng = new WeakMap(), _TxtStage_lh_half = new WeakMap(), _TxtStage_fi_easing = new WeakMap(), _TxtStage_fo_easing = new WeakMap(), _TxtStage_sss = new WeakMap(), _TxtStage_instances = new WeakSet(), _TxtStage_lay_sub = function _TxtStage_lay_sub() {
77325
+ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(), _TxtStage_grpDbgMasume = new WeakMap(), _TxtStage_idc = new WeakMap(), _TxtStage_idcCh = new WeakMap(), _TxtStage_infTL = new WeakMap(), _TxtStage_left = new WeakMap(), _TxtStage_isTategaki = new WeakMap(), _TxtStage_padTx4x = new WeakMap(), _TxtStage_padTx4y = new WeakMap(), _TxtStage_ch_filter = new WeakMap(), _TxtStage_aSpTw = new WeakMap(), _TxtStage_aRect = new WeakMap(), _TxtStage_lenHtmTxt = new WeakMap(), _TxtStage_beforeHTMLElm = new WeakMap(), _TxtStage_rctm = new WeakMap(), _TxtStage_REGDS = new WeakMap(), _TxtStage_fncEndChIn = new WeakMap(), _TxtStage_isChInIng = new WeakMap(), _TxtStage_lh_half = new WeakMap(), _TxtStage_fi_easing = new WeakMap(), _TxtStage_fo_easing = new WeakMap(), _TxtStage_sss = new WeakMap(), _TxtStage_instances = new WeakSet(), _TxtStage_lay_sub = function _TxtStage_lay_sub() {
77295
77326
  const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
77296
77327
  const fs = parseFloat(s.fontSize || '0');
77297
- this.infTL.fontsize = fs;
77298
- this.infTL.pad_left = parseFloat(s.paddingLeft || '0');
77299
- this.infTL.pad_right = parseFloat(s.paddingRight || '0');
77300
- this.infTL.pad_top = parseFloat(s.paddingTop || '0');
77301
- this.infTL.pad_bottom = parseFloat(s.paddingBottom || '0');
77302
- this.infTL.$width = parseFloat(s.width || '0');
77303
- this.infTL.$height = parseFloat(s.height || '0');
77304
- this.position.set(this.infTL.pad_left, this.infTL.pad_top);
77328
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").fontsize = fs;
77329
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left = parseFloat(s.paddingLeft || '0');
77330
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right = parseFloat(s.paddingRight || '0');
77331
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top = parseFloat(s.paddingTop || '0');
77332
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom = parseFloat(s.paddingBottom || '0');
77333
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width = parseFloat(s.width || '0');
77334
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height = parseFloat(s.height || '0');
77335
+ this.position.set(__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top);
77305
77336
  __classPrivateFieldSet(this, _TxtStage_isTategaki, (s.writingMode === 'vertical-rl'), "f");
77306
77337
  __classPrivateFieldSet(this, _TxtStage_padTx4x, 0, "f");
77307
77338
  __classPrivateFieldSet(this, _TxtStage_padTx4y, 0, "f");
@@ -77513,8 +77544,8 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
77513
77544
  cln.style.paddingTop = __classPrivateFieldGet(this, _TxtStage_padTx4y, "f") + 'px';
77514
77545
  cln.style.left = '0px';
77515
77546
  cln.style.top = '0px';
77516
- cln.style.width = (this.infTL.$width - this.infTL.pad_left - this.infTL.pad_right) + 'px';
77517
- cln.style.height = (this.infTL.$height - this.infTL.pad_top - this.infTL.pad_bottom) + 'px';
77547
+ cln.style.width = (__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right) + 'px';
77548
+ cln.style.height = (__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom) + 'px';
77518
77549
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").hidden = hidden;
77519
77550
  return cln;
77520
77551
  })
@@ -77522,15 +77553,15 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
77522
77553
  .then(node => {
77523
77554
  node.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml');
77524
77555
  const img = new Image;
77525
- img.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${this.infTL.$width}px" height="${this.infTL.$height}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(node)
77556
+ img.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width}px" height="${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(node)
77526
77557
  .replaceAll('#', '%23').replaceAll('\n', '%0A')}</foreignObject></svg>`;
77527
77558
  return new Promise(resolve => img.onload = () => resolve(img));
77528
77559
  })
77529
77560
  .then(img => new Promise(resolve => setTimeout(() => resolve(img), 100)))
77530
77561
  .then((img) => {
77531
77562
  const canvas = document.createElement('canvas');
77532
- canvas.width = this.infTL.$width;
77533
- canvas.height = this.infTL.$height;
77563
+ canvas.width = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width;
77564
+ canvas.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height;
77534
77565
  canvas.getContext('2d').drawImage(img, 0, 0);
77535
77566
  canvas.toBlob(blob => {
77536
77567
  if (!blob)