@famibee/skynovel 1.44.1 → 1.45.0
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 +82 -74
- package/dist/app.js.map +1 -1
- package/dist/sn/LayerMng.d.ts +3 -3
- package/dist/sn/LayerMng.d.ts.map +1 -1
- package/dist/sn/TxtLayer.d.ts.map +1 -1
- package/dist/sn/TxtStage.d.ts +1 -1
- package/dist/sn/TxtStage.d.ts.map +1 -1
- package/dist/web.js +314 -306
- package/dist/web.js.map +1 -1
- package/package.json +5 -5
package/dist/app.js
CHANGED
|
@@ -19911,7 +19911,7 @@ class qC extends nx {
|
|
|
19911
19911
|
}
|
|
19912
19912
|
}
|
|
19913
19913
|
var Pd, qn, dn, $s, zs, Rr, Ca, Vs, Ql, Ma, kr, pn, vn, Zn, tu, eu, iu, Od, sx, Id, ox, ru, ey, Cd, ax, Ra, ff, ka, or, Na, Md, Xs, nu;
|
|
19914
|
-
const
|
|
19914
|
+
const st = class extends ui {
|
|
19915
19915
|
constructor() {
|
|
19916
19916
|
super();
|
|
19917
19917
|
_(this, kr, new VC(this.spLay, this));
|
|
@@ -19919,7 +19919,7 @@ const nt = class extends ui {
|
|
|
19919
19919
|
_(this, vn, "");
|
|
19920
19920
|
_(this, Zn, "");
|
|
19921
19921
|
B(this, "lay", (e) => this.laySub(e, (i) => {
|
|
19922
|
-
i && h(
|
|
19922
|
+
i && h(st, dn).resume();
|
|
19923
19923
|
}));
|
|
19924
19924
|
_(this, tu, 0);
|
|
19925
19925
|
_(this, eu, 0);
|
|
@@ -19940,37 +19940,37 @@ const nt = class extends ui {
|
|
|
19940
19940
|
});
|
|
19941
19941
|
}
|
|
19942
19942
|
static init(e, i, n, s, o, a) {
|
|
19943
|
-
b(
|
|
19943
|
+
b(st, dn, e), b(st, $s, i), b(st, zs, n), b(st, Rr, s), b(st, Ca, a);
|
|
19944
19944
|
const l = () => {
|
|
19945
|
-
const u = h(
|
|
19946
|
-
for (const c of Object.values(
|
|
19945
|
+
const u = h(st, Vs) * h(st, Ql);
|
|
19946
|
+
for (const c of Object.values(st.hFn2VElm))
|
|
19947
19947
|
c.volume = u;
|
|
19948
19948
|
};
|
|
19949
19949
|
o.setNoticeChgVolume(
|
|
19950
19950
|
(u) => {
|
|
19951
|
-
b(
|
|
19951
|
+
b(st, Vs, u), l();
|
|
19952
19952
|
},
|
|
19953
19953
|
(u) => {
|
|
19954
|
-
b(
|
|
19954
|
+
b(st, Ql, u), l();
|
|
19955
19955
|
}
|
|
19956
|
-
), h(
|
|
19956
|
+
), h(st, Rr).crypto && b(st, iu, x(st, Id, ox));
|
|
19957
19957
|
}
|
|
19958
19958
|
static setEvtMng(e) {
|
|
19959
|
-
b(
|
|
19959
|
+
b(st, Ma, e);
|
|
19960
19960
|
}
|
|
19961
19961
|
static destroy() {
|
|
19962
|
-
h(
|
|
19962
|
+
h(st, Pd).clear(), b(st, qn, {}), st.hFn2ResAniSpr = {}, st.hFn2VElm = {};
|
|
19963
19963
|
}
|
|
19964
19964
|
setSp(e) {
|
|
19965
19965
|
}
|
|
19966
19966
|
laySub(e, i) {
|
|
19967
19967
|
var l;
|
|
19968
|
-
x(l =
|
|
19968
|
+
x(l = st, Ra, ff).call(l, h(this, vn));
|
|
19969
19969
|
const { fn: n, face: s = "" } = e;
|
|
19970
19970
|
if (h(this, kr).sethArg(e), !n)
|
|
19971
19971
|
return super.lay(e), this.spLay.children.length > 0 && this.setPos(e), b(this, vn, ""), b(this, pn, b(this, Zn, s)), i(!1), !1;
|
|
19972
19972
|
const o = "fn" in e, a = "face" in e;
|
|
19973
|
-
return this.clearLay({ filter: "true" }), o && b(this, vn, n), a && b(this, Zn, s), super.lay(e), e.dx = 0, e.dy = 0,
|
|
19973
|
+
return this.clearLay({ filter: "true" }), o && b(this, vn, n), a && b(this, Zn, s), super.lay(e), e.dx = 0, e.dy = 0, st.csv2Sprites(
|
|
19974
19974
|
b(this, pn, n + (s ? "," + s : "")),
|
|
19975
19975
|
this.spLay,
|
|
19976
19976
|
(u) => {
|
|
@@ -20002,7 +20002,7 @@ const nt = class extends ui {
|
|
|
20002
20002
|
e.split(",").forEach((c, f) => {
|
|
20003
20003
|
if (!c)
|
|
20004
20004
|
throw "face属性に空要素が含まれます";
|
|
20005
|
-
const { dx: d, dy: p, blendmode: m, fn: v } = h(
|
|
20005
|
+
const { dx: d, dy: p, blendmode: m, fn: v } = h(st, qn)[c] || {
|
|
20006
20006
|
fn: c,
|
|
20007
20007
|
dx: 0,
|
|
20008
20008
|
dy: 0,
|
|
@@ -20010,16 +20010,16 @@ const nt = class extends ui {
|
|
|
20010
20010
|
}, y = f === 0 ? n : (T) => {
|
|
20011
20011
|
T.x = d, T.y = p, T.blendMode = m;
|
|
20012
20012
|
};
|
|
20013
|
-
if (a.push({ fn: v, fnc: y }), v in
|
|
20013
|
+
if (a.push({ fn: v, fnc: y }), v in st.hFn2ResAniSpr || v in li || v in Ii.shared.resources)
|
|
20014
20014
|
return;
|
|
20015
20015
|
o = !0;
|
|
20016
|
-
const g = h(
|
|
20016
|
+
const g = h(st, $s).searchPath(v, ii.SP_GSM), w = h(this, Rr).crypto ? { xhrType: g.slice(-5) === ".json" ? _t.XHR_RESPONSE_TYPE.TEXT : _t.XHR_RESPONSE_TYPE.BUFFER } : {};
|
|
20017
20017
|
l.add({ ...w, name: v, url: g });
|
|
20018
20018
|
});
|
|
20019
20019
|
const u = (c) => {
|
|
20020
20020
|
var f;
|
|
20021
20021
|
for (const { fn: d, fnc: p } of a) {
|
|
20022
|
-
const m = x(f =
|
|
20022
|
+
const m = x(f = st, Cd, ax).call(f, d, c);
|
|
20023
20023
|
m.name = d, i == null || i.addChild(m), p(m);
|
|
20024
20024
|
}
|
|
20025
20025
|
s(o);
|
|
@@ -20027,7 +20027,7 @@ const nt = class extends ui {
|
|
|
20027
20027
|
return o ? l.use((c, f) => {
|
|
20028
20028
|
h(this, Rr).dec(c.extension, c.data).then((d) => {
|
|
20029
20029
|
var p;
|
|
20030
|
-
return h(p =
|
|
20030
|
+
return h(p = st, iu).call(p, d, c, () => f == null ? void 0 : f());
|
|
20031
20031
|
}).catch((d) => h(this, dn).errScript(`Graphic ロード失敗です fn:${c.name} ${d}`, !1));
|
|
20032
20032
|
}).load((c, f) => u(f)) : u({}), o;
|
|
20033
20033
|
}
|
|
@@ -20036,16 +20036,16 @@ const nt = class extends ui {
|
|
|
20036
20036
|
const { fn: i } = e;
|
|
20037
20037
|
if (!i)
|
|
20038
20038
|
throw "fnは必須です";
|
|
20039
|
-
const n =
|
|
20039
|
+
const n = st.hFn2VElm[i];
|
|
20040
20040
|
if (!n || n.loop)
|
|
20041
20041
|
return !1;
|
|
20042
20042
|
if (h(this, Ca).getVal("tmp:sn.skip.enabled") || h(this, Ma).isSkippingByKeyDown() || n.ended)
|
|
20043
|
-
return x(o =
|
|
20043
|
+
return x(o = st, Ra, ff).call(o, i), !1;
|
|
20044
20044
|
const s = () => {
|
|
20045
20045
|
var a;
|
|
20046
|
-
x(a =
|
|
20046
|
+
x(a = st, Ra, ff).call(a, i), h(this, dn).resume();
|
|
20047
20047
|
};
|
|
20048
|
-
return n.addEventListener("ended", s, { once: !0, passive: !0 }), h(
|
|
20048
|
+
return n.addEventListener("ended", s, { once: !0, passive: !0 }), h(st, Ma).waitEvent(
|
|
20049
20049
|
() => {
|
|
20050
20050
|
n.removeEventListener("ended", s), s();
|
|
20051
20051
|
},
|
|
@@ -20063,7 +20063,7 @@ const nt = class extends ui {
|
|
|
20063
20063
|
this.spLay.alpha = 1;
|
|
20064
20064
|
for (const n of this.spLay.children)
|
|
20065
20065
|
n.visible = !0;
|
|
20066
|
-
h(this, or).visible = !1, h(
|
|
20066
|
+
h(this, or).visible = !1, h(st, zs).renderer.render(this.spLay, { renderTexture: h(this, ka) }), this.spLay.alpha = i;
|
|
20067
20067
|
for (const n of this.spLay.children)
|
|
20068
20068
|
n.visible = !1;
|
|
20069
20069
|
};
|
|
@@ -20076,17 +20076,17 @@ const nt = class extends ui {
|
|
|
20076
20076
|
}
|
|
20077
20077
|
b(this, Na, () => {
|
|
20078
20078
|
e(), h(this, or).visible = !0;
|
|
20079
|
-
}), h(
|
|
20079
|
+
}), h(st, zs).ticker.add(h(this, Na));
|
|
20080
20080
|
}
|
|
20081
20081
|
renderEnd() {
|
|
20082
|
-
h(
|
|
20082
|
+
h(st, zs).ticker.remove(h(this, Na)), this.spLay.removeChild(h(this, or));
|
|
20083
20083
|
for (const e of this.spLay.children)
|
|
20084
20084
|
e.visible = !0;
|
|
20085
20085
|
h(this, or).destroy(!0);
|
|
20086
20086
|
}
|
|
20087
20087
|
// https://regex101.com/r/ZUnoFq/1
|
|
20088
20088
|
static loadPic2Img(e, i, n) {
|
|
20089
|
-
const s = e.replace(h(
|
|
20089
|
+
const s = e.replace(h(st, Md), ""), o = e === s ? "" : e.slice(s.length), a = h(this, nu)[e];
|
|
20090
20090
|
if (a) {
|
|
20091
20091
|
i.src = a;
|
|
20092
20092
|
return;
|
|
@@ -20097,15 +20097,15 @@ const nt = class extends ui {
|
|
|
20097
20097
|
return;
|
|
20098
20098
|
}
|
|
20099
20099
|
h(this, Xs)[e] = [i];
|
|
20100
|
-
const u = h(
|
|
20101
|
-
h(
|
|
20102
|
-
h(
|
|
20100
|
+
const u = h(st, $s).searchPath(s, ii.SP_GSM), c = new Ii().add({ name: e, url: u, xhrType: _t.XHR_RESPONSE_TYPE.BUFFER });
|
|
20101
|
+
h(st, Rr).crypto && nm(u) === "bin" && c.use((f, d) => {
|
|
20102
|
+
h(st, Rr).dec(f.extension, f.data).then((p) => {
|
|
20103
20103
|
if (f.extension !== "bin") {
|
|
20104
20104
|
d == null || d();
|
|
20105
20105
|
return;
|
|
20106
20106
|
}
|
|
20107
20107
|
f.data = p, p instanceof HTMLImageElement && (f.type = _t.TYPE.IMAGE), d == null || d();
|
|
20108
|
-
}).catch((p) => h(
|
|
20108
|
+
}).catch((p) => h(st, dn).errScript(`GrpLayer loadPic ロード失敗です fn:${f.name} ${p}`, !1));
|
|
20109
20109
|
}), c.load((f, d) => {
|
|
20110
20110
|
for (const [p, { data: { src: m } }] of Object.entries(d)) {
|
|
20111
20111
|
const v = h(this, nu)[p] = m + (m.slice(0, 5) === "blob:" ? "" : o);
|
|
@@ -20127,10 +20127,10 @@ const nt = class extends ui {
|
|
|
20127
20127
|
const { name: i } = e;
|
|
20128
20128
|
if (!i)
|
|
20129
20129
|
throw "nameは必須です";
|
|
20130
|
-
if (i in h(
|
|
20130
|
+
if (i in h(st, qn))
|
|
20131
20131
|
throw "一つのname(" + i + ")に対して同じ画像を複数割り当てられません";
|
|
20132
20132
|
const { fn: n = i } = e;
|
|
20133
|
-
return h(
|
|
20133
|
+
return h(st, qn)[i] = {
|
|
20134
20134
|
fn: n,
|
|
20135
20135
|
dx: j(e, "dx", 0),
|
|
20136
20136
|
dy: j(e, "dy", 0),
|
|
@@ -20138,7 +20138,7 @@ const nt = class extends ui {
|
|
|
20138
20138
|
}, !1;
|
|
20139
20139
|
}
|
|
20140
20140
|
static clearFace2Name() {
|
|
20141
|
-
b(
|
|
20141
|
+
b(st, qn, {});
|
|
20142
20142
|
}
|
|
20143
20143
|
// アニメ・動画を含むか
|
|
20144
20144
|
get containMovement() {
|
|
@@ -20146,7 +20146,7 @@ const nt = class extends ui {
|
|
|
20146
20146
|
return !1;
|
|
20147
20147
|
const e = this.spLay.children;
|
|
20148
20148
|
return h(this, pn).split(",").some(
|
|
20149
|
-
(i, n) => e[n] instanceof Gg ||
|
|
20149
|
+
(i, n) => e[n] instanceof Gg || st.hFn2VElm[i]
|
|
20150
20150
|
);
|
|
20151
20151
|
}
|
|
20152
20152
|
clearLay(e) {
|
|
@@ -20179,7 +20179,7 @@ const nt = class extends ui {
|
|
|
20179
20179
|
h(this, kr).visible = !0;
|
|
20180
20180
|
}
|
|
20181
20181
|
};
|
|
20182
|
-
let Rt =
|
|
20182
|
+
let Rt = st;
|
|
20183
20183
|
Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(), zs = new WeakMap(), Rr = new WeakMap(), Ca = new WeakMap(), Vs = new WeakMap(), Ql = new WeakMap(), Ma = new WeakMap(), kr = new WeakMap(), pn = new WeakMap(), vn = new WeakMap(), Zn = new WeakMap(), tu = new WeakMap(), eu = new WeakMap(), iu = new WeakMap(), Od = new WeakSet(), sx = function(e) {
|
|
20184
20184
|
const i = /([^\d]+)\d+\.(\w+)/.exec(e[0]);
|
|
20185
20185
|
if (!i)
|
|
@@ -20190,7 +20190,7 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
|
|
|
20190
20190
|
);
|
|
20191
20191
|
}, Id = new WeakSet(), ox = function(e, i, n) {
|
|
20192
20192
|
var u;
|
|
20193
|
-
if (i.data = e, i.extension === "bin" && (e instanceof HTMLImageElement ? (i.texture = lt.fromLoader(e, i.url, i.name), i.type = _t.TYPE.IMAGE) : e instanceof HTMLVideoElement && (e.volume = h(
|
|
20193
|
+
if (i.data = e, i.extension === "bin" && (e instanceof HTMLImageElement ? (i.texture = lt.fromLoader(e, i.url, i.name), i.type = _t.TYPE.IMAGE) : e instanceof HTMLVideoElement && (e.volume = h(st, Vs), st.hFn2VElm[i.name] = x(u = st, ru, ey).call(u, e), i.type = _t.TYPE.VIDEO)), i.extension !== "json") {
|
|
20194
20194
|
n();
|
|
20195
20195
|
return;
|
|
20196
20196
|
}
|
|
@@ -20203,7 +20203,7 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
|
|
|
20203
20203
|
n();
|
|
20204
20204
|
return;
|
|
20205
20205
|
}
|
|
20206
|
-
const a = Qc(s.image), l = h(
|
|
20206
|
+
const a = Qc(s.image), l = h(st, $s).searchPath(a, ii.SP_GSM);
|
|
20207
20207
|
new Ii().use((c, f) => {
|
|
20208
20208
|
h(this, Rr).dec(c.extension, c.data).then((d) => {
|
|
20209
20209
|
c.data = d, d instanceof HTMLImageElement && (c.type = _t.TYPE.IMAGE, URL.revokeObjectURL(d.src)), f == null || f();
|
|
@@ -20211,7 +20211,7 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
|
|
|
20211
20211
|
}).add({ name: a, url: l, xhrType: _t.XHR_RESPONSE_TYPE.BUFFER }).load((c, f) => {
|
|
20212
20212
|
for (const { data: d } of Object.values(c.resources)) {
|
|
20213
20213
|
const { baseTexture: p } = lt.from(d), m = Object.values(o);
|
|
20214
|
-
|
|
20214
|
+
st.hFn2ResAniSpr[i.name] = {
|
|
20215
20215
|
aTex: m.map(({ frame: { x: v, y, w: g, h: w } }) => new lt(
|
|
20216
20216
|
p,
|
|
20217
20217
|
new gt(v, y, g, w)
|
|
@@ -20222,34 +20222,34 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
|
|
|
20222
20222
|
n();
|
|
20223
20223
|
});
|
|
20224
20224
|
}, ru = new WeakSet(), ey = function(e) {
|
|
20225
|
-
return h(
|
|
20225
|
+
return h(st, Ca).getVal("const.sn.needClick2Play") && (kt.trace_beforeNew(`[lay系] ${kt.strPos()}未クリック状態で動画を自動再生します。音声はミュートされます`, "W"), e.muted = !0), e.setAttribute("playsinline", ""), e;
|
|
20226
20226
|
}, Cd = new WeakSet(), ax = function(e, i) {
|
|
20227
|
-
const n =
|
|
20227
|
+
const n = st.hFn2ResAniSpr[e];
|
|
20228
20228
|
if (n) {
|
|
20229
20229
|
const s = new Gg(n.aTex);
|
|
20230
20230
|
return s.animationSpeed = n.meta.animationSpeed ?? 1, s.play(), s;
|
|
20231
20231
|
}
|
|
20232
|
-
return e in li ? ge.from(e) : e in
|
|
20232
|
+
return e in li ? ge.from(e) : e in st.hFn2VElm ? ge.from(st.hFn2VElm[e]) : e in i ? new ge(i[e].texture) : new ge();
|
|
20233
20233
|
}, Ra = new WeakSet(), ff = function(e) {
|
|
20234
|
-
const i =
|
|
20235
|
-
i && (delete
|
|
20234
|
+
const i = st.hFn2VElm[e];
|
|
20235
|
+
i && (delete st.hFn2VElm[e], i.pause(), i.currentTime = i.duration);
|
|
20236
20236
|
}, ka = new WeakMap(), or = new WeakMap(), Na = new WeakMap(), Md = new WeakMap(), Xs = new WeakMap(), nu = new WeakMap(), _(Rt, Od), _(Rt, Id), _(Rt, ru), _(Rt, Cd), _(Rt, Ra), _(Rt, Pd, new Eh()), _(Rt, qn, {}), _(Rt, dn, void 0), _(Rt, $s, void 0), _(Rt, zs, void 0), _(Rt, Rr, void 0), _(Rt, Ca, void 0), _(Rt, Vs, 1), _(Rt, Ql, 1), _(Rt, Ma, void 0), B(Rt, "hFn2ResAniSpr", {}), _(Rt, iu, (e, i, n) => {
|
|
20237
20237
|
var s, o;
|
|
20238
20238
|
switch (i.type) {
|
|
20239
20239
|
case _t.TYPE.JSON:
|
|
20240
20240
|
const a = i.spritesheet._frameKeys;
|
|
20241
|
-
x(s =
|
|
20241
|
+
x(s = st, Od, sx).call(s, a), st.hFn2ResAniSpr[i.name] = {
|
|
20242
20242
|
aTex: a.map((u) => lt.from(u)),
|
|
20243
20243
|
meta: i.data.meta
|
|
20244
20244
|
};
|
|
20245
20245
|
break;
|
|
20246
20246
|
case _t.TYPE.VIDEO:
|
|
20247
20247
|
const l = i.data;
|
|
20248
|
-
l.volume = h(
|
|
20248
|
+
l.volume = h(st, Vs), st.hFn2VElm[i.name] = x(o = st, ru, ey).call(o, l);
|
|
20249
20249
|
}
|
|
20250
20250
|
n();
|
|
20251
20251
|
}), B(Rt, "hFn2VElm", {}), _(Rt, Md, /\?([^?]+)$/), _(Rt, Xs, {}), _(Rt, nu, {});
|
|
20252
|
-
var La, su, Ws, Tt, Nr, mn, Rd, xi, Kn,
|
|
20252
|
+
var La, su, Ws, Tt, Nr, mn, Rd, xi, Kn, nt, Ui, Ke, Je, Aa, df, ar, yn, ou, Da, kd, hx, Ys, Ba, Jn, qs, Zs, Ks, Fa, au, Qn, hu, iy, _n, lu, gn, Lr, Ua, uu, ry, ts, Js, cu, ny, ni;
|
|
20253
20253
|
const pt = class extends Jt {
|
|
20254
20254
|
constructor(e, i, n) {
|
|
20255
20255
|
super();
|
|
@@ -20266,7 +20266,7 @@ const pt = class extends Jt {
|
|
|
20266
20266
|
_(this, mn, new Ri());
|
|
20267
20267
|
_(this, xi, new XC(this.spLay, this));
|
|
20268
20268
|
_(this, Kn, new WC(this));
|
|
20269
|
-
_(this,
|
|
20269
|
+
_(this, nt, {
|
|
20270
20270
|
fontsize: 24,
|
|
20271
20271
|
$width: 0,
|
|
20272
20272
|
// レイヤサイズであり、背景色(画像)サイズ
|
|
@@ -20344,30 +20344,30 @@ const pt = class extends Jt {
|
|
|
20344
20344
|
return h(this, yn);
|
|
20345
20345
|
}
|
|
20346
20346
|
get infTL() {
|
|
20347
|
-
return h(this,
|
|
20347
|
+
return h(this, nt);
|
|
20348
20348
|
}
|
|
20349
20349
|
get getWidth() {
|
|
20350
|
-
return h(this,
|
|
20350
|
+
return h(this, nt).$width;
|
|
20351
20351
|
}
|
|
20352
20352
|
get getHeight() {
|
|
20353
|
-
return h(this,
|
|
20353
|
+
return h(this, nt).$height;
|
|
20354
20354
|
}
|
|
20355
20355
|
setSize(e, i) {
|
|
20356
|
-
h(this,
|
|
20356
|
+
h(this, nt).$width = e, h(this, nt).$height = i, h(this, Tt).style.width = h(this, nt).$width + "px", h(this, Tt).style.height = h(this, nt).$height + "px";
|
|
20357
20357
|
}
|
|
20358
20358
|
goTxt(e, i) {
|
|
20359
20359
|
var T, P, O, C;
|
|
20360
20360
|
h(pt, Lr).visible = !1;
|
|
20361
20361
|
let n = h(this, Jn).length, s = "";
|
|
20362
20362
|
if (n === 0) {
|
|
20363
|
-
if (h(pt, La).oCfg.debug.masume && (A.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${h(this,
|
|
20363
|
+
if (h(pt, La).oCfg.debug.masume && (A.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${h(this, nt).pad_left} pr:${h(this, nt).pad_right} pt:${h(this, nt).pad_top} pb:${h(this, nt).pad_bottom} w:${h(this, nt).$width} h:${h(this, nt).$height}`), h(this, mn).clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-h(this, nt).pad_left, -h(this, nt).pad_top, h(this, nt).$width, h(this, nt).$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
|
|
20364
20364
|
0,
|
|
20365
20365
|
0,
|
|
20366
|
-
h(this,
|
|
20367
|
-
h(this,
|
|
20366
|
+
h(this, nt).$width - h(this, nt).pad_left - h(this, nt).pad_right,
|
|
20367
|
+
h(this, nt).$height - h(this, nt).pad_top - h(this, nt).pad_bottom
|
|
20368
20368
|
).endFill()), h(this, Tt).innerHTML = [...e].join("").replaceAll(/[\n\t]/g, "") + h(pt, au), !h(this, Ui)) {
|
|
20369
20369
|
const I = globalThis.getComputedStyle(h(this, Tt)), S = parseFloat(I.fontSize);
|
|
20370
|
-
h(this, yn) ? (b(this, Ke, (h(this,
|
|
20370
|
+
h(this, yn) ? (b(this, Ke, (h(this, nt).$width - h(this, nt).pad_left - h(this, nt).pad_right - S * 1.5) * this.sys.cvsScale), b(this, Je, 0)) : (b(this, Ke, 0), b(this, Je, S / 2 * this.sys.cvsScale));
|
|
20371
20371
|
}
|
|
20372
20372
|
} else
|
|
20373
20373
|
s = h(this, Tt).innerHTML, h(this, Tt).querySelectorAll(":scope > br").forEach((I) => h(this, Tt).removeChild(I)), h(this, Tt).insertAdjacentHTML(
|
|
@@ -20376,7 +20376,7 @@ const pt = class extends Jt {
|
|
|
20376
20376
|
// 末尾改行削除挙動対策
|
|
20377
20377
|
), --n, (T = h(this, Tt).querySelector(".sn_ch_last")) == null || T.remove();
|
|
20378
20378
|
b(this, qs, e.length);
|
|
20379
|
-
const o = this.sys.cvsScale, a = h(this, Tt).getBoundingClientRect(), l = a.left + h(this,
|
|
20379
|
+
const o = this.sys.cvsScale, a = h(this, Tt).getBoundingClientRect(), l = a.left + h(this, nt).pad_left, u = a.top + h(this, nt).pad_top;
|
|
20380
20380
|
let c;
|
|
20381
20381
|
if (o === 1)
|
|
20382
20382
|
c = (I, S) => new gt(
|
|
@@ -20584,8 +20584,8 @@ const pt = class extends Jt {
|
|
|
20584
20584
|
}
|
|
20585
20585
|
dispBreak(e) {
|
|
20586
20586
|
const i = h(pt, Lr);
|
|
20587
|
-
i.visible = !1, this.addChild(i), Rt.csv2Sprites(e, i, (n) => {
|
|
20588
|
-
i.parent
|
|
20587
|
+
i.visible = !1, this.addChild(i), Rt.csv2Sprites(e.pic, i, (n) => {
|
|
20588
|
+
i.parent ? (n.x = j(e, "x", 0), n.y = j(e, "y", 0), n.width = j(e, "width", h(this, nt).fontsize), n.height = j(e, "height", h(this, nt).fontsize)) : i.removeChild(n);
|
|
20589
20589
|
});
|
|
20590
20590
|
}
|
|
20591
20591
|
static delBreak() {
|
|
@@ -20596,11 +20596,11 @@ const pt = class extends Jt {
|
|
|
20596
20596
|
var i;
|
|
20597
20597
|
x(this, cu, ny).call(this);
|
|
20598
20598
|
const e = new pt(this.spLay, () => this.canFocus(), this.sys);
|
|
20599
|
-
return b(e,
|
|
20599
|
+
return b(e, nt, h(this, nt)), h(e, Tt).style.cssText = h(this, Tt).style.cssText, b(e, ar, h(this, ar)), e.name = this.name, x(i = e, Aa, df).call(i), h(e, xi).sethArg(h(this, xi).gethArg()), b(e, Ys, h(this, Ys)), b(e, ts, h(this, ts)), b(e, Js, h(this, Js)), b(e, Ui, h(this, Ui)), b(e, Ke, h(this, Ke)), b(e, Je, h(this, Je)), this.destroy(), e;
|
|
20600
20600
|
}
|
|
20601
20601
|
record() {
|
|
20602
20602
|
return {
|
|
20603
|
-
infTL: h(this,
|
|
20603
|
+
infTL: h(this, nt),
|
|
20604
20604
|
cssText: h(this, Tt).style.cssText,
|
|
20605
20605
|
left: h(this, ar),
|
|
20606
20606
|
idc_hArg: h(this, xi).gethArg(),
|
|
@@ -20613,15 +20613,15 @@ const pt = class extends Jt {
|
|
|
20613
20613
|
};
|
|
20614
20614
|
}
|
|
20615
20615
|
playback(e) {
|
|
20616
|
-
b(this,
|
|
20616
|
+
b(this, nt, e.infTL), this.position.set(h(this, nt).pad_left, h(this, nt).pad_top), h(this, Tt).style.cssText = e.cssText, b(this, ar, e.left), x(this, Aa, df).call(this), h(this, xi).sethArg(e.idc_hArg), b(this, Ys, e.ch_filter), b(this, ts, e.fi_easing), b(this, Js, e.fo_easing), b(this, Ui, e.break_fixed ?? !1), b(this, Ke, e.break_fixed_left ?? 0), b(this, Je, e.break_fixed_top ?? 0);
|
|
20617
20617
|
}
|
|
20618
20618
|
snapshot(e, i) {
|
|
20619
20619
|
x(this, kd, hx).call(this, (n) => {
|
|
20620
|
-
b(this, ni, new ge(n)), h(this, yn) && (h(this, ni).x += A.stageW - (h(this, ar) + h(this,
|
|
20620
|
+
b(this, ni, new ge(n)), h(this, yn) && (h(this, ni).x += A.stageW - (h(this, ar) + h(this, nt).$width)), h(this, ni).y -= h(this, Da), h(this, ni).texture.frame = new gt(
|
|
20621
20621
|
0,
|
|
20622
20622
|
0,
|
|
20623
|
-
Math.min(h(this, ni).width, h(this,
|
|
20624
|
-
Math.min(h(this, ni).height, h(this,
|
|
20623
|
+
Math.min(h(this, ni).width, h(this, nt).$width - h(this, ar)),
|
|
20624
|
+
Math.min(h(this, ni).height, h(this, nt).$height)
|
|
20625
20625
|
), h(this, Nr).addChild(h(this, ni)), e.render(h(this, ni), { clear: !1 }), i();
|
|
20626
20626
|
}, !1);
|
|
20627
20627
|
}
|
|
@@ -20649,9 +20649,9 @@ const pt = class extends Jt {
|
|
|
20649
20649
|
}
|
|
20650
20650
|
};
|
|
20651
20651
|
let he = pt;
|
|
20652
|
-
La = new WeakMap(), su = new WeakMap(), Ws = new WeakMap(), Tt = new WeakMap(), Nr = new WeakMap(), mn = new WeakMap(), Rd = new WeakMap(), xi = new WeakMap(), Kn = new WeakMap(),
|
|
20652
|
+
La = new WeakMap(), su = new WeakMap(), Ws = new WeakMap(), Tt = new WeakMap(), Nr = new WeakMap(), mn = new WeakMap(), Rd = new WeakMap(), xi = new WeakMap(), Kn = new WeakMap(), nt = new WeakMap(), Ui = new WeakMap(), Ke = new WeakMap(), Je = new WeakMap(), Aa = new WeakSet(), df = function() {
|
|
20653
20653
|
const e = h(this, Tt).style, i = parseFloat(e.fontSize || "0");
|
|
20654
|
-
h(this,
|
|
20654
|
+
h(this, nt).fontsize = i, h(this, nt).pad_left = parseFloat(e.paddingLeft || "0"), h(this, nt).pad_right = parseFloat(e.paddingRight || "0"), h(this, nt).pad_top = parseFloat(e.paddingTop || "0"), h(this, nt).pad_bottom = parseFloat(e.paddingBottom || "0"), h(this, nt).$width = parseFloat(e.width || "0"), h(this, nt).$height = parseFloat(e.height || "0"), this.position.set(h(this, nt).pad_left, h(this, nt).pad_top), b(this, yn, e.writingMode === "vertical-rl"), b(this, ou, 0), b(this, Da, 0);
|
|
20655
20655
|
const n = e.lineHeight ?? "0";
|
|
20656
20656
|
b(this, Ua, h(this, yn) ? 0 : (n.slice(-2) === "px" ? parseFloat(n) : i * parseFloat(n) - i) / 2);
|
|
20657
20657
|
}, ar = new WeakMap(), yn = new WeakMap(), ou = new WeakMap(), Da = new WeakMap(), kd = new WeakSet(), hx = function(e, i = !0) {
|
|
@@ -20817,15 +20817,15 @@ La = new WeakMap(), su = new WeakMap(), Ws = new WeakMap(), Tt = new WeakMap(),
|
|
|
20817
20817
|
}
|
|
20818
20818
|
Promise.resolve(h(this, Tt)).then((y) => {
|
|
20819
20819
|
const g = y.cloneNode(!0);
|
|
20820
|
-
return g.style.padding = "0px", g.style.paddingRight = h(this, ou) + "px", g.style.paddingTop = h(this, Da) + "px", g.style.left = "0px", g.style.top = "0px", g.style.width = h(this,
|
|
20820
|
+
return g.style.padding = "0px", g.style.paddingRight = h(this, ou) + "px", g.style.paddingTop = h(this, Da) + "px", g.style.left = "0px", g.style.top = "0px", g.style.width = h(this, nt).$width - h(this, nt).pad_left - h(this, nt).pad_right + "px", g.style.height = h(this, nt).$height - h(this, nt).pad_top - h(this, nt).pad_bottom + "px", h(this, Tt).hidden = i, g;
|
|
20821
20821
|
}).then(l).then((y) => {
|
|
20822
20822
|
y.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
|
|
20823
20823
|
const g = new Image();
|
|
20824
|
-
return g.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${h(this,
|
|
20824
|
+
return g.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${h(this, nt).$width}px" height="${h(this, nt).$height}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(y).replaceAll("#", "%23").replaceAll(`
|
|
20825
20825
|
`, "%0A")}</foreignObject></svg>`, new Promise((w) => g.onload = () => w(g));
|
|
20826
20826
|
}).then((y) => new Promise((g) => setTimeout(() => g(y), 100))).then((y) => {
|
|
20827
20827
|
const g = document.createElement("canvas");
|
|
20828
|
-
g.width = h(this,
|
|
20828
|
+
g.width = h(this, nt).$width, g.height = h(this, nt).$height, g.getContext("2d").drawImage(y, 0, 0), g.toBlob((w) => {
|
|
20829
20829
|
if (!w)
|
|
20830
20830
|
return;
|
|
20831
20831
|
const T = URL.createObjectURL(w);
|
|
@@ -21229,7 +21229,7 @@ const yt = class extends ui {
|
|
|
21229
21229
|
{
|
|
21230
21230
|
const d = JSON.parse(l);
|
|
21231
21231
|
if (d.id ?? (d.id = h(this, ji).length), d.id === "break") {
|
|
21232
|
-
h(this, Mt).dispBreak(d
|
|
21232
|
+
h(this, Mt).dispBreak(d);
|
|
21233
21233
|
return;
|
|
21234
21234
|
}
|
|
21235
21235
|
b(this, cr, !1), d.delay = h(this, Fr), d.r ?? (d.r = ""), d.style ?? (d.style = ""), d.r_style ?? (d.r_style = "");
|
|
@@ -22017,9 +22017,9 @@ const Xn = class {
|
|
|
22017
22017
|
_(this, ai, (t, e = this.currentTxtlayForeNeedErr, i = !0) => e.tagCh("| 《" + t + "》"));
|
|
22018
22018
|
B(this, "goTxt", () => {
|
|
22019
22019
|
});
|
|
22020
|
-
B(this, "breakLine", () => {
|
|
22020
|
+
B(this, "breakLine", (t) => {
|
|
22021
22021
|
});
|
|
22022
|
-
B(this, "breakPage", () => {
|
|
22022
|
+
B(this, "breakPage", (t) => {
|
|
22023
22023
|
});
|
|
22024
22024
|
_(this, St, {});
|
|
22025
22025
|
// しおりLoad時再読込
|
|
@@ -22112,7 +22112,15 @@ void main(void) {
|
|
|
22112
22112
|
}, 1e3 / 60 * 10));
|
|
22113
22113
|
}, { passive: !0 });
|
|
22114
22114
|
}
|
|
22115
|
-
a.cvsResize(), re.init(t, e, n, this, (v) => h(this, St)[v.layname].fore === v, i), Rt.init(s, t, i, a, l, n), gr.init(t), b(this, is, new ZC(t, e, i, n, s, a, h(this, Ei))), a.hFactoryCls.grp = () => new Rt(), a.hFactoryCls.txt = () => new re(), e.loadplugin = (v) => x(this, Vd, bx).call(this, v), e.snapshot = (v) => x(this, zd, gx).call(this, v), e.add_lay = (v) => x(this, Xd, xx).call(this, v), e.clear_lay = (v) => x(this, Yd, Ex).call(this, v), e.finish_trans = () => x(this, vo, Yh).call(this), e.lay = (v) => x(this, Wd, wx).call(this, v), e.trans = (v) => x(this, Kd, Tx).call(this, v), e.wt = (v) => x(this, tp, Ox).call(this, v), e.quake = (v) => x(this, ep, Ix).call(this, v), e.stop_quake = (v) => e.finish_trans(v), e.wq = (v) => e.wt(v), e.pause_tsy = (v) => x(this, sp, kx).call(this, v), e.resume_tsy = (v) => x(this, op, Nx).call(this, v), e.stop_tsy = (v) => x(this, np, Rx).call(this, v), e.tsy = (v) => x(this, ip, Cx).call(this, v), e.wait_tsy = (v) => x(this, rp, Mx).call(this, v), e.ch = (v) => x(this, mo, qh).call(this, v), e.clear_text = (v) => x(this, lp, Dx).call(this, v), e.current = (v) => h(this, Lu).call(this, v), e.endlink = (v) => x(this, up, Bx).call(this, v), e.er = (v) => x(this, cp, Fx).call(this, v), e.graph = (v) => x(this, fp, Ux).call(this, v), e.link = (v) => x(this, dp, Gx).call(this, v), e.r = (v) => x(this, pp, jx).call(this, v), e.rec_ch = (v) => x(this, Au, fy).call(this, v), e.rec_r = (v) => x(this, vp, Hx).call(this, v), e.reset_rec = (v) => x(this, mp, $x).call(this, v), e.ruby2 = (v) => x(this, yp, zx).call(this, v), e.span = (v) => x(this, _p, Vx).call(this, v), e.tcy = (v) => x(this, gp, Xx).call(this, v), e.add_face = (v) => Rt.add_face(v), e.wv = (v) => Rt.wv(v), e.dump_lay = (v) => x(this, bp, Wx).call(this, v), e.enable_event = (v) => x(this, xp, Yx).call(this, v), e.button = (v) => x(this, wp, qx).call(this, v), t.existsBreakline && (this.breakLine = () =>
|
|
22115
|
+
a.cvsResize(), re.init(t, e, n, this, (v) => h(this, St)[v.layname].fore === v, i), Rt.init(s, t, i, a, l, n), gr.init(t), b(this, is, new ZC(t, e, i, n, s, a, h(this, Ei))), a.hFactoryCls.grp = () => new Rt(), a.hFactoryCls.txt = () => new re(), e.loadplugin = (v) => x(this, Vd, bx).call(this, v), e.snapshot = (v) => x(this, zd, gx).call(this, v), e.add_lay = (v) => x(this, Xd, xx).call(this, v), e.clear_lay = (v) => x(this, Yd, Ex).call(this, v), e.finish_trans = () => x(this, vo, Yh).call(this), e.lay = (v) => x(this, Wd, wx).call(this, v), e.trans = (v) => x(this, Kd, Tx).call(this, v), e.wt = (v) => x(this, tp, Ox).call(this, v), e.quake = (v) => x(this, ep, Ix).call(this, v), e.stop_quake = (v) => e.finish_trans(v), e.wq = (v) => e.wt(v), e.pause_tsy = (v) => x(this, sp, kx).call(this, v), e.resume_tsy = (v) => x(this, op, Nx).call(this, v), e.stop_tsy = (v) => x(this, np, Rx).call(this, v), e.tsy = (v) => x(this, ip, Cx).call(this, v), e.wait_tsy = (v) => x(this, rp, Mx).call(this, v), e.ch = (v) => x(this, mo, qh).call(this, v), e.clear_text = (v) => x(this, lp, Dx).call(this, v), e.current = (v) => h(this, Lu).call(this, v), e.endlink = (v) => x(this, up, Bx).call(this, v), e.er = (v) => x(this, cp, Fx).call(this, v), e.graph = (v) => x(this, fp, Ux).call(this, v), e.link = (v) => x(this, dp, Gx).call(this, v), e.r = (v) => x(this, pp, jx).call(this, v), e.rec_ch = (v) => x(this, Au, fy).call(this, v), e.rec_r = (v) => x(this, vp, Hx).call(this, v), e.reset_rec = (v) => x(this, mp, $x).call(this, v), e.ruby2 = (v) => x(this, yp, zx).call(this, v), e.span = (v) => x(this, _p, Vx).call(this, v), e.tcy = (v) => x(this, gp, Xx).call(this, v), e.add_face = (v) => Rt.add_face(v), e.wv = (v) => Rt.wv(v), e.dump_lay = (v) => x(this, bp, Wx).call(this, v), e.enable_event = (v) => x(this, xp, Yx).call(this, v), e.button = (v) => x(this, wp, qx).call(this, v), t.existsBreakline && (this.breakLine = (v) => {
|
|
22116
|
+
delete v.visible, v.id = "break", v.pic = "breakline";
|
|
22117
|
+
const y = encodeURIComponent(JSON.stringify(v));
|
|
22118
|
+
h(this, ai).call(this, "grp|" + y);
|
|
22119
|
+
}), t.existsBreakpage && (this.breakPage = (v) => {
|
|
22120
|
+
delete v.visible, v.id = "break", v.pic = "breakpage";
|
|
22121
|
+
const y = encodeURIComponent(JSON.stringify(v));
|
|
22122
|
+
h(this, ai).call(this, "grp|" + y);
|
|
22123
|
+
}), b(this, uo, Dy(String(t.oCfg.init.bg_color)));
|
|
22116
22124
|
const d = new Ri();
|
|
22117
22125
|
d.beginFill(h(this, uo), 1).lineStyle(0, h(this, uo)).drawRect(0, 0, A.stageW, A.stageH).endFill(), h(this, Lt).addChild(d.clone()), h(this, ie).addChild(d), h(this, ie).visible = !1, h(this, Lt).name = "page:A", h(this, ie).name = "page:B", b(this, $i, i.stage), h(this, $i).addChild(h(this, ie)), h(this, $i).addChild(h(this, Lt)), h(this, $i).addChild(h(this, fo)), h(this, $i).addChild(h(this, Oe)), h(this, $i).name = "stage", i.ticker.add(h(this, Iu));
|
|
22118
22126
|
const p = (v, y) => {
|
|
@@ -24285,7 +24293,7 @@ ti = new WeakMap(), os = new WeakMap(), Fe = new WeakMap(), Bu = new WeakMap(),
|
|
|
24285
24293
|
}
|
|
24286
24294
|
return this.val.getVal("tmp:sn.auto.enabled") ? x(this, ah, gf).call(this, {
|
|
24287
24295
|
time: Number(this.scrItr.isKidoku ? this.val.getVal("sys:sn.auto.msecLineWait_Kidoku") : this.val.getVal("sys:sn.auto.msecLineWait"))
|
|
24288
|
-
}) : (K(t, "visible", !0) && this.layMng.breakLine(), x(this, as, oa).call(this, () => this.main.resume()));
|
|
24296
|
+
}) : (K(t, "visible", !0) && this.layMng.breakLine(t), x(this, as, oa).call(this, () => this.main.resume()));
|
|
24289
24297
|
}, Ip = new WeakSet(), uw = function(t) {
|
|
24290
24298
|
if (this.scrItr.recodePage(), this.val.getVal("tmp:sn.skip.enabled")) {
|
|
24291
24299
|
if (!this.val.getVal("tmp:sn.skip.all") && // 未読で停止
|
|
@@ -24298,7 +24306,7 @@ ti = new WeakMap(), os = new WeakMap(), Fe = new WeakMap(), Bu = new WeakMap(),
|
|
|
24298
24306
|
return x(this, ah, gf).call(this, {
|
|
24299
24307
|
time: Number(this.scrItr.isKidoku ? this.val.getVal("sys:sn.auto.msecPageWait_Kidoku") : this.val.getVal("sys:sn.auto.msecPageWait"))
|
|
24300
24308
|
});
|
|
24301
|
-
K(t, "visible", !0) && this.layMng.breakPage();
|
|
24309
|
+
K(t, "visible", !0) && this.layMng.breakPage(t);
|
|
24302
24310
|
const e = () => {
|
|
24303
24311
|
this.sndMng.clearCache(), h(this, He).hidden = !0, this.main.resume();
|
|
24304
24312
|
};
|