@famibee/skynovel 1.21.0 → 1.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web.js CHANGED
@@ -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;
@@ -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;
@@ -69817,7 +69823,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
69817
69823
  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
69824
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
69819
69825
  };
69820
- var _EventMng_instances, _EventMng_elc, _EventMng_hint, _EventMng_WIDTH_HINT_PIC, _EventMng_hint_txt_w, _EventMng_h_padl, _EventMng_g_hint, _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;
69826
+ var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_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
69827
  Object.defineProperty(exports, "__esModule", ({ value: true }));
69822
69828
  exports.EventMng = void 0;
69823
69829
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -69828,6 +69834,7 @@ const FocusMng_1 = __webpack_require__(/*! ./FocusMng */ "./core/src/sn/FocusMng
69828
69834
  const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/@tweenjs/tween.js/dist/tween.esm.js");
69829
69835
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
69830
69836
  const Config_1 = __webpack_require__(/*! ./Config */ "./core/src/sn/Config.ts");
69837
+ const GrpLayer_1 = __webpack_require__(/*! ./GrpLayer */ "./core/src/sn/GrpLayer.ts");
69831
69838
  const { GamepadListener } = __webpack_require__(/*! gamepad.js */ "./node_modules/gamepad.js/gamepad.js");
69832
69839
  class EventMng {
69833
69840
  constructor(cfg, hTag, appPixi, main, layMng, val, sndMng, scrItr, sys) {
@@ -69842,11 +69849,12 @@ class EventMng {
69842
69849
  this.sys = sys;
69843
69850
  _EventMng_instances.add(this);
69844
69851
  _EventMng_elc.set(this, new EventListenerCtn_1.EventListenerCtn);
69845
- _EventMng_hint.set(this, void 0);
69846
- _EventMng_WIDTH_HINT_PIC.set(this, 100);
69847
- _EventMng_hint_txt_w.set(this, void 0);
69848
- _EventMng_h_padl.set(this, void 0);
69849
- _EventMng_g_hint.set(this, new pixi_js_1.Graphics);
69852
+ _EventMng_cvsHint.set(this, document.createElement('canvas'));
69853
+ _EventMng_picHint_w.set(this, 100);
69854
+ _EventMng_picHint_h.set(this, 50);
69855
+ _EventMng_padHint.set(this, void 0);
69856
+ _EventMng_grpHint.set(this, new pixi_js_1.Graphics);
69857
+ this.setTxtHint = (_txt, _fillStyle, _hint_font) => { };
69850
69858
  _EventMng_gamepad.set(this, new GamepadListener({
69851
69859
  analog: false,
69852
69860
  deadZone: 0.3,
@@ -69865,22 +69873,27 @@ class EventMng {
69865
69873
  __classPrivateFieldSet(this, _EventMng_firstWait, () => { }, "f");
69866
69874
  this.scrItr.firstWait();
69867
69875
  });
69868
- _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width) => {
69869
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").zIndex = 1000;
69870
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").x = rctBtn.x;
69871
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").y = rctBtn.y;
69872
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").angle = ctnBtn.angle;
69876
+ _EventMng_dispHint_hArg.set(this, void 0);
69877
+ _EventMng_dispHint_ctnBtn.set(this, void 0);
69878
+ _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate) => {
69879
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").zIndex = 1000;
69880
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").x = rctBtn.x;
69881
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").y = rctBtn.y;
69882
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").rotation = ctnBtn.rotation;
69873
69883
  const p = (isLink ? ctnBtn.parent : ctnBtn).scale;
69874
69884
  const isBtnPic = (hArg.タグ名 === 'button') && (hArg.pic);
69875
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").clear()
69885
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").clear()
69876
69886
  .beginFill(0x33FF00, 0.2)
69877
69887
  .lineStyle(1, 0x33FF00, 1)
69878
69888
  .drawRect(0, 0, rctBtn.width, rctBtn.height)
69879
69889
  .endFill()
69880
69890
  .beginFill(0x0033FF, 0.2)
69881
- .lineStyle(2, 0x0033FF, 1)
69882
- .drawRect((rctBtn.width - hint_width) / 2, -__classPrivateFieldGet(this, _EventMng_hint, "f").height, hint_width * (isBtnPic ? 1 : p.x), __classPrivateFieldGet(this, _EventMng_hint, "f").height * (isBtnPic ? 1 : p.y))
69883
- .endFill();
69891
+ .lineStyle(2, 0x0033FF, 1);
69892
+ if (hint_tate)
69893
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").drawRect(isLink ? rctBtn.height : rctBtn.width, ((isLink ? rctBtn.width : rctBtn.height) - hint_width) / 2, __classPrivateFieldGet(this, _EventMng_picHint_h, "f") * (isBtnPic ? 1 : p.x), hint_width * (isBtnPic ? 1 : p.y));
69894
+ else
69895
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").drawRect((rctBtn.width - hint_width) / 2, -__classPrivateFieldGet(this, _EventMng_picHint_h, "f"), hint_width * (isBtnPic ? 1 : p.x), __classPrivateFieldGet(this, _EventMng_picHint_h, "f") * (isBtnPic ? 1 : p.y));
69896
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").endFill();
69884
69897
  });
69885
69898
  _EventMng_procWheel4wle.set(this, (_elc, _fnc) => { });
69886
69899
  _EventMng_elcWLE.set(this, new EventListenerCtn_1.EventListenerCtn);
@@ -69907,7 +69920,7 @@ class EventMng {
69907
69920
  return true;
69908
69921
  };
69909
69922
  hTag.set_cancel_skip = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_cancel_skip).call(this);
69910
- hTag.set_focus = o => this.set_focus(o);
69923
+ hTag.set_focus = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_focus).call(this, o);
69911
69924
  hTag.wait = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_wait).call(this, o);
69912
69925
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
69913
69926
  sndMng.setEvtMng(this);
@@ -69940,17 +69953,50 @@ class EventMng {
69940
69953
  sys.addHook(type => hHook[type]?.());
69941
69954
  }
69942
69955
  let fnHint = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAyBAMAAABYG2ONAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGuGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDgtMTlUMDM6MDk6MjUrMDk6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTA4LTE5VDIzOjUyOjI5KzA5OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTA4LTE5VDIzOjUyOjI5KzA5OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjI5ZjM1YWNlLTc0NzMtNGI3My05OGJjLWQ1OTk4ZDk5MjQzNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDphY2U0MDcwOS04ZTQxLTQ1YjYtYTMwZi05NDU1YWM1OTAwMmEiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDphY2U0MDcwOS04ZTQxLTQ1YjYtYTMwZi05NDU1YWM1OTAwMmEiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOmFjZTQwNzA5LThlNDEtNDViNi1hMzBmLTk0NTVhYzU5MDAyYSIgc3RFdnQ6d2hlbj0iMjAyMC0wOC0xOVQwMzowOToyNSswOTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA3Mzg4MzYwLWJjMjctNDRkZi1hMTYwLTk5N2M4ODNmYTA0ZCIgc3RFdnQ6d2hlbj0iMjAyMC0wOC0xOVQyMjo0NTozNiswOTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjI5ZjM1YWNlLTc0NzMtNGI3My05OGJjLWQ1OTk4ZDk5MjQzNiIgc3RFdnQ6d2hlbj0iMjAyMC0wOC0xOVQyMzo1MjoyOSswOTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+WWAYXwAAACdQTFRF////PDIlPDIlPDIlPDIlPDIlPDIlPDIlPDIlPDIlPDIlPDIlPDIlCOA6SAAAAA10Uk5TACB/MID/EJBA8NCwYDCdv6cAAABoSURBVHgBYxicYBQIKZEIlJmMSQWGTKS7a8RpGdUyqmVUy6iWUS3y7zGBAlwai+wnrOZwTA2FgBnE220F0RFlQLwWtq1gLdtI8SI7SEc4acFyMjQ08gBpgWzlAEKkgayoBJJj7AAuCQAm1kUjHh83WgAAAABJRU5ErkJggg==';
69956
+ let isCustomHint = false;
69943
69957
  try {
69944
69958
  fnHint = cfg.searchPath('hint', Config_1.Config.EXT_SPRITE);
69959
+ isCustomHint = true;
69945
69960
  }
69946
69961
  catch { }
69947
- __classPrivateFieldSet(this, _EventMng_hint, new Button_1.Button({ enabled: false, text: 'hint', style: `{"fill": "white", "fontSize": "${30 * 0.7}px"}`, b_pic: fnHint, width: 80, design: false, }, this, () => { }, () => false), "f");
69948
- __classPrivateFieldGet(this, _EventMng_hint, "f").visible = false;
69949
- appPixi.stage.addChild(__classPrivateFieldGet(this, _EventMng_hint, "f"));
69950
- __classPrivateFieldSet(this, _EventMng_hint_txt_w, __classPrivateFieldGet(this, _EventMng_hint, "f").getBtnBounds().width, "f");
69951
- __classPrivateFieldSet(this, _EventMng_h_padl, (__classPrivateFieldGet(this, _EventMng_hint, "f").width - __classPrivateFieldGet(this, _EventMng_hint_txt_w, "f")) / 2, "f");
69962
+ const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
69963
+ if (ctx) {
69964
+ const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
69965
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
69966
+ cvs.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
69967
+ const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
69968
+ s.position = 'absolute';
69969
+ s.left = s.top = '0';
69970
+ s.zIndex = '10000';
69971
+ s.pointerEvents = 'none';
69972
+ s.userSelect = 'none';
69973
+ __classPrivateFieldSet(this, _EventMng_padHint, 10, "f");
69974
+ const img = new Image;
69975
+ const initHint = () => {
69976
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").width = __classPrivateFieldSet(this, _EventMng_picHint_w, img.width, "f");
69977
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").height = __classPrivateFieldSet(this, _EventMng_picHint_h, img.height, "f");
69978
+ this.setTxtHint('行方向の変更', 'white', '22px Arial');
69979
+ };
69980
+ this.setTxtHint = (txt, fillStyle, hint_font) => {
69981
+ ctx.clearRect(0, 0, __classPrivateFieldGet(this, _EventMng_cvsHint, "f").width, __classPrivateFieldGet(this, _EventMng_cvsHint, "f").height);
69982
+ ctx.drawImage(img, 0, 0);
69983
+ ctx.textBaseline = 'top';
69984
+ ctx.font = hint_font;
69985
+ ctx.fillStyle = fillStyle;
69986
+ ctx.fillText(txt, __classPrivateFieldGet(this, _EventMng_padHint, "f"), 16, __classPrivateFieldGet(this, _EventMng_picHint_w, "f") - __classPrivateFieldGet(this, _EventMng_padHint, "f") * 2);
69987
+ };
69988
+ if (isCustomHint)
69989
+ GrpLayer_1.GrpLayer.loadPic2Img('hint', img, i => {
69990
+ if (img === i)
69991
+ initHint();
69992
+ });
69993
+ else {
69994
+ img.src = fnHint;
69995
+ img.onload = initHint;
69996
+ }
69997
+ }
69952
69998
  if (this.cfg.oCfg.debug.masume)
69953
- appPixi.stage.addChild(__classPrivateFieldGet(this, _EventMng_g_hint, "f"));
69999
+ appPixi.stage.addChild(__classPrivateFieldGet(this, _EventMng_grpHint, "f"));
69954
70000
  else
69955
70001
  __classPrivateFieldSet(this, _EventMng_dispHint_masume, () => { }, "f");
69956
70002
  appPixi.stage.interactive = true;
@@ -70050,7 +70096,7 @@ class EventMng {
70050
70096
  destroy() {
70051
70097
  __classPrivateFieldGet(this, _EventMng_fcs, "f").destroy();
70052
70098
  __classPrivateFieldGet(this, _EventMng_elc, "f").clear();
70053
- __classPrivateFieldGet(this, _EventMng_hint, "f").parent?.removeChild(__classPrivateFieldGet(this, _EventMng_hint, "f"));
70099
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f")?.parentElement.removeChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
70054
70100
  }
70055
70101
  fire(KEY, e) {
70056
70102
  if (__classPrivateFieldGet(this, _EventMng_isDbgBreak, "f"))
@@ -70071,7 +70117,7 @@ class EventMng {
70071
70117
  if (!ke) {
70072
70118
  if (key.slice(0, 5) === 'swipe') {
70073
70119
  const esw = e;
70074
- globalThis.scrollBy(-(esw.deltaX ?? 0), -(esw.deltaY ?? 0));
70120
+ globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
70075
70121
  }
70076
70122
  return;
70077
70123
  }
@@ -70082,7 +70128,7 @@ class EventMng {
70082
70128
  this.layMng.clickTxtLay();
70083
70129
  __classPrivateFieldSet(this, _EventMng_isWait, false, "f");
70084
70130
  ke(e);
70085
- __classPrivateFieldGet(this, _EventMng_hint, "f").visible = false;
70131
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
70086
70132
  }
70087
70133
  popLocalEvts() {
70088
70134
  const ret = __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -70104,7 +70150,6 @@ class EventMng {
70104
70150
  __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, onFinish, canskip, global);
70105
70151
  return true;
70106
70152
  }
70107
- escapeHint() { __classPrivateFieldGet(this, _EventMng_hint, "f").parent?.removeChild(__classPrivateFieldGet(this, _EventMng_hint, "f")); }
70108
70153
  unButton(ctnBtn) { __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(ctnBtn); }
70109
70154
  button(hArg, ctnBtn, normal, hover, clicked) {
70110
70155
  if (!hArg.fn && !hArg.label)
@@ -70121,7 +70166,7 @@ class EventMng {
70121
70166
  const ee = ctnBtn;
70122
70167
  ee.on('pointerdown', (e) => this.fire(key, e));
70123
70168
  const onHint = hArg.hint ? () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, hArg, ctnBtn) : () => { };
70124
- const nr = () => { normal(); };
70169
+ const nr = () => { normal(); __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true; };
70125
70170
  const hv = () => { onHint(); return hover(); };
70126
70171
  ee.on('pointerover', hv);
70127
70172
  ee.on('pointerout', () => { if (__classPrivateFieldGet(this, _EventMng_fcs, "f").isFocus(ctnBtn))
@@ -70183,6 +70228,11 @@ class EventMng {
70183
70228
  }
70184
70229
  this.sndMng.loadAheadSnd(hArg);
70185
70230
  }
70231
+ cvsResize() {
70232
+ if (__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden)
70233
+ return;
70234
+ __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, __classPrivateFieldGet(this, _EventMng_dispHint_hArg, "f"), __classPrivateFieldGet(this, _EventMng_dispHint_ctnBtn, "f"), false);
70235
+ }
70186
70236
  waitLimitedEvent(hArg, onFinish) {
70187
70237
  __classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
70188
70238
  this.val.saveKidoku();
@@ -70208,44 +70258,6 @@ class EventMng {
70208
70258
  __classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
70209
70259
  return true;
70210
70260
  }
70211
- set_focus(hArg) {
70212
- const add = hArg.add;
70213
- if (add?.slice(0, 4) === 'dom=') {
70214
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
70215
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70216
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70217
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
70218
- if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
70219
- return false;
70220
- elm.focus();
70221
- return true;
70222
- }, () => { }));
70223
- return false;
70224
- }
70225
- const del = hArg.del;
70226
- if (del?.slice(0, 4) === 'dom=') {
70227
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
70228
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70229
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70230
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
70231
- return false;
70232
- }
70233
- const to = hArg.to;
70234
- if (!to)
70235
- throw '[set_focus] add か to は必須です';
70236
- switch (to) {
70237
- case 'null':
70238
- __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
70239
- break;
70240
- case 'next':
70241
- __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
70242
- break;
70243
- case 'prev':
70244
- __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
70245
- break;
70246
- }
70247
- return false;
70248
- }
70249
70261
  isSkipKeyDown() {
70250
70262
  if (this.scrItr.skip4page)
70251
70263
  return true;
@@ -70256,7 +70268,7 @@ class EventMng {
70256
70268
  }
70257
70269
  }
70258
70270
  exports.EventMng = EventMng;
70259
- _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_HINT_PIC = new WeakMap(), _EventMng_hint_txt_w = new WeakMap(), _EventMng_h_padl = new WeakMap(), _EventMng_g_hint = 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) {
70271
+ _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) {
70260
70272
  if (e['isComposing'])
70261
70273
  return;
70262
70274
  if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
@@ -70317,7 +70329,15 @@ _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_H
70317
70329
  : key => __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")[key], "f");
70318
70330
  __classPrivateFieldSet(this, _EventMng_isWait, true, "f");
70319
70331
  __classPrivateFieldGet(this, _EventMng_firstWait, "f").call(this);
70320
- }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
70332
+ if (CmnLib_1.CmnLib.debugLog) {
70333
+ const o = Object.create(null);
70334
+ o.local = Object.keys(__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f"));
70335
+ o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
70336
+ console.log(`🎍 wait event... %o`, o);
70337
+ }
70338
+ }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn, masume = true) {
70339
+ __classPrivateFieldSet(this, _EventMng_dispHint_hArg, hArg, "f");
70340
+ __classPrivateFieldSet(this, _EventMng_dispHint_ctnBtn, ctnBtn, "f");
70321
70341
  const rctBtn = ctnBtn instanceof Button_1.Button
70322
70342
  ? ctnBtn.getBtnBounds()
70323
70343
  : ctnBtn.getBounds();
@@ -70327,14 +70347,18 @@ _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_H
70327
70347
  rctBtn.x += cpp.x;
70328
70348
  rctBtn.y += cpp.y;
70329
70349
  }
70330
- __classPrivateFieldGet(this, _EventMng_hint, "f").setText(hArg.hint ?? '');
70331
- const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_WIDTH_HINT_PIC, "f"));
70332
- const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_WIDTH_HINT_PIC, "f");
70333
- __classPrivateFieldGet(this, _EventMng_hint, "f").setTransform(rctBtn.x, rctBtn.y, scale_x, 1, ctnBtn.rotation, 0, 0, isLink
70334
- ? -(__classPrivateFieldGet(this, _EventMng_h_padl, "f") - (hint_width - rctBtn.width) / 2 / scale_x)
70335
- : -(rctBtn.width / scale_x - __classPrivateFieldGet(this, _EventMng_hint_txt_w, "f")) / 2, __classPrivateFieldGet(this, _EventMng_hint, "f").height);
70336
- __classPrivateFieldGet(this, _EventMng_hint, "f").visible = true;
70337
- __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width);
70350
+ this.setTxtHint(hArg.hint ?? '', hArg.hint_color ?? 'white', hArg.hint_font ?? '22px Arial');
70351
+ const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
70352
+ const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
70353
+ const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
70354
+ const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
70355
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
70356
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
70357
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
70358
+ __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)`;
70359
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
70360
+ if (masume)
70361
+ __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
70338
70362
  }, _EventMng_clear_event = function _EventMng_clear_event(hArg) {
70339
70363
  const glb = (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false);
70340
70364
  const h = glb ? __classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f") : __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -70512,6 +70536,43 @@ _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_H
70512
70536
  delete hE1T['ArrowDown'];
70513
70537
  delete hE1T['wheel.y>0'];
70514
70538
  }
70539
+ }, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
70540
+ const add = hArg.add;
70541
+ if (add?.slice(0, 4) === 'dom=') {
70542
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
70543
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70544
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70545
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
70546
+ if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
70547
+ return false;
70548
+ elm.focus();
70549
+ return true;
70550
+ }, () => { }));
70551
+ return false;
70552
+ }
70553
+ const del = hArg.del;
70554
+ if (del?.slice(0, 4) === 'dom=') {
70555
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
70556
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
70557
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
70558
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
70559
+ return false;
70560
+ }
70561
+ const to = hArg.to;
70562
+ if (!to)
70563
+ throw '[set_focus] add か to は必須です';
70564
+ switch (to) {
70565
+ case 'null':
70566
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
70567
+ break;
70568
+ case 'next':
70569
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
70570
+ break;
70571
+ case 'prev':
70572
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
70573
+ break;
70574
+ }
70575
+ return false;
70515
70576
  }, _EventMng_wait = function _EventMng_wait(hArg) {
70516
70577
  if (this.scrItr.skip4page)
70517
70578
  return false;
@@ -70765,12 +70826,13 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
70765
70826
  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");
70766
70827
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
70767
70828
  };
70768
- var _FrameMng_instances, _FrameMng_evtMng, _FrameMng_hIfrm, _FrameMng_add_frame, _FrameMng_hDisabled, _FrameMng_hAEncImg, _FrameMng_hEncImgOUrl, _FrameMng_rect, _FrameMng_let_frame, _FrameMng_set_frame, _FrameMng_zIdx, _FrameMng_frame, _FrameMng_tsy_frame;
70829
+ var _FrameMng_instances, _FrameMng_evtMng, _FrameMng_hIfrm, _FrameMng_add_frame, _FrameMng_hDisabled, _FrameMng_rect, _FrameMng_let_frame, _FrameMng_set_frame, _FrameMng_zIdx, _FrameMng_frame, _FrameMng_tsy_frame;
70769
70830
  Object.defineProperty(exports, "__esModule", ({ value: true }));
70770
70831
  exports.FrameMng = void 0;
70771
70832
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
70772
70833
  const CmnTween_1 = __webpack_require__(/*! ./CmnTween */ "./core/src/sn/CmnTween.ts");
70773
70834
  const Config_1 = __webpack_require__(/*! ./Config */ "./core/src/sn/Config.ts");
70835
+ const GrpLayer_1 = __webpack_require__(/*! ./GrpLayer */ "./core/src/sn/GrpLayer.ts");
70774
70836
  const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/@tweenjs/tween.js/dist/tween.esm.js");
70775
70837
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
70776
70838
  class FrameMng {
@@ -70784,9 +70846,7 @@ class FrameMng {
70784
70846
  _FrameMng_instances.add(this);
70785
70847
  _FrameMng_evtMng.set(this, void 0);
70786
70848
  _FrameMng_hIfrm.set(this, Object.create(null));
70787
- _FrameMng_hDisabled.set(this, Object.create(null));
70788
- _FrameMng_hAEncImg.set(this, Object.create(null));
70789
- _FrameMng_hEncImgOUrl.set(this, Object.create(null));
70849
+ _FrameMng_hDisabled.set(this, {});
70790
70850
  _FrameMng_zIdx.set(this, 1);
70791
70851
  hTag.add_frame = o => __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_add_frame).call(this, o);
70792
70852
  hTag.let_frame = o => __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_let_frame).call(this, o);
@@ -70819,7 +70879,7 @@ class FrameMng {
70819
70879
  }
70820
70880
  }
70821
70881
  exports.FrameMng = FrameMng;
70822
- _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_hAEncImg = new WeakMap(), _FrameMng_hEncImgOUrl = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
70882
+ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
70823
70883
  const id = hArg.id;
70824
70884
  if (!id)
70825
70885
  throw 'idは必須です';
@@ -70873,46 +70933,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
70873
70933
  this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
70874
70934
  const win = ifrm.contentWindow;
70875
70935
  __classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
70876
- (win.sn_repRes)?.((i) => {
70877
- const src = (i.dataset.src ?? '').replace(/(.+\/|\..+)/g, '');
70878
- const oUrl = __classPrivateFieldGet(this, _FrameMng_hEncImgOUrl, "f")[src];
70879
- if (oUrl) {
70880
- i.src = oUrl;
70881
- return;
70882
- }
70883
- const aImg = __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[src];
70884
- if (aImg) {
70885
- aImg.push(i);
70886
- return;
70887
- }
70888
- __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[src] = [i];
70889
- const url2 = this.cfg.searchPath(src, Config_1.Config.EXT_SPRITE);
70890
- const ld2 = (new pixi_js_1.Loader)
70891
- .add({ name: src, url: url2, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.BUFFER, });
70892
- if (this.sys.crypto)
70893
- ld2.use((res, next) => {
70894
- this.sys.dec(res.extension, res.data)
70895
- .then(r => {
70896
- if (res.extension !== 'bin') {
70897
- next?.();
70898
- return;
70899
- }
70900
- res.data = r;
70901
- if (r instanceof HTMLImageElement) {
70902
- res.type = pixi_js_1.LoaderResource.TYPE.IMAGE;
70903
- }
70904
- next?.();
70905
- })
70906
- .catch(e => this.main.errScript(`Graphic ロード失敗です fn:${res.name} ${e}`, false));
70907
- });
70908
- ld2.load((_ldr, hRes) => {
70909
- for (const s2 in hRes) {
70910
- const u2 = __classPrivateFieldGet(this, _FrameMng_hEncImgOUrl, "f")[s2] = hRes[s2].data.src;
70911
- __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[s2].forEach(v => v.src = u2);
70912
- delete __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[s2];
70913
- }
70914
- });
70915
- });
70936
+ (win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '').replace(/(.+\/|\..+)/g, ''), img));
70916
70937
  this.main.resume();
70917
70938
  };
70918
70939
  });
@@ -71325,7 +71346,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
71325
71346
  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");
71326
71347
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
71327
71348
  };
71328
- var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite;
71349
+ var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
71329
71350
  Object.defineProperty(exports, "__esModule", ({ value: true }));
71330
71351
  exports.GrpLayer = void 0;
71331
71352
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -71512,6 +71533,49 @@ class GrpLayer extends Layer_1.Layer {
71512
71533
  hve.addEventListener('ended', fnc, { once: true, passive: true });
71513
71534
  return __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_evtMng).waitEvent(() => { hve.pause(); fnc(); }, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
71514
71535
  }
71536
+ static loadPic2Img(src, img, onload) {
71537
+ const oUrl = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[src];
71538
+ if (oUrl) {
71539
+ img.src = oUrl;
71540
+ return;
71541
+ }
71542
+ const aImg = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[src];
71543
+ if (aImg) {
71544
+ aImg.push(img);
71545
+ return;
71546
+ }
71547
+ __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[src] = [img];
71548
+ const url2 = __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_cfg).searchPath(src, Config_1.Config.EXT_SPRITE);
71549
+ const ld2 = (new pixi_js_1.Loader)
71550
+ .add({ name: src, url: url2, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.BUFFER, });
71551
+ if (__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_sys).crypto)
71552
+ ld2.use((res, next) => {
71553
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_sys).dec(res.extension, res.data)
71554
+ .then(r => {
71555
+ if (res.extension !== 'bin') {
71556
+ next?.();
71557
+ return;
71558
+ }
71559
+ res.data = r;
71560
+ if (r instanceof HTMLImageElement) {
71561
+ res.type = pixi_js_1.LoaderResource.TYPE.IMAGE;
71562
+ }
71563
+ next?.();
71564
+ })
71565
+ .catch(e => __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_main).errScript(`GrpLayer loadPic ロード失敗です fn:${res.name} ${e}`, false));
71566
+ });
71567
+ ld2.load((_ldr, hRes) => {
71568
+ for (const s2 in hRes) {
71569
+ const u2 = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[s2] = hRes[s2].data.src;
71570
+ __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[s2].forEach(i => {
71571
+ i.src = u2;
71572
+ if (onload)
71573
+ i.onload = () => onload(i);
71574
+ });
71575
+ delete __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[s2];
71576
+ }
71577
+ });
71578
+ }
71515
71579
  setPos(hArg) {
71516
71580
  Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
71517
71581
  }
@@ -71663,6 +71727,8 @@ _GrpLayer_dec2cache = { value: (_r, res, next) => {
71663
71727
  next();
71664
71728
  } };
71665
71729
  GrpLayer.hFn2VElm = {};
71730
+ _GrpLayer_hAEncImg = { value: {} };
71731
+ _GrpLayer_hEncImgOUrl = { value: {} };
71666
71732
 
71667
71733
 
71668
71734
  /***/ }),
@@ -72078,6 +72144,7 @@ void main(void) {
72078
72144
  else
72079
72145
  __classPrivateFieldGet(this, _LayerMng_aLayName, "f").forEach(layer => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore.cvsResize());
72080
72146
  __classPrivateFieldGet(this, _LayerMng_frmMng, "f").cvsResize();
72147
+ __classPrivateFieldGet(this, _LayerMng_evtMng, "f").cvsResize();
72081
72148
  };
72082
72149
  if (CmnLib_1.CmnLib.isMobile) {
72083
72150
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
@@ -77578,7 +77645,6 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
77578
77645
  elm.style.animationDelay = '0ms';
77579
77646
  elm.classList.add(`go_ch_out_${add.ch_out_style}`);
77580
77647
  });
77581
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_evtMng).escapeHint();
77582
77648
  const end = () => {
77583
77649
  old.parentElement.removeChild(old);
77584
77650
  __classPrivateFieldGet(this, _TxtStage_cntTxt, "f").removeChildren().forEach(c => {