@famibee/skynovel 1.25.0 → 1.25.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,13 @@
1
+ ## [1.25.1](https://github.com/famibee/SKYNovel/compare/v1.25.0...v1.25.1) (2021-12-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 右クリックから戻りでクリック待ちが左上へ移動する件 ([b68facc](https://github.com/famibee/SKYNovel/commit/b68facca6174769521c9d7bcc5c418526e28266c))
7
+
8
+ - fix: 右クリックから戻りでクリック待ちが左上へ移動する件
9
+
10
+
1
11
  # [1.25.0](https://github.com/famibee/SKYNovel/compare/v1.24.2...v1.25.0) (2021-12-23)
2
12
 
3
13
 
package/app.js CHANGED
@@ -74901,7 +74901,12 @@ class TxtStage extends pixi_js_1.Container {
74901
74901
  const bcr = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getBoundingClientRect();
74902
74902
  const sx = bcr.left + globalThis.scrollX + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left;
74903
74903
  const sy = bcr.top + globalThis.scrollY + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top;
74904
- let rctLastCh = new pixi_js_1.Rectangle;
74904
+ const moveBreak = __classPrivateFieldGet(this, _TxtStage_break_fixed, "f")
74905
+ ? _r => { }
74906
+ : r => {
74907
+ __classPrivateFieldSet(this, _TxtStage_break_fixed_left, r.x + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? 0 : r.width), "f");
74908
+ __classPrivateFieldSet(this, _TxtStage_break_fixed_top, r.y + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? r.height : 0), "f");
74909
+ };
74905
74910
  for (let i = begin; i < len; ++i) {
74906
74911
  const v = __classPrivateFieldGet(this, _TxtStage_aRect, "f")[i];
74907
74912
  const rct = v.rect;
@@ -74920,7 +74925,7 @@ class TxtStage extends pixi_js_1.Container {
74920
74925
  rct.y += (rct.height - rct.width) / 2;
74921
74926
  rct.height = rct.width;
74922
74927
  }
74923
- rctLastCh = rct;
74928
+ moveBreak(rct);
74924
74929
  }
74925
74930
  switch (v.cmd) {
74926
74931
  case 'grp':
@@ -74959,10 +74964,7 @@ class TxtStage extends pixi_js_1.Container {
74959
74964
  __classPrivateFieldSet(this, _TxtStage_fncEndChIn, () => {
74960
74965
  __classPrivateFieldSet(this, _TxtStage_isChInIng, false, "f");
74961
74966
  chs.forEach(v => v.className = v.className.replace(/ go_ch_in_[^\s"]+/g, ''));
74962
- if (__classPrivateFieldGet(this, _TxtStage_break_fixed, "f"))
74963
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(__classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"), __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"));
74964
- else
74965
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(rctLastCh.x + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? 0 : rctLastCh.width), rctLastCh.y + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? rctLastCh.height : 0));
74967
+ __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(__classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"), __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"));
74966
74968
  __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).visible = true;
74967
74969
  __classPrivateFieldSet(this, _TxtStage_fncEndChIn, () => { }, "f");
74968
74970
  }, "f");
@@ -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":"TxtStage.d.ts","sourceRoot":"","sources":["../../src/sn/TxtStage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAS,OAAO,EAA6B,MAAM,UAAU,CAAC;AACrE,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAIhC,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAG3C,OAAO,EAAC,SAAS,EAAW,MAAM,EAAuB,QAAQ,EAAQ,MAAM,SAAS,CAAC;AAGzF,UAAU,SAAS;IAClB,QAAQ,EAAG,MAAM,CAAC;IAClB,MAAM,EAAI,MAAM,CAAC;IACjB,OAAO,EAAI,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,CAAC;IAClB,SAAS,EAAG,MAAM,CAAC;IACnB,OAAO,EAAI,MAAM,CAAC;IAClB,UAAU,EAAG,MAAM,CAAC;CACpB;AAiBD,qBAAa,QAAS,SAAQ,SAAS;;IAmD1B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAU,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAhDrE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAS9B,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO;IAEhC,MAAM,CAAC,OAAO;gBAqCe,KAAK,EAAE,MAAM,EAAmB,QAAQ,EAAE,MAAK,OAAO;IAenF,GAAG,CAAC,IAAI,EAAE,IAAI;IAgFd,SAAS;IAWT,IAAI,QAAQ,YAA4B;IAIxC,IAAI,KAAK,IAAI,SAAS,CAAqB;IAC3C,IAAI,QAAQ,WAA8B;IAC1C,IAAI,SAAS,WAA+B;IAE5C,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IA8WrC,KAAK,CAAC,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@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "@types/electron-json-storage": "^4.5.0",
30
30
  "@types/fs-extra": "^9.0.13",
31
31
  "@types/mocha": "^9.0.0",
32
- "@types/node": "^17.0.3",
32
+ "@types/node": "^17.0.4",
33
33
  "@types/parsimmon": "^1.10.6",
34
34
  "@types/platform": "^1.3.4",
35
35
  "@types/power-assert": "^1.5.8",
package/web.js CHANGED
@@ -76136,7 +76136,12 @@ class TxtStage extends pixi_js_1.Container {
76136
76136
  const bcr = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getBoundingClientRect();
76137
76137
  const sx = bcr.left + globalThis.scrollX + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left;
76138
76138
  const sy = bcr.top + globalThis.scrollY + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top;
76139
- let rctLastCh = new pixi_js_1.Rectangle;
76139
+ const moveBreak = __classPrivateFieldGet(this, _TxtStage_break_fixed, "f")
76140
+ ? _r => { }
76141
+ : r => {
76142
+ __classPrivateFieldSet(this, _TxtStage_break_fixed_left, r.x + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? 0 : r.width), "f");
76143
+ __classPrivateFieldSet(this, _TxtStage_break_fixed_top, r.y + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? r.height : 0), "f");
76144
+ };
76140
76145
  for (let i = begin; i < len; ++i) {
76141
76146
  const v = __classPrivateFieldGet(this, _TxtStage_aRect, "f")[i];
76142
76147
  const rct = v.rect;
@@ -76155,7 +76160,7 @@ class TxtStage extends pixi_js_1.Container {
76155
76160
  rct.y += (rct.height - rct.width) / 2;
76156
76161
  rct.height = rct.width;
76157
76162
  }
76158
- rctLastCh = rct;
76163
+ moveBreak(rct);
76159
76164
  }
76160
76165
  switch (v.cmd) {
76161
76166
  case 'grp':
@@ -76194,10 +76199,7 @@ class TxtStage extends pixi_js_1.Container {
76194
76199
  __classPrivateFieldSet(this, _TxtStage_fncEndChIn, () => {
76195
76200
  __classPrivateFieldSet(this, _TxtStage_isChInIng, false, "f");
76196
76201
  chs.forEach(v => v.className = v.className.replace(/ go_ch_in_[^\s"]+/g, ''));
76197
- if (__classPrivateFieldGet(this, _TxtStage_break_fixed, "f"))
76198
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(__classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"), __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"));
76199
- else
76200
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(rctLastCh.x + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? 0 : rctLastCh.width), rctLastCh.y + (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f") ? rctLastCh.height : 0));
76202
+ __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).position.set(__classPrivateFieldGet(this, _TxtStage_break_fixed_left, "f"), __classPrivateFieldGet(this, _TxtStage_break_fixed_top, "f"));
76201
76203
  __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cntBreak).visible = true;
76202
76204
  __classPrivateFieldSet(this, _TxtStage_fncEndChIn, () => { }, "f");
76203
76205
  }, "f");