@famibee/skynovel 1.43.2 → 1.43.3
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 +118 -106
- package/dist/app.js.map +1 -1
- package/dist/sn/Layer.d.ts +2 -0
- package/dist/sn/Layer.d.ts.map +1 -1
- package/dist/sn/PropParser.d.ts.map +1 -1
- package/dist/sn/SysApp.d.ts +1 -0
- package/dist/sn/SysApp.d.ts.map +1 -1
- package/dist/sn/TxtLayer.d.ts +2 -0
- package/dist/sn/TxtLayer.d.ts.map +1 -1
- package/dist/web.js +90 -78
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -272,7 +272,7 @@ platform$1.exports;
|
|
|
272
272
|
return !fe && (fe = RegExp("\\b" + Ve + " *\\d+[.\\w_]*", "i").exec(st) || RegExp("\\b" + Ve + " *\\w+-[\\w]*", "i").exec(st) || RegExp("\\b" + Ve + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(st)) && ((fe = String(ne.label && !RegExp(Ve, "i").test(ne.label) ? ne.label : fe).split("/"))[1] && !/[\d.]+/.test(fe[0]) && (fe[0] += " " + fe[1]), ne = ne.label || ne, fe = q(fe[0].replace(RegExp(Ve, "i"), ne).replace(RegExp("; *(?:" + ne + "[_-])?", "i"), " ").replace(RegExp("(" + ne + ")[-_.]?(\\w)", "i"), "$1 $2"))), fe;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function he(de) {
|
|
276
276
|
return et(de, function(fe, ne) {
|
|
277
277
|
return fe || (RegExp(ne + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(st) || 0)[1] || null;
|
|
278
278
|
});
|
|
@@ -280,7 +280,7 @@ platform$1.exports;
|
|
|
280
280
|
function _e() {
|
|
281
281
|
return this.description || "";
|
|
282
282
|
}
|
|
283
|
-
if (kt && (kt = [kt]), /\bAndroid\b/.test(Ct) && !Lt && (ft = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(st)) && (Lt = it(ft[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), jt && !Lt ? Lt = Oe([jt]) : jt && Lt && (Lt = Lt.replace(RegExp("^(" + Q(jt) + ")[-_.\\s]", "i"), jt + " ").replace(RegExp("^(" + Q(jt) + ")[-_.]?(\\w)", "i"), jt + " $2")), (ft = /\bGoogle TV\b/.exec(Lt)) && (Lt = ft[0]), /\bSimulator\b/i.test(st) && (Lt = (Lt ? Lt + " " : "") + "Simulator"), wt == "Opera Mini" && /\bOPiOS\b/.test(st) && Dt.push("running in Turbo/Uncompressed mode"), wt == "IE" && /\blike iPhone OS\b/.test(st) ? (ft = tt(st.replace(/like iPhone OS/, "")), jt = ft.manufacturer, Lt = ft.product) : /^iP/.test(Lt) ? (wt || (wt = "Safari"), Ct = "iOS" + ((ft = / OS ([\d_]+)/i.exec(st)) ? " " + ft[1].replace(/_/g, ".") : "")) : wt == "Konqueror" && /^Linux\b/i.test(Ct) ? Ct = "Kubuntu" : jt && jt != "Google" && (/Chrome/.test(wt) && !/\bMobile Safari\b/i.test(st) || /\bVita\b/.test(Lt)) || /\bAndroid\b/.test(Ct) && /^Chrome/.test(wt) && /\bVersion\//i.test(st) ? (wt = "Android Browser", Ct = /\bAndroid\b/.test(Ct) ? Ct : "Android") : wt == "Silk" ? (/\bMobi/i.test(st) || (Ct = "Android", Dt.unshift("desktop mode")), /Accelerated *= *true/i.test(st) && Dt.unshift("accelerated")) : wt == "UC Browser" && /\bUCWEB\b/.test(st) ? Dt.push("speed mode") : wt == "PaleMoon" && (ft = /\bFirefox\/([\d.]+)\b/.exec(st)) ? Dt.push("identifying as Firefox " + ft[1]) : wt == "Firefox" && (ft = /\b(Mobile|Tablet|TV)\b/i.exec(st)) ? (Ct || (Ct = "Firefox OS"), Lt || (Lt = ft[1])) : !wt || (ft = !/\bMinefield\b/i.test(st) && /\b(?:Firefox|Safari)\b/.exec(wt)) ? (wt && !Lt && /[\/,]|^[^(]+?\)/.test(st.slice(st.indexOf(ft + "/") + 8)) && (wt = null), (ft = Lt || jt || Ct) && (Lt || jt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ct)) && (wt = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ct) ? Ct : ft) + " Browser")) : wt == "Electron" && (ft = (/\bChrome\/([\d.]+)\b/.exec(st) || 0)[1]) && Dt.push("Chromium " + ft), Et || (Et =
|
|
283
|
+
if (kt && (kt = [kt]), /\bAndroid\b/.test(Ct) && !Lt && (ft = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(st)) && (Lt = it(ft[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), jt && !Lt ? Lt = Oe([jt]) : jt && Lt && (Lt = Lt.replace(RegExp("^(" + Q(jt) + ")[-_.\\s]", "i"), jt + " ").replace(RegExp("^(" + Q(jt) + ")[-_.]?(\\w)", "i"), jt + " $2")), (ft = /\bGoogle TV\b/.exec(Lt)) && (Lt = ft[0]), /\bSimulator\b/i.test(st) && (Lt = (Lt ? Lt + " " : "") + "Simulator"), wt == "Opera Mini" && /\bOPiOS\b/.test(st) && Dt.push("running in Turbo/Uncompressed mode"), wt == "IE" && /\blike iPhone OS\b/.test(st) ? (ft = tt(st.replace(/like iPhone OS/, "")), jt = ft.manufacturer, Lt = ft.product) : /^iP/.test(Lt) ? (wt || (wt = "Safari"), Ct = "iOS" + ((ft = / OS ([\d_]+)/i.exec(st)) ? " " + ft[1].replace(/_/g, ".") : "")) : wt == "Konqueror" && /^Linux\b/i.test(Ct) ? Ct = "Kubuntu" : jt && jt != "Google" && (/Chrome/.test(wt) && !/\bMobile Safari\b/i.test(st) || /\bVita\b/.test(Lt)) || /\bAndroid\b/.test(Ct) && /^Chrome/.test(wt) && /\bVersion\//i.test(st) ? (wt = "Android Browser", Ct = /\bAndroid\b/.test(Ct) ? Ct : "Android") : wt == "Silk" ? (/\bMobi/i.test(st) || (Ct = "Android", Dt.unshift("desktop mode")), /Accelerated *= *true/i.test(st) && Dt.unshift("accelerated")) : wt == "UC Browser" && /\bUCWEB\b/.test(st) ? Dt.push("speed mode") : wt == "PaleMoon" && (ft = /\bFirefox\/([\d.]+)\b/.exec(st)) ? Dt.push("identifying as Firefox " + ft[1]) : wt == "Firefox" && (ft = /\b(Mobile|Tablet|TV)\b/i.exec(st)) ? (Ct || (Ct = "Firefox OS"), Lt || (Lt = ft[1])) : !wt || (ft = !/\bMinefield\b/i.test(st) && /\b(?:Firefox|Safari)\b/.exec(wt)) ? (wt && !Lt && /[\/,]|^[^(]+?\)/.test(st.slice(st.indexOf(ft + "/") + 8)) && (wt = null), (ft = Lt || jt || Ct) && (Lt || jt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ct)) && (wt = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ct) ? Ct : ft) + " Browser")) : wt == "Electron" && (ft = (/\bChrome\/([\d.]+)\b/.exec(st) || 0)[1]) && Dt.push("Chromium " + ft), Et || (Et = he([
|
|
284
284
|
"(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)",
|
|
285
285
|
"Version",
|
|
286
286
|
Q(wt),
|
|
@@ -316,7 +316,7 @@ platform$1.exports;
|
|
|
316
316
|
}
|
|
317
317
|
else
|
|
318
318
|
(/\bBlackBerry\b/.test(Lt) || /\bBB10\b/.test(st)) && (ft = (RegExp(Lt.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(st) || 0)[1] || Et) ? (ft = [ft, /BB10/.test(st)], Ct = (ft[1] ? (Lt = null, jt = "BlackBerry") : "Device Software") + " " + ft[0], Et = null) : this != K && Lt != "Wii" && (Bt && Nt || /Opera/.test(wt) && /\b(?:MSIE|Firefox)\b/i.test(st) || wt == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(Ct) || wt == "IE" && (Ct && !/^Win/.test(Ct) && Et > 5.5 || /\bWindows XP\b/.test(Ct) && Et > 8 || Et == 8 && !/\bTrident\b/.test(st))) && !G.test(ft = tt.call(K, st.replace(G, "") + ";")) && ft.name && (ft = "ing as " + ft.name + ((ft = ft.version) ? " " + ft : ""), G.test(wt) ? (/\bIE\b/.test(ft) && Ct == "Mac OS" && (Ct = null), ft = "identify" + ft) : (ft = "mask" + ft, Mt ? wt = q(Mt.replace(/([a-z])([A-Z])/g, "$1 $2")) : wt = "Opera", /\bIE\b/.test(ft) && (Ct = null), Bt || (Et = null)), kt = ["Presto"], Dt.push(ft));
|
|
319
|
-
(ft = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(st) || 0)[1]) && (ft = [parseFloat(ft.replace(/\.(\d)$/, ".0$1")), ft], wt == "Safari" && ft[1].slice(-1) == "+" ? (wt = "WebKit Nightly", Vt = "alpha", Et = ft[1].slice(0, -1)) : (Et == ft[1] || Et == (ft[2] = (/\bSafari\/([\d.]+\+?)/i.exec(st) || 0)[1])) && (Et = null), ft[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(st) || 0)[1], ft[0] == 537.36 && ft[2] == 537.36 && parseFloat(ft[1]) >= 28 && kt == "WebKit" && (kt = ["Blink"]), !Bt || !pt && !ft[1] ? (kt && (kt[1] = "like Safari"), ft = (ft = ft[0], ft < 400 ? 1 : ft < 500 ? 2 : ft < 526 ? 3 : ft < 533 ? 4 : ft < 534 ? "4+" : ft < 535 ? 5 : ft < 537 ? 6 : ft < 538 ? 7 : ft < 601 ? 8 : ft < 602 ? 9 : ft < 604 ? 10 : ft < 606 ? 11 : ft < 608 ? 12 : "12")) : (kt && (kt[1] = "like Chrome"), ft = ft[1] || (ft = ft[0], ft < 530 ? 1 : ft < 532 ? 2 : ft < 532.05 ? 3 : ft < 533 ? 4 : ft < 534.03 ? 5 : ft < 534.07 ? 6 : ft < 534.1 ? 7 : ft < 534.13 ? 8 : ft < 534.16 ? 9 : ft < 534.24 ? 10 : ft < 534.3 ? 11 : ft < 535.01 ? 12 : ft < 535.02 ? "13+" : ft < 535.07 ? 15 : ft < 535.11 ? 16 : ft < 535.19 ? 17 : ft < 536.05 ? 18 : ft < 536.1 ? 19 : ft < 537.01 ? 20 : ft < 537.11 ? "21+" : ft < 537.13 ? 23 : ft < 537.18 ? 24 : ft < 537.24 ? 25 : ft < 537.36 ? 26 : kt != "Blink" ? "27" : "28")), kt && (kt[1] += " " + (ft += typeof ft == "number" ? ".x" : /[.+]/.test(ft) ? "" : "+")), wt == "Safari" && (!Et || parseInt(Et) > 45) ? Et = ft : wt == "Chrome" && /\bHeadlessChrome/i.test(st) && Dt.unshift("headless")), wt == "Opera" && (ft = /\bzbov|zvav$/.exec(Ct)) ? (wt += " ", Dt.unshift("desktop mode"), ft == "zvav" ? (wt += "Mini", Et = null) : wt += "Mobile", Ct = Ct.replace(RegExp(" *" + ft + "$"), "")) : wt == "Safari" && /\bChrome\b/.exec(kt && kt[1]) ? (Dt.unshift("desktop mode"), wt = "Chrome Mobile", Et = null, /\bOS X\b/.test(Ct) ? (jt = "Apple", Ct = "iOS 4.3+") : Ct = null) : /\bSRWare Iron\b/.test(wt) && !Et && (Et =
|
|
319
|
+
(ft = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(st) || 0)[1]) && (ft = [parseFloat(ft.replace(/\.(\d)$/, ".0$1")), ft], wt == "Safari" && ft[1].slice(-1) == "+" ? (wt = "WebKit Nightly", Vt = "alpha", Et = ft[1].slice(0, -1)) : (Et == ft[1] || Et == (ft[2] = (/\bSafari\/([\d.]+\+?)/i.exec(st) || 0)[1])) && (Et = null), ft[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(st) || 0)[1], ft[0] == 537.36 && ft[2] == 537.36 && parseFloat(ft[1]) >= 28 && kt == "WebKit" && (kt = ["Blink"]), !Bt || !pt && !ft[1] ? (kt && (kt[1] = "like Safari"), ft = (ft = ft[0], ft < 400 ? 1 : ft < 500 ? 2 : ft < 526 ? 3 : ft < 533 ? 4 : ft < 534 ? "4+" : ft < 535 ? 5 : ft < 537 ? 6 : ft < 538 ? 7 : ft < 601 ? 8 : ft < 602 ? 9 : ft < 604 ? 10 : ft < 606 ? 11 : ft < 608 ? 12 : "12")) : (kt && (kt[1] = "like Chrome"), ft = ft[1] || (ft = ft[0], ft < 530 ? 1 : ft < 532 ? 2 : ft < 532.05 ? 3 : ft < 533 ? 4 : ft < 534.03 ? 5 : ft < 534.07 ? 6 : ft < 534.1 ? 7 : ft < 534.13 ? 8 : ft < 534.16 ? 9 : ft < 534.24 ? 10 : ft < 534.3 ? 11 : ft < 535.01 ? 12 : ft < 535.02 ? "13+" : ft < 535.07 ? 15 : ft < 535.11 ? 16 : ft < 535.19 ? 17 : ft < 536.05 ? 18 : ft < 536.1 ? 19 : ft < 537.01 ? 20 : ft < 537.11 ? "21+" : ft < 537.13 ? 23 : ft < 537.18 ? 24 : ft < 537.24 ? 25 : ft < 537.36 ? 26 : kt != "Blink" ? "27" : "28")), kt && (kt[1] += " " + (ft += typeof ft == "number" ? ".x" : /[.+]/.test(ft) ? "" : "+")), wt == "Safari" && (!Et || parseInt(Et) > 45) ? Et = ft : wt == "Chrome" && /\bHeadlessChrome/i.test(st) && Dt.unshift("headless")), wt == "Opera" && (ft = /\bzbov|zvav$/.exec(Ct)) ? (wt += " ", Dt.unshift("desktop mode"), ft == "zvav" ? (wt += "Mini", Et = null) : wt += "Mobile", Ct = Ct.replace(RegExp(" *" + ft + "$"), "")) : wt == "Safari" && /\bChrome\b/.exec(kt && kt[1]) ? (Dt.unshift("desktop mode"), wt = "Chrome Mobile", Et = null, /\bOS X\b/.test(Ct) ? (jt = "Apple", Ct = "iOS 4.3+") : Ct = null) : /\bSRWare Iron\b/.test(wt) && !Et && (Et = he("Chrome")), Et && Et.indexOf(ft = /[\d.]+$/.exec(Ct)) == 0 && st.indexOf("/" + ft + "-") > -1 && (Ct = it(Ct.replace(ft, ""))), Ct && Ct.indexOf(wt) != -1 && !RegExp(wt + " OS").test(Ct) && (Ct = Ct.replace(RegExp(" *" + Q(wt) + " *"), "")), kt && !/\b(?:Avant|Nook)\b/.test(wt) && (/Browser|Lunascape|Maxthon/.test(wt) || wt != "Safari" && /^iOS/.test(Ct) && /\bSafari\b/.test(kt[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(wt) && kt[1]) && (ft = kt[kt.length - 1]) && Dt.push(ft), Dt.length && (Dt = ["(" + Dt.join("; ") + ")"]), jt && Lt && Lt.indexOf(jt) < 0 && Dt.push("on " + jt), Lt && Dt.push((/^on /.test(Dt[Dt.length - 1]) ? "" : "on ") + Lt), Ct && (ft = / ([\d.+]+)$/.exec(Ct), Ht = ft && Ct.charAt(Ct.length - ft[0].length - 1) == "/", Ct = {
|
|
320
320
|
architecture: 32,
|
|
321
321
|
family: ft && !Ht ? Ct.replace(ft[0], "") : Ct,
|
|
322
322
|
version: ft ? ft[1] : null,
|
|
@@ -13809,8 +13809,8 @@ void main(void)\r
|
|
|
13809
13809
|
for (var Wt = 0, Jt = this._textWidth * this.anchor.x, Kt = this._textHeight * this.anchor.y, Se = 0; Se < bt.total; Se++)
|
|
13810
13810
|
bt.vertices[Wt++] -= Jt, bt.vertices[Wt++] -= Kt, bt.vertices[Wt++] -= Jt, bt.vertices[Wt++] -= Kt, bt.vertices[Wt++] -= Jt, bt.vertices[Wt++] -= Kt, bt.vertices[Wt++] -= Jt, bt.vertices[Wt++] -= Kt;
|
|
13811
13811
|
this._maxLineHeight = it * N;
|
|
13812
|
-
var Oe = bt.mesh.geometry.getBuffer("aVertexPosition"),
|
|
13813
|
-
Oe.data = bt.vertices,
|
|
13812
|
+
var Oe = bt.mesh.geometry.getBuffer("aVertexPosition"), he = bt.mesh.geometry.getBuffer("aTextureCoord"), _e = bt.mesh.geometry.getIndex();
|
|
13813
|
+
Oe.data = bt.vertices, he.data = bt.uvs, _e.data = bt.indices, Oe.update(), he.update(), _e.update();
|
|
13814
13814
|
}
|
|
13815
13815
|
for (var nt = 0; nt < $.length; nt++)
|
|
13816
13816
|
charRenderDataPool.push($[nt]);
|
|
@@ -17111,11 +17111,11 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17111
17111
|
return vt[0];
|
|
17112
17112
|
});
|
|
17113
17113
|
}, k.mark = function() {
|
|
17114
|
-
return Bt(
|
|
17114
|
+
return Bt(he, this, he, function(ct, vt, xt) {
|
|
17115
17115
|
return { start: ct, value: vt, end: xt };
|
|
17116
17116
|
});
|
|
17117
17117
|
}, k.node = function(ct) {
|
|
17118
|
-
return Bt(
|
|
17118
|
+
return Bt(he, this, he, function(vt, xt, Ot) {
|
|
17119
17119
|
return { name: ct, value: xt, start: vt, end: Ot };
|
|
17120
17120
|
});
|
|
17121
17121
|
}, k.sepBy = function(ct) {
|
|
@@ -17146,7 +17146,7 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17146
17146
|
return $t.status ? at(ct($t.value)._(xt, $t.index), $t) : $t;
|
|
17147
17147
|
});
|
|
17148
17148
|
}, k.concat = k.or, k.empty = Oe, k.of = jt, k["fantasy-land/ap"] = k.ap, k["fantasy-land/chain"] = k.chain, k["fantasy-land/concat"] = k.concat, k["fantasy-land/empty"] = k.empty, k["fantasy-land/of"] = k.of, k["fantasy-land/map"] = k.map;
|
|
17149
|
-
var
|
|
17149
|
+
var he = N(function(ct, vt) {
|
|
17150
17150
|
return nt(vt, ht(ct, vt));
|
|
17151
17151
|
}), _e = N(function(ct, vt) {
|
|
17152
17152
|
return vt >= ct.length ? st(vt, "any character/byte") : nt(vt + 1, pt(ct, vt));
|
|
@@ -17168,7 +17168,7 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17168
17168
|
return vt;
|
|
17169
17169
|
}, N.crlf = eu, N.custom = function(ct) {
|
|
17170
17170
|
return N(ct(nt, st));
|
|
17171
|
-
}, N.digit = fe, N.digits = ne, N.empty = Oe, N.end = Hc, N.eof = de, N.fail = Ct, N.formatError = Ft, N.index =
|
|
17171
|
+
}, N.digit = fe, N.digits = ne, N.empty = Oe, N.end = Hc, N.eof = de, N.fail = Ct, N.formatError = Ft, N.index = he, N.isParser = et, N.lazy = Se, N.letter = Ve, N.letters = vs, N.lf = gs, N.lookahead = Wt, N.makeFailure = st, N.makeSuccess = nt, N.newline = ru, N.noneOf = function(ct) {
|
|
17172
17172
|
return Kt(function(vt) {
|
|
17173
17173
|
return ct.indexOf(vt) < 0;
|
|
17174
17174
|
}).desc("none of '" + ct + "'");
|
|
@@ -19890,14 +19890,20 @@ const ni = class {
|
|
|
19890
19890
|
return this.spLay.x;
|
|
19891
19891
|
}
|
|
19892
19892
|
set x(t) {
|
|
19893
|
-
this.spLay.x = t;
|
|
19893
|
+
this.procSetX(t), this.spLay.x = t;
|
|
19894
19894
|
}
|
|
19895
|
+
procSetX(t) {
|
|
19896
|
+
}
|
|
19897
|
+
// set を override できないので
|
|
19895
19898
|
get y() {
|
|
19896
19899
|
return this.spLay.y;
|
|
19897
19900
|
}
|
|
19898
19901
|
set y(t) {
|
|
19899
|
-
this.spLay.y = t;
|
|
19902
|
+
this.procSetY(t), this.spLay.y = t;
|
|
19903
|
+
}
|
|
19904
|
+
procSetY(t) {
|
|
19900
19905
|
}
|
|
19906
|
+
// set を override できないので
|
|
19901
19907
|
destroy() {
|
|
19902
19908
|
}
|
|
19903
19909
|
lay(t) {
|
|
@@ -25989,27 +25995,27 @@ var Draggable = {
|
|
|
25989
25995
|
!Rt[0] && !Rt[1] && (Nt = [1, 1]);
|
|
25990
25996
|
var Ft = it && (k ?? Tt.keepRatio) || !1;
|
|
25991
25997
|
function Dt() {
|
|
25992
|
-
var
|
|
25998
|
+
var he = r.fixedDirection, _e = getOffsetSizeDist(Nt, Ft, r, t);
|
|
25993
25999
|
Mt = _e.distWidth, ft = _e.distHeight;
|
|
25994
|
-
var ve = Nt[0] -
|
|
26000
|
+
var ve = Nt[0] - he[0] || Ft ? Math.max(tt + Mt, TINY_NUM) : tt, de = Nt[1] - he[1] || Ft ? Math.max(nt + ft, TINY_NUM) : nt;
|
|
25995
26001
|
return Ft && tt && nt && (st ? de = ve / it : ve = de * it), [ve, de];
|
|
25996
26002
|
}
|
|
25997
26003
|
var Vt = Dt(), Bt = Vt[0], Et = Vt[1];
|
|
25998
26004
|
X || (r.setFixedDirection(r.fixedDirection), triggerEvent(o, "onBeforeResize", fillParams(o, t, {
|
|
25999
26005
|
startFixedDirection: r.startFixedDirection,
|
|
26000
26006
|
startFixedPosition: r.startFixedPosition,
|
|
26001
|
-
setFixedDirection: function(
|
|
26007
|
+
setFixedDirection: function(he) {
|
|
26002
26008
|
var _e;
|
|
26003
|
-
return r.setFixedDirection(
|
|
26009
|
+
return r.setFixedDirection(he), _e = Dt(), Bt = _e[0], Et = _e[1], [Bt, Et];
|
|
26004
26010
|
},
|
|
26005
|
-
setFixedPosition: function(
|
|
26011
|
+
setFixedPosition: function(he) {
|
|
26006
26012
|
var _e;
|
|
26007
|
-
return r.setFixedPosition(
|
|
26013
|
+
return r.setFixedPosition(he), _e = Dt(), Bt = _e[0], Et = _e[1], [Bt, Et];
|
|
26008
26014
|
},
|
|
26009
26015
|
boundingWidth: Bt,
|
|
26010
26016
|
boundingHeight: Et,
|
|
26011
|
-
setSize: function(
|
|
26012
|
-
Bt =
|
|
26017
|
+
setSize: function(he) {
|
|
26018
|
+
Bt = he[0], Et = he[1];
|
|
26013
26019
|
}
|
|
26014
26020
|
}, !0)));
|
|
26015
26021
|
var Ht = $;
|
|
@@ -26017,8 +26023,8 @@ var Draggable = {
|
|
|
26017
26023
|
var kt = [0, 0];
|
|
26018
26024
|
N || (kt = checkSnapResize(o, Bt, Et, Rt, Ht, U, r)), G && (!G[0] && (kt[0] = 0), !G[1] && (kt[1] = 0));
|
|
26019
26025
|
function wt() {
|
|
26020
|
-
var
|
|
26021
|
-
Pt && (
|
|
26026
|
+
var he;
|
|
26027
|
+
Pt && (he = Pt([Bt, Et]), Bt = he[0], Et = he[1]), Bt = throttle(Bt, gt), Et = throttle(Et, gt);
|
|
26022
26028
|
}
|
|
26023
26029
|
if (Ft) {
|
|
26024
26030
|
Nt[0] && Nt[1] && kt[0] && kt[1] && (Math.abs(kt[0]) > Math.abs(kt[1]) ? kt[1] = 0 : kt[0] = 0);
|
|
@@ -26030,10 +26036,10 @@ var Draggable = {
|
|
|
26030
26036
|
var jt = [Mt - Z, ft - J];
|
|
26031
26037
|
r.prevWidth = Mt, r.prevHeight = ft;
|
|
26032
26038
|
var Ct = getResizeDist(o, Bt, Et, Ht, W, r);
|
|
26033
|
-
if (!(!bt && jt.every(function(
|
|
26034
|
-
return !
|
|
26035
|
-
}) && Ct.every(function(
|
|
26036
|
-
return !
|
|
26039
|
+
if (!(!bt && jt.every(function(he) {
|
|
26040
|
+
return !he;
|
|
26041
|
+
}) && Ct.every(function(he) {
|
|
26042
|
+
return !he;
|
|
26037
26043
|
}))) {
|
|
26038
26044
|
var Wt = Draggable.drag(o, setCustomDrag(t, o.state, Ct, !!N, !1, "draggable")), Jt = Wt.transform, Kt = q + Mt, Se = K + ft, Oe = fillParams(o, t, __assign$1({
|
|
26039
26045
|
width: Kt,
|
|
@@ -27806,8 +27812,8 @@ background: var(--bounds-color);
|
|
|
27806
27812
|
bottom: tt
|
|
27807
27813
|
}, Bt, Et, 5), jt = Lt.horizontal, Ct = Lt.vertical, Wt = jt.offset, Jt = Ct.offset;
|
|
27808
27814
|
if (jt.isBound && (wt[1] += Wt), Ct.isBound && (wt[0] += Jt), (At || bt) && _t[0][0] === 0 && _t[0][1] === 0) {
|
|
27809
|
-
var Rt = getRect(St), Kt = Rt.bottom - Rt.top, Se = At ? Rt.right - Rt.left : Kt, Oe = Ct.isBound ? Math.abs(Jt) : Ct.snapIndex === 0 ? -Jt : Jt,
|
|
27810
|
-
Se -= Oe, Kt -=
|
|
27815
|
+
var Rt = getRect(St), Kt = Rt.bottom - Rt.top, Se = At ? Rt.right - Rt.left : Kt, Oe = Ct.isBound ? Math.abs(Jt) : Ct.snapIndex === 0 ? -Jt : Jt, he = jt.isBound ? Math.abs(Wt) : jt.snapIndex === 0 ? -Wt : Wt;
|
|
27816
|
+
Se -= Oe, Kt -= he, bt && (Kt = checkSnapBoundPriority(Ct, jt) > 0 ? Kt : Se, Se = Kt);
|
|
27811
27817
|
var _e = gt[0];
|
|
27812
27818
|
gt[1][1] = _e[1] - Kt, gt[2][0] = _e[0] + Se, gt[3][1] = _e[1] + Kt, gt[4][0] = _e[0] - Se;
|
|
27813
27819
|
} else if (pt && W && G) {
|
|
@@ -31613,7 +31619,7 @@ Vo = new WeakMap(), Xo = new WeakMap(), Rr = new WeakMap(), vi = new WeakMap(),
|
|
|
31613
31619
|
}, It(Button, "fontFamily", "'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif"), rt(Button, Vo, (e, r) => {
|
|
31614
31620
|
}), rt(Button, Xo, (e, r, D, N) => {
|
|
31615
31621
|
});
|
|
31616
|
-
var oa, Or, qo, la, Ko, ff, Zo, df, Jo, In, Qo, gi, Dn, ch, gd, mi, mr, Ir, ge, Yr,
|
|
31622
|
+
var oa, Or, qo, la, Ko, ff, Zo, df, Jo, In, Qo, gi, Dn, ch, gd, mi, mr, Ir, ge, Yr, le, tl, Wr, fh, tr, An, Va, Nn, ua, kn, Xa, ha, el, pf, rl, vf, Ln, Bn, ca, il, fa, Hi, er, dh, md, ur, nl, da, pu, _i, sn, qr, Dr, _r, yr, sl, gf, pa, vu, al, mf, Fn;
|
|
31617
31623
|
const ie = class extends Layer {
|
|
31618
31624
|
constructor() {
|
|
31619
31625
|
super();
|
|
@@ -31635,7 +31641,7 @@ const ie = class extends Layer {
|
|
|
31635
31641
|
rt(this, Yr, "");
|
|
31636
31642
|
// 背景画像無し(=単色塗り)
|
|
31637
31643
|
// 文字表示
|
|
31638
|
-
rt(this,
|
|
31644
|
+
rt(this, le, new TxtStage(this.spLay, () => this.canFocus(), H(ie, Qo)));
|
|
31639
31645
|
rt(this, tl, new RubySpliter());
|
|
31640
31646
|
rt(this, Wr, document.createElement("span"));
|
|
31641
31647
|
rt(this, tr, new Container());
|
|
@@ -31681,7 +31687,7 @@ const ie = class extends Layer {
|
|
|
31681
31687
|
lt(this, pa, vu).call(this), H(this, ur) ? (this.isCur && H(ie, la).recText(
|
|
31682
31688
|
H(this, _r).join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\S+ \S+?;\s*)+/g, "style='").replaceAll(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replaceAll(/class='sn_ch .+?'/g, "class='sn_ch'").replaceAll("display: none;", "").replaceAll("class='offrec'", "style='display: none;'")
|
|
31683
31689
|
// 囲んだ領域は履歴で非表示
|
|
31684
|
-
), H(this,
|
|
31690
|
+
), H(this, le).goTxt(H(this, _r), H(this, qr) === 0), ot(this, ur, !1), ot(this, qr, 0)) : this.isCur && H(ie, In).noticeCompTxt();
|
|
31685
31691
|
return;
|
|
31686
31692
|
case "add":
|
|
31687
31693
|
{
|
|
@@ -31697,7 +31703,7 @@ const ie = class extends Layer {
|
|
|
31697
31703
|
{
|
|
31698
31704
|
const V = JSON.parse(G);
|
|
31699
31705
|
if (V.id ?? (V.id = H(this, _r).length), V.id === "break") {
|
|
31700
|
-
H(this,
|
|
31706
|
+
H(this, le).dispBreak(V.pic);
|
|
31701
31707
|
return;
|
|
31702
31708
|
}
|
|
31703
31709
|
ot(this, Dr, !1), V.delay = H(this, qr), V.r ?? (V.r = ""), V.style ?? (V.style = ""), V.r_style ?? (V.r_style = "");
|
|
@@ -31754,10 +31760,10 @@ text-combine-upright: all;
|
|
|
31754
31760
|
rt(this, Dr, !0);
|
|
31755
31761
|
rt(this, _r, []);
|
|
31756
31762
|
rt(this, yr, []);
|
|
31757
|
-
It(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : H(this,
|
|
31763
|
+
It(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : H(this, le).skipChIn());
|
|
31758
31764
|
rt(this, Fn, "");
|
|
31759
31765
|
It(this, "addButton", (e) => new Promise((r) => {
|
|
31760
|
-
e.key = `btn=[${H(this, tr).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), argChk_Boolean(e, "hint_tate", H(this,
|
|
31766
|
+
e.key = `btn=[${H(this, tr).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), argChk_Boolean(e, "hint_tate", H(this, le).tategaki);
|
|
31761
31767
|
const D = new Button(e, H(ie, In), () => r(), () => this.canFocus());
|
|
31762
31768
|
D.name = JSON.stringify(e).replaceAll('"', "'"), H(this, tr).addChild(D);
|
|
31763
31769
|
}));
|
|
@@ -31773,11 +31779,11 @@ text-combine-upright: all;
|
|
|
31773
31779
|
b_alpha: H(this, mr),
|
|
31774
31780
|
b_alpha_isfixed: H(this, Ir),
|
|
31775
31781
|
ffs: H(this, Ln),
|
|
31776
|
-
txs: H(this,
|
|
31782
|
+
txs: H(this, le).record(),
|
|
31777
31783
|
strNoFFS: H(this, ca),
|
|
31778
31784
|
btns: H(this, tr).children.map((e) => e.name)
|
|
31779
31785
|
}));
|
|
31780
|
-
this.spLay.addChild(H(this,
|
|
31786
|
+
this.spLay.addChild(H(this, le)), H(this, tl).init(H(this, nl)), this.spLay.addChild(H(this, tr)), H(this, tr).name = "cntBtn";
|
|
31781
31787
|
const e = 16;
|
|
31782
31788
|
this.lay({ style: `width: ${CmnLib.stageW}px; height: ${CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${e}px;`, in_style: "default", out_style: "default", back_clear: "true" });
|
|
31783
31789
|
}
|
|
@@ -31839,27 +31845,33 @@ text-combine-upright: all;
|
|
|
31839
31845
|
ot(ie, Jo, e), ot(ie, In, r), ot(ie, Qo, D), TxtStage.setEvtMng(r);
|
|
31840
31846
|
}
|
|
31841
31847
|
destroy() {
|
|
31842
|
-
H(this, ge) && (this.spLay.removeChild(H(this, ge)).destroy(), ot(this, ge, void 0)), this.clearText(), H(this,
|
|
31848
|
+
H(this, ge) && (this.spLay.removeChild(H(this, ge)).destroy(), ot(this, ge, void 0)), this.clearText(), H(this, le).destroy();
|
|
31843
31849
|
}
|
|
31844
31850
|
static destroy() {
|
|
31845
31851
|
ot(ie, gi, !1), ot(ie, Dn, {}), ot(ie, fa, (e) => e);
|
|
31846
31852
|
}
|
|
31847
31853
|
set name(e) {
|
|
31848
|
-
this.name_ = e, H(this,
|
|
31854
|
+
this.name_ = e, H(this, le).name = e;
|
|
31849
31855
|
}
|
|
31850
31856
|
get name() {
|
|
31851
31857
|
return this.name_;
|
|
31852
31858
|
}
|
|
31853
31859
|
// getは継承しないらしい
|
|
31854
31860
|
cvsResize() {
|
|
31855
|
-
H(this,
|
|
31861
|
+
H(this, le).cvsResize();
|
|
31856
31862
|
}
|
|
31857
31863
|
cvsResizeChildren() {
|
|
31858
31864
|
for (const e of H(this, tr).children)
|
|
31859
31865
|
e.cvsResize();
|
|
31860
31866
|
}
|
|
31867
|
+
procSetX(e) {
|
|
31868
|
+
H(this, le).lay({ x: e });
|
|
31869
|
+
}
|
|
31870
|
+
procSetY(e) {
|
|
31871
|
+
H(this, le).lay({ y: e });
|
|
31872
|
+
}
|
|
31861
31873
|
lay(e) {
|
|
31862
|
-
if (super.lay(e), Layer.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), RubySpliter.setting(e), lt(this, rl, vf).call(this, e), H(this,
|
|
31874
|
+
if (super.lay(e), Layer.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), RubySpliter.setting(e), lt(this, rl, vf).call(this, e), H(this, le).lay(e), "r_align" in e && ot(this, er, e.r_align ?? ""), ot(this, Hi, CmnLib.isSafari ? H(this, le).tategaki ? (r, D) => `text-align: start; height: ${D}em; padding-top: ${r}; padding-bottom: ${r};` : (r, D) => `text-align: start; width: ${D}em; padding-left: ${r}; padding-right: ${r};` : H(this, le).tategaki ? (r) => `text-align: justify; text-align-last: justify; padding-top: ${r}; padding-bottom: ${r};` : (r) => `text-align: justify; text-align-last: justify; padding-left: ${r}; padding-right: ${r};`), CmnLib.isFirefox && (this.mkStyle_r_align = lt(this, dh, md)), "r_style" in e)
|
|
31863
31875
|
if (e.r_style) {
|
|
31864
31876
|
const r = document.createElement("span");
|
|
31865
31877
|
r.style.cssText = e.r_style;
|
|
@@ -31882,15 +31894,15 @@ text-combine-upright: all;
|
|
|
31882
31894
|
});
|
|
31883
31895
|
}
|
|
31884
31896
|
get width() {
|
|
31885
|
-
return H(this,
|
|
31897
|
+
return H(this, le).getWidth;
|
|
31886
31898
|
}
|
|
31887
31899
|
get height() {
|
|
31888
|
-
return H(this,
|
|
31900
|
+
return H(this, le).getHeight;
|
|
31889
31901
|
}
|
|
31890
31902
|
chgBackAlpha(e) {
|
|
31891
31903
|
const r = H(this, Ir) ? H(this, mr) : e * H(this, mr);
|
|
31892
31904
|
H(this, ge) instanceof Graphics && (H(this, ge) && (this.spLay.removeChild(H(this, ge)), H(this, ge).destroy()), this.spLay.addChildAt(
|
|
31893
|
-
ot(this, ge, new Graphics()).beginFill(H(this, mi)).lineStyle(void 0).drawRect(0, 0, H(this,
|
|
31905
|
+
ot(this, ge, new Graphics()).beginFill(H(this, mi)).lineStyle(void 0).drawRect(0, 0, H(this, le).getWidth, H(this, le).getHeight).endFill(),
|
|
31894
31906
|
0
|
|
31895
31907
|
), H(this, ge).name = "back(color)"), H(this, ge) && (H(this, ge).visible = r > 0, H(this, ge).alpha = r);
|
|
31896
31908
|
}
|
|
@@ -31927,7 +31939,7 @@ text-combine-upright: all;
|
|
|
31927
31939
|
H(this, tl).putTxt(e);
|
|
31928
31940
|
}
|
|
31929
31941
|
clearText() {
|
|
31930
|
-
this.spLay.addChild(ot(this,
|
|
31942
|
+
this.spLay.addChild(ot(this, le, H(this, le).reNew())), ot(this, qr, 0), ot(this, Dr, !0), ot(this, _r, []), ot(this, Fn, ""), H(ie, la).recPagebreak();
|
|
31931
31943
|
}
|
|
31932
31944
|
get pageText() {
|
|
31933
31945
|
return H(this, Fn).replace("《 》", "");
|
|
@@ -31948,7 +31960,7 @@ text-combine-upright: all;
|
|
|
31948
31960
|
r.destroy();
|
|
31949
31961
|
}
|
|
31950
31962
|
playback(e, r) {
|
|
31951
|
-
super.playback(e, r), this.enabled = e.enabled, H(this, Wr).style.cssText = e.r_cssText, ot(this, er, e.r_align), this.cvsResize(), lt(this, rl, vf).call(this, e), H(this,
|
|
31963
|
+
super.playback(e, r), this.enabled = e.enabled, H(this, Wr).style.cssText = e.r_cssText, ot(this, er, e.r_align), this.cvsResize(), lt(this, rl, vf).call(this, e), H(this, le).playback(e.txs), ot(this, mr, e.b_alpha), ot(this, Ir, e.b_alpha_isfixed), r.push(new Promise((N) => {
|
|
31952
31964
|
const k = e.b_do ? e.b_do === "Sprite" ? { b_pic: e.b_pic } : { b_color: e.b_color } : { b_pic: "" };
|
|
31953
31965
|
k.b_alpha = e.b_alpha, k.b_alpha_isfixed = e.b_alpha_isfixed, lt(this, el, pf).call(this, k, ($) => {
|
|
31954
31966
|
$ && N();
|
|
@@ -31958,13 +31970,13 @@ text-combine-upright: all;
|
|
|
31958
31970
|
r = r.concat(D.map((N) => this.addButton(JSON.parse(N.replaceAll("'", '"')))));
|
|
31959
31971
|
}
|
|
31960
31972
|
snapshot(e, r) {
|
|
31961
|
-
e.render(this.spLay, { clear: !1 }), H(this,
|
|
31973
|
+
e.render(this.spLay, { clear: !1 }), H(this, le).snapshot(e, r);
|
|
31962
31974
|
}
|
|
31963
31975
|
snapshot_end() {
|
|
31964
|
-
H(this,
|
|
31976
|
+
H(this, le).snapshot_end();
|
|
31965
31977
|
}
|
|
31966
31978
|
makeDesignCast(e) {
|
|
31967
|
-
this.spLay.visible && H(this,
|
|
31979
|
+
this.spLay.visible && H(this, le).makeDesignCast(e);
|
|
31968
31980
|
}
|
|
31969
31981
|
makeDesignCastChildren(e) {
|
|
31970
31982
|
if (this.spLay.visible)
|
|
@@ -31972,14 +31984,14 @@ text-combine-upright: all;
|
|
|
31972
31984
|
r.makeDesignCast(e);
|
|
31973
31985
|
}
|
|
31974
31986
|
showDesignCast() {
|
|
31975
|
-
H(this,
|
|
31987
|
+
H(this, le).showDesignCast();
|
|
31976
31988
|
}
|
|
31977
31989
|
showDesignCastChildren() {
|
|
31978
31990
|
for (const e of H(this, tr).children)
|
|
31979
31991
|
e.showDesignCast();
|
|
31980
31992
|
}
|
|
31981
31993
|
dump() {
|
|
31982
|
-
return H(this, nl).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${H(this,
|
|
31994
|
+
return H(this, nl).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${H(this, le).dump()}, "b_pic":"${H(this, Yr)}", "b_color":"${H(this, mi)}", "b_alpha":${H(this, mr)}, "b_alpha_isfixed":"${H(this, Ir)}", "width":${H(this, le).getWidth}, "height":${H(this, le).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof Sprite ? "Sprite" : e instanceof Graphics ? "Graphics" : e instanceof Container ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${H(this, tr).children.map((e) => e.children[0].name ?? "{}").join(",")}]`;
|
|
31983
31995
|
}
|
|
31984
31996
|
};
|
|
31985
31997
|
let TxtLayer = ie;
|
|
@@ -32029,7 +32041,7 @@ oa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), la = new WeakMap(),
|
|
|
32029
32041
|
if (N.length !== D)
|
|
32030
32042
|
throw "[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい";
|
|
32031
32043
|
return ot(ie, Dn, {}), N.forEach((k, $) => H(ie, Dn)[r[$]] = uint(k)), H(ie, Or).setVal_Nochk("save", "const.sn.autowc.time", e.time), !1;
|
|
32032
|
-
}, mi = new WeakMap(), mr = new WeakMap(), Ir = new WeakMap(), ge = new WeakMap(), Yr = new WeakMap(),
|
|
32044
|
+
}, mi = new WeakMap(), mr = new WeakMap(), Ir = new WeakMap(), ge = new WeakMap(), Yr = new WeakMap(), le = new WeakMap(), tl = new WeakMap(), Wr = new WeakMap(), fh = new WeakMap(), tr = new WeakMap(), An = new WeakSet(), Va = function(e) {
|
|
32033
32045
|
const { in_style: r } = e;
|
|
32034
32046
|
if (!r)
|
|
32035
32047
|
return;
|
|
@@ -32052,11 +32064,11 @@ oa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), la = new WeakMap(),
|
|
|
32052
32064
|
if (e.b_pic) {
|
|
32053
32065
|
if (H(this, Yr) !== e.b_pic)
|
|
32054
32066
|
return ot(this, Yr, e.b_pic), H(this, ge) && (this.spLay.removeChild(H(this, ge)), H(this, ge).destroy()), GrpLayer.csv2Sprites(H(this, Yr), this.spLay, (N) => {
|
|
32055
|
-
ot(this, ge, N), N.name = "back(pic)", N.visible = D > 0, N.alpha = D, H(this,
|
|
32067
|
+
ot(this, ge, N), N.name = "back(pic)", N.visible = D > 0, N.alpha = D, H(this, le).setSize(N.width, N.height), this.spLay.setChildIndex(N, 0), r(!0);
|
|
32056
32068
|
});
|
|
32057
32069
|
} else
|
|
32058
32070
|
"b_color" in e && (ot(this, mi, argChk_Color(e, "b_color", 0)), H(this, ge) && (this.spLay.removeChild(H(this, ge)), H(this, ge).destroy()), ot(this, Yr, ""), this.spLay.addChildAt(
|
|
32059
|
-
ot(this, ge, new Graphics()).beginFill(H(this, mi)).lineStyle(void 0).drawRect(0, 0, H(this,
|
|
32071
|
+
ot(this, ge, new Graphics()).beginFill(H(this, mi)).lineStyle(void 0).drawRect(0, 0, H(this, le).getWidth, H(this, le).getHeight).endFill(),
|
|
32060
32072
|
0
|
|
32061
32073
|
), H(this, ge).name = "back(color)");
|
|
32062
32074
|
return H(this, ge) && (H(this, ge).visible = D > 0, H(this, ge).alpha = D), r(!1), !1;
|
|
@@ -32087,10 +32099,10 @@ oa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), la = new WeakMap(),
|
|
|
32087
32099
|
break;
|
|
32088
32100
|
case "even":
|
|
32089
32101
|
const G = (k - r.length) / (r.length + 1);
|
|
32090
|
-
$ = "ruby-align: space-between; " + (H(this,
|
|
32102
|
+
$ = "ruby-align: space-between; " + (H(this, le).tategaki ? `padding-top: ${G}em; padding-bottom: ${G}em;` : `padding-left: ${G}em; padding-right: ${G}em;`);
|
|
32091
32103
|
break;
|
|
32092
32104
|
case "1ruby":
|
|
32093
|
-
$ = "ruby-align: space-between; " + (H(this,
|
|
32105
|
+
$ = "ruby-align: space-between; " + (H(this, le).tategaki ? "padding-top: 1em; padding-bottom: 1em;" : "padding-left: 1em; padding-right: 1em;");
|
|
32094
32106
|
break;
|
|
32095
32107
|
default:
|
|
32096
32108
|
$ = `text-align: ${D};`;
|
|
@@ -32373,7 +32385,7 @@ ${e}`, at = () => {
|
|
|
32373
32385
|
yt.start();
|
|
32374
32386
|
return this.hTwInf[st] = { tw: Tt, resume: !1 }, !1;
|
|
32375
32387
|
};
|
|
32376
|
-
var br,
|
|
32388
|
+
var br, ue, Te, Vi, Gn, ya, ll, ul, hl, ba, cl, _f, Xi, Ar, yh, Ed, rr, bh, Td, xh, wd, Sh, Cd, ae, Kr, Zr, fl, Eh, Pd, xa, mu, Th, Md, wh, dl, Ch, Un, jn, yi, Ae, zn, Ph, Rd, Ne, Ke, sr, Mh, Od, Rh, Id, Oh, Dd, Hn, Ya, Ih, Ad, hr, Dh, Nd, Ah, kd, Nh, Ld, kh, Bd, Lh, Fd, Yi, Vn, Wa, cr, Bh, $d, pl, Fh, Gd, Jr, Xn, Wi, Es, Nr, Qr, $h, Ud, Gh, jd, Uh, zd, jh, Hd, zh, Vd, Hh, Xd, Vh, Yd, vl, yf, Xh, Wd, Yh, qd, Wh, Kd, qh, Zd, Kh, Jd, Zh, Qd, Jh, tp;
|
|
32377
32389
|
const Ai = class {
|
|
32378
32390
|
constructor(t, e, r, D, N, k, $, G, U, z) {
|
|
32379
32391
|
rt(this, cl);
|
|
@@ -32446,7 +32458,7 @@ const Ai = class {
|
|
|
32446
32458
|
// ボタンを表示
|
|
32447
32459
|
rt(this, Jh);
|
|
32448
32460
|
rt(this, br, void 0);
|
|
32449
|
-
rt(this,
|
|
32461
|
+
rt(this, ue, new Container());
|
|
32450
32462
|
rt(this, Te, new Container());
|
|
32451
32463
|
rt(this, Vi, void 0);
|
|
32452
32464
|
rt(this, Gn, void 0);
|
|
@@ -32572,7 +32584,7 @@ void main(void) {
|
|
|
32572
32584
|
}
|
|
32573
32585
|
$.cvsResize(), TxtLayer.init(t, e, D, this, (q) => H(this, ae)[q.layname].fore === q, r), GrpLayer.init(N, t, r, $, G, D), Button.init(t), ot(this, Vi, new FrameMng(t, e, r, D, N, $, H(this, hr))), $.hFactoryCls.grp = () => new GrpLayer(), $.hFactoryCls.txt = () => new TxtLayer(), e.loadplugin = (q) => lt(this, xh, wd).call(this, q), e.snapshot = (q) => lt(this, bh, Td).call(this, q), e.add_lay = (q) => lt(this, Sh, Cd).call(this, q), e.clear_lay = (q) => lt(this, Th, Md).call(this, q), e.finish_trans = () => lt(this, Hn, Ya).call(this), e.lay = (q) => lt(this, Eh, Pd).call(this, q), e.trans = (q) => lt(this, Ph, Rd).call(this, q), e.wt = (q) => lt(this, Oh, Dd).call(this, q), e.quake = (q) => lt(this, Ih, Ad).call(this, q), e.stop_quake = (q) => e.finish_trans(q), e.wq = (q) => e.wt(q), e.pause_tsy = (q) => lt(this, kh, Bd).call(this, q), e.resume_tsy = (q) => lt(this, Lh, Fd).call(this, q), e.stop_tsy = (q) => lt(this, Nh, Ld).call(this, q), e.tsy = (q) => lt(this, Dh, Nd).call(this, q), e.wait_tsy = (q) => lt(this, Ah, kd).call(this, q), e.ch = (q) => lt(this, Vn, Wa).call(this, q), e.clear_text = (q) => lt(this, $h, Ud).call(this, q), e.current = (q) => H(this, pl).call(this, q), e.endlink = (q) => lt(this, Gh, jd).call(this, q), e.er = (q) => lt(this, Uh, zd).call(this, q), e.graph = (q) => lt(this, jh, Hd).call(this, q), e.link = (q) => lt(this, zh, Vd).call(this, q), e.r = (q) => lt(this, Hh, Xd).call(this, q), e.rec_ch = (q) => lt(this, vl, yf).call(this, q), e.rec_r = (q) => lt(this, Vh, Yd).call(this, q), e.reset_rec = (q) => lt(this, Xh, Wd).call(this, q), e.ruby2 = (q) => lt(this, Yh, qd).call(this, q), e.span = (q) => lt(this, Wh, Kd).call(this, q), e.tcy = (q) => lt(this, qh, Zd).call(this, q), e.add_face = (q) => GrpLayer.add_face(q), e.wv = (q) => GrpLayer.wv(q), e.dump_lay = (q) => lt(this, Kh, Jd).call(this, q), e.enable_event = (q) => lt(this, Zh, Qd).call(this, q), e.button = (q) => lt(this, Jh, tp).call(this, q), t.existsBreakline && (this.breakLine = () => H(this, rr).call(this, 'grp|{"id":"break","pic":"breakline"}')), t.existsBreakpage && (this.breakPage = () => H(this, rr).call(this, 'grp|{"id":"break","pic":"breakpage"}')), ot(this, Gn, parseColor(String(t.oCfg.init.bg_color)));
|
|
32574
32586
|
const V = new Graphics();
|
|
32575
|
-
V.beginFill(H(this, Gn), 1).lineStyle(0, H(this, Gn)).drawRect(0, 0, CmnLib.stageW, CmnLib.stageH).endFill(), H(this,
|
|
32587
|
+
V.beginFill(H(this, Gn), 1).lineStyle(0, H(this, Gn)).drawRect(0, 0, CmnLib.stageW, CmnLib.stageH).endFill(), H(this, ue).addChild(V.clone()), H(this, Te).addChild(V), H(this, Te).visible = !1, H(this, ue).name = "page:A", H(this, Te).name = "page:B", ot(this, br, r.stage), H(this, br).addChild(H(this, Te)), H(this, br).addChild(H(this, ue)), H(this, br).addChild(H(this, jn)), H(this, br).addChild(H(this, Ae)), H(this, br).name = "stage", r.ticker.add(H(this, ll));
|
|
32576
32588
|
const Y = (q, K) => {
|
|
32577
32589
|
lt(this, yh, Ed).call(this, Number(K));
|
|
32578
32590
|
};
|
|
@@ -32665,24 +32677,24 @@ void main(void) {
|
|
|
32665
32677
|
const r = [], D = [];
|
|
32666
32678
|
for (const [$, { fore: G, fore: { idx: U }, back: z, cls: X }] of Object.entries(t)) {
|
|
32667
32679
|
D.push({ layer: $, idx: U });
|
|
32668
|
-
const V = (k = H(this, ae))[$] ?? (k[$] = new Pages($, X, H(this,
|
|
32680
|
+
const V = (k = H(this, ae))[$] ?? (k[$] = new Pages($, X, H(this, ue), H(this, Te), {}, this.sys, this.val, { isWait: !1 }));
|
|
32669
32681
|
V.fore.playback(G, r), V.back.playback(z, r);
|
|
32670
32682
|
}
|
|
32671
|
-
const N = H(this,
|
|
32683
|
+
const N = H(this, ue).children.length;
|
|
32672
32684
|
Promise.allSettled(r).then(() => {
|
|
32673
32685
|
for (const { layer: $, idx: G } of D.sort(({ idx: U }, { idx: z }) => U === z ? 0 : U < z ? -1 : 1)) {
|
|
32674
32686
|
const { fore: U, back: z } = H(this, ae)[$];
|
|
32675
32687
|
if (!U)
|
|
32676
32688
|
return;
|
|
32677
32689
|
const X = N > G ? G : N - 1;
|
|
32678
|
-
H(this,
|
|
32690
|
+
H(this, ue).setChildIndex(U.spLay, X), H(this, Te).setChildIndex(z.spLay, X);
|
|
32679
32691
|
}
|
|
32680
32692
|
e();
|
|
32681
32693
|
}).catch(($) => console.error("fn:LayerMng.ts playback e:%o", $));
|
|
32682
32694
|
}
|
|
32683
32695
|
};
|
|
32684
32696
|
let LayerMng = Ai;
|
|
32685
|
-
br = new WeakMap(),
|
|
32697
|
+
br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(), Gn = new WeakMap(), ya = new WeakMap(), ll = new WeakMap(), ul = new WeakMap(), hl = new WeakMap(), ba = new WeakMap(), cl = new WeakSet(), _f = function(t) {
|
|
32686
32698
|
[Ie(this, hl)._, this.ba = ""] = t.split("/");
|
|
32687
32699
|
const e = H(this, ae)[H(this, hl)];
|
|
32688
32700
|
e && (DesignCast.allHide(), H(this, ba) ? e.fore.showDesignCastChildren() : e.fore.showDesignCast());
|
|
@@ -32709,7 +32721,7 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32709
32721
|
H(this, Te).visible = !0;
|
|
32710
32722
|
for (const z of H(this, zn))
|
|
32711
32723
|
k.render(z, { clear: !1 });
|
|
32712
|
-
H(this, Te).visible = !1, H(this, jn).visible = !0, H(this,
|
|
32724
|
+
H(this, Te).visible = !1, H(this, jn).visible = !0, H(this, ue).filters = H(this, Ae).filters, H(this, ue).visible = !0, k.render(H(this, ue), { clear: !1 }), H(this, ue).visible = !1, H(this, ue).filters = [], U();
|
|
32713
32725
|
}));
|
|
32714
32726
|
else
|
|
32715
32727
|
for (const U of lt(this, Ke, sr).call(this, t.layer))
|
|
@@ -32755,7 +32767,7 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32755
32767
|
if (!r)
|
|
32756
32768
|
throw "clsは必須です";
|
|
32757
32769
|
const D = { isWait: !1 };
|
|
32758
|
-
switch (H(this, ae)[e] = new Pages(e, r, H(this,
|
|
32770
|
+
switch (H(this, ae)[e] = new Pages(e, r, H(this, ue), H(this, Te), t, this.sys, this.val, D), H(this, Kr).push(e), r) {
|
|
32759
32771
|
case "txt":
|
|
32760
32772
|
H(this, Zr) || (ot(this, Xn, () => {
|
|
32761
32773
|
}), ot(this, cr, lt(this, Bh, $d)), ot(this, pl, lt(this, Fh, Gd)), this.hTag.current({ layer: e }), this.goTxt = () => {
|
|
@@ -32780,9 +32792,9 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32780
32792
|
}, ae = new WeakMap(), Kr = new WeakMap(), Zr = new WeakMap(), fl = new WeakMap(), Eh = new WeakSet(), Pd = function(t) {
|
|
32781
32793
|
const e = lt(this, Wi, Es).call(this, t), r = H(this, ae)[e], D = r.back.spLay, N = r.fore.spLay;
|
|
32782
32794
|
if (argChk_Boolean(t, "float", !1))
|
|
32783
|
-
H(this, Te).setChildIndex(D, H(this, Te).children.length - 1), H(this,
|
|
32795
|
+
H(this, Te).setChildIndex(D, H(this, Te).children.length - 1), H(this, ue).setChildIndex(N, H(this, ue).children.length - 1), lt(this, xa, mu).call(this);
|
|
32784
32796
|
else if (t.index)
|
|
32785
|
-
argChk_Num(t, "index", 0) && (H(this, Te).setChildIndex(D, t.index), H(this,
|
|
32797
|
+
argChk_Num(t, "index", 0) && (H(this, Te).setChildIndex(D, t.index), H(this, ue).setChildIndex(N, t.index), lt(this, xa, mu).call(this));
|
|
32786
32798
|
else if (t.dive) {
|
|
32787
32799
|
const { dive: k } = t;
|
|
32788
32800
|
let $ = 0;
|
|
@@ -32791,8 +32803,8 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32791
32803
|
const G = H(this, ae)[k];
|
|
32792
32804
|
if (!G)
|
|
32793
32805
|
throw "[lay] 属性 dive【" + k + "】が不正です。レイヤーがありません";
|
|
32794
|
-
const U = G.back, z = G.fore, X = H(this, Te).getChildIndex(U.spLay), V = H(this,
|
|
32795
|
-
$ = X < V ? X : V, $ > H(this, Te).getChildIndex(D) && --$, H(this,
|
|
32806
|
+
const U = G.back, z = G.fore, X = H(this, Te).getChildIndex(U.spLay), V = H(this, ue).getChildIndex(z.spLay);
|
|
32807
|
+
$ = X < V ? X : V, $ > H(this, Te).getChildIndex(D) && --$, H(this, ue).setChildIndex(N, $), H(this, Te).setChildIndex(D, $), lt(this, xa, mu).call(this);
|
|
32796
32808
|
}
|
|
32797
32809
|
return t[":id_tag"] = r.fore.name.slice(0, -7), this.scrItr.recodeDesign(t), r.lay(t);
|
|
32798
32810
|
}, xa = new WeakSet(), mu = function() {
|
|
@@ -32828,9 +32840,9 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32828
32840
|
}, K();
|
|
32829
32841
|
};
|
|
32830
32842
|
}
|
|
32831
|
-
H(this, yi).resize(CmnLib.stageW, CmnLib.stageH), this.appPixi.renderer.render(H(this,
|
|
32843
|
+
H(this, yi).resize(CmnLib.stageW, CmnLib.stageH), this.appPixi.renderer.render(H(this, ue), { renderTexture: H(this, yi) });
|
|
32832
32844
|
let $ = () => {
|
|
32833
|
-
H(this,
|
|
32845
|
+
H(this, ue).visible = !0, this.appPixi.renderer.render(H(this, ue), { renderTexture: H(this, yi) }), H(this, ue).visible = !1;
|
|
32834
32846
|
};
|
|
32835
32847
|
if (!D.some((K) => K.containMovement)) {
|
|
32836
32848
|
let K = $;
|
|
@@ -32845,17 +32857,17 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32845
32857
|
H(this, Ae).alpha = 1;
|
|
32846
32858
|
const U = () => {
|
|
32847
32859
|
var Z;
|
|
32848
|
-
this.appPixi.ticker && this.appPixi.ticker.remove(G), [Ie(this,
|
|
32860
|
+
this.appPixi.ticker && this.appPixi.ticker.remove(G), [Ie(this, ue)._, Ie(this, Te)._] = [H(this, Te), H(this, ue)];
|
|
32849
32861
|
const K = [];
|
|
32850
32862
|
for (const [J, Q] of Object.entries(H(this, ae))) {
|
|
32851
32863
|
if (r[J]) {
|
|
32852
32864
|
Q.transPage(K);
|
|
32853
32865
|
continue;
|
|
32854
32866
|
}
|
|
32855
|
-
const { fore: { spLay: et }, back: { spLay: it } } = Q, tt = H(this,
|
|
32856
|
-
H(this,
|
|
32867
|
+
const { fore: { spLay: et }, back: { spLay: it } } = Q, tt = H(this, ue).getChildIndex(it);
|
|
32868
|
+
H(this, ue).removeChild(it), H(this, Te).removeChild(et), H(this, ue).addChildAt(et, tt), H(this, Te).addChildAt(it, tt);
|
|
32857
32869
|
}
|
|
32858
|
-
Promise.allSettled(K), H(this,
|
|
32870
|
+
Promise.allSettled(K), H(this, ue).visible = !0, H(this, Te).visible = !1, H(this, jn).visible = !1, H(this, Ae).visible = !1, (Z = H(this, Ne).tw) == null || Z.stop(), H(this, Ne).resume && this.main.resume(), ot(this, Ne, { tw: void 0, resume: !1 });
|
|
32859
32871
|
};
|
|
32860
32872
|
ot(this, Ne, { tw: void 0, resume: !1 });
|
|
32861
32873
|
const z = argChk_Num(t, "time", 0);
|
|
@@ -32888,7 +32900,7 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32888
32900
|
return r;
|
|
32889
32901
|
}, Rh = new WeakSet(), Id = function(t = "") {
|
|
32890
32902
|
return lt(this, Ke, sr).call(this, t).sort((e, r) => {
|
|
32891
|
-
const D = H(this,
|
|
32903
|
+
const D = H(this, ue).getChildIndex(H(this, ae)[e].fore.spLay), N = H(this, ue).getChildIndex(H(this, ae)[r].fore.spLay);
|
|
32892
32904
|
return D < N ? -1 : D > N ? 1 : 0;
|
|
32893
32905
|
});
|
|
32894
32906
|
}, Oh = new WeakSet(), Dd = function(t) {
|
|
@@ -32906,13 +32918,13 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32906
32918
|
N.push(H(this, ae)[Y].fore.spLay);
|
|
32907
32919
|
H(this, yi).resize(CmnLib.stageW, CmnLib.stageH);
|
|
32908
32920
|
const k = () => {
|
|
32909
|
-
H(this,
|
|
32921
|
+
H(this, ue).visible = !0;
|
|
32910
32922
|
for (const Y of N)
|
|
32911
32923
|
this.appPixi.renderer.render(
|
|
32912
32924
|
Y,
|
|
32913
32925
|
{ renderTexture: H(this, yi), clear: !1 }
|
|
32914
32926
|
);
|
|
32915
|
-
H(this,
|
|
32927
|
+
H(this, ue).visible = !1;
|
|
32916
32928
|
};
|
|
32917
32929
|
H(this, Ae).visible = !0, H(this, Ae).alpha = 1;
|
|
32918
32930
|
const $ = uint(argChk_Num(t, "hmax", 10)), G = uint(argChk_Num(t, "vmax", 10)), U = $ === 0 ? () => {
|
|
@@ -32923,7 +32935,7 @@ br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32923
32935
|
U(), z();
|
|
32924
32936
|
}).repeat(X === 0 ? 1 / 0 : X - 1).yoyo(argChk_Boolean(t, "yoyo", !1)).onComplete(() => {
|
|
32925
32937
|
var Y, W;
|
|
32926
|
-
(Y = this.appPixi.ticker) == null || Y.remove(k), H(this,
|
|
32938
|
+
(Y = this.appPixi.ticker) == null || Y.remove(k), H(this, ue).visible = !0, H(this, Ae).visible = !1, H(this, Ae).x = 0, H(this, Ae).y = 0, (W = H(this, Ne).tw) == null || W.stop(), H(this, Ne).resume && this.main.resume(), ot(this, Ne, { tw: void 0, resume: !1 });
|
|
32927
32939
|
}).start();
|
|
32928
32940
|
return ot(this, Ne, { tw: V, resume: !1 }), this.appPixi.ticker.add(k), !1;
|
|
32929
32941
|
}, hr = new WeakMap(), Dh = new WeakSet(), Nd = function(t) {
|
|
@@ -33978,7 +33990,7 @@ function preventOverflow(o) {
|
|
|
33978
33990
|
tt[et] = jt, dt[et] = jt - Tt;
|
|
33979
33991
|
}
|
|
33980
33992
|
if ($) {
|
|
33981
|
-
var Ct, Wt = et === "x" ? top : left, Jt = et === "x" ? bottom : right, Kt = tt[it], Se = it === "y" ? "height" : "width", Oe = Kt + K[Wt],
|
|
33993
|
+
var Ct, Wt = et === "x" ? top : left, Jt = et === "x" ? bottom : right, Kt = tt[it], Se = it === "y" ? "height" : "width", Oe = Kt + K[Wt], he = Kt - K[Jt], _e = [top, left].indexOf(Z) !== -1, ve = (Ct = ht == null ? void 0 : ht[it]) != null ? Ct : 0, de = _e ? Oe : Kt - nt[Se] - st[Se] - ve + ut.altAxis, fe = _e ? Kt + nt[Se] + st[Se] - ve - ut.altAxis : he, ne = Y && _e ? withinMaxClamp(de, Kt, fe) : within(Y ? de : Oe, Kt, Y ? fe : he);
|
|
33982
33994
|
tt[it] = ne, dt[it] = ne - Kt;
|
|
33983
33995
|
}
|
|
33984
33996
|
t.modifiersData[r] = dt;
|