@famibee/skynovel 1.22.0 → 1.22.1

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,14 @@
1
+ ## [1.22.1](https://github.com/famibee/SKYNovel/compare/v1.22.0...v1.22.1) (2021-12-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 画像ボタンで、イベント予約が画像ロード後まで遅延する件 ([e7f9f97](https://github.com/famibee/SKYNovel/commit/e7f9f97f113d967328282684df57d8159366c7aa))
7
+
8
+ - fix: 画像ボタンで、イベント予約が画像ロード後まで遅延する件
9
+ - fix: デバッグスイッチ debugLog=true 時にイベント待ちした際、予約済みイベント名をコンソールに表示するように
10
+
11
+
1
12
  # [1.22.0](https://github.com/famibee/SKYNovel/compare/v1.21.0...v1.22.0) (2021-12-08)
2
13
 
3
14
 
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"), __classPrivateFieldGet(this, _Button_hover, "f"), __classPrivateFieldGet(this, _Button_clicked, "f"));
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;
@@ -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;
@@ -68761,7 +68767,7 @@ class EventMng {
68761
68767
  if (!ke) {
68762
68768
  if (key.slice(0, 5) === 'swipe') {
68763
68769
  const esw = e;
68764
- globalThis.scrollBy(-(esw.deltaX ?? 0), -(esw.deltaY ?? 0));
68770
+ globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
68765
68771
  }
68766
68772
  return;
68767
68773
  }
@@ -69006,6 +69012,12 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69006
69012
  : key => __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")[key], "f");
69007
69013
  __classPrivateFieldSet(this, _EventMng_isWait, true, "f");
69008
69014
  __classPrivateFieldGet(this, _EventMng_firstWait, "f").call(this);
69015
+ if (CmnLib_1.CmnLib.debugLog) {
69016
+ const o = Object.create(null);
69017
+ o.local = Object.keys(__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f"));
69018
+ o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
69019
+ console.log(`🎍 wait event... %o`, o);
69020
+ }
69009
69021
  }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
69010
69022
  const rctBtn = ctnBtn instanceof Button_1.Button
69011
69023
  ? ctnBtn.getBtnBounds()
@@ -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,QAAQ,CAAC,QAAQ;IA9BjI,MAAM,CAAC,UAAU,SAAsF;IAGvG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM;IAmBvB,OAAO,CAAC,KAAK,EAAE,MAAM;IACrB,YAAY,kBAAwB;gBAOP,IAAI,EAAE,IAAI,EAAmB,MAAM,EAAE,OAAO,EAAW,OAAO,EAAE,MAAK,IAAI,EAAmB,QAAQ,EAAE,MAAK,OAAO;IA4ItI,OAAO,CAAC,QAAQ,CAAC,EAAE,eAAe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4E9B,aAAa,IAAI,OAAO;CAkBxB"}
@@ -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,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,O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AAa,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
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"), __classPrivateFieldGet(this, _Button_hover, "f"), __classPrivateFieldGet(this, _Button_clicked, "f"));
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;
@@ -70109,7 +70115,7 @@ class EventMng {
70109
70115
  if (!ke) {
70110
70116
  if (key.slice(0, 5) === 'swipe') {
70111
70117
  const esw = e;
70112
- globalThis.scrollBy(-(esw.deltaX ?? 0), -(esw.deltaY ?? 0));
70118
+ globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
70113
70119
  }
70114
70120
  return;
70115
70121
  }
@@ -70354,6 +70360,12 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
70354
70360
  : key => __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")[key], "f");
70355
70361
  __classPrivateFieldSet(this, _EventMng_isWait, true, "f");
70356
70362
  __classPrivateFieldGet(this, _EventMng_firstWait, "f").call(this);
70363
+ if (CmnLib_1.CmnLib.debugLog) {
70364
+ const o = Object.create(null);
70365
+ o.local = Object.keys(__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f"));
70366
+ o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
70367
+ console.log(`🎍 wait event... %o`, o);
70368
+ }
70357
70369
  }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
70358
70370
  const rctBtn = ctnBtn instanceof Button_1.Button
70359
70371
  ? ctnBtn.getBtnBounds()