@famibee/skynovel 1.64.19 β 1.64.21
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 +26 -27
- package/dist/CmnTween.js.map +1 -1
- package/dist/DebugMng.js +2 -2
- package/dist/DebugMng.js.map +1 -1
- package/dist/EventMng.js +218 -213
- package/dist/EventMng.js.map +1 -1
- package/dist/LayerMng.js +64 -52
- package/dist/LayerMng.js.map +1 -1
- package/dist/Reading.js +34 -28
- package/dist/Reading.js.map +1 -1
- package/dist/ScriptIterator.js +1 -1
- package/dist/ScriptIterator.js.map +1 -1
- package/dist/SndBuf.js +22 -22
- package/dist/SndBuf.js.map +1 -1
- package/dist/TxtLayer.js +238 -239
- package/dist/TxtLayer.js.map +1 -1
- package/dist/appMain_cmn.d.ts.map +1 -1
- package/dist/sn/CmnInterface.d.ts +1 -1
- package/dist/sn/CmnInterface.d.ts.map +1 -1
- package/dist/sn/CmnLib.d.ts +1 -0
- package/dist/sn/CmnLib.d.ts.map +1 -1
- package/dist/sn/CmnTween.d.ts.map +1 -1
- package/dist/sn/EventMng.d.ts.map +1 -1
- package/dist/sn/FocusMng.d.ts +2 -0
- package/dist/sn/FocusMng.d.ts.map +1 -1
- package/dist/sn/FrameMng.d.ts.map +1 -1
- package/dist/sn/Hyphenation.d.ts.map +1 -1
- package/dist/sn/Layer.d.ts.map +1 -1
- package/dist/sn/Reading.d.ts.map +1 -1
- package/dist/sn/SndBuf.d.ts.map +1 -1
- package/dist/sn/TxtLayer.d.ts.map +1 -1
- package/dist/sn/TxtStage.d.ts.map +1 -1
- package/dist/sn/htm2tx.d.ts.map +1 -1
- package/dist/web2.js +4 -4
- package/dist/web2.js.map +1 -1
- package/dist_app/CmnTween.js +28 -29
- package/dist_app/CmnTween.js.map +1 -1
- package/dist_app/EventMng.js +326 -321
- package/dist_app/EventMng.js.map +1 -1
- package/dist_app/LayerMng.js +64 -52
- package/dist_app/LayerMng.js.map +1 -1
- package/dist_app/Reading.js +34 -28
- package/dist_app/Reading.js.map +1 -1
- package/dist_app/ScriptIterator.js +1 -1
- package/dist_app/ScriptIterator.js.map +1 -1
- package/dist_app/SndBuf.js +22 -22
- package/dist_app/SndBuf.js.map +1 -1
- package/dist_app/TxtLayer.js +306 -307
- package/dist_app/TxtLayer.js.map +1 -1
- package/dist_app/app2.js +6 -6
- package/dist_app/app2.js.map +1 -1
- package/dist_app/appMain.js +1 -1
- package/dist_app/appMain.js.map +1 -1
- package/dist_app/appMain_cmn.d.ts.map +1 -1
- package/dist_app/sn/CmnInterface.d.ts +1 -1
- package/dist_app/sn/CmnInterface.d.ts.map +1 -1
- package/dist_app/sn/CmnLib.d.ts +1 -0
- package/dist_app/sn/CmnLib.d.ts.map +1 -1
- package/dist_app/sn/CmnTween.d.ts.map +1 -1
- package/dist_app/sn/EventMng.d.ts.map +1 -1
- package/dist_app/sn/FocusMng.d.ts +2 -2
- package/dist_app/sn/FocusMng.d.ts.map +1 -1
- package/dist_app/sn/FrameMng.d.ts.map +1 -1
- package/dist_app/sn/Hyphenation.d.ts.map +1 -1
- package/dist_app/sn/Layer.d.ts.map +1 -1
- package/dist_app/sn/Reading.d.ts.map +1 -1
- package/dist_app/sn/SndBuf.d.ts.map +1 -1
- package/dist_app/sn/TxtLayer.d.ts.map +1 -1
- package/dist_app/sn/TxtStage.d.ts.map +1 -1
- package/dist_app/sn/htm2tx.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/Reading.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as d, H as x, D as N, E as R, e as _, q as B, l as j } from "./web2.js";
|
|
2
|
-
var
|
|
2
|
+
var S = Object.freeze({
|
|
3
3
|
Linear: Object.freeze({
|
|
4
4
|
None: function(e) {
|
|
5
5
|
return e;
|
|
@@ -118,13 +118,13 @@ var E = Object.freeze({
|
|
|
118
118
|
}),
|
|
119
119
|
Bounce: Object.freeze({
|
|
120
120
|
In: function(e) {
|
|
121
|
-
return 1 -
|
|
121
|
+
return 1 - S.Bounce.Out(1 - e);
|
|
122
122
|
},
|
|
123
123
|
Out: function(e) {
|
|
124
124
|
return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375;
|
|
125
125
|
},
|
|
126
126
|
InOut: function(e) {
|
|
127
|
-
return e < 0.5 ?
|
|
127
|
+
return e < 0.5 ? S.Bounce.In(e * 2) * 0.5 : S.Bounce.Out(e * 2 - 1) * 0.5 + 0.5;
|
|
128
128
|
}
|
|
129
129
|
}),
|
|
130
130
|
generatePow: function(e) {
|
|
@@ -198,7 +198,7 @@ var E = Object.freeze({
|
|
|
198
198
|
/** @class */
|
|
199
199
|
function() {
|
|
200
200
|
function e(t, i) {
|
|
201
|
-
i === void 0 && (i = L), this._object = t, this._group = i, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction =
|
|
201
|
+
i === void 0 && (i = L), this._object = t, this._group = i, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = S.Linear.None, this._interpolationFunction = C.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = F.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
202
202
|
}
|
|
203
203
|
return e.prototype.getId = function() {
|
|
204
204
|
return this._id;
|
|
@@ -244,15 +244,15 @@ var E = Object.freeze({
|
|
|
244
244
|
var u = s[l];
|
|
245
245
|
if (u.length === 0)
|
|
246
246
|
continue;
|
|
247
|
-
for (var
|
|
247
|
+
for (var I = [c], P = 0, b = u.length; P < b; P += 1) {
|
|
248
248
|
var T = this._handleRelativeValue(c, u[P]);
|
|
249
249
|
if (isNaN(T)) {
|
|
250
250
|
h = !1, console.warn("Found invalid interpolation list. Skipping.");
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
I.push(T);
|
|
254
254
|
}
|
|
255
|
-
h && (s[l] =
|
|
255
|
+
h && (s[l] = I);
|
|
256
256
|
}
|
|
257
257
|
if ((g === "object" || f) && c && !h) {
|
|
258
258
|
i[l] = f ? [] : {};
|
|
@@ -295,7 +295,7 @@ var E = Object.freeze({
|
|
|
295
295
|
}, e.prototype.yoyo = function(t) {
|
|
296
296
|
return t === void 0 && (t = !1), this._yoyo = t, this;
|
|
297
297
|
}, e.prototype.easing = function(t) {
|
|
298
|
-
return t === void 0 && (t =
|
|
298
|
+
return t === void 0 && (t = S.Linear.None), this._easingFunction = t, this;
|
|
299
299
|
}, e.prototype.interpolation = function(t) {
|
|
300
300
|
return t === void 0 && (t = C.Linear), this._interpolationFunction = t, this;
|
|
301
301
|
}, e.prototype.chain = function() {
|
|
@@ -332,8 +332,8 @@ var E = Object.freeze({
|
|
|
332
332
|
return 1;
|
|
333
333
|
var k = Math.trunc(c / f), v = c - k * f, w = Math.min(v / s._duration, 1);
|
|
334
334
|
return w === 0 && c === s._duration ? 1 : w;
|
|
335
|
-
}, u = h(),
|
|
336
|
-
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd,
|
|
335
|
+
}, u = h(), I = this._easingFunction(u);
|
|
336
|
+
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, I), this._onUpdateCallback && this._onUpdateCallback(this._object, u), this._duration === 0 || c >= this._duration)
|
|
337
337
|
if (this._repeat > 0) {
|
|
338
338
|
var P = Math.min(Math.trunc((c - this._duration) / f) + 1, this._repeat);
|
|
339
339
|
isFinite(this._repeat) && (this._repeat -= P);
|
|
@@ -478,9 +478,9 @@ class n {
|
|
|
478
478
|
static aKeysAtPaging = [];
|
|
479
479
|
static recodePage(t = !1) {
|
|
480
480
|
if (!a.val.getVal("save:sn.doRecLog")) return;
|
|
481
|
-
const { fn: i, idx: s } = a.scrItr.nowScrIdx(), r = `${s - 1}:` + i;
|
|
481
|
+
const { fn: i, idx: s } = a.scrItr.nowScrIdx(), r = `${String(s - 1)}:` + i;
|
|
482
482
|
if (this.aPage.findIndex((c) => c.key === r) > -1) return;
|
|
483
|
-
d.debugLog && console.log(`π %crecodePage === week:${t} lenPage:${this.lenPage} len:${this.aPage.length} POP:${this.aPage.at(-1)?.week}`, "color:#3B0;"), this.aPage.at(-1)?.week && this.aPage.pop();
|
|
483
|
+
d.debugLog && console.log(`π %crecodePage === week:${String(t)} lenPage:${String(this.lenPage)} len:${String(this.aPage.length)} POP:${String(this.aPage.at(-1)?.week)}`, "color:#3B0;"), this.aPage.at(-1)?.week && this.aPage.pop();
|
|
484
484
|
const { max_len: o } = a.cfg.oCfg.log, l = a.scrItr.nowMark();
|
|
485
485
|
l.hSave["const.sn.sLog"] = "[]", this.aPage.push({
|
|
486
486
|
key: r,
|
|
@@ -488,7 +488,9 @@ class n {
|
|
|
488
488
|
fn: a.val.getVal("save:const.sn.scriptFn", i),
|
|
489
489
|
index: a.val.getVal("save:const.sn.scriptIdx", 0),
|
|
490
490
|
mark: l
|
|
491
|
-
}) > o && (this.aPage = this.aPage.slice(-o)), this.lenPage = this.aPage.length, d.debugLog && (console.log(` %clenPage:${this.lenPage} (base=${l.hPages.base.fore.sBkFn} 0=${l.hPages[0].fore.sBkFn} mes=${
|
|
491
|
+
}) > o && (this.aPage = this.aPage.slice(-o)), this.lenPage = this.aPage.length, d.debugLog && (console.log(` %clenPage:${String(this.lenPage)} (base=${l.hPages.base.fore.sBkFn} 0=${l.hPages[0].fore.sBkFn} mes=${String(
|
|
492
|
+
/color: \w+;/.exec((l.hPages.mes?.fore).txs.cssText)
|
|
493
|
+
)})%c mark:%o`, "color:#3B0;", "", l), console.table(this.aPage)), a.val.setVal_Nochk("sys", "const.sn.aPageLog", JSON.stringify(this.aPage));
|
|
492
494
|
}
|
|
493
495
|
static playbackPage(t, i) {
|
|
494
496
|
this.aPage = JSON.parse(t), this.lenPage = this.aPage.length, this.posPage >= this.lenPage && (this.posPage = this.lenPage - 1), this.styPaging = i;
|
|
@@ -497,7 +499,7 @@ class n {
|
|
|
497
499
|
new $();
|
|
498
500
|
}
|
|
499
501
|
endProc() {
|
|
500
|
-
new
|
|
502
|
+
new E();
|
|
501
503
|
}
|
|
502
504
|
// γΏγ°ε¦η
|
|
503
505
|
l(t) {
|
|
@@ -546,7 +548,7 @@ class n {
|
|
|
546
548
|
this.#t = {}, this.#e = {}, this.aPage = [], this.lenPage = 0, this.posPage = 0;
|
|
547
549
|
}
|
|
548
550
|
}
|
|
549
|
-
class
|
|
551
|
+
class E extends n {
|
|
550
552
|
constructor() {
|
|
551
553
|
super(), d.debugLog && console.log("π => %cReadingState_go", "color:#3B0;"), a.main.resume();
|
|
552
554
|
}
|
|
@@ -577,11 +579,11 @@ class M extends n {
|
|
|
577
579
|
return;
|
|
578
580
|
case "p":
|
|
579
581
|
i = () => {
|
|
580
|
-
_(t, "er", !1) && a.hTag.er(t), a.sndMng.clearCache(), new
|
|
582
|
+
_(t, "er", !1) && a.hTag.er(t), a.sndMng.clearCache(), new E();
|
|
581
583
|
};
|
|
582
584
|
break;
|
|
583
585
|
default:
|
|
584
|
-
i = () => new
|
|
586
|
+
i = () => new E();
|
|
585
587
|
}
|
|
586
588
|
n.waitRsvEvent(s, i);
|
|
587
589
|
}
|
|
@@ -625,10 +627,10 @@ class O extends n {
|
|
|
625
627
|
}
|
|
626
628
|
// γΏγ°ε¦η
|
|
627
629
|
l(t) {
|
|
628
|
-
return this.#i ? n.posPage === n.lenPage - 1 ? (this.#t(), new
|
|
630
|
+
return this.#i ? n.posPage === n.lenPage - 1 ? (this.#t(), new E().l(t)) : (_(t, "visible", !0) && a.layMng.breakLine(t), a.layMng.setAllStyle2TxtLay(n.styPaging), a.goTxt(), n.aPage[n.posPage]?.week ? (n.waitRsvEvent4Paging(), !0) : !1) : super.l(t);
|
|
629
631
|
}
|
|
630
632
|
p(t) {
|
|
631
|
-
return this.#i ? n.posPage === n.lenPage - 1 ? (this.#t(), new
|
|
633
|
+
return this.#i ? n.posPage === n.lenPage - 1 ? (this.#t(), new E().p(t)) : (_(t, "visible", !0) && a.layMng.breakPage(t), a.layMng.setAllStyle2TxtLay(n.styPaging), a.goTxt(), n.waitRsvEvent4Paging(), !0) : super.p(t);
|
|
632
634
|
}
|
|
633
635
|
s(t) {
|
|
634
636
|
return new M(t), !0;
|
|
@@ -639,7 +641,7 @@ class O extends n {
|
|
|
639
641
|
page(t) {
|
|
640
642
|
const { to: i, style: s, clear: r } = t;
|
|
641
643
|
if (s || r) return !1;
|
|
642
|
-
switch (d.debugLog && console.log(`π %cpage() pos:${n.posPage}%c len:${n.lenPage} to:${i}`, "color:#3B0;", ""), i) {
|
|
644
|
+
switch (d.debugLog && console.log(`π %cpage() pos:${String(n.posPage)}%c len:${String(n.lenPage)} to:${String(i)}`, "color:#3B0;", ""), i) {
|
|
643
645
|
case "oldest":
|
|
644
646
|
if (n.posPage === 0) return !1;
|
|
645
647
|
n.posPage = 0;
|
|
@@ -663,15 +665,19 @@ class O extends n {
|
|
|
663
665
|
n.lenPage = n.posPage + 1, n.aPage = n.aPage.slice(0, n.lenPage), this.#t();
|
|
664
666
|
break;
|
|
665
667
|
default:
|
|
666
|
-
throw `ε±ζ§toγ${i}γγ―η°εΈΈγ§γ`;
|
|
668
|
+
throw `ε±ζ§toγ${String(i)}γγ―η°εΈΈγ§γ`;
|
|
667
669
|
}
|
|
668
670
|
n.posPage === n.lenPage - 1 && this.#t();
|
|
669
671
|
const o = n.aPage[n.posPage];
|
|
670
|
-
if (!o) throw `posPageη°εΈΈ:${n.posPage}`;
|
|
672
|
+
if (!o) throw `posPageη°εΈΈ:${String(n.posPage)}`;
|
|
671
673
|
const { fn: l, index: c, mark: f } = o;
|
|
672
674
|
if (d.debugLog) {
|
|
673
675
|
const g = a.scrItr.nowMark(), { week: h } = n.aPage[n.posPage] ?? { week: !1 };
|
|
674
|
-
console.log(` -- fn:${l} i:${c} pos:${n.posPage} (base=%c${g.hPages.base
|
|
676
|
+
console.log(` -- fn:${l} i:${String(c)} pos:${String(n.posPage)} (base=%c${(g.hPages.base?.fore).sBkFn}%c 0=%c${(g.hPages[0]?.fore).sBkFn}%c mes=%c${String(
|
|
677
|
+
/color: \w+;/.exec((g.hPages.mes?.fore).txs.cssText)
|
|
678
|
+
)}%c) week:${String(h)} A:${String(
|
|
679
|
+
n.posPage === n.lenPage - 1
|
|
680
|
+
)}
|
|
675
681
|
styPaging=%c${n.styPaging}%c
|
|
676
682
|
mark:%o`, "background-color:#3B0; color:#000;", "", "background-color:#B4F; color:#000;", "", "color:#B68;", "", n.styPaging, "", f);
|
|
677
683
|
}
|
|
@@ -683,7 +689,7 @@ class O extends n {
|
|
|
683
689
|
}
|
|
684
690
|
class a {
|
|
685
691
|
static beginProc(t, i, s = !0, r) {
|
|
686
|
-
if (d.debugLog && console.log(`π.beginProc id:%c${t}%c onNotify:${i} endProc:${s} onClickSkip:${r}`, "color:#3B0;", ""), this.#i(), this.#s = t, i) {
|
|
692
|
+
if (d.debugLog && console.log(`π.beginProc id:%c${t}%c onNotify:${String(i)} endProc:${String(s)} onClickSkip:${String(r)}`, "color:#3B0;", ""), this.#i(), this.#s = t, i) {
|
|
687
693
|
const { promise: o, resolve: l } = Promise.withResolvers();
|
|
688
694
|
o.then((c) => {
|
|
689
695
|
d.debugLog && console.log(`π.callBack id:%c${c}%c`, "color:#3B0;", ""), i(), s ? this.endProc(c) : this.#i();
|
|
@@ -709,14 +715,14 @@ class a {
|
|
|
709
715
|
static #e = () => {
|
|
710
716
|
};
|
|
711
717
|
static notifyEndProc(t) {
|
|
712
|
-
d.debugLog && console.log(`π.notifyEndProc id:%c${t}%c=${this.#s === t}`, "color:#3B0;", ""), this.#s === t && this.#e(t);
|
|
718
|
+
d.debugLog && console.log(`π.notifyEndProc id:%c${t}%c=${String(this.#s === t)}`, "color:#3B0;", ""), this.#s === t && this.#e(t);
|
|
713
719
|
}
|
|
714
720
|
static endProc(t) {
|
|
715
|
-
d.debugLog && console.log(`π.endProc id:%c${t}%c=${this.#s === t}`, "color:#3B0;", ""), this.#s === t && (n.rs.endProc(), this.#i());
|
|
721
|
+
d.debugLog && console.log(`π.endProc id:%c${t}%c=${String(this.#s === t)}`, "color:#3B0;", ""), this.#s === t && (n.rs.endProc(), this.#i());
|
|
716
722
|
}
|
|
717
723
|
static #s = "";
|
|
718
724
|
static get procID() {
|
|
719
|
-
return `RP_${this.scrItr.scriptFn}:${this.scrItr.idxToken}_`;
|
|
725
|
+
return `RP_${this.scrItr.scriptFn}:${String(this.scrItr.idxToken)}_`;
|
|
720
726
|
}
|
|
721
727
|
static fire(t, i, s = !1) {
|
|
722
728
|
s && this.cancelAutoSkip(), n.rs.fire(t, i);
|
|
@@ -770,7 +776,7 @@ class a {
|
|
|
770
776
|
}
|
|
771
777
|
}
|
|
772
778
|
export {
|
|
773
|
-
E,
|
|
779
|
+
S as E,
|
|
774
780
|
n as R,
|
|
775
781
|
W as T,
|
|
776
782
|
a,
|