@famibee/skynovel 1.64.19 → 1.64.21

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.
Files changed (71) hide show
  1. package/dist/CmnTween.js +26 -27
  2. package/dist/CmnTween.js.map +1 -1
  3. package/dist/DebugMng.js +2 -2
  4. package/dist/DebugMng.js.map +1 -1
  5. package/dist/EventMng.js +218 -213
  6. package/dist/EventMng.js.map +1 -1
  7. package/dist/LayerMng.js +64 -52
  8. package/dist/LayerMng.js.map +1 -1
  9. package/dist/Reading.js +34 -28
  10. package/dist/Reading.js.map +1 -1
  11. package/dist/ScriptIterator.js +1 -1
  12. package/dist/ScriptIterator.js.map +1 -1
  13. package/dist/SndBuf.js +22 -22
  14. package/dist/SndBuf.js.map +1 -1
  15. package/dist/TxtLayer.js +238 -239
  16. package/dist/TxtLayer.js.map +1 -1
  17. package/dist/appMain_cmn.d.ts.map +1 -1
  18. package/dist/sn/CmnInterface.d.ts +1 -1
  19. package/dist/sn/CmnInterface.d.ts.map +1 -1
  20. package/dist/sn/CmnLib.d.ts +1 -0
  21. package/dist/sn/CmnLib.d.ts.map +1 -1
  22. package/dist/sn/CmnTween.d.ts.map +1 -1
  23. package/dist/sn/EventMng.d.ts.map +1 -1
  24. package/dist/sn/FocusMng.d.ts +2 -0
  25. package/dist/sn/FocusMng.d.ts.map +1 -1
  26. package/dist/sn/FrameMng.d.ts.map +1 -1
  27. package/dist/sn/Hyphenation.d.ts.map +1 -1
  28. package/dist/sn/Layer.d.ts.map +1 -1
  29. package/dist/sn/Reading.d.ts.map +1 -1
  30. package/dist/sn/SndBuf.d.ts.map +1 -1
  31. package/dist/sn/TxtLayer.d.ts.map +1 -1
  32. package/dist/sn/TxtStage.d.ts.map +1 -1
  33. package/dist/sn/htm2tx.d.ts.map +1 -1
  34. package/dist/web2.js +4 -4
  35. package/dist/web2.js.map +1 -1
  36. package/dist_app/CmnTween.js +28 -29
  37. package/dist_app/CmnTween.js.map +1 -1
  38. package/dist_app/EventMng.js +326 -321
  39. package/dist_app/EventMng.js.map +1 -1
  40. package/dist_app/LayerMng.js +64 -52
  41. package/dist_app/LayerMng.js.map +1 -1
  42. package/dist_app/Reading.js +34 -28
  43. package/dist_app/Reading.js.map +1 -1
  44. package/dist_app/ScriptIterator.js +1 -1
  45. package/dist_app/ScriptIterator.js.map +1 -1
  46. package/dist_app/SndBuf.js +22 -22
  47. package/dist_app/SndBuf.js.map +1 -1
  48. package/dist_app/TxtLayer.js +306 -307
  49. package/dist_app/TxtLayer.js.map +1 -1
  50. package/dist_app/app2.js +6 -6
  51. package/dist_app/app2.js.map +1 -1
  52. package/dist_app/appMain.js +1 -1
  53. package/dist_app/appMain.js.map +1 -1
  54. package/dist_app/appMain_cmn.d.ts.map +1 -1
  55. package/dist_app/sn/CmnInterface.d.ts +1 -1
  56. package/dist_app/sn/CmnInterface.d.ts.map +1 -1
  57. package/dist_app/sn/CmnLib.d.ts +1 -0
  58. package/dist_app/sn/CmnLib.d.ts.map +1 -1
  59. package/dist_app/sn/CmnTween.d.ts.map +1 -1
  60. package/dist_app/sn/EventMng.d.ts.map +1 -1
  61. package/dist_app/sn/FocusMng.d.ts +2 -2
  62. package/dist_app/sn/FocusMng.d.ts.map +1 -1
  63. package/dist_app/sn/FrameMng.d.ts.map +1 -1
  64. package/dist_app/sn/Hyphenation.d.ts.map +1 -1
  65. package/dist_app/sn/Layer.d.ts.map +1 -1
  66. package/dist_app/sn/Reading.d.ts.map +1 -1
  67. package/dist_app/sn/SndBuf.d.ts.map +1 -1
  68. package/dist_app/sn/TxtLayer.d.ts.map +1 -1
  69. package/dist_app/sn/TxtStage.d.ts.map +1 -1
  70. package/dist_app/sn/htm2tx.d.ts.map +1 -1
  71. package/package.json +2 -2
package/dist/SndBuf.js CHANGED
@@ -626,7 +626,7 @@ var q = se.filter(function(n) {
626
626
  }, o);
627
627
  i && i.catch(o);
628
628
  }, e;
629
- }(ie), Ee = function() {
629
+ }(ie), Se = function() {
630
630
  function n() {
631
631
  this.init();
632
632
  }
@@ -899,11 +899,11 @@ var q = se.filter(function(n) {
899
899
  return b(e, n), e;
900
900
  }(k) }, Ve = { __proto__: null, supported: K }, z = function(n) {
901
901
  return ee = n, n;
902
- }(new Ee());
902
+ }(new Se());
903
903
  ue.add(oe);
904
904
  class j {
905
905
  constructor(e, t, s, o, i, r, u, a) {
906
- this.fn = e, this.buf = t, this.start_ms = s, this.end_ms = o, this.ret_ms = i, this.volume = r, this.pan = u, this.snd = a, this.stt = a ? new G(this) : new Se(this), this.#e = L.procID, a && this.addSnd(a);
906
+ this.fn = e, this.buf = t, this.start_ms = s, this.end_ms = o, this.ret_ms = i, this.volume = r, this.pan = u, this.snd = a, this.stt = a ? new G(this) : new Ee(this), this.#e = L.procID, a && this.addSnd(a);
907
907
  }
908
908
  static #t = 1;
909
909
  stt;
@@ -953,17 +953,17 @@ class j {
953
953
  destroy() {
954
954
  }
955
955
  }
956
- let J, c, S, Z, H, U;
956
+ let J, c, E, Z, H, U;
957
957
  const X = "BGM", D = "SE", Q = "VOICE";
958
958
  class f {
959
959
  constructor(e, t, s) {
960
960
  this.hArg = e, this.buf = t, this.fn = s;
961
961
  const o = F(e, "start_ms", 0), i = F(e, "end_ms", f.MAX_END_MS), r = F(e, "ret_ms", 0), u = F(e, "pan", 0), a = F(e, "speed", 1);
962
- if (o < 0) throw `[playse] start_ms:${o} が負の値です`;
963
- if (r < 0) throw `[playse] ret_ms:${r} が負の値です`;
962
+ if (o < 0) throw `[playse] start_ms:${String(o)} が負の値です`;
963
+ if (r < 0) throw `[playse] ret_ms:${String(r)} が負の値です`;
964
964
  if (0 < i) {
965
- if (i <= o) throw `[playse] start_ms:${o} >= end_ms:${i} は異常値です`;
966
- if (i <= r) throw `[playse] ret_ms:${r} >= end_ms:${i} は異常値です`;
965
+ if (i <= o) throw `[playse] start_ms:${String(o)} >= end_ms:${String(i)} は異常値です`;
966
+ if (i <= r) throw `[playse] ret_ms:${String(r)} >= end_ms:${String(i)} は異常値です`;
967
967
  }
968
968
  const l = "const.sn.sound." + t + ".";
969
969
  c.setVal_Nochk("save", l + "fn", s);
@@ -989,7 +989,7 @@ class f {
989
989
  loaded: (p, x) => {
990
990
  if (!this.#e.stt.isDestroy) {
991
991
  if (p) {
992
- S.errScript(`ロード失敗です SndBuf fn:${s} ${String(p)}`, !1);
992
+ E.errScript(`ロード失敗です SndBuf fn:${s} ${String(p)}`, !1);
993
993
  return;
994
994
  }
995
995
  x && (this.#e.addSnd(x), u !== 0 && (x.filters = [new B.StereoFilter(u)]), e.fnc?.());
@@ -998,27 +998,27 @@ class f {
998
998
  };
999
999
  let w = "";
1000
1000
  if (0 < o || i < f.MAX_END_MS) {
1001
- w = `${s};${o};${i};${r}`;
1001
+ w = `${s};${String(o)};${String(i)};${String(r)}`;
1002
1002
  const p = (d.sprites ??= {})[w] = {
1003
1003
  start: o / 1e3,
1004
1004
  end: i / 1e3
1005
1005
  };
1006
1006
  d.preload = !0;
1007
1007
  const x = d.loaded;
1008
- d.loaded = (C, E) => {
1008
+ d.loaded = (C, S) => {
1009
1009
  if (this.#e.stt.isDestroy) return;
1010
- x(C, E);
1011
- const I = E, M = I.duration;
1012
- p.end < 0 && (p.end += M, I.removeSprites(w), I.addSprites(w, p)), p.end <= p.start && S.errScript(`[playse] end_ms:${i}(${p.end * 1e3}) >= start_ms:${o} は異常値です`), p.end * 1e3 <= r && S.errScript(`[playse] end_ms:${i}(${p.end * 1e3}) <= ret_ms:${r} は異常値です`), M <= p.start && S.errScript(`[playse] 音声ファイル再生時間:${M * 1e3} <= start_ms:${o} は異常値です`), i !== f.MAX_END_MS && M <= p.end && S.errScript(`[playse] 音声ファイル再生時間:${M * 1e3} <= end_ms:${i} は異常値です`), I.play(w, (re) => d.complete?.(re));
1010
+ x(C, S);
1011
+ const I = S, M = I.duration;
1012
+ p.end < 0 && (p.end += M, I.removeSprites(w), I.addSprites(w, p)), p.end <= p.start && E.errScript(`[playse] end_ms:${String(i)}(${String(p.end * 1e3)}) >= start_ms:${String(o)} は異常値です`), p.end * 1e3 <= r && E.errScript(`[playse] end_ms:${String(i)}(${String(p.end * 1e3)}) <= ret_ms:${String(r)} は異常値です`), M <= p.start && E.errScript(`[playse] 音声ファイル再生時間:${String(M * 1e3)} <= start_ms:${String(o)} は異常値です`), i !== f.MAX_END_MS && M <= p.end && E.errScript(`[playse] 音声ファイル再生時間:${String(M * 1e3)} <= end_ms:${String(i)} は異常値です`), I.play(w, (re) => d.complete?.(re));
1013
1013
  };
1014
1014
  } else d.autoPlay = !0;
1015
1015
  if (y ? r !== 0 && (d.loop = !1, d.complete = (p) => {
1016
- const x = p.duration, C = r / 1e3, E = i / 1e3;
1017
- x <= C && S.errScript(`[playse] 音声ファイル再生時間:${x * 1e3} <= ret_ms:${r} は異常値です`), p.play({
1016
+ const x = p.duration, C = r / 1e3, S = i / 1e3;
1017
+ x <= C && E.errScript(`[playse] 音声ファイル再生時間:${String(x * 1e3)} <= ret_ms:${String(r)} は異常値です`), p.play({
1018
1018
  // 一周目はループなし、なのでキャッシュされてる
1019
1019
  ...d,
1020
1020
  start: C,
1021
- end: E < 0 ? E + x : E,
1021
+ end: S < 0 ? S + x : S,
1022
1022
  // 負の値は末尾から
1023
1023
  // speed, // 重複
1024
1024
  loop: !0,
@@ -1048,15 +1048,15 @@ class f {
1048
1048
  const p = this.#e.procID + `loaded buf:${t} fn:${s}`;
1049
1049
  L.beginProc(p);
1050
1050
  const x = d.loaded;
1051
- d.loaded = (C, E) => {
1052
- x(C, E), L.endProc(p);
1051
+ d.loaded = (C, S) => {
1052
+ x(C, S), L.endProc(p);
1053
1053
  };
1054
1054
  }
1055
1055
  this.#n(s, d);
1056
1056
  }
1057
1057
  static #t = {};
1058
1058
  static init(e, t, s, o, i) {
1059
- f.#t = {}, J = e, c = t, S = s, Z = o, H = i;
1059
+ f.#t = {}, J = e, c = t, E = s, Z = o, H = i;
1060
1060
  }
1061
1061
  static setEvtMng(e) {
1062
1062
  U = e;
@@ -1091,7 +1091,7 @@ class f {
1091
1091
  new le().add({ name: e, url: s, xhrType: O.XHR_RESPONSE_TYPE.BUFFER }).use((o, i) => {
1092
1092
  Z.decAB(o.data).then((r) => {
1093
1093
  o.data = r;
1094
- }).catch((r) => S.errScript(`Sound ロード失敗ですc fn:${o.name} ${r}`, !1)).finally(() => i());
1094
+ }).catch((r) => E.errScript(`Sound ロード失敗ですc fn:${o.name} ${String(r)}`, !1)).finally(() => i());
1095
1095
  }).load((o, i) => {
1096
1096
  t.source = i[e]?.data, N.from(t);
1097
1097
  });
@@ -1115,7 +1115,7 @@ function W({ loop: n }, e) {
1115
1115
  const t = "const.sn.sound." + e + ".";
1116
1116
  c.setVal_Nochk("tmp", t + "playing", !1), c.flush();
1117
1117
  }
1118
- class Se {
1118
+ class Ee {
1119
1119
  constructor(e) {
1120
1120
  this.si = e;
1121
1121
  }