@famibee/skynovel 1.23.0 → 1.24.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 +46 -0
- package/app.js +105 -121
- package/core/lib/sn/Config.d.ts.map +1 -1
- package/core/lib/sn/Layer.d.ts.map +1 -1
- package/core/lib/sn/PropParser.d.ts.map +1 -1
- package/core/lib/sn/TxtLayer.d.ts +1 -35
- package/core/lib/sn/TxtLayer.d.ts.map +1 -1
- package/core/lib/sn/TxtStage.d.ts +6 -6
- package/core/lib/sn/TxtStage.d.ts.map +1 -1
- package/package.json +4 -4
- package/web.js +105 -121
package/web.js
CHANGED
|
@@ -68823,14 +68823,7 @@ class Config {
|
|
|
68823
68823
|
this.oCfg.book = { ...this.oCfg.book, ...oCfg.book };
|
|
68824
68824
|
this.oCfg.log.max_len = oCfg.log?.max_len?.max_len ?? this.oCfg.log.max_len;
|
|
68825
68825
|
this.oCfg.init = { ...this.oCfg.init, ...oCfg.init };
|
|
68826
|
-
|
|
68827
|
-
for (const n in this.oCfg.init) {
|
|
68828
|
-
const v = String(this.oCfg.init[n]);
|
|
68829
|
-
if (n === 'bg_color')
|
|
68830
|
-
this.oCfg.init[n] = (0, CmnLib_1.parseColor)(v);
|
|
68831
|
-
else
|
|
68832
|
-
this.oCfg.init[n] = parseInt(v.slice(1), 16);
|
|
68833
|
-
}
|
|
68826
|
+
this.oCfg.init.bg_color = (0, CmnLib_1.parseColor)(String(this.oCfg.init.bg_color));
|
|
68834
68827
|
this.oCfg.debug = { ...this.oCfg.debug, ...oCfg.debug };
|
|
68835
68828
|
CmnLib_1.CmnLib.debugLog = this.oCfg.debug.debugLog;
|
|
68836
68829
|
this.oCfg.debuger_token = oCfg.debuger_token;
|
|
@@ -69602,7 +69595,7 @@ class TxtLayDesignCast extends DesignCast {
|
|
|
69602
69595
|
};
|
|
69603
69596
|
}
|
|
69604
69597
|
getRect() {
|
|
69605
|
-
const it = this.ts.
|
|
69598
|
+
const it = this.ts.infTL;
|
|
69606
69599
|
return new pixi_js_1.Rectangle(this.spLay.x, this.spLay.y, it.$width, it.$height);
|
|
69607
69600
|
}
|
|
69608
69601
|
cnvPosArg(left, top) { return { left, top }; }
|
|
@@ -69630,12 +69623,12 @@ class TxtLayPadDesignCast extends DesignCast {
|
|
|
69630
69623
|
this.rotatable = false;
|
|
69631
69624
|
}
|
|
69632
69625
|
getRect() {
|
|
69633
|
-
const it = this.ts.
|
|
69626
|
+
const it = this.ts.infTL;
|
|
69634
69627
|
return new pixi_js_1.Rectangle(it.pad_left, it.pad_top, it.$width - it.pad_left - it.pad_right, it.$height - it.pad_top - it.pad_bottom);
|
|
69635
69628
|
}
|
|
69636
69629
|
cnvPosArg(pl, pt) { return { pl, pt }; }
|
|
69637
69630
|
cnvSizeArg(w, h) {
|
|
69638
|
-
const it = this.ts.
|
|
69631
|
+
const it = this.ts.infTL;
|
|
69639
69632
|
return {
|
|
69640
69633
|
pr: it.$width - it.pad_left - w,
|
|
69641
69634
|
pb: it.$height - it.pad_top - h,
|
|
@@ -69646,7 +69639,7 @@ class TxtLayPadDesignCast extends DesignCast {
|
|
|
69646
69639
|
this.ts.lay({ ...this.cnvSizeArg(w, h), ':redraw': true });
|
|
69647
69640
|
}
|
|
69648
69641
|
setOther(hPrm) {
|
|
69649
|
-
const it = this.ts.
|
|
69642
|
+
const it = this.ts.infTL;
|
|
69650
69643
|
if ('pl' in hPrm || 'pt' in hPrm) {
|
|
69651
69644
|
this.setPos(this.rect.x = parseFloat(DesignCast.prpPrs.getValAmpersand(hPrm.pl?.val ?? `${it.pad_left}`)), this.rect.y = parseFloat(DesignCast.prpPrs.getValAmpersand(hPrm.pt?.val ?? `${it.pad_top}`)));
|
|
69652
69645
|
this.cvsResize();
|
|
@@ -69674,7 +69667,7 @@ exports.TxtLayPadDesignCast = TxtLayPadDesignCast;
|
|
|
69674
69667
|
_TxtLayPadDesignCast_instances = new WeakSet(), _TxtLayPadDesignCast_procHint = function _TxtLayPadDesignCast_procHint(left, top, dx, dy) {
|
|
69675
69668
|
const x = this.rect.x, y = this.rect.y;
|
|
69676
69669
|
const w = this.rect.width, h = this.rect.height;
|
|
69677
|
-
const it = this.ts.
|
|
69670
|
+
const it = this.ts.infTL;
|
|
69678
69671
|
const pl = (0, CmnLib_1.int)(x + dx / CmnLib_1.CmnLib.cvsScale);
|
|
69679
69672
|
const pt = (0, CmnLib_1.int)(y + dy / CmnLib_1.CmnLib.cvsScale);
|
|
69680
69673
|
const pr = (0, CmnLib_1.int)(it.$width - pl - w);
|
|
@@ -72825,14 +72818,14 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
72825
72818
|
const txt = hArg.text;
|
|
72826
72819
|
if (!txt)
|
|
72827
72820
|
throw 'textは必須です';
|
|
72828
|
-
let wait = (0, CmnLib_1.argChk_Num)(hArg, 'wait', -1);
|
|
72829
|
-
if (wait > 0 && this.val.getVal('tmp:sn.skip.enabled'))
|
|
72830
|
-
wait = 0;
|
|
72831
|
-
hArg.wait = wait;
|
|
72832
72821
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
72833
72822
|
delete hArg.text;
|
|
72834
|
-
if (wait
|
|
72835
|
-
|
|
72823
|
+
if ('wait' in hArg) {
|
|
72824
|
+
(0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
|
|
72825
|
+
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
72826
|
+
hArg.wait = 0;
|
|
72827
|
+
}
|
|
72828
|
+
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
|
|
72836
72829
|
const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
|
|
72837
72830
|
const doRecLog = this.val.doRecLog();
|
|
72838
72831
|
if (!record)
|
|
@@ -72840,8 +72833,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
72840
72833
|
tl.tagCh(txt.replaceAll('[r]', '\n'));
|
|
72841
72834
|
if (!record)
|
|
72842
72835
|
this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
|
|
72843
|
-
|
|
72844
|
-
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
|
|
72836
|
+
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
|
|
72845
72837
|
return false;
|
|
72846
72838
|
}, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
|
|
72847
72839
|
const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
|
|
@@ -73389,6 +73381,7 @@ class PropParser {
|
|
|
73389
73381
|
'ceil': a => Math.ceil(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
|
|
73390
73382
|
'floor': a => Math.floor(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
|
|
73391
73383
|
'round': a => Math.round(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
|
|
73384
|
+
'isNaN': a => isNaN(Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift()))),
|
|
73392
73385
|
'<<': a => Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())) <<
|
|
73393
73386
|
Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())),
|
|
73394
73387
|
'>>': a => Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())) >>
|
|
@@ -75978,7 +75971,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
75978
75971
|
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");
|
|
75979
75972
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
75980
75973
|
};
|
|
75981
|
-
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc,
|
|
75974
|
+
var _TxtLayer_instances, _a, _TxtLayer_cfg, _TxtLayer_val, _TxtLayer_recText, _TxtLayer_isPageFore, _TxtLayer_ch_in_style, _TxtLayer_ch_out_style, _TxtLayer_main, _TxtLayer_evtMng, _TxtLayer_doAutoWc, _TxtLayer_hAutoWc, _TxtLayer_autowc, _TxtLayer_b_color, _TxtLayer_b_alpha, _TxtLayer_b_alpha_isfixed, _TxtLayer_b_do, _TxtLayer_b_pic, _TxtLayer_txs, _TxtLayer_rbSpl, _TxtLayer_cntBtn, _TxtLayer_set_ch_in, _TxtLayer_$ch_in_style, _TxtLayer_ch_in_join, _TxtLayer_set_ch_out, _TxtLayer_$ch_out_style, _TxtLayer_drawBack, _TxtLayer_setFfs, _TxtLayer_ffs, _TxtLayer_fncFFSStyle, _TxtLayer_fncFFSSpan, _TxtLayer_strNoFFS, _TxtLayer_regNoFFS, _TxtLayer_ruby_pd, _TxtLayer_r_align, _TxtLayer_mkStyle_r_align4ff, _TxtLayer_needGoTxt, _TxtLayer_putCh, _TxtLayer_tagCh_sub, _TxtLayer_cumDelay, _TxtLayer_firstCh, _TxtLayer_aSpan, _TxtLayer_aSpan_bk, _TxtLayer_aSpan_link, _TxtLayer_hSpanBk, _TxtLayer_beginSpan, _TxtLayer_autoCloseSpan, _TxtLayer_page_text;
|
|
75982
75975
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75983
75976
|
exports.TxtLayer = void 0;
|
|
75984
75977
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -75994,21 +75987,12 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
75994
75987
|
constructor() {
|
|
75995
75988
|
super();
|
|
75996
75989
|
_TxtLayer_instances.add(this);
|
|
75997
|
-
_TxtLayer_infTL.set(this, {
|
|
75998
|
-
fontsize: 24,
|
|
75999
|
-
$width: 0,
|
|
76000
|
-
$height: 0,
|
|
76001
|
-
pad_left: 0,
|
|
76002
|
-
pad_right: 0,
|
|
76003
|
-
pad_top: 0,
|
|
76004
|
-
pad_bottom: 0,
|
|
76005
|
-
});
|
|
76006
75990
|
_TxtLayer_b_color.set(this, 0x000000);
|
|
76007
75991
|
_TxtLayer_b_alpha.set(this, 0);
|
|
76008
75992
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
76009
75993
|
_TxtLayer_b_do.set(this, null);
|
|
76010
75994
|
_TxtLayer_b_pic.set(this, '');
|
|
76011
|
-
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(
|
|
75995
|
+
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
76012
75996
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
76013
75997
|
_TxtLayer_cntBtn.set(this, new pixi_js_1.Container);
|
|
76014
75998
|
_TxtLayer_$ch_in_style.set(this, '');
|
|
@@ -76229,43 +76213,32 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
76229
76213
|
if (isSkip)
|
|
76230
76214
|
__classPrivateFieldSet(this, _TxtLayer_cumDelay, 0, "f");
|
|
76231
76215
|
const rs = this.mkStyle_r_align(tx, rb, __classPrivateFieldGet(this, _TxtLayer_r_align, "f"));
|
|
76216
|
+
const da = ` data-add='{"ch_in_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}", "ch_out_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_out_style, "f")}"}'`;
|
|
76217
|
+
const st = `<span data-tcy='${id_tcy}' style='
|
|
76218
|
+
text-combine-upright: all;
|
|
76219
|
+
-webkit-text-combine: horizontal;
|
|
76220
|
+
${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
76232
76221
|
add_htm = rb
|
|
76233
76222
|
? (__classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")
|
|
76234
|
-
?
|
|
76235
|
-
|
|
76236
|
-
|
|
76237
|
-
|
|
76238
|
-
|
|
76239
|
-
|
|
76240
|
-
: (`<span class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}' style='animation-delay: ${__classPrivateFieldGet(this, _TxtLayer_cumDelay, "f")}ms;'>`
|
|
76241
|
-
+ `<ruby><span data-tcy='${id_tcy}' style='
|
|
76242
|
-
text-combine-upright: all;
|
|
76243
|
-
-webkit-text-combine: horizontal;
|
|
76244
|
-
${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}
|
|
76245
|
-
' data-add='{"ch_in_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}", "ch_out_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_out_style, "f")}"}'>${tx}</span>`
|
|
76246
|
-
+ `<rt${rs}>${rb}</rt></ruby>`
|
|
76247
|
-
+ `</span>`))
|
|
76223
|
+
? `<ruby>${st}'${da} data-cmd='linkrsv'>${tx}</span>
|
|
76224
|
+
<rt${rs}>${rb}</rt></ruby>`
|
|
76225
|
+
: `<span class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}' style='animation-delay: ${__classPrivateFieldGet(this, _TxtLayer_cumDelay, "f")}ms;'>
|
|
76226
|
+
<ruby>${st}'${da}>${tx}</span>
|
|
76227
|
+
<rt${rs}>${rb}</rt></ruby>
|
|
76228
|
+
</span>`)
|
|
76248
76229
|
: (__classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")
|
|
76249
|
-
?
|
|
76250
|
-
|
|
76251
|
-
-webkit-text-combine: horizontal;
|
|
76252
|
-
${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}
|
|
76253
|
-
' data-add='{"ch_in_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}", "ch_out_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_out_style, "f")}"}' data-cmd='linkrsv'>${tx}</span>`)
|
|
76254
|
-
: `<span data-tcy='${id_tcy}' style='
|
|
76255
|
-
text-combine-upright: all;
|
|
76256
|
-
-webkit-text-combine: horizontal;
|
|
76230
|
+
? `${st}'${da} data-cmd='linkrsv'>${tx}</span>`
|
|
76231
|
+
: `${st}
|
|
76257
76232
|
animation-delay: ${__classPrivateFieldGet(this, _TxtLayer_cumDelay, "f")}ms;
|
|
76258
76233
|
height: 1em;
|
|
76259
|
-
|
|
76260
|
-
' class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}' data-add='{"ch_in_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}", "ch_out_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_out_style, "f")}"}'>${tx}</span>`);
|
|
76234
|
+
' class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}'${da}>${tx}</span>`);
|
|
76261
76235
|
if (__classPrivateFieldGet(this, _TxtLayer_ch_in_join, "f"))
|
|
76262
76236
|
__classPrivateFieldSet(this, _TxtLayer_cumDelay, __classPrivateFieldGet(this, _TxtLayer_cumDelay, "f") + ((__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc))
|
|
76263
76237
|
? __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[ch.charAt(0)] ?? 0
|
|
76264
76238
|
: LayerMng_1.LayerMng.msecChWait), "f");
|
|
76265
76239
|
}
|
|
76266
76240
|
break;
|
|
76267
|
-
default:
|
|
76268
|
-
throw `異常な値です putCh(text: ${ch}, ruby: ${ruby})`;
|
|
76241
|
+
default: throw `異常な値です putCh(text: ${ch}, ruby: ${ruby})`;
|
|
76269
76242
|
}
|
|
76270
76243
|
break;
|
|
76271
76244
|
}
|
|
@@ -76424,8 +76397,8 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
76424
76397
|
return __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_drawBack).call(this, hArg, isStop => { if (isStop)
|
|
76425
76398
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_main).resume(); });
|
|
76426
76399
|
}
|
|
76427
|
-
get width() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth
|
|
76428
|
-
get height() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight
|
|
76400
|
+
get width() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth; }
|
|
76401
|
+
get height() { return __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight; }
|
|
76429
76402
|
chgBackAlpha(g_alpha) {
|
|
76430
76403
|
const alpha = __classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")
|
|
76431
76404
|
? __classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")
|
|
@@ -76435,13 +76408,12 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
76435
76408
|
this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f"));
|
|
76436
76409
|
__classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
|
|
76437
76410
|
}
|
|
76438
|
-
|
|
76439
|
-
|
|
76440
|
-
|
|
76441
|
-
|
|
76442
|
-
|
|
76443
|
-
|
|
76444
|
-
this.spLay.addChildAt(grp, 0);
|
|
76411
|
+
this.spLay.addChildAt((__classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f"))
|
|
76412
|
+
.beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"))
|
|
76413
|
+
.lineStyle(undefined)
|
|
76414
|
+
.drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight)
|
|
76415
|
+
.endFill(), 0);
|
|
76416
|
+
__classPrivateFieldGet(this, _TxtLayer_b_do, "f").name = 'back(color)';
|
|
76445
76417
|
}
|
|
76446
76418
|
if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
|
|
76447
76419
|
__classPrivateFieldGet(this, _TxtLayer_b_do, "f").visible = (alpha > 0);
|
|
@@ -76506,6 +76478,8 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
76506
76478
|
this.enabled = hLay.enabled;
|
|
76507
76479
|
__classPrivateFieldSet(this, _TxtLayer_r_align, hLay.r_align, "f");
|
|
76508
76480
|
this.cvsResize();
|
|
76481
|
+
__classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_setFfs).call(this, hLay);
|
|
76482
|
+
__classPrivateFieldGet(this, _TxtLayer_txs, "f").playback(hLay.txs);
|
|
76509
76483
|
__classPrivateFieldSet(this, _TxtLayer_b_alpha, hLay.b_alpha, "f");
|
|
76510
76484
|
__classPrivateFieldSet(this, _TxtLayer_b_alpha_isfixed, hLay.b_alpha_isfixed, "f");
|
|
76511
76485
|
aPrm.push(new Promise(re => {
|
|
@@ -76517,8 +76491,6 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
76517
76491
|
re(); }))
|
|
76518
76492
|
re();
|
|
76519
76493
|
}));
|
|
76520
|
-
__classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_setFfs).call(this, hLay);
|
|
76521
|
-
__classPrivateFieldGet(this, _TxtLayer_txs, "f").playback(hLay.txs);
|
|
76522
76494
|
const aBtn = hLay.btns;
|
|
76523
76495
|
aPrm = aPrm.concat(aBtn.map(v => this.addButton(JSON.parse(v.replaceAll(`'`, '"')))));
|
|
76524
76496
|
}
|
|
@@ -76543,11 +76515,11 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
76543
76515
|
}
|
|
76544
76516
|
dump() {
|
|
76545
76517
|
__classPrivateFieldGet(this, _TxtLayer_putCh, "f").call(this, '', 'gotxt|');
|
|
76546
|
-
return super.dump() + `, "enabled":"${this.enabled}", ${__classPrivateFieldGet(this, _TxtLayer_txs, "f").dump()}, "b_pic":"${__classPrivateFieldGet(this, _TxtLayer_b_pic, "f")}", "b_color":"${__classPrivateFieldGet(this, _TxtLayer_b_color, "f")}", "b_alpha":${__classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")}, "b_alpha_isfixed":"${__classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")}", "
|
|
76518
|
+
return super.dump() + `, "enabled":"${this.enabled}", ${__classPrivateFieldGet(this, _TxtLayer_txs, "f").dump()}, "b_pic":"${__classPrivateFieldGet(this, _TxtLayer_b_pic, "f")}", "b_color":"${__classPrivateFieldGet(this, _TxtLayer_b_color, "f")}", "b_alpha":${__classPrivateFieldGet(this, _TxtLayer_b_alpha, "f")}, "b_alpha_isfixed":"${__classPrivateFieldGet(this, _TxtLayer_b_alpha_isfixed, "f")}", "width":${__classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth}, "height":${__classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight}, "pixi_obj":[${this.spLay.children.map(e => `{"class":"${(e instanceof pixi_js_1.Sprite) ? 'Sprite' : ((e instanceof pixi_js_1.Graphics) ? 'Graphics' : ((e instanceof pixi_js_1.Container) ? 'Container' : '?'))}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(',')}], "button":[${__classPrivateFieldGet(this, _TxtLayer_cntBtn, "f").children.map(d => d.children[0].name ?? '{}').join(',')}]`;
|
|
76547
76519
|
}
|
|
76548
76520
|
}
|
|
76549
76521
|
exports.TxtLayer = TxtLayer;
|
|
76550
|
-
_a = TxtLayer,
|
|
76522
|
+
_a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMap(), _TxtLayer_b_alpha_isfixed = new WeakMap(), _TxtLayer_b_do = new WeakMap(), _TxtLayer_b_pic = new WeakMap(), _TxtLayer_txs = new WeakMap(), _TxtLayer_rbSpl = new WeakMap(), _TxtLayer_cntBtn = new WeakMap(), _TxtLayer_$ch_in_style = new WeakMap(), _TxtLayer_ch_in_join = new WeakMap(), _TxtLayer_$ch_out_style = new WeakMap(), _TxtLayer_ffs = new WeakMap(), _TxtLayer_fncFFSStyle = new WeakMap(), _TxtLayer_fncFFSSpan = new WeakMap(), _TxtLayer_strNoFFS = new WeakMap(), _TxtLayer_regNoFFS = new WeakMap(), _TxtLayer_ruby_pd = new WeakMap(), _TxtLayer_r_align = new WeakMap(), _TxtLayer_needGoTxt = new WeakMap(), _TxtLayer_putCh = new WeakMap(), _TxtLayer_cumDelay = new WeakMap(), _TxtLayer_firstCh = new WeakMap(), _TxtLayer_aSpan = new WeakMap(), _TxtLayer_aSpan_bk = new WeakMap(), _TxtLayer_aSpan_link = new WeakMap(), _TxtLayer_hSpanBk = new WeakMap(), _TxtLayer_page_text = new WeakMap(), _TxtLayer_instances = new WeakSet(), _TxtLayer_ch_in_style = function _TxtLayer_ch_in_style(hArg) {
|
|
76551
76523
|
const o = TxtStage_1.TxtStage.ch_in_style(hArg);
|
|
76552
76524
|
const x = (o.x.charAt(0) === '=') ? `${o.nx * 100}%` : `${o.nx}px`;
|
|
76553
76525
|
const y = (o.y.charAt(0) === '=') ? `${o.ny * 100}%` : `${o.ny}px`;
|
|
@@ -76666,13 +76638,12 @@ _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(
|
|
|
76666
76638
|
__classPrivateFieldGet(this, _TxtLayer_b_do, "f").destroy();
|
|
76667
76639
|
}
|
|
76668
76640
|
__classPrivateFieldSet(this, _TxtLayer_b_pic, '', "f");
|
|
76669
|
-
|
|
76670
|
-
|
|
76671
|
-
|
|
76672
|
-
|
|
76673
|
-
|
|
76674
|
-
|
|
76675
|
-
this.spLay.addChildAt(grp, 0);
|
|
76641
|
+
this.spLay.addChildAt((__classPrivateFieldSet(this, _TxtLayer_b_do, new pixi_js_1.Graphics, "f"))
|
|
76642
|
+
.beginFill(__classPrivateFieldGet(this, _TxtLayer_b_color, "f"))
|
|
76643
|
+
.lineStyle(undefined)
|
|
76644
|
+
.drawRect(0, 0, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getWidth, __classPrivateFieldGet(this, _TxtLayer_txs, "f").getHeight)
|
|
76645
|
+
.endFill(), 0);
|
|
76646
|
+
__classPrivateFieldGet(this, _TxtLayer_b_do, "f").name = 'back(color)';
|
|
76676
76647
|
}
|
|
76677
76648
|
if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
|
|
76678
76649
|
__classPrivateFieldGet(this, _TxtLayer_b_do, "f").visible = (alpha > 0);
|
|
@@ -76749,15 +76720,16 @@ _a = TxtLayer, _TxtLayer_infTL = new WeakMap(), _TxtLayer_b_color = new WeakMap(
|
|
|
76749
76720
|
const rs = this.mkStyle_r_align(ch, ruby, r_align);
|
|
76750
76721
|
if (isSkip)
|
|
76751
76722
|
__classPrivateFieldSet(this, _TxtLayer_cumDelay, 0, "f");
|
|
76723
|
+
const da = ` data-add='{"ch_in_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}", "ch_out_style":"${__classPrivateFieldGet(this, _TxtLayer_$ch_out_style, "f")}"}'`;
|
|
76752
76724
|
add_htm = ruby
|
|
76753
76725
|
? (__classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")
|
|
76754
|
-
? `<ruby style='${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, ch)}'
|
|
76755
|
-
:
|
|
76756
|
-
|
|
76757
|
-
|
|
76726
|
+
? `<ruby style='${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, ch)}'${da} data-cmd='linkrsv'>${ch}<rt${rs}>${ruby}</rt></ruby>`
|
|
76727
|
+
: `<span class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}' style='animation-delay: ${__classPrivateFieldGet(this, _TxtLayer_cumDelay, "f")}ms;${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, ch)}'>
|
|
76728
|
+
<ruby${da}>${ch}<rt${rs}>${ruby}</rt></ruby>
|
|
76729
|
+
</span>`)
|
|
76758
76730
|
: (__classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")
|
|
76759
76731
|
? __classPrivateFieldGet(this, _TxtLayer_fncFFSSpan, "f").call(this, ch)
|
|
76760
|
-
: `<span class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}' style='animation-delay: ${__classPrivateFieldGet(this, _TxtLayer_cumDelay, "f")}ms;${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, ch)}'
|
|
76732
|
+
: `<span class='sn_ch sn_ch_in_${__classPrivateFieldGet(this, _TxtLayer_$ch_in_style, "f")}' style='animation-delay: ${__classPrivateFieldGet(this, _TxtLayer_cumDelay, "f")}ms;${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, ch)}'${da}>${ch}</span>`);
|
|
76761
76733
|
if (__classPrivateFieldGet(this, _TxtLayer_ch_in_join, "f"))
|
|
76762
76734
|
__classPrivateFieldSet(this, _TxtLayer_cumDelay, __classPrivateFieldGet(this, _TxtLayer_cumDelay, "f") + (__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_doAutoWc)
|
|
76763
76735
|
? __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_hAutoWc)[ch.charAt(0)] ?? 0
|
|
@@ -76813,7 +76785,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
76813
76785
|
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");
|
|
76814
76786
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
76815
76787
|
};
|
|
76816
|
-
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm, _TxtStage_rctm, _TxtStage_REGDS, _TxtStage_fncEndChIn, _TxtStage_spWork, _TxtStage_isChInIng, _TxtStage_hChInStyle, _TxtStage_REG_NG_CHSTYLE_NAME_CHR, _TxtStage_hChOutStyle, _TxtStage_cntBreak, _TxtStage_lh_half, _TxtStage_getChRects, _TxtStage_fi_easing, _TxtStage_fo_easing, _TxtStage_clearText, _TxtStage_sss;
|
|
76788
|
+
var _TxtStage_instances, _a, _TxtStage_cfg, _TxtStage_cvs, _TxtStage_evtMng, _TxtStage_htmTxt, _TxtStage_cntTxt, _TxtStage_grpDbgMasume, _TxtStage_idc, _TxtStage_idcCh, _TxtStage_infTL, _TxtStage_lay_sub, _TxtStage_left, _TxtStage_isTategaki, _TxtStage_padTx4x, _TxtStage_padTx4y, _TxtStage_hWarning, _TxtStage_htm2tx, _TxtStage_ch_filter, _TxtStage_aSpTw, _TxtStage_aRect, _TxtStage_lenHtmTxt, _TxtStage_reg行頭禁則, _TxtStage_reg行末禁則, _TxtStage_reg分割禁止, _TxtStage_beforeHTMLElm, _TxtStage_rctm, _TxtStage_REGDS, _TxtStage_fncEndChIn, _TxtStage_spWork, _TxtStage_isChInIng, _TxtStage_hChInStyle, _TxtStage_REG_NG_CHSTYLE_NAME_CHR, _TxtStage_hChOutStyle, _TxtStage_cntBreak, _TxtStage_lh_half, _TxtStage_getChRects, _TxtStage_fi_easing, _TxtStage_fo_easing, _TxtStage_clearText, _TxtStage_sss;
|
|
76817
76789
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76818
76790
|
exports.TxtStage = void 0;
|
|
76819
76791
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -76826,9 +76798,8 @@ const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/
|
|
|
76826
76798
|
;
|
|
76827
76799
|
;
|
|
76828
76800
|
class TxtStage extends pixi_js_1.Container {
|
|
76829
|
-
constructor(
|
|
76801
|
+
constructor(spLay, canFocus) {
|
|
76830
76802
|
super();
|
|
76831
|
-
this.infTL = infTL;
|
|
76832
76803
|
this.spLay = spLay;
|
|
76833
76804
|
this.canFocus = canFocus;
|
|
76834
76805
|
_TxtStage_instances.add(this);
|
|
@@ -76837,6 +76808,15 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76837
76808
|
_TxtStage_grpDbgMasume.set(this, new pixi_js_1.Graphics);
|
|
76838
76809
|
_TxtStage_idc.set(this, new DesignCast_1.TxtLayDesignCast(this.spLay, this));
|
|
76839
76810
|
_TxtStage_idcCh.set(this, new DesignCast_1.TxtLayPadDesignCast(this));
|
|
76811
|
+
_TxtStage_infTL.set(this, {
|
|
76812
|
+
fontsize: 24,
|
|
76813
|
+
$width: 0,
|
|
76814
|
+
$height: 0,
|
|
76815
|
+
pad_left: 0,
|
|
76816
|
+
pad_right: 0,
|
|
76817
|
+
pad_top: 0,
|
|
76818
|
+
pad_bottom: 0,
|
|
76819
|
+
});
|
|
76840
76820
|
_TxtStage_left.set(this, 0);
|
|
76841
76821
|
_TxtStage_isTategaki.set(this, false);
|
|
76842
76822
|
_TxtStage_padTx4x.set(this, 0);
|
|
@@ -76886,7 +76866,6 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76886
76866
|
__classPrivateFieldSet(TxtStage, _a, Object.create(null), "f", _TxtStage_hChOutStyle);
|
|
76887
76867
|
__classPrivateFieldSet(TxtStage, _a, new pixi_js_1.Container, "f", _TxtStage_cntBreak);
|
|
76888
76868
|
}
|
|
76889
|
-
getInfTL() { return this.infTL; }
|
|
76890
76869
|
lay(hArg) {
|
|
76891
76870
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
76892
76871
|
if (hArg.style) {
|
|
@@ -76922,7 +76901,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76922
76901
|
__classPrivateFieldGet(this, _TxtStage_idc, "f").sethArg(hArg);
|
|
76923
76902
|
__classPrivateFieldSet(this, _TxtStage_left, this.spLay.position.x
|
|
76924
76903
|
- (CmnLib_1.CmnLib.isSafari && !CmnLib_1.CmnLib.isMobile && __classPrivateFieldGet(this, _TxtStage_isTategaki, "f")
|
|
76925
|
-
? this.
|
|
76904
|
+
? __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right
|
|
76926
76905
|
: 0), "f");
|
|
76927
76906
|
s.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`;
|
|
76928
76907
|
this.cvsResize();
|
|
@@ -76946,13 +76925,14 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76946
76925
|
__classPrivateFieldGet(this, _TxtStage_idcCh, "f").cvsResize();
|
|
76947
76926
|
}
|
|
76948
76927
|
get tategaki() { return __classPrivateFieldGet(this, _TxtStage_isTategaki, "f"); }
|
|
76949
|
-
|
|
76950
|
-
|
|
76928
|
+
get infTL() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f"); }
|
|
76929
|
+
get getWidth() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width; }
|
|
76930
|
+
get getHeight() { return __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height; }
|
|
76951
76931
|
setSize(width, height) {
|
|
76952
|
-
this
|
|
76953
|
-
this
|
|
76954
|
-
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.width = this
|
|
76955
|
-
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = this
|
|
76932
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width = width;
|
|
76933
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height = height;
|
|
76934
|
+
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.width = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width + 'px';
|
|
76935
|
+
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height + 'px';
|
|
76956
76936
|
}
|
|
76957
76937
|
goTxt(aSpan) {
|
|
76958
76938
|
var _b;
|
|
@@ -76961,15 +76941,15 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76961
76941
|
if (begin === 0) {
|
|
76962
76942
|
if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cfg).oCfg.debug.masume) {
|
|
76963
76943
|
if (CmnLib_1.CmnLib.debugLog)
|
|
76964
|
-
console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${this.
|
|
76944
|
+
console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left} pr:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right} pt:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top} pb:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom} w:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width} h:${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height}`);
|
|
76965
76945
|
__classPrivateFieldGet(this, _TxtStage_grpDbgMasume, "f").clear()
|
|
76966
76946
|
.beginFill(0x33FF00, 0.2)
|
|
76967
76947
|
.lineStyle(1, 0x33FF00, 1)
|
|
76968
|
-
.drawRect(-this.
|
|
76948
|
+
.drawRect(-__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, -__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height)
|
|
76969
76949
|
.endFill()
|
|
76970
76950
|
.beginFill(0x0033FF, 0.2)
|
|
76971
76951
|
.lineStyle(2, 0x0033FF, 1)
|
|
76972
|
-
.drawRect(0, 0, this
|
|
76952
|
+
.drawRect(0, 0, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom)
|
|
76973
76953
|
.endFill();
|
|
76974
76954
|
}
|
|
76975
76955
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").innerHTML = [...aSpan].join('');
|
|
@@ -77007,11 +76987,12 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77007
76987
|
if (he.elm.outerHTML.slice(0, 3) === '<rt')
|
|
77008
76988
|
continue;
|
|
77009
76989
|
const xy = this.tategaki ? he.rect.y : he.rect.x;
|
|
77010
|
-
if (sl_xy
|
|
76990
|
+
if (sl_xy <= xy) {
|
|
77011
76991
|
sl_xy = xy;
|
|
77012
76992
|
continue;
|
|
77013
76993
|
}
|
|
77014
76994
|
sl_xy = -Infinity;
|
|
76995
|
+
const oldJ = j;
|
|
77015
76996
|
if (__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_reg分割禁止).test(e[j - 1].ch)
|
|
77016
76997
|
&& (e[j - 1].ch === he.ch)) {
|
|
77017
76998
|
if (CmnLib_1.CmnLib.debugLog)
|
|
@@ -77047,6 +77028,8 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77047
77028
|
else
|
|
77048
77029
|
pal.parentElement.insertBefore(br, pal);
|
|
77049
77030
|
j += 2;
|
|
77031
|
+
if (j < oldJ)
|
|
77032
|
+
j = oldJ;
|
|
77050
77033
|
len = -1;
|
|
77051
77034
|
break;
|
|
77052
77035
|
}
|
|
@@ -77066,8 +77049,8 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77066
77049
|
: () => { };
|
|
77067
77050
|
const ease = CmnTween_1.CmnTween.ease(__classPrivateFieldGet(this, _TxtStage_fi_easing, "f"));
|
|
77068
77051
|
const bcr = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").getBoundingClientRect();
|
|
77069
|
-
const sx = bcr.left + globalThis.scrollX + this.
|
|
77070
|
-
const sy = bcr.top + globalThis.scrollY + this.
|
|
77052
|
+
const sx = bcr.left + globalThis.scrollX + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left;
|
|
77053
|
+
const sy = bcr.top + globalThis.scrollY + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top;
|
|
77071
77054
|
for (let i = begin; i < len; ++i) {
|
|
77072
77055
|
const v = __classPrivateFieldGet(this, _TxtStage_aRect, "f")[i];
|
|
77073
77056
|
const rct = v.rect;
|
|
@@ -77248,7 +77231,8 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77248
77231
|
}
|
|
77249
77232
|
reNew() {
|
|
77250
77233
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_clearText).call(this);
|
|
77251
|
-
const to = new TxtStage(this.
|
|
77234
|
+
const to = new TxtStage(this.spLay, () => this.canFocus());
|
|
77235
|
+
__classPrivateFieldSet(to, _TxtStage_infTL, __classPrivateFieldGet(this, _TxtStage_infTL, "f"), "f");
|
|
77252
77236
|
__classPrivateFieldGet(to, _TxtStage_htmTxt, "f").style.cssText = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText;
|
|
77253
77237
|
__classPrivateFieldSet(to, _TxtStage_left, __classPrivateFieldGet(this, _TxtStage_left, "f"), "f");
|
|
77254
77238
|
to.name = this.name;
|
|
@@ -77262,7 +77246,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77262
77246
|
}
|
|
77263
77247
|
record() {
|
|
77264
77248
|
return {
|
|
77265
|
-
infTL: this
|
|
77249
|
+
infTL: __classPrivateFieldGet(this, _TxtStage_infTL, "f"),
|
|
77266
77250
|
cssText: __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText,
|
|
77267
77251
|
left: __classPrivateFieldGet(this, _TxtStage_left, "f"),
|
|
77268
77252
|
idc_hArg: __classPrivateFieldGet(this, _TxtStage_idc, "f").gethArg(),
|
|
@@ -77273,8 +77257,8 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77273
77257
|
}
|
|
77274
77258
|
;
|
|
77275
77259
|
playback(hLay) {
|
|
77276
|
-
this
|
|
77277
|
-
this.position.set(this.
|
|
77260
|
+
__classPrivateFieldSet(this, _TxtStage_infTL, hLay.infTL, "f");
|
|
77261
|
+
this.position.set(__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top);
|
|
77278
77262
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.cssText = hLay.cssText;
|
|
77279
77263
|
__classPrivateFieldSet(this, _TxtStage_left, hLay.left, "f");
|
|
77280
77264
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_lay_sub).call(this);
|
|
@@ -77287,13 +77271,13 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77287
77271
|
__classPrivateFieldGet(this, _TxtStage_instances, "m", _TxtStage_htm2tx).call(this, tx => {
|
|
77288
77272
|
__classPrivateFieldSet(this, _TxtStage_sss, new pixi_js_1.Sprite(tx), "f");
|
|
77289
77273
|
if (__classPrivateFieldGet(this, _TxtStage_isTategaki, "f")) {
|
|
77290
|
-
__classPrivateFieldGet(this, _TxtStage_sss, "f").x += CmnLib_1.CmnLib.stageW - (__classPrivateFieldGet(this, _TxtStage_left, "f") + this
|
|
77274
|
+
__classPrivateFieldGet(this, _TxtStage_sss, "f").x += CmnLib_1.CmnLib.stageW - (__classPrivateFieldGet(this, _TxtStage_left, "f") + __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width)
|
|
77291
77275
|
- ((CmnLib_1.CmnLib.isSafari && !CmnLib_1.CmnLib.isMobile)
|
|
77292
77276
|
? 0
|
|
77293
|
-
: this.
|
|
77277
|
+
: __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left + __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right);
|
|
77294
77278
|
}
|
|
77295
77279
|
__classPrivateFieldGet(this, _TxtStage_sss, "f").y -= __classPrivateFieldGet(this, _TxtStage_padTx4y, "f");
|
|
77296
|
-
__classPrivateFieldGet(this, _TxtStage_sss, "f").texture.frame = new pixi_js_1.Rectangle(0, 0, this
|
|
77280
|
+
__classPrivateFieldGet(this, _TxtStage_sss, "f").texture.frame = new pixi_js_1.Rectangle(0, 0, __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_left, "f"), __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height);
|
|
77297
77281
|
__classPrivateFieldGet(this, _TxtStage_cntTxt, "f").addChild(__classPrivateFieldGet(this, _TxtStage_sss, "f"));
|
|
77298
77282
|
rnd.render(__classPrivateFieldGet(this, _TxtStage_sss, "f"), undefined, false);
|
|
77299
77283
|
re();
|
|
@@ -77331,17 +77315,17 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
77331
77315
|
}
|
|
77332
77316
|
}
|
|
77333
77317
|
exports.TxtStage = TxtStage;
|
|
77334
|
-
_a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(), _TxtStage_grpDbgMasume = new WeakMap(), _TxtStage_idc = new WeakMap(), _TxtStage_idcCh = new WeakMap(), _TxtStage_left = new WeakMap(), _TxtStage_isTategaki = new WeakMap(), _TxtStage_padTx4x = new WeakMap(), _TxtStage_padTx4y = new WeakMap(), _TxtStage_ch_filter = new WeakMap(), _TxtStage_aSpTw = new WeakMap(), _TxtStage_aRect = new WeakMap(), _TxtStage_lenHtmTxt = new WeakMap(), _TxtStage_beforeHTMLElm = new WeakMap(), _TxtStage_rctm = new WeakMap(), _TxtStage_REGDS = new WeakMap(), _TxtStage_fncEndChIn = new WeakMap(), _TxtStage_isChInIng = new WeakMap(), _TxtStage_lh_half = new WeakMap(), _TxtStage_fi_easing = new WeakMap(), _TxtStage_fo_easing = new WeakMap(), _TxtStage_sss = new WeakMap(), _TxtStage_instances = new WeakSet(), _TxtStage_lay_sub = function _TxtStage_lay_sub() {
|
|
77318
|
+
_a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(), _TxtStage_grpDbgMasume = new WeakMap(), _TxtStage_idc = new WeakMap(), _TxtStage_idcCh = new WeakMap(), _TxtStage_infTL = new WeakMap(), _TxtStage_left = new WeakMap(), _TxtStage_isTategaki = new WeakMap(), _TxtStage_padTx4x = new WeakMap(), _TxtStage_padTx4y = new WeakMap(), _TxtStage_ch_filter = new WeakMap(), _TxtStage_aSpTw = new WeakMap(), _TxtStage_aRect = new WeakMap(), _TxtStage_lenHtmTxt = new WeakMap(), _TxtStage_beforeHTMLElm = new WeakMap(), _TxtStage_rctm = new WeakMap(), _TxtStage_REGDS = new WeakMap(), _TxtStage_fncEndChIn = new WeakMap(), _TxtStage_isChInIng = new WeakMap(), _TxtStage_lh_half = new WeakMap(), _TxtStage_fi_easing = new WeakMap(), _TxtStage_fo_easing = new WeakMap(), _TxtStage_sss = new WeakMap(), _TxtStage_instances = new WeakSet(), _TxtStage_lay_sub = function _TxtStage_lay_sub() {
|
|
77335
77319
|
const s = __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style;
|
|
77336
77320
|
const fs = parseFloat(s.fontSize || '0');
|
|
77337
|
-
this.
|
|
77338
|
-
this.
|
|
77339
|
-
this.
|
|
77340
|
-
this.
|
|
77341
|
-
this.
|
|
77342
|
-
this
|
|
77343
|
-
this
|
|
77344
|
-
this.position.set(this.
|
|
77321
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").fontsize = fs;
|
|
77322
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left = parseFloat(s.paddingLeft || '0');
|
|
77323
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right = parseFloat(s.paddingRight || '0');
|
|
77324
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top = parseFloat(s.paddingTop || '0');
|
|
77325
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom = parseFloat(s.paddingBottom || '0');
|
|
77326
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width = parseFloat(s.width || '0');
|
|
77327
|
+
__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height = parseFloat(s.height || '0');
|
|
77328
|
+
this.position.set(__classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left, __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top);
|
|
77345
77329
|
__classPrivateFieldSet(this, _TxtStage_isTategaki, (s.writingMode === 'vertical-rl'), "f");
|
|
77346
77330
|
__classPrivateFieldSet(this, _TxtStage_padTx4x, 0, "f");
|
|
77347
77331
|
__classPrivateFieldSet(this, _TxtStage_padTx4y, 0, "f");
|
|
@@ -77553,8 +77537,8 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
77553
77537
|
cln.style.paddingTop = __classPrivateFieldGet(this, _TxtStage_padTx4y, "f") + 'px';
|
|
77554
77538
|
cln.style.left = '0px';
|
|
77555
77539
|
cln.style.top = '0px';
|
|
77556
|
-
cln.style.width = (this
|
|
77557
|
-
cln.style.height = (this
|
|
77540
|
+
cln.style.width = (__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_left - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_right) + 'px';
|
|
77541
|
+
cln.style.height = (__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_top - __classPrivateFieldGet(this, _TxtStage_infTL, "f").pad_bottom) + 'px';
|
|
77558
77542
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").hidden = hidden;
|
|
77559
77543
|
return cln;
|
|
77560
77544
|
})
|
|
@@ -77562,15 +77546,15 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
77562
77546
|
.then(node => {
|
|
77563
77547
|
node.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml');
|
|
77564
77548
|
const img = new Image;
|
|
77565
|
-
img.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${this
|
|
77549
|
+
img.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$width}px" height="${__classPrivateFieldGet(this, _TxtStage_infTL, "f").$height}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(node)
|
|
77566
77550
|
.replaceAll('#', '%23').replaceAll('\n', '%0A')}</foreignObject></svg>`;
|
|
77567
77551
|
return new Promise(resolve => img.onload = () => resolve(img));
|
|
77568
77552
|
})
|
|
77569
77553
|
.then(img => new Promise(resolve => setTimeout(() => resolve(img), 100)))
|
|
77570
77554
|
.then((img) => {
|
|
77571
77555
|
const canvas = document.createElement('canvas');
|
|
77572
|
-
canvas.width = this
|
|
77573
|
-
canvas.height = this
|
|
77556
|
+
canvas.width = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$width;
|
|
77557
|
+
canvas.height = __classPrivateFieldGet(this, _TxtStage_infTL, "f").$height;
|
|
77574
77558
|
canvas.getContext('2d').drawImage(img, 0, 0);
|
|
77575
77559
|
canvas.toBlob(blob => {
|
|
77576
77560
|
if (!blob)
|