@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/app.js CHANGED
@@ -66905,7 +66905,7 @@ class Button extends pixi_js_1.Container {
66905
66905
  align: 'center',
66906
66906
  dropShadow: true,
66907
66907
  dropShadowAlpha: 0.7,
66908
- dropShadowColor: '#ffffff',
66908
+ dropShadowColor: 'white',
66909
66909
  dropShadowBlur: 7,
66910
66910
  dropShadowDistance: 0,
66911
66911
  fill: 'black',
@@ -67121,7 +67121,7 @@ exports.CallStack = CallStack;
67121
67121
  "use strict";
67122
67122
 
67123
67123
  Object.defineProperty(exports, "__esModule", ({ value: true }));
67124
- 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;
67124
+ 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;
67125
67125
  function int(o) { return parseInt(String(o), 10); }
67126
67126
  exports.int = int;
67127
67127
  function uint(o) {
@@ -67223,6 +67223,28 @@ function argChk_Boolean(hash, name, def) {
67223
67223
  return hash[name] = (v2 === 'false') ? false : Boolean(v2);
67224
67224
  }
67225
67225
  exports.argChk_Boolean = argChk_Boolean;
67226
+ function parseColor(v) {
67227
+ if (v.charAt(0) === '#')
67228
+ return parseInt(v.slice(1), 16);
67229
+ const n = Number(v);
67230
+ if (!isNaN(n))
67231
+ return n;
67232
+ if (v === 'black')
67233
+ return 0;
67234
+ CmnLib.cc4ColorName.fillStyle = v;
67235
+ const cc = CmnLib.cc4ColorName.fillStyle;
67236
+ if (cc === '#000000')
67237
+ throw `色名前 ${v} が異常です`;
67238
+ return parseInt(cc.slice(1), 16);
67239
+ }
67240
+ exports.parseColor = parseColor;
67241
+ function argChk_Color(hash, name, def) {
67242
+ const v = hash[name];
67243
+ if (!v)
67244
+ return hash[name] = def;
67245
+ return hash[name] = parseColor(String(v));
67246
+ }
67247
+ exports.argChk_Color = argChk_Color;
67226
67248
  const REG_FN = /^[^\/\.]+$|[^\/]+(?=\.)/;
67227
67249
  function getFn(p) { return (p.match(REG_FN) ?? [''])[0]; }
67228
67250
  exports.getFn = getFn;
@@ -67453,12 +67475,7 @@ class Config {
67453
67475
  this.oCfg.book = { ...this.oCfg.book, ...oCfg.book };
67454
67476
  this.oCfg.log.max_len = oCfg.log?.max_len?.max_len ?? this.oCfg.log.max_len;
67455
67477
  this.oCfg.init = { ...this.oCfg.init, ...oCfg.init };
67456
- if ('init' in oCfg)
67457
- for (const n in this.oCfg.init) {
67458
- const v = String(this.oCfg.init[n]);
67459
- if (v.charAt(0) === '#')
67460
- this.oCfg.init[n] = parseInt(v.slice(1), 16);
67461
- }
67478
+ this.oCfg.init.bg_color = (0, CmnLib_1.parseColor)(String(this.oCfg.init.bg_color));
67462
67479
  this.oCfg.debug = { ...this.oCfg.debug, ...oCfg.debug };
67463
67480
  CmnLib_1.CmnLib.debugLog = this.oCfg.debug.debugLog;
67464
67481
  this.oCfg.debuger_token = oCfg.debuger_token;
@@ -68230,7 +68247,7 @@ class TxtLayDesignCast extends DesignCast {
68230
68247
  };
68231
68248
  }
68232
68249
  getRect() {
68233
- const it = this.ts.getInfTL();
68250
+ const it = this.ts.infTL;
68234
68251
  return new pixi_js_1.Rectangle(this.spLay.x, this.spLay.y, it.$width, it.$height);
68235
68252
  }
68236
68253
  cnvPosArg(left, top) { return { left, top }; }
@@ -68258,12 +68275,12 @@ class TxtLayPadDesignCast extends DesignCast {
68258
68275
  this.rotatable = false;
68259
68276
  }
68260
68277
  getRect() {
68261
- const it = this.ts.getInfTL();
68278
+ const it = this.ts.infTL;
68262
68279
  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);
68263
68280
  }
68264
68281
  cnvPosArg(pl, pt) { return { pl, pt }; }
68265
68282
  cnvSizeArg(w, h) {
68266
- const it = this.ts.getInfTL();
68283
+ const it = this.ts.infTL;
68267
68284
  return {
68268
68285
  pr: it.$width - it.pad_left - w,
68269
68286
  pb: it.$height - it.pad_top - h,
@@ -68274,7 +68291,7 @@ class TxtLayPadDesignCast extends DesignCast {
68274
68291
  this.ts.lay({ ...this.cnvSizeArg(w, h), ':redraw': true });
68275
68292
  }
68276
68293
  setOther(hPrm) {
68277
- const it = this.ts.getInfTL();
68294
+ const it = this.ts.infTL;
68278
68295
  if ('pl' in hPrm || 'pt' in hPrm) {
68279
68296
  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}`)));
68280
68297
  this.cvsResize();
@@ -68302,7 +68319,7 @@ exports.TxtLayPadDesignCast = TxtLayPadDesignCast;
68302
68319
  _TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint = function _TxtLayPadDesignCast_procHint(left, top, dx, dy) {
68303
68320
  const x = this.rect.x, y = this.rect.y;
68304
68321
  const w = this.rect.width, h = this.rect.height;
68305
- const it = this.ts.getInfTL();
68322
+ const it = this.ts.infTL;
68306
68323
  const pl = (0, CmnLib_1.int)(x + dx / CmnLib_1.CmnLib.cvsScale);
68307
68324
  const pt = (0, CmnLib_1.int)(y + dy / CmnLib_1.CmnLib.cvsScale);
68308
68325
  const pr = (0, CmnLib_1.int)(it.$width - pl - w);
@@ -68475,7 +68492,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
68475
68492
  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");
68476
68493
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
68477
68494
  };
68478
- 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;
68495
+ 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;
68479
68496
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68480
68497
  exports.EventMng = void 0;
68481
68498
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -68525,6 +68542,8 @@ class EventMng {
68525
68542
  __classPrivateFieldSet(this, _EventMng_firstWait, () => { }, "f");
68526
68543
  this.scrItr.firstWait();
68527
68544
  });
68545
+ _EventMng_dispHint_hArg.set(this, void 0);
68546
+ _EventMng_dispHint_ctnBtn.set(this, void 0);
68528
68547
  _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate) => {
68529
68548
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").zIndex = 1000;
68530
68549
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").x = rctBtn.x;
@@ -68570,7 +68589,7 @@ class EventMng {
68570
68589
  return true;
68571
68590
  };
68572
68591
  hTag.set_cancel_skip = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_cancel_skip).call(this);
68573
- hTag.set_focus = o => this.set_focus(o);
68592
+ hTag.set_focus = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_focus).call(this, o);
68574
68593
  hTag.wait = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_wait).call(this, o);
68575
68594
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
68576
68595
  sndMng.setEvtMng(this);
@@ -68878,6 +68897,11 @@ class EventMng {
68878
68897
  }
68879
68898
  this.sndMng.loadAheadSnd(hArg);
68880
68899
  }
68900
+ cvsResize() {
68901
+ if (__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden)
68902
+ return;
68903
+ __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, __classPrivateFieldGet(this, _EventMng_dispHint_hArg, "f"), __classPrivateFieldGet(this, _EventMng_dispHint_ctnBtn, "f"), false);
68904
+ }
68881
68905
  waitLimitedEvent(hArg, onFinish) {
68882
68906
  __classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
68883
68907
  this.val.saveKidoku();
@@ -68903,44 +68927,6 @@ class EventMng {
68903
68927
  __classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
68904
68928
  return true;
68905
68929
  }
68906
- set_focus(hArg) {
68907
- const add = hArg.add;
68908
- if (add?.slice(0, 4) === 'dom=') {
68909
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
68910
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
68911
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
68912
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
68913
- if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
68914
- return false;
68915
- elm.focus();
68916
- return true;
68917
- }, () => { }));
68918
- return false;
68919
- }
68920
- const del = hArg.del;
68921
- if (del?.slice(0, 4) === 'dom=') {
68922
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
68923
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
68924
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
68925
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
68926
- return false;
68927
- }
68928
- const to = hArg.to;
68929
- if (!to)
68930
- throw '[set_focus] add か to は必須です';
68931
- switch (to) {
68932
- case 'null':
68933
- __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
68934
- break;
68935
- case 'next':
68936
- __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
68937
- break;
68938
- case 'prev':
68939
- __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
68940
- break;
68941
- }
68942
- return false;
68943
- }
68944
68930
  isSkipKeyDown() {
68945
68931
  if (this.scrItr.skip4page)
68946
68932
  return true;
@@ -68951,7 +68937,7 @@ class EventMng {
68951
68937
  }
68952
68938
  }
68953
68939
  exports.EventMng = EventMng;
68954
- _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) {
68940
+ _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) {
68955
68941
  if (e['isComposing'])
68956
68942
  return;
68957
68943
  if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
@@ -69018,7 +69004,9 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69018
69004
  o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
69019
69005
  console.log(`🎍 wait event... %o`, o);
69020
69006
  }
69021
- }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
69007
+ }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn, masume = true) {
69008
+ __classPrivateFieldSet(this, _EventMng_dispHint_hArg, hArg, "f");
69009
+ __classPrivateFieldSet(this, _EventMng_dispHint_ctnBtn, ctnBtn, "f");
69022
69010
  const rctBtn = ctnBtn instanceof Button_1.Button
69023
69011
  ? ctnBtn.getBtnBounds()
69024
69012
  : ctnBtn.getBounds();
@@ -69032,12 +69020,14 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69032
69020
  const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
69033
69021
  const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
69034
69022
  const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
69035
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${rctBtn.x}px`;
69036
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${rctBtn.y}px`;
69023
+ const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
69024
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
69025
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
69037
69026
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
69038
- __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)`;
69027
+ __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)`;
69039
69028
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
69040
- __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
69029
+ if (masume)
69030
+ __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
69041
69031
  }, _EventMng_clear_event = function _EventMng_clear_event(hArg) {
69042
69032
  const glb = (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false);
69043
69033
  const h = glb ? __classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f") : __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -69215,6 +69205,43 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69215
69205
  delete hE1T['ArrowDown'];
69216
69206
  delete hE1T['wheel.y>0'];
69217
69207
  }
69208
+ }, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
69209
+ const add = hArg.add;
69210
+ if (add?.slice(0, 4) === 'dom=') {
69211
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
69212
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
69213
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
69214
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
69215
+ if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
69216
+ return false;
69217
+ elm.focus();
69218
+ return true;
69219
+ }, () => { }));
69220
+ return false;
69221
+ }
69222
+ const del = hArg.del;
69223
+ if (del?.slice(0, 4) === 'dom=') {
69224
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
69225
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
69226
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
69227
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
69228
+ return false;
69229
+ }
69230
+ const to = hArg.to;
69231
+ if (!to)
69232
+ throw '[set_focus] add か to は必須です';
69233
+ switch (to) {
69234
+ case 'null':
69235
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
69236
+ break;
69237
+ case 'next':
69238
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
69239
+ break;
69240
+ case 'prev':
69241
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
69242
+ break;
69243
+ }
69244
+ return false;
69218
69245
  }, _EventMng_wait = function _EventMng_wait(hArg) {
69219
69246
  if (this.scrItr.skip4page)
69220
69247
  return false;
@@ -70786,6 +70813,7 @@ void main(void) {
70786
70813
  else
70787
70814
  __classPrivateFieldGet(this, _LayerMng_aLayName, "f").forEach(layer => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore.cvsResize());
70788
70815
  __classPrivateFieldGet(this, _LayerMng_frmMng, "f").cvsResize();
70816
+ __classPrivateFieldGet(this, _LayerMng_evtMng, "f").cvsResize();
70789
70817
  };
70790
70818
  if (CmnLib_1.CmnLib.isMobile) {
70791
70819
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
@@ -71038,14 +71066,14 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71038
71066
  if (this.sys.canCapturePage(fn))
71039
71067
  return false;
71040
71068
  const ext = (0, CmnLib_1.getExt)(fn);
71041
- const b_color = hArg.b_color ?? this.cfg.oCfg.init.bg_color;
71069
+ const b_color = (0, CmnLib_1.argChk_Color)(hArg, 'b_color', this.cfg.oCfg.init.bg_color);
71042
71070
  const rnd = (0, pixi_js_1.autoDetectRenderer)({
71043
71071
  width: (0, CmnLib_1.argChk_Num)(hArg, 'width', CmnLib_1.CmnLib.stageW),
71044
71072
  height: (0, CmnLib_1.argChk_Num)(hArg, 'height', CmnLib_1.CmnLib.stageH),
71045
71073
  backgroundAlpha: (b_color > 0x1000000) && (ext === 'png') ? 0 : 1,
71046
71074
  antialias: (0, CmnLib_1.argChk_Boolean)(hArg, 'smoothing', false),
71047
71075
  preserveDrawingBuffer: true,
71048
- backgroundColor: (0, CmnLib_1.uint)(b_color) & 0xFFFFFF,
71076
+ backgroundColor: b_color & 0xFFFFFF,
71049
71077
  autoDensity: true,
71050
71078
  });
71051
71079
  const a = [];
@@ -71716,10 +71744,15 @@ class Main {
71716
71744
  }
71717
71745
  exports.Main = Main;
71718
71746
  _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() {
71747
+ const cc = document.createElement('canvas')?.getContext('2d');
71748
+ if (!cc)
71749
+ throw 'argChk_Color err';
71750
+ CmnLib_1.CmnLib.cc4ColorName = cc;
71719
71751
  const hApp = {
71720
71752
  width: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.width,
71721
71753
  height: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.height,
71722
- backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color,
71754
+ backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color =
71755
+ (0, CmnLib_1.parseColor)(String(__classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color)),
71723
71756
  resolution: globalThis.devicePixelRatio ?? 1,
71724
71757
  autoResize: true,
71725
71758
  };
@@ -74703,7 +74736,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
74703
74736
  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");
74704
74737
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
74705
74738
  };
74706
- 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;
74739
+ 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;
74707
74740
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74708
74741
  exports.TxtLayer = void 0;
74709
74742
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -74719,21 +74752,12 @@ class TxtLayer extends Layer_1.Layer {
74719
74752
  constructor() {
74720
74753
  super();
74721
74754
  _TxtLayer_instances.add(this);
74722
- _TxtLayer_infTL.set(this, {
74723
- fontsize: 24,
74724
- $width: 0,
74725
- $height: 0,
74726
- pad_left: 0,
74727
- pad_right: 0,
74728
- pad_top: 0,
74729
- pad_bottom: 0,
74730
- });
74731
74755
  _TxtLayer_b_color.set(this, 0x000000);
74732
74756
  _TxtLayer_b_alpha.set(this, 0);
74733
74757
  _TxtLayer_b_alpha_isfixed.set(this, false);
74734
74758
  _TxtLayer_b_do.set(this, null);
74735
74759
  _TxtLayer_b_pic.set(this, '');
74736
- _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(__classPrivateFieldGet(this, _TxtLayer_infTL, "f"), this.spLay, () => this.canFocus()));
74760
+ _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
74737
74761
  _TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
74738
74762
  _TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
74739
74763
  _TxtLayer_$ch_in_style.set(this, '');
@@ -75149,8 +75173,8 @@ class TxtLayer extends Layer_1.Layer {
75149
75173
  return __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_drawBack).call(this, hArg, isStop => { if (isStop)
75150
75174
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_main).resume(); });
75151
75175
  }
75152
- get width() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth(); }
75153
- get height() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight(); }
75176
+ get width() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth; }
75177
+ get height() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight; }
75154
75178
  chgBackAlpha(g_alpha) {
75155
75179
  const alpha = __classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")
75156
75180
  ? __classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")
@@ -75160,13 +75184,12 @@ class TxtLayer extends Layer_1.Layer {
75160
75184
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
75161
75185
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
75162
75186
  }
75163
- const grp = __classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f");
75164
- grp.name = 'back(color)';
75165
- grp.beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"));
75166
- grp.lineStyle(undefined);
75167
- grp.drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$width, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$height);
75168
- grp.endFill();
75169
- this.spLay.addChildAt(grp, 0);
75187
+ this.spLay.addChildAt((__classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f"))
75188
+ .beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"))
75189
+ .lineStyle(undefined)
75190
+ .drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight)
75191
+ .endFill(), 0);
75192
+ __classPrivateFieldGet(this, _TxtLayer_b_do, "f").name = 'back(color)';
75170
75193
  }
75171
75194
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
75172
75195
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").visible = (alpha > 0);
@@ -75231,6 +75254,8 @@ class TxtLayer extends Layer_1.Layer {
75231
75254
  this.enabled = hLay.enabled;
75232
75255
  __classPrivateFieldSet(this, _TxtLayer_r_align, hLay.r_align, "f");
75233
75256
  this.cvsResize();
75257
+ __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_setFfs).call(this, hLay);
75258
+ __classPrivateFieldGet(this, _TxtLayer_txs, "f").playback(hLay.txs);
75234
75259
  __classPrivateFieldSet(this, _TxtLayer_b_alpha, hLay.b_alpha, "f");
75235
75260
  __classPrivateFieldSet(this, _TxtLayer_b_alpha_isfixed, hLay.b_alpha_isfixed, "f");
75236
75261
  aPrm.push(new Promise(re => {
@@ -75242,8 +75267,6 @@ class TxtLayer extends Layer_1.Layer {
75242
75267
  re(); }))
75243
75268
  re();
75244
75269
  }));
75245
- __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_setFfs).call(this, hLay);
75246
- __classPrivateFieldGet(this, _TxtLayer_txs, "f").playback(hLay.txs);
75247
75270
  const aBtn = hLay.btns;
75248
75271
  aPrm = aPrm.concat(aBtn.map(v => this.addButton(JSON.parse(v.replaceAll(`'`, '"')))));
75249
75272
  }
@@ -75268,11 +75291,11 @@ class TxtLayer extends Layer_1.Layer {
75268
75291
  }
75269
75292
  dump() {
75270
75293
  __classPrivateFieldGet(this, _TxtLayer_putCh, "f").call(this, '', 'gotxt|');
75271
- 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(',')}]`;
75294
+ 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(',')}]`;
75272
75295
  }
75273
75296
  }
75274
75297
  exports.TxtLayer = TxtLayer;
75275
- _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) {
75298
+ _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) {
75276
75299
  const o = TxtStage_1.TxtStage.ch_in_style(hArg);
75277
75300
  const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
75278
75301
  const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
@@ -75385,19 +75408,18 @@ _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(
75385
75408
  }
75386
75409
  }
75387
75410
  else if ('b_color' in hArg) {
75388
- __classPrivateFieldSet(this, _TxtLayer_b_color, parseInt(hArg.b_color || '0'), "f");
75411
+ __classPrivateFieldSet(this, _TxtLayer_b_color, (0, CmnLib_1.argChk_Color)(hArg, 'b_color', 0x000000), "f");
75389
75412
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
75390
75413
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
75391
75414
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
75392
75415
  }
75393
75416
  __classPrivateFieldSet(this, _TxtLayer_b_pic, '', "f");
75394
- const grp = __classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f");
75395
- grp.name = 'back(color)';
75396
- grp.beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"));
75397
- grp.lineStyle(undefined);
75398
- grp.drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$width, __classPrivateFieldGet(this, _TxtLayer_infTL, "f").$height);
75399
- grp.endFill();
75400
- this.spLay.addChildAt(grp, 0);
75417
+ this.spLay.addChildAt((__classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f"))
75418
+ .beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"))
75419
+ .lineStyle(undefined)
75420
+ .drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight)
75421
+ .endFill(), 0);
75422
+ __classPrivateFieldGet(this, _TxtLayer_b_do, "f").name = 'back(color)';
75401
75423
  }
75402
75424
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
75403
75425
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").visible = (alpha > 0);
@@ -75538,7 +75560,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
75538
75560
  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");
75539
75561
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
75540
75562
  };
75541
- 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;
75563
+ 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;
75542
75564
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75543
75565
  exports.TxtStage = void 0;
75544
75566
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -75551,9 +75573,8 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
75551
75573
  ;
75552
75574
  ;
75553
75575
  class TxtStage extends pixi_js_1.Container {
75554
- constructor(infTL, spLay, canFocus) {
75576
+ constructor(spLay, canFocus) {
75555
75577
  super();
75556
- this.infTL = infTL;
75557
75578
  this.spLay = spLay;
75558
75579
  this.canFocus = canFocus;
75559
75580
  _TxtStage_instances.add(this);
@@ -75562,6 +75583,15 @@ class TxtStage extends pixi_js_1.Container {
75562
75583
  _TxtStage_grpDbgMasume.set(this, new pixi_js_1.Graphics);
75563
75584
  _TxtStage_idc.set(this, new DesignCast_1.TxtLayDesignCast(this.spLay, this));
75564
75585
  _TxtStage_idcCh.set(this, new DesignCast_1.TxtLayPadDesignCast(this));
75586
+ _TxtStage_infTL.set(this, {
75587
+ fontsize: 24,
75588
+ $width: 0,
75589
+ $height: 0,
75590
+ pad_left: 0,
75591
+ pad_right: 0,
75592
+ pad_top: 0,
75593
+ pad_bottom: 0,
75594
+ });
75565
75595
  _TxtStage_left.set(this, 0);
75566
75596
  _TxtStage_isTategaki.set(this, false);
75567
75597
  _TxtStage_padTx4x.set(this, 0);
@@ -75611,7 +75641,6 @@ class TxtStage extends pixi_js_1.Container {
75611
75641
  __classPrivateFieldSet(TxtStage, _a, Object.create(null), "f", _TxtStage_hChOutStyle);
75612
75642
  __classPrivateFieldSet(TxtStage, _a, new pixi_js_1.Container, "f", _TxtStage_cntBreak);
75613
75643
  }
75614
- getInfTL() { return this.infTL; }
75615
75644
  lay(hArg) {
75616
75645
  const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
75617
75646
  if (hArg.style) {
@@ -75647,7 +75676,7 @@ class TxtStage extends pixi_js_1.Container {
75647
75676
  __classPrivateFieldGet(this, _TxtStage_idc, "f").sethArg(hArg);
75648
75677
  __classPrivateFieldSet(this, _TxtStage_left, this.spLay.position.x
75649
75678
  - (CmnLib_1.CmnLib.isSafari && !CmnLib_1.CmnLib.isMobile && __classPrivateFieldGet(this, _TxtStage_isTategaki, "f")
75650
- ? this.infTL.pad_left + this.infTL.pad_right
75679
+ ? __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right
75651
75680
  : 0), "f");
75652
75681
  s.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`;
75653
75682
  this.cvsResize();
@@ -75671,13 +75700,14 @@ class TxtStage extends pixi_js_1.Container {
75671
75700
  __classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
75672
75701
  }
75673
75702
  get tategaki() { return __classPrivateFieldGet(this, _TxtStage_isTategaki, "f"); }
75674
- getWidth() { return this.infTL.$width; }
75675
- getHeight() { return this.infTL.$height; }
75703
+ get infTL() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f"); }
75704
+ get getWidth() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width; }
75705
+ get getHeight() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height; }
75676
75706
  setSize(width, height) {
75677
- this.infTL.$width = width;
75678
- this.infTL.$height = height;
75679
- __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.width = this.infTL.$width + 'px';
75680
- __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = this.infTL.$height + 'px';
75707
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width = width;
75708
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height = height;
75709
+ __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.width = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width + 'px';
75710
+ __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height + 'px';
75681
75711
  }
75682
75712
  goTxt(aSpan) {
75683
75713
  var _b;
@@ -75686,15 +75716,15 @@ class TxtStage extends pixi_js_1.Container {
75686
75716
  if (begin === 0) {
75687
75717
  if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cfg).oCfg.debug.masume) {
75688
75718
  if (CmnLib_1.CmnLib.debugLog)
75689
- 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}`);
75719
+ 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}`);
75690
75720
  __classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").clear()
75691
75721
  .beginFill(0x33FF00, 0.2)
75692
75722
  .lineStyle(1, 0x33FF00, 1)
75693
- .drawRect(-this.infTL.pad_left, -this.infTL.pad_top, this.infTL.$width, this.infTL.$height)
75723
+ .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)
75694
75724
  .endFill()
75695
75725
  .beginFill(0x0033FF, 0.2)
75696
75726
  .lineStyle(2, 0x0033FF, 1)
75697
- .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)
75727
+ .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)
75698
75728
  .endFill();
75699
75729
  }
75700
75730
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").innerHTML = [...aSpan].join('');
@@ -75791,8 +75821,8 @@ class TxtStage extends pixi_js_1.Container {
75791
75821
  : () => { };
75792
75822
  const ease = CmnTween_1.CmnTween.ease(__classPrivateFieldGet(this, _TxtStage_fi_easing, "f"));
75793
75823
  const bcr = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getBoundingClientRect();
75794
- const sx = bcr.left + globalThis.scrollX + this.infTL.pad_left;
75795
- const sy = bcr.top + globalThis.scrollY + this.infTL.pad_top;
75824
+ const sx = bcr.left + globalThis.scrollX + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left;
75825
+ const sy = bcr.top + globalThis.scrollY + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top;
75796
75826
  for (let i = begin; i < len; ++i) {
75797
75827
  const v = __classPrivateFieldGet(this, _TxtStage_aRect, "f")[i];
75798
75828
  const rct = v.rect;
@@ -75973,7 +76003,8 @@ class TxtStage extends pixi_js_1.Container {
75973
76003
  }
75974
76004
  reNew() {
75975
76005
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
75976
- const to = new TxtStage(this.infTL, this.spLay, () => this.canFocus());
76006
+ const to = new TxtStage(this.spLay, () => this.canFocus());
76007
+ __classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
75977
76008
  __classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
75978
76009
  __classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
75979
76010
  to.name = this.name;
@@ -75987,7 +76018,7 @@ class TxtStage extends pixi_js_1.Container {
75987
76018
  }
75988
76019
  record() {
75989
76020
  return {
75990
- infTL: this.infTL,
76021
+ infTL: __classPrivateFieldGet(this, _TxtStage_infTL, "f"),
75991
76022
  cssText: __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText,
75992
76023
  left: __classPrivateFieldGet(this, _TxtStage_left, "f"),
75993
76024
  idc_hArg: __classPrivateFieldGet(this, _TxtStage_idc, "f").gethArg(),
@@ -75998,8 +76029,8 @@ class TxtStage extends pixi_js_1.Container {
75998
76029
  }
75999
76030
  ;
76000
76031
  playback(hLay) {
76001
- this.infTL = hLay.infTL;
76002
- this.position.set(this.infTL.pad_left, this.infTL.pad_top);
76032
+ __classPrivateFieldSet(this, _TxtStage_infTL, hLay.infTL, "f");
76033
+ this.position.set(__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top);
76003
76034
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText = hLay.cssText;
76004
76035
  __classPrivateFieldSet(this, _TxtStage_left, hLay.left, "f");
76005
76036
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_lay_sub).call(this);
@@ -76012,13 +76043,13 @@ class TxtStage extends pixi_js_1.Container {
76012
76043
  __classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_htm2tx).call(this, tx => {
76013
76044
  __classPrivateFieldSet(this, _TxtStage_sss, new pixi_js_1.Sprite(tx), "f");
76014
76045
  if (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f")) {
76015
- __classPrivateFieldGet(this, _TxtStage_sss, "f").x += CmnLib_1.CmnLib.stageW - (__classPrivateFieldGet(this, _TxtStage_left, "f") + this.infTL.$width)
76046
+ __classPrivateFieldGet(this, _TxtStage_sss, "f").x += CmnLib_1.CmnLib.stageW - (__classPrivateFieldGet(this, _TxtStage_left, "f") + __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width)
76016
76047
  - ((CmnLib_1.CmnLib.isSafari && !CmnLib_1.CmnLib.isMobile)
76017
76048
  ? 0
76018
- : this.infTL.pad_left + this.infTL.pad_right);
76049
+ : __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right);
76019
76050
  }
76020
76051
  __classPrivateFieldGet(this, _TxtStage_sss, "f").y -= __classPrivateFieldGet(this, _TxtStage_padTx4y, "f");
76021
- __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);
76052
+ __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);
76022
76053
  __classPrivateFieldGet(this, _TxtStage_cntTxt, "f").addChild(__classPrivateFieldGet(this, _TxtStage_sss, "f"));
76023
76054
  rnd.render(__classPrivateFieldGet(this, _TxtStage_sss, "f"), undefined, false);
76024
76055
  re();
@@ -76056,17 +76087,17 @@ class TxtStage extends pixi_js_1.Container {
76056
76087
  }
76057
76088
  }
76058
76089
  exports.TxtStage = TxtStage;
76059
- _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() {
76090
+ _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() {
76060
76091
  const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
76061
76092
  const fs = parseFloat(s.fontSize || '0');
76062
- this.infTL.fontsize = fs;
76063
- this.infTL.pad_left = parseFloat(s.paddingLeft || '0');
76064
- this.infTL.pad_right = parseFloat(s.paddingRight || '0');
76065
- this.infTL.pad_top = parseFloat(s.paddingTop || '0');
76066
- this.infTL.pad_bottom = parseFloat(s.paddingBottom || '0');
76067
- this.infTL.$width = parseFloat(s.width || '0');
76068
- this.infTL.$height = parseFloat(s.height || '0');
76069
- this.position.set(this.infTL.pad_left, this.infTL.pad_top);
76093
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").fontsize = fs;
76094
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left = parseFloat(s.paddingLeft || '0');
76095
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right = parseFloat(s.paddingRight || '0');
76096
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top = parseFloat(s.paddingTop || '0');
76097
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom = parseFloat(s.paddingBottom || '0');
76098
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width = parseFloat(s.width || '0');
76099
+ __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height = parseFloat(s.height || '0');
76100
+ this.position.set(__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top);
76070
76101
  __classPrivateFieldSet(this, _TxtStage_isTategaki, (s.writingMode === 'vertical-rl'), "f");
76071
76102
  __classPrivateFieldSet(this, _TxtStage_padTx4x, 0, "f");
76072
76103
  __classPrivateFieldSet(this, _TxtStage_padTx4y, 0, "f");
@@ -76278,8 +76309,8 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76278
76309
  cln.style.paddingTop = __classPrivateFieldGet(this, _TxtStage_padTx4y, "f") + 'px';
76279
76310
  cln.style.left = '0px';
76280
76311
  cln.style.top = '0px';
76281
- cln.style.width = (this.infTL.$width - this.infTL.pad_left - this.infTL.pad_right) + 'px';
76282
- cln.style.height = (this.infTL.$height - this.infTL.pad_top - this.infTL.pad_bottom) + 'px';
76312
+ cln.style.width = (__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right) + 'px';
76313
+ cln.style.height = (__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom) + 'px';
76283
76314
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").hidden = hidden;
76284
76315
  return cln;
76285
76316
  })
@@ -76287,15 +76318,15 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76287
76318
  .then(node => {
76288
76319
  node.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml');
76289
76320
  const img = new Image;
76290
- 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)
76321
+ 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)
76291
76322
  .replaceAll('#', '%23').replaceAll('\n', '%0A')}</foreignObject></svg>`;
76292
76323
  return new Promise(resolve => img.onload = () => resolve(img));
76293
76324
  })
76294
76325
  .then(img => new Promise(resolve => setTimeout(() => resolve(img), 100)))
76295
76326
  .then((img) => {
76296
76327
  const canvas = document.createElement('canvas');
76297
- canvas.width = this.infTL.$width;
76298
- canvas.height = this.infTL.$height;
76328
+ canvas.width = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width;
76329
+ canvas.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height;
76299
76330
  canvas.getContext('2d').drawImage(img, 0, 0);
76300
76331
  canvas.toBlob(blob => {
76301
76332
  if (!blob)