@famibee/skynovel 1.48.10 → 1.48.12
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 -112
- package/dist/app.js.map +1 -1
- package/dist/web.js +111 -112
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -17269,14 +17269,14 @@ class Ol {
|
|
|
17269
17269
|
}
|
|
17270
17270
|
class pr {
|
|
17271
17271
|
constructor(t, e) {
|
|
17272
|
-
if (this.cfg = t, e.let = (s) => this.#v(s), e.let_abs = (s) => this.#f(s), e.let_char_at = (s) => this.#x(s), e.let_index_of = (s) => this.#o(s), e.let_length = (s) => this.#y(s), e.let_replace = (s) => this.#_(s), e.let_round = (s) => this.#g(s), e.let_search = (s) => this.#
|
|
17272
|
+
if (this.cfg = t, e.let = (s) => this.#v(s), e.let_abs = (s) => this.#f(s), e.let_char_at = (s) => this.#x(s), e.let_index_of = (s) => this.#o(s), e.let_length = (s) => this.#y(s), e.let_replace = (s) => this.#_(s), e.let_round = (s) => this.#g(s), e.let_search = (s) => this.#P(s), e.let_substr = (s) => this.#A(s), e.clearsysvar = () => this.#k(), e.clearvar = () => this.#T(), e.dump_val = () => this.#C(), e.copybookmark = (s) => this.#p(s), e.erasebookmark = (s) => this.#c(s), this.#e["sn.userFnTail"] = "", this.defTmp("const.sn.bookmark.json", () => {
|
|
17273
17273
|
const s = [];
|
|
17274
17274
|
for (const o of Object.keys(this.#s.mark).sort()) {
|
|
17275
17275
|
const a = { ...this.#s.mark[o].json };
|
|
17276
17276
|
a.place = o, s.push(a);
|
|
17277
17277
|
}
|
|
17278
17278
|
return JSON.stringify(s);
|
|
17279
|
-
}), this.#i["const.sn.isFirstBoot"] = !0, this.#i["const.sn.last_page_text"] = "", this.#i["const.sn.last_page_plain_text"] = "", this.#i["const.sn.displayState"] = !1, this.#i["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), this.#i["const.Date.getDateStr"] = () => tn(), this.#i["const.sn.platform"] = JSON.stringify(iu), this.#k(), this.#
|
|
17279
|
+
}), this.#i["const.sn.isFirstBoot"] = !0, this.#i["const.sn.last_page_text"] = "", this.#i["const.sn.last_page_plain_text"] = "", this.#i["const.sn.displayState"] = !1, this.#i["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), this.#i["const.Date.getDateStr"] = () => tn(), this.#i["const.sn.platform"] = JSON.stringify(iu), this.#k(), this.#T(), this.#i["const.sn.config.window.width"] = t.oCfg.window.width, this.#i["const.sn.config.window.height"] = t.oCfg.window.height, this.#i["const.sn.config.book.title"] = t.oCfg.book.title, this.#i["const.sn.config.book.version"] = t.oCfg.book.version, this.#i["const.sn.Math.PI"] = Math.PI, typeof window > "u")
|
|
17280
17280
|
return;
|
|
17281
17281
|
const i = window, n = i.AudioContext ?? i.webkitAudioContext;
|
|
17282
17282
|
this.#i["const.sn.needClick2Play"] = () => new n().state === "suspended";
|
|
@@ -17472,7 +17472,7 @@ class pr {
|
|
|
17472
17472
|
return t.text = String(Math.round(e)), this.#v(t), !1;
|
|
17473
17473
|
}
|
|
17474
17474
|
// 正規表現で検索
|
|
17475
|
-
#
|
|
17475
|
+
#P(t) {
|
|
17476
17476
|
if (!t.reg)
|
|
17477
17477
|
throw "regは必須です";
|
|
17478
17478
|
const { flags: e } = t, i = e ? new RegExp(t.reg, e) : new RegExp(t.reg);
|
|
@@ -17493,7 +17493,7 @@ class pr {
|
|
|
17493
17493
|
return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), this.#t.mark = this.#s.mark = {}, this.setVal_Nochk("sys", "const.sn.save.place", 1), this.flush(), !1;
|
|
17494
17494
|
}
|
|
17495
17495
|
// ゲーム変数の全消去
|
|
17496
|
-
#
|
|
17496
|
+
#T() {
|
|
17497
17497
|
const t = this.#e["const.sn.mesLayer"] ?? "", e = this.#e["sn.doRecLog"] ?? !1, i = this.#e["const.sn.sLog"] ?? "[]";
|
|
17498
17498
|
return this.#e = this.#t.save = {}, this.setVal_Nochk("save", "const.sn.mesLayer", t), this.setVal_Nochk("save", "sn.doRecLog", e), this.setVal_Nochk("save", "const.sn.sLog", i), !1;
|
|
17499
17499
|
}
|
|
@@ -17515,7 +17515,7 @@ class pr {
|
|
|
17515
17515
|
};
|
|
17516
17516
|
setVal_Nochk(t, e, i, n = !1) {
|
|
17517
17517
|
const s = this.#t[t];
|
|
17518
|
-
n && (i = this.#
|
|
17518
|
+
n && (i = this.#O(i));
|
|
17519
17519
|
const o = t + ":" + e;
|
|
17520
17520
|
if (o in pr.#j) {
|
|
17521
17521
|
const a = s[e], h = i;
|
|
@@ -17570,9 +17570,9 @@ class pr {
|
|
|
17570
17570
|
break;
|
|
17571
17571
|
}
|
|
17572
17572
|
}
|
|
17573
|
-
return o instanceof Function && (o = o()), i.at === "@str" ? o : this.#
|
|
17573
|
+
return o instanceof Function && (o = o()), i.at === "@str" ? o : this.#O(o);
|
|
17574
17574
|
};
|
|
17575
|
-
#
|
|
17575
|
+
#O(t) {
|
|
17576
17576
|
const e = t;
|
|
17577
17577
|
if (e === "true")
|
|
17578
17578
|
return !0;
|
|
@@ -17607,8 +17607,8 @@ class pr {
|
|
|
17607
17607
|
"sys:sn.tagCh.canskip": (t) => this.#D(t),
|
|
17608
17608
|
"sys:sn.auto.msecPageWait": (t) => this.#H(t),
|
|
17609
17609
|
"sys:sn.auto.msecPageWait_Kidoku": (t) => this.#H(t),
|
|
17610
|
-
"sys:sn.auto.msecLineWait": (t) => this.#
|
|
17611
|
-
"sys:sn.auto.msecLineWait_Kidoku": (t) => this.#
|
|
17610
|
+
"sys:sn.auto.msecLineWait": (t) => this.#S(t),
|
|
17611
|
+
"sys:sn.auto.msecLineWait_Kidoku": (t) => this.#S(t),
|
|
17612
17612
|
// save
|
|
17613
17613
|
"save:sn.doRecLog": (t) => {
|
|
17614
17614
|
this.#m(
|
|
@@ -17647,7 +17647,7 @@ class pr {
|
|
|
17647
17647
|
this.cfg.oCfg.init.auto_msecpagewait === void 0 ? 3500 : this.cfg.oCfg.init.auto_msecpagewait
|
|
17648
17648
|
);
|
|
17649
17649
|
}
|
|
17650
|
-
#
|
|
17650
|
+
#S(t) {
|
|
17651
17651
|
D(this.#n, t, 500);
|
|
17652
17652
|
}
|
|
17653
17653
|
#X(t) {
|
|
@@ -20039,8 +20039,7 @@ class Y {
|
|
|
20039
20039
|
destroy() {
|
|
20040
20040
|
this.fncFirstComp = () => {
|
|
20041
20041
|
}, this.fncAllComp = () => {
|
|
20042
|
-
}, this.#l = () => {
|
|
20043
|
-
}, this.#d.forEach((t) => {
|
|
20042
|
+
}, this.#l = (t) => t.destroy(), this.#d.forEach((t) => {
|
|
20044
20043
|
t.parent?.removeChild(t), t.destroy();
|
|
20045
20044
|
}), this.#d = [];
|
|
20046
20045
|
}
|
|
@@ -20340,7 +20339,7 @@ class K extends Rt {
|
|
|
20340
20339
|
static #t;
|
|
20341
20340
|
static #e;
|
|
20342
20341
|
static init(t, e) {
|
|
20343
|
-
K.#t = t, K.#e = e, K.#k = /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, K.#
|
|
20342
|
+
K.#t = t, K.#e = e, K.#k = /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, K.#T = /[[({〈「『【〔“〝]/, K.#F = /[─‥…]/;
|
|
20344
20343
|
}
|
|
20345
20344
|
static #i;
|
|
20346
20345
|
static setEvtMng(t) {
|
|
@@ -20401,7 +20400,7 @@ class K extends Rt {
|
|
|
20401
20400
|
this.#r.style.cssText = "";
|
|
20402
20401
|
else
|
|
20403
20402
|
"alpha" in t && (e.opacity = String(this.spLay.alpha));
|
|
20404
|
-
if ("width" in t && (e.width = (t.width ?? "0") + "px"), "height" in t && (e.height = (t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = (t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = (t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = (t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = (t.pb ?? "0") + "px"), "kinsoku_sol" in t && (K.#k = new RegExp(`[${t.kinsoku_sol}]`)), "kinsoku_eol" in t && (K.#
|
|
20403
|
+
if ("width" in t && (e.width = (t.width ?? "0") + "px"), "height" in t && (e.height = (t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = (t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = (t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = (t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = (t.pb ?? "0") + "px"), "kinsoku_sol" in t && (K.#k = new RegExp(`[${t.kinsoku_sol}]`)), "kinsoku_eol" in t && (K.#T = new RegExp(`[${t.kinsoku_eol}]`)), "kinsoku_dns" in t && (K.#F = new RegExp(`[${t.kinsoku_dns}]`)), this.#c(), this.#l.sethArg(t), this.#v = this.spLay.position.x, e.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`, this.cvsResize(), e.display = this.spLay.visible ? "inline" : "none", e.textShadow = t.filter ?? e.textShadow ?? "", this.#u = W(t, "break_fixed", this.#u), this.#m = D(t, "break_fixed_left", this.#m), this.#p = D(t, "break_fixed_top", this.#p), ":redraw" in t && this.#A > 0) {
|
|
20405
20404
|
const i = [
|
|
20406
20405
|
this.#r.innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
|
|
20407
20406
|
`<span class='sn_ch' data-add='{"ch_in_style":"default"}'> </span>`
|
|
@@ -20624,15 +20623,15 @@ class K extends Rt {
|
|
|
20624
20623
|
#_ = void 0;
|
|
20625
20624
|
// 文字にかけるフィルター
|
|
20626
20625
|
#g = [];
|
|
20627
|
-
#
|
|
20626
|
+
#P = [];
|
|
20628
20627
|
#A = 0;
|
|
20629
20628
|
static #k;
|
|
20630
|
-
static #
|
|
20629
|
+
static #T;
|
|
20631
20630
|
static #F;
|
|
20632
20631
|
static #j = "<span class='sn_ch sn_ch_last'> </span>";
|
|
20633
20632
|
goTxt(t, e) {
|
|
20634
20633
|
K.#D.visible = !1;
|
|
20635
|
-
let i = this.#
|
|
20634
|
+
let i = this.#P.length, n = "";
|
|
20636
20635
|
if (i === 0) {
|
|
20637
20636
|
if (K.#t.oCfg.debug.masume && (R.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${this.#a.pad_left} pr:${this.#a.pad_right} pt:${this.#a.pad_top} pb:${this.#a.pad_bottom} w:${this.#a.$width} h:${this.#a.$height}`), this.#n.clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-this.#a.pad_left, -this.#a.pad_top, this.#a.$width, this.#a.$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
|
|
20638
20637
|
0,
|
|
@@ -20670,7 +20669,7 @@ class K extends Rt {
|
|
|
20670
20669
|
}
|
|
20671
20670
|
let u = 0, c = 2, f = !1;
|
|
20672
20671
|
do {
|
|
20673
|
-
const _ = this.#
|
|
20672
|
+
const _ = this.#P = this.#H(this.#r, l);
|
|
20674
20673
|
if (u = _.length, !f && (u < 2 || i === u)) {
|
|
20675
20674
|
i > 0 && i === u && (this.#r.innerHTML = n.replaceAll('class="sn_ch"', 'class="sn_ch sn_ch_in_default"'));
|
|
20676
20675
|
break;
|
|
@@ -20700,7 +20699,7 @@ class K extends Rt {
|
|
|
20700
20699
|
if (K.#F.test(E) && E === x.ch)
|
|
20701
20700
|
c = T;
|
|
20702
20701
|
else {
|
|
20703
|
-
if (K.#
|
|
20702
|
+
if (K.#T.test(E))
|
|
20704
20703
|
c = T;
|
|
20705
20704
|
else if (K.#k.test(x.ch))
|
|
20706
20705
|
for (c = T + 1; c > 0 && K.#k.test(_[--c].ch); )
|
|
@@ -20709,7 +20708,7 @@ class K extends Rt {
|
|
|
20709
20708
|
++c;
|
|
20710
20709
|
continue;
|
|
20711
20710
|
}
|
|
20712
|
-
for (c = T + 1; c > 0 && K.#
|
|
20711
|
+
for (c = T + 1; c > 0 && K.#T.test(_[--c].ch); )
|
|
20713
20712
|
;
|
|
20714
20713
|
}
|
|
20715
20714
|
const I = _[c].elm.parentElement, L = document.createElement("br");
|
|
@@ -20727,9 +20726,9 @@ class K extends Rt {
|
|
|
20727
20726
|
}, m = K.#t.oCfg.debug.masume ? (_, g) => {
|
|
20728
20727
|
d(_, g), this.#n.beginFill(6737151, 0.5).lineStyle(2, 16724736, 1).drawRect(g.x, g.y, g.width, g.height).endFill();
|
|
20729
20728
|
} : () => {
|
|
20730
|
-
}, p = X.ease(this.#
|
|
20729
|
+
}, p = X.ease(this.#S);
|
|
20731
20730
|
for (let _ = i; _ < u; ++_) {
|
|
20732
|
-
const g = this.#
|
|
20731
|
+
const g = this.#P[_], x = g.rect, w = JSON.parse(g.elm.dataset.arg ?? '{"delay": 0}'), T = JSON.parse(g.elm.dataset.add ?? "{}"), O = K.#C[T.ch_in_style];
|
|
20733
20732
|
if (m(g, x), g.elm.dataset.cmd === "grp") {
|
|
20734
20733
|
const E = new Rt();
|
|
20735
20734
|
this.#s.addChild(E), new Y(w.pic, E, (P) => {
|
|
@@ -20759,25 +20758,25 @@ class K extends Rt {
|
|
|
20759
20758
|
}
|
|
20760
20759
|
}
|
|
20761
20760
|
const v = this.#r.querySelectorAll("span.sn_ch");
|
|
20762
|
-
this.#
|
|
20761
|
+
this.#O = () => (this.#O = () => !1, v.forEach((_) => _.className = _.className.replaceAll(/ go_ch_in_[^\s"]+/g, "")), K.#D.position.set(
|
|
20763
20762
|
this.#m,
|
|
20764
20763
|
this.#p
|
|
20765
20764
|
), K.#D.visible = !0, K.#i.noticeCompTxt(), !0), v.forEach((_) => _.className = _.className.replaceAll(/sn_ch_in_([^\s"]+)/g, "go_ch_in_$1")), i > 0 && ++i;
|
|
20766
20765
|
let y;
|
|
20767
20766
|
for (let _ = u - 2; _ >= 0; --_) {
|
|
20768
|
-
const { elm: g } = this.#
|
|
20767
|
+
const { elm: g } = this.#P[_];
|
|
20769
20768
|
if (g.tagName === "SPAN") {
|
|
20770
20769
|
y = g.parentElement?.tagName === "RUBY" ? g.parentElement.parentElement ?? g : g;
|
|
20771
20770
|
break;
|
|
20772
20771
|
}
|
|
20773
20772
|
}
|
|
20774
20773
|
if (!y || e || i === u) {
|
|
20775
|
-
this.#
|
|
20774
|
+
this.#O();
|
|
20776
20775
|
return;
|
|
20777
20776
|
}
|
|
20778
|
-
y.addEventListener("animationend", this.#
|
|
20777
|
+
y.addEventListener("animationend", this.#O, { once: !0, passive: !0 });
|
|
20779
20778
|
}
|
|
20780
|
-
#
|
|
20779
|
+
#O = () => !1;
|
|
20781
20780
|
#z(t, e, i, n, s, o) {
|
|
20782
20781
|
t.alpha = 0, e.x && (n.x = e.x.at(0) === "=" ? n.x + parseInt(e.x.slice(1)) : parseInt(e.x)), e.y && (n.y = e.y.at(0) === "=" ? n.y + parseInt(e.y.slice(1)) : parseInt(e.y)), e.width && (n.width = parseInt(e.width)), e.height && (n.height = parseInt(e.height)), e.wait && (o.wait = parseInt(e.wait)), t.width = n.width, t.height = n.height, o.x ? t.position.set(
|
|
20783
20782
|
o.x.at(0) === "=" ? n.x + t.width * o.nx : o.nx,
|
|
@@ -20792,7 +20791,7 @@ class K extends Rt {
|
|
|
20792
20791
|
this.#g.push(a);
|
|
20793
20792
|
}
|
|
20794
20793
|
skipChIn() {
|
|
20795
|
-
let t = this.#
|
|
20794
|
+
let t = this.#O();
|
|
20796
20795
|
for (const e of this.#g)
|
|
20797
20796
|
e.tw && (e.tw.stop().end(), t = !0);
|
|
20798
20797
|
return this.#g = [], t;
|
|
@@ -20907,10 +20906,10 @@ class K extends Rt {
|
|
|
20907
20906
|
}
|
|
20908
20907
|
return n.detach(), i;
|
|
20909
20908
|
}
|
|
20910
|
-
#
|
|
20909
|
+
#S = "Quadratic.Out";
|
|
20911
20910
|
#X = "Quadratic.Out";
|
|
20912
20911
|
#L() {
|
|
20913
|
-
this.#n.clear(), this.#
|
|
20912
|
+
this.#n.clear(), this.#P = [], this.#A = 0, this.skipChIn();
|
|
20914
20913
|
const t = this.#r.cloneNode(!0);
|
|
20915
20914
|
t.textContent = "";
|
|
20916
20915
|
const e = this.#r;
|
|
@@ -20944,7 +20943,7 @@ class K extends Rt {
|
|
|
20944
20943
|
reNew() {
|
|
20945
20944
|
this.#L();
|
|
20946
20945
|
const t = new K(this.spLay, () => this.canFocus(), this.sys);
|
|
20947
|
-
return t.#a = this.#a, t.#r.style.cssText = this.#r.style.cssText, t.#v = this.#v, t.name = this.name, t.#c(), t.#l.sethArg(this.#l.gethArg()), t.#_ = this.#_, t.#
|
|
20946
|
+
return t.#a = this.#a, t.#r.style.cssText = this.#r.style.cssText, t.#v = this.#v, t.name = this.name, t.#c(), t.#l.sethArg(this.#l.gethArg()), t.#_ = this.#_, t.#S = this.#S, t.#X = this.#X, t.#u = this.#u, t.#m = this.#m, t.#p = this.#p, this.destroy(), t;
|
|
20948
20947
|
}
|
|
20949
20948
|
record() {
|
|
20950
20949
|
return {
|
|
@@ -20953,7 +20952,7 @@ class K extends Rt {
|
|
|
20953
20952
|
left: this.#v,
|
|
20954
20953
|
idc_hArg: this.#l.gethArg(),
|
|
20955
20954
|
ch_filter: this.#_,
|
|
20956
|
-
fi_easing: this.#
|
|
20955
|
+
fi_easing: this.#S,
|
|
20957
20956
|
fo_easing: this.#X,
|
|
20958
20957
|
break_fixed: this.#u,
|
|
20959
20958
|
break_fixed_left: this.#m,
|
|
@@ -20961,7 +20960,7 @@ class K extends Rt {
|
|
|
20961
20960
|
};
|
|
20962
20961
|
}
|
|
20963
20962
|
playback(t) {
|
|
20964
|
-
this.#a = t.infTL, this.position.set(this.#a.pad_left, this.#a.pad_top), this.#r.style.cssText = t.cssText, this.#v = t.left, this.#c(), this.#l.sethArg(t.idc_hArg), this.#_ = t.ch_filter, this.#
|
|
20963
|
+
this.#a = t.infTL, this.position.set(this.#a.pad_left, this.#a.pad_top), this.#r.style.cssText = t.cssText, this.#v = t.left, this.#c(), this.#l.sethArg(t.idc_hArg), this.#_ = t.ch_filter, this.#S = t.fi_easing, this.#X = t.fo_easing, this.#u = t.break_fixed ?? !1, this.#m = t.break_fixed_left ?? 0, this.#p = t.break_fixed_top ?? 0;
|
|
20965
20964
|
}
|
|
20966
20965
|
#M = void 0;
|
|
20967
20966
|
snapshot(t, e) {
|
|
@@ -21363,9 +21362,9 @@ class it extends ne {
|
|
|
21363
21362
|
"padding-top": 0,
|
|
21364
21363
|
"padding-bottom": 0
|
|
21365
21364
|
};
|
|
21366
|
-
#
|
|
21365
|
+
#P = new Rt();
|
|
21367
21366
|
constructor() {
|
|
21368
|
-
super(), this.spLay.addChild(this.#o), this.#y.init(this.#M), this.spLay.addChild(this.#
|
|
21367
|
+
super(), this.spLay.addChild(this.#o), this.#y.init(this.#M), this.spLay.addChild(this.#P), this.#P.name = "cntBtn";
|
|
21369
21368
|
const t = 16;
|
|
21370
21369
|
this.lay({ style: `width: ${R.stageW}px; height: ${R.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${t}px;`, in_style: "default", out_style: "default", back_clear: "true" });
|
|
21371
21370
|
}
|
|
@@ -21386,7 +21385,7 @@ class it extends ne {
|
|
|
21386
21385
|
this.#o.cvsResize();
|
|
21387
21386
|
}
|
|
21388
21387
|
cvsResizeChildren() {
|
|
21389
|
-
for (const t of this.#
|
|
21388
|
+
for (const t of this.#P.children)
|
|
21390
21389
|
t.cvsResize();
|
|
21391
21390
|
}
|
|
21392
21391
|
procSetX(t) {
|
|
@@ -21396,7 +21395,7 @@ class it extends ne {
|
|
|
21396
21395
|
this.#o.lay({ y: t });
|
|
21397
21396
|
}
|
|
21398
21397
|
lay(t) {
|
|
21399
|
-
if (super.lay(t), ne.setXY(this.spLay, t, this.spLay), t[":id_tag"] = this.name_.slice(0, -7), Ve.setting(t), this.#C(t), this.#o.lay(t), "r_align" in t && (this.#
|
|
21398
|
+
if (super.lay(t), ne.setXY(this.spLay, t, this.spLay), t[":id_tag"] = this.name_.slice(0, -7), Ve.setting(t), this.#C(t), this.#o.lay(t), "r_align" in t && (this.#S = t.r_align ?? ""), this.#H = R.isSafari ? this.#o.tategaki ? (e, i) => `text-align: start; height: ${i}em; padding-top: ${e}; padding-bottom: ${e};` : (e, i) => `text-align: start; width: ${i}em; padding-left: ${e}; padding-right: ${e};` : this.#o.tategaki ? (e) => `text-align: justify; text-align-last: justify; padding-top: ${e}; padding-bottom: ${e};` : (e) => `text-align: justify; text-align-last: justify; padding-left: ${e}; padding-right: ${e};`, R.isFirefox && (this.mkStyle_r_align = this.#X), "r_style" in t)
|
|
21400
21399
|
if (t.r_style) {
|
|
21401
21400
|
const e = document.createElement("span");
|
|
21402
21401
|
e.style.cssText = t.r_style;
|
|
@@ -21412,7 +21411,7 @@ class it extends ne {
|
|
|
21412
21411
|
} else
|
|
21413
21412
|
this.#_.style.cssText = "";
|
|
21414
21413
|
if ("alpha" in t)
|
|
21415
|
-
for (const e of this.#
|
|
21414
|
+
for (const e of this.#P.children)
|
|
21416
21415
|
e.alpha = this.spLay.alpha;
|
|
21417
21416
|
return this.#A(t), this.#F(t), this.#z(t, (e) => {
|
|
21418
21417
|
e && it.#h.resume();
|
|
@@ -21425,10 +21424,10 @@ class it extends ne {
|
|
|
21425
21424
|
const i = K.getChInStyle(e);
|
|
21426
21425
|
if (!i)
|
|
21427
21426
|
throw `存在しないin_style【${e}】です`;
|
|
21428
|
-
this.#k = e, this.#
|
|
21427
|
+
this.#k = e, this.#T = i.join;
|
|
21429
21428
|
}
|
|
21430
21429
|
#k = "";
|
|
21431
|
-
#
|
|
21430
|
+
#T = !0;
|
|
21432
21431
|
get width() {
|
|
21433
21432
|
return this.#o.getWidth;
|
|
21434
21433
|
}
|
|
@@ -21444,7 +21443,7 @@ class it extends ne {
|
|
|
21444
21443
|
this.#j = e;
|
|
21445
21444
|
}
|
|
21446
21445
|
#j = "";
|
|
21447
|
-
#
|
|
21446
|
+
#O = new Y();
|
|
21448
21447
|
#z(t, e) {
|
|
21449
21448
|
if ("back_clear" in t)
|
|
21450
21449
|
return W(t, "back_clear", !1) && (this.#p = 0, this.#c = 0, this.#v = !1, this.#x = ""), e(!1), !1;
|
|
@@ -21452,11 +21451,11 @@ class it extends ne {
|
|
|
21452
21451
|
const i = (this.#v ? 1 : Number(it.#e.getVal("sys:TextLayer.Back.Alpha"))) * this.#c;
|
|
21453
21452
|
if (t.b_pic) {
|
|
21454
21453
|
if (this.#x !== t.b_pic)
|
|
21455
|
-
return this.#x = t.b_pic, this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()), this.#
|
|
21454
|
+
return this.#x = t.b_pic, this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()), this.#O = new Y(this.#x, this.spLay, (n) => {
|
|
21456
21455
|
this.#f = n, n.name = "back(pic)", n.visible = i > 0, n.alpha = i, this.#o.setSize(n.width, n.height), this.spLay.setChildIndex(n, 0), e(!0);
|
|
21457
|
-
}), this.#
|
|
21456
|
+
}), this.#O.ret;
|
|
21458
21457
|
} else
|
|
21459
|
-
"b_color" in t && (this.#p = nu(t, "b_color", 0), this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()
|
|
21458
|
+
"b_color" in t && (this.#p = nu(t, "b_color", 0), this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()), this.#x = "", this.spLay.addChildAt(
|
|
21460
21459
|
(this.#f = new Se()).beginFill(this.#p).lineStyle(void 0).drawRect(0, 0, this.#o.getWidth, this.#o.getHeight).endFill(),
|
|
21461
21460
|
0
|
|
21462
21461
|
), this.#f.name = "back(color)");
|
|
@@ -21508,7 +21507,7 @@ class it extends ne {
|
|
|
21508
21507
|
}
|
|
21509
21508
|
return ` style='${o} ${n}'`;
|
|
21510
21509
|
}
|
|
21511
|
-
#
|
|
21510
|
+
#S = "";
|
|
21512
21511
|
#X(t, e, i, n = "") {
|
|
21513
21512
|
if (!i)
|
|
21514
21513
|
return ` style='${n}'`;
|
|
@@ -21560,7 +21559,7 @@ class it extends ne {
|
|
|
21560
21559
|
this.#B ? (this.#B = !1, n = "<ruby> <rt> </rt></ruby><br/>") : n = "<br/>";
|
|
21561
21560
|
break;
|
|
21562
21561
|
}
|
|
21563
|
-
this.#B && (this.#B = !1, e === "" && (e = " ")), n = this.#q(t, e, this.#
|
|
21562
|
+
this.#B && (this.#B = !1, e === "" && (e = " ")), n = this.#q(t, e, this.#S);
|
|
21564
21563
|
break;
|
|
21565
21564
|
default:
|
|
21566
21565
|
switch (s) {
|
|
@@ -21602,8 +21601,8 @@ class it extends ne {
|
|
|
21602
21601
|
n = `<span${l} style='${u} ${h.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(h)}'${c} style='${u} display: inline;'> </span><rt${c}${this.mkStyle_r_align(
|
|
21603
21602
|
" ",
|
|
21604
21603
|
h.r,
|
|
21605
|
-
this.#
|
|
21606
|
-
this.#_.style.cssText + (this.#
|
|
21604
|
+
this.#S,
|
|
21605
|
+
this.#_.style.cssText + (this.#E.at(-1)?.o.r_style ?? "") + h.r_style
|
|
21607
21606
|
)}>${h.r}</rt></ruby></span>`;
|
|
21608
21607
|
}
|
|
21609
21608
|
break;
|
|
@@ -21618,8 +21617,8 @@ text-combine-upright: all;
|
|
|
21618
21617
|
-webkit-text-combine: horizontal;'>${h}</span><rt${v}${this.mkStyle_r_align(
|
|
21619
21618
|
h,
|
|
21620
21619
|
d,
|
|
21621
|
-
this.#
|
|
21622
|
-
this.#_.style.cssText + (this.#
|
|
21620
|
+
this.#S,
|
|
21621
|
+
this.#_.style.cssText + (this.#E.at(-1)?.o.r_style ?? "") + f
|
|
21623
21622
|
)}>${d}</rt></ruby></span>`;
|
|
21624
21623
|
}
|
|
21625
21624
|
break;
|
|
@@ -21642,7 +21641,7 @@ text-combine-upright: all;
|
|
|
21642
21641
|
this.#L = !0, this.#U.push("</span>"), this.#Y();
|
|
21643
21642
|
return;
|
|
21644
21643
|
default:
|
|
21645
|
-
this.#L = !0, n = this.#q(t, e, this.#
|
|
21644
|
+
this.#L = !0, n = this.#q(t, e, this.#S);
|
|
21646
21645
|
}
|
|
21647
21646
|
break;
|
|
21648
21647
|
}
|
|
@@ -21657,46 +21656,46 @@ text-combine-upright: all;
|
|
|
21657
21656
|
t,
|
|
21658
21657
|
e,
|
|
21659
21658
|
i,
|
|
21660
|
-
this.#_.style.cssText + (this.#
|
|
21659
|
+
this.#_.style.cssText + (this.#E.at(-1)?.o.r_style ?? "")
|
|
21661
21660
|
)}>${e}</rt></ruby></span>` : `<span${s} style='${o} ${this.#I(t)}'${a}>${n}</span>`;
|
|
21662
21661
|
}
|
|
21663
21662
|
#R(t, e, i = `
|
|
21664
21663
|
`) {
|
|
21665
|
-
const n = this.#
|
|
21666
|
-
it.#l.isSkipping() ? this.#W = 0 : t && this.#
|
|
21664
|
+
const n = this.#T ? e ?? this.#E.at(0)?.o.wait ?? (it.#a ? it.#u[i.at(0) ?? ""] ?? 0 : Ci.msecChWait) : 0;
|
|
21665
|
+
it.#l.isSkipping() ? this.#W = 0 : t && this.#T && (this.#W += Number(n));
|
|
21667
21666
|
const s = `data-add='{"ch_in_style":"${this.#k}", "ch_out_style":"${this.#j}"}'`;
|
|
21668
21667
|
return {
|
|
21669
21668
|
cl: ` class='sn_ch${n > 0 ? ` sn_ch_in_${this.#k}` : ""}'`,
|
|
21670
21669
|
// TxtStage.goTxt()はこれ単位で文字出現させる
|
|
21671
|
-
sty: `animation-delay: ${this.#W}ms;${this.#
|
|
21670
|
+
sty: `animation-delay: ${this.#W}ms;${this.#E.at(-1)?.o.style ?? ""}`,
|
|
21672
21671
|
// TxtStage.goTxt()はこれ単位で文字出現させる
|
|
21673
|
-
lnk: (this.#
|
|
21672
|
+
lnk: (this.#E.at(0)?.o[":link"] ?? "") + " " + s,
|
|
21674
21673
|
curpos: s
|
|
21675
21674
|
};
|
|
21676
21675
|
}
|
|
21677
21676
|
#W = 0;
|
|
21678
21677
|
#B = !0;
|
|
21679
21678
|
#U = [];
|
|
21680
|
-
#
|
|
21679
|
+
#E = [];
|
|
21681
21680
|
#Z(t) {
|
|
21682
|
-
this.#
|
|
21681
|
+
this.#E.push({
|
|
21683
21682
|
o: t,
|
|
21684
|
-
r_align: this.#
|
|
21683
|
+
r_align: this.#S,
|
|
21685
21684
|
ch_in_style: this.#k,
|
|
21686
21685
|
ch_out_style: this.#j
|
|
21687
|
-
}), "r_align" in t && (this.#
|
|
21686
|
+
}), "r_align" in t && (this.#S = t.r_align), this.#A(t), this.#F(t);
|
|
21688
21687
|
}
|
|
21689
21688
|
#Y() {
|
|
21690
|
-
const t = this.#
|
|
21691
|
-
t && (this.#
|
|
21689
|
+
const t = this.#E.pop();
|
|
21690
|
+
t && (this.#S = t.r_align, this.#A({ in_style: t.ch_in_style }), this.#F({ out_style: t.ch_out_style }));
|
|
21692
21691
|
}
|
|
21693
21692
|
#N(t) {
|
|
21694
|
-
const e = this.#
|
|
21693
|
+
const e = this.#E.at(-1);
|
|
21695
21694
|
if (!e) {
|
|
21696
21695
|
this.#Z(t);
|
|
21697
21696
|
return;
|
|
21698
21697
|
}
|
|
21699
|
-
e.o = { ...e.o, ...t }, !t.style && !t.r_style && (e.o.style = "", e.o.r_style = ""), "r_align" in t && (this.#
|
|
21698
|
+
e.o = { ...e.o, ...t }, !t.style && !t.r_style && (e.o.style = "", e.o.r_style = ""), "r_align" in t && (this.#S = t.r_align), this.#A(t), this.#F(t);
|
|
21700
21699
|
}
|
|
21701
21700
|
click = () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : this.#o.skipChIn();
|
|
21702
21701
|
clearText() {
|
|
@@ -21717,23 +21716,23 @@ text-combine-upright: all;
|
|
|
21717
21716
|
this.spLay.interactiveChildren = t;
|
|
21718
21717
|
}
|
|
21719
21718
|
addButton = (t) => new Promise((e) => {
|
|
21720
|
-
t.key = `btn=[${this.#
|
|
21719
|
+
t.key = `btn=[${this.#P.children.length}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), W(t, "hint_tate", this.#o.tategaki);
|
|
21721
21720
|
const i = new Ne(t, it.#l, () => e(), () => this.canFocus());
|
|
21722
|
-
i.name = JSON.stringify(t).replaceAll('"', "'"), this.#
|
|
21721
|
+
i.name = JSON.stringify(t).replaceAll('"', "'"), this.#P.addChild(i);
|
|
21723
21722
|
});
|
|
21724
21723
|
canFocus() {
|
|
21725
21724
|
return (this.spLay.interactiveChildren ?? !1) && this.spLay.visible && it.#i(this);
|
|
21726
21725
|
}
|
|
21727
21726
|
clearLay(t) {
|
|
21728
21727
|
super.clearLay(t), this.clearText();
|
|
21729
|
-
for (const e of this.#
|
|
21728
|
+
for (const e of this.#P.removeChildren())
|
|
21730
21729
|
e.destroy();
|
|
21731
21730
|
}
|
|
21732
21731
|
record = () => ({
|
|
21733
21732
|
...super.record(),
|
|
21734
21733
|
enabled: this.enabled,
|
|
21735
21734
|
r_cssText: this.#_.style.cssText,
|
|
21736
|
-
r_align: this.#
|
|
21735
|
+
r_align: this.#S,
|
|
21737
21736
|
// バック
|
|
21738
21737
|
b_do: this.#f === void 0 ? void 0 : this.#f instanceof Vt ? "Sprite" : "Graphics",
|
|
21739
21738
|
b_pic: this.#x,
|
|
@@ -21743,10 +21742,10 @@ text-combine-upright: all;
|
|
|
21743
21742
|
ffs: this.#w,
|
|
21744
21743
|
txs: this.#o.record(),
|
|
21745
21744
|
strNoFFS: this.#D,
|
|
21746
|
-
btns: this.#
|
|
21745
|
+
btns: this.#P.children.map((t) => t.name)
|
|
21747
21746
|
});
|
|
21748
21747
|
playback(t, e) {
|
|
21749
|
-
super.playback(t, e), this.enabled = t.enabled, this.#_.style.cssText = t.r_cssText, this.#
|
|
21748
|
+
super.playback(t, e), this.enabled = t.enabled, this.#_.style.cssText = t.r_cssText, this.#S = t.r_align, this.cvsResize(), this.#C(t), this.#o.playback(t.txs), this.#c = t.b_alpha, this.#v = t.b_alpha_isfixed, e.push(new Promise((n) => {
|
|
21750
21749
|
const s = t.b_do ? t.b_do === "Sprite" ? { b_pic: t.b_pic } : { b_color: t.b_color } : { b_pic: "" };
|
|
21751
21750
|
s.b_alpha = t.b_alpha, s.b_alpha_isfixed = t.b_alpha_isfixed, this.#z(s, (o) => {
|
|
21752
21751
|
o && n();
|
|
@@ -21766,18 +21765,18 @@ text-combine-upright: all;
|
|
|
21766
21765
|
}
|
|
21767
21766
|
makeDesignCastChildren(t) {
|
|
21768
21767
|
if (this.spLay.visible)
|
|
21769
|
-
for (const e of this.#
|
|
21768
|
+
for (const e of this.#P.children)
|
|
21770
21769
|
e.makeDesignCast(t);
|
|
21771
21770
|
}
|
|
21772
21771
|
showDesignCast() {
|
|
21773
21772
|
this.#o.showDesignCast();
|
|
21774
21773
|
}
|
|
21775
21774
|
showDesignCastChildren() {
|
|
21776
|
-
for (const t of this.#
|
|
21775
|
+
for (const t of this.#P.children)
|
|
21777
21776
|
t.showDesignCast();
|
|
21778
21777
|
}
|
|
21779
21778
|
dump() {
|
|
21780
|
-
return this.#M("", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${this.#o.dump()}, "b_pic":"${this.#x}", "b_color":"${this.#p}", "b_alpha":${this.#c}, "b_alpha_isfixed":"${this.#v}", "width":${this.#o.getWidth}, "height":${this.#o.getHeight}, "pixi_obj":[${this.spLay.children.map((t) => `{"class":"${t instanceof Vt ? "Sprite" : t instanceof Se ? "Graphics" : t instanceof Rt ? "Container" : "?"}", "name":"${t.name}", "alpha":${t.alpha}, "x":${t.x}, "y":${t.y}, "visible":"${t.visible}"}`).join(",")}], "button":[${this.#
|
|
21779
|
+
return this.#M("", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${this.#o.dump()}, "b_pic":"${this.#x}", "b_color":"${this.#p}", "b_alpha":${this.#c}, "b_alpha_isfixed":"${this.#v}", "width":${this.#o.getWidth}, "height":${this.#o.getHeight}, "pixi_obj":[${this.spLay.children.map((t) => `{"class":"${t instanceof Vt ? "Sprite" : t instanceof Se ? "Graphics" : t instanceof Rt ? "Container" : "?"}", "name":"${t.name}", "alpha":${t.alpha}, "x":${t.x}, "y":${t.y}, "visible":"${t.visible}"}`).join(",")}], "button":[${this.#P.children.map((t) => t.children[0].name ?? "{}").join(",")}]`;
|
|
21781
21780
|
}
|
|
21782
21781
|
}
|
|
21783
21782
|
class Re {
|
|
@@ -22023,7 +22022,7 @@ class Ci {
|
|
|
22023
22022
|
}, 1e3 / 60 * 10));
|
|
22024
22023
|
}, { passive: !0 });
|
|
22025
22024
|
}
|
|
22026
|
-
a.cvsResize(), it.init(t, e, n, this, (p) => this.#o[p.layname].fore === p, i), He.init(s, t, i, a, h, n), Re.init(t, a, s), Ne.init(t), this.#r = new Re(t, e, i, n, s, a), a.hFactoryCls.grp = () => new He(), a.hFactoryCls.txt = () => new it(), e.loadplugin = (p) => this.#f(p), e.snapshot = (p) => this.#v(p), e.add_lay = (p) => this.#x(p), e.clear_lay = (p) => this.#k(p), e.finish_trans = () => X.finish_trans(), e.lay = (p) => this.#
|
|
22025
|
+
a.cvsResize(), it.init(t, e, n, this, (p) => this.#o[p.layname].fore === p, i), He.init(s, t, i, a, h, n), Re.init(t, a, s), Ne.init(t), this.#r = new Re(t, e, i, n, s, a), a.hFactoryCls.grp = () => new He(), a.hFactoryCls.txt = () => new it(), e.loadplugin = (p) => this.#f(p), e.snapshot = (p) => this.#v(p), e.add_lay = (p) => this.#x(p), e.clear_lay = (p) => this.#k(p), e.finish_trans = () => X.finish_trans(), e.lay = (p) => this.#P(p), e.trans = (p) => this.#D(p), e.wt = (p) => X.wt(p), e.quake = (p) => this.#X(p), e.stop_quake = e.finish_trans, e.wq = (p) => e.wt(p), e.pause_tsy = (p) => X.pause_tsy(p), e.resume_tsy = (p) => X.resume_tsy(p), e.stop_tsy = (p) => X.stop_tsy(p), e.tsy = (p) => this.#L(p), e.wait_tsy = (p) => X.wait_tsy(p), e.ch = (p) => this.#q(p), e.clear_text = (p) => this.#K(p), e.current = (p) => this.#B(p), e.endlink = (p) => this.#tt(p), e.er = (p) => this.#nt(p), e.graph = (p) => this.#G(p), e.link = (p) => this.#st(p), e.r = (p) => this.#et(p), e.rec_ch = (p) => this.#it(p), e.rec_r = (p) => this.#ot(p), e.reset_rec = (p) => this.#at(p), e.ruby2 = (p) => this.#ht(p), e.span = (p) => this.#J(p), e.tcy = (p) => this.#rt(p), e.add_face = (p) => Y.add_face(p), e.wv = (p) => Y.wv(p), e.dump_lay = (p) => this.#lt(p), e.enable_event = (p) => this.#ut(p), e.button = (p) => this.#ct(p), t.existsBreakline && (this.breakLine = (p) => {
|
|
22027
22026
|
delete p.visible, p.id = "break", p.pic = "breakline";
|
|
22028
22027
|
const v = encodeURIComponent(JSON.stringify(p));
|
|
22029
22028
|
this.#c("grp|" + v);
|
|
@@ -22215,7 +22214,7 @@ class Ci {
|
|
|
22215
22214
|
// 最適化用
|
|
22216
22215
|
#_ = "";
|
|
22217
22216
|
#g = "";
|
|
22218
|
-
#
|
|
22217
|
+
#P(t) {
|
|
22219
22218
|
const e = this.#Y(t), i = this.#o[e], n = i.back.spLay, s = i.fore.spLay;
|
|
22220
22219
|
if (W(t, "float", !1))
|
|
22221
22220
|
this.#i.setChildIndex(n, this.#i.children.length - 1), this.#e.setChildIndex(s, this.#e.children.length - 1), this.#A();
|
|
@@ -22235,7 +22234,7 @@ class Ci {
|
|
|
22235
22234
|
return t[":id_tag"] = i.fore.name.slice(0, -7), this.scrItr.recodeDesign(t), i.lay(t);
|
|
22236
22235
|
}
|
|
22237
22236
|
#A() {
|
|
22238
|
-
this.#y = this.#
|
|
22237
|
+
this.#y = this.#S();
|
|
22239
22238
|
}
|
|
22240
22239
|
// レイヤ設定の消去
|
|
22241
22240
|
#k(t) {
|
|
@@ -22244,7 +22243,7 @@ class Ci {
|
|
|
22244
22243
|
t.page === "both" ? (i.fore.clearLay(t), i.back.clearLay(t)) : i.getPage(t).clearLay(t);
|
|
22245
22244
|
}), !1;
|
|
22246
22245
|
}
|
|
22247
|
-
#
|
|
22246
|
+
#T = `
|
|
22248
22247
|
precision mediump float;
|
|
22249
22248
|
|
|
22250
22249
|
varying vec2 vTextureCoord;
|
|
@@ -22280,12 +22279,12 @@ void main(void) {
|
|
|
22280
22279
|
vague: 0,
|
|
22281
22280
|
tick: 0
|
|
22282
22281
|
};
|
|
22283
|
-
#j = new Ze(void 0, this.#
|
|
22284
|
-
#
|
|
22282
|
+
#j = new Ze(void 0, this.#T, this.#F);
|
|
22283
|
+
#O = Ae.create({
|
|
22285
22284
|
width: R.stageW,
|
|
22286
22285
|
height: R.stageH
|
|
22287
22286
|
});
|
|
22288
|
-
#z = new Vt(this.#
|
|
22287
|
+
#z = new Vt(this.#O);
|
|
22289
22288
|
#C = Ae.create({
|
|
22290
22289
|
width: R.stageW,
|
|
22291
22290
|
height: R.stageH
|
|
@@ -22305,11 +22304,11 @@ void main(void) {
|
|
|
22305
22304
|
const y = this.#o[v][i[v] ? "back" : "fore"];
|
|
22306
22305
|
this.#I.push(y.spLay), s.push(y);
|
|
22307
22306
|
}
|
|
22308
|
-
this.#
|
|
22307
|
+
this.#O.resize(R.stageW, R.stageH), this.appPixi.renderer.render(this.#i, { renderTexture: this.#O });
|
|
22309
22308
|
let o = () => {
|
|
22310
22309
|
this.#i.visible = !0;
|
|
22311
22310
|
for (const v of this.#I)
|
|
22312
|
-
this.appPixi.renderer.render(v, { renderTexture: this.#
|
|
22311
|
+
this.appPixi.renderer.render(v, { renderTexture: this.#O, clear: !1 });
|
|
22313
22312
|
this.#i.visible = !1;
|
|
22314
22313
|
};
|
|
22315
22314
|
if (!s.some((v) => v.containMovement)) {
|
|
@@ -22384,7 +22383,7 @@ void main(void) {
|
|
|
22384
22383
|
}
|
|
22385
22384
|
return i;
|
|
22386
22385
|
}
|
|
22387
|
-
#
|
|
22386
|
+
#S(t = "") {
|
|
22388
22387
|
return this.#b(t).sort((e, i) => {
|
|
22389
22388
|
const n = this.#e.getChildIndex(this.#o[e].fore.spLay), s = this.#e.getChildIndex(this.#o[i].fore.spLay);
|
|
22390
22389
|
return n < s ? -1 : n > s ? 1 : 0;
|
|
@@ -22476,7 +22475,7 @@ void main(void) {
|
|
|
22476
22475
|
const { layer: e } = t;
|
|
22477
22476
|
if (!e)
|
|
22478
22477
|
throw "[current] layerは必須です";
|
|
22479
|
-
if (this.#
|
|
22478
|
+
if (this.#E = this.#o[e], !(this.#E.getPage(t) instanceof it))
|
|
22480
22479
|
throw `${e}はTxtLayerではありません`;
|
|
22481
22480
|
this.recPagebreak(), this.#_ = e, this.val.setVal_Nochk("save", "const.sn.mesLayer", e);
|
|
22482
22481
|
for (const i of this.#b()) {
|
|
@@ -22489,9 +22488,9 @@ void main(void) {
|
|
|
22489
22488
|
return this.#Z(), this.currentTxtlayFore;
|
|
22490
22489
|
}
|
|
22491
22490
|
get currentTxtlayFore() {
|
|
22492
|
-
return this.#
|
|
22491
|
+
return this.#E ? this.#E.fore : null;
|
|
22493
22492
|
}
|
|
22494
|
-
#
|
|
22493
|
+
#E;
|
|
22495
22494
|
// カレントテキストレイヤ
|
|
22496
22495
|
#Z = () => {
|
|
22497
22496
|
throw "文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい";
|
|
@@ -22527,7 +22526,7 @@ void main(void) {
|
|
|
22527
22526
|
}
|
|
22528
22527
|
// ページ両面の文字消去
|
|
22529
22528
|
#nt(t) {
|
|
22530
|
-
return W(t, "rec_page_break", !0) && this.recPagebreak(), this.#
|
|
22529
|
+
return W(t, "rec_page_break", !0) && this.recPagebreak(), this.#E && (this.#E.fore.clearLay(t), this.#E.back.clearLay(t)), !1;
|
|
22531
22530
|
}
|
|
22532
22531
|
// インライン画像表示
|
|
22533
22532
|
#G(t) {
|
|
@@ -24471,7 +24470,7 @@ class xe {
|
|
|
24471
24470
|
constructor(t, e, i, n, s, o, a, h, l) {
|
|
24472
24471
|
this.cfg = t, this.hTag = e, this.main = i, this.val = n, this.alzTagArg = s, this.runAnalyze = o, this.prpPrs = a, this.sndMng = h, this.sys = l, e.let_ml = (c) => this.#F(c), e.endlet_ml = () => !1, e.dump_stack = () => this.#j(), e.dump_script = (c) => this.#z(c), e.else = // その他ifブロック開始
|
|
24473
24472
|
e.elsif = // 別条件のifブロック開始
|
|
24474
|
-
e.endif = () => this.#H(), e.if = (c) => this.#
|
|
24473
|
+
e.endif = () => this.#H(), e.if = (c) => this.#S(c), e.call = (c) => this.#X(c), e.jump = (c) => this.#M(c), e.pop_stack = (c) => this.#q(c), e.return = (c) => this.#R(c), e.bracket2macro = (c) => this.#lt(c), e.char2macro = (c) => this.#ut(c), e.endmacro = (c) => this.#R(c), e.macro = (c) => this.#pt(c), e.load = (c) => this.#vt(c), e.reload_script = (c) => this.#mt(c), e.record_place = () => this.#yt(), e.save = (c) => this.#_t(c), t.oCfg.debug.token && (this.#Y = (c) => console.log(`🌱 トークン fn:${this.#e} idx:${this.#i} ln:${this.#r} token【${c}】`)), n.defTmp("const.sn.aIfStk.length", () => this.#b.length), n.defTmp("const.sn.vctCallStk.length", () => this.#s.length);
|
|
24475
24474
|
const u = t.oCfg.init.escape;
|
|
24476
24475
|
if (this.#n.setEscape(u), Ve.setEscape(u), R.isDbg) {
|
|
24477
24476
|
l.addHook((f, d) => this.#l[f]?.(d)), this.isBreak = this.#_;
|
|
@@ -24523,7 +24522,7 @@ class xe {
|
|
|
24523
24522
|
}
|
|
24524
24523
|
addLineNum = (t) => this.#r += t;
|
|
24525
24524
|
jumpJustBefore() {
|
|
24526
|
-
this.#
|
|
24525
|
+
this.#E(this.#e, "", --this.#i);
|
|
24527
24526
|
}
|
|
24528
24527
|
// 直前にジャンプ
|
|
24529
24528
|
#s = [];
|
|
@@ -24556,7 +24555,7 @@ class xe {
|
|
|
24556
24555
|
this.sys.send2Dbg(t.ri, {});
|
|
24557
24556
|
},
|
|
24558
24557
|
// 情報問い合わせ系
|
|
24559
|
-
stack: (t) => this.sys.send2Dbg(t.ri, { a: this.#
|
|
24558
|
+
stack: (t) => this.sys.send2Dbg(t.ri, { a: this.#P() }),
|
|
24560
24559
|
eval: (t) => {
|
|
24561
24560
|
this.sys.send2Dbg(t.ri, { v: this.prpPrs.parse(t.txt) });
|
|
24562
24561
|
},
|
|
@@ -24653,15 +24652,15 @@ class xe {
|
|
|
24653
24652
|
const t = xe.#x[Qn(this.#e)]?.[this.#r];
|
|
24654
24653
|
t?.hitCondition && --t.hitCondition;
|
|
24655
24654
|
}
|
|
24656
|
-
#
|
|
24655
|
+
#P() {
|
|
24657
24656
|
const t = this.#y === 3 ? 1 : 0, e = this.#t.aToken[this.#i - 1 + t], i = this.#u(this.#e), n = rs(e), s = n ? `[${n}]` : e, o = this.val.getVal("mp:const.sn.macro") ?? "{}";
|
|
24658
24657
|
if (this.#i === 0)
|
|
24659
24658
|
return [{ fn: i, ln: 1, col: 1, nm: s, ma: o }];
|
|
24660
|
-
const a = this.#
|
|
24659
|
+
const a = this.#O(this.#t, this.#i), h = [{ fn: i, ln: a.ln, col: a.col_s + 1, nm: s, ma: o }], l = this.#s.length;
|
|
24661
24660
|
if (l === 0)
|
|
24662
24661
|
return h;
|
|
24663
24662
|
for (let u = l - 1; u >= 0; --u) {
|
|
24664
|
-
const c = this.#s[u], f = this.#G[c.fn], d = f.aToken[c.idx - 1], m = this.#
|
|
24663
|
+
const c = this.#s[u], f = this.#G[c.fn], d = f.aToken[c.idx - 1], m = this.#O(f, c.idx), p = rs(d);
|
|
24665
24664
|
h.push({
|
|
24666
24665
|
fn: this.#u(c.fn),
|
|
24667
24666
|
ln: m.ln,
|
|
@@ -24720,9 +24719,9 @@ class xe {
|
|
|
24720
24719
|
return n(o);
|
|
24721
24720
|
}
|
|
24722
24721
|
#k;
|
|
24723
|
-
#
|
|
24722
|
+
#T;
|
|
24724
24723
|
setOtherObj(t, e) {
|
|
24725
|
-
this.#k = t, this.#
|
|
24724
|
+
this.#k = t, this.#T = e;
|
|
24726
24725
|
}
|
|
24727
24726
|
// // 変数操作
|
|
24728
24727
|
// インラインテキスト代入
|
|
@@ -24741,13 +24740,13 @@ class xe {
|
|
|
24741
24740
|
#j() {
|
|
24742
24741
|
if (this.#i === 0)
|
|
24743
24742
|
return console.group(`🥟 [dump_stack] スクリプト現在地 fn:${this.#e} line:1 col:0`), console.groupEnd(), !1;
|
|
24744
|
-
const t = this.#
|
|
24743
|
+
const t = this.#O(this.#t, this.#i), e = `スクリプト現在地 fn:${this.#e} line:${t.ln} col:${t.col_s + 1}`;
|
|
24745
24744
|
console.group(`🥟 [dump_stack] ${e}`);
|
|
24746
24745
|
const i = this.#s.length;
|
|
24747
24746
|
if (i > 0) {
|
|
24748
24747
|
console.info(e);
|
|
24749
24748
|
for (let n = i - 1; n >= 0; --n) {
|
|
24750
|
-
const s = this.#s[n], o = s.csArg[":hMp"], a = o ? o[":タグ名"] : void 0, h = s.csArg[":タグ名"] ?? "", l = this.#
|
|
24749
|
+
const s = this.#s[n], o = s.csArg[":hMp"], a = o ? o[":タグ名"] : void 0, h = s.csArg[":タグ名"] ?? "", l = this.#O(this.#G[s.fn], s.idx);
|
|
24751
24750
|
console.info(
|
|
24752
24751
|
`${i - n}つ前のコール元 fn:${s.fn} line:${l.ln} col:${l.col_s + 1}` + (a ? "([" + a + "]マクロ内)" : " ") + `で [${h} ...]をコール`
|
|
24753
24752
|
);
|
|
@@ -24755,7 +24754,7 @@ class xe {
|
|
|
24755
24754
|
}
|
|
24756
24755
|
return console.groupEnd(), !1;
|
|
24757
24756
|
}
|
|
24758
|
-
#
|
|
24757
|
+
#O(t, e) {
|
|
24759
24758
|
const i = { ln: 1, col_s: 0, col_e: 0 };
|
|
24760
24759
|
if (!t)
|
|
24761
24760
|
return i;
|
|
@@ -24817,7 +24816,7 @@ class xe {
|
|
|
24817
24816
|
const e = t.split(`
|
|
24818
24817
|
`).slice(-this.#$), i = e.length;
|
|
24819
24818
|
console.group(`🥟 Error line (from ${i} rows before) fn:${this.#e}`);
|
|
24820
|
-
const n = String(this.#r).length, s = this.#
|
|
24819
|
+
const n = String(this.#r).length, s = this.#O(this.#t, this.#i);
|
|
24821
24820
|
for (let o = 0; o < i; ++o) {
|
|
24822
24821
|
const a = this.#r - i + o + 1, h = `${String(a).padStart(n, " ")}: %c`, l = e[o], u = l.length > 75 ? l.slice(0, 75) + "…" : l;
|
|
24823
24822
|
o === i - 1 ? console.info(
|
|
@@ -24836,7 +24835,7 @@ class xe {
|
|
|
24836
24835
|
throw "ifブロック内ではありません";
|
|
24837
24836
|
return this.#i = this.#b[0], this.#b.shift(), !1;
|
|
24838
24837
|
}
|
|
24839
|
-
#
|
|
24838
|
+
#S(t) {
|
|
24840
24839
|
const { exp: e } = t;
|
|
24841
24840
|
if (!e)
|
|
24842
24841
|
throw "expは必須です";
|
|
@@ -24894,14 +24893,14 @@ class xe {
|
|
|
24894
24893
|
#X(t) {
|
|
24895
24894
|
W(t, "count", !1) || this.#rt();
|
|
24896
24895
|
const { fn: e } = t;
|
|
24897
|
-
return e && this.#d(e), this.#L({ ":hEvt1Time": this.#k.popLocalEvts(), ":hMp": this.val.cloneMp(), ":lenIfStk": this.#b.length }), W(t, "clear_local_event", !1) && this.hTag.clear_event({}), this.#
|
|
24896
|
+
return e && this.#d(e), this.#L({ ":hEvt1Time": this.#k.popLocalEvts(), ":hMp": this.val.cloneMp(), ":lenIfStk": this.#b.length }), W(t, "clear_local_event", !1) && this.hTag.clear_event({}), this.#E(e, t.label), !0;
|
|
24898
24897
|
}
|
|
24899
24898
|
#L(t) {
|
|
24900
24899
|
this.#t.aLNum[this.#i] = this.#r, this.#W || (t[":resvToken"] = "", this.#B()), this.#s.push(new $l(this.#e, this.#i, t)), this.#b.unshift(-1);
|
|
24901
24900
|
}
|
|
24902
24901
|
// シナリオジャンプ
|
|
24903
24902
|
#M(t) {
|
|
24904
|
-
return W(t, "count", !0) || this.#rt(), this.#b[0] = -1, this.#
|
|
24903
|
+
return W(t, "count", !0) || this.#rt(), this.#b[0] = -1, this.#E(t.fn, t.label), !0;
|
|
24905
24904
|
}
|
|
24906
24905
|
// コールスタック破棄
|
|
24907
24906
|
#q(t) {
|
|
@@ -24923,14 +24922,14 @@ class xe {
|
|
|
24923
24922
|
const s = i[":resvToken"];
|
|
24924
24923
|
s ? this.nextToken = () => (this.#B(), s) : this.#B(), i[":hEvt1Time"] && this.#k.pushLocalEvts(i[":hEvt1Time"]);
|
|
24925
24924
|
const { fn: o, label: a } = t;
|
|
24926
|
-
return o || a ? (this.#
|
|
24925
|
+
return o || a ? (this.#E(o, a), !0) : e.fn in this.#G ? (this.#et(e), !1) : (this.#E(e.fn, "", e.idx), !0);
|
|
24927
24926
|
}
|
|
24928
24927
|
#W = "";
|
|
24929
24928
|
#B() {
|
|
24930
24929
|
this.#W = "", this.nextToken = this.#Z;
|
|
24931
24930
|
}
|
|
24932
24931
|
#U = "";
|
|
24933
|
-
#
|
|
24932
|
+
#E(t = "", e = "", i = 0) {
|
|
24934
24933
|
if (!t && !e && this.main.errScript("[jump系] fnまたはlabelは必須です"), e ? (e.at(0) !== "*" && this.main.errScript("[jump系] labelは*で始まります"), this.#U = e, this.#U.slice(0, 2) !== "**" && (this.#i = i)) : (this.#U = "", this.#i = i), !t) {
|
|
24935
24934
|
this.analyzeInit();
|
|
24936
24935
|
return;
|
|
@@ -25184,7 +25183,7 @@ class xe {
|
|
|
25184
25183
|
return new Ke(), this.loadFromMark(t, i);
|
|
25185
25184
|
}
|
|
25186
25185
|
loadFromMark(t, e, i = !0) {
|
|
25187
|
-
this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), this.#
|
|
25186
|
+
this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), this.#T.recPagebreak(), i && this.sndMng.playLoopFromSaveObj(), W(t, "do_rec", !0) && (this.#Q = {
|
|
25188
25187
|
hSave: this.val.cloneSave(),
|
|
25189
25188
|
hPages: { ...e.hPages },
|
|
25190
25189
|
aIfStk: [...e.aIfStk]
|
|
@@ -25196,15 +25195,15 @@ class xe {
|
|
|
25196
25195
|
};
|
|
25197
25196
|
this.hTag.autowc(n);
|
|
25198
25197
|
const s = String(this.val.getVal("save:const.sn.scriptFn")), o = Number(this.val.getVal("save:const.sn.scriptIdx"));
|
|
25199
|
-
return this.#b = [...this.#Q.aIfStk], this.#s = [], this.#
|
|
25198
|
+
return this.#b = [...this.#Q.aIfStk], this.#s = [], this.#T.cover(!0), X.stopAllTw(), t.index ? (this.#T.playback(this.#Q.hPages, () => {
|
|
25200
25199
|
const { style: a, r_style: h } = t;
|
|
25201
|
-
a && this.#
|
|
25202
|
-
}), !0) : (delete this.#G[s], this.#
|
|
25200
|
+
a && this.#T.currentTxtlayFore?.lay({ style: a, r_style: h }), this.#T.cover(!1), this.#E(t.fn ?? s, "", t.index);
|
|
25201
|
+
}), !0) : (delete this.#G[s], this.#T.playback(
|
|
25203
25202
|
this.#Q.hPages,
|
|
25204
25203
|
"label" in t ? () => {
|
|
25205
|
-
this.#
|
|
25204
|
+
this.#T.cover(!1), this.#e = s, this.#i = o, this.hTag.call({ fn: t.fn, label: t.label });
|
|
25206
25205
|
} : () => {
|
|
25207
|
-
this.#
|
|
25206
|
+
this.#T.cover(!1), this.#E(s, "", o);
|
|
25208
25207
|
}
|
|
25209
25208
|
), !0);
|
|
25210
25209
|
}
|
|
@@ -25233,7 +25232,7 @@ class xe {
|
|
|
25233
25232
|
const { fn: t, idx: e } = this.nowScrIdx();
|
|
25234
25233
|
return this.val.setVal_Nochk("save", "const.sn.scriptFn", t), this.val.setVal_Nochk("save", "const.sn.scriptIdx", e), this.#Q = {
|
|
25235
25234
|
hSave: this.val.cloneSave(),
|
|
25236
|
-
hPages: this.#
|
|
25235
|
+
hPages: this.#T.record(),
|
|
25237
25236
|
aIfStk: this.#b.slice(this.#s.length)
|
|
25238
25237
|
}, !1;
|
|
25239
25238
|
}
|
|
@@ -25270,7 +25269,7 @@ class xe {
|
|
|
25270
25269
|
} else
|
|
25271
25270
|
e = this.#e, i = this.#i;
|
|
25272
25271
|
t[":path"] = this.#u(e);
|
|
25273
|
-
const s = this.#
|
|
25272
|
+
const s = this.#O(this.#G[e], i);
|
|
25274
25273
|
t[":ln"] = s.ln, t[":col_s"] = s.col_s, t[":col_e"] = s.col_e;
|
|
25275
25274
|
const o = i - 1;
|
|
25276
25275
|
t[":idx_tkn"] = o, t[":token"] = this.#G[e].aToken[o], this.sys.send2Dbg("_recodeDesign", t);
|