@famibee/skynovel 1.30.1 → 1.30.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/dist/app.js +111 -183
- package/dist/app.js.map +1 -1
- package/dist/sn/TxtLayer.d.ts.map +1 -1
- package/dist/web.js +111 -183
- package/dist/web.js.map +1 -1
- package/package.json +7 -7
package/dist/app.js
CHANGED
|
@@ -49,7 +49,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
49
49
|
__accessCheck(obj, member, "access private method");
|
|
50
50
|
return method;
|
|
51
51
|
};
|
|
52
|
-
var _a2, _b2, _c2, _d, _sesame, _putCh, _REG_RUBY, _REG_CANTC2M, _REGC2M, _regStrC2M, _regStrC2M4not, _hC2M, _REG_TAGARG, _hPrm, _isKomeParam, _parser, _calc, calc_fn, _hFnc, _fncSub_ChkNum, fncSub_ChkNum_fn, _REG_EMBEDVAR, _procEmbedVar, procEmbedVar_fn, _REG_VAL, _getValName_B2D, getValName_B2D_fn, _hScopes, _hSave, _hTmp, _sys2, _data, _hSys, _hAreaKidoku, _callHook, _hProcDbgRes, _set_data_break, set_data_break_fn, _flush, _doRecProc, _copybookmark, copybookmark_fn, _erasebookmark, erasebookmark_fn, _let, let_fn, _let_abs, let_abs_fn, _let_char_at, let_char_at_fn, _let_index_of, let_index_of_fn, _let_length, let_length_fn, _let_replace, let_replace_fn, _let_round, let_round_fn, _let_search, let_search_fn, _let_substr, let_substr_fn, _clearsysvar, clearsysvar_fn, _clearvar, clearvar_fn, _setVal, _hSetEvent, _castAuto, castAuto_fn, _REG_NUMERICLITERAL, _dump_val, _doRecLog, _hValTrg, _runFirst_Bool_hSysVal_true, runFirst_Bool_hSysVal_true_fn, _runFirst_sys_an_tagCh_msecWait, runFirst_sys_an_tagCh_msecWait_fn, _runFirst_sys_an_tagCh_msecWait_Kidoku, runFirst_sys_an_tagCh_msecWait_Kidoku_fn, _runFirst_sys_an_auto_msecPageWait, runFirst_sys_an_auto_msecPageWait_fn, _runFirst_sys_an_auto_msecLineWait, runFirst_sys_an_auto_msecLineWait_fn, _runFirst_Bool_hSaveVal_true, runFirst_Bool_hSaveVal_true_fn, _runFirst_Bool_hTmp_true, runFirst_Bool_hTmp_true_fn, _runFirst_Bool_hTmp_false, runFirst_Bool_hTmp_false_fn, _hEase, _hSndBuf, _hLP, _evtMng2, _volume, volume_fn, _getVol, getVol_fn, _fadeoutbgm, fadeoutbgm_fn, _fadeoutse, fadeoutse_fn, _fadebgm, fadebgm_fn, _fadese, fadese_fn, _playbgm, playbgm_fn, _MAX_END_MS, _playse, playse_fn, _playseSub, playseSub_fn, _initVol, _stop_allse, stop_allse_fn, _stopbgm, stopbgm_fn, _stopse, stopse_fn, _wb, wb_fn, _wf, wf_fn, _stopfadese, stopfadese_fn, _wl, wl_fn, _ws, ws_fn, _xchgbuf, xchgbuf_fn, _addLoopPlay, addLoopPlay_fn, _delLoopPlay, delLoopPlay_fn, _pg, _hBlendmode, _vctEvt, _sp, _procHint, procHint_fn, _sp2, _cfg2, _appPixi2, _evtMng3, _htmTxt, _cntTxt, _grpDbgMasume, _idc2, _idcCh, _infTL, _break_fixed, _break_fixed_left, _break_fixed_top, _lay_sub, lay_sub_fn, _left, _isTategaki, _padTx4x, _padTx4y, _hWarning, _htm2tx, htm2tx_fn, _ch_filter, _aSpTw, _aRect, _lenHtmTxt, _reg\u884C\u982D\u7981\u5247, _reg\u884C\u672B\u7981\u5247, _reg\u5206\u5272\u7981\u6B62, _REGDS, _fncEndChIn, _spWork, spWork_fn, _isChInIng, _hChInStyle, _REG_NG_CHSTYLE_NAME_CHR, _hChOutStyle, _cntBreak, _lh_half, _getChRects, getChRects_fn, _fi_easing, _fo_easing, _clearText, clearText_fn, _sss, _cfg3, _val, _recText, _isPageFore, _ch_in_style, ch_in_style_fn, _ch_out_style, ch_out_style_fn, _main2, _evtMng4, _sys3, _doAutoWc, _hAutoWc, _autowc, autowc_fn, _b_color, _b_alpha, _b_alpha_isfixed, _b_do, _b_pic, _txs, _rbSpl, _cntBtn, _set_ch_in, set_ch_in_fn, _$ch_in_style, _ch_in_join, _set_ch_out, set_ch_out_fn, _$ch_out_style, _drawBack, drawBack_fn, _setFfs, setFfs_fn, _ffs, _fncFFSStyle,
|
|
52
|
+
var _a2, _b2, _c2, _d, _sesame, _putCh, _REG_RUBY, _REG_CANTC2M, _REGC2M, _regStrC2M, _regStrC2M4not, _hC2M, _REG_TAGARG, _hPrm, _isKomeParam, _parser, _calc, calc_fn, _hFnc, _fncSub_ChkNum, fncSub_ChkNum_fn, _REG_EMBEDVAR, _procEmbedVar, procEmbedVar_fn, _REG_VAL, _getValName_B2D, getValName_B2D_fn, _hScopes, _hSave, _hTmp, _sys2, _data, _hSys, _hAreaKidoku, _callHook, _hProcDbgRes, _set_data_break, set_data_break_fn, _flush, _doRecProc, _copybookmark, copybookmark_fn, _erasebookmark, erasebookmark_fn, _let, let_fn, _let_abs, let_abs_fn, _let_char_at, let_char_at_fn, _let_index_of, let_index_of_fn, _let_length, let_length_fn, _let_replace, let_replace_fn, _let_round, let_round_fn, _let_search, let_search_fn, _let_substr, let_substr_fn, _clearsysvar, clearsysvar_fn, _clearvar, clearvar_fn, _setVal, _hSetEvent, _castAuto, castAuto_fn, _REG_NUMERICLITERAL, _dump_val, _doRecLog, _hValTrg, _runFirst_Bool_hSysVal_true, runFirst_Bool_hSysVal_true_fn, _runFirst_sys_an_tagCh_msecWait, runFirst_sys_an_tagCh_msecWait_fn, _runFirst_sys_an_tagCh_msecWait_Kidoku, runFirst_sys_an_tagCh_msecWait_Kidoku_fn, _runFirst_sys_an_auto_msecPageWait, runFirst_sys_an_auto_msecPageWait_fn, _runFirst_sys_an_auto_msecLineWait, runFirst_sys_an_auto_msecLineWait_fn, _runFirst_Bool_hSaveVal_true, runFirst_Bool_hSaveVal_true_fn, _runFirst_Bool_hTmp_true, runFirst_Bool_hTmp_true_fn, _runFirst_Bool_hTmp_false, runFirst_Bool_hTmp_false_fn, _hEase, _hSndBuf, _hLP, _evtMng2, _volume, volume_fn, _getVol, getVol_fn, _fadeoutbgm, fadeoutbgm_fn, _fadeoutse, fadeoutse_fn, _fadebgm, fadebgm_fn, _fadese, fadese_fn, _playbgm, playbgm_fn, _MAX_END_MS, _playse, playse_fn, _playseSub, playseSub_fn, _initVol, _stop_allse, stop_allse_fn, _stopbgm, stopbgm_fn, _stopse, stopse_fn, _wb, wb_fn, _wf, wf_fn, _stopfadese, stopfadese_fn, _wl, wl_fn, _ws, ws_fn, _xchgbuf, xchgbuf_fn, _addLoopPlay, addLoopPlay_fn, _delLoopPlay, delLoopPlay_fn, _pg, _hBlendmode, _vctEvt, _sp, _procHint, procHint_fn, _sp2, _cfg2, _appPixi2, _evtMng3, _htmTxt, _cntTxt, _grpDbgMasume, _idc2, _idcCh, _infTL, _break_fixed, _break_fixed_left, _break_fixed_top, _lay_sub, lay_sub_fn, _left, _isTategaki, _padTx4x, _padTx4y, _hWarning, _htm2tx, htm2tx_fn, _ch_filter, _aSpTw, _aRect, _lenHtmTxt, _reg\u884C\u982D\u7981\u5247, _reg\u884C\u672B\u7981\u5247, _reg\u5206\u5272\u7981\u6B62, _REGDS, _fncEndChIn, _spWork, spWork_fn, _isChInIng, _hChInStyle, _REG_NG_CHSTYLE_NAME_CHR, _hChOutStyle, _cntBreak, _lh_half, _getChRects, getChRects_fn, _fi_easing, _fo_easing, _clearText, clearText_fn, _sss, _cfg3, _val, _recText, _isPageFore, _ch_in_style, ch_in_style_fn, _ch_out_style, ch_out_style_fn, _main2, _evtMng4, _sys3, _doAutoWc, _hAutoWc, _autowc, autowc_fn, _b_color, _b_alpha, _b_alpha_isfixed, _b_do, _b_pic, _txs, _rbSpl, _cntBtn, _set_ch_in, set_ch_in_fn, _$ch_in_style, _ch_in_join, _set_ch_out, set_ch_out_fn, _$ch_out_style, _drawBack, drawBack_fn, _setFfs, setFfs_fn, _ffs, _fncFFSStyle, _strNoFFS, _regNoFFS, _rec, _ruby_pd, _r_align, _mkStyle_r_align4ff, mkStyle_r_align4ff_fn, _needGoTxt, _putCh2, _tagCh_sub, tagCh_sub_fn, _style_delay, style_delay_fn, _cumDelay, _firstCh, _aSpan, _stkASpan, _pushSpan, pushSpan_fn, _popSpan, popSpan_fn, _page_text, _evtMng5, _hIfrm, _add_frame, add_frame_fn, _hDisabled, _rect, rect_fn, _let_frame, let_frame_fn, _set_frame, set_frame_fn, _zIdx, _frame, frame_fn, _tsy_frame, tsy_frame_fn, _stage, _fore, _back, _frmMng, _bg_color, _fncTicker, _hProcDbgRes2, _modeLn, _modeLnSub, _selectNode, selectNode_fn, _grpCover, _evtMng6, _foreachRedrawTxtLayBack, foreachRedrawTxtLayBack_fn, _cmdTxt, _snapshot, snapshot_fn, _loadplugin, loadplugin_fn, _add_lay, add_lay_fn, _hPages, _aLayName, _curTxtlay, _firstGrplay, _lay, lay_fn, _rebuildLayerRankInfo, rebuildLayerRankInfo_fn, _clear_lay, clear_lay_fn, _srcRuleTransFragment, _ufRuleTrans, _fltRule, _rtTransBack, _spTransBack, _rtTransFore, _spTransFore, _aBackTransAfter, _trans, trans_fn, _tiTrans, _getLayers, getLayers_fn, _foreachLayers, foreachLayers_fn, _sortLayers, sortLayers_fn, _wt, wt_fn, _finish_trans, finish_trans_fn, _quake, quake_fn, _hTwInf, _tsy, tsy_fn, _wait_tsy, wait_tsy_fn, _stop_tsy, stop_tsy_fn, _pause_tsy, pause_tsy_fn, _resume_tsy, resume_tsy_fn, _msecChWait, _ch, ch_fn, _getTxtLayer, _$getTxtLayer, $getTxtLayer_fn, _current, _$current, $current_fn, _pgTxtlay, _chkTxtLay, _argChk_layer, argChk_layer_fn, _oLastPage, _aTxtLog, _clear_text, clear_text_fn, _endlink, endlink_fn, _er, er_fn, _graph, graph_fn, _link, link_fn, _r, r_fn, _rec_r, rec_r_fn, _rec_ch, rec_ch_fn, _reset_rec, reset_rec_fn, _ruby2, ruby2_fn, _span, span_fn, _tcy, tcy_fn, _dump_lay, dump_lay_fn, _enable_event, enable_event_fn, _button, button_fn, _aBtn, _idx, _radio_next, radio_next_fn, _logFocus, _allOff, allOff_fn, _elc2, _gamepad, _fcs, _resvFlameEvent4Wheel, _ev_keydown, ev_keydown_fn, _ev_contextmenu, ev_contextmenu_fn, _ev_wheel, ev_wheel_fn, _wheeling, _extend_wheel, _ev_wheel_waitstop, ev_wheel_waitstop_fn, _hLocalEvt2Fnc, _hGlobalEvt2Fnc, _isDbgBreak, _isWait, _getEvt2Fnc, _waitEventBase, waitEventBase_fn, _firstWait, _elmV, _elmHint, _spanHint, _popper, _oHintOpt, _dispHint, dispHint_fn, _procWheel4wle, _elcWLE, _clear_event, clear_event_fn, _clear_eventer, clear_eventer_fn, _event, event_fn, _canFocus, canFocus_fn, _getHtmlElmList, getHtmlElmList_fn, _goTxt, _l, l_fn, _p, p_fn, _stopSkip, _set_cancel_skip, set_cancel_skip_fn, _set_focus, set_focus_fn, _wait, wait_fn, _cancelWait, _waitclick, waitclick_fn, _hDownKeys, _script, _scriptFn, _idxToken, _lineNum, _aCallStk, _grm, _regBreakPoint, regBreakPoint_fn, _hHook2, _cnvSnPath, _REG4CODE_FN, _cnvSnPath4Dbg, _go_stepover, go_stepover_fn, _go_stepout, go_stepout_fn, _csDepth_macro_esc, _idxDx4Dbg, idxDx4Dbg_get, _isIdxOverLast, isIdxOverLast_fn, _hFn2hLineBP, _hFuncBP, _breakState, _isBreak_base, isBreak_base_fn, _subHitCondition, subHitCondition_fn, _aStack, aStack_fn, _procDebugtag, _evtMng7, _layMng, _let_ml, let_ml_fn, _dump_stack, dump_stack_fn, _cnvIdx2lineCol, cnvIdx2lineCol_fn, _dump_script, dump_script_fn, _fncSet, _fncBreak, _fnLastBreak, _hScrCache4Dump, _dumpErrLine, _aIfStk, _endif, endif_fn, _if, if_fn, _call, call_fn, _callSub, callSub_fn, _jump, jump_fn, _page, page_fn, _pop_stack, pop_stack_fn, _return, return_fn, _resvToken, _clearResvToken, clearResvToken_fn, _skipLabel, _jumpWork, jumpWork_fn, _nextToken_Proc, nextToken_Proc_fn, _dbgToken, _errOverScr, errOverScr_fn, _REG_NONAME_LABEL, _REG_TOKEN_MACRO_BEGIN, _REG_TOKEN_MACRO_END, _REG_TAG_LET_ML, _REG_TAG_ENDLET_ML, _seekScript, seekScript_fn, _hScript, _resolveScript, resolveScript_fn, _jump_light, jump_light_fn, _REG_WILDCARD, _REG_WILDCARD2, _replaceScript_Wildcard, _recordKidoku, recordKidoku_fn, _isKidoku, _eraseKidoku, eraseKidoku_fn, _bracket2macro, bracket2macro_fn, _char2macro, char2macro_fn, _macro, macro_fn, _strStepin, _REGSTEPIN, _load, load_fn, _loadFromMark, loadFromMark_fn, _skip4page, _reload_script, reload_script_fn, _mark, _record_place, record_place_fn, _nowScrIdx, nowScrIdx_fn, _save, save_fn, _aPageLog, _posAPageLog, _cfg4, _appPixi3, _hTag2, _val2, _prpPrs, _sndMng, _scrItr2, _dbgMng, _layMng2, _evtMng8, _fncNext, _alzTagArg2, _inited, _SN_ID, _init, init_fn, _fncTicker2, _fncresume, _isLoop, _runAnalyze, runAnalyze_fn, _destroyed, _clone_cvs, _hInfo, _setStore, _main3, _dl_app, dl_app_fn;
|
|
53
53
|
import { parse as parse$2, format, resolve as resolve$1 } from "url";
|
|
54
54
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
55
55
|
var platform$1 = { exports: {} };
|
|
@@ -46759,7 +46759,7 @@ const _TxtStage = class extends Container {
|
|
|
46759
46759
|
__privateGet(this, _htmTxt).style.height = __privateGet(this, _infTL).$height + "px";
|
|
46760
46760
|
}
|
|
46761
46761
|
goTxt(aSpan) {
|
|
46762
|
-
var _a3, _b3, _c3, _d2, _e;
|
|
46762
|
+
var _a3, _b3, _c3, _d2, _e, _f;
|
|
46763
46763
|
__privateGet(_TxtStage, _cntBreak).visible = false;
|
|
46764
46764
|
const begin = __privateGet(this, _aRect).length;
|
|
46765
46765
|
if (begin === 0) {
|
|
@@ -46867,35 +46867,34 @@ const _TxtStage = class extends Container {
|
|
|
46867
46867
|
}
|
|
46868
46868
|
rctLastCh = rct;
|
|
46869
46869
|
}
|
|
46870
|
-
|
|
46871
|
-
|
|
46872
|
-
|
|
46873
|
-
|
|
46874
|
-
|
|
46875
|
-
|
|
46876
|
-
|
|
46877
|
-
|
|
46878
|
-
|
|
46879
|
-
|
|
46880
|
-
|
|
46881
|
-
|
|
46882
|
-
|
|
46883
|
-
|
|
46884
|
-
|
|
46885
|
-
|
|
46886
|
-
|
|
46887
|
-
|
|
46888
|
-
|
|
46889
|
-
|
|
46890
|
-
|
|
46891
|
-
|
|
46892
|
-
|
|
46893
|
-
|
|
46894
|
-
|
|
46895
|
-
|
|
46896
|
-
|
|
46897
|
-
|
|
46898
|
-
break;
|
|
46870
|
+
if (v2.cmd === "grp") {
|
|
46871
|
+
const cnt = new Container();
|
|
46872
|
+
__privateGet(this, _cntTxt).addChild(cnt);
|
|
46873
|
+
GrpLayer.csv2Sprites(arg.pic, cnt, (sp) => {
|
|
46874
|
+
__privateMethod(this, _spWork, spWork_fn).call(this, cnt, arg, add3, rct, ease, cis != null ? cis : {});
|
|
46875
|
+
if (!cnt.parent)
|
|
46876
|
+
cnt.removeChild(sp);
|
|
46877
|
+
});
|
|
46878
|
+
}
|
|
46879
|
+
if (v2.lnk) {
|
|
46880
|
+
const eCh = v2.elm.parentElement.closest("[data-arg]");
|
|
46881
|
+
const aLnk = JSON.parse((_c3 = eCh.getAttribute("data-arg")) != null ? _c3 : "{}");
|
|
46882
|
+
aLnk.key = `lnk=[${i2}] ` + this.name;
|
|
46883
|
+
const sp = new Sprite();
|
|
46884
|
+
__privateMethod(this, _spWork, spWork_fn).call(this, sp, aLnk, add3, rct, ease, cis != null ? cis : {});
|
|
46885
|
+
const st_normal = (_d2 = aLnk.style) != null ? _d2 : "";
|
|
46886
|
+
const st_hover = st_normal + ((_e = aLnk.style_hover) != null ? _e : "");
|
|
46887
|
+
const st_clicked = st_normal + ((_f = aLnk.style_clicked) != null ? _f : "");
|
|
46888
|
+
const cl = eCh.querySelectorAll(".sn_ch");
|
|
46889
|
+
cl.forEach((e) => e.dataset.st_bk = e.style.cssText);
|
|
46890
|
+
const fncStyle = (st) => cl.forEach((e) => e.style.cssText = e.dataset.st_bk + st);
|
|
46891
|
+
__privateGet(_TxtStage, _evtMng3).button(aLnk, sp, () => fncStyle(st_normal), () => {
|
|
46892
|
+
if (!this.canFocus())
|
|
46893
|
+
return false;
|
|
46894
|
+
fncStyle(st_hover);
|
|
46895
|
+
return true;
|
|
46896
|
+
}, () => fncStyle(st_clicked));
|
|
46897
|
+
__privateGet(this, _cntTxt).addChild(sp);
|
|
46899
46898
|
}
|
|
46900
46899
|
}
|
|
46901
46900
|
const chs = __privateGet(this, _htmTxt).querySelectorAll("span.sn_ch");
|
|
@@ -47400,7 +47399,10 @@ spWork_fn = function(sp, arg, add3, rct, ease, cis) {
|
|
|
47400
47399
|
cis.wait = parseInt(arg.wait);
|
|
47401
47400
|
sp.width = rct.width;
|
|
47402
47401
|
sp.height = rct.height;
|
|
47403
|
-
|
|
47402
|
+
if (cis.x)
|
|
47403
|
+
sp.position.set(cis.x.charAt(0) === "=" ? rct.x + sp.width * cis.nx : cis.nx, cis.y.charAt(0) === "=" ? rct.y + sp.height * cis.ny : cis.ny);
|
|
47404
|
+
else
|
|
47405
|
+
sp.position.set(rct.x, rct.y);
|
|
47404
47406
|
const st = {
|
|
47405
47407
|
sp,
|
|
47406
47408
|
tw: new Tween(sp).to({ alpha: 1, x: rct.x, y: rct.y, width: rct.width, height: rct.height, angle: 0 }, (_a3 = cis.wait) != null ? _a3 : 0).easing(ease).delay(((_b3 = add3.wait) != null ? _b3 : 0) + ((_c3 = arg.delay) != null ? _c3 : 0)).onComplete(() => {
|
|
@@ -47421,7 +47423,7 @@ getChRects_fn = function(elm) {
|
|
|
47421
47423
|
const ret = [];
|
|
47422
47424
|
if (elm.nodeType !== elm.TEXT_NODE) {
|
|
47423
47425
|
elm.childNodes.forEach((v2) => ret.push(__privateMethod(this, _getChRects, getChRects_fn).call(this, v2)));
|
|
47424
|
-
return
|
|
47426
|
+
return ret.flat();
|
|
47425
47427
|
}
|
|
47426
47428
|
const range = elm.ownerDocument.createRange();
|
|
47427
47429
|
range.selectNodeContents(elm);
|
|
@@ -47442,7 +47444,7 @@ getChRects_fn = function(elm) {
|
|
|
47442
47444
|
cmd: (_a3 = pe.getAttribute("data-cmd")) != null ? _a3 : void 0,
|
|
47443
47445
|
arg: (_b3 = pe.getAttribute("data-arg")) != null ? _b3 : void 0,
|
|
47444
47446
|
add: (_c3 = pe.getAttribute("data-add")) != null ? _c3 : void 0,
|
|
47445
|
-
|
|
47447
|
+
lnk: (_d2 = pe.getAttribute("data-lnk")) != null ? _d2 : void 0
|
|
47446
47448
|
};
|
|
47447
47449
|
ret.push(cr);
|
|
47448
47450
|
}
|
|
@@ -47800,8 +47802,9 @@ const _TxtLayer = class extends Layer {
|
|
|
47800
47802
|
__privateAdd(this, _setFfs);
|
|
47801
47803
|
__privateAdd(this, _mkStyle_r_align4ff);
|
|
47802
47804
|
__privateAdd(this, _tagCh_sub);
|
|
47803
|
-
__privateAdd(this,
|
|
47804
|
-
__privateAdd(this,
|
|
47805
|
+
__privateAdd(this, _style_delay);
|
|
47806
|
+
__privateAdd(this, _pushSpan);
|
|
47807
|
+
__privateAdd(this, _popSpan);
|
|
47805
47808
|
__privateAdd(this, _b_color, void 0);
|
|
47806
47809
|
__privateAdd(this, _b_alpha, void 0);
|
|
47807
47810
|
__privateAdd(this, _b_alpha_isfixed, void 0);
|
|
@@ -47815,7 +47818,6 @@ const _TxtLayer = class extends Layer {
|
|
|
47815
47818
|
__privateAdd(this, _$ch_out_style, void 0);
|
|
47816
47819
|
__privateAdd(this, _ffs, void 0);
|
|
47817
47820
|
__privateAdd(this, _fncFFSStyle, void 0);
|
|
47818
|
-
__privateAdd(this, _fncFFSSpan, void 0);
|
|
47819
47821
|
__privateAdd(this, _strNoFFS, void 0);
|
|
47820
47822
|
__privateAdd(this, _regNoFFS, void 0);
|
|
47821
47823
|
__privateAdd(this, _ruby_pd, void 0);
|
|
@@ -47825,9 +47827,7 @@ const _TxtLayer = class extends Layer {
|
|
|
47825
47827
|
__privateAdd(this, _cumDelay, void 0);
|
|
47826
47828
|
__privateAdd(this, _firstCh, void 0);
|
|
47827
47829
|
__privateAdd(this, _aSpan, void 0);
|
|
47828
|
-
__privateAdd(this,
|
|
47829
|
-
__privateAdd(this, _aSpan_link, void 0);
|
|
47830
|
-
__privateAdd(this, _hSpanBk, void 0);
|
|
47830
|
+
__privateAdd(this, _stkASpan, void 0);
|
|
47831
47831
|
__privateAdd(this, _page_text, void 0);
|
|
47832
47832
|
__privateSet(this, _b_color, 0);
|
|
47833
47833
|
__privateSet(this, _b_alpha, 0);
|
|
@@ -47842,7 +47842,6 @@ const _TxtLayer = class extends Layer {
|
|
|
47842
47842
|
__privateSet(this, _$ch_out_style, "");
|
|
47843
47843
|
__privateSet(this, _ffs, "");
|
|
47844
47844
|
__privateSet(this, _fncFFSStyle, (_ch2) => "");
|
|
47845
|
-
__privateSet(this, _fncFFSSpan, (ch) => ch);
|
|
47846
47845
|
__privateSet(this, _strNoFFS, "");
|
|
47847
47846
|
__privateSet(this, _regNoFFS, new RegExp("[\u3000]"));
|
|
47848
47847
|
this.isCur = false;
|
|
@@ -47860,17 +47859,6 @@ const _TxtLayer = class extends Layer {
|
|
|
47860
47859
|
case 1:
|
|
47861
47860
|
__privateSet(this, _needGoTxt, true);
|
|
47862
47861
|
if (ch === "\n") {
|
|
47863
|
-
if (__privateGet(this, _aSpan_bk)) {
|
|
47864
|
-
add_htm = __privateGet(this, _aSpan_bk).slice(-1)[0];
|
|
47865
|
-
__privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
|
|
47866
|
-
__privateGet(this, _aSpan).push(__privateGet(_a3 = _TxtLayer, _rec).call(_a3, "<br/>"));
|
|
47867
|
-
__privateGet(this, _aSpan).push(add_htm);
|
|
47868
|
-
__privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
|
|
47869
|
-
__privateSet(this, _aSpan, []);
|
|
47870
|
-
__privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
|
|
47871
|
-
__privateSet(_TxtLayer, _rec, (tx) => tx);
|
|
47872
|
-
return;
|
|
47873
|
-
}
|
|
47874
47862
|
if (__privateGet(this, _firstCh)) {
|
|
47875
47863
|
__privateSet(this, _firstCh, false);
|
|
47876
47864
|
add_htm = "<ruby>\u3000<rt>\u3000</rt></ruby><br/>";
|
|
@@ -47900,9 +47888,9 @@ const _TxtLayer = class extends Layer {
|
|
|
47900
47888
|
add_htm = __privateMethod(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, a_ruby[1], isSkip, a_ruby[0]);
|
|
47901
47889
|
break;
|
|
47902
47890
|
case "gotxt": {
|
|
47903
|
-
__privateMethod(this,
|
|
47891
|
+
__privateMethod(this, _popSpan, popSpan_fn).call(this);
|
|
47904
47892
|
if (this.isCur)
|
|
47905
|
-
__privateGet(
|
|
47893
|
+
__privateGet(_a3 = _TxtLayer, _recText).call(_a3, __privateGet(this, _aSpan).join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replace(/style='(anim\S+ \S+?;\s*)+/g, `style='`).replace(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replace(/class='sn_ch .+?'/g, `class='sn_ch'`).replaceAll(`class='offrec'`, `style='display: none;'`).replaceAll("`", "\\`"));
|
|
47906
47894
|
if (!__privateGet(this, _needGoTxt))
|
|
47907
47895
|
return;
|
|
47908
47896
|
__privateGet(this, _txs).goTxt(__privateGet(this, _aSpan));
|
|
@@ -47913,54 +47901,44 @@ const _TxtLayer = class extends Layer {
|
|
|
47913
47901
|
case "add":
|
|
47914
47902
|
{
|
|
47915
47903
|
const o = JSON.parse(a_ruby[1]);
|
|
47916
|
-
(
|
|
47917
|
-
|
|
47918
|
-
if (
|
|
47919
|
-
|
|
47920
|
-
|
|
47921
|
-
|
|
47922
|
-
__privateSet(this, _cumDelay, 0);
|
|
47923
|
-
const wait = Number((_d2 = o.wait) != null ? _d2 : -1);
|
|
47924
|
-
const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
|
|
47925
|
-
const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
|
|
47926
|
-
__privateGet(this, _aSpan).push(`<span class='sn_ch${sn_ch + __privateGet(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='${JSON.stringify(o)}'>`);
|
|
47927
|
-
}
|
|
47928
|
-
__privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
|
|
47929
|
-
__privateSet(this, _aSpan, []);
|
|
47930
|
-
__privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
|
|
47931
|
-
__privateSet(_TxtLayer, _rec, (tx) => tx);
|
|
47904
|
+
(_b3 = o.style) != null ? _b3 : o.style = "";
|
|
47905
|
+
const stk = __privateGet(this, _stkASpan).at(-1);
|
|
47906
|
+
if (stk)
|
|
47907
|
+
o.style = ((_c3 = stk.o.style) != null ? _c3 : "") + o.style;
|
|
47908
|
+
__privateMethod(this, _pushSpan, pushSpan_fn).call(this, o);
|
|
47909
|
+
__privateGet(this, _aSpan).push(`<span style='${o.style}' data-add='${JSON.stringify(o)}'>`);
|
|
47932
47910
|
}
|
|
47933
47911
|
return;
|
|
47934
47912
|
case "add_close":
|
|
47935
|
-
__privateMethod(this,
|
|
47913
|
+
__privateMethod(this, _popSpan, popSpan_fn).call(this);
|
|
47914
|
+
if (__privateGet(this, _stkASpan).length > 0)
|
|
47915
|
+
__privateGet(this, _aSpan).splice(-2, 1);
|
|
47916
|
+
else
|
|
47917
|
+
__privateGet(this, _aSpan).push(`</span>`);
|
|
47936
47918
|
return;
|
|
47937
47919
|
case "grp":
|
|
47938
47920
|
__privateSet(this, _needGoTxt, true);
|
|
47939
47921
|
{
|
|
47940
|
-
|
|
47941
|
-
__privateSet(this, _cumDelay, 0);
|
|
47942
|
-
const arg = (a_ruby[1] ? a_ruby[1].slice(0, -1) + "," : `{`) + `"delay": ${__privateGet(this, _cumDelay)}}`;
|
|
47943
|
-
if (__privateGet(this, _ch_in_join))
|
|
47944
|
-
__privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? 0 : LayerMng.msecChWait));
|
|
47922
|
+
const [, arg = "{}"] = a_ruby;
|
|
47945
47923
|
const o = JSON.parse(arg);
|
|
47946
|
-
|
|
47947
|
-
|
|
47948
|
-
o.id = __privateGet(this, _aSpan).length;
|
|
47924
|
+
o.delay = __privateGet(this, _cumDelay);
|
|
47925
|
+
(_d2 = o.id) != null ? _d2 : o.id = __privateGet(this, _aSpan).length;
|
|
47949
47926
|
if (o.id === "break") {
|
|
47950
47927
|
__privateGet(this, _txs).dispBreak(o.pic);
|
|
47951
47928
|
return;
|
|
47952
47929
|
}
|
|
47953
|
-
|
|
47930
|
+
(_e = o.style) != null ? _e : o.style = "";
|
|
47954
47931
|
const wait = Number((_f = o.wait) != null ? _f : -1);
|
|
47955
|
-
const
|
|
47932
|
+
const sc = wait != 0 ? ` sn_ch_in_${__privateGet(this, _$ch_in_style)}` : "";
|
|
47956
47933
|
const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
|
|
47957
|
-
|
|
47934
|
+
const lnk = (_g = __privateGet(this, _stkASpan).at(0)) == null ? void 0 : _g.o[":link"];
|
|
47935
|
+
add_htm = `<span data-cmd='grp' data-id='${o.id}' data-arg='${JSON.stringify(o)}' class='sn_ch${sc}' style='${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}${ad} ${o.style}'${lnk != null ? lnk : ""} data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>\u3000</span>`;
|
|
47958
47936
|
if (__privateGet(this, _firstCh)) {
|
|
47959
47937
|
__privateSet(this, _firstCh, false);
|
|
47960
47938
|
add_htm = `<ruby>${add_htm}<rt>\u3000</rt></ruby>`;
|
|
47961
47939
|
}
|
|
47962
|
-
if (__privateGet(this,
|
|
47963
|
-
|
|
47940
|
+
if (__privateGet(this, _ch_in_join))
|
|
47941
|
+
__privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? 0 : LayerMng.msecChWait));
|
|
47964
47942
|
}
|
|
47965
47943
|
break;
|
|
47966
47944
|
case "del":
|
|
@@ -47970,50 +47948,28 @@ const _TxtLayer = class extends Layer {
|
|
|
47970
47948
|
TxtStage.delBreak();
|
|
47971
47949
|
return;
|
|
47972
47950
|
case "span":
|
|
47973
|
-
__privateMethod(this,
|
|
47951
|
+
__privateMethod(this, _popSpan, popSpan_fn).call(this);
|
|
47974
47952
|
__privateSet(this, _needGoTxt, true);
|
|
47975
47953
|
{
|
|
47976
47954
|
const o = JSON.parse(a_ruby[1]);
|
|
47977
|
-
__privateMethod(this,
|
|
47978
|
-
if (!o.style)
|
|
47979
|
-
return;
|
|
47980
|
-
if (isSkip)
|
|
47981
|
-
__privateSet(this, _cumDelay, 0);
|
|
47982
|
-
const wait = Number((_g = o.wait) != null ? _g : -1);
|
|
47983
|
-
const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
|
|
47984
|
-
const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
|
|
47985
|
-
__privateGet(this, _aSpan).push(`<span class='sn_ch${sn_ch + __privateGet(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>`);
|
|
47986
|
-
__privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
|
|
47987
|
-
__privateSet(this, _aSpan, []);
|
|
47988
|
-
__privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
|
|
47989
|
-
__privateSet(_TxtLayer, _rec, (tx) => tx);
|
|
47955
|
+
__privateMethod(this, _pushSpan, pushSpan_fn).call(this, o);
|
|
47990
47956
|
}
|
|
47991
47957
|
return;
|
|
47992
47958
|
case "link":
|
|
47993
|
-
__privateMethod(this,
|
|
47959
|
+
__privateMethod(this, _popSpan, popSpan_fn).call(this);
|
|
47994
47960
|
__privateSet(this, _needGoTxt, true);
|
|
47995
47961
|
{
|
|
47996
47962
|
const o = JSON.parse(a_ruby[1]);
|
|
47997
47963
|
(_h = o.style) != null ? _h : o.style = "";
|
|
47998
|
-
|
|
47999
|
-
|
|
48000
|
-
|
|
48001
|
-
const wait = Number((_i = o.wait) != null ? _i : -1);
|
|
48002
|
-
const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
|
|
48003
|
-
const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
|
|
48004
|
-
__privateSet(this, _aSpan_link, ` data-cmd='link' data-arg='${a_ruby[1]}'`);
|
|
48005
|
-
__privateGet(this, _aSpan).push(`<span${__privateGet(this, _aSpan_link)} class='sn_ch${sn_ch + __privateGet(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>`);
|
|
48006
|
-
__privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
|
|
48007
|
-
__privateSet(this, _aSpan, []);
|
|
48008
|
-
__privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
|
|
48009
|
-
__privateSet(_TxtLayer, _rec, (tx) => tx);
|
|
47964
|
+
o[":link"] = ` data-lnk='@'`;
|
|
47965
|
+
__privateGet(this, _aSpan).push(`<span data-arg='${a_ruby[1]}' style='display: contents;'>`);
|
|
47966
|
+
__privateMethod(this, _pushSpan, pushSpan_fn).call(this, o);
|
|
48010
47967
|
}
|
|
48011
47968
|
return;
|
|
48012
47969
|
case "endlink":
|
|
48013
47970
|
__privateSet(this, _needGoTxt, true);
|
|
48014
|
-
|
|
48015
|
-
|
|
48016
|
-
__privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
|
|
47971
|
+
__privateGet(this, _aSpan).push(`</span>`);
|
|
47972
|
+
__privateMethod(this, _popSpan, popSpan_fn).call(this);
|
|
48017
47973
|
return;
|
|
48018
47974
|
default:
|
|
48019
47975
|
__privateSet(this, _needGoTxt, true);
|
|
@@ -48023,30 +47979,20 @@ const _TxtLayer = class extends Layer {
|
|
|
48023
47979
|
case 3:
|
|
48024
47980
|
__privateSet(this, _firstCh, false);
|
|
48025
47981
|
__privateSet(this, _needGoTxt, true);
|
|
48026
|
-
|
|
47982
|
+
const [cmd0, tx, rb0] = a_ruby;
|
|
47983
|
+
switch (cmd0) {
|
|
48027
47984
|
case "tcy":
|
|
48028
47985
|
{
|
|
48029
47986
|
if (__privateGet(_TxtLayer, _val).doRecLog())
|
|
48030
47987
|
__privateSet(this, _page_text, __privateGet(this, _page_text) + (ch + (ruby ? `\u300A${ruby}\u300B` : "")));
|
|
48031
|
-
const
|
|
48032
|
-
const id_tcy = tx.length > 1 ? __privateGet(this, _aSpan).length + 1 : "";
|
|
48033
|
-
const rb = CmnLib.isSafari ? a_ruby[2].replace(/[A-Za-z0-9]/g, (s2) => String.fromCharCode(s2.charCodeAt(0) + 65248)) : a_ruby[2];
|
|
48034
|
-
if (isSkip)
|
|
48035
|
-
__privateSet(this, _cumDelay, 0);
|
|
47988
|
+
const rb = CmnLib.isSafari ? rb0.replace(/[A-Za-z0-9]/g, (s2) => String.fromCharCode(s2.charCodeAt(0) + 65248)) : rb0;
|
|
48036
47989
|
const rs = this.mkStyle_r_align(tx, rb, __privateGet(this, _r_align));
|
|
48037
|
-
const
|
|
48038
|
-
|
|
47990
|
+
const lnk = (_i = __privateGet(this, _stkASpan).at(0)) == null ? void 0 : _i.o[":link"];
|
|
47991
|
+
add_htm = `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='${__privateGet(this, _fncFFSStyle).call(this, tx)}${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}'><ruby><span ${lnk != null ? lnk : ""} style='
|
|
48039
47992
|
text-combine-upright: all;
|
|
48040
47993
|
-webkit-text-combine: horizontal;
|
|
48041
|
-
${__privateGet(this,
|
|
48042
|
-
|
|
48043
|
-
<rt${rs}>${rb}</rt></ruby>` : `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;'>
|
|
48044
|
-
<ruby>${st}'${da}>${tx}</span>
|
|
48045
|
-
<rt${rs}>${rb}</rt></ruby>
|
|
48046
|
-
</span>` : __privateGet(this, _aSpan_bk) ? `${st}'${da} data-cmd='linkrsv'>${tx}</span>` : `${st}
|
|
48047
|
-
animation-delay: ${__privateGet(this, _cumDelay)}ms;
|
|
48048
|
-
height: 1em;
|
|
48049
|
-
' class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}'${da}>${tx}</span>`;
|
|
47994
|
+
' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>${tx}</span>
|
|
47995
|
+
<rt${rs}>${rb}</rt></ruby></span>`;
|
|
48050
47996
|
if (__privateGet(this, _ch_in_join))
|
|
48051
47997
|
__privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (_j = __privateGet(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _j : 0 : LayerMng.msecChWait));
|
|
48052
47998
|
}
|
|
@@ -48061,13 +48007,7 @@ ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
|
|
|
48061
48007
|
__privateSet(this, _cumDelay, 0);
|
|
48062
48008
|
__privateSet(this, _firstCh, true);
|
|
48063
48009
|
__privateSet(this, _aSpan, []);
|
|
48064
|
-
__privateSet(this,
|
|
48065
|
-
__privateSet(this, _aSpan_link, "");
|
|
48066
|
-
__privateSet(this, _hSpanBk, {
|
|
48067
|
-
ch_in_style: "",
|
|
48068
|
-
ch_out_style: "",
|
|
48069
|
-
r_align: ""
|
|
48070
|
-
});
|
|
48010
|
+
__privateSet(this, _stkASpan, []);
|
|
48071
48011
|
this.click = () => {
|
|
48072
48012
|
if (!this.spLay.interactiveChildren || !this.spLay.visible)
|
|
48073
48013
|
return true;
|
|
@@ -48250,7 +48190,6 @@ ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
|
|
|
48250
48190
|
}
|
|
48251
48191
|
static chgDoRec(doRec) {
|
|
48252
48192
|
__privateSet(_TxtLayer, _rec, doRec ? (tx) => tx : (tx) => `<span class='offrec'>${tx}</span>`);
|
|
48253
|
-
__privateSet(_TxtLayer, _class_offrec, doRec ? "" : " offrec");
|
|
48254
48193
|
}
|
|
48255
48194
|
mkStyle_r_align(ch, rb, r_align) {
|
|
48256
48195
|
if (!r_align)
|
|
@@ -48286,8 +48225,6 @@ ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
|
|
|
48286
48225
|
__privateSet(this, _cumDelay, 0);
|
|
48287
48226
|
__privateSet(this, _firstCh, true);
|
|
48288
48227
|
__privateSet(this, _aSpan, []);
|
|
48289
|
-
__privateSet(this, _aSpan_bk, void 0);
|
|
48290
|
-
__privateSet(_TxtLayer, _rec, __privateGet(_TxtLayer, _rec_bk));
|
|
48291
48228
|
__privateSet(this, _page_text, "");
|
|
48292
48229
|
__privateGet(_a3 = _TxtLayer, _recText).call(_a3, "", true);
|
|
48293
48230
|
}
|
|
@@ -48527,22 +48464,13 @@ setFfs_fn = function(hArg) {
|
|
|
48527
48464
|
if (!("ffs" in hArg))
|
|
48528
48465
|
return;
|
|
48529
48466
|
(_b3 = __privateGet(this, _ffs)) != null ? _b3 : __privateSet(this, _ffs, "");
|
|
48530
|
-
|
|
48531
|
-
__privateSet(this, _fncFFSStyle, () => "");
|
|
48532
|
-
__privateSet(this, _fncFFSSpan, (ch) => ch);
|
|
48533
|
-
} else {
|
|
48534
|
-
__privateSet(this, _fncFFSStyle, (ch) => __privateGet(this, _regNoFFS).test(ch) ? "" : ` font-feature-settings: ${__privateGet(this, _ffs)};`);
|
|
48535
|
-
__privateSet(this, _fncFFSSpan, (ch) => __privateGet(this, _regNoFFS).test(ch) ? ch : `<span style='font-feature-settings: ${__privateGet(this, _ffs)};'>${ch}</span>`);
|
|
48536
|
-
}
|
|
48467
|
+
__privateSet(this, _fncFFSStyle, __privateGet(this, _ffs) === "" ? () => "" : (ch) => __privateGet(this, _regNoFFS).test(ch) ? "" : ` font-feature-settings: ${__privateGet(this, _ffs)};`);
|
|
48537
48468
|
};
|
|
48538
48469
|
_ffs = new WeakMap();
|
|
48539
48470
|
_fncFFSStyle = new WeakMap();
|
|
48540
|
-
_fncFFSSpan = new WeakMap();
|
|
48541
48471
|
_strNoFFS = new WeakMap();
|
|
48542
48472
|
_regNoFFS = new WeakMap();
|
|
48543
48473
|
_rec = new WeakMap();
|
|
48544
|
-
_rec_bk = new WeakMap();
|
|
48545
|
-
_class_offrec = new WeakMap();
|
|
48546
48474
|
_ruby_pd = new WeakMap();
|
|
48547
48475
|
_r_align = new WeakMap();
|
|
48548
48476
|
_mkStyle_r_align4ff = new WeakSet();
|
|
@@ -48585,50 +48513,50 @@ _needGoTxt = new WeakMap();
|
|
|
48585
48513
|
_putCh2 = new WeakMap();
|
|
48586
48514
|
_tagCh_sub = new WeakSet();
|
|
48587
48515
|
tagCh_sub_fn = function(ch, ruby, isSkip, r_align) {
|
|
48588
|
-
var _a3;
|
|
48516
|
+
var _a3, _b3;
|
|
48589
48517
|
if (ch === " ")
|
|
48590
48518
|
ch = " ";
|
|
48591
48519
|
if (__privateGet(_TxtLayer, _val).doRecLog())
|
|
48592
48520
|
__privateSet(this, _page_text, __privateGet(this, _page_text) + (ch + (ruby ? `\u300A${ruby}\u300B` : "")));
|
|
48593
|
-
|
|
48594
|
-
const
|
|
48595
|
-
|
|
48596
|
-
__privateSet(this, _cumDelay, 0);
|
|
48597
|
-
const da = ` data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'`;
|
|
48598
|
-
add_htm = ruby ? __privateGet(this, _aSpan_bk) ? `<ruby style='${__privateGet(this, _fncFFSStyle).call(this, ch)}'${da} data-cmd='linkrsv'>${ch}<rt${rs}>${ruby}</rt></ruby>` : `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${__privateGet(this, _fncFFSStyle).call(this, ch)}'>
|
|
48599
|
-
<ruby${da}>${ch}<rt${rs}>${ruby}</rt></ruby>
|
|
48600
|
-
</span>` : __privateGet(this, _aSpan_bk) ? __privateGet(this, _fncFFSSpan).call(this, ch) : `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${__privateGet(this, _fncFFSStyle).call(this, ch)}'${da}>${ch}</span>`;
|
|
48521
|
+
const lnk = (_a3 = __privateGet(this, _stkASpan).at(0)) == null ? void 0 : _a3.o[":link"];
|
|
48522
|
+
const curpos = `${lnk != null ? lnk : ""} data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'`;
|
|
48523
|
+
const add_htm = `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}${__privateGet(this, _fncFFSStyle).call(this, ch)}'${ruby ? "" : curpos}>${ruby ? `<ruby${curpos}>${ch}<rt${this.mkStyle_r_align(ch, ruby, r_align)}>${ruby}</rt></ruby>` : ch}</span>`;
|
|
48601
48524
|
if (__privateGet(this, _ch_in_join))
|
|
48602
|
-
__privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (
|
|
48525
|
+
__privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (_b3 = __privateGet(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _b3 : 0 : LayerMng.msecChWait));
|
|
48603
48526
|
return add_htm;
|
|
48604
48527
|
};
|
|
48528
|
+
_style_delay = new WeakSet();
|
|
48529
|
+
style_delay_fn = function(isSkip) {
|
|
48530
|
+
var _a3, _b3, _c3;
|
|
48531
|
+
if (isSkip)
|
|
48532
|
+
__privateSet(this, _cumDelay, 0);
|
|
48533
|
+
return `animation-delay: ${__privateGet(this, _cumDelay)}ms;${(_c3 = (_b3 = (_a3 = __privateGet(this, _stkASpan).at(-1)) == null ? void 0 : _a3.o) == null ? void 0 : _b3.style) != null ? _c3 : ""}`;
|
|
48534
|
+
};
|
|
48605
48535
|
_cumDelay = new WeakMap();
|
|
48606
48536
|
_firstCh = new WeakMap();
|
|
48607
48537
|
_aSpan = new WeakMap();
|
|
48608
|
-
|
|
48609
|
-
|
|
48610
|
-
|
|
48611
|
-
|
|
48612
|
-
|
|
48613
|
-
|
|
48614
|
-
|
|
48615
|
-
|
|
48616
|
-
|
|
48617
|
-
__privateGet(this, _hSpanBk).r_align = __privateGet(this, _r_align);
|
|
48538
|
+
_stkASpan = new WeakMap();
|
|
48539
|
+
_pushSpan = new WeakSet();
|
|
48540
|
+
pushSpan_fn = function(o) {
|
|
48541
|
+
__privateGet(this, _stkASpan).push({
|
|
48542
|
+
o,
|
|
48543
|
+
r_align: __privateGet(this, _r_align),
|
|
48544
|
+
ch_in_style: __privateGet(this, _$ch_in_style),
|
|
48545
|
+
ch_out_style: __privateGet(this, _$ch_out_style)
|
|
48546
|
+
});
|
|
48618
48547
|
if ("r_align" in o)
|
|
48619
48548
|
__privateSet(this, _r_align, o.r_align);
|
|
48549
|
+
__privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, o);
|
|
48550
|
+
__privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, o);
|
|
48620
48551
|
};
|
|
48621
|
-
|
|
48622
|
-
|
|
48623
|
-
|
|
48552
|
+
_popSpan = new WeakSet();
|
|
48553
|
+
popSpan_fn = function() {
|
|
48554
|
+
const stk = __privateGet(this, _stkASpan).pop();
|
|
48555
|
+
if (!stk)
|
|
48624
48556
|
return;
|
|
48625
|
-
|
|
48626
|
-
|
|
48627
|
-
|
|
48628
|
-
__privateSet(_TxtLayer, _rec, __privateGet(_TxtLayer, _rec_bk));
|
|
48629
|
-
__privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, { in_style: __privateGet(this, _hSpanBk).ch_in_style });
|
|
48630
|
-
__privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, { out_style: __privateGet(this, _hSpanBk).ch_out_style });
|
|
48631
|
-
__privateSet(this, _r_align, __privateGet(this, _hSpanBk).r_align);
|
|
48557
|
+
__privateSet(this, _r_align, stk.r_align);
|
|
48558
|
+
__privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, { in_style: stk.ch_in_style });
|
|
48559
|
+
__privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, { out_style: stk.ch_out_style });
|
|
48632
48560
|
};
|
|
48633
48561
|
_page_text = new WeakMap();
|
|
48634
48562
|
__privateAdd(TxtLayer, _ch_in_style);
|
|
@@ -48644,8 +48572,6 @@ __privateAdd(TxtLayer, _sys3, void 0);
|
|
|
48644
48572
|
__privateAdd(TxtLayer, _doAutoWc, false);
|
|
48645
48573
|
__privateAdd(TxtLayer, _hAutoWc, {});
|
|
48646
48574
|
__privateAdd(TxtLayer, _rec, (tx) => tx);
|
|
48647
|
-
__privateAdd(TxtLayer, _rec_bk, (tx) => tx);
|
|
48648
|
-
__privateAdd(TxtLayer, _class_offrec, " offrec");
|
|
48649
48575
|
class FrameMng {
|
|
48650
48576
|
constructor(cfg, hTag, appPixi, val, main2, sys, hTwInf) {
|
|
48651
48577
|
__privateAdd(this, _add_frame);
|
|
@@ -49938,6 +49864,7 @@ ch_fn = function(hArg) {
|
|
|
49938
49864
|
hArg.wait = 0;
|
|
49939
49865
|
else if ("wait" in hArg)
|
|
49940
49866
|
argChk_Num(hArg, "wait", NaN);
|
|
49867
|
+
__privateGet(this, _cmdTxt).call(this, "add\uFF5C" + JSON.stringify(hArg), tl);
|
|
49941
49868
|
const record = argChk_Boolean(hArg, "record", true);
|
|
49942
49869
|
const doRecLog = this.val.doRecLog();
|
|
49943
49870
|
if (!record)
|
|
@@ -49945,6 +49872,7 @@ ch_fn = function(hArg) {
|
|
|
49945
49872
|
tl.tagCh(text.replaceAll("[r]", "\n"));
|
|
49946
49873
|
if (!record)
|
|
49947
49874
|
this.val.setVal_Nochk("save", "sn.doRecLog", doRecLog);
|
|
49875
|
+
__privateGet(this, _cmdTxt).call(this, `add_close\uFF5C`, tl);
|
|
49948
49876
|
return false;
|
|
49949
49877
|
};
|
|
49950
49878
|
_getTxtLayer = new WeakMap();
|