@famibee/skynovel 1.22.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ # [1.23.0](https://github.com/famibee/SKYNovel/compare/v1.22.3...v1.23.0) (2021-12-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * 文字レイヤのb_color属性などに色名前を使えるように ([f8f50b0](https://github.com/famibee/SKYNovel/commit/f8f50b0210b99aaf17cd0ca4db1879b6adcf8d32))
7
+
8
+ - feat: 文字レイヤのb_color属性などに色名前を使えるように
9
+ - 文字レイヤのb_color属性
10
+ - [snapshot]のb_color属性
11
+ - doc/prj/prj.json の init.bg_color
12
+ - fix: 文字レイヤ背景色の b_colorで「#ffffff」形式の指定が出来なかったのを修正
13
+
14
+
15
+ ## [1.22.3](https://github.com/famibee/SKYNovel/compare/v1.22.2...v1.22.3) (2021-12-09)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * ツールチップ、画面全体の拡大縮小に対応 ([7311ebe](https://github.com/famibee/SKYNovel/commit/7311ebebb7f60f3a510912e3f147584b57f8ef80))
21
+
22
+ - fix: ツールチップ、画面全体の拡大縮小に対応
23
+
24
+
25
+ ## [1.22.2](https://github.com/famibee/SKYNovel/compare/v1.22.1...v1.22.2) (2021-12-09)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * 画像ボタンで、マウスホバー・クリック時の表示変化しない件 ([f30f11c](https://github.com/famibee/SKYNovel/commit/f30f11c3678730ae9e433384a2bf0a05e30e5dd6))
31
+
32
+ - fix: 画像ボタンで、マウスホバー・クリック時の表示変化しない件
33
+
34
+
35
+ ## [1.22.1](https://github.com/famibee/SKYNovel/compare/v1.22.0...v1.22.1) (2021-12-09)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * 画像ボタンで、イベント予約が画像ロード後まで遅延する件 ([e7f9f97](https://github.com/famibee/SKYNovel/commit/e7f9f97f113d967328282684df57d8159366c7aa))
41
+
42
+ - fix: 画像ボタンで、イベント予約が画像ロード後まで遅延する件
43
+ - fix: デバッグスイッチ debugLog=true 時にイベント待ちした際、予約済みイベント名をコンソールに表示するように
44
+
45
+
1
46
  # [1.22.0](https://github.com/famibee/SKYNovel/compare/v1.21.0...v1.22.0) (2021-12-08)
2
47
 
3
48
 
package/app.js CHANGED
@@ -66840,7 +66840,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
66840
66840
  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");
66841
66841
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
66842
66842
  };
66843
- var _Button_instances, _a, _Button_procMasume4txt, _Button_procMasume4pic, _Button_rctBtnTxt, _Button_idc, _Button_sp_b_pic, _Button_sp_pic, _Button_loaded_b_pic, _Button_loaded_pic;
66843
+ var _Button_instances, _a, _Button_procMasume4txt, _Button_procMasume4pic, _Button_rctBtnTxt, _Button_idc, _Button_sp_b_pic, _Button_sp_pic, _Button_loaded_b_pic, _Button_normal, _Button_hover, _Button_clicked, _Button_loaded_pic;
66844
66844
  Object.defineProperty(exports, "__esModule", ({ value: true }));
66845
66845
  exports.Button = void 0;
66846
66846
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
@@ -66861,6 +66861,9 @@ class Button extends pixi_js_1.Container {
66861
66861
  _Button_idc.set(this, void 0);
66862
66862
  _Button_sp_b_pic.set(this, null);
66863
66863
  _Button_sp_pic.set(this, null);
66864
+ _Button_normal.set(this, () => { });
66865
+ _Button_hover.set(this, () => false);
66866
+ _Button_clicked.set(this, () => { });
66864
66867
  if (CmnLib_1.CmnLib.isDbg) {
66865
66868
  this.makeDesignCast = gdc => gdc(__classPrivateFieldGet(this, _Button_idc, "f"));
66866
66869
  this.cvsResize = () => __classPrivateFieldGet(this, _Button_idc, "f").cvsResize();
@@ -66884,6 +66887,8 @@ class Button extends pixi_js_1.Container {
66884
66887
  if (hArg.pic) {
66885
66888
  oName.type = 'pic';
66886
66889
  __classPrivateFieldSet(this, _Button_idc, new DesignCast_1.PicBtnDesignCast(this, hArg), "f");
66890
+ if (enabled)
66891
+ this.evtMng.button(this.hArg, this, () => __classPrivateFieldGet(this, _Button_normal, "f").call(this), () => __classPrivateFieldGet(this, _Button_hover, "f").call(this), () => __classPrivateFieldGet(this, _Button_clicked, "f").call(this));
66887
66892
  if (!GrpLayer_1.GrpLayer.csv2Sprites(hArg.pic, this, sp => {
66888
66893
  __classPrivateFieldGet(this, _Button_instances, "m", _Button_loaded_pic).call(this, sp, oName);
66889
66894
  __classPrivateFieldGet(this, _Button_rctBtnTxt, "f").width = sp.width * oName.scale_x;
@@ -66900,7 +66905,7 @@ class Button extends pixi_js_1.Container {
66900
66905
  align: 'center',
66901
66906
  dropShadow: true,
66902
66907
  dropShadowAlpha: 0.7,
66903
- dropShadowColor: '#ffffff',
66908
+ dropShadowColor: 'white',
66904
66909
  dropShadowBlur: 7,
66905
66910
  dropShadowDistance: 0,
66906
66911
  fill: 'black',
@@ -67033,7 +67038,7 @@ class Button extends pixi_js_1.Container {
67033
67038
  }
67034
67039
  }
67035
67040
  exports.Button = Button;
67036
- _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Button_sp_b_pic = new WeakMap(), _Button_sp_pic = new WeakMap(), _Button_instances = new WeakSet(), _Button_loaded_b_pic = function _Button_loaded_b_pic(sp, txt) {
67041
+ _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Button_sp_b_pic = new WeakMap(), _Button_sp_pic = new WeakMap(), _Button_normal = new WeakMap(), _Button_hover = new WeakMap(), _Button_clicked = new WeakMap(), _Button_instances = new WeakSet(), _Button_loaded_b_pic = function _Button_loaded_b_pic(sp, txt) {
67037
67042
  __classPrivateFieldSet(this, _Button_sp_b_pic, sp, "f");
67038
67043
  this.setChildIndex(sp, 0);
67039
67044
  sp.alpha = txt.alpha;
@@ -67051,13 +67056,14 @@ _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Bu
67051
67056
  const txHover = new pixi_js_1.Texture(tx, new pixi_js_1.Rectangle(w3 * 2, 0, w3, h));
67052
67057
  const normal = () => sp.texture = txNormal;
67053
67058
  normal();
67054
- if (oName.enabled)
67055
- this.evtMng.button(this.hArg, this, normal, () => {
67056
- if (!this.canFocus())
67057
- return false;
67058
- sp.texture = txHover;
67059
- return true;
67060
- }, () => sp.texture = txClicked);
67059
+ __classPrivateFieldSet(this, _Button_normal, normal, "f");
67060
+ __classPrivateFieldSet(this, _Button_hover, () => {
67061
+ if (!this.canFocus())
67062
+ return false;
67063
+ sp.texture = txHover;
67064
+ return true;
67065
+ }, "f");
67066
+ __classPrivateFieldSet(this, _Button_clicked, () => sp.texture = txClicked, "f");
67061
67067
  if ('width' in this.hArg) {
67062
67068
  oName.width = (0, CmnLib_1.uint)(this.hArg.width);
67063
67069
  this.scale.x *= oName.width / w3;
@@ -67115,7 +67121,7 @@ exports.CallStack = CallStack;
67115
67121
  "use strict";
67116
67122
 
67117
67123
  Object.defineProperty(exports, "__esModule", ({ value: true }));
67118
- 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;
67119
67125
  function int(o) { return parseInt(String(o), 10); }
67120
67126
  exports.int = int;
67121
67127
  function uint(o) {
@@ -67217,6 +67223,28 @@ function argChk_Boolean(hash, name, def) {
67217
67223
  return hash[name] = (v2 === 'false') ? false : Boolean(v2);
67218
67224
  }
67219
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;
67220
67248
  const REG_FN = /^[^\/\.]+$|[^\/]+(?=\.)/;
67221
67249
  function getFn(p) { return (p.match(REG_FN) ?? [''])[0]; }
67222
67250
  exports.getFn = getFn;
@@ -67450,7 +67478,9 @@ class Config {
67450
67478
  if ('init' in oCfg)
67451
67479
  for (const n in this.oCfg.init) {
67452
67480
  const v = String(this.oCfg.init[n]);
67453
- if (v.charAt(0) === '#')
67481
+ if (n === 'bg_color')
67482
+ this.oCfg.init[n] = (0, CmnLib_1.parseColor)(v);
67483
+ else
67454
67484
  this.oCfg.init[n] = parseInt(v.slice(1), 16);
67455
67485
  }
67456
67486
  this.oCfg.debug = { ...this.oCfg.debug, ...oCfg.debug };
@@ -68469,7 +68499,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
68469
68499
  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");
68470
68500
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
68471
68501
  };
68472
- 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;
68502
+ 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;
68473
68503
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68474
68504
  exports.EventMng = void 0;
68475
68505
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -68519,6 +68549,8 @@ class EventMng {
68519
68549
  __classPrivateFieldSet(this, _EventMng_firstWait, () => { }, "f");
68520
68550
  this.scrItr.firstWait();
68521
68551
  });
68552
+ _EventMng_dispHint_hArg.set(this, void 0);
68553
+ _EventMng_dispHint_ctnBtn.set(this, void 0);
68522
68554
  _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate) => {
68523
68555
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").zIndex = 1000;
68524
68556
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").x = rctBtn.x;
@@ -68564,7 +68596,7 @@ class EventMng {
68564
68596
  return true;
68565
68597
  };
68566
68598
  hTag.set_cancel_skip = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_cancel_skip).call(this);
68567
- hTag.set_focus = o => this.set_focus(o);
68599
+ hTag.set_focus = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_focus).call(this, o);
68568
68600
  hTag.wait = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_wait).call(this, o);
68569
68601
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
68570
68602
  sndMng.setEvtMng(this);
@@ -68761,7 +68793,7 @@ class EventMng {
68761
68793
  if (!ke) {
68762
68794
  if (key.slice(0, 5) === 'swipe') {
68763
68795
  const esw = e;
68764
- globalThis.scrollBy(-(esw.deltaX ?? 0), -(esw.deltaY ?? 0));
68796
+ globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
68765
68797
  }
68766
68798
  return;
68767
68799
  }
@@ -68872,6 +68904,11 @@ class EventMng {
68872
68904
  }
68873
68905
  this.sndMng.loadAheadSnd(hArg);
68874
68906
  }
68907
+ cvsResize() {
68908
+ if (__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden)
68909
+ return;
68910
+ __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, __classPrivateFieldGet(this, _EventMng_dispHint_hArg, "f"), __classPrivateFieldGet(this, _EventMng_dispHint_ctnBtn, "f"), false);
68911
+ }
68875
68912
  waitLimitedEvent(hArg, onFinish) {
68876
68913
  __classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
68877
68914
  this.val.saveKidoku();
@@ -68897,44 +68934,6 @@ class EventMng {
68897
68934
  __classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
68898
68935
  return true;
68899
68936
  }
68900
- set_focus(hArg) {
68901
- const add = hArg.add;
68902
- if (add?.slice(0, 4) === 'dom=') {
68903
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
68904
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
68905
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
68906
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
68907
- if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
68908
- return false;
68909
- elm.focus();
68910
- return true;
68911
- }, () => { }));
68912
- return false;
68913
- }
68914
- const del = hArg.del;
68915
- if (del?.slice(0, 4) === 'dom=') {
68916
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
68917
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
68918
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
68919
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
68920
- return false;
68921
- }
68922
- const to = hArg.to;
68923
- if (!to)
68924
- throw '[set_focus] add か to は必須です';
68925
- switch (to) {
68926
- case 'null':
68927
- __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
68928
- break;
68929
- case 'next':
68930
- __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
68931
- break;
68932
- case 'prev':
68933
- __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
68934
- break;
68935
- }
68936
- return false;
68937
- }
68938
68937
  isSkipKeyDown() {
68939
68938
  if (this.scrItr.skip4page)
68940
68939
  return true;
@@ -68945,7 +68944,7 @@ class EventMng {
68945
68944
  }
68946
68945
  }
68947
68946
  exports.EventMng = EventMng;
68948
- _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) {
68947
+ _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) {
68949
68948
  if (e['isComposing'])
68950
68949
  return;
68951
68950
  if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
@@ -69006,7 +69005,15 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69006
69005
  : key => __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")[key], "f");
69007
69006
  __classPrivateFieldSet(this, _EventMng_isWait, true, "f");
69008
69007
  __classPrivateFieldGet(this, _EventMng_firstWait, "f").call(this);
69009
- }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
69008
+ if (CmnLib_1.CmnLib.debugLog) {
69009
+ const o = Object.create(null);
69010
+ o.local = Object.keys(__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f"));
69011
+ o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
69012
+ console.log(`🎍 wait event... %o`, o);
69013
+ }
69014
+ }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn, masume = true) {
69015
+ __classPrivateFieldSet(this, _EventMng_dispHint_hArg, hArg, "f");
69016
+ __classPrivateFieldSet(this, _EventMng_dispHint_ctnBtn, ctnBtn, "f");
69010
69017
  const rctBtn = ctnBtn instanceof Button_1.Button
69011
69018
  ? ctnBtn.getBtnBounds()
69012
69019
  : ctnBtn.getBounds();
@@ -69020,12 +69027,14 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69020
69027
  const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
69021
69028
  const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
69022
69029
  const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
69023
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${rctBtn.x}px`;
69024
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${rctBtn.y}px`;
69030
+ const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
69031
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
69032
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
69025
69033
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
69026
- __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)`;
69034
+ __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)`;
69027
69035
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
69028
- __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
69036
+ if (masume)
69037
+ __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
69029
69038
  }, _EventMng_clear_event = function _EventMng_clear_event(hArg) {
69030
69039
  const glb = (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false);
69031
69040
  const h = glb ? __classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f") : __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -69203,6 +69212,43 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69203
69212
  delete hE1T['ArrowDown'];
69204
69213
  delete hE1T['wheel.y>0'];
69205
69214
  }
69215
+ }, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
69216
+ const add = hArg.add;
69217
+ if (add?.slice(0, 4) === 'dom=') {
69218
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
69219
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
69220
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
69221
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
69222
+ if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
69223
+ return false;
69224
+ elm.focus();
69225
+ return true;
69226
+ }, () => { }));
69227
+ return false;
69228
+ }
69229
+ const del = hArg.del;
69230
+ if (del?.slice(0, 4) === 'dom=') {
69231
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
69232
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
69233
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
69234
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
69235
+ return false;
69236
+ }
69237
+ const to = hArg.to;
69238
+ if (!to)
69239
+ throw '[set_focus] add か to は必須です';
69240
+ switch (to) {
69241
+ case 'null':
69242
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
69243
+ break;
69244
+ case 'next':
69245
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
69246
+ break;
69247
+ case 'prev':
69248
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
69249
+ break;
69250
+ }
69251
+ return false;
69206
69252
  }, _EventMng_wait = function _EventMng_wait(hArg) {
69207
69253
  if (this.scrItr.skip4page)
69208
69254
  return false;
@@ -70774,6 +70820,7 @@ void main(void) {
70774
70820
  else
70775
70821
  __classPrivateFieldGet(this, _LayerMng_aLayName, "f").forEach(layer => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore.cvsResize());
70776
70822
  __classPrivateFieldGet(this, _LayerMng_frmMng, "f").cvsResize();
70823
+ __classPrivateFieldGet(this, _LayerMng_evtMng, "f").cvsResize();
70777
70824
  };
70778
70825
  if (CmnLib_1.CmnLib.isMobile) {
70779
70826
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
@@ -71026,14 +71073,14 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71026
71073
  if (this.sys.canCapturePage(fn))
71027
71074
  return false;
71028
71075
  const ext = (0, CmnLib_1.getExt)(fn);
71029
- const b_color = hArg.b_color ?? this.cfg.oCfg.init.bg_color;
71076
+ const b_color = (0, CmnLib_1.argChk_Color)(hArg, 'b_color', this.cfg.oCfg.init.bg_color);
71030
71077
  const rnd = (0, pixi_js_1.autoDetectRenderer)({
71031
71078
  width: (0, CmnLib_1.argChk_Num)(hArg, 'width', CmnLib_1.CmnLib.stageW),
71032
71079
  height: (0, CmnLib_1.argChk_Num)(hArg, 'height', CmnLib_1.CmnLib.stageH),
71033
71080
  backgroundAlpha: (b_color > 0x1000000) && (ext === 'png') ? 0 : 1,
71034
71081
  antialias: (0, CmnLib_1.argChk_Boolean)(hArg, 'smoothing', false),
71035
71082
  preserveDrawingBuffer: true,
71036
- backgroundColor: (0, CmnLib_1.uint)(b_color) & 0xFFFFFF,
71083
+ backgroundColor: b_color & 0xFFFFFF,
71037
71084
  autoDensity: true,
71038
71085
  });
71039
71086
  const a = [];
@@ -71704,10 +71751,15 @@ class Main {
71704
71751
  }
71705
71752
  exports.Main = Main;
71706
71753
  _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() {
71754
+ const cc = document.createElement('canvas')?.getContext('2d');
71755
+ if (!cc)
71756
+ throw 'argChk_Color err';
71757
+ CmnLib_1.CmnLib.cc4ColorName = cc;
71707
71758
  const hApp = {
71708
71759
  width: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.width,
71709
71760
  height: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.height,
71710
- backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color,
71761
+ backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color =
71762
+ (0, CmnLib_1.parseColor)(String(__classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color)),
71711
71763
  resolution: globalThis.devicePixelRatio ?? 1,
71712
71764
  autoResize: true,
71713
71765
  };
@@ -75373,7 +75425,7 @@ _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(
75373
75425
  }
75374
75426
  }
75375
75427
  else if ('b_color' in hArg) {
75376
- __classPrivateFieldSet(this, _TxtLayer_b_color, parseInt(hArg.b_color || '0'), "f");
75428
+ __classPrivateFieldSet(this, _TxtLayer_b_color, (0, CmnLib_1.argChk_Color)(hArg, 'b_color', 0x000000), "f");
75377
75429
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
75378
75430
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
75379
75431
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/sn/Button.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,SAAS,EAAsB,MAAM,EAAY,eAAe,EAAC,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAO,OAAO,EAAqC,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAG3C,qBAAa,MAAO,SAAQ,SAAS;;IA+BxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAQ,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAW,QAAQ,CAAC,OAAO,EAAE,MAAK,IAAI;IAAE,OAAO,CAAC,Q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Y,kBAAwB;gBAOP,IAAI,EAAE,IAAI,EAAmB,MAAM,EAAE,OAAO,EAAW,OAAO,EAAE,MAAK,IAAI,EAAmB,QAAQ,EAAE,MAAK,OAAO;IA6ItI,OAAO,CAAC,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,IAAI;IAK5D,cAAc,CAAC,IAAI,EAAE,eAAe;IACpC,cAAc;IACd,SAAS;IAET,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IA4BlC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAsDjC"}
@@ -26,10 +26,13 @@ export interface IEvtMng {
26
26
  popLocalEvts(): IHEvt2Fnc;
27
27
  pushLocalEvts(a: IHEvt2Fnc): void;
28
28
  waitLimitedEvent(hArg: HArg, fnc: () => void): boolean;
29
+ cvsResize(): void;
29
30
  resvFlameEvent(win: Window): void;
30
31
  }
31
32
  export declare function argChk_Num(hash: any, name: string, def: number): number;
32
33
  export declare function argChk_Boolean(hash: any, name: string, def: boolean): boolean;
34
+ export declare function parseColor(v: string): number;
35
+ export declare function argChk_Color(hash: any, name: string, def: number): number;
33
36
  export declare function getFn(p: string): string;
34
37
  export declare function getExt(p: string): string;
35
38
  export declare class CmnLib {
@@ -54,6 +57,7 @@ export declare class CmnLib {
54
57
  static isDarkMode: boolean;
55
58
  static retinaRate: number;
56
59
  static readonly SN_ID = "skynovel";
60
+ static cc4ColorName: CanvasRenderingContext2D;
57
61
  static cvsResize(cvs: HTMLCanvasElement): boolean;
58
62
  }
59
63
  //# sourceMappingURL=CmnLib.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CmnLib.d.ts","sourceRoot":"","sources":["../../src/sn/CmnLib.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,IAAI,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAG/C,wBAAgB,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAiC;AACpE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AAM;IAC9B,MAAM,CAAC,QAAQ,CAAC,UAAU,yCAAyC;IAEnE,MAAM,CAAC,QAAQ,CAAC,UAAU,YAAY;IACtC,MAAM,CAAC,QAAQ,CAAC,QAAQ,mBAAmB;IAC3C,MAAM,CAAC,QAAQ,CAAC,SAAS,8BAA8B;IACvD,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;gBAEjB,GAAG,EAAE,OAAO;WACpB,QAAQ,CAAC,GAAG,EAAE,OAAO;IAQ5B,IAAI,CAAC,IAAI,EAAE,GAAG;IAiDpB,IAAI,eAAe,IAAI,OAAO,CAA+B;IAE7D,IAAI,eAAe,IAAI,OAAO,CAA+B;IAE7D,KAAK;IAIL,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAK,GAAG,MAAM;IAyE7C,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAK,GAAG,aAAa,CAAC,KAAK,CAAC;IAuB3D,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK;CAQjC"}
@@ -27,8 +27,8 @@ export declare class EventMng implements IEvtMng {
27
27
  waitEvent(onFinish: () => void, canskip?: boolean, global?: boolean): boolean;
28
28
  unButton(ctnBtn: Container): void;
29
29
  button(hArg: HArg, ctnBtn: Container, normal: () => void, hover: () => boolean, clicked: () => void): void;
30
+ cvsResize(): void;
30
31
  waitLimitedEvent(hArg: HArg, onFinish: () => void): boolean;
31
- protected set_focus(hArg: HArg): boolean;
32
32
  isSkipKeyDown(): boolean;
33
33
  }
34
34
  //# sourceMappingURL=EventMng.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventMng.d.ts","sourceRoot":"","sources":["../../src/sn/EventMng.ts"],"names":[],"mappings":"AAOA,OAAO,EAAe,OAAO,EAA6B,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAY,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACl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ACzB,kBAAkB,CAAC,IAAI,EAAE,IAAI;IAc7B,QAAQ,CAAC,IAAI,aAKX;IAEF,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAK;IAwF3B,OAAO,CAAC,OAAO,SAAI;IA0BzB,QAAQ,CAAC,WAAW,gBAAwB;CAG5C"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { SysNode } from './SysNode';
2
3
  import { ITag, IHTag, IVariable, IData4Vari, IMain, HPlugin, HSysBaseArg } from './CmnInterface';
3
4
  import { Application } from 'pixi.js';
@@ -1 +1 @@
1
- {"version":3,"file":"SysApp.d.ts","sourceRoot":"","sources":["../../src/sn/SysApp.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE/F,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAOpC,qBAAa,MAAO,SAAQ,OAAO;;gBACtB,IAAI,KAAK,EAAE,GAAG;;;;KAAwC;cAKzC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW;IA2B/D,UAAmB,YAAY,oCAAuB;IACtD,UAAmB,aAAa,wEAAwB;IAC/C,UAAU,gFAAqB;IAC/B,cAAc,kCAAyB;IAEhD,UAAoB,cAAc,SAAO;IACzC,UAAmB,eAAe,SAAM;IAE/B,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAI,IAAI;cAqDpD,GAAG;IAWnB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,EAA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KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE;IAcrF,YAAY,SAAgB,MAAM,MAAM,MAAM,mBAMrD;IACO,aAAa,UAAiB,MAAM,mBAE3C;IAGF,mBAA4B,KAAK,gBAA2C;IAG5E,mBAA4B,OAAO,EAAE,IAAI,CAcxC;IAGD,mBAA4B,OAAO,EAAE,IAAI,CAwCxC;IAGD,mBAA4B,WAAW,EAAE,IAAI,CAO5C;cAEkB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAEzC,mBAA4B,YAAY,EAAE,IAAI,CAe7C;IACD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,sBAmClC;IAED,mBAA4B,YAAY,EAAE,IAAI,CAgF7C;IAED,mBAA4B,MAAM,EAAE,IAAI,CASvC;IAED,SAAkB,cAAc,OAAQ,MAAM,aAG7C;CAED"}
@@ -52,7 +52,7 @@ export declare class SysBase implements ISysBase {
52
52
  protected readonly window: ITag;
53
53
  setTitleInfo(txt: string): void;
54
54
  decStr(ext: string, d: string): string;
55
- dec(ext: string, d: ArrayBuffer): Promise<string | HTMLImageElement | HTMLVideoElement | ArrayBuffer>;
55
+ dec(ext: string, d: ArrayBuffer): Promise<string | ArrayBuffer | HTMLImageElement | HTMLVideoElement>;
56
56
  protected enc: (d: string) => string;
57
57
  protected stk: () => string;
58
58
  hash: (_data: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"TxtLayer.d.ts","sourceRoot":"","sources":["../../src/sn/TxtLayer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAe,OAAO,EAAkD,MAAM,UAAU,CAAC;AAChG,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,IAAI,EAAU,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAW,SAAS,EAAC,MAAM,YAAY,CA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,IAAa,IAAI,IADK,MAAM,CACY;IAG/B,SAAS;IACT,iBAAiB;IAEjB,GAAG,CAAC,IAAI,EAAE,IAAI;IAqCvB,IAAa,KAAK,WAAgC;IAClD,IAAa,MAAM,WAAiC;IA4EpD,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAuDnC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO;IAM9B,MAAM,CAAC,GAAG,OAAQ,MAAM,YAAO;IAE/B,KAAK,UAAS;IAEd,OAAO,CAAC,eAAe;IAqDvB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA6TzB,QAAQ,CAAC,KAAK,gBAGb;IAED,SAAS,IAAI,IAAI;IAWjB,IAAI,QAAQ,WAA8C;IAE1D,IAAI,OAAO,YAA0C;IACrD,IAAI,OAAO,CAAC,CAAC,SAAA,EAAsC;IAEnD,QAAQ,CAAC,SAAS,SAAU,IAAI,mBAO7B;IACH,QAAQ,IAAI,OAAO;IAMV,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAOnC,SAAkB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBrB;IACM,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI;IA2BhD,QAAQ,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAK,IAAI;IAIrC,YAAY;IAEZ,cAAc,CAAC,GAAG,EAAE,eAAe;IAInC,sBAAsB,CAAC,GAAG,EAAE,eAAe;IAK3C,cAAc;IACd,sBAAsB;IAItB,IAAI,IAAI,MAAM;CAoBvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
@@ -43,7 +43,7 @@
43
43
  "semantic-release": "^18.0.1",
44
44
  "ts-loader": "^9.2.6",
45
45
  "ts-node": "^10.4.0",
46
- "typescript": "^4.5.2",
46
+ "typescript": "^4.5.3",
47
47
  "webpack": "^5.65.0",
48
48
  "webpack-cli": "^4.9.1",
49
49
  "webpack-dev-server": "^4.6.0"
package/web.js CHANGED
@@ -68188,7 +68188,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
68188
68188
  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");
68189
68189
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
68190
68190
  };
68191
- var _Button_instances, _a, _Button_procMasume4txt, _Button_procMasume4pic, _Button_rctBtnTxt, _Button_idc, _Button_sp_b_pic, _Button_sp_pic, _Button_loaded_b_pic, _Button_loaded_pic;
68191
+ var _Button_instances, _a, _Button_procMasume4txt, _Button_procMasume4pic, _Button_rctBtnTxt, _Button_idc, _Button_sp_b_pic, _Button_sp_pic, _Button_loaded_b_pic, _Button_normal, _Button_hover, _Button_clicked, _Button_loaded_pic;
68192
68192
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68193
68193
  exports.Button = void 0;
68194
68194
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
@@ -68209,6 +68209,9 @@ class Button extends pixi_js_1.Container {
68209
68209
  _Button_idc.set(this, void 0);
68210
68210
  _Button_sp_b_pic.set(this, null);
68211
68211
  _Button_sp_pic.set(this, null);
68212
+ _Button_normal.set(this, () => { });
68213
+ _Button_hover.set(this, () => false);
68214
+ _Button_clicked.set(this, () => { });
68212
68215
  if (CmnLib_1.CmnLib.isDbg) {
68213
68216
  this.makeDesignCast = gdc => gdc(__classPrivateFieldGet(this, _Button_idc, "f"));
68214
68217
  this.cvsResize = () => __classPrivateFieldGet(this, _Button_idc, "f").cvsResize();
@@ -68232,6 +68235,8 @@ class Button extends pixi_js_1.Container {
68232
68235
  if (hArg.pic) {
68233
68236
  oName.type = 'pic';
68234
68237
  __classPrivateFieldSet(this, _Button_idc, new DesignCast_1.PicBtnDesignCast(this, hArg), "f");
68238
+ if (enabled)
68239
+ this.evtMng.button(this.hArg, this, () => __classPrivateFieldGet(this, _Button_normal, "f").call(this), () => __classPrivateFieldGet(this, _Button_hover, "f").call(this), () => __classPrivateFieldGet(this, _Button_clicked, "f").call(this));
68235
68240
  if (!GrpLayer_1.GrpLayer.csv2Sprites(hArg.pic, this, sp => {
68236
68241
  __classPrivateFieldGet(this, _Button_instances, "m", _Button_loaded_pic).call(this, sp, oName);
68237
68242
  __classPrivateFieldGet(this, _Button_rctBtnTxt, "f").width = sp.width * oName.scale_x;
@@ -68248,7 +68253,7 @@ class Button extends pixi_js_1.Container {
68248
68253
  align: 'center',
68249
68254
  dropShadow: true,
68250
68255
  dropShadowAlpha: 0.7,
68251
- dropShadowColor: '#ffffff',
68256
+ dropShadowColor: 'white',
68252
68257
  dropShadowBlur: 7,
68253
68258
  dropShadowDistance: 0,
68254
68259
  fill: 'black',
@@ -68381,7 +68386,7 @@ class Button extends pixi_js_1.Container {
68381
68386
  }
68382
68387
  }
68383
68388
  exports.Button = Button;
68384
- _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Button_sp_b_pic = new WeakMap(), _Button_sp_pic = new WeakMap(), _Button_instances = new WeakSet(), _Button_loaded_b_pic = function _Button_loaded_b_pic(sp, txt) {
68389
+ _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Button_sp_b_pic = new WeakMap(), _Button_sp_pic = new WeakMap(), _Button_normal = new WeakMap(), _Button_hover = new WeakMap(), _Button_clicked = new WeakMap(), _Button_instances = new WeakSet(), _Button_loaded_b_pic = function _Button_loaded_b_pic(sp, txt) {
68385
68390
  __classPrivateFieldSet(this, _Button_sp_b_pic, sp, "f");
68386
68391
  this.setChildIndex(sp, 0);
68387
68392
  sp.alpha = txt.alpha;
@@ -68399,13 +68404,14 @@ _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Bu
68399
68404
  const txHover = new pixi_js_1.Texture(tx, new pixi_js_1.Rectangle(w3 * 2, 0, w3, h));
68400
68405
  const normal = () => sp.texture = txNormal;
68401
68406
  normal();
68402
- if (oName.enabled)
68403
- this.evtMng.button(this.hArg, this, normal, () => {
68404
- if (!this.canFocus())
68405
- return false;
68406
- sp.texture = txHover;
68407
- return true;
68408
- }, () => sp.texture = txClicked);
68407
+ __classPrivateFieldSet(this, _Button_normal, normal, "f");
68408
+ __classPrivateFieldSet(this, _Button_hover, () => {
68409
+ if (!this.canFocus())
68410
+ return false;
68411
+ sp.texture = txHover;
68412
+ return true;
68413
+ }, "f");
68414
+ __classPrivateFieldSet(this, _Button_clicked, () => sp.texture = txClicked, "f");
68409
68415
  if ('width' in this.hArg) {
68410
68416
  oName.width = (0, CmnLib_1.uint)(this.hArg.width);
68411
68417
  this.scale.x *= oName.width / w3;
@@ -68463,7 +68469,7 @@ exports.CallStack = CallStack;
68463
68469
  "use strict";
68464
68470
 
68465
68471
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68466
- 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;
68467
68473
  function int(o) { return parseInt(String(o), 10); }
68468
68474
  exports.int = int;
68469
68475
  function uint(o) {
@@ -68565,6 +68571,28 @@ function argChk_Boolean(hash, name, def) {
68565
68571
  return hash[name] = (v2 === 'false') ? false : Boolean(v2);
68566
68572
  }
68567
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;
68568
68596
  const REG_FN = /^[^\/\.]+$|[^\/]+(?=\.)/;
68569
68597
  function getFn(p) { return (p.match(REG_FN) ?? [''])[0]; }
68570
68598
  exports.getFn = getFn;
@@ -68798,7 +68826,9 @@ class Config {
68798
68826
  if ('init' in oCfg)
68799
68827
  for (const n in this.oCfg.init) {
68800
68828
  const v = String(this.oCfg.init[n]);
68801
- if (v.charAt(0) === '#')
68829
+ if (n === 'bg_color')
68830
+ this.oCfg.init[n] = (0, CmnLib_1.parseColor)(v);
68831
+ else
68802
68832
  this.oCfg.init[n] = parseInt(v.slice(1), 16);
68803
68833
  }
68804
68834
  this.oCfg.debug = { ...this.oCfg.debug, ...oCfg.debug };
@@ -69817,7 +69847,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
69817
69847
  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");
69818
69848
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
69819
69849
  };
69820
- 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;
69850
+ 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;
69821
69851
  Object.defineProperty(exports, "__esModule", ({ value: true }));
69822
69852
  exports.EventMng = void 0;
69823
69853
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -69867,6 +69897,8 @@ class EventMng {
69867
69897
  __classPrivateFieldSet(this, _EventMng_firstWait, () => { }, "f");
69868
69898
  this.scrItr.firstWait();
69869
69899
  });
69900
+ _EventMng_dispHint_hArg.set(this, void 0);
69901
+ _EventMng_dispHint_ctnBtn.set(this, void 0);
69870
69902
  _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate) => {
69871
69903
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").zIndex = 1000;
69872
69904
  __classPrivateFieldGet(this, _EventMng_grpHint, "f").x = rctBtn.x;
@@ -69912,7 +69944,7 @@ class EventMng {
69912
69944
  return true;
69913
69945
  };
69914
69946
  hTag.set_cancel_skip = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_cancel_skip).call(this);
69915
- hTag.set_focus = o => this.set_focus(o);
69947
+ hTag.set_focus = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_focus).call(this, o);
69916
69948
  hTag.wait = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_wait).call(this, o);
69917
69949
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
69918
69950
  sndMng.setEvtMng(this);
@@ -70109,7 +70141,7 @@ class EventMng {
70109
70141
  if (!ke) {
70110
70142
  if (key.slice(0, 5) === 'swipe') {
70111
70143
  const esw = e;
70112
- globalThis.scrollBy(-(esw.deltaX ?? 0), -(esw.deltaY ?? 0));
70144
+ globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
70113
70145
  }
70114
70146
  return;
70115
70147
  }
@@ -70220,6 +70252,11 @@ class EventMng {
70220
70252
  }
70221
70253
  this.sndMng.loadAheadSnd(hArg);
70222
70254
  }
70255
+ cvsResize() {
70256
+ if (__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden)
70257
+ return;
70258
+ __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, __classPrivateFieldGet(this, _EventMng_dispHint_hArg, "f"), __classPrivateFieldGet(this, _EventMng_dispHint_ctnBtn, "f"), false);
70259
+ }
70223
70260
  waitLimitedEvent(hArg, onFinish) {
70224
70261
  __classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
70225
70262
  this.val.saveKidoku();
@@ -70245,44 +70282,6 @@ class EventMng {
70245
70282
  __classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
70246
70283
  return true;
70247
70284
  }
70248
- set_focus(hArg) {
70249
- const add = hArg.add;
70250
- if (add?.slice(0, 4) === 'dom=') {
70251
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
70252
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70253
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70254
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
70255
- if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
70256
- return false;
70257
- elm.focus();
70258
- return true;
70259
- }, () => { }));
70260
- return false;
70261
- }
70262
- const del = hArg.del;
70263
- if (del?.slice(0, 4) === 'dom=') {
70264
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
70265
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70266
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70267
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
70268
- return false;
70269
- }
70270
- const to = hArg.to;
70271
- if (!to)
70272
- throw '[set_focus] add か to は必須です';
70273
- switch (to) {
70274
- case 'null':
70275
- __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
70276
- break;
70277
- case 'next':
70278
- __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
70279
- break;
70280
- case 'prev':
70281
- __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
70282
- break;
70283
- }
70284
- return false;
70285
- }
70286
70285
  isSkipKeyDown() {
70287
70286
  if (this.scrItr.skip4page)
70288
70287
  return true;
@@ -70293,7 +70292,7 @@ class EventMng {
70293
70292
  }
70294
70293
  }
70295
70294
  exports.EventMng = EventMng;
70296
- _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) {
70295
+ _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) {
70297
70296
  if (e['isComposing'])
70298
70297
  return;
70299
70298
  if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
@@ -70354,7 +70353,15 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70354
70353
  : key => __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")[key], "f");
70355
70354
  __classPrivateFieldSet(this, _EventMng_isWait, true, "f");
70356
70355
  __classPrivateFieldGet(this, _EventMng_firstWait, "f").call(this);
70357
- }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
70356
+ if (CmnLib_1.CmnLib.debugLog) {
70357
+ const o = Object.create(null);
70358
+ o.local = Object.keys(__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f"));
70359
+ o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
70360
+ console.log(`🎍 wait event... %o`, o);
70361
+ }
70362
+ }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn, masume = true) {
70363
+ __classPrivateFieldSet(this, _EventMng_dispHint_hArg, hArg, "f");
70364
+ __classPrivateFieldSet(this, _EventMng_dispHint_ctnBtn, ctnBtn, "f");
70358
70365
  const rctBtn = ctnBtn instanceof Button_1.Button
70359
70366
  ? ctnBtn.getBtnBounds()
70360
70367
  : ctnBtn.getBounds();
@@ -70368,12 +70375,14 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70368
70375
  const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
70369
70376
  const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
70370
70377
  const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
70371
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${rctBtn.x}px`;
70372
- __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${rctBtn.y}px`;
70378
+ const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
70379
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
70380
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
70373
70381
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
70374
- __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)`;
70382
+ __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)`;
70375
70383
  __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
70376
- __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
70384
+ if (masume)
70385
+ __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
70377
70386
  }, _EventMng_clear_event = function _EventMng_clear_event(hArg) {
70378
70387
  const glb = (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false);
70379
70388
  const h = glb ? __classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f") : __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -70551,6 +70560,43 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70551
70560
  delete hE1T['ArrowDown'];
70552
70561
  delete hE1T['wheel.y>0'];
70553
70562
  }
70563
+ }, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
70564
+ const add = hArg.add;
70565
+ if (add?.slice(0, 4) === 'dom=') {
70566
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
70567
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70568
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70569
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
70570
+ if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
70571
+ return false;
70572
+ elm.focus();
70573
+ return true;
70574
+ }, () => { }));
70575
+ return false;
70576
+ }
70577
+ const del = hArg.del;
70578
+ if (del?.slice(0, 4) === 'dom=') {
70579
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
70580
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70581
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70582
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
70583
+ return false;
70584
+ }
70585
+ const to = hArg.to;
70586
+ if (!to)
70587
+ throw '[set_focus] add か to は必須です';
70588
+ switch (to) {
70589
+ case 'null':
70590
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
70591
+ break;
70592
+ case 'next':
70593
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
70594
+ break;
70595
+ case 'prev':
70596
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
70597
+ break;
70598
+ }
70599
+ return false;
70554
70600
  }, _EventMng_wait = function _EventMng_wait(hArg) {
70555
70601
  if (this.scrItr.skip4page)
70556
70602
  return false;
@@ -72122,6 +72168,7 @@ void main(void) {
72122
72168
  else
72123
72169
  __classPrivateFieldGet(this, _LayerMng_aLayName, "f").forEach(layer => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore.cvsResize());
72124
72170
  __classPrivateFieldGet(this, _LayerMng_frmMng, "f").cvsResize();
72171
+ __classPrivateFieldGet(this, _LayerMng_evtMng, "f").cvsResize();
72125
72172
  };
72126
72173
  if (CmnLib_1.CmnLib.isMobile) {
72127
72174
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
@@ -72374,14 +72421,14 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
72374
72421
  if (this.sys.canCapturePage(fn))
72375
72422
  return false;
72376
72423
  const ext = (0, CmnLib_1.getExt)(fn);
72377
- const b_color = hArg.b_color ?? this.cfg.oCfg.init.bg_color;
72424
+ const b_color = (0, CmnLib_1.argChk_Color)(hArg, 'b_color', this.cfg.oCfg.init.bg_color);
72378
72425
  const rnd = (0, pixi_js_1.autoDetectRenderer)({
72379
72426
  width: (0, CmnLib_1.argChk_Num)(hArg, 'width', CmnLib_1.CmnLib.stageW),
72380
72427
  height: (0, CmnLib_1.argChk_Num)(hArg, 'height', CmnLib_1.CmnLib.stageH),
72381
72428
  backgroundAlpha: (b_color > 0x1000000) && (ext === 'png') ? 0 : 1,
72382
72429
  antialias: (0, CmnLib_1.argChk_Boolean)(hArg, 'smoothing', false),
72383
72430
  preserveDrawingBuffer: true,
72384
- backgroundColor: (0, CmnLib_1.uint)(b_color) & 0xFFFFFF,
72431
+ backgroundColor: b_color & 0xFFFFFF,
72385
72432
  autoDensity: true,
72386
72433
  });
72387
72434
  const a = [];
@@ -73052,10 +73099,15 @@ class Main {
73052
73099
  }
73053
73100
  exports.Main = Main;
73054
73101
  _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() {
73102
+ const cc = document.createElement('canvas')?.getContext('2d');
73103
+ if (!cc)
73104
+ throw 'argChk_Color err';
73105
+ CmnLib_1.CmnLib.cc4ColorName = cc;
73055
73106
  const hApp = {
73056
73107
  width: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.width,
73057
73108
  height: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.window.height,
73058
- backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color,
73109
+ backgroundColor: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color =
73110
+ (0, CmnLib_1.parseColor)(String(__classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.bg_color)),
73059
73111
  resolution: globalThis.devicePixelRatio ?? 1,
73060
73112
  autoResize: true,
73061
73113
  };
@@ -76608,7 +76660,7 @@ _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(
76608
76660
  }
76609
76661
  }
76610
76662
  else if ('b_color' in hArg) {
76611
- __classPrivateFieldSet(this, _TxtLayer_b_color, parseInt(hArg.b_color || '0'), "f");
76663
+ __classPrivateFieldSet(this, _TxtLayer_b_color, (0, CmnLib_1.argChk_Color)(hArg, 'b_color', 0x000000), "f");
76612
76664
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
76613
76665
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
76614
76666
  __classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();