@famibee/skynovel 1.27.1 → 1.27.2

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.27.2](https://github.com/famibee/SKYNovel/compare/v1.27.1...v1.27.2) (2022-01-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [r]を挟むと[span]色変更がキャンセルされる件 ([88224d3](https://github.com/famibee/SKYNovel/commit/88224d3f5c59a0d1501fc94b125fdad6e004a3e5))
7
+
8
+ - fix: [r]を挟むと[span]色変更がキャンセルされる件
9
+ - fix: [tcy]で[tcy t='Day 1']と半角を入れると表示が変になる件
10
+ - fix: (問題ないか確認しつつ)Promise.all を Promise.allSettled に
11
+
1
12
  ## [1.27.1](https://github.com/famibee/SKYNovel/compare/v1.27.0...v1.27.1) (2022-01-12)
2
13
 
3
14
 
package/app.js CHANGED
@@ -70216,7 +70216,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70216
70216
  }));
70217
70217
  else
70218
70218
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
70219
- Promise.all(a).then(async () => {
70219
+ Promise.allSettled(a).then(async () => {
70220
70220
  const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
70221
70221
  rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
70222
70222
  await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
@@ -70630,7 +70630,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70630
70630
  hArg.wait = 0;
70631
70631
  else if ('wait' in hArg)
70632
70632
  (0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
70633
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
70634
70633
  const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
70635
70634
  const doRecLog = this.val.doRecLog();
70636
70635
  if (!record)
@@ -70638,7 +70637,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70638
70637
  tl.tagCh(txt.replaceAll('[r]', '\n'));
70639
70638
  if (!record)
70640
70639
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
70641
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
70642
70640
  return false;
70643
70641
  }, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
70644
70642
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
@@ -70722,7 +70720,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70722
70720
  }, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
70723
70721
  if (!hArg.t)
70724
70722
  throw '[tcy] tは必須です';
70725
- hArg.text = '| |《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
70723
+ hArg.text = '| tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
70726
70724
  return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
70727
70725
  }, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
70728
70726
  console.group('🥟 [dump_lay]');
@@ -70921,7 +70919,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
70921
70919
  }
70922
70920
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
70923
70921
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
70924
- await Promise.all(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
70922
+ await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
70925
70923
  __classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
70926
70924
  __classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
70927
70925
  __classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
@@ -73387,7 +73385,7 @@ class SysApp extends SysNode_1.SysNode {
73387
73385
  const di = await to_app.showMessageBox(mbo);
73388
73386
  if (di.response > 0)
73389
73387
  return;
73390
- await Promise.all(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
73388
+ await Promise.allSettled(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
73391
73389
  }
73392
73390
  }
73393
73391
  else {
@@ -75427,7 +75425,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
75427
75425
  };
75428
75426
  function resolveAll() {
75429
75427
  return readAll()
75430
- .then(webFonts => Promise.all(webFonts.map((webFont) => webFont.resolve())))
75428
+ .then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
75431
75429
  .then(cssStrings => cssStrings.join('\n'));
75432
75430
  }
75433
75431
  function readAll() {
@@ -1 +1 @@
1
- {"version":3,"file":"LayerMng.d.ts","sourceRoot":"","sources":["../../src/sn/LayerMng.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2B,OAAO,EAAsF,MAAM,UAAU,CAAC;AAEhJ,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAQ,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAG9B,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAY,WAAW,EAAsF,MAAM,SAAS,CAAC;AAEpI,MAAM,WAAW,eAAe;IAAG,CAAC,GAAG,EAAG,UAAU,GAAG,IAAI,CAAC;CAAE;AAE9D,MAAM,WAAW,KAAK;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC;A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QAAQ,CAAC,MAAM,EAAE,QAAQ;IAAE,QAAQ,CAAC,SAAS,EAAE,aAAa;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW;gBAAnT,GAAG,EAAE,MAAM,EAAmB,IAAI,EAAE,KAAK,EAAmB,OAAO,EAAE,WAAW,EAAmB,GAAG,EAAE,SAAS,EAAmB,IAAI,EAAE,KAAK,EAAmB,MAAM,EAAE,cAAc,EAAmB,GAAG,EAAE,OAAO,EAAW,MAAM,EAAE,QAAQ,EAAW,SAAS,EAAE,aAAa,EAAW,MAAM,EAAE,WAAW;IA0JhV,OAAO,CAAC,eAAe;IAoCvB,cAAc,OAAQ,MAAM,aAAoC;IAGhE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,SAAM;IAgBtC,SAAS,CAAC,MAAM,EAAE,OAAO;IAMzB,cAAc;IACd,OAAO;IAYP,SAAS;IAgBT,KAAK,aAAW;IAChB,SAAS,aAAW;IACpB,SAAS,aAAW;IACpB,UAAU;IAOV,WAAW;IAwlBX,MAAM,KAAK,UAAU,WAAiC;IACtD,MAAM,KAAK,UAAU,CAAC,CAAC,QAAA,EAA6B;IAkCpD,eAAe,IAAI,IAAI;IAwBvB,IAAI,wBAAwB,IAAI,QAAQ,CAGvC;IACD,IAAI,iBAAiB,IAAI,QAAQ,GAAG,SAAS,CAI5C;IAeD,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,UAAQ;IA8JtC,MAAM,IAAI,GAAG;IAYb,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAK,IAAI,GAAG,IAAI;CAmCnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
package/web.js CHANGED
@@ -71564,7 +71564,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71564
71564
  }));
71565
71565
  else
71566
71566
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
71567
- Promise.all(a).then(async () => {
71567
+ Promise.allSettled(a).then(async () => {
71568
71568
  const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
71569
71569
  rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
71570
71570
  await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
@@ -71978,7 +71978,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71978
71978
  hArg.wait = 0;
71979
71979
  else if ('wait' in hArg)
71980
71980
  (0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
71981
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
71982
71981
  const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
71983
71982
  const doRecLog = this.val.doRecLog();
71984
71983
  if (!record)
@@ -71986,7 +71985,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71986
71985
  tl.tagCh(txt.replaceAll('[r]', '\n'));
71987
71986
  if (!record)
71988
71987
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
71989
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
71990
71988
  return false;
71991
71989
  }, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
71992
71990
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
@@ -72070,7 +72068,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
72070
72068
  }, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
72071
72069
  if (!hArg.t)
72072
72070
  throw '[tcy] tは必須です';
72073
- hArg.text = '| |《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
72071
+ hArg.text = '| tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
72074
72072
  return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
72075
72073
  }, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
72076
72074
  console.group('🥟 [dump_lay]');
@@ -72269,7 +72267,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
72269
72267
  }
72270
72268
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
72271
72269
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
72272
- await Promise.all(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
72270
+ await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
72273
72271
  __classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
72274
72272
  __classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
72275
72273
  __classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
@@ -76648,7 +76646,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76648
76646
  };
76649
76647
  function resolveAll() {
76650
76648
  return readAll()
76651
- .then(webFonts => Promise.all(webFonts.map((webFont) => webFont.resolve())))
76649
+ .then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
76652
76650
  .then(cssStrings => cssStrings.join('\n'));
76653
76651
  }
76654
76652
  function readAll() {