@famibee/skynovel 1.64.22 → 1.65.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/CmnTween.js +921 -109
- package/dist/CmnTween.js.map +1 -1
- package/dist/EventMng.js +1 -1
- package/dist/EventMng.js.map +1 -1
- package/dist/GrpLayer.js +1 -1
- package/dist/LayerMng.js +43 -44
- package/dist/LayerMng.js.map +1 -1
- package/dist/Main.js.map +1 -1
- package/dist/RubySpliter.js +18 -15
- package/dist/RubySpliter.js.map +1 -1
- package/dist/ScriptIterator.js +1 -2
- package/dist/ScriptIterator.js.map +1 -1
- package/dist/SndBuf.js +83 -77
- package/dist/SndBuf.js.map +1 -1
- package/dist/SpritesMng.js +1 -1
- package/dist/TxtLayer.js +96 -97
- package/dist/TxtLayer.js.map +1 -1
- package/dist/Variable.js +1 -1
- package/dist/sn/CmnTween.d.ts +4 -4
- package/dist/sn/CmnTween.d.ts.map +1 -1
- package/dist/sn/FocusMng.d.ts.map +1 -1
- package/dist/sn/Log.d.ts.map +1 -1
- package/dist/sn/Main.d.ts.map +1 -1
- package/dist/sn/Pages.d.ts.map +1 -1
- package/dist/sn/Reading.d.ts +1 -0
- package/dist/sn/Reading.d.ts.map +1 -1
- package/dist/sn/RubySpliter.d.ts.map +1 -1
- package/dist/sn/SndBuf.d.ts.map +1 -1
- package/dist/sn/TxtStage.d.ts +2 -0
- package/dist/sn/TxtStage.d.ts.map +1 -1
- package/dist_app/CmnTween.js +921 -109
- package/dist_app/CmnTween.js.map +1 -1
- package/dist_app/EventMng.js +1 -1
- package/dist_app/EventMng.js.map +1 -1
- package/dist_app/GrpLayer.js +1 -1
- package/dist_app/LayerMng.js +2 -3
- package/dist_app/LayerMng.js.map +1 -1
- package/dist_app/Main.js.map +1 -1
- package/dist_app/RubySpliter.js +18 -15
- package/dist_app/RubySpliter.js.map +1 -1
- package/dist_app/ScriptIterator.js +1 -2
- package/dist_app/ScriptIterator.js.map +1 -1
- package/dist_app/SndBuf.js +83 -77
- package/dist_app/SndBuf.js.map +1 -1
- package/dist_app/SpritesMng.js +1 -1
- package/dist_app/TxtLayer.js +96 -97
- package/dist_app/TxtLayer.js.map +1 -1
- package/dist_app/Variable.js +1 -1
- package/dist_app/sn/CmnTween.d.ts +4 -4
- package/dist_app/sn/CmnTween.d.ts.map +1 -1
- package/dist_app/sn/FocusMng.d.ts.map +1 -1
- package/dist_app/sn/Log.d.ts.map +1 -1
- package/dist_app/sn/Main.d.ts.map +1 -1
- package/dist_app/sn/Pages.d.ts.map +1 -1
- package/dist_app/sn/Reading.d.ts +1 -0
- package/dist_app/sn/Reading.d.ts.map +1 -1
- package/dist_app/sn/RubySpliter.d.ts.map +1 -1
- package/dist_app/sn/SndBuf.d.ts.map +1 -1
- package/dist_app/sn/TxtStage.d.ts +2 -0
- package/dist_app/sn/TxtStage.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/GrpLayer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as c, a as h, e as m, l as p, x as f, v as u, B as _ } from "./web2.js";
|
|
2
2
|
import { S as a } from "./SpritesMng.js";
|
|
3
|
-
import { a as d } from "./
|
|
3
|
+
import { a as d } from "./CmnTween.js";
|
|
4
4
|
class v {
|
|
5
5
|
// static readonly #alzTagArg = new AnalyzeTagArg;
|
|
6
6
|
constructor(t, s = !1) {
|
package/dist/LayerMng.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { e as g, S as H, L as F, n as B, l as
|
|
2
|
-
import { C as w,
|
|
1
|
+
import { e as g, S as H, L as F, n as B, l as k, a as _, p as M, G, q as U, E as A, f as tt, r as et, t as st, v as W, w as it, x as q, y as at, F as nt, u as O, z as J } from "./web2.js";
|
|
2
|
+
import { a as C, C as w, b as R } from "./CmnTween.js";
|
|
3
3
|
import { G as X, D as Y } from "./GrpLayer.js";
|
|
4
4
|
import { S as E } from "./SpritesMng.js";
|
|
5
5
|
import { T as N, a as rt } from "./TxtLayer.js";
|
|
6
6
|
import { R as ot } from "./RubySpliter.js";
|
|
7
7
|
import { P as ct, b as K } from "./Main.js";
|
|
8
|
-
import { a as C } from "./Reading.js";
|
|
9
8
|
import { Button as Q } from "./Button.js";
|
|
10
9
|
class I {
|
|
11
10
|
constructor(t, e, s, i, n, o, r, c) {
|
|
@@ -43,7 +42,7 @@ class I {
|
|
|
43
42
|
}
|
|
44
43
|
class p {
|
|
45
44
|
constructor(t, e, s) {
|
|
46
|
-
this.appPixi = e, this.val = s, t.add_frame = (i) => this.#
|
|
45
|
+
this.appPixi = e, this.val = s, t.add_frame = (i) => this.#x(i), t.let_frame = (i) => this.#d(i), t.set_frame = (i) => this.#N(i), t.frame = (i) => this.#$(i), t.tsy_frame = (i) => this.#w(i);
|
|
47
46
|
}
|
|
48
47
|
static #e;
|
|
49
48
|
static #t;
|
|
@@ -76,7 +75,7 @@ class p {
|
|
|
76
75
|
}
|
|
77
76
|
// HTMLフレーム
|
|
78
77
|
// フレーム追加
|
|
79
|
-
#
|
|
78
|
+
#x(t) {
|
|
80
79
|
const { id: e, src: s, alpha: i = 1, scale_x: n = 1, scale_y: o = 1, rotate: r = 0 } = t;
|
|
81
80
|
if (!e) throw "idは必須です";
|
|
82
81
|
if (!s) throw "srcは必須です";
|
|
@@ -89,16 +88,16 @@ class p {
|
|
|
89
88
|
const u = p.#e.searchPath(s, H.HTML), a = new F().add({ name: s, url: u, xhrType: B.XHR_RESPONSE_TYPE.TEXT });
|
|
90
89
|
return p.#t.arg.crypto && a.use(
|
|
91
90
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
92
|
-
(b,
|
|
93
|
-
b.data = v,
|
|
91
|
+
(b, x) => void p.#t.dec(b.extension, b.data).then((v) => {
|
|
92
|
+
b.data = v, x();
|
|
94
93
|
}).catch((v) => {
|
|
95
|
-
p.#i.errScript(`[add_frame]Html ロード失敗です src:${b.name} ${String(v)}`, !1),
|
|
94
|
+
p.#i.errScript(`[add_frame]Html ロード失敗です src:${b.name} ${String(v)}`, !1), x();
|
|
96
95
|
})
|
|
97
|
-
), a.load((b,
|
|
96
|
+
), a.load((b, x) => {
|
|
98
97
|
const v = document.getElementById(e);
|
|
99
98
|
this.#c[e] = v, this.#y[e] = !1;
|
|
100
99
|
const S = u.lastIndexOf("/") + 1, V = u.slice(0, S), m = V.slice(0, S);
|
|
101
|
-
v.srcdoc = String(
|
|
100
|
+
v.srcdoc = String(x[s]?.data).replace("sn_repRes();", "").replaceAll(
|
|
102
101
|
/\s(?:src|href)=(["'])(\S+?)\1/g,
|
|
103
102
|
// 【\s】が大事、data-src弾く
|
|
104
103
|
(y, $, T) => T.startsWith("../") ? m + y.slice(3) : y.replace("./", "").replace($, $ + V)
|
|
@@ -120,10 +119,10 @@ class p {
|
|
|
120
119
|
#b(t) {
|
|
121
120
|
const e = { ...t };
|
|
122
121
|
return new DOMRect(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
k(e, "x", 0),
|
|
123
|
+
k(e, "y", 0),
|
|
124
|
+
k(e, "width", _.stageW),
|
|
125
|
+
k(e, "height", _.stageH)
|
|
127
126
|
);
|
|
128
127
|
}
|
|
129
128
|
static #_(t, e, s) {
|
|
@@ -153,8 +152,8 @@ class p {
|
|
|
153
152
|
for (const [d, { data: { src: u } }] of Object.entries(l)) {
|
|
154
153
|
const a = this.#f[d] = u + // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
|
155
154
|
(u.startsWith("blob:") || u.startsWith("data:") ? "" : r ? "?" + r : ""), b = this.#m[d];
|
|
156
|
-
if (b) for (const
|
|
157
|
-
|
|
155
|
+
if (b) for (const x of b)
|
|
156
|
+
x.src = a, s && (x.onload = () => s(x));
|
|
158
157
|
delete this.#m[d];
|
|
159
158
|
}
|
|
160
159
|
});
|
|
@@ -214,7 +213,7 @@ class p {
|
|
|
214
213
|
const i = "const.sn.frm." + e;
|
|
215
214
|
if (!this.val.getVal("tmp:" + i)) throw `frame【${e}】が読み込まれていません`;
|
|
216
215
|
const n = s.style;
|
|
217
|
-
if (g(t, "float", !1) ? n.zIndex = String(++this.#n) : "index" in t ? n.zIndex = String(
|
|
216
|
+
if (g(t, "float", !1) ? n.zIndex = String(++this.#n) : "index" in t ? n.zIndex = String(k(t, "index", 0)) : t.dive && (n.zIndex = String(-++this.#n)), "alpha" in t) {
|
|
218
217
|
const r = n.opacity = String(t.alpha);
|
|
219
218
|
this.val.setVal_Nochk("tmp", i + ".alpha", r);
|
|
220
219
|
}
|
|
@@ -224,7 +223,7 @@ class p {
|
|
|
224
223
|
)}px`, n.top = `${String(
|
|
225
224
|
p.#t.ofsTop4elm + o.y * p.#t.cvsScale
|
|
226
225
|
)}px`, this.val.setVal_Nochk("tmp", i + ".x", o.x), this.val.setVal_Nochk("tmp", i + ".y", o.y)), "scale_x" in t || "scale_y" in t || "rotate" in t) {
|
|
227
|
-
const r =
|
|
226
|
+
const r = k(t, "scale_x", 1), c = k(t, "scale_y", 1), h = k(t, "rotate", 0);
|
|
228
227
|
n.transform = `scale(${String(r)}, ${String(c)}) rotate(${String(h)}deg)`, this.val.setVal_Nochk("tmp", i + ".scale_x", r), this.val.setVal_Nochk("tmp", i + ".scale_y", c), this.val.setVal_Nochk("tmp", i + ".rotate", h);
|
|
229
228
|
}
|
|
230
229
|
if ("width" in t && (s.width = String(o.width * p.#t.cvsScale), this.val.setVal_Nochk("tmp", i + ".width", o.width)), "height" in t && (s.height = String(o.height * p.#t.cvsScale), this.val.setVal_Nochk("tmp", i + ".height", o.height)), "visible" in t) {
|
|
@@ -253,13 +252,13 @@ class p {
|
|
|
253
252
|
const a = w.cnvTweenArg(t, u);
|
|
254
253
|
let b = (m) => {
|
|
255
254
|
};
|
|
256
|
-
s && (
|
|
255
|
+
s && (k(a, "alpha", 0), b = (m) => {
|
|
257
256
|
l.style.opacity = String(m.a), this.val.setVal_Nochk("tmp", "alpha", m.a);
|
|
258
257
|
});
|
|
259
|
-
let
|
|
258
|
+
let x = (m) => {
|
|
260
259
|
};
|
|
261
260
|
const v = this.#b(a);
|
|
262
|
-
(i || n || o || r || c) && (v.x, v.y,
|
|
261
|
+
(i || n || o || r || c) && (v.x, v.y, k(a, "scale_x", 1), k(a, "scale_y", 1), k(a, "rotate", 0), x = (m) => {
|
|
263
262
|
l.style.left = `${String(
|
|
264
263
|
p.#t.ofsLeft4elm + m.x * p.#t.cvsScale
|
|
265
264
|
)} px`, l.style.top = `${String(
|
|
@@ -277,7 +276,7 @@ class p {
|
|
|
277
276
|
l.height = `${String(m.h * p.#t.cvsScale)} px`, this.val.setVal_Nochk("tmp", d + ".height", m.h);
|
|
278
277
|
}), this.appPixi.stage.interactive = !1, w.tween(`frm
|
|
279
278
|
${e}`, t, u, w.cnvTweenArg(t, u), (m) => {
|
|
280
|
-
b(m),
|
|
279
|
+
b(m), x(m), S(m), V(m);
|
|
281
280
|
}, () => {
|
|
282
281
|
this.appPixi.stage.interactive = !0;
|
|
283
282
|
}, () => {
|
|
@@ -360,16 +359,16 @@ class Z {
|
|
|
360
359
|
this.#o.cvsResize(), this.#d.cvsResize();
|
|
361
360
|
};
|
|
362
361
|
if (_.isMobile)
|
|
363
|
-
this.#
|
|
362
|
+
this.#x.add(globalThis, "orientationchange", f, { passive: !0 });
|
|
364
363
|
else {
|
|
365
364
|
let a;
|
|
366
|
-
this.#
|
|
365
|
+
this.#x.add(globalThis, "resize", () => {
|
|
367
366
|
a || (a = setTimeout(() => {
|
|
368
367
|
a = void 0, f();
|
|
369
368
|
}, 1e3 / 60 * 10));
|
|
370
369
|
}, { passive: !0 });
|
|
371
370
|
}
|
|
372
|
-
r.cvsResize(), this.#l = new lt(this.cfg.oCfg, e, i), N.init(t, e, i, this.#l, (a) => this.#s[a.layname].fore === a, s), X.init(n, t, s, r, c, i), p.init(t, r, n), this.#o = new p(e, s, i), e.loadplugin = (a) => this.#O(a), e.snapshot = (a) => this.#$(a), this.#w = this.sys.isApp ? (a, b,
|
|
371
|
+
r.cvsResize(), this.#l = new lt(this.cfg.oCfg, e, i), N.init(t, e, i, this.#l, (a) => this.#s[a.layname].fore === a, s), X.init(n, t, s, r, c, i), p.init(t, r, n), this.#o = new p(e, s, i), e.loadplugin = (a) => this.#O(a), e.snapshot = (a) => this.#$(a), this.#w = this.sys.isApp ? (a, b, x, v, S) => this.#B(a, b, x, v, S) : (a, b, x, v, S) => this.#W(a, b, x, v, S), e.add_lay = (a) => this.#j(a), e.clear_lay = (a) => this.#H(a), e.finish_trans = () => !1, e.lay = (a) => this.#z(a), e.trans = (a) => this.#G(a), e.wt = (a) => w.wt(a), e.quake = (a) => this.#q(a), e.stop_quake = e.finish_trans, e.wq = e.wt, e.pause_tsy = (a) => w.pause_tsy(a), e.resume_tsy = (a) => w.resume_tsy(a), e.stop_tsy = (a) => w.stop_tsy(a), e.tsy = (a) => this.#J(a), e.wait_tsy = (a) => w.wait_tsy(a), e.add_filter = (a) => this.#X(a), e.clear_filter = (a) => this.#Y(a), e.enable_filter = (a) => this.#K(a), e.ch = (a) => this.#I(a), e.clear_text = (a) => this.#M(a), e.current = (a) => this.#D(a), e.endlink = (a) => this.#A(a), e.er = (a) => this.#tt(a), e.graph = (a) => this.#et(a), e.link = (a) => this.#st(a), e.r = (a) => this.#it(a), e.ruby2 = (a) => this.#at(a), e.span = (a) => this.#nt(a), e.tcy = (a) => this.#rt(a), e.add_face = (a) => E.add_face(a), e.wv = (a) => E.wv(a), e.dump_lay = (a) => this.#ot(a), e.enable_event = (a) => this.#ct(a), e.button = (a) => this.#lt(a), t.existsBreakline && (this.breakLine = (a) => {
|
|
373
372
|
delete a.visible, a.id = "break", a.pic = "breakline", this.#n("grp|" + L(a));
|
|
374
373
|
}), t.existsBreakpage && (this.breakPage = (a) => {
|
|
375
374
|
delete a.visible, a.id = "break", a.pic = "breakpage", this.#n("grp|" + L(a));
|
|
@@ -393,7 +392,7 @@ class Z {
|
|
|
393
392
|
#o;
|
|
394
393
|
#c;
|
|
395
394
|
#l;
|
|
396
|
-
#
|
|
395
|
+
#x = new A();
|
|
397
396
|
cvsResizeDesign() {
|
|
398
397
|
}
|
|
399
398
|
#y = {
|
|
@@ -427,11 +426,11 @@ class Z {
|
|
|
427
426
|
}
|
|
428
427
|
#d;
|
|
429
428
|
setEvtMng(t) {
|
|
430
|
-
this.#d = t, this.#o.setEvtMng(t), E.setEvtMng(t), w.init(t
|
|
429
|
+
this.#d = t, this.#o.setEvtMng(t), E.setEvtMng(t), w.init(t);
|
|
431
430
|
}
|
|
432
431
|
destroy() {
|
|
433
432
|
for (const t of Object.values(this.#s)) t.destroy();
|
|
434
|
-
this.#
|
|
433
|
+
this.#x.clear(), X.destroy(), ot.destroy(), rt.destroy(), N.destroy(), this.#o.destroy(), w.destroy(), N.msecChWait = 10;
|
|
435
434
|
}
|
|
436
435
|
// 既存の全文字レイヤの実際のバック不透明度、を再計算
|
|
437
436
|
#N(t) {
|
|
@@ -459,7 +458,7 @@ class Z {
|
|
|
459
458
|
// // システム
|
|
460
459
|
//MARK: スナップショット
|
|
461
460
|
#$(t) {
|
|
462
|
-
const e = tt("-", "_", "", "_"), s = t.fn ? t.fn.startsWith(ct) ? t.fn : `${K + t.fn + e}.png` : `${K}snapshot${e}.png`, i = this.cfg.searchPath(s), n =
|
|
461
|
+
const e = tt("-", "_", "", "_"), s = t.fn ? t.fn.startsWith(ct) ? t.fn : `${K + t.fn + e}.png` : `${K}snapshot${e}.png`, i = this.cfg.searchPath(s), n = k(t, "width", _.stageW), o = k(t, "height", _.stageH);
|
|
463
462
|
return this.#w(t, i, n, o, `snapshot dt:${e}`);
|
|
464
463
|
}
|
|
465
464
|
#w = () => !1;
|
|
@@ -556,7 +555,7 @@ class Z {
|
|
|
556
555
|
if (g(t, "float", !1))
|
|
557
556
|
this.#i.setChildIndex(i, this.#i.children.length - 1), this.#t.setChildIndex(n, this.#t.children.length - 1), this.#V();
|
|
558
557
|
else if (t.index)
|
|
559
|
-
|
|
558
|
+
k(t, "index", 0) && (this.#i.setChildIndex(i, t.index), this.#t.setChildIndex(n, t.index), this.#V());
|
|
560
559
|
else if (t.dive) {
|
|
561
560
|
const { dive: o } = t;
|
|
562
561
|
let r = 0;
|
|
@@ -653,7 +652,7 @@ void main() {
|
|
|
653
652
|
this.#t.visible = !0, this.#i.visible = !1, this.#T.visible = !1, this.#a.visible = !1, C.notifyEndProc(R);
|
|
654
653
|
});
|
|
655
654
|
};
|
|
656
|
-
if (this.#a.filters = [], this.#a.alpha = 1,
|
|
655
|
+
if (this.#a.filters = [], this.#a.alpha = 1, k(t, "time", 0) === 0 || this.#d.isSkipping)
|
|
657
656
|
return n(), !1;
|
|
658
657
|
const r = [], c = this.#r.map((y) => {
|
|
659
658
|
const { fore: $, back: T } = this.#s[y], P = s.has(y) ? T : $;
|
|
@@ -687,16 +686,16 @@ void main() {
|
|
|
687
686
|
}
|
|
688
687
|
const a = () => {
|
|
689
688
|
l(), this.#T.visible = !0, u(), this.#a.visible = !0;
|
|
690
|
-
}, { glsl: b, rule:
|
|
689
|
+
}, { glsl: b, rule: x } = t, v = () => {
|
|
691
690
|
h.remove(a), n();
|
|
692
691
|
};
|
|
693
|
-
if (!b && !
|
|
692
|
+
if (!b && !x)
|
|
694
693
|
return w.tween(R, t, this.#a, { alpha: 0 }, () => {
|
|
695
694
|
}, v, () => {
|
|
696
695
|
}), h.add(a), !1;
|
|
697
696
|
const S = {
|
|
698
697
|
rule: at.EMPTY,
|
|
699
|
-
vague:
|
|
698
|
+
vague: k(t, "vague", 0.04),
|
|
700
699
|
tick: 0
|
|
701
700
|
};
|
|
702
701
|
this.#a.filters = [new nt(
|
|
@@ -706,8 +705,8 @@ void main() {
|
|
|
706
705
|
)];
|
|
707
706
|
const V = w.tween(R, t, S, { tick: 1 }, () => {
|
|
708
707
|
}, v, () => {
|
|
709
|
-
}, !
|
|
710
|
-
return
|
|
708
|
+
}, !x);
|
|
709
|
+
return x ? new E(x, void 0, (y) => {
|
|
711
710
|
S.rule = y.texture, y.destroy(), V.start(), h.add(a);
|
|
712
711
|
}, (y) => {
|
|
713
712
|
y && this.main.resume();
|
|
@@ -739,7 +738,7 @@ void main() {
|
|
|
739
738
|
}
|
|
740
739
|
//MARK: 画面を揺らす
|
|
741
740
|
#q(t) {
|
|
742
|
-
if (
|
|
741
|
+
if (k(t, "time", NaN) === 0) return !1;
|
|
743
742
|
const e = this.#p(t.layer).map((f) => this.#s[f].fore.ctn), { renderer: s, ticker: i } = this.appPixi;
|
|
744
743
|
this.#g.resize(_.stageW, _.stageH);
|
|
745
744
|
const n = () => {
|
|
@@ -751,7 +750,7 @@ void main() {
|
|
|
751
750
|
this.#t.visible = !1;
|
|
752
751
|
};
|
|
753
752
|
this.#a.visible = !0, this.#a.alpha = 1;
|
|
754
|
-
const o = O(
|
|
753
|
+
const o = O(k(t, "hmax", 10)), r = O(k(t, "vmax", 10)), c = o === 0 ? () => {
|
|
755
754
|
} : () => {
|
|
756
755
|
this.#a.x = Math.round(Math.random() * o * 2) - o;
|
|
757
756
|
}, h = r === 0 ? () => {
|
|
@@ -823,7 +822,7 @@ void main() {
|
|
|
823
822
|
#R(t, e) {
|
|
824
823
|
const s = t.ctn;
|
|
825
824
|
if (!s.filters) throw "フィルターがありません";
|
|
826
|
-
const i = O(
|
|
825
|
+
const i = O(k(e, "index", 0)), n = s.filters.length;
|
|
827
826
|
if (n <= i) throw `フィルターの個数(${String(n)})を越えています`;
|
|
828
827
|
t.aFltHArg[i].enabled = s.filters[i].enabled = g(e, "enabled", !0);
|
|
829
828
|
}
|
|
@@ -833,7 +832,7 @@ void main() {
|
|
|
833
832
|
const { text: e } = t;
|
|
834
833
|
if (!e) throw "textは必須です";
|
|
835
834
|
const s = this.#h(t);
|
|
836
|
-
delete t.text, this.setNormalChWait(), this.#d.isSkipping ? t.wait = 0 : "wait" in t &&
|
|
835
|
+
delete t.text, this.setNormalChWait(), this.#d.isSkipping ? t.wait = 0 : "wait" in t && k(t, "wait", NaN), this.#n("add|" + L(t), s);
|
|
837
836
|
const i = g(t, "record", !0), n = this.val.doRecLog();
|
|
838
837
|
return i || this.val.setVal_Nochk("save", "sn.doRecLog", i), s.tagCh(e.replaceAll("[r]", `
|
|
839
838
|
`)), this.val.setVal_Nochk("save", "sn.doRecLog", n), this.#n("add_close|", s), !1;
|
|
@@ -858,7 +857,7 @@ void main() {
|
|
|
858
857
|
if (!e) throw "[current] layerは必須です";
|
|
859
858
|
const s = this.#s[e];
|
|
860
859
|
if (!s || !(s.getPage(t) instanceof N)) throw `${e}はTxtLayerではありません`;
|
|
861
|
-
this.#
|
|
860
|
+
this.#k = s, this.#l.pagebreak(), this.#v = e, this.val.setVal_Nochk("save", "const.sn.mesLayer", e);
|
|
862
861
|
for (const i of this.#r) {
|
|
863
862
|
const { fore: n, back: o } = this.#s[i];
|
|
864
863
|
n instanceof N && (n.isCur = o.isCur = i === e);
|
|
@@ -869,9 +868,9 @@ void main() {
|
|
|
869
868
|
return this.#C(), this.currentTxtlayFore;
|
|
870
869
|
}
|
|
871
870
|
get currentTxtlayFore() {
|
|
872
|
-
return this.#
|
|
871
|
+
return this.#k ? this.#k.fore : null;
|
|
873
872
|
}
|
|
874
|
-
#
|
|
873
|
+
#k = void 0;
|
|
875
874
|
// カレントテキストレイヤ
|
|
876
875
|
#C = () => {
|
|
877
876
|
throw "文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい";
|
|
@@ -896,7 +895,7 @@ void main() {
|
|
|
896
895
|
}
|
|
897
896
|
//MARK: ページ両面の文字消去
|
|
898
897
|
#tt(t) {
|
|
899
|
-
return g(t, "rec_page_break", !0) && this.#l.pagebreak(), this.#
|
|
898
|
+
return g(t, "rec_page_break", !0) && this.#l.pagebreak(), this.#k && (this.#k.fore.clearLay(t), this.#k.back.clearLay(t)), !1;
|
|
900
899
|
}
|
|
901
900
|
//MARK: インライン画像表示
|
|
902
901
|
#et(t) {
|