@netless/app-slide 0.2.26-beta.1 → 0.2.26-beta.2
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/main.cjs.js +124 -124
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +895 -865
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +124 -124
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -12752,15 +12752,15 @@ var Slide = function(t) {
|
|
|
12752
12752
|
n.r(e), n.d(e, "ErrorType", function() {
|
|
12753
12753
|
return gm;
|
|
12754
12754
|
}), n.d(e, "preloadResource", function() {
|
|
12755
|
-
return
|
|
12755
|
+
return Qb;
|
|
12756
12756
|
}), n.d(e, "delay", function() {
|
|
12757
|
-
return rT;
|
|
12758
|
-
}), n.d(e, "waitUntil", function() {
|
|
12759
12757
|
return oT;
|
|
12760
|
-
}), n.d(e, "
|
|
12758
|
+
}), n.d(e, "waitUntil", function() {
|
|
12761
12759
|
return sT;
|
|
12760
|
+
}), n.d(e, "SLIDE_EVENTS", function() {
|
|
12761
|
+
return aT;
|
|
12762
12762
|
}), n.d(e, "Slide", function() {
|
|
12763
|
-
return
|
|
12763
|
+
return cT;
|
|
12764
12764
|
});
|
|
12765
12765
|
var i = {};
|
|
12766
12766
|
n.r(i), n.d(i, "utils", function() {
|
|
@@ -29552,26 +29552,26 @@ void main() {
|
|
|
29552
29552
|
return this.object.hitArea ? this.object.hitArea : new Rh.k(0, 0, this.object.width, this.object.height);
|
|
29553
29553
|
}
|
|
29554
29554
|
handleAction(t2, e2 = false) {
|
|
29555
|
-
this.proxy && !e2 || (this.ctx.eventHub.emit(
|
|
29555
|
+
this.proxy && !e2 || (this.ctx.eventHub.emit(ky.hyperlinkTrigger, t2), this.execAction(t2));
|
|
29556
29556
|
}
|
|
29557
29557
|
execAction(t2) {
|
|
29558
29558
|
var e2;
|
|
29559
|
-
if (this.ctx.eventHub.emit(
|
|
29559
|
+
if (this.ctx.eventHub.emit(ky.userInput), t2.action === "ppaction://hlinksldjump") {
|
|
29560
29560
|
const n2 = ((e2 = t2 == null ? void 0 : t2.target) !== null && e2 !== void 0 ? e2 : "").match(/slide(\d+)\.xml/);
|
|
29561
|
-
n2 && n2[1] && this.ctx.eventHub.emit(
|
|
29561
|
+
n2 && n2[1] && this.ctx.eventHub.emit(ky.requestGotoSlide, Number(n2[1]));
|
|
29562
29562
|
} else if (t2.action === "ppaction://hlinkshowjump?jump=nextslide")
|
|
29563
|
-
this.ctx.eventHub.emit(
|
|
29563
|
+
this.ctx.eventHub.emit(ky.requestNextSlide);
|
|
29564
29564
|
else if (t2.action === "ppaction://hlinkshowjump?jump=previousslide")
|
|
29565
|
-
this.ctx.eventHub.emit(
|
|
29565
|
+
this.ctx.eventHub.emit(ky.requestPrevSlide);
|
|
29566
29566
|
else if (t2.action === "ppaction://hlinkshowjump?jump=firstslide")
|
|
29567
|
-
this.ctx.eventHub.emit(
|
|
29567
|
+
this.ctx.eventHub.emit(ky.requestGotoSlide, 1);
|
|
29568
29568
|
else if (t2.action === "ppaction://hlinkshowjump?jump=lastslide")
|
|
29569
|
-
this.ctx.eventHub.emit(
|
|
29569
|
+
this.ctx.eventHub.emit(ky.requestGotoSlide, -1);
|
|
29570
29570
|
else if (t2.action === "ppaction://hlinkshowjump?jump=lastslideviewed") {
|
|
29571
29571
|
const t3 = this.ctx.lastViewedIndex;
|
|
29572
|
-
this.ctx.eventHub.emit(
|
|
29572
|
+
this.ctx.eventHub.emit(ky.requestGotoSlide, t3);
|
|
29573
29573
|
} else
|
|
29574
|
-
t2.action === "ppaction://hlinkshowjump?jump=endshow" && this.ctx.eventHub.emit(
|
|
29574
|
+
t2.action === "ppaction://hlinkshowjump?jump=endshow" && this.ctx.eventHub.emit(ky.requestGotoSlide, -1);
|
|
29575
29575
|
}
|
|
29576
29576
|
}
|
|
29577
29577
|
function sg(t2, e2, n2 = 5) {
|
|
@@ -30727,8 +30727,27 @@ void main(void){
|
|
|
30727
30727
|
function vv(t2, e2) {
|
|
30728
30728
|
return t2.curves.map((t3) => t3.getPoints(e2)).reduce((t3, e3) => t3.concat(e3), []);
|
|
30729
30729
|
}
|
|
30730
|
-
const _v = { textCirclePour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textStop: { top: (t2) => vv(t2, 100), bottom: (t2) => vv(t2, 100) }, textPlain: { top: (t2) => vv(t2, 100), bottom: (t2) => vv(t2, 100) }, textTriangle: { top: (t2) => vv(t2, 50), bottom: (t2) => vv(t2, 101) }, textTriangleInverted: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 101) }, textChevron: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 50) }, textChevronInverted: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 50) }, textRingInside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textRingOutside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchUpPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchDownPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave1: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textWave2: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDoubleWave1: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave4: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textInflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDeflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textInflateBottom: { top: (t2) => vv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textDeflateBottom: { top: (t2) => vv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textInflateTop: { bottom: (t2) => vv(t2, 180), top: (t2) => t2.getPoints(180) }, textDeflateTop: { bottom: (t2) => vv(t2, 180), top: (t2) => t2.getPoints(180) }, textFadeRight: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeLeft: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textSlantUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textSlantDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCascadeUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCascadeDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) } };
|
|
30731
|
-
|
|
30730
|
+
const _v = { textCirclePour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textStop: { top: (t2) => vv(t2, 100), bottom: (t2) => vv(t2, 100) }, textPlain: { top: (t2) => vv(t2, 100), bottom: (t2) => vv(t2, 100) }, textTriangle: { top: (t2) => vv(t2, 50), bottom: (t2) => vv(t2, 101) }, textTriangleInverted: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 101) }, textChevron: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 50) }, textChevronInverted: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 50) }, textRingInside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textRingOutside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchUpPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchDownPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave1: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textWave2: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDoubleWave1: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave4: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textInflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDeflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textInflateBottom: { top: (t2) => vv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textDeflateBottom: { top: (t2) => vv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textInflateTop: { bottom: (t2) => vv(t2, 180), top: (t2) => t2.getPoints(180) }, textDeflateTop: { bottom: (t2) => vv(t2, 180), top: (t2) => t2.getPoints(180) }, textFadeRight: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeLeft: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textSlantUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textSlantDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCascadeUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCascadeDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textArchUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textArchDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCircle: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) } };
|
|
30731
|
+
function yv(t2, e2, n2, i2, r2) {
|
|
30732
|
+
const o2 = t2.trim().split(" "), [s2, a2] = o2[1].split(",").map((t3) => parseFloat(t3)), [l2, h2, u2, c2] = o2[3].split(",").map((t3) => parseFloat(t3)), d2 = function(t3, e3, n3, i3, r3, o3) {
|
|
30733
|
+
const s3 = Math.abs(o3 * Math.sqrt((n3 * n3 + i3 * i3) / 2)), a3 = Math.ceil(s3 / 9525 / 10);
|
|
30734
|
+
let l3 = 0, h3 = r3, u3 = { x: t3 + n3 * Math.cos(h3), y: e3 + i3 * Math.sin(h3) };
|
|
30735
|
+
for (let r4 = 0; r4 < a3; r4 += 1) {
|
|
30736
|
+
h3 += o3 / a3;
|
|
30737
|
+
const r5 = { x: t3 + n3 * Math.cos(h3), y: e3 + i3 * Math.sin(h3) };
|
|
30738
|
+
l3 += Math.sqrt(Math.pow(r5.x - u3.x, 2) + Math.pow(r5.y - u3.y, 2)), u3 = r5;
|
|
30739
|
+
}
|
|
30740
|
+
return l3;
|
|
30741
|
+
}(s2, a2, l2, h2, u2, c2);
|
|
30742
|
+
r2 *= Math.min(1, d2 / 9525 / i2);
|
|
30743
|
+
const p2 = new Rh.d();
|
|
30744
|
+
p2.translate(r2 + e2 / 2, 0), p2.rotate(2 * Math.PI - u2);
|
|
30745
|
+
const f2 = new Rh.g(0, 0), m2 = p2.apply(f2);
|
|
30746
|
+
m2.x += e2 / 2, m2.y = n2 / 2 - m2.y;
|
|
30747
|
+
const g2 = l2 + 9525 * r2, v2 = h2 + 9525 * r2;
|
|
30748
|
+
return `M ${9525 * m2.x},${9525 * m2.y} A ${g2},${v2},${u2},${c2}`;
|
|
30749
|
+
}
|
|
30750
|
+
var xv = function(t2, e2, n2, i2) {
|
|
30732
30751
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
30733
30752
|
function s2(t3) {
|
|
30734
30753
|
try {
|
|
@@ -30753,7 +30772,7 @@ void main(void){
|
|
|
30753
30772
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
30754
30773
|
});
|
|
30755
30774
|
};
|
|
30756
|
-
class
|
|
30775
|
+
class bv {
|
|
30757
30776
|
constructor(t2, e2, n2, i2, r2) {
|
|
30758
30777
|
this.iterateElements = [], this.paragraphs = [], this.container = new wh.b(), this.textContainer = new wh.b(), this.json = t2, this.ctx = e2, this.shapeRotation = r2, this.parentGlobalPos = i2, this.iterateType = n2, this.container.name = "textBody", this.global = { x: this.parentGlobalPos.x + t2.position.x, y: this.parentGlobalPos.y + t2.position.y }, this.container.position.x = t2.position.x, this.container.position.y = t2.position.y, this.container.scale.x = t2.scale.x, this.container.scale.y = t2.scale.y;
|
|
30759
30778
|
const o2 = new Xd();
|
|
@@ -30784,30 +30803,33 @@ void main(void){
|
|
|
30784
30803
|
}
|
|
30785
30804
|
createParagraphs(t2, e2) {
|
|
30786
30805
|
for (let n2 = 0, i2 = this.json.paragraphs.length; n2 < i2; n2++)
|
|
30787
|
-
e2.addSubMTask(() =>
|
|
30806
|
+
e2.addSubMTask(() => xv(this, void 0, void 0, function* () {
|
|
30788
30807
|
var i3;
|
|
30789
30808
|
const r2 = this.json.paragraphs[n2], o2 = new pv(r2, this.ctx, this.global);
|
|
30790
|
-
o2.isHorz = (i3 = this.json.isHorz) === null || i3 === void 0 || i3, o2.createLines(t2, n2, e2), e2.addSubMTask(() =>
|
|
30809
|
+
o2.isHorz = (i3 = this.json.isHorz) === null || i3 === void 0 || i3, o2.createLines(t2, n2, e2), e2.addSubMTask(() => xv(this, void 0, void 0, function* () {
|
|
30791
30810
|
this.iterateElements = this.iterateElements.concat(o2.getIterateElements()), o2.container.name = "\u6BB5\u843D-" + n2, this.paragraphs.push(o2);
|
|
30792
30811
|
}), "@TextBodyImpl[paragraphs.push]");
|
|
30793
30812
|
}), "@TextBodyImpl[createParagraphs]");
|
|
30794
30813
|
}
|
|
30795
30814
|
render(t2) {
|
|
30796
30815
|
for (const e2 of this.paragraphs)
|
|
30797
|
-
e2.render(t2), t2.addSubMTask(() =>
|
|
30816
|
+
e2.render(t2), t2.addSubMTask(() => xv(this, void 0, void 0, function* () {
|
|
30798
30817
|
this.textContainer.addChild(e2.container);
|
|
30799
30818
|
}), "@TextBodyImpl[container.addChild]");
|
|
30800
|
-
t2.addSubMTask(() =>
|
|
30819
|
+
t2.addSubMTask(() => xv(this, void 0, void 0, function* () {
|
|
30801
30820
|
const { width: t3 } = this.container;
|
|
30802
30821
|
this.container.scale.x < 0 && (this.container.x += -1 * t3);
|
|
30803
|
-
}), "@TextBodyImpl[reset width]"), t2.addSubMTask(() =>
|
|
30822
|
+
}), "@TextBodyImpl[reset width]"), t2.addSubMTask(() => xv(this, void 0, void 0, function* () {
|
|
30804
30823
|
if (this.json.presetTextShape) {
|
|
30805
30824
|
const t3 = this.json.paragraphs.map((t4) => t4.x).reduce((t4, e3) => Math.min(t4, e3)), e2 = this.json.paragraphs[0].y, n2 = this.textContainer.getBounds(), { width: i2, height: r2 } = n2, { geometry: o2, type: s2 } = this.json.presetTextShape;
|
|
30806
30825
|
if (o2.paths) {
|
|
30807
30826
|
const n3 = Uh.P.create({ width: i2, height: r2, resolution: this.ctx.renderer.resolution }), a2 = new Rh.d();
|
|
30808
30827
|
a2.translate(-t3, -e2), this.ctx.renderer.render(this.textContainer, { renderTexture: n3, transform: a2 });
|
|
30809
30828
|
const l2 = this.json.isHorz !== void 0 && !this.json.isHorz;
|
|
30810
|
-
this.json.presetTextShape.type
|
|
30829
|
+
if (["textCircle", "textArchUp", "textArchDown"].indexOf(this.json.presetTextShape.type) >= 0) {
|
|
30830
|
+
const t4 = yv(o2.paths[0].path, this.json.width, this.json.height, i2, r2);
|
|
30831
|
+
o2.paths.unshift(Object.assign(Object.assign({}, o2.paths[0]), { path: t4 }));
|
|
30832
|
+
}
|
|
30811
30833
|
const h2 = function(t4, e3, n4, i3) {
|
|
30812
30834
|
if (!_v[n4])
|
|
30813
30835
|
return null;
|
|
@@ -30828,7 +30850,7 @@ void main(void){
|
|
|
30828
30850
|
}), "presetTextShape");
|
|
30829
30851
|
}
|
|
30830
30852
|
}
|
|
30831
|
-
class
|
|
30853
|
+
class Tv {
|
|
30832
30854
|
constructor(t2) {
|
|
30833
30855
|
this.scaleX = 1, this.scaleY = 1, this.pivot = { x: 0, y: 0 }, this.paths = [], this.hash = "", this.width = 0, this.height = 0, this.graphicsId = "", this.textureId = "", this.id = t2.id, this.type = t2.type, this.heightSize = t2.heightSize, this.widthSize = t2.widthSize, this.fillStyle = t2.fillStyle || { fillType: "solidFill", color: "#ffffffff" }, this.lineWidth = t2.lineWidth || 1, this.position = t2.position || { x: 0, y: 0 }, this.rotate = t2.rotation || 1, this.path = this.getUnitPath(), this.setScaleFromLineWidth(), this.setScaleFromSize(), this.generatePaths(), this.setPivot();
|
|
30834
30856
|
}
|
|
@@ -30914,7 +30936,7 @@ void main(void){
|
|
|
30914
30936
|
this.width = 10 * this.scaleX, this.height = 10 * this.scaleY;
|
|
30915
30937
|
}
|
|
30916
30938
|
}
|
|
30917
|
-
class
|
|
30939
|
+
class Ev {
|
|
30918
30940
|
constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2) {
|
|
30919
30941
|
this.id = t2, this.ctx = e2, this.paths = n2, this.hash = i2, this.nept = r2, this.width = o2, this.height = s2, this.lineStyle = a2, this.shouldFill = l2, this.bgColor = h2, this.lnColor = u2, this.clonedObjects = [], this._displayObject = null, this.isRectangle = false, this.isPureRect = false, this.isColoredPureRect = false, this.isRectangle = this.rectangleDetect(n2), this.isRectangle && l2 ? this.bgColor ? this.isColoredPureRect = true : this.isPureRect = true : this.ctx.graphicsTexture.addGraphics(this.id, this.paths, this.hash, this.nept, this.width, this.height, this.lineStyle, this.ctx.objectPoolGroup, this.shouldFill, this.bgColor, this.lnColor);
|
|
30920
30942
|
}
|
|
@@ -30984,12 +31006,12 @@ void main(void){
|
|
|
30984
31006
|
}), this.clonedObjects = [];
|
|
30985
31007
|
}
|
|
30986
31008
|
}
|
|
30987
|
-
class
|
|
31009
|
+
class Sv extends Uh.u {
|
|
30988
31010
|
}
|
|
30989
|
-
var
|
|
30990
|
-
class
|
|
31011
|
+
var wv = n(109), Av = n.n(wv), Mv = n(110), Rv = n.n(Mv);
|
|
31012
|
+
class Cv extends Sv {
|
|
30991
31013
|
constructor(t2) {
|
|
30992
|
-
super(
|
|
31014
|
+
super(Av.a, Rv.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uGlowColor: mg(t2.color), uSdfSampler: Uh.db.WHITE, uSdfReady: 0, uSdfMaxDis: 0, uRad: t2.rad / 2, uSdfPosition: new Float32Array([0, 0]) }), this.priority = 3, this.json = t2;
|
|
30993
31015
|
}
|
|
30994
31016
|
filterAreaJustify(t2) {
|
|
30995
31017
|
const e2 = Math.ceil(this.json.rad), n2 = Math.ceil(t2.width + 2 * e2), i2 = Math.ceil(t2.height + 2 * e2);
|
|
@@ -31000,10 +31022,10 @@ void main(void){
|
|
|
31000
31022
|
return new Rh.j(n2, n2, i2, r2);
|
|
31001
31023
|
}
|
|
31002
31024
|
}
|
|
31003
|
-
var
|
|
31004
|
-
class
|
|
31025
|
+
var Pv = n(19), Iv = n.n(Pv), Ov = n(111), Nv = n.n(Ov);
|
|
31026
|
+
class Lv extends Sv {
|
|
31005
31027
|
constructor(t2) {
|
|
31006
|
-
super(
|
|
31028
|
+
super(Iv.a, Nv.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uRad: t2.rad, uSdfSampler: Uh.db.WHITE, uSdfReady: 0, uSdfMaxDis: 1 }), this.priority = 2, this.json = t2;
|
|
31007
31029
|
}
|
|
31008
31030
|
filterAreaJustify(t2) {
|
|
31009
31031
|
return t2;
|
|
@@ -31012,17 +31034,17 @@ void main(void){
|
|
|
31012
31034
|
return new Rh.j(0, 0, t2, e2);
|
|
31013
31035
|
}
|
|
31014
31036
|
}
|
|
31015
|
-
class
|
|
31037
|
+
class Dv {
|
|
31016
31038
|
}
|
|
31017
|
-
var
|
|
31018
|
-
class
|
|
31039
|
+
var Fv = n(112), Bv = n.n(Fv);
|
|
31040
|
+
class Uv extends Uh.u {
|
|
31019
31041
|
constructor(t2) {
|
|
31020
|
-
super(
|
|
31042
|
+
super(Iv.a, Bv.a, { uColor: mg(t2) });
|
|
31021
31043
|
}
|
|
31022
31044
|
}
|
|
31023
|
-
class
|
|
31045
|
+
class kv extends Dv {
|
|
31024
31046
|
constructor(t2, e2, n2) {
|
|
31025
|
-
super(), this.order = 1, this.outputTexture = Uh.db.WHITE, this.frameTextures = [], this.json = t2, this.effectContainer = e2, this.outputSprite = new Kd(), this.targetScale = n2, this.outputSprite.scale.x = this.json.sx, this.outputSprite.scale.y = this.json.sy, this.outputSprite.skew.x = (this.targetScale.x > 0 ? 1 : -1) * this.json.kx, this.outputSprite.skew.y = (this.targetScale.y > 0 ? 1 : -1) * this.json.ky, this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new
|
|
31047
|
+
super(), this.order = 1, this.outputTexture = Uh.db.WHITE, this.frameTextures = [], this.json = t2, this.effectContainer = e2, this.outputSprite = new Kd(), this.targetScale = n2, this.outputSprite.scale.x = this.json.sx, this.outputSprite.scale.y = this.json.sy, this.outputSprite.skew.x = (this.targetScale.x > 0 ? 1 : -1) * this.json.kx, this.outputSprite.skew.y = (this.targetScale.y > 0 ? 1 : -1) * this.json.ky, this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new Uv(this.json.color)];
|
|
31026
31048
|
}
|
|
31027
31049
|
updateFrame(t2) {
|
|
31028
31050
|
const e2 = this.frameTextures[t2];
|
|
@@ -31071,17 +31093,17 @@ void main(void){
|
|
|
31071
31093
|
console.log(t2, e2);
|
|
31072
31094
|
}
|
|
31073
31095
|
}
|
|
31074
|
-
var
|
|
31075
|
-
class
|
|
31096
|
+
var Gv = n(113), Hv = n.n(Gv);
|
|
31097
|
+
class jv extends Uh.u {
|
|
31076
31098
|
constructor(t2, e2) {
|
|
31077
|
-
super(
|
|
31099
|
+
super(Iv.a, Hv.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
|
|
31078
31100
|
}
|
|
31079
31101
|
}
|
|
31080
|
-
class
|
|
31102
|
+
class zv extends Dv {
|
|
31081
31103
|
constructor(t2, e2, n2, i2, r2) {
|
|
31082
31104
|
super(), this.order = 2, this.outputSprite = new Kd(), this.outputTexture = Uh.db.WHITE, this.frameTextures = [], this.json = t2, this.shapeScaleX = i2, this.effectContainer = e2, this.rotation = n2, this.ctx = r2, this.outputSprite.anchor.x = 0.5, this.outputSprite.anchor.y = 0.5;
|
|
31083
31105
|
const o2 = this.effectContainer.getBounds();
|
|
31084
|
-
this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new
|
|
31106
|
+
this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new jv(this.json, o2.height)], this.outputSprite.alpha = 0.5, this.outputSprite.rotation = this.shapeScaleX === -1 ? Math.PI + 2 * this.rotation : Math.PI - 2 * this.rotation, this.outputSprite.scale.x = -1;
|
|
31085
31107
|
}
|
|
31086
31108
|
updateFrame(t2) {
|
|
31087
31109
|
const e2 = this.frameTextures[t2];
|
|
@@ -31095,10 +31117,10 @@ void main(void){
|
|
|
31095
31117
|
this.outputSprite.position.x = o2.x + t2, this.outputSprite.position.y = o2.y + e2;
|
|
31096
31118
|
}
|
|
31097
31119
|
}
|
|
31098
|
-
var
|
|
31099
|
-
class
|
|
31120
|
+
var Vv = n(114), Xv = n.n(Vv);
|
|
31121
|
+
class Wv extends Sv {
|
|
31100
31122
|
constructor(t2) {
|
|
31101
|
-
super(
|
|
31123
|
+
super(Iv.a, Xv.a, {}), this.priority = 1, this.json = t2;
|
|
31102
31124
|
}
|
|
31103
31125
|
filterAreaJustify(t2) {
|
|
31104
31126
|
return t2;
|
|
@@ -31107,7 +31129,7 @@ void main(void){
|
|
|
31107
31129
|
return null;
|
|
31108
31130
|
}
|
|
31109
31131
|
}
|
|
31110
|
-
var
|
|
31132
|
+
var Yv = function(t2, e2, n2, i2) {
|
|
31111
31133
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
31112
31134
|
function s2(t3) {
|
|
31113
31135
|
try {
|
|
@@ -31132,25 +31154,25 @@ void main(void){
|
|
|
31132
31154
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
31133
31155
|
});
|
|
31134
31156
|
};
|
|
31135
|
-
class
|
|
31157
|
+
class qv extends Ja.a {
|
|
31136
31158
|
constructor(t2, e2, n2, i2, r2, o2) {
|
|
31137
31159
|
super(), this.effects = [], this.attachs = [], this.frames = /* @__PURE__ */ new Map(), this._targetContainer = new wh.b(), this.frameCount = 1, this.ctx = i2, this.originWidth = t2.width, this.originHeight = t2.height, this.cacheKey = n2, this.sourceSprite = new Kd();
|
|
31138
31160
|
for (const n3 of e2)
|
|
31139
31161
|
switch (n3.type) {
|
|
31140
31162
|
case "innerShadow":
|
|
31141
|
-
this.effects.push(new
|
|
31163
|
+
this.effects.push(new Wv(n3));
|
|
31142
31164
|
break;
|
|
31143
31165
|
case "softEdge":
|
|
31144
|
-
this.effects.push(new
|
|
31166
|
+
this.effects.push(new Lv(n3));
|
|
31145
31167
|
break;
|
|
31146
31168
|
case "glow":
|
|
31147
|
-
this.effects.push(new
|
|
31169
|
+
this.effects.push(new Cv(n3));
|
|
31148
31170
|
break;
|
|
31149
31171
|
case "reflection":
|
|
31150
|
-
this.attachs.push(new
|
|
31172
|
+
this.attachs.push(new zv(n3, t2, r2, o2.x, this.ctx));
|
|
31151
31173
|
break;
|
|
31152
31174
|
case "outerShadow":
|
|
31153
|
-
this.attachs.push(new
|
|
31175
|
+
this.attachs.push(new kv(n3, t2, o2));
|
|
31154
31176
|
}
|
|
31155
31177
|
this.effects = this.effects.sort((t3, e3) => t3.priority - e3.priority), this.attachs = this.attachs.sort((t3, e3) => t3.order - e3.order);
|
|
31156
31178
|
for (const t3 of this.attachs)
|
|
@@ -31163,7 +31185,7 @@ void main(void){
|
|
|
31163
31185
|
return this._targetContainer;
|
|
31164
31186
|
}
|
|
31165
31187
|
getSdfTexture(t2, e2) {
|
|
31166
|
-
return
|
|
31188
|
+
return Yv(this, void 0, void 0, function* () {
|
|
31167
31189
|
const n2 = `${this.cacheKey}_${t2}`, i2 = this.effects.map((t3) => ({ sdfRect: t3.sdfBox(e2.width, e2.height) })).reduce((t3, e3) => e3.sdfRect ? (t3.width < e3.sdfRect.width && (t3.width = e3.sdfRect.width), t3.height < e3.sdfRect.height && (t3.height = e3.sdfRect.height), t3) : t3, new Rh.j(0, 0));
|
|
31168
31190
|
return i2.width === 0 || i2.height === 0 ? null : this.ctx.sdfManager.getSdf(e2, i2, n2);
|
|
31169
31191
|
});
|
|
@@ -31187,7 +31209,7 @@ void main(void){
|
|
|
31187
31209
|
}
|
|
31188
31210
|
createFrame(t2, e2) {
|
|
31189
31211
|
var n2, i2;
|
|
31190
|
-
return
|
|
31212
|
+
return Yv(this, void 0, void 0, function* () {
|
|
31191
31213
|
const r2 = e2.width, o2 = e2.height;
|
|
31192
31214
|
if (this.frames.has(t2))
|
|
31193
31215
|
return;
|
|
@@ -31207,7 +31229,7 @@ void main(void){
|
|
|
31207
31229
|
});
|
|
31208
31230
|
}
|
|
31209
31231
|
}
|
|
31210
|
-
var
|
|
31232
|
+
var Zv = function(t2, e2, n2, i2) {
|
|
31211
31233
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
31212
31234
|
function s2(t3) {
|
|
31213
31235
|
try {
|
|
@@ -31232,14 +31254,20 @@ void main(void){
|
|
|
31232
31254
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
31233
31255
|
});
|
|
31234
31256
|
};
|
|
31235
|
-
const
|
|
31236
|
-
class
|
|
31257
|
+
const Jv = { pivot: { x: 0, y: 0 }, width: 0, height: 0 };
|
|
31258
|
+
class Kv extends hg {
|
|
31237
31259
|
constructor(t2, e2, n2, i2) {
|
|
31238
|
-
var r2;
|
|
31239
|
-
super(t2, e2, n2), this.renderContainer = new wh.b(), this.needCacheAsBitMap = false, this.backgroundGraphics = null, this.effectList = [], this.strokeGraphics = null, this.arrowList = [], this.fillColorFilter = new _g(), this.strokeColorFilter = new _g(), this.pptColorFilter = new _g(), this.id = "", this.ppt_c = new ng(this), this.fill = new ig(this), this.stroke = new tg(this), this.effectObject = null, this.effectContainer = new wh.b(), this.effectDisposer = () => {
|
|
31260
|
+
var r2, o2, s2, a2, l2, h2, u2, c2, d2;
|
|
31261
|
+
super(t2, e2, n2), this.renderContainer = new wh.b(), this.needCacheAsBitMap = false, this.backgroundGraphics = null, this.effectList = [], this.strokeGraphics = null, this.ghco = null, this.arrowList = [], this.fillColorFilter = new _g(), this.strokeColorFilter = new _g(), this.pptColorFilter = new _g(), this.id = "", this.ppt_c = new ng(this), this.fill = new ig(this), this.stroke = new tg(this), this.effectObject = null, this.effectContainer = new wh.b(), this.effectDisposer = () => {
|
|
31240
31262
|
}, this.json = t2, this.json.fillStyle && this.json.fillStyle.fillType === "groupFill" && i2 && (this.json.fillStyle = i2), this.id = t2.id;
|
|
31241
|
-
const { fillStyle:
|
|
31242
|
-
this.container.sortableChildren = true, this.container.name = t2.id + "_container_[Shape]", this.effectContainer.name = "effect-container", this.effectContainer.zIndex = 1, this.container.addChild(this.effectContainer), this.renderContainer.name = t2.id + "_render_container_[Shape]", this.generateArrowList(), this.backgroundFill = this.createBackgroundFill(), this.backgroundGraphics = this.createBackgroundGraphics(), this.strokeFill = this.createStrokeFill(), this.strokeGraphics = this.createStrokeGraphics()
|
|
31263
|
+
const { fillStyle: p2, lineStyle: f2 } = this.json;
|
|
31264
|
+
this.container.sortableChildren = true, this.container.name = t2.id + "_container_[Shape]", this.effectContainer.name = "effect-container", this.effectContainer.zIndex = 1, this.container.addChild(this.effectContainer), this.renderContainer.name = t2.id + "_render_container_[Shape]", this.generateArrowList(), this.backgroundFill = this.createBackgroundFill(), this.backgroundGraphics = this.createBackgroundGraphics(), this.strokeFill = this.createStrokeFill(), this.strokeGraphics = this.createStrokeGraphics();
|
|
31265
|
+
try {
|
|
31266
|
+
this.ghco = new Ev(this.json.id + "-path-graphics-text-wrap", this.ctx, (s2 = (o2 = (r2 = this.json.textBody) === null || r2 === void 0 ? void 0 : r2.presetTextShape) === null || o2 === void 0 ? void 0 : o2.geometry.paths) !== null && s2 !== void 0 ? s2 : [], (h2 = (l2 = (a2 = this.json.textBody) === null || a2 === void 0 ? void 0 : a2.presetTextShape) === null || l2 === void 0 ? void 0 : l2.geometry.hash) !== null && h2 !== void 0 ? h2 : "", { x: 0, y: 0 }, ((u2 = this.json.textBody) === null || u2 === void 0 ? void 0 : u2.width) || 100, ((c2 = this.json.textBody) === null || c2 === void 0 ? void 0 : c2.height) || 100, { width: 2, fill: { fillType: "solidFill", color: "#FF0000FF" } }, false, null, null);
|
|
31267
|
+
} catch (t3) {
|
|
31268
|
+
this.ctx.logger.error(t3.message, this.ctx.taskId);
|
|
31269
|
+
}
|
|
31270
|
+
this.ctx.timingTargets.addTarget(this.id, this), (p2 == null ? void 0 : p2.fillType) === "solidFill" && (this.fillColorFilter.currentColor = p2.color, this.fillColorFilter.designColor = p2.color), ((d2 = f2 == null ? void 0 : f2.fill) === null || d2 === void 0 ? void 0 : d2.fillType) === "solidFill" && (this.strokeColorFilter.currentColor = f2.fill.color, this.strokeColorFilter.designColor = f2.fill.color), this.updateTransform(this.json), t2.textBody && (this.text = new bv(t2.textBody, this.ctx, t2.textBody.iterateType, { x: this.designGlobalPosition.x, y: this.designGlobalPosition.y }, this.json.rotation || 0)), this.container.hitArea = new Rh.k(1, 1, this.json.width, this.json.height), this.ctx.slideScopeEventHub.once("slide-render", (t3) => {
|
|
31243
31271
|
if (this.ctx.slideIndex === t3 && this.effectObject) {
|
|
31244
31272
|
const t4 = this.getEffectTexture();
|
|
31245
31273
|
if (t4) {
|
|
@@ -31299,26 +31327,26 @@ void main(void){
|
|
|
31299
31327
|
}
|
|
31300
31328
|
createStrokeGraphics() {
|
|
31301
31329
|
var t2, e2, n2, i2;
|
|
31302
|
-
const { id: r2, geometry: o2, lineStyle: s2 } = this.json, { width: a2, height: l2, pivot: h2 } = (o2 == null ? void 0 : o2.lineTransform) ||
|
|
31303
|
-
return s2 && ((e2 = s2.fill) === null || e2 === void 0 ? void 0 : e2.fillType) !== "noFill" ? new
|
|
31330
|
+
const { id: r2, geometry: o2, lineStyle: s2 } = this.json, { width: a2, height: l2, pivot: h2 } = (o2 == null ? void 0 : o2.lineTransform) || Jv, u2 = a2 || this.json.width, c2 = l2 || this.json.height, d2 = ((t2 = s2 == null ? void 0 : s2.fill) === null || t2 === void 0 ? void 0 : t2.fillType) === "solidFill" ? s2.fill.color : null;
|
|
31331
|
+
return s2 && ((e2 = s2.fill) === null || e2 === void 0 ? void 0 : e2.fillType) !== "noFill" ? new Ev(r2 + "-path-graphics", this.ctx, (n2 = o2 == null ? void 0 : o2.paths) !== null && n2 !== void 0 ? n2 : [], (i2 = o2 == null ? void 0 : o2.hash) !== null && i2 !== void 0 ? i2 : "", h2 || { x: 0, y: 0 }, u2, c2, s2, false, null, d2) : null;
|
|
31304
31332
|
}
|
|
31305
31333
|
createStrokeFill() {
|
|
31306
|
-
const [t2, e2] = this.calculateFillObjectOffset(), { geometry: n2, lineStyle: i2, width: r2, height: o2 } = this.json, s2 = (n2 == null ? void 0 : n2.lineTransform) ||
|
|
31334
|
+
const [t2, e2] = this.calculateFillObjectOffset(), { geometry: n2, lineStyle: i2, width: r2, height: o2 } = this.json, s2 = (n2 == null ? void 0 : n2.lineTransform) || Jv, a2 = Vm()(i2 == null ? void 0 : i2.width) ? i2.width : 1;
|
|
31307
31335
|
return new av(this.ctx, i2 == null ? void 0 : i2.fill, (s2.width || r2) + a2 + t2, Math.max((s2.height || o2) + a2, e2), { useFilter: true, useSlideBackgroundFill: false });
|
|
31308
31336
|
}
|
|
31309
31337
|
createBackgroundGraphics() {
|
|
31310
31338
|
var t2;
|
|
31311
|
-
const { geometry: e2, lineStyle: n2, fillStyle: i2, id: r2 } = this.json, { width: o2, height: s2, pivot: a2 } = (e2 == null ? void 0 : e2.lineTransform) ||
|
|
31312
|
-
return i2 && i2.fillType !== "noFill" || this.json.isPicture ? new
|
|
31339
|
+
const { geometry: e2, lineStyle: n2, fillStyle: i2, id: r2 } = this.json, { width: o2, height: s2, pivot: a2 } = (e2 == null ? void 0 : e2.lineTransform) || Jv, l2 = o2 || this.json.width, h2 = s2 || this.json.height, u2 = (i2 == null ? void 0 : i2.fillType) === "solidFill" ? i2.color : null;
|
|
31340
|
+
return i2 && i2.fillType !== "noFill" || this.json.isPicture ? new Ev(r2 + "-bg-graphics", this.ctx, (t2 = e2 == null ? void 0 : e2.paths) !== null && t2 !== void 0 ? t2 : [], (e2 == null ? void 0 : e2.hash) || "", a2 || { x: 0, y: 0 }, l2, h2, n2, true, u2, null) : null;
|
|
31313
31341
|
}
|
|
31314
31342
|
createBackgroundFill() {
|
|
31315
31343
|
var t2, e2;
|
|
31316
|
-
const { fillStyle: n2, width: i2, height: r2, lineStyle: o2, geometry: s2 } = this.json, a2 = (s2 == null ? void 0 : s2.fillTransform) ||
|
|
31344
|
+
const { fillStyle: n2, width: i2, height: r2, lineStyle: o2, geometry: s2 } = this.json, a2 = (s2 == null ? void 0 : s2.fillTransform) || Jv;
|
|
31317
31345
|
return new av(this.ctx, n2, (a2.width || i2) + ((t2 = o2 == null ? void 0 : o2.width) !== null && t2 !== void 0 ? t2 : 0), (a2.height || r2) + ((e2 = o2 == null ? void 0 : o2.width) !== null && e2 !== void 0 ? e2 : 0), { useFilter: true, useSlideBackgroundFill: this.json.useBgFill, fillFloat: this.json.fillFloat, shapeRotation: this.json.rotation });
|
|
31318
31346
|
}
|
|
31319
31347
|
createBackground() {
|
|
31320
31348
|
var t2, e2, n2, i2, r2, o2, s2, a2;
|
|
31321
|
-
const { pivot: l2, width: h2, height: u2 } = ((t2 = this.json.geometry) === null || t2 === void 0 ? void 0 : t2.fillTransform) ||
|
|
31349
|
+
const { pivot: l2, width: h2, height: u2 } = ((t2 = this.json.geometry) === null || t2 === void 0 ? void 0 : t2.fillTransform) || Jv, { displayObject: c2 } = this.backgroundFill;
|
|
31322
31350
|
c2 ? (this.json.useBgFill && ((n2 = this.backgroundGraphics) === null || n2 === void 0 ? void 0 : n2.displayObject) ? (this.needCacheAsBitMap = true, c2.mask = this.backgroundGraphics.displayObject, c2.pivot.x = ((i2 = this.json.position) === null || i2 === void 0 ? void 0 : i2.x) || 0, c2.pivot.y = ((r2 = this.json.position) === null || r2 === void 0 ? void 0 : r2.y) || 0, this.effectContainer.addChild(this.backgroundGraphics.displayObject)) : ((o2 = this.json.fillStyle) === null || o2 === void 0 ? void 0 : o2.fillType) === "gifFill" ? (c2.height = u2 || this.designHeight, c2.width = h2 || this.designWidth, c2 instanceof em && c2.play(), ((s2 = this.backgroundGraphics) === null || s2 === void 0 ? void 0 : s2.isNeedMask(c2.width, c2.height)) && (c2.mask = this.backgroundGraphics.displayObject, this.backgroundGraphics.displayObject && this.effectContainer.addChild(this.backgroundGraphics.displayObject))) : ((a2 = this.backgroundGraphics) === null || a2 === void 0 ? void 0 : a2.isNeedMask(c2.width, c2.height)) && (this.json.fillFloat || (this.needCacheAsBitMap = true, c2.mask = this.backgroundGraphics.displayObject, this.backgroundGraphics.displayObject && this.effectContainer.addChild(this.backgroundGraphics.displayObject))), this.json.fillFloat || (c2.x = l2.x, c2.y = l2.y), this.effectContainer.addChild(c2)) : this.backgroundFill.hasFill && ((e2 = this.backgroundGraphics) === null || e2 === void 0 ? void 0 : e2.displayObject) && this.effectContainer.addChild(this.backgroundGraphics.displayObject);
|
|
31323
31351
|
}
|
|
31324
31352
|
createPathFill() {
|
|
@@ -31354,7 +31382,7 @@ void main(void){
|
|
|
31354
31382
|
const { lineArrowList: n2, lineStyle: i2, id: r2 } = this.json, o2 = ((t2 = i2 == null ? void 0 : i2.fill) === null || t2 === void 0 ? void 0 : t2.fillType) === "solidFill" ? i2.fill.color : null;
|
|
31355
31383
|
(e2 = n2 || []) === null || e2 === void 0 || e2.forEach((t3, e3) => {
|
|
31356
31384
|
var n3, s2;
|
|
31357
|
-
const a2 = new
|
|
31385
|
+
const a2 = new Tv(Object.assign(Object.assign({}, t3), { fillStyle: i2 == null ? void 0 : i2.fill, lineWidth: (n3 = i2 == null ? void 0 : i2.width) !== null && n3 !== void 0 ? n3 : 0 }));
|
|
31358
31386
|
a2.graphicsId = `${r2}-arrow-${e3}-graphics`, a2.textureId = `${r2}-arrow-${e3}-fill`, this.ctx.graphicsTexture.addGraphics(a2.graphicsId, (s2 = a2.paths) !== null && s2 !== void 0 ? s2 : [], a2.hash, { x: 0, y: 0 }, a2.width, a2.height, void 0, this.ctx.objectPoolGroup, true, o2, null), this.arrowList.push(a2);
|
|
31359
31387
|
});
|
|
31360
31388
|
}
|
|
@@ -31364,19 +31392,19 @@ void main(void){
|
|
|
31364
31392
|
}
|
|
31365
31393
|
preRender(t2) {
|
|
31366
31394
|
var e2, n2, i2;
|
|
31367
|
-
const { lineStyle: r2, geometry: o2 } = this.json, { width: s2, height: a2 } = (o2 == null ? void 0 : o2.lineTransform) ||
|
|
31368
|
-
t2.addSubMTask(() =>
|
|
31395
|
+
const { lineStyle: r2, geometry: o2 } = this.json, { width: s2, height: a2 } = (o2 == null ? void 0 : o2.lineTransform) || Jv, l2 = s2 || this.json.width, h2 = a2 || this.json.height, u2 = ((e2 = o2 == null ? void 0 : o2.paths) === null || e2 === void 0 ? void 0 : e2.filter((t3) => t3.fill !== "none" && t3.fill !== "norm")) || [], c2 = ((n2 = r2 == null ? void 0 : r2.fill) === null || n2 === void 0 ? void 0 : n2.fillType) === "solidFill" ? r2.fill.color : null;
|
|
31396
|
+
t2.addSubMTask(() => Zv(this, void 0, void 0, function* () {
|
|
31369
31397
|
for (const t3 of u2)
|
|
31370
|
-
this.ctx.graphicsTexture.addGraphics(t3.id, [t3], t3.hash, ((o2 == null ? void 0 : o2.lineTransform) ||
|
|
31398
|
+
this.ctx.graphicsTexture.addGraphics(t3.id, [t3], t3.hash, ((o2 == null ? void 0 : o2.lineTransform) || Jv).pivot, l2, h2, r2, this.ctx.objectPoolGroup, true, null, c2);
|
|
31371
31399
|
}), "@ShapeImpl[addGraphics]"), (i2 = this.text) === null || i2 === void 0 || i2.createParagraphs(this.json.id, t2);
|
|
31372
31400
|
}
|
|
31373
31401
|
subClassRender() {
|
|
31374
31402
|
}
|
|
31375
31403
|
render(t2) {
|
|
31376
|
-
t2.addSubMTask(() =>
|
|
31404
|
+
t2.addSubMTask(() => Zv(this, void 0, void 0, function* () {
|
|
31377
31405
|
var t3, e2;
|
|
31378
31406
|
(t3 = this.strokeGraphics) === null || t3 === void 0 || t3.render(), (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.render(), this.createBackground(), this.subClassRender(), this.createFilledPathMask(), this.createPathFill(), this.createArrow();
|
|
31379
|
-
}), "@ShapeImpl[render]"), this.text && this.text.render(t2), t2.addSubMTask(() =>
|
|
31407
|
+
}), "@ShapeImpl[render]"), this.text && this.text.render(t2), t2.addSubMTask(() => Zv(this, void 0, void 0, function* () {
|
|
31380
31408
|
var t3, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2;
|
|
31381
31409
|
if (((t3 = this.json.textBody) === null || t3 === void 0 ? void 0 : t3.iterateType) === "wd" || ((e2 = this.json.textBody) === null || e2 === void 0 ? void 0 : e2.iterateType) === "lt") {
|
|
31382
31410
|
if (this.renderContainer.addChild(this.container), this.text) {
|
|
@@ -31401,7 +31429,7 @@ void main(void){
|
|
|
31401
31429
|
const t4 = Uh.P.create({ width: this.json.width, height: this.json.height, resolution: Math.ceil(this.ctx.renderer.resolution) });
|
|
31402
31430
|
this.ctx.renderer.render(this.renderContainer, { renderTexture: t4 }), this.ctx.bgTexture = t4;
|
|
31403
31431
|
}
|
|
31404
|
-
this.json.effectList && this.json.effectList.length > 0 && ((l2 = this.ctx.featureList) === null || l2 === void 0 ? void 0 : l2.effect) && !this.ctx.forceCanvas && (this.effectObject = new
|
|
31432
|
+
this.json.effectList && this.json.effectList.length > 0 && ((l2 = this.ctx.featureList) === null || l2 === void 0 ? void 0 : l2.effect) && !this.ctx.forceCanvas && (this.effectObject = new qv(this.effectContainer, this.json.effectList, `${this.ctx.taskId}_${this.ctx.slideIndex}_${this.json.id}`, this.ctx, this.json.rotation || 0, new Rh.g(((h2 = this.json.scale) === null || h2 === void 0 ? void 0 : h2.x) || 1, ((u2 = this.json.scale) === null || u2 === void 0 ? void 0 : u2.y) || 1)), function(t4) {
|
|
31405
31433
|
var e3, n3, i3;
|
|
31406
31434
|
return ((e3 = t4.fillStyle) === null || e3 === void 0 ? void 0 : e3.fillType) === "gifFill" || (((i3 = (n3 = t4.lineStyle) === null || n3 === void 0 ? void 0 : n3.fill) === null || i3 === void 0 ? void 0 : i3.fillType) === "gifFill" || !!t4.picFill && t4.picFill.fillType === "gifFill");
|
|
31407
31435
|
}(this.json) && this.effectObject.setFrameCount(-1), this.effectObject.on("ready", () => {
|
|
@@ -31419,7 +31447,7 @@ void main(void){
|
|
|
31419
31447
|
(t2 = this.text) === null || t2 === void 0 || t2.destroy(), this.fillColorFilter.destroy(), this.strokeColorFilter.destroy(), this.backgroundFill.destroy(), (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.destroy(), this.strokeFill.destroy(), (n2 = this.strokeGraphics) === null || n2 === void 0 || n2.destroy(), this.renderContainer.destroy(), (i2 = this.arrowRenderTexture) === null || i2 === void 0 || i2.destroy(true), this.arrowList = [], this.effectDisposer();
|
|
31420
31448
|
}
|
|
31421
31449
|
}
|
|
31422
|
-
var
|
|
31450
|
+
var Qv = function(t2, e2, n2, i2) {
|
|
31423
31451
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
31424
31452
|
function s2(t3) {
|
|
31425
31453
|
try {
|
|
@@ -31444,11 +31472,11 @@ void main(void){
|
|
|
31444
31472
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
31445
31473
|
});
|
|
31446
31474
|
};
|
|
31447
|
-
function
|
|
31475
|
+
function $v(t2, e2) {
|
|
31448
31476
|
for (const n2 in e2)
|
|
31449
31477
|
t2.style[n2] = e2[n2];
|
|
31450
31478
|
}
|
|
31451
|
-
class
|
|
31479
|
+
class t_ {
|
|
31452
31480
|
constructor(t2) {
|
|
31453
31481
|
var e2, n2;
|
|
31454
31482
|
this.progress = document.createElement("div"), this.totalTime = document.createElement("span"), this.playButton = document.createElement("div"), this.pauseButton = document.createElement("div"), this.currentTime = document.createElement("span"), this.mediaController = document.createElement("div"), this.currentProgress = document.createElement("div"), this.fullScreenButton = document.createElement("div"), this.exitFullScreenButton = document.createElement("div"), this.medianIsEnd = false, this.pickBookmarkIndex = 0, this.playCallBackList = [], this.duration = 0, this.isVideo = false, this.start = 0, this.end = 0, this.changeMediaProgress = (t3) => {
|
|
@@ -31456,26 +31484,26 @@ void main(void){
|
|
|
31456
31484
|
return void this.ctx.logger.info("Media controller prevent seek event with paused state", this.ctx.taskId);
|
|
31457
31485
|
t3.stopPropagation();
|
|
31458
31486
|
const e3 = t3.offsetX / this.progress.clientWidth * this.duration;
|
|
31459
|
-
this.medianIsEnd = false, this.ctx.mode !== "interactive" && this.jumpToTime(e3), this.ctx.mode !== "local" && this.ctx.eventHub.emit(
|
|
31460
|
-
}, this.jumpToTime = (t3 = 0) =>
|
|
31487
|
+
this.medianIsEnd = false, this.ctx.mode !== "interactive" && this.jumpToTime(e3), this.ctx.mode !== "local" && this.ctx.eventHub.emit(ky.mediaSeek, { id: this.targetId, time: e3, isPlaying: this.media.isPlaying });
|
|
31488
|
+
}, this.jumpToTime = (t3 = 0) => Qv(this, void 0, void 0, function* () {
|
|
31461
31489
|
yield Im(() => !!this.duration, 3e3);
|
|
31462
31490
|
const e3 = Math.floor(t3) + this.start;
|
|
31463
31491
|
this.media.currentTime !== e3 && (this.media.currentTime = e3, this.changeBookmarkIndex(e3, e3 > this.media.currentTime));
|
|
31464
31492
|
}), this.showController = (t3) => {
|
|
31465
31493
|
t3.stopPropagation(), this.show();
|
|
31466
31494
|
}, this.getMediaDuration = () => {
|
|
31467
|
-
this.duration && !Number.isNaN(this.duration) || (this.duration = this.media.duration, this.start && (this.duration -= this.start, this.jumpToTime()), this.end && (this.duration -= this.end)), this.totalTime.innerText =
|
|
31468
|
-
}, this.playMedia = () =>
|
|
31495
|
+
this.duration && !Number.isNaN(this.duration) || (this.duration = this.media.duration, this.start && (this.duration -= this.start, this.jumpToTime()), this.end && (this.duration -= this.end)), this.totalTime.innerText = t_.formatTime(this.duration);
|
|
31496
|
+
}, this.playMedia = () => Qv(this, void 0, void 0, function* () {
|
|
31469
31497
|
this.playButton.style.display = "none", this.pauseButton.style.display = "block", yield this.media.play(), this.medianIsEnd && (this.medianIsEnd = false, this.jumpToTime()), this.playCallBackList.forEach((t3) => {
|
|
31470
31498
|
t3();
|
|
31471
31499
|
});
|
|
31472
|
-
}), this.pauseMedia = () =>
|
|
31500
|
+
}), this.pauseMedia = () => Qv(this, void 0, void 0, function* () {
|
|
31473
31501
|
this.playButton.style.display = "block", this.pauseButton.style.display = "none", yield this.media.pause();
|
|
31474
31502
|
}), this.onMouseOut = (t3) => {
|
|
31475
31503
|
t3.stopPropagation(), this.mediaController.style.display = "none";
|
|
31476
|
-
}, this.mediaTimeUpdate = () =>
|
|
31504
|
+
}, this.mediaTimeUpdate = () => Qv(this, void 0, void 0, function* () {
|
|
31477
31505
|
const t3 = this.media.currentTime - this.start;
|
|
31478
|
-
if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(
|
|
31506
|
+
if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(ky.mediaStop, { id: this.targetId })), this.currentTime.innerText = t_.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), !this.bookmarkList || this.bookmarkList.length === 0)
|
|
31479
31507
|
return;
|
|
31480
31508
|
const e3 = this.bookmarkList[this.pickBookmarkIndex];
|
|
31481
31509
|
e3 && e3.time.toFixed(0) === this.media.currentTime.toFixed(0) && (this.ctx.timingEventHub.emit(`shape ${this.shapeId} onMediaBookmark ${e3.name}`), this.pickBookmarkIndex += 1);
|
|
@@ -31486,13 +31514,13 @@ void main(void){
|
|
|
31486
31514
|
t3();
|
|
31487
31515
|
});
|
|
31488
31516
|
}, this.playMediaFromCtrl = () => {
|
|
31489
|
-
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent play event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.playMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(
|
|
31517
|
+
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent play event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.playMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(ky.mediaPlay, { id: this.targetId, time: this.media.currentTime - this.start }));
|
|
31490
31518
|
}, this.pauseMediaFromCtrl = () => {
|
|
31491
|
-
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent pause event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.pauseMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(
|
|
31519
|
+
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent pause event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.pauseMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(ky.mediaPause, { id: this.targetId, time: this.media.currentTime - this.start }));
|
|
31492
31520
|
}, this.onClickFullScreenButtonHandle = () => {
|
|
31493
|
-
this.media.requestFullscreen(), this.ctx.eventHub.emit(
|
|
31521
|
+
this.media.requestFullscreen(), this.ctx.eventHub.emit(ky.fullscreenChange, { targetId: this.targetId, state: true });
|
|
31494
31522
|
}, this.onClickCancelFullScreenButtonHandle = () => {
|
|
31495
|
-
this.media.requestCancelFullscreen(), this.ctx.eventHub.emit(
|
|
31523
|
+
this.media.requestCancelFullscreen(), this.ctx.eventHub.emit(ky.fullscreenChange, { targetId: this.targetId, state: false });
|
|
31496
31524
|
}, this.onFullScreenChange = (t3) => {
|
|
31497
31525
|
const { status: e3, targetId: n3, slideIndex: i2 } = t3;
|
|
31498
31526
|
this.changeFullScreenState(e3, n3, i2);
|
|
@@ -31522,7 +31550,7 @@ void main(void){
|
|
|
31522
31550
|
}
|
|
31523
31551
|
generatePauseButton(t2 = 20, e2 = 20) {
|
|
31524
31552
|
const n2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
31525
|
-
|
|
31553
|
+
$v(n2, { height: t2 + "px" }), n2.setAttributeNS(null, "viewBox", "0 0 512 512"), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "width", e2.toString());
|
|
31526
31554
|
const i2 = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
31527
31555
|
i2.setAttributeNS(null, "x", "35"), i2.setAttributeNS(null, "y", "0"), i2.setAttributeNS(null, "width", "148"), i2.setAttributeNS(null, "height", "512");
|
|
31528
31556
|
const r2 = i2.cloneNode(true);
|
|
@@ -31530,40 +31558,40 @@ void main(void){
|
|
|
31530
31558
|
}
|
|
31531
31559
|
generateFullScreenButton(t2 = 20, e2 = 20) {
|
|
31532
31560
|
const n2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
31533
|
-
|
|
31561
|
+
$v(n2, { height: t2 + "px", width: e2 + "px" }), n2.setAttributeNS(null, "width", e2.toString()), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "viewBox", "0 0 1024 1024");
|
|
31534
31562
|
const i2 = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
31535
31563
|
return i2.setAttributeNS(null, "d", "M918.116352 107.409408c10.186752 10.175488 10.186752 26.691584 0 36.87936L653.734912 407.038976c-10.187776 10.187776-26.703872 10.187776-36.891648 0-10.175488-10.187776-10.175488-26.703872 0.013312-36.891648l264.38144-262.73792c10.174464-10.187776 26.69056-10.200064 36.87936-0.013312L918.117376 107.409408zM878.281728 148.096l-161.155072-0.44544c-11.283456 0.279552-20.85888-8.226816-21.90336-19.458048l0-13.421568c0.318464-10.671104 8.889344-19.241984 19.560448-19.560448l187.030528 0.827392c0.1792-0.037888 0.357376-0.0768 0.523264-0.089088l9.549824-0.229376c5.005312-0.152576 9.843712 1.770496 13.372416 5.336064 3.32288 3.629056 4.9664 8.49408 4.545536 13.40928l-1.032192 9.537536c0 0.191488 0.70144 0.318464 0.70144 0.49664l-0.534528 188.279808c-0.54784 9.984-9.092096 17.637376-19.076096 17.089536-0.165888-0.012288-0.319488-0.0256-0.484352-0.037888L896.009216 329.8304c-10.379264-0.0512-18.733056-8.506368-18.681856-18.885632 0.013312-0.191488 0.013312-0.381952 0.013312-0.585728L878.281728 148.096zM105.884672 916.661248c-10.187776-10.175488-10.200064-26.691584-0.013312-36.87936 0 0 0-0.013312 0.013312-0.013312l265.19552-262.73792c10.35264-10.008576 26.86976-9.729024 36.866048 0.636928 9.766912 10.110976 9.766912 26.131456 0 36.242432L143.579136 916.661248C133.072896 926.848 116.3776 926.848 105.884672 916.661248L105.884672 916.661248zM146.533376 875.973632l161.154048 0.433152c11.283456-0.292864 20.85888 8.213504 21.891072 19.458048l0 13.38368c-0.292864 10.672128-8.876032 19.255296-19.560448 19.561472l-187.858944-0.828416c-0.165888 0.037888-0.344064 0.075776-0.509952 0.089088l-9.550848 0.229376c-5.004288 0.152576-9.831424-1.782784-13.35808-5.336064-3.323904-3.629056-4.979712-8.493056-4.54656-13.395968l1.031168-9.537536c0-0.191488-0.712704-0.330752-0.700416-0.509952l0.534528-188.278784c0.534528-9.984 9.066496-17.625088 19.050496-17.089536 0.165888 0.013312 0.330752 0.0256 0.508928 0.037888l14.212096 0c10.365952 0.0512 18.719744 8.507392 18.656256 18.873344 0 0.191488 0 0.395264-0.013312 0.598016L146.533376 875.973632zM918.116352 916.661248c10.186752-10.175488 10.200064-26.691584 0.012288-36.87936 0 0 0-0.013312-0.012288-0.013312l-264.38144-262.73792c-10.365952-10.008576-26.86976-9.729024-36.87936 0.636928-9.766912 10.110976-9.766912 26.131456 0 36.242432L881.22368 916.661248c10.186752 10.186752 26.703872 10.186752 36.891648 0.013312L918.115328 916.661248 918.116352 916.661248zM878.281728 875.973632l-161.168384 0.433152c-11.270144-0.292864-20.845568 8.213504-21.890048 19.458048l0 13.38368c0.306176 10.672128 8.889344 19.241984 19.560448 19.561472l187.030528-0.828416c0.1792 0.037888 0.357376 0.075776 0.523264 0.089088l9.549824 0.229376c5.005312 0.152576 9.843712-1.782784 13.372416-5.336064 3.32288-3.629056 4.978688-8.493056 4.545536-13.395968l-1.032192-9.537536c0-0.191488 0.70144-0.330752 0.70144-0.509952l-0.534528-188.278784c-0.54784-9.984-9.092096-17.637376-19.076096-17.089536-0.165888 0.013312-0.319488 0.0256-0.484352 0.037888L896.009216 694.19008c-10.379264 0.0512-18.733056 8.507392-18.681856 18.885632 0 0.191488 0.013312 0.381952 0.013312 0.584704L878.281728 875.973632zM105.884672 107.409408c-10.187776 10.175488-10.187776 26.691584 0 36.87936l265.19552 262.750208c10.187776 10.187776 26.691584 10.187776 36.87936 0s10.175488-26.703872-0.012288-36.891648l-264.368128-262.73792C133.072896 97.222656 116.3776 97.222656 105.884672 107.409408L105.884672 107.409408zM146.533376 148.096l161.154048-0.44544c11.283456 0.292864 20.85888-8.213504 21.891072-19.458048l0-13.421568c-0.306176-10.671104-8.889344-19.241984-19.560448-19.560448l-187.858944 0.827392c-0.165888-0.0512-0.344064-0.0768-0.509952-0.089088l-9.550848-0.229376c-5.004288-0.152576-9.831424 1.782784-13.35808 5.336064-3.323904 3.629056-4.979712 8.49408-4.54656 13.40928l1.031168 9.537536c0 0.191488-0.712704 0.318464-0.700416 0.49664l0.534528 188.279808c0.534528 9.970688 9.066496 17.624064 19.050496 17.089536 0.165888-0.012288 0.330752-0.0256 0.508928-0.037888l14.212096 0c10.365952-0.0512 18.719744-8.506368 18.656256-18.87232 0-0.191488 0-0.395264-0.013312-0.598016L146.533376 148.096z"), n2.appendChild(i2), document.body.appendChild(n2), n2;
|
|
31536
31564
|
}
|
|
31537
31565
|
generateExitFullScreenButton(t2 = 20, e2 = 20) {
|
|
31538
31566
|
const n2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
31539
|
-
|
|
31567
|
+
$v(n2, { height: t2 + "px", width: e2 + "px" }), n2.setAttributeNS(null, "width", e2.toString()), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "viewBox", "0 0 1024 1024");
|
|
31540
31568
|
const i2 = document.createElementNS("http://www.w3.org/2000/svg", "path"), r2 = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
31541
31569
|
return i2.setAttributeNS(null, "d", "M716.8 998.4a25.6 25.6 0 0 1-25.6-25.6v-256a25.6 25.6 0 0 1 25.6-25.6h256a25.6 25.6 0 1 1 0 51.2h-230.4v230.4a25.6 25.6 0 0 1-25.6 25.6zM307.2 998.4a25.6 25.6 0 0 1-25.6-25.6v-230.4H51.2a25.6 25.6 0 1 1 0-51.2h256a25.6 25.6 0 0 1 25.6 25.6v256a25.6 25.6 0 0 1-25.6 25.6zM972.8 332.8h-256a25.6 25.6 0 0 1-25.6-25.6v-256a25.6 25.6 0 1 1 51.2 0v230.4h230.4a25.6 25.6 0 1 1 0 51.2zM307.2 332.8h-256a25.6 25.6 0 1 1 0-51.2h230.4V51.2a25.6 25.6 0 1 1 51.2 0v256a25.6 25.6 0 0 1-25.6 25.6z"), r2.setAttributeNS(null, "d", "M307.2 332.8a25.6 25.6 0 0 1-18.112-7.488L56.896 93.12a25.6 25.6 0 0 1 36.224-36.224l232.192 232.192A25.6 25.6 0 0 1 307.2 332.8zM716.8 332.8a25.6 25.6 0 0 1-18.112-43.712L930.88 56.896a25.6 25.6 0 0 1 36.224 36.224l-232.192 232.192a25.472 25.472 0 0 1-18.112 7.488zM948.992 974.592a25.6 25.6 0 0 1-18.112-7.488l-232.192-232.192a25.6 25.6 0 0 1 36.224-36.224l232.192 232.192a25.6 25.6 0 0 1-18.112 43.712zM75.008 974.592a25.6 25.6 0 0 1-18.112-43.712l232.192-232.192a25.6 25.6 0 0 1 36.224 36.224l-232.192 232.192a25.472 25.472 0 0 1-18.112 7.488z"), n2.appendChild(i2), n2.appendChild(r2), document.body.appendChild(n2), n2;
|
|
31542
31570
|
}
|
|
31543
31571
|
createButton() {
|
|
31544
31572
|
const t2 = { marginLeft: "15px", marginRight: "10px", fontSize: "0", height: "20px", display: "flex", justifyContent: "center", alignItems: "center" };
|
|
31545
|
-
|
|
31573
|
+
$v(this.playButton, Object.assign(Object.assign({}, t2), { display: "block" }));
|
|
31546
31574
|
const e2 = this.generatePlayButton();
|
|
31547
|
-
|
|
31575
|
+
$v(e2, { height: "20px" }), this.playButton.appendChild(e2), $v(this.pauseButton, Object.assign(Object.assign({}, t2), { display: "none" }));
|
|
31548
31576
|
const n2 = this.generatePauseButton();
|
|
31549
|
-
if (
|
|
31577
|
+
if ($v(n2, { height: "20px" }), this.pauseButton.appendChild(n2), !this.isVideo)
|
|
31550
31578
|
return;
|
|
31551
31579
|
const i2 = this.generateFullScreenButton(20, 20);
|
|
31552
|
-
this.fullScreenButton.appendChild(i2),
|
|
31580
|
+
this.fullScreenButton.appendChild(i2), $v(this.fullScreenButton, Object.assign(Object.assign({}, t2), { display: "block" }));
|
|
31553
31581
|
const r2 = this.generateExitFullScreenButton(20, 20);
|
|
31554
|
-
this.exitFullScreenButton.appendChild(r2),
|
|
31582
|
+
this.exitFullScreenButton.appendChild(r2), $v(this.exitFullScreenButton, Object.assign(Object.assign({}, t2), { display: "none" }));
|
|
31555
31583
|
}
|
|
31556
31584
|
createTimer() {
|
|
31557
31585
|
const t2 = document.createElement("div");
|
|
31558
|
-
|
|
31586
|
+
$v(t2, { width: "100px" }), this.currentTime.innerText = "00:00";
|
|
31559
31587
|
const e2 = document.createElement("span");
|
|
31560
31588
|
return e2.innerText = "/", t2.append(this.currentTime, e2, this.totalTime), t2;
|
|
31561
31589
|
}
|
|
31562
31590
|
createProgress() {
|
|
31563
31591
|
const t2 = { flex: "1", position: "relative" };
|
|
31564
|
-
this.isVideo || (t2.marginRight = "10px"),
|
|
31592
|
+
this.isVideo || (t2.marginRight = "10px"), $v(this.progress, t2);
|
|
31565
31593
|
const e2 = document.createElement("div");
|
|
31566
|
-
|
|
31594
|
+
$v(e2, { background: "#D9D9D9", position: "relative", height: "10px", display: "flex" }), this.progress.appendChild(e2), $v(this.currentProgress, { background: "#4F4F4F", top: "0px", left: "0", height: "10px", flex: "0" }), e2.appendChild(this.currentProgress);
|
|
31567
31595
|
}
|
|
31568
31596
|
changeBookmarkIndex(t2, e2) {
|
|
31569
31597
|
if (this.bookmarkList && this.bookmarkList.length !== 0) {
|
|
@@ -31589,7 +31617,7 @@ void main(void){
|
|
|
31589
31617
|
setControllerPosition() {
|
|
31590
31618
|
var t2;
|
|
31591
31619
|
const { target: e2 } = this, { stageWidth: n2, stageHeight: i2 } = this.ctx, r2 = e2.getGlobalPosition(), o2 = Number((t2 = this.container) === null || t2 === void 0 ? void 0 : t2.getAttribute("data-scale")), s2 = n2 * o2, a2 = 1 / o2 * (300 > s2 ? s2 / 300 : 1);
|
|
31592
|
-
r2.y = r2.y + this.height - 50, r2.x = Math.max(r2.x, 0), r2.x = Math.min(r2.x, n2 - 300 * a2), r2.y = Math.max(r2.y, 0), r2.y = Math.min(r2.y, i2 - 50),
|
|
31620
|
+
r2.y = r2.y + this.height - 50, r2.x = Math.max(r2.x, 0), r2.x = Math.min(r2.x, n2 - 300 * a2), r2.y = Math.max(r2.y, 0), r2.y = Math.min(r2.y, i2 - 50), $v(this.mediaController, { height: "50px", borderRadius: "25px", width: "300px", flexDirection: "row", alignItems: "center", position: "absolute", left: r2.x + "px", top: r2.y + "px", display: "none", background: "#fff", zIndex: "2", border: "1px solid #ccc", transform: `scale(${a2})`, transformOrigin: "0 100%" });
|
|
31593
31621
|
}
|
|
31594
31622
|
createMediaController() {
|
|
31595
31623
|
this.setControllerPosition(), this.createButton();
|
|
@@ -31619,10 +31647,10 @@ void main(void){
|
|
|
31619
31647
|
this.unbindEvent(), this.playCallBackList = [], (t2 = this.container) === null || t2 === void 0 || t2.removeChild(this.mediaController);
|
|
31620
31648
|
}
|
|
31621
31649
|
}
|
|
31622
|
-
var
|
|
31623
|
-
class
|
|
31650
|
+
var e_ = n(115);
|
|
31651
|
+
class n_ extends Ja.a {
|
|
31624
31652
|
constructor(t2, e2) {
|
|
31625
|
-
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.url = t2, this.runningAudio = e2,
|
|
31653
|
+
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.url = t2, this.runningAudio = e2, Gy.RtcAudioClazz ? (this.rctClient = new Gy.RtcAudioClazz(t2), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => this.emit("play"))) : (this.howl = new e_.Howl({ src: [t2] }), this.howl.load(), this.howl.on("load", () => {
|
|
31626
31654
|
this.isHowlLoadEmit = true, this.emit("load");
|
|
31627
31655
|
}), this.howl.on("pause", () => this.emit("pause")), this.howl.on("play", () => {
|
|
31628
31656
|
this.isHowlLoadEmit || this.emit("load"), this.isHowlEnd = false, this.emit("play");
|
|
@@ -31674,7 +31702,7 @@ void main(void){
|
|
|
31674
31702
|
this.rctClient ? this.rctClient.volume(t2) : this.howl && this.howl.volume(t2);
|
|
31675
31703
|
}
|
|
31676
31704
|
}
|
|
31677
|
-
var
|
|
31705
|
+
var i_ = function(t2, e2, n2, i2) {
|
|
31678
31706
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
31679
31707
|
function s2(t3) {
|
|
31680
31708
|
try {
|
|
@@ -31699,13 +31727,13 @@ void main(void){
|
|
|
31699
31727
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
31700
31728
|
});
|
|
31701
31729
|
};
|
|
31702
|
-
class
|
|
31730
|
+
class r_ extends Ja.a {
|
|
31703
31731
|
constructor(t2) {
|
|
31704
31732
|
var e2, n2, i2;
|
|
31705
31733
|
super(), this.type = "video", this.sprite = new Kd(), this.isPlaying = false, this.isGlobalPause = false, this.fullscreen = false, this.url = "", this.onVideoStalled = () => {
|
|
31706
31734
|
this.ctx.logger.warn(this.url + ", Failed to fetch data, but trying.", this.ctx.taskId);
|
|
31707
31735
|
}, this.updateVolume = (t3) => {
|
|
31708
|
-
|
|
31736
|
+
Gy.RtcAudioClazz ? this.rtcAudio.volume(t3) : this.videoResource.source && (this.videoResource.source.volume = t3);
|
|
31709
31737
|
}, this.syncFullscreenVideoState = (t3) => {
|
|
31710
31738
|
const { targetId: e3, state: n3, slideIndex: i3 } = t3;
|
|
31711
31739
|
i3 === this.ctx.slideIndex && e3 === this.id && (n3 ? this.requestFullscreen() : this.requestCancelFullscreen());
|
|
@@ -31713,9 +31741,9 @@ void main(void){
|
|
|
31713
31741
|
let r2 = t2.video.src;
|
|
31714
31742
|
this.ctx.loaderDelegate && (r2 = this.ctx.loaderDelegate.redirectMedia(r2), this.ctx.logger.info(`redirect media url from ${t2.video.src} to ${r2} by delegate.`, t2.ctx.taskId)), this.videoResource = new Uh.jb(r2, { autoLoad: true, autoPlay: false, updateFPS: 30, crossorigin: true }), this.videoResource.source.addEventListener("stalled", this.onVideoStalled), this.url = t2.video.src;
|
|
31715
31743
|
let o2 = t2.video.src.replace(/4$/, "3");
|
|
31716
|
-
this.ctx.loaderDelegate && (o2 = this.ctx.loaderDelegate.redirectMedia(o2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${o2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new
|
|
31744
|
+
this.ctx.loaderDelegate && (o2 = this.ctx.loaderDelegate.redirectMedia(o2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${o2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new n_(o2, t2.ctx.runningAudio);
|
|
31717
31745
|
const { video: s2, width: a2, height: l2, target: h2 } = t2;
|
|
31718
|
-
this.controller = new
|
|
31746
|
+
this.controller = new t_({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, width: a2, height: l2, target: h2, media: this, info: s2, canvasElement: t2.canvasElement }), this.controller.addPlayCallBack(() => {
|
|
31719
31747
|
this.sprite.width = a2, this.sprite.height = l2, this.ctx.clock.setTimeout(() => {
|
|
31720
31748
|
this.sprite.visible = true;
|
|
31721
31749
|
}, 50);
|
|
@@ -31736,7 +31764,7 @@ void main(void){
|
|
|
31736
31764
|
return (e2 = (t2 = this.videoResource.source) === null || t2 === void 0 ? void 0 : t2.currentTime) !== null && e2 !== void 0 ? e2 : 0;
|
|
31737
31765
|
}
|
|
31738
31766
|
set currentTime(t2) {
|
|
31739
|
-
|
|
31767
|
+
Gy.RtcAudioClazz && (this.rtcAudio.currentTime = t2), this.videoResource.source && (this.videoResource.source.currentTime = t2);
|
|
31740
31768
|
}
|
|
31741
31769
|
get paused() {
|
|
31742
31770
|
var t2, e2;
|
|
@@ -31761,16 +31789,16 @@ void main(void){
|
|
|
31761
31789
|
}
|
|
31762
31790
|
play() {
|
|
31763
31791
|
var t2;
|
|
31764
|
-
return
|
|
31792
|
+
return i_(this, void 0, void 0, function* () {
|
|
31765
31793
|
this.isPlaying = true, this.updateVolume(this.ctx.volumeAdjuster.volume), yield this.load(), yield this.ctx.clock.waitUntil(() => {
|
|
31766
31794
|
const t3 = this.videoResource.source;
|
|
31767
31795
|
return !!(t3 && t3.videoWidth > 0);
|
|
31768
31796
|
}, 3e3);
|
|
31769
31797
|
const e2 = this.videoResource.source;
|
|
31770
|
-
e2 && e2.videoWidth <= 0 || (
|
|
31798
|
+
e2 && e2.videoWidth <= 0 || (Gy.RtcAudioClazz ? (this.videoResource.source.volume = 0, this.videoResource.source.muted = true, this.rtcAudio.once("play", () => {
|
|
31771
31799
|
var t3;
|
|
31772
|
-
this.fullscreen && (this.requestFullscreen(), this.ctx.eventHub.emit(
|
|
31773
|
-
}), this.rtcAudio.play()) : (this.fullscreen && (this.requestFullscreen(), this.ctx.eventHub.emit(
|
|
31800
|
+
this.fullscreen && (this.requestFullscreen(), this.ctx.eventHub.emit(ky.fullscreenChange, { targetId: this.id, state: true })), (t3 = this.videoResource.source) === null || t3 === void 0 || t3.play();
|
|
31801
|
+
}), this.rtcAudio.play()) : (this.fullscreen && (this.requestFullscreen(), this.ctx.eventHub.emit(ky.fullscreenChange, { targetId: this.id, state: true })), yield (t2 = this.videoResource.source) === null || t2 === void 0 ? void 0 : t2.play()));
|
|
31774
31802
|
});
|
|
31775
31803
|
}
|
|
31776
31804
|
load() {
|
|
@@ -31778,7 +31806,7 @@ void main(void){
|
|
|
31778
31806
|
}
|
|
31779
31807
|
pause() {
|
|
31780
31808
|
var t2;
|
|
31781
|
-
this.isPlaying = false, this.ctx.logger.warn(this.url + ", pause video manual.", this.ctx.taskId),
|
|
31809
|
+
this.isPlaying = false, this.ctx.logger.warn(this.url + ", pause video manual.", this.ctx.taskId), Gy.RtcAudioClazz ? (this.ctx.logger.warn(this.url + ", pause rtc audio manual.", this.ctx.taskId), this.rtcAudio.once("pause", () => {
|
|
31782
31810
|
var t3;
|
|
31783
31811
|
(t3 = this.videoResource.source) === null || t3 === void 0 || t3.pause();
|
|
31784
31812
|
}), this.rtcAudio.pause()) : (t2 = this.videoResource.source) === null || t2 === void 0 || t2.pause();
|
|
@@ -31796,7 +31824,7 @@ void main(void){
|
|
|
31796
31824
|
this.controller.jumpToTime(t2);
|
|
31797
31825
|
}
|
|
31798
31826
|
stop() {
|
|
31799
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(
|
|
31827
|
+
this.seek(0), this.pause(), this.ctx.eventHub.emit(ky.mediaStop);
|
|
31800
31828
|
}
|
|
31801
31829
|
requestFullscreen() {
|
|
31802
31830
|
const t2 = new Uh.db(this.sprite.texture.baseTexture);
|
|
@@ -31810,7 +31838,7 @@ void main(void){
|
|
|
31810
31838
|
this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.ctx.globalEventHub.removeListener("syncFullscreenVideoState", this.syncFullscreenVideoState), this.sprite.interactive = false, this.sprite.destroy({ texture: true, baseTexture: true }), (t2 = this.videoResource) === null || t2 === void 0 || t2.destroy(), this.rtcAudio.destroy(), this.stop(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
|
|
31811
31839
|
}
|
|
31812
31840
|
}
|
|
31813
|
-
var
|
|
31841
|
+
var o_ = function(t2, e2, n2, i2) {
|
|
31814
31842
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
31815
31843
|
function s2(t3) {
|
|
31816
31844
|
try {
|
|
@@ -31835,15 +31863,15 @@ void main(void){
|
|
|
31835
31863
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
31836
31864
|
});
|
|
31837
31865
|
};
|
|
31838
|
-
class
|
|
31866
|
+
class s_ extends Ja.a {
|
|
31839
31867
|
constructor(t2) {
|
|
31840
31868
|
super(), this.type = "audio", this.isPlaying = false, this.isGlobalPause = false, this.updateVolume = (t3) => {
|
|
31841
31869
|
this.audioPlayer.volume(t3);
|
|
31842
31870
|
}, this.id = t2.id;
|
|
31843
31871
|
let e2 = t2.audio.src;
|
|
31844
|
-
/mp4$/.test(e2) && (e2 = e2.replace(/mp4$/, "mp3")), t2.ctx.loaderDelegate && (e2 = t2.ctx.loaderDelegate.redirectMedia(e2), t2.ctx.logger.info(`redirect media url from ${t2.audio.src} to ${e2} by delegate.`, t2.ctx.taskId)), this.audioPlayer = new
|
|
31872
|
+
/mp4$/.test(e2) && (e2 = e2.replace(/mp4$/, "mp3")), t2.ctx.loaderDelegate && (e2 = t2.ctx.loaderDelegate.redirectMedia(e2), t2.ctx.logger.info(`redirect media url from ${t2.audio.src} to ${e2} by delegate.`, t2.ctx.taskId)), this.audioPlayer = new n_(e2, t2.ctx.runningAudio), t2.audio.cut && (this.start = t2.audio.cut.start, this.end = t2.audio.cut.end), this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
|
|
31845
31873
|
const { width: n2, height: i2, target: r2 } = t2;
|
|
31846
|
-
this.controller = new
|
|
31874
|
+
this.controller = new t_({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, height: i2, width: n2, target: r2, media: this, info: t2.audio, canvasElement: t2.canvasElement }), this.audioPlayer.on("load", () => this.emit("durationchange")), this.audioPlayer.on("timeupdate", () => this.emit("timeupdate")), this.audioPlayer.on("pause", () => this.emit("pause")), this.audioPlayer.on("play", () => this.emit("play")), this.ctx.activeMedia.add(this), this.ctx.volumeAdjuster.on("update", this.updateVolume);
|
|
31847
31875
|
}
|
|
31848
31876
|
get currentTime() {
|
|
31849
31877
|
return this.audioPlayer.currentTime;
|
|
@@ -31876,7 +31904,7 @@ void main(void){
|
|
|
31876
31904
|
this.controller.hide();
|
|
31877
31905
|
}
|
|
31878
31906
|
play() {
|
|
31879
|
-
return
|
|
31907
|
+
return o_(this, void 0, void 0, function* () {
|
|
31880
31908
|
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent play event with paused state", this.ctx.taskId) : (this.updateVolume(this.ctx.volumeAdjuster.volume), this.isPlaying = true, this.audioPlayer.play());
|
|
31881
31909
|
});
|
|
31882
31910
|
}
|
|
@@ -31896,7 +31924,7 @@ void main(void){
|
|
|
31896
31924
|
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent seek event with paused state", this.ctx.taskId) : this.controller.jumpToTime(t2);
|
|
31897
31925
|
}
|
|
31898
31926
|
stop() {
|
|
31899
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(
|
|
31927
|
+
this.seek(0), this.pause(), this.ctx.eventHub.emit(ky.mediaStop);
|
|
31900
31928
|
}
|
|
31901
31929
|
requestFullscreen() {
|
|
31902
31930
|
}
|
|
@@ -31906,7 +31934,7 @@ void main(void){
|
|
|
31906
31934
|
this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.stop(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
|
|
31907
31935
|
}
|
|
31908
31936
|
}
|
|
31909
|
-
class
|
|
31937
|
+
class a_ extends Kv {
|
|
31910
31938
|
constructor(t2, e2, n2, i2) {
|
|
31911
31939
|
super(Object.assign(Object.assign({}, t2), { type: "Shape", useBgFill: false, textRotateWithShape: true, isPicture: true }), e2, n2, i2), this.isInteractiveOutside = false, this.cmd = new eg(this), this.media = t2 == null ? void 0 : t2.media, this.container.name = t2.id + "_container_[Picture]", this.renderContainer.name = t2.id + "_render_container_[Picture]", this.picFill = new av(this.ctx, t2.picFill, t2.width, t2.height, { useFilter: true, useSlideBackgroundFill: false });
|
|
31912
31940
|
}
|
|
@@ -31940,12 +31968,12 @@ void main(void){
|
|
|
31940
31968
|
}
|
|
31941
31969
|
});
|
|
31942
31970
|
}), this.effectContainer.addChild(s2), ((n2 = this.media) === null || n2 === void 0 ? void 0 : n2.type) === "video" && this.media.src) {
|
|
31943
|
-
if (this.mediaPlayer = new
|
|
31971
|
+
if (this.mediaPlayer = new r_({ id: this.json.id + "-video", shapeId: this.json.id, ctx: this.ctx, video: this.media, height: this.designHeight, width: this.designWidth, target: s2, container: this.effectContainer, canvasElement: this.ctx.view }), ((i2 = this.mediaPlayer) === null || i2 === void 0 ? void 0 : i2.sprite) && a2) {
|
|
31944
31972
|
const t3 = (r2 = this.backgroundGraphics) === null || r2 === void 0 ? void 0 : r2.getClonedDisplayObject();
|
|
31945
31973
|
t3 && (this.mediaPlayer.sprite.mask = t3, this.container.addChild(t3));
|
|
31946
31974
|
}
|
|
31947
31975
|
} else
|
|
31948
|
-
((o2 = this.media) === null || o2 === void 0 ? void 0 : o2.type) === "audio" && this.media.src && (this.mediaPlayer = new
|
|
31976
|
+
((o2 = this.media) === null || o2 === void 0 ? void 0 : o2.type) === "audio" && this.media.src && (this.mediaPlayer = new s_({ id: this.json.id + "-audio", shapeId: this.json.id, ctx: this.ctx, audio: this.media, height: this.designHeight, width: this.designWidth, target: s2, canvasElement: this.ctx.view }));
|
|
31949
31977
|
this.mediaPlayer && (this.isInteractiveOutside = !!this.container.interactive, this.container.interactive = true, this.container.on("mouseover", () => {
|
|
31950
31978
|
this.mediaPlayer.showController();
|
|
31951
31979
|
}), this.container.on("mouseout", () => {
|
|
@@ -31969,7 +31997,7 @@ void main(void){
|
|
|
31969
31997
|
this.mediaPlayer && (this.picFill.displayObject && !this.isInteractiveOutside && (this.container.interactive = false), this.mediaPlayer.destroy(), this.mediaPlayer = void 0), this.picFill.destroy();
|
|
31970
31998
|
}
|
|
31971
31999
|
}
|
|
31972
|
-
var
|
|
32000
|
+
var l_ = function(t2, e2, n2, i2) {
|
|
31973
32001
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
31974
32002
|
function s2(t3) {
|
|
31975
32003
|
try {
|
|
@@ -31994,7 +32022,7 @@ void main(void){
|
|
|
31994
32022
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
31995
32023
|
});
|
|
31996
32024
|
};
|
|
31997
|
-
class
|
|
32025
|
+
class h_ extends hg {
|
|
31998
32026
|
constructor(t2, e2, n2, i2, r2) {
|
|
31999
32027
|
super(t2, e2, n2), this.children = [], this.cacheSprite = new Kd(), this.cacheContainer = new wh.b(), this.json = t2, this.json.fillStyle && this.json.fillStyle.fillType === "groupFill" && i2 && (this.json.fillStyle = i2), this.container.name = t2.id + "_container_[Container]", this.cacheContainer.name = t2.id + "_cache_container_[Container]", this.ctx.timingTargets.addTarget(t2.id, this), this.updateTransform(this.json), this.fillObject = new av(this.ctx, t2.fillStyle, t2.width, t2.height, { useFilter: false, useSlideBackgroundFill: false }), this.createChildren(r2);
|
|
32000
32028
|
}
|
|
@@ -32002,10 +32030,10 @@ void main(void){
|
|
|
32002
32030
|
var e2, n2, i2, r2;
|
|
32003
32031
|
const o2 = { x: (n2 = (e2 = this.json.position) === null || e2 === void 0 ? void 0 : e2.x) !== null && n2 !== void 0 ? n2 : 0, y: (r2 = (i2 = this.json.position) === null || i2 === void 0 ? void 0 : i2.y) !== null && r2 !== void 0 ? r2 : 0 };
|
|
32004
32032
|
for (let e3 = 0, n3 = this.json.children.length; e3 < n3; e3++)
|
|
32005
|
-
t2.addSubMTask(() =>
|
|
32033
|
+
t2.addSubMTask(() => l_(this, void 0, void 0, function* () {
|
|
32006
32034
|
const n4 = this.json.children[e3];
|
|
32007
32035
|
let i3 = null;
|
|
32008
|
-
(n4 == null ? void 0 : n4.type) === "Shape" ? i3 = new
|
|
32036
|
+
(n4 == null ? void 0 : n4.type) === "Shape" ? i3 = new Kv(n4, this.ctx, o2, this.json.fillStyle) : (n4 == null ? void 0 : n4.type) === "Picture" ? i3 = new a_(n4, this.ctx, o2, this.json.fillStyle) : (n4 == null ? void 0 : n4.type) === "Container" && (i3 = new h_(n4, this.ctx, o2, this.json.fillStyle, t2)), i3 && this.children.push(i3);
|
|
32009
32037
|
}), "@ContainerImpl[child.init]");
|
|
32010
32038
|
}
|
|
32011
32039
|
get interactiveContainer() {
|
|
@@ -32016,7 +32044,7 @@ void main(void){
|
|
|
32016
32044
|
}
|
|
32017
32045
|
preRender(t2) {
|
|
32018
32046
|
for (const e2 of this.children)
|
|
32019
|
-
t2.addSubMTask(() =>
|
|
32047
|
+
t2.addSubMTask(() => l_(this, void 0, void 0, function* () {
|
|
32020
32048
|
e2.preRender(t2);
|
|
32021
32049
|
}), "@ContainerImpl[child.preRender]");
|
|
32022
32050
|
}
|
|
@@ -32031,11 +32059,11 @@ void main(void){
|
|
|
32031
32059
|
}
|
|
32032
32060
|
render(t2) {
|
|
32033
32061
|
for (const e2 of this.children)
|
|
32034
|
-
e2.render(t2), t2.addSubMTask(() =>
|
|
32062
|
+
e2.render(t2), t2.addSubMTask(() => l_(this, void 0, void 0, function* () {
|
|
32035
32063
|
var t3;
|
|
32036
32064
|
this.cacheContainer.addChild(e2.renderContainer), (e2.json.hlinkHover || e2.json.hlinkClick) && ((t3 = e2.hyperlink) === null || t3 === void 0 || t3.addProxy(this.container));
|
|
32037
32065
|
}), "@ContainerImpl[child.render]");
|
|
32038
|
-
t2.addSubMTask(() =>
|
|
32066
|
+
t2.addSubMTask(() => l_(this, void 0, void 0, function* () {
|
|
32039
32067
|
this.container.addChild(this.cacheContainer);
|
|
32040
32068
|
}), "@ContainerImpl[child.append]");
|
|
32041
32069
|
}
|
|
@@ -32055,7 +32083,7 @@ void main(void){
|
|
|
32055
32083
|
this.cacheSprite && this.cacheSprite.destroy({ texture: true }), this.children.forEach((t2) => t2.destroy()), this.container.destroy({ children: true, texture: true, baseTexture: true }), this.cacheContainer.destroy({ children: true, texture: true, baseTexture: true });
|
|
32056
32084
|
}
|
|
32057
32085
|
}
|
|
32058
|
-
class
|
|
32086
|
+
class u_ extends Ja.a {
|
|
32059
32087
|
constructor(t2, e2, n2, i2) {
|
|
32060
32088
|
super(), this.cond = {}, this.timeoutIds = [], this.condHandle = (t3, e3 = {}) => {
|
|
32061
32089
|
if (t3)
|
|
@@ -32102,7 +32130,7 @@ void main(void){
|
|
|
32102
32130
|
}), this.timeoutIds.forEach((t2) => this.ctx.clock.clearTimeout(t2));
|
|
32103
32131
|
}
|
|
32104
32132
|
}
|
|
32105
|
-
class
|
|
32133
|
+
class c_ extends Ja.a {
|
|
32106
32134
|
constructor(t2) {
|
|
32107
32135
|
super(), this.isTimeNodeEndSync = false, this.interactiveListeners = [], this.runtimeNodeEventHub = new Ja.a(), this._currentSeqIndex = 0, this._currentSeqState = "idle", this.isForward = true, this.autoPlay = false, this.handlePrev = (t3 = false) => {
|
|
32108
32136
|
var e3, n3, i3, r3, o3, s3;
|
|
@@ -32121,16 +32149,16 @@ void main(void){
|
|
|
32121
32149
|
}
|
|
32122
32150
|
};
|
|
32123
32151
|
const { json: e2, iterateType: n2, isIterate: i2, isSub: r2, parent: o2, ctx: s2, eventHub: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 } = t2;
|
|
32124
|
-
this.isMainSeq = e2.ctn.nodeType === "mainSeq", this.isInteractiveSeq = e2.ctn.nodeType === "interactiveSeq", this.id = e2.ctn.id, this.isIterate = i2, this.json = e2, this.ctx = s2, this.globalEventHub = a2, this.commonTimeNode = new
|
|
32152
|
+
this.isMainSeq = e2.ctn.nodeType === "mainSeq", this.isInteractiveSeq = e2.ctn.nodeType === "interactiveSeq", this.id = e2.ctn.id, this.isIterate = i2, this.json = e2, this.ctx = s2, this.globalEventHub = a2, this.commonTimeNode = new dy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: n2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 || this.isInteractiveSeq, fromSeqId: this.isInteractiveSeq ? this.json.ctn.id : "" }), this.bindShapeEvent(), this.nextConds = new u_("mainSeq", e2.nextCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.prevConds = new u_("mainSeq", e2.preCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.commonTimeNode.on("timeNodeRestart", () => {
|
|
32125
32153
|
this.currentSeqIndex = 0, this.currentSeqState = "idle";
|
|
32126
32154
|
}), this.commonTimeNode.on("childTimeNodeStart", (t3) => {
|
|
32127
32155
|
const e3 = this.commonTimeNode.children.findIndex((e4) => e4.commonTimeNode.uuid === t3.id);
|
|
32128
|
-
e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "running", this.isMainSeq && this.ctx.eventHub.emit(
|
|
32156
|
+
e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "running", this.isMainSeq && this.ctx.eventHub.emit(ky.mainSeqStepStart, e3);
|
|
32129
32157
|
}), this.commonTimeNode.on("childTimeNodeEnd", (t3) => {
|
|
32130
32158
|
const e3 = this.commonTimeNode.children.findIndex((e4) => e4.commonTimeNode.uuid === t3.id);
|
|
32131
32159
|
e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "end", this.autoPlay && this.ctx.clock.setTimeout(() => {
|
|
32132
32160
|
this.handleNext(false, true);
|
|
32133
|
-
}), this.isMainSeq && this.ctx.eventHub.emit(
|
|
32161
|
+
}), this.isMainSeq && this.ctx.eventHub.emit(ky.mainSeqStepEnd, e3);
|
|
32134
32162
|
}), this.commonTimeNode.on("timeNodeEndSync", () => {
|
|
32135
32163
|
this.isTimeNodeEndSync = true, this.commonTimeNode.resetForRepeat();
|
|
32136
32164
|
}), this.commonTimeNode.on("timeNodeDestroy", () => {
|
|
@@ -32147,13 +32175,13 @@ void main(void){
|
|
|
32147
32175
|
return this._currentSeqIndex;
|
|
32148
32176
|
}
|
|
32149
32177
|
set currentSeqIndex(t2) {
|
|
32150
|
-
this._currentSeqIndex = t2, this.isMainSeq ? this.ctx.eventHub.emit(
|
|
32178
|
+
this._currentSeqIndex = t2, this.isMainSeq ? this.ctx.eventHub.emit(ky.mainSeqStepChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(ky.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: t2, state: this._currentSeqState } });
|
|
32151
32179
|
}
|
|
32152
32180
|
get currentSeqState() {
|
|
32153
32181
|
return this._currentSeqState;
|
|
32154
32182
|
}
|
|
32155
32183
|
set currentSeqState(t2) {
|
|
32156
|
-
this._currentSeqState = t2, this.isMainSeq ? this.ctx.eventHub.emit(
|
|
32184
|
+
this._currentSeqState = t2, this.isMainSeq ? this.ctx.eventHub.emit(ky.mainSeqStateChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(ky.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: this._currentSeqIndex, state: t2 } });
|
|
32157
32185
|
}
|
|
32158
32186
|
get stepLength() {
|
|
32159
32187
|
return this.commonTimeNode.children.length;
|
|
@@ -32191,9 +32219,9 @@ void main(void){
|
|
|
32191
32219
|
if (t3) {
|
|
32192
32220
|
t3.interactiveContainer.interactive = true, t3.interactiveContainer.cursor = "pointer";
|
|
32193
32221
|
const n2 = () => {
|
|
32194
|
-
this.ctx.eventHub.emit(
|
|
32222
|
+
this.ctx.eventHub.emit(ky.userInput);
|
|
32195
32223
|
const t4 = `shape ${e2} onClick`, { mode: n3 } = this.ctx;
|
|
32196
|
-
n3 !== "interactive" && n3 !== "sync" || this.ctx.eventHub.emit(
|
|
32224
|
+
n3 !== "interactive" && n3 !== "sync" || this.ctx.eventHub.emit(ky.interactiveSeqAction, { action: t4, seqId: this.json.ctn.id }), n3 !== "sync" && n3 !== "local" || this.globalEventHub.emit(t4);
|
|
32197
32225
|
};
|
|
32198
32226
|
t3.interactiveContainer.on("pointerdown", n2), this.interactiveListeners.push([t3, n2]);
|
|
32199
32227
|
}
|
|
@@ -32217,7 +32245,7 @@ void main(void){
|
|
|
32217
32245
|
}
|
|
32218
32246
|
}
|
|
32219
32247
|
}
|
|
32220
|
-
function
|
|
32248
|
+
function d_(t2, e2, n2) {
|
|
32221
32249
|
const i2 = e2.split(".");
|
|
32222
32250
|
i2.reduce((r2, o2, s2) => {
|
|
32223
32251
|
if (r2)
|
|
@@ -32225,7 +32253,7 @@ void main(void){
|
|
|
32225
32253
|
console.warn(`${t2} not support ${e2}`);
|
|
32226
32254
|
}, t2);
|
|
32227
32255
|
}
|
|
32228
|
-
function
|
|
32256
|
+
function p_(t2, e2) {
|
|
32229
32257
|
if (!e2)
|
|
32230
32258
|
return null;
|
|
32231
32259
|
return e2.split(".").reduce((n2, i2) => {
|
|
@@ -32234,7 +32262,7 @@ void main(void){
|
|
|
32234
32262
|
console.warn(`${t2} not support ${e2}`);
|
|
32235
32263
|
}, t2);
|
|
32236
32264
|
}
|
|
32237
|
-
class
|
|
32265
|
+
class f_ {
|
|
32238
32266
|
constructor(t2) {
|
|
32239
32267
|
this.timingTarget = null, this.runtimeNodeEventHub = new Ja.a(), this.basicOnTimeNodeEnd = () => {
|
|
32240
32268
|
if (this.isConflict) {
|
|
@@ -32252,29 +32280,29 @@ void main(void){
|
|
|
32252
32280
|
}
|
|
32253
32281
|
};
|
|
32254
32282
|
const { isIterate: e2, isSub: n2, json: i2, ctx: r2, parent: o2, eventHub: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
|
|
32255
|
-
this.json = i2, this.id = i2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new
|
|
32283
|
+
this.json = i2, this.id = i2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new dy({ json: i2.cBhvr.ctn, isSub: n2, eventHubs: { global: s2, runtime: this.runtimeNodeEventHub }, ctx: r2, parent: o2, isIterate: e2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.timingTarget = this.ctx.timingTargets.getTarget(i2.cBhvr.target, e2, { type: a2, index: l2, id: h2 }), this.commonTimeNode.on("seekToStart", () => this.onSeekToStart()), this.commonTimeNode.on("seekToEnd", () => this.onSeekToEnd()), this.commonTimeNode.on("timelineStart", this.basicOnTimeLineStart), this.commonTimeNode.on("timeNodeEnd", this.basicOnTimeNodeEnd);
|
|
32256
32284
|
}
|
|
32257
32285
|
getTargetId(t2) {
|
|
32258
32286
|
let e2 = t2.id;
|
|
32259
32287
|
return t2.type === "shape" && t2.txEl && (e2 = `${e2}-txEl-${t2.txEl.range[0]}`), this.commonTimeNode.isIterate && (e2 = `${e2}-iterate-${this.commonTimeNode.iterateIndex}`), e2;
|
|
32260
32288
|
}
|
|
32261
32289
|
}
|
|
32262
|
-
class
|
|
32290
|
+
class m_ extends f_ {
|
|
32263
32291
|
constructor(t2) {
|
|
32264
32292
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.updateStartValue = () => {
|
|
32265
|
-
this.timingTarget && (this.startVal =
|
|
32293
|
+
this.timingTarget && (this.startVal = p_(this.timingTarget, this.json.cBhvr.attrList[0]));
|
|
32266
32294
|
}, this.onSeekToStart = () => {
|
|
32267
32295
|
const t3 = this.json.cBhvr.attrList[0];
|
|
32268
|
-
this.startVal !== null && this.timingTarget &&
|
|
32296
|
+
this.startVal !== null && this.timingTarget && d_(this.timingTarget, t3, this.startVal);
|
|
32269
32297
|
}, this.onSeekToEnd = () => {
|
|
32270
32298
|
const t3 = this.json.cBhvr.attrList[0], e2 = this.json.cBhvr.to || this.json.to;
|
|
32271
|
-
e2 && this.timingTarget &&
|
|
32299
|
+
e2 && this.timingTarget && d_(this.timingTarget, t3, e2);
|
|
32272
32300
|
}, this.commonTimeNode.on("timeNodeStart", this.updateStartValue), this.commonTimeNode.on("timeNodeCreate", this.updateStartValue), this.commonTimeNode.on("timeUpdate", ({ duration: t3, delta: e2 }) => {
|
|
32273
32301
|
if (e2 / t3 >= 1) {
|
|
32274
32302
|
const t4 = this.json.cBhvr.attrList[0];
|
|
32275
32303
|
this.json.cBhvr.attrList.length > 1 && console.warn("this.json.cBhvr.attrList.length > 0");
|
|
32276
32304
|
const e3 = this.json.cBhvr.to || this.json.to;
|
|
32277
|
-
e3 && this.timingTarget &&
|
|
32305
|
+
e3 && this.timingTarget && d_(this.timingTarget, t4, e3);
|
|
32278
32306
|
}
|
|
32279
32307
|
});
|
|
32280
32308
|
}
|
|
@@ -32282,7 +32310,7 @@ void main(void){
|
|
|
32282
32310
|
return this.json.cBhvr.attrList[0];
|
|
32283
32311
|
}
|
|
32284
32312
|
}
|
|
32285
|
-
var
|
|
32313
|
+
var g_ = function(t2, e2, n2, i2) {
|
|
32286
32314
|
var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(e2, n2) : i2;
|
|
32287
32315
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
32288
32316
|
s2 = Reflect.decorate(t2, e2, n2, i2);
|
|
@@ -32291,7 +32319,7 @@ void main(void){
|
|
|
32291
32319
|
(r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, n2, s2) : r2(e2, n2)) || s2);
|
|
32292
32320
|
return o2 > 3 && s2 && Object.defineProperty(e2, n2, s2), s2;
|
|
32293
32321
|
};
|
|
32294
|
-
class
|
|
32322
|
+
class v_ {
|
|
32295
32323
|
constructor(t2, e2) {
|
|
32296
32324
|
this.math = { pi: Math.PI, e: Math.E, abs: Math.abs, acos: Math.acos, asin: Math.asin, atan: Math.atan, ceil: Math.ceil, cos: Math.cos, cosh: Math.cosh, deg: (t3) => t3 / Math.PI * 180, exp: Math.exp, floor: Math.floor, ln: Math.log, max: Math.max, min: Math.min, rad: (t3) => t3 / 180 * Math.PI, rand: Math.random, sin: Math.sin, sinh: Math.sinh, sqrt: Math.sqrt, tan: Math.tan, tanh: Math.tanh }, this.timingTarget = e2, this.val = t2.val.value, this.time = t2.time, t2.fmla && (this.fmla = this.parseFmla(t2.fmla));
|
|
32297
32325
|
}
|
|
@@ -32303,7 +32331,7 @@ void main(void){
|
|
|
32303
32331
|
}), new Function("vars", "math", "$", "return " + e2);
|
|
32304
32332
|
}
|
|
32305
32333
|
}
|
|
32306
|
-
class
|
|
32334
|
+
class __ extends v_ {
|
|
32307
32335
|
constructor(t2, e2, n2) {
|
|
32308
32336
|
super(t2, e2), this.value = t2.val.value, n2 && (this.fmla = this.parseFmla(n2));
|
|
32309
32337
|
}
|
|
@@ -32315,8 +32343,8 @@ void main(void){
|
|
|
32315
32343
|
return t2.fmla ? t2.fmla(n2, this.math, r2) : r2;
|
|
32316
32344
|
}
|
|
32317
32345
|
}
|
|
32318
|
-
|
|
32319
|
-
class
|
|
32346
|
+
g_([Em()], __.prototype, "interpolationFrom", null);
|
|
32347
|
+
class y_ extends v_ {
|
|
32320
32348
|
constructor(t2, e2) {
|
|
32321
32349
|
var n2;
|
|
32322
32350
|
super(t2, e2), this.value = (n2 = t2.val) === null || n2 === void 0 ? void 0 : n2.value;
|
|
@@ -32329,8 +32357,8 @@ void main(void){
|
|
|
32329
32357
|
return this.value || "";
|
|
32330
32358
|
}
|
|
32331
32359
|
}
|
|
32332
|
-
|
|
32333
|
-
class
|
|
32360
|
+
g_([Em()], y_.prototype, "interpolationFrom", null);
|
|
32361
|
+
class x_ extends v_ {
|
|
32334
32362
|
constructor(t2, e2) {
|
|
32335
32363
|
super(t2, e2), this.fn = this.parseFmla(this.val);
|
|
32336
32364
|
}
|
|
@@ -32342,8 +32370,8 @@ void main(void){
|
|
|
32342
32370
|
return t2.fmla ? t2.fmla(n2, this.math, r2) : r2;
|
|
32343
32371
|
}
|
|
32344
32372
|
}
|
|
32345
|
-
|
|
32346
|
-
class
|
|
32373
|
+
g_([Em()], x_.prototype, "interpolationFrom", null);
|
|
32374
|
+
class b_ extends v_ {
|
|
32347
32375
|
constructor(t2, e2) {
|
|
32348
32376
|
super(t2, e2), this.value = t2.val.value;
|
|
32349
32377
|
}
|
|
@@ -32354,11 +32382,11 @@ void main(void){
|
|
|
32354
32382
|
return this.value;
|
|
32355
32383
|
}
|
|
32356
32384
|
}
|
|
32357
|
-
|
|
32358
|
-
class
|
|
32385
|
+
g_([Em()], b_.prototype, "interpolationFrom", null);
|
|
32386
|
+
class T_ extends f_ {
|
|
32359
32387
|
constructor(t2) {
|
|
32360
32388
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.vars = { ppt_x: 0, ppt_y: 0, ppt_w: 0, ppt_h: 0 }, this.keyFrames = [], this.isColorAnim = false, this.onTimeNodeStart = () => {
|
|
32361
|
-
this.timingTarget && (this.startVal =
|
|
32389
|
+
this.timingTarget && (this.startVal = p_(this.timingTarget, this.json.cBhvr.attrList[0]));
|
|
32362
32390
|
}, this.updateVars = () => {
|
|
32363
32391
|
var t3, e2, n2, i2;
|
|
32364
32392
|
((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.ppt_h) && (this.vars.ppt_h = this.timingTarget.ppt_h), ((e2 = this.timingTarget) === null || e2 === void 0 ? void 0 : e2.ppt_w) && (this.vars.ppt_w = this.timingTarget.ppt_w), ((n2 = this.timingTarget) === null || n2 === void 0 ? void 0 : n2.ppt_x) && (this.vars.ppt_x = this.timingTarget.ppt_x), ((i2 = this.timingTarget) === null || i2 === void 0 ? void 0 : i2.ppt_y) && (this.vars.ppt_y = this.timingTarget.ppt_y), this.isColorAnim;
|
|
@@ -32366,12 +32394,12 @@ void main(void){
|
|
|
32366
32394
|
const n2 = e2 / t3, i2 = this.keyFrames.findIndex((t4) => n2 <= t4[0]), { attrList: r2 } = this.json.cBhvr;
|
|
32367
32395
|
if (i2 < 0) {
|
|
32368
32396
|
const t4 = this.keyFrames[this.keyFrames.length - 1];
|
|
32369
|
-
return void (this.timingTarget && r2 && r2[0] &&
|
|
32397
|
+
return void (this.timingTarget && r2 && r2[0] && d_(this.timingTarget, r2[0], t4[1].resolveValue(this.vars)));
|
|
32370
32398
|
}
|
|
32371
32399
|
const o2 = i2 - 1, s2 = this.keyFrames[i2], a2 = this.keyFrames[o2] || s2, l2 = s2[0] - a2[0] == 0 ? 1 : (n2 - a2[0]) / (s2[0] - a2[0]), h2 = s2[1].interpolationFrom(a2[1], l2, this.vars);
|
|
32372
|
-
this.timingTarget && r2 && r2[0] &&
|
|
32400
|
+
this.timingTarget && r2 && r2[0] && d_(this.timingTarget, r2[0], h2);
|
|
32373
32401
|
}, this.onSeekToStart = () => {
|
|
32374
|
-
this.startVal !== null && this.timingTarget &&
|
|
32402
|
+
this.startVal !== null && this.timingTarget && d_(this.timingTarget, this.json.cBhvr.attrList[0], this.startVal);
|
|
32375
32403
|
}, this.onSeekToEnd = () => {
|
|
32376
32404
|
this.onTimeUpdate({ duration: 1, delta: 1, isReverse: false });
|
|
32377
32405
|
}, this.initKeyFrames(), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timelineStart", this.updateVars), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart);
|
|
@@ -32387,24 +32415,24 @@ void main(void){
|
|
|
32387
32415
|
if (this.json.from || this.startVal) {
|
|
32388
32416
|
const t4 = { time: 0, val: { type: "string", value: this.json.from || this.startVal.toString() }, fmla: "" };
|
|
32389
32417
|
if (e2 === "num" && this.timingTarget) {
|
|
32390
|
-
const e3 = new
|
|
32418
|
+
const e3 = new x_(t4, this.timingTarget);
|
|
32391
32419
|
this.keyFrames.push([t4.time, e3]);
|
|
32392
32420
|
}
|
|
32393
32421
|
}
|
|
32394
32422
|
const t3 = { time: 1, val: { type: "string", value: this.json.to }, fmla: "" };
|
|
32395
32423
|
if (e2 === "num" && this.timingTarget) {
|
|
32396
|
-
const e3 = new
|
|
32424
|
+
const e3 = new x_(t3, this.timingTarget);
|
|
32397
32425
|
this.keyFrames.push([t3.time, e3]);
|
|
32398
32426
|
}
|
|
32399
32427
|
} else if (this.json.by) {
|
|
32400
32428
|
const n2 = { time: 0, val: { type: "string", value: this.json.cBhvr.attrList[0] }, fmla: "" };
|
|
32401
32429
|
if (e2 === "num" && this.timingTarget) {
|
|
32402
|
-
const t3 = new
|
|
32430
|
+
const t3 = new x_(n2, this.timingTarget);
|
|
32403
32431
|
this.keyFrames.push([n2.time, t3]);
|
|
32404
32432
|
}
|
|
32405
32433
|
const i2 = { time: 1, val: { type: "string", value: (((t2 = n2.val) === null || t2 === void 0 ? void 0 : t2.value) || "") + "+" + this.json.by }, fmla: "" };
|
|
32406
32434
|
if (e2 === "num" && this.timingTarget) {
|
|
32407
|
-
const t3 = new
|
|
32435
|
+
const t3 = new x_(i2, this.timingTarget);
|
|
32408
32436
|
this.keyFrames.push([i2.time, t3]);
|
|
32409
32437
|
}
|
|
32410
32438
|
}
|
|
@@ -32413,12 +32441,12 @@ void main(void){
|
|
|
32413
32441
|
for (const t3 of this.json.tavLst)
|
|
32414
32442
|
if (t3.val && this.timingTarget) {
|
|
32415
32443
|
let n2 = null;
|
|
32416
|
-
t3.val.type === "string" ? e2 === "num" ? n2 = new
|
|
32444
|
+
t3.val.type === "string" ? e2 === "num" ? n2 = new x_(t3, this.timingTarget) : e2 === "str" && (n2 = new y_(t3, this.timingTarget)) : t3.val.type === "number" ? n2 = new __(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, n2 = new b_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), n2 && this.keyFrames.push([t3.time, n2]);
|
|
32417
32445
|
}
|
|
32418
32446
|
}
|
|
32419
32447
|
}
|
|
32420
32448
|
}
|
|
32421
|
-
class
|
|
32449
|
+
class E_ extends Uh.u {
|
|
32422
32450
|
constructor(t2, e2, n2) {
|
|
32423
32451
|
super(t2, e2, n2);
|
|
32424
32452
|
}
|
|
@@ -32429,89 +32457,89 @@ void main(void){
|
|
|
32429
32457
|
this.uniforms.transition = t2;
|
|
32430
32458
|
}
|
|
32431
32459
|
}
|
|
32432
|
-
var
|
|
32433
|
-
var
|
|
32434
|
-
var
|
|
32435
|
-
var
|
|
32436
|
-
var
|
|
32437
|
-
const B_ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAr5QTFRFAAAATwAAOQAAZgAAKwAAPAAAPQAA7AAA/wAA/QAAugAA5QAAsQAAwQAAsAAAfwAAawAASQAAZAAAOAAAJwAALAAALQAAqQAAiwAAmgAA5AAA7QAAtQAAhQAALwAAfAAAXwAAYQAAigAAuQAAfgAAswAAcgAArQAAqgAAZwAAaQAAMgAAGAAAiAAAjwAA1gAA6QAA+wAA7wAA2AAAbQAA2gAA3QAAuwAA3wAA2QAAxQAA0QAAzwAA0gAAXQAAYAAADAAADwAAGQAALgAAjgAAc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GO2AnyzeN0MaKP7umX9bZAfc5LA84bxj3frYCxezbP9KG7QeJzevIhiAU4p/j+y2OyMV2mxNgAAAABJRU5ErkJggg==";
|
|
32438
|
-
var
|
|
32439
|
-
var
|
|
32440
|
-
var
|
|
32441
|
-
var
|
|
32442
|
-
var
|
|
32443
|
-
var
|
|
32444
|
-
var
|
|
32445
|
-
var
|
|
32446
|
-
var
|
|
32447
|
-
const
|
|
32460
|
+
var S_ = n(116), w_ = n.n(S_), A_ = n(117), M_ = n.n(A_);
|
|
32461
|
+
var R_ = n(118), C_ = n.n(R_);
|
|
32462
|
+
var P_ = n(119), I_ = n.n(P_), O_ = n(9), N_ = n.n(O_);
|
|
32463
|
+
var L_ = n(120), D_ = n.n(L_);
|
|
32464
|
+
var F_ = n(121), B_ = n.n(F_);
|
|
32465
|
+
const U_ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAr5QTFRFAAAATwAAOQAAZgAAKwAAPAAAPQAA7AAA/wAA/QAAugAA5QAAsQAAwQAAsAAAfwAAawAASQAAZAAAOAAAJwAALAAALQAAqQAAiwAAmgAA5AAA7QAAtQAAhQAALwAAfAAAXwAAYQAAigAAuQAAfgAAswAAcgAArQAAqgAAZwAAaQAAMgAAGAAAiAAAjwAA1gAA6QAA+wAA7wAA2AAAbQAA2gAA3QAAuwAA3wAA2QAAxQAA0QAAzwAA0gAAXQAAYAAADAAADwAAGQAALgAAjgAAcAAAzQAAwgAA+gAA3AAAGwAAoAAAowAAcQAAVwAA1QAAIQAAWQAA5wAAsgAAuAAASwAAbwAARwAAMAAAnAAAUQAAaAAA9wAA4gAAPwAAbAAAOwAAlwAA0wAAjQAAvAAAwwAAkwAAQQAAvgAAnwAAvQAA0AAA2wAAwAAAWwAATQAACwAABwAAQgAAtgAAgwAAvwAAgQAAlgAAEAAAxgAAtwAAmAAARgAAjAAAdwAAqwAAr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IE9IpGT8v23sBPibAHG34mLWiivxnjk8p2S5ofshihnLQd4CU5ABpVcMX/5Hg39Jm55k+hgxugBCGIR5KmY+qz6US5/wKYimBbjTOSBlyD9OiYpWxtoLH6PcoaUdK0dW4vKR121dfMwumvgSBf8g0fsVN0w8jbplh7Df1FVC9wZuTbZStSswGJu6IngHRvBgOFag8F3hwPVNuUYjxNngNURuMvnnOvway+3l+1sK7aILbzdSzAxUCtG9/CaaHsBFIVzMWEH7upNL6Hr6P+oI4i+VqT6NyQrYUMkRXYd2P1ZjEMDaJ1rrurxTBgTfMw9cZe8SHIAz0JA7jpgDmr+InVbg0HrkFNZVhQ2uBKn75tLEZwfMp2azBhkglsAXDPx2BccwTDGmnsjRDh2jHh9ynTQY4vLqcuv/NWRlP8sFHWyxSmm38ikF1UoTywoZL0oFE4I4ujqIcvCuo+0ABPohIMdyq8EqgTcogXcYNCGdgvytDCA/fwt2eG78+OAANOgmKkOI8WdjE3FaFdqW6rx/oOBunJoqMLOwnPtv67Cw7PY8c4jFvek2G/hk1Thivu5Pf2iV8YDA8DyziBPz6MKlF9XQlRt7ZRV09nZrygwo00ME7IpFuOiEsUrd14UcCvNC/DPkbFmqB1uQIg477mFiq2niVADUYnvdjiQPNpFfMTo4yg4X+tDW3rmH2WE9E2rY0ES40wM6QRwaQL5/fepJULkj3Zc6L1ItuWmO6zXbvou399GBCPcQwB2+rRpubsw03qWL2iRyHH9Afl/YHuFYa8v7zEXDEigXJo9RAtTM4BTzElQhSgePv55AmHTo4W9v4SmkPDlLIhOpcXBK4GO2AnyzeN0MaKP7umX9bZAfc5LA84bxj3frYCxezbP9KG7QeJzevIhiAU4p/j+y2OyMV2mxNgAAAABJRU5ErkJggg==";
|
|
32466
|
+
var k_ = n(122), G_ = n.n(k_);
|
|
32467
|
+
var H_ = n(123), j_ = n.n(H_);
|
|
32468
|
+
var z_ = n(124), V_ = n.n(z_);
|
|
32469
|
+
var X_ = n(125), W_ = n.n(X_);
|
|
32470
|
+
var Y_ = n(126), q_ = n.n(Y_);
|
|
32471
|
+
var Z_ = n(127), J_ = n.n(Z_);
|
|
32472
|
+
var K_ = n(128), Q_ = n.n(K_);
|
|
32473
|
+
var $_ = n(129), ty = n.n($_);
|
|
32474
|
+
var ey = n(130), ny = n.n(ey);
|
|
32475
|
+
const iy = { wipe: class extends E_ {
|
|
32448
32476
|
constructor(t2) {
|
|
32449
|
-
super(
|
|
32477
|
+
super(M_.a, w_.a, { percent: 0, direction: 1, transition: 0 });
|
|
32450
32478
|
let e2 = 1;
|
|
32451
32479
|
t2 === "up" ? e2 = 1 : t2 === "down" ? e2 = 2 : t2 === "left" ? e2 = 3 : t2 === "right" && (e2 = 4), this.uniforms.direction = e2;
|
|
32452
32480
|
}
|
|
32453
|
-
}, fade: class extends
|
|
32481
|
+
}, fade: class extends E_ {
|
|
32454
32482
|
constructor(t2) {
|
|
32455
|
-
super(void 0,
|
|
32483
|
+
super(void 0, C_.a, { percent: 0, transition: 1 });
|
|
32456
32484
|
let e2 = 1;
|
|
32457
32485
|
t2 === "out" ? e2 = -1 : t2 === "in" && (e2 = 1), this.uniforms.transition = Math.pow(e2, e2);
|
|
32458
32486
|
}
|
|
32459
|
-
}, blinds: class extends
|
|
32487
|
+
}, blinds: class extends E_ {
|
|
32460
32488
|
constructor(t2) {
|
|
32461
|
-
super(
|
|
32489
|
+
super(N_.a, I_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0;
|
|
32462
32490
|
}
|
|
32463
|
-
}, checkerboard: class extends
|
|
32491
|
+
}, checkerboard: class extends E_ {
|
|
32464
32492
|
constructor(t2) {
|
|
32465
|
-
super(
|
|
32493
|
+
super(N_.a, D_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "down" ? 1 : 0;
|
|
32466
32494
|
}
|
|
32467
|
-
}, dissolve: class extends
|
|
32495
|
+
}, dissolve: class extends E_ {
|
|
32468
32496
|
constructor(t2) {
|
|
32469
|
-
super(
|
|
32497
|
+
super(N_.a, B_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.setTextTure();
|
|
32470
32498
|
}
|
|
32471
32499
|
setTextTure() {
|
|
32472
|
-
this.uniforms.dissolveSampler = Uh.db.from(
|
|
32500
|
+
this.uniforms.dissolveSampler = Uh.db.from(U_);
|
|
32473
32501
|
}
|
|
32474
|
-
}, randombar: class extends
|
|
32502
|
+
}, randombar: class extends E_ {
|
|
32475
32503
|
constructor(t2) {
|
|
32476
|
-
super(
|
|
32504
|
+
super(N_.a, G_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0, this.setTextTure();
|
|
32477
32505
|
}
|
|
32478
32506
|
setTextTure() {
|
|
32479
|
-
this.uniforms.dissolveSampler = Uh.db.from(
|
|
32507
|
+
this.uniforms.dissolveSampler = Uh.db.from(U_);
|
|
32480
32508
|
}
|
|
32481
|
-
}, circle: class extends
|
|
32509
|
+
}, circle: class extends E_ {
|
|
32482
32510
|
constructor(t2) {
|
|
32483
|
-
super(
|
|
32511
|
+
super(N_.a, j_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32484
32512
|
}
|
|
32485
|
-
}, box: class extends
|
|
32513
|
+
}, box: class extends E_ {
|
|
32486
32514
|
constructor(t2) {
|
|
32487
|
-
super(
|
|
32515
|
+
super(N_.a, V_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32488
32516
|
}
|
|
32489
|
-
}, diamond: class extends
|
|
32517
|
+
}, diamond: class extends E_ {
|
|
32490
32518
|
constructor(t2) {
|
|
32491
|
-
super(
|
|
32519
|
+
super(N_.a, W_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32492
32520
|
}
|
|
32493
|
-
}, plus: class extends
|
|
32521
|
+
}, plus: class extends E_ {
|
|
32494
32522
|
constructor(t2) {
|
|
32495
|
-
super(
|
|
32523
|
+
super(N_.a, q_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32496
32524
|
}
|
|
32497
|
-
}, barn: class extends
|
|
32525
|
+
}, barn: class extends E_ {
|
|
32498
32526
|
constructor(t2) {
|
|
32499
|
-
super(
|
|
32527
|
+
super(N_.a, J_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "inHorizontal" ? 1 : t2 === "outHorizontal" ? 2 : t2 === "outVertical" ? 3 : 0;
|
|
32500
32528
|
}
|
|
32501
|
-
}, strips: class extends
|
|
32529
|
+
}, strips: class extends E_ {
|
|
32502
32530
|
constructor(t2) {
|
|
32503
|
-
super(
|
|
32531
|
+
super(N_.a, Q_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "upLeft" ? 1 : t2 === "downRight" ? 2 : t2 === "upRight" ? 3 : 0;
|
|
32504
32532
|
}
|
|
32505
|
-
}, wedge: class extends
|
|
32533
|
+
}, wedge: class extends E_ {
|
|
32506
32534
|
constructor(t2) {
|
|
32507
|
-
super(
|
|
32535
|
+
super(N_.a, ty.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) });
|
|
32508
32536
|
}
|
|
32509
|
-
}, wheel: class extends
|
|
32537
|
+
}, wheel: class extends E_ {
|
|
32510
32538
|
constructor(t2) {
|
|
32511
|
-
super(
|
|
32539
|
+
super(N_.a, ny.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = Number(t2) || 1;
|
|
32512
32540
|
}
|
|
32513
32541
|
} };
|
|
32514
|
-
class
|
|
32542
|
+
class ry extends f_ {
|
|
32515
32543
|
constructor(t2) {
|
|
32516
32544
|
var e2;
|
|
32517
32545
|
super(t2), this.filterType = "", this.isConflict = false, this.activeWhenConflict = "prev", this.onTimeUpdate = ({ duration: t3, delta: e3 }) => {
|
|
@@ -32542,14 +32570,14 @@ void main(void){
|
|
|
32542
32570
|
const i2 = (e2 = t2.json.filter) === null || e2 === void 0 ? void 0 : e2.match(/^([a-zA-Z]+)(\((.+)\))?/);
|
|
32543
32571
|
if (i2) {
|
|
32544
32572
|
const t3 = i2[1], e3 = i2[3];
|
|
32545
|
-
|
|
32573
|
+
iy[t3] && (this.filter = new iy[t3](e3), this.filterType = `${t3}-${e3}`, this.filter && (this.filter.transition = n2));
|
|
32546
32574
|
}
|
|
32547
32575
|
}
|
|
32548
32576
|
get modifyAttrKey() {
|
|
32549
32577
|
return this.filterType;
|
|
32550
32578
|
}
|
|
32551
32579
|
}
|
|
32552
|
-
class
|
|
32580
|
+
class oy extends f_ {
|
|
32553
32581
|
constructor(t2) {
|
|
32554
32582
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startPos = null, this.onTimeNodeStart = () => {
|
|
32555
32583
|
var t3, e2;
|
|
@@ -32602,7 +32630,7 @@ void main(void){
|
|
|
32602
32630
|
this.path = e2;
|
|
32603
32631
|
}
|
|
32604
32632
|
}
|
|
32605
|
-
class
|
|
32633
|
+
class sy extends f_ {
|
|
32606
32634
|
constructor(t2) {
|
|
32607
32635
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.onTimelineStart = (t3) => {
|
|
32608
32636
|
t3.isReverse || this.updateCurrentValue();
|
|
@@ -32632,19 +32660,19 @@ void main(void){
|
|
|
32632
32660
|
this.timingTarget && (this.current = { x: this.timingTarget.scale.x, y: this.timingTarget.scale.y });
|
|
32633
32661
|
}
|
|
32634
32662
|
}
|
|
32635
|
-
class
|
|
32663
|
+
class ay extends f_ {
|
|
32636
32664
|
constructor(t2) {
|
|
32637
32665
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.isTimelineStart = false, this.startColorString = null, this.currentColorString = "#FFFFFFFF", this.onTimelineStart = (t3) => {
|
|
32638
32666
|
if (this.isTimelineStart)
|
|
32639
32667
|
return;
|
|
32640
32668
|
this.isTimelineStart = true, t3.isReverse || this.updateCurrentValue(), this.from.isInit() || this.from.fromHexString(this.currentColorString), this.to.isInit() || this.from.by(this.by, this.to);
|
|
32641
32669
|
const [e2] = this.json.cBhvr.attrList[0].split(".");
|
|
32642
|
-
|
|
32670
|
+
d_(this.timingTarget, e2 + ".on", "true");
|
|
32643
32671
|
}, this.onTimeNodeEnd = () => {
|
|
32644
32672
|
let t3 = this.json.cBhvr.attrList[0];
|
|
32645
32673
|
if (t3 === "ppt_c" && (t3 = "ppt_c.color"), this.json.cBhvr.ctn.fill === "remove") {
|
|
32646
32674
|
const [e2] = t3.split(".");
|
|
32647
|
-
|
|
32675
|
+
d_(this.timingTarget, e2 + ".on", "false");
|
|
32648
32676
|
}
|
|
32649
32677
|
this.isTimelineStart = false;
|
|
32650
32678
|
}, this.onSeekToStart = () => {
|
|
@@ -32652,20 +32680,20 @@ void main(void){
|
|
|
32652
32680
|
let e2 = this.json.cBhvr.attrList[0];
|
|
32653
32681
|
if (e2 === "ppt_c" && (e2 = "ppt_c.color"), this.timingTarget && (this.onTimeUpdate({ duration: 1, delta: 0 }), ((t3 = this.timingTarget.fill) === null || t3 === void 0 ? void 0 : t3.designColor.toUpperCase()) === this.from.toHexString().toUpperCase() || e2 === "ppt_c.color")) {
|
|
32654
32682
|
const [t4] = e2.split(".");
|
|
32655
|
-
|
|
32683
|
+
d_(this.timingTarget, t4 + ".on", "false");
|
|
32656
32684
|
}
|
|
32657
32685
|
}, this.onTimeNodeStart = () => {
|
|
32658
32686
|
if (this.timingTarget) {
|
|
32659
32687
|
let t3 = this.json.cBhvr.attrList[0];
|
|
32660
32688
|
t3 === "ppt_c" && (t3 = "ppt_c.color");
|
|
32661
|
-
const e2 =
|
|
32689
|
+
const e2 = p_(this.timingTarget, t3);
|
|
32662
32690
|
e2 && (this.startColorString = e2);
|
|
32663
32691
|
}
|
|
32664
32692
|
}, this.onTimeUpdate = ({ delta: t3, duration: e2 }) => {
|
|
32665
32693
|
const n2 = t3 / e2;
|
|
32666
32694
|
if (this.to.interpolationFrom(this.from, n2, this.target), this.timingTarget) {
|
|
32667
32695
|
let t4 = this.json.cBhvr.attrList[0];
|
|
32668
|
-
t4 === "ppt_c" && (t4 = "ppt_c.color"),
|
|
32696
|
+
t4 === "ppt_c" && (t4 = "ppt_c.color"), d_(this.timingTarget, t4, this.target.toHexString());
|
|
32669
32697
|
}
|
|
32670
32698
|
}, this.onSeekToEnd = () => {
|
|
32671
32699
|
this.isTimelineStart || this.onTimelineStart({ isReverse: false, activeCount: 0, id: "" }), this.onTimeUpdate({ duration: 1, delta: 1 });
|
|
@@ -32678,12 +32706,12 @@ void main(void){
|
|
|
32678
32706
|
if (this.timingTarget) {
|
|
32679
32707
|
let t2 = this.json.cBhvr.attrList[0];
|
|
32680
32708
|
t2 === "ppt_c" && (t2 = "ppt_c.color");
|
|
32681
|
-
const e2 =
|
|
32709
|
+
const e2 = p_(this.timingTarget, t2);
|
|
32682
32710
|
e2 && (this.currentColorString = e2);
|
|
32683
32711
|
}
|
|
32684
32712
|
}
|
|
32685
32713
|
}
|
|
32686
|
-
class
|
|
32714
|
+
class ly extends f_ {
|
|
32687
32715
|
constructor(t2) {
|
|
32688
32716
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.lastVal = null, this.onTimelineStart = (t3) => {
|
|
32689
32717
|
this.lastVal = null, t3.isReverse || this.updateCurrentValue();
|
|
@@ -32716,7 +32744,7 @@ void main(void){
|
|
|
32716
32744
|
this.currentVal = (t2 = this.timingTarget) === null || t2 === void 0 ? void 0 : t2.r;
|
|
32717
32745
|
}
|
|
32718
32746
|
}
|
|
32719
|
-
class
|
|
32747
|
+
class hy extends f_ {
|
|
32720
32748
|
constructor(t2) {
|
|
32721
32749
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.isApplied = false, this.onTimeUpdate = () => {
|
|
32722
32750
|
var t3, e2;
|
|
@@ -32737,7 +32765,7 @@ void main(void){
|
|
|
32737
32765
|
return ((e2 = (t2 = this.json) === null || t2 === void 0 ? void 0 : t2.cmd) !== null && e2 !== void 0 ? e2 : "") + ((i2 = (n2 = this.json) === null || n2 === void 0 ? void 0 : n2.cmdType) !== null && i2 !== void 0 ? i2 : "");
|
|
32738
32766
|
}
|
|
32739
32767
|
}
|
|
32740
|
-
class
|
|
32768
|
+
class uy {
|
|
32741
32769
|
constructor(t2) {
|
|
32742
32770
|
this.runtimeNodeEventHub = new Ja.a(), this.onVolumeUpdate = (t3) => {
|
|
32743
32771
|
this.audio.volume(t3);
|
|
@@ -32747,14 +32775,14 @@ void main(void){
|
|
|
32747
32775
|
this.stopAudio(), this.audio.destroy(), this.ctx.activeMedia.delete(this.audio), this.ctx.volumeAdjuster.off("update", this.onVolumeUpdate);
|
|
32748
32776
|
};
|
|
32749
32777
|
const { json: e2, isIterate: n2, isSub: i2, eventHub: r2, ctx: o2, parent: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
|
|
32750
|
-
this.json = e2, this.id = e2.cMediaNode.ctn.id, this.commonTimeNode = new
|
|
32778
|
+
this.json = e2, this.id = e2.cMediaNode.ctn.id, this.commonTimeNode = new dy({ json: e2.cMediaNode.ctn, isSub: i2, eventHubs: { global: r2, runtime: this.runtimeNodeEventHub }, ctx: o2, parent: s2, isIterate: n2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 });
|
|
32751
32779
|
let d2 = e2.cMediaNode.tgtEl;
|
|
32752
|
-
o2.loaderDelegate && (d2 = o2.loaderDelegate.redirectMedia(d2), o2.logger.info(`redirect media url from ${e2.cMediaNode.tgtEl} to ${d2} by delegate.`, o2.taskId)), this.audio = new
|
|
32780
|
+
o2.loaderDelegate && (d2 = o2.loaderDelegate.redirectMedia(d2), o2.logger.info(`redirect media url from ${e2.cMediaNode.tgtEl} to ${d2} by delegate.`, o2.taskId)), this.audio = new n_(d2, o2.runningAudio), o2.activeMedia.add(this.audio), this.commonTimeNode.on("timelineStart", () => {
|
|
32753
32781
|
this.audio.volume(o2.volumeAdjuster.volume), this.audio.play();
|
|
32754
32782
|
}), this.commonTimeNode.on("seekToStart", this.stopAudio), this.commonTimeNode.on("seekToEnd", this.stopAudio), this.commonTimeNode.on("timeNodeDestroy", this.destroy), this.ctx = o2, this.ctx.volumeAdjuster.on("update", this.onVolumeUpdate);
|
|
32755
32783
|
}
|
|
32756
32784
|
}
|
|
32757
|
-
var
|
|
32785
|
+
var cy = function(t2, e2, n2, i2) {
|
|
32758
32786
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
32759
32787
|
function s2(t3) {
|
|
32760
32788
|
try {
|
|
@@ -32779,7 +32807,7 @@ void main(void){
|
|
|
32779
32807
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
32780
32808
|
});
|
|
32781
32809
|
};
|
|
32782
|
-
class
|
|
32810
|
+
class dy extends Ja.a {
|
|
32783
32811
|
constructor(t2) {
|
|
32784
32812
|
var e2, n2;
|
|
32785
32813
|
super(), this.uuid = Mm(), this.isSub = false, this.isShadow = false, this.startCount = 0, this.applyCount = 0, this.isReverse = false, this.isConflictDispose = false, this.isIterateEnd = false, this.parentTimeNode = null, this.isActive = false, this.isDestroy = false, this.shouldSeekOnStart = false, this.repeatTimeoutId = "", this.iterateShadows = [], this.isEndEventsEmitted = false, this.tmFilter = [], this.timeDelta = 0, this.isIterate = false, this.iterateType = "el", this.iterateIndex = 0, this.children = [], this.subList = [], this.duration = 0, this.isNegativeSpeed = false, this.handleEndCond = () => {
|
|
@@ -32800,7 +32828,7 @@ void main(void){
|
|
|
32800
32828
|
const { isSub: i2, isIterate: r2, ctx: o2, eventHubs: s2, parent: a2, json: l2, iterateType: h2, iterateId: u2, iterateIndex: c2, isInInteractiveSeq: d2, fromSeqId: p2 } = t2;
|
|
32801
32829
|
this.isSub = i2, this.fromSeqId = p2, this.isInInteractiveSeq = d2, this.isIterate = r2, this.parentTimeNode = a2, this.json = l2, this.ctx = o2, this.iterateIndex = c2, this.eventHubs = s2, this.iterateType = h2, this.iterateId = u2, this.tmFilter = (n2 = (e2 = l2.tmFilter) === null || e2 === void 0 ? void 0 : e2.split(";").map((t3) => t3.split(",").map((t4) => parseFloat(t4.trim())))) !== null && n2 !== void 0 ? n2 : [];
|
|
32802
32830
|
const f2 = Number(this.json.dur), m2 = this.json.spd || 1;
|
|
32803
|
-
if (this.isNegativeSpeed = m2 < 0, Number.isNaN(f2) || (this.duration = f2 / Math.abs(m2)), this.uuid += "--" + this.json.id, this.setPreStyle(), l2.childTnLst && this.createChildren(l2.childTnLst), this.startConds = new
|
|
32831
|
+
if (this.isNegativeSpeed = m2 < 0, Number.isNaN(f2) || (this.duration = f2 / Math.abs(m2)), this.uuid += "--" + this.json.id, this.setPreStyle(), l2.childTnLst && this.createChildren(l2.childTnLst), this.startConds = new u_(this.json.id || "", l2.stCondLst, s2, this.ctx), this.endConds = new u_(this.json.id || "", l2.endCondLst, s2, this.ctx), l2.endSync && (this.endSync = new u_(this.json.id || "", [l2.endSync], s2, this.ctx), this.endSync.on("active", () => {
|
|
32804
32832
|
var t3;
|
|
32805
32833
|
this.json.nodeType === "interactiveSeq" && (this.isActive = false, this.shouldSeekOnStart = true, this.emit("timeNodeEndSync"), (t3 = this.endSync) === null || t3 === void 0 || t3.reset());
|
|
32806
32834
|
})), this.startConds.on("active", (t3) => {
|
|
@@ -32822,7 +32850,7 @@ void main(void){
|
|
|
32822
32850
|
n3 === t2 && (e2 = false, this.ctx.eventHub.removeListener("IterateTimeNodeEnd", i2));
|
|
32823
32851
|
};
|
|
32824
32852
|
for (this.ctx.eventHub.on("IterateTimeNodeEnd", i2); e2; ) {
|
|
32825
|
-
const e3 = JSON.parse(JSON.stringify(this.json)), i3 = new
|
|
32853
|
+
const e3 = JSON.parse(JSON.stringify(this.json)), i3 = new dy({ json: e3, isSub: false, eventHubs: this.eventHubs, ctx: this.ctx, parent: null, isIterate: true, iterateType: e3.iterate.type, iterateIndex: n2, iterateId: t2, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId });
|
|
32826
32854
|
this.iterateShadows[n2] = i3, n2 += 1;
|
|
32827
32855
|
}
|
|
32828
32856
|
}
|
|
@@ -32838,7 +32866,7 @@ void main(void){
|
|
|
32838
32866
|
createTimeNode(t2, e2) {
|
|
32839
32867
|
let n2 = null;
|
|
32840
32868
|
const i2 = { json: t2, isSub: e2, isIterate: this.isIterate, eventHub: this.eventHubs.global, ctx: this.ctx, parent: this, iterateType: this.iterateType, iterateIndex: this.iterateIndex, iterateId: this.iterateId, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId };
|
|
32841
|
-
return t2.type === "seq" ? n2 = new
|
|
32869
|
+
return t2.type === "seq" ? n2 = new c_(i2) : t2.type === "par" ? n2 = new py(i2) : t2.type === "set" ? n2 = new m_(i2) : t2.type === "anim" ? n2 = new T_(i2) : t2.type === "animEffect" ? n2 = new ry(i2) : t2.type === "animMotion" ? n2 = new oy(i2) : t2.type === "animScale" ? n2 = new sy(i2) : t2.type === "animClr" ? n2 = new ay(i2) : t2.type === "animRot" ? n2 = new ly(i2) : t2.type === "cmd" ? n2 = new hy(i2) : t2.type === "audio" && (n2 = new uy(i2)), n2;
|
|
32842
32870
|
}
|
|
32843
32871
|
createSubList(t2) {
|
|
32844
32872
|
this.subList && this.subList.forEach((t3) => t3.commonTimeNode.destroy()), this.subList = [], t2.forEach((t3) => {
|
|
@@ -32899,7 +32927,7 @@ void main(void){
|
|
|
32899
32927
|
startReverseTimeLine() {
|
|
32900
32928
|
this.isEndEventsEmitted = false, this.timeDelta = 0;
|
|
32901
32929
|
const t2 = 1e3 / this.ctx.ticker.maxFPS;
|
|
32902
|
-
this.duration <= t2 && this.duration > 0 ? (this.emit("timeUpdate", { delta: this.duration, duration: this.duration, isReverse: this.isReverse }), this.ctx.eventHub.emit(
|
|
32930
|
+
this.duration <= t2 && this.duration > 0 ? (this.emit("timeUpdate", { delta: this.duration, duration: this.duration, isReverse: this.isReverse }), this.ctx.eventHub.emit(ky.animateEnd), this.ctx.ticker.remove(this.updateTimeLine)) : this.duration > t2 && (this.ctx.eventHub.emit(ky.animateStart), this.ctx.ticker.add(this.updateTimeLine));
|
|
32903
32931
|
}
|
|
32904
32932
|
startTimeLine(t2 = true) {
|
|
32905
32933
|
if (t2 && (this.isEndEventsEmitted = false, this.eventHubs.global.emit(`time ${this.json.id} begin`), this.eventHubs.global.emit(`time ${this.json.id} onBegin`), this.eventHubs.runtime.emit(`runtime ${this.json.id} begin`)), this.json.iterate)
|
|
@@ -32908,10 +32936,10 @@ void main(void){
|
|
|
32908
32936
|
const e2 = 1e3 / this.ctx.ticker.maxFPS;
|
|
32909
32937
|
this.duration <= e2 && this.duration > 0 ? (this.timeDelta = this.isReverse ? 0 : this.duration, this.emit("timeUpdate", { delta: this.timeDelta, duration: this.duration, isReverse: this.isReverse }), this.emit("timelineEnd", { id: this.uuid, activeCount: this.applyCount, isReverse: this.isReverse }), this.ctx.ticker.addOnce(() => {
|
|
32910
32938
|
this.onTimeLineEnd();
|
|
32911
|
-
})) : this.duration > e2 && (this.ctx.eventHub.emit(
|
|
32939
|
+
})) : this.duration > e2 && (this.ctx.eventHub.emit(ky.animateStart), this.updateTimeLine(0), this.ctx.ticker.add(this.updateTimeLine));
|
|
32912
32940
|
}
|
|
32913
32941
|
startIterate() {
|
|
32914
|
-
return
|
|
32942
|
+
return cy(this, void 0, void 0, function* () {
|
|
32915
32943
|
if (this.json.iterate) {
|
|
32916
32944
|
this.isIterateEnd = false;
|
|
32917
32945
|
for (const t2 of this.iterateShadows) {
|
|
@@ -33017,7 +33045,7 @@ void main(void){
|
|
|
33017
33045
|
});
|
|
33018
33046
|
}
|
|
33019
33047
|
dispose(t2 = false) {
|
|
33020
|
-
this.isConflictDispose = t2, this.ctx.clock.clearTimeout(this.repeatTimeoutId), this.ctx.eventHub.emit(
|
|
33048
|
+
this.isConflictDispose = t2, this.ctx.clock.clearTimeout(this.repeatTimeoutId), this.ctx.eventHub.emit(ky.animateEnd);
|
|
33021
33049
|
try {
|
|
33022
33050
|
this.ctx.ticker.remove(this.updateTimeLine);
|
|
33023
33051
|
} catch (t3) {
|
|
@@ -33053,11 +33081,11 @@ void main(void){
|
|
|
33053
33081
|
this.emit("timeNodeDestroy"), this.isDestroy = true, this.dispose(), this.startConds.removeAllListeners(), this.endConds.removeAllListeners(), this.children.forEach((t2) => t2.commonTimeNode.destroy()), this.clearSubList();
|
|
33054
33082
|
}
|
|
33055
33083
|
}
|
|
33056
|
-
class
|
|
33084
|
+
class py extends Ja.a {
|
|
33057
33085
|
constructor(t2) {
|
|
33058
33086
|
super(), this.isRunning = false, this.runtimeNodeEventHub = new Ja.a();
|
|
33059
33087
|
const { json: e2, iterateType: n2, isIterate: i2, isSub: r2, parent: o2, ctx: s2, eventHub: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
|
|
33060
|
-
this.id = e2.ctn.id, this.json = e2, this.ctx = s2, this.isIterate = i2, this.globalEventHub = a2, this.commonTimeNode = new
|
|
33088
|
+
this.id = e2.ctn.id, this.json = e2, this.ctx = s2, this.isIterate = i2, this.globalEventHub = a2, this.commonTimeNode = new dy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: n2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.commonTimeNode.on("timeNodeStart", () => {
|
|
33061
33089
|
this.commonTimeNode.children.forEach((t3) => {
|
|
33062
33090
|
t3.commonTimeNode.setReverse(this.commonTimeNode.getReverse()), t3.commonTimeNode.startTimeNode();
|
|
33063
33091
|
}), this.isRunning || (this.isRunning = true, this.globalEventHub.emit(`runtime ${this.id} begin`), this.emit("begin"));
|
|
@@ -33070,7 +33098,7 @@ void main(void){
|
|
|
33070
33098
|
});
|
|
33071
33099
|
}
|
|
33072
33100
|
}
|
|
33073
|
-
var
|
|
33101
|
+
var fy = function(t2, e2, n2, i2) {
|
|
33074
33102
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33075
33103
|
function s2(t3) {
|
|
33076
33104
|
try {
|
|
@@ -33095,11 +33123,11 @@ void main(void){
|
|
|
33095
33123
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
33096
33124
|
});
|
|
33097
33125
|
};
|
|
33098
|
-
class
|
|
33126
|
+
class my {
|
|
33099
33127
|
constructor(t2, e2, n2) {
|
|
33100
33128
|
this.json = t2, this.ctx = n2, this.globalEventHub = e2;
|
|
33101
33129
|
const i2 = t2.timeNodeList.find((t3) => t3.type === "par" && t3.ctn.nodeType === "tmRoot");
|
|
33102
|
-
i2 && (this.tmRoot = new
|
|
33130
|
+
i2 && (this.tmRoot = new py({ json: i2, isSub: false, isIterate: false, eventHub: e2, ctx: n2, parent: null, iterateType: "el", iterateIndex: 0, iterateId: "", isInInteractiveSeq: false, fromSeqId: "" }), this.mainSeq = this.tmRoot.commonTimeNode.children.find((t3) => {
|
|
33103
33131
|
var e3, n3, i3;
|
|
33104
33132
|
return ((e3 = t3.json) === null || e3 === void 0 ? void 0 : e3.type) === "seq" && ((i3 = (n3 = t3.json) === null || n3 === void 0 ? void 0 : n3.ctn) === null || i3 === void 0 ? void 0 : i3.nodeType) === "mainSeq";
|
|
33105
33133
|
}));
|
|
@@ -33113,7 +33141,7 @@ void main(void){
|
|
|
33113
33141
|
}
|
|
33114
33142
|
start() {
|
|
33115
33143
|
var t2, e2;
|
|
33116
|
-
return
|
|
33144
|
+
return fy(this, void 0, void 0, function* () {
|
|
33117
33145
|
this.json.autoPlayMainSeq ? (yield this.ctx.clock.delay(16), (t2 = this.mainSeq) === null || t2 === void 0 || t2.commonTimeNode.startTimeNode()) : (e2 = this.mainSeq) === null || e2 === void 0 || e2.commonTimeNode.startTimeNode();
|
|
33118
33146
|
});
|
|
33119
33147
|
}
|
|
@@ -33171,7 +33199,7 @@ void main(void){
|
|
|
33171
33199
|
this.globalEventHub.emit(t2);
|
|
33172
33200
|
}
|
|
33173
33201
|
}
|
|
33174
|
-
var
|
|
33202
|
+
var gy = function(t2, e2, n2, i2) {
|
|
33175
33203
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33176
33204
|
function s2(t3) {
|
|
33177
33205
|
try {
|
|
@@ -33196,7 +33224,7 @@ void main(void){
|
|
|
33196
33224
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
33197
33225
|
});
|
|
33198
33226
|
};
|
|
33199
|
-
class
|
|
33227
|
+
class vy extends h_ {
|
|
33200
33228
|
constructor(t2, e2, n2, i2) {
|
|
33201
33229
|
super({ id: "stage", width: t2.width, height: t2.height, type: "Container", children: t2.children }, e2, n2, void 0, i2), this.isRendered = false, this.isTimingStartValueCollected = false, this.json = t2, e2.hasBackgroundFillShape = this.detectUseBackgroundFill(this.json), this.container.visible = false, this.ctx = e2;
|
|
33202
33230
|
const r2 = new Xd();
|
|
@@ -33207,9 +33235,9 @@ void main(void){
|
|
|
33207
33235
|
}
|
|
33208
33236
|
initOnReuse() {
|
|
33209
33237
|
super.initOnReuse(), this.ctx.timingEventHub.on("c:prev slide", (t2) => {
|
|
33210
|
-
this.ctx.eventHub.emit(
|
|
33238
|
+
this.ctx.eventHub.emit(ky.requestPrevSlide, t2);
|
|
33211
33239
|
}), this.ctx.timingEventHub.on("c:next slide", (t2, e2) => {
|
|
33212
|
-
this.ctx.eventHub.emit(
|
|
33240
|
+
this.ctx.eventHub.emit(ky.requestNextSlide, t2, e2);
|
|
33213
33241
|
});
|
|
33214
33242
|
}
|
|
33215
33243
|
get interactiveContainer() {
|
|
@@ -33218,7 +33246,7 @@ void main(void){
|
|
|
33218
33246
|
render(t2) {
|
|
33219
33247
|
if (this.isRendered)
|
|
33220
33248
|
return;
|
|
33221
|
-
this.collectAnimatedIds().forEach((t3) => this.ctx.animatedIds.add(t3)), this.isRendered = true, super.render(t2), t2.addSubMTask(() =>
|
|
33249
|
+
this.collectAnimatedIds().forEach((t3) => this.ctx.animatedIds.add(t3)), this.isRendered = true, super.render(t2), t2.addSubMTask(() => gy(this, void 0, void 0, function* () {
|
|
33222
33250
|
this.ctx.eventHub.emit("StageRenderEnd");
|
|
33223
33251
|
}), "@StageImpl[emit.StageRenderEnd]");
|
|
33224
33252
|
}
|
|
@@ -33241,7 +33269,7 @@ void main(void){
|
|
|
33241
33269
|
}), t2;
|
|
33242
33270
|
}
|
|
33243
33271
|
createTiming() {
|
|
33244
|
-
this.json.timing && !this.timing && (this.timing = new
|
|
33272
|
+
this.json.timing && !this.timing && (this.timing = new my(this.json.timing, this.ctx.timingEventHub, this.ctx));
|
|
33245
33273
|
}
|
|
33246
33274
|
startTiming() {
|
|
33247
33275
|
var t2;
|
|
@@ -33296,11 +33324,11 @@ void main(void){
|
|
|
33296
33324
|
}
|
|
33297
33325
|
nextStep(t2, e2) {
|
|
33298
33326
|
var n2;
|
|
33299
|
-
this.hasTiming() && ((n2 = this.timing) === null || n2 === void 0 ? void 0 : n2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onNext", t2, e2)) : this.ctx.eventHub.emit(
|
|
33327
|
+
this.hasTiming() && ((n2 = this.timing) === null || n2 === void 0 ? void 0 : n2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onNext", t2, e2)) : this.ctx.eventHub.emit(ky.requestNextSlide, t2, e2);
|
|
33300
33328
|
}
|
|
33301
33329
|
prevStep(t2 = false) {
|
|
33302
33330
|
var e2;
|
|
33303
|
-
this.hasTiming() && ((e2 = this.timing) === null || e2 === void 0 ? void 0 : e2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onPrev", t2)) : this.ctx.eventHub.emit(
|
|
33331
|
+
this.hasTiming() && ((e2 = this.timing) === null || e2 === void 0 ? void 0 : e2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onPrev", t2)) : this.ctx.eventHub.emit(ky.requestPrevSlide, t2);
|
|
33304
33332
|
}
|
|
33305
33333
|
applyInteractiveAction(t2) {
|
|
33306
33334
|
var e2;
|
|
@@ -33315,7 +33343,7 @@ void main(void){
|
|
|
33315
33343
|
(i2 = this.timing) === null || i2 === void 0 || i2.setInteractiveSeqState(t2, e2, n2);
|
|
33316
33344
|
}
|
|
33317
33345
|
setMediaState(t2, e2, n2) {
|
|
33318
|
-
return
|
|
33346
|
+
return gy(this, void 0, void 0, function* () {
|
|
33319
33347
|
const i2 = this.ctx.medias[t2];
|
|
33320
33348
|
i2 && (e2 ? n2 ? (yield Im(() => i2.clippedDuration > 0, 5e3), n2 < i2.clippedDuration && (i2.once("play", () => {
|
|
33321
33349
|
i2.seek(n2);
|
|
@@ -33327,7 +33355,7 @@ void main(void){
|
|
|
33327
33355
|
n2 && n2.seek(e2);
|
|
33328
33356
|
}
|
|
33329
33357
|
}
|
|
33330
|
-
class
|
|
33358
|
+
class _y {
|
|
33331
33359
|
constructor(t2) {
|
|
33332
33360
|
this.ticker = t2, this.tasks = [], this.couldRunning = false, this.applyNext = () => {
|
|
33333
33361
|
const t3 = this.tasks[0];
|
|
@@ -33350,7 +33378,7 @@ void main(void){
|
|
|
33350
33378
|
this.couldRunning = false;
|
|
33351
33379
|
}
|
|
33352
33380
|
}
|
|
33353
|
-
var
|
|
33381
|
+
var yy = function(t2, e2, n2, i2) {
|
|
33354
33382
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33355
33383
|
function s2(t3) {
|
|
33356
33384
|
try {
|
|
@@ -33375,8 +33403,8 @@ void main(void){
|
|
|
33375
33403
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
33376
33404
|
});
|
|
33377
33405
|
};
|
|
33378
|
-
const
|
|
33379
|
-
class
|
|
33406
|
+
const xy = (t2) => new Promise((e2) => setTimeout(e2, t2));
|
|
33407
|
+
class by extends Ja.a {
|
|
33380
33408
|
constructor(t2, e2, n2) {
|
|
33381
33409
|
super(), this.slideIndex = t2, this.taskId = e2, this.logger = n2, this.uuid = Mm(), this.isCancel = false, this.tasks = [];
|
|
33382
33410
|
}
|
|
@@ -33408,10 +33436,10 @@ void main(void){
|
|
|
33408
33436
|
}));
|
|
33409
33437
|
}
|
|
33410
33438
|
applyAll() {
|
|
33411
|
-
return
|
|
33439
|
+
return yy(this, void 0, void 0, function* () {
|
|
33412
33440
|
for (; !this.tasks.every((t2) => t2.state === "finish"); )
|
|
33413
33441
|
if (this.tasks.some((t2) => t2.state === "running"))
|
|
33414
|
-
yield
|
|
33442
|
+
yield xy(16);
|
|
33415
33443
|
else {
|
|
33416
33444
|
if (this.tasks.some((t2) => t2.state === "error"))
|
|
33417
33445
|
return;
|
|
@@ -33438,16 +33466,16 @@ void main(void){
|
|
|
33438
33466
|
});
|
|
33439
33467
|
}
|
|
33440
33468
|
}
|
|
33441
|
-
var
|
|
33442
|
-
const
|
|
33469
|
+
var Ty = n(131);
|
|
33470
|
+
const Ey = new (n.n(Ty)).a(), Sy = Ey.getDevice(), wy = Ey.getBrowser(), Ay = Ey.getOS(), My = { isDesktop() {
|
|
33443
33471
|
let t2 = true;
|
|
33444
|
-
return
|
|
33472
|
+
return Sy.type === "mobile" && (t2 = false), /Samsung/.test(wy.name || "") && (t2 = false), window.__nativeTags && window.__nativeTags.platform && (t2 = false), t2;
|
|
33445
33473
|
}, isIOS() {
|
|
33446
33474
|
let t2 = false;
|
|
33447
|
-
return window.__nativeTags && window.__nativeTags.platform && /^ios/i.test(window.__nativeTags.platform) && (t2 = true),
|
|
33475
|
+
return window.__nativeTags && window.__nativeTags.platform && /^ios/i.test(window.__nativeTags.platform) && (t2 = true), Ay.name && /iOS/.test(Ay.name) && (t2 = true), t2;
|
|
33448
33476
|
}, isAndroid() {
|
|
33449
33477
|
let t2 = false;
|
|
33450
|
-
return window.__nativeTags && window.__nativeTags.platform && /^android/i.test(window.__nativeTags.platform) && (t2 = true),
|
|
33478
|
+
return window.__nativeTags && window.__nativeTags.platform && /^android/i.test(window.__nativeTags.platform) && (t2 = true), Ay.name && /android/i.test(Ay.name) && (t2 = true), t2;
|
|
33451
33479
|
}, isLowGpuMemory() {
|
|
33452
33480
|
var t2, e2;
|
|
33453
33481
|
const n2 = (e2 = (t2 = window.__nativeTags) === null || t2 === void 0 ? void 0 : t2.platform) !== null && e2 !== void 0 ? e2 : "";
|
|
@@ -33468,7 +33496,7 @@ void main(void){
|
|
|
33468
33496
|
}
|
|
33469
33497
|
return true;
|
|
33470
33498
|
} };
|
|
33471
|
-
var
|
|
33499
|
+
var Ry = function(t2, e2, n2, i2) {
|
|
33472
33500
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33473
33501
|
function s2(t3) {
|
|
33474
33502
|
try {
|
|
@@ -33493,11 +33521,11 @@ void main(void){
|
|
|
33493
33521
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
33494
33522
|
});
|
|
33495
33523
|
};
|
|
33496
|
-
class
|
|
33524
|
+
class Cy {
|
|
33497
33525
|
constructor(t2, e2) {
|
|
33498
|
-
if (this.renderer = t2, this.localStorage = e2, this.outputData = /* @__PURE__ */ new Map(), this.loadingSdfKeys = /* @__PURE__ */ new Set(), !
|
|
33526
|
+
if (this.renderer = t2, this.localStorage = e2, this.outputData = /* @__PURE__ */ new Map(), this.loadingSdfKeys = /* @__PURE__ */ new Set(), !Cy.worker) {
|
|
33499
33527
|
const t3 = new Blob(['\nself.onmessage = function(e) {\n var data = e.data.data;\n var key = e.data.key;\n var height = Math.ceil(e.data.height);\n var width = Math.ceil(e.data.width);\n if (!data || !key) {\n return;\n }\n var maxDis = 0;\n var d = [];\n var p = [];\n var maxInt = Number.MAX_SAFE_INTEGER || 255 * 255 * 255;\n var setD = function(x, y, v) { d[y * width + x] = v; };\n var getD = function(x, y) { return d[y * width + x]; };\n var setP = function(x, y, v) { p[y * width + x] = v; };\n var getP = function(x, y) { return p[y * width + x]; };\n var isContains = function(x, y) { return x >= 0 && x < width && y >= 0 && y < height; };\n var isInterior = function(x, y) { return data[(y * width + x) * 4 + 3] > 10; };\n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n var c = isInterior(x, y);\n var t = isContains(x, y - 1) ? isInterior(x, y - 1) : false;\n var b = isContains(x, y + 1) ? isInterior(x, y + 1) : false;\n var l = isContains(x - 1, y) ? isInterior(x - 1, y) : false;\n var r = isContains(x + 1, y) ? isInterior(x + 1, y) : false;\n if (c !== t || c !== b || c !== l || c !== r) {\n setD(x, y, 0);\n setP(x, y, [x, y]);\n } else {\n setD(x, y, maxInt);\n setP(x, y, [-1, -1]);\n }\n }\n }\n \n var f = function (x, y, dir) {\n var d1 = 1;\n var d2 = Math.sqrt(2);\n var dx;\n var dy;\n var od;\n switch (dir) {\n case "TL": dx = -1; dy = -1; od = d2; break;\n case "T": dx = 0; dy = -1; od = d1; break;\n case "TR": dx = 1; dy = -1; od = d2; break;\n case "L": dx = -1; dy = 0; od = d1; break;\n case "R": dx = 1; dy = 0; od = d1; break;\n case "BL": dx = -1; dy = 1; od = d2; break;\n case "B": dx = 0; dy = 1; od = d1; break;\n case "BR": dx = 1; dy = 1; od = d2; break;\n }\n var b = isContains(x + dx, y + dy);\n var cb = b ? getD(x + dx, y + dy) : maxInt;\n if (cb + od < getD(x, y)) {\n var p = b ? getP(x + dx, y + dy) : [-1, -1];\n var dis = Math.sqrt(Math.pow(x - p[0], 2) + Math.pow(y - p[1], 2));\n setP(x, y, p);\n setD(x, y, dis);\n if (dis > maxDis) {\n maxDis = dis;\n }\n }\n };\n \n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n var dirs = ["TL", "T", "TR", "L"];\n for (var i = 0; i < dirs.length; ++ i) {\n var dir = dirs[i];\n f(x, y, dir);\n }\n }\n }\n\n for (var y = height - 1; y >= 0; -- y) {\n for (var x = width - 1; x >= 0; -- x) {\n var dirs = ["R", "BL", "B", "BR"];\n for (var i = 0; i < dirs.length; ++ i) {\n var dir = dirs[i];\n f(x, y, dir);\n }\n }\n }\n\n var outputData = [];\n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n outputData.push(isInterior(x, y) ? 255: 0);\n outputData.push(0);\n outputData.push(0);\n outputData.push(Math.ceil(getD(x, y) / maxDis * 255));\n }\n }\n self.postMessage({\n key, outputData, maxDis\n });\n};\n'], { type: "text/javascript" });
|
|
33500
|
-
|
|
33528
|
+
Cy.worker = new Worker(URL.createObjectURL(t3)), Cy.worker.onmessage = (t4) => {
|
|
33501
33529
|
this.outputData.set(t4.data.key, { data: t4.data.outputData, maxDis: t4.data.maxDis });
|
|
33502
33530
|
}, this.outputData.set("111", "222");
|
|
33503
33531
|
}
|
|
@@ -33506,11 +33534,11 @@ void main(void){
|
|
|
33506
33534
|
const l2 = document.createElement("canvas");
|
|
33507
33535
|
l2.width = r2, l2.height = o2;
|
|
33508
33536
|
const h2 = l2.getContext("2d");
|
|
33509
|
-
if (!h2 || !
|
|
33537
|
+
if (!h2 || !Cy.worker)
|
|
33510
33538
|
return;
|
|
33511
33539
|
h2.drawImage(s2, t2, e2, n2, i2);
|
|
33512
33540
|
const { data: u2 } = h2.getImageData(0, 0, r2, o2);
|
|
33513
|
-
|
|
33541
|
+
Cy.worker.postMessage({ data: u2, key: a2, width: r2, height: o2 });
|
|
33514
33542
|
}
|
|
33515
33543
|
createSdf(t2, e2, n2) {
|
|
33516
33544
|
const i2 = document.createElement("canvas");
|
|
@@ -33591,7 +33619,7 @@ void main(void){
|
|
|
33591
33619
|
return r2.putImageData(new ImageData(Uint8ClampedArray.from(g2), t2, e2), 0, 0), { src: i2.toDataURL("image/png"), maxDis: o2 };
|
|
33592
33620
|
}
|
|
33593
33621
|
getSdf(t2, e2, n2) {
|
|
33594
|
-
return
|
|
33622
|
+
return Ry(this, void 0, void 0, function* () {
|
|
33595
33623
|
const i2 = Math.ceil(e2.width), r2 = Math.ceil(e2.height), o2 = Math.ceil(e2.width - t2.width) / 2, s2 = Math.ceil(e2.height - t2.height) / 2;
|
|
33596
33624
|
let a2 = yield this.localStorage.getItem(`sdf-${n2}-src`), l2 = yield this.localStorage.getItem(`sdf-${n2}-maxDis`);
|
|
33597
33625
|
if (!(a2 && l2 || this.loadingSdfKeys.has(n2))) {
|
|
@@ -33619,8 +33647,8 @@ void main(void){
|
|
|
33619
33647
|
});
|
|
33620
33648
|
}
|
|
33621
33649
|
}
|
|
33622
|
-
|
|
33623
|
-
var
|
|
33650
|
+
Cy.worker = null;
|
|
33651
|
+
var Py = function(t2, e2, n2, i2) {
|
|
33624
33652
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33625
33653
|
function s2(t3) {
|
|
33626
33654
|
try {
|
|
@@ -33645,23 +33673,23 @@ void main(void){
|
|
|
33645
33673
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
33646
33674
|
});
|
|
33647
33675
|
};
|
|
33648
|
-
class
|
|
33676
|
+
class Iy {
|
|
33649
33677
|
constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2, m2) {
|
|
33650
|
-
this.loader = t2, this.mode = e2, this.renderer = n2, this.ticker = i2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.isPlayerPaused = c2, this.maxResolution = d2, this.volumeAdjuster = p2, this.forceCanvas = f2, this.globalEventHub = m2, this.currentStageIndex = 0, this.cacheCount =
|
|
33678
|
+
this.loader = t2, this.mode = e2, this.renderer = n2, this.ticker = i2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.isPlayerPaused = c2, this.maxResolution = d2, this.volumeAdjuster = p2, this.forceCanvas = f2, this.globalEventHub = m2, this.currentStageIndex = 0, this.cacheCount = My.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new _y(i2), this.sdfManager = new Cy(n2, l2);
|
|
33651
33679
|
}
|
|
33652
33680
|
setResourceData(t2, e2) {
|
|
33653
33681
|
this.taskId = t2, this.url = e2;
|
|
33654
33682
|
}
|
|
33655
33683
|
createCtx(t2) {
|
|
33656
33684
|
const { task: e2 } = this.stageStates[t2];
|
|
33657
|
-
e2.addMTask(() =>
|
|
33685
|
+
e2.addMTask(() => Py(this, void 0, void 0, function* () {
|
|
33658
33686
|
const e3 = new Gm(this.loader), n2 = new Ja.a(), i2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Km(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new $m(n2), eventHub: n2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qm(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Ja.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Ja.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas, globalEventHub: this.globalEventHub };
|
|
33659
33687
|
this.stageCtxs[t2] = i2;
|
|
33660
33688
|
}), "@StagePool[createCtx]");
|
|
33661
33689
|
}
|
|
33662
33690
|
loadStageJson(t2) {
|
|
33663
33691
|
const { task: e2 } = this.stageStates[t2];
|
|
33664
|
-
e2.addMTask(() =>
|
|
33692
|
+
e2.addMTask(() => Py(this, void 0, void 0, function* () {
|
|
33665
33693
|
const e3 = yield this.loader.fetchJson(`${this.url}/${this.taskId}/jsonOutput/slide-${t2}.json`);
|
|
33666
33694
|
this.stageJsons[t2] = e3, this.stageCtxs[t2].stageWidth = e3.width, this.stageCtxs[t2].stageHeight = e3.height, this.stageCtxs[t2].featureList = e3.featureList;
|
|
33667
33695
|
}), "@StagePool[loadStageJson]");
|
|
@@ -33686,7 +33714,7 @@ void main(void){
|
|
|
33686
33714
|
createStage(t2) {
|
|
33687
33715
|
const { task: e2 } = this.stageStates[t2];
|
|
33688
33716
|
e2.addMTask(() => {
|
|
33689
|
-
const n2 = this.stageJsons[t2], i2 = this.stageCtxs[t2], r2 = new
|
|
33717
|
+
const n2 = this.stageJsons[t2], i2 = this.stageCtxs[t2], r2 = new vy(n2, i2, { x: 0, y: 0 }, e2);
|
|
33690
33718
|
return this.stageImpls[t2] = r2, Promise.resolve();
|
|
33691
33719
|
}, "@StagePool[createStage]");
|
|
33692
33720
|
}
|
|
@@ -33696,7 +33724,7 @@ void main(void){
|
|
|
33696
33724
|
}
|
|
33697
33725
|
createGraphicsTexture(t2) {
|
|
33698
33726
|
const { task: e2 } = this.stageStates[t2];
|
|
33699
|
-
e2.addMTask(() =>
|
|
33727
|
+
e2.addMTask(() => Py(this, void 0, void 0, function* () {
|
|
33700
33728
|
const n2 = this.stageCtxs[t2];
|
|
33701
33729
|
n2.graphicsTexture.pack().forEach((t3, i2) => {
|
|
33702
33730
|
e2.addSubMTask(() => n2.graphicsTexture.render(t3, i2, this.objPoolGroup), "@StagePool[graphicsTexture.render]");
|
|
@@ -33705,7 +33733,7 @@ void main(void){
|
|
|
33705
33733
|
}
|
|
33706
33734
|
renderStage(t2) {
|
|
33707
33735
|
const { task: e2 } = this.stageStates[t2];
|
|
33708
|
-
e2.addMTask(() =>
|
|
33736
|
+
e2.addMTask(() => Py(this, void 0, void 0, function* () {
|
|
33709
33737
|
const n2 = this.stageImpls[t2];
|
|
33710
33738
|
yield n2.render(e2);
|
|
33711
33739
|
}), "@StagePool[renderStage]");
|
|
@@ -33729,7 +33757,7 @@ void main(void){
|
|
|
33729
33757
|
preload(t2, e2 = false) {
|
|
33730
33758
|
if (this.stageImpls[t2] || this.stageStates[t2])
|
|
33731
33759
|
return Promise.resolve();
|
|
33732
|
-
const n2 = new
|
|
33760
|
+
const n2 = new by(t2, this.taskId, this.logger);
|
|
33733
33761
|
return n2.on("task-error", (t3, e3) => {
|
|
33734
33762
|
delete this.stageStates[e3], delete this.stageImpls[e3], delete this.stageCtxs[e3], this.errorChannel.emit("error", t3, e3);
|
|
33735
33763
|
}), this.stageStates[t2] = { state: "load", task: n2 }, this.createCtx(t2), this.loadStageJson(t2), this.loadSpriteSheets(t2), this.createStage(t2), this.preRenderStage(t2), this.createGraphicsTexture(t2), this.renderStage(t2), this.microTaskManager.addTask(n2), e2 ? n2.applyAll() : new Promise((e3) => {
|
|
@@ -33743,7 +33771,7 @@ void main(void){
|
|
|
33743
33771
|
return this.stageJsons[t2] || null;
|
|
33744
33772
|
}
|
|
33745
33773
|
getStage(t2) {
|
|
33746
|
-
return
|
|
33774
|
+
return Py(this, void 0, void 0, function* () {
|
|
33747
33775
|
this.currentStageIndex = t2;
|
|
33748
33776
|
const e2 = this.stageStates[t2];
|
|
33749
33777
|
return (e2 == null ? void 0 : e2.state) === "finish" && this.stageImpls[t2] ? this.stageImpls[t2] : (e2 == null ? void 0 : e2.state) === "load" ? (yield e2.task.applyAll(), this.stageImpls[t2]) : (yield this.preload(t2, true), this.stageImpls[t2]);
|
|
@@ -33753,7 +33781,7 @@ void main(void){
|
|
|
33753
33781
|
this.runningAudio.clear();
|
|
33754
33782
|
}
|
|
33755
33783
|
}
|
|
33756
|
-
var
|
|
33784
|
+
var Oy = function(t2, e2, n2, i2) {
|
|
33757
33785
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33758
33786
|
function s2(t3) {
|
|
33759
33787
|
try {
|
|
@@ -33778,10 +33806,10 @@ void main(void){
|
|
|
33778
33806
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
33779
33807
|
});
|
|
33780
33808
|
};
|
|
33781
|
-
class
|
|
33809
|
+
class Ny {
|
|
33782
33810
|
constructor(t2) {
|
|
33783
33811
|
var e2;
|
|
33784
|
-
this.logger = t2, this.taskId = "", this.isIndexDBReady = false, this.memoryCache = /* @__PURE__ */ new Map(), (e2 =
|
|
33812
|
+
this.logger = t2, this.taskId = "", this.isIndexDBReady = false, this.memoryCache = /* @__PURE__ */ new Map(), (e2 = Ny.localCache) === null || e2 === void 0 || e2.ready((t3) => {
|
|
33785
33813
|
t3 || (this.isIndexDBReady = true);
|
|
33786
33814
|
}).catch(() => {
|
|
33787
33815
|
t2.warn("local storage not ready", this.taskId);
|
|
@@ -33794,24 +33822,24 @@ void main(void){
|
|
|
33794
33822
|
this.taskId = t2;
|
|
33795
33823
|
}
|
|
33796
33824
|
getItem(t2) {
|
|
33797
|
-
return
|
|
33825
|
+
return Oy(this, void 0, void 0, function* () {
|
|
33798
33826
|
let e2 = null;
|
|
33799
|
-
if (this.couldUseIndexDBCache &&
|
|
33827
|
+
if (this.couldUseIndexDBCache && Ny.localCache)
|
|
33800
33828
|
try {
|
|
33801
|
-
e2 = yield Pm(() =>
|
|
33829
|
+
e2 = yield Pm(() => Ny.localCache.getItem(`${this.taskId}/${t2}`), 500);
|
|
33802
33830
|
} catch (t3) {
|
|
33803
33831
|
}
|
|
33804
33832
|
return e2 = e2 === Rm ? null : e2, e2 || this.memoryCache.get(t2) || null;
|
|
33805
33833
|
});
|
|
33806
33834
|
}
|
|
33807
33835
|
setItem(t2, e2, n2 = false) {
|
|
33808
|
-
return
|
|
33836
|
+
return Oy(this, void 0, void 0, function* () {
|
|
33809
33837
|
if (!this.couldUseIndexDBCache)
|
|
33810
33838
|
return n2 && this.memoryCache.set(t2, e2), Promise.resolve();
|
|
33811
|
-
if (
|
|
33839
|
+
if (Ny.localCache) {
|
|
33812
33840
|
let i2 = null;
|
|
33813
33841
|
try {
|
|
33814
|
-
i2 = yield Pm(() =>
|
|
33842
|
+
i2 = yield Pm(() => Ny.localCache.setItem(`${this.taskId}/${t2}`, e2).catch(() => {
|
|
33815
33843
|
n2 && this.memoryCache.set(t2, e2);
|
|
33816
33844
|
}), 500);
|
|
33817
33845
|
} catch (t3) {
|
|
@@ -33822,29 +33850,29 @@ void main(void){
|
|
|
33822
33850
|
}
|
|
33823
33851
|
dispose() {
|
|
33824
33852
|
var t2;
|
|
33825
|
-
this.memoryCache = /* @__PURE__ */ new Map(), this.couldUseIndexDBCache && ((t2 =
|
|
33853
|
+
this.memoryCache = /* @__PURE__ */ new Map(), this.couldUseIndexDBCache && ((t2 = Ny.localCache) === null || t2 === void 0 || t2.keys().then((t3) => {
|
|
33826
33854
|
t3.filter((t4) => t4.indexOf(this.taskId) >= 0).forEach((t4) => {
|
|
33827
33855
|
var e2;
|
|
33828
|
-
(e2 =
|
|
33856
|
+
(e2 = Ny.localCache) === null || e2 === void 0 || e2.removeItem(t4).catch(() => {
|
|
33829
33857
|
});
|
|
33830
33858
|
});
|
|
33831
33859
|
}).catch(() => {
|
|
33832
33860
|
}));
|
|
33833
33861
|
}
|
|
33834
33862
|
}
|
|
33835
|
-
|
|
33863
|
+
Ny.localCache = null;
|
|
33836
33864
|
try {
|
|
33837
|
-
|
|
33865
|
+
Ny.localCache = s.createInstance({ name: "slide_local_cache", driver: s.INDEXEDDB, version: 1 });
|
|
33838
33866
|
} catch (t2) {
|
|
33839
33867
|
}
|
|
33840
|
-
const
|
|
33841
|
-
class
|
|
33868
|
+
const Ly = new Rh.j();
|
|
33869
|
+
class Dy {
|
|
33842
33870
|
constructor(t2) {
|
|
33843
33871
|
this.localStorage = t2;
|
|
33844
33872
|
}
|
|
33845
33873
|
canvas(t2, e2, n2, i2) {
|
|
33846
33874
|
let r2, o2, s2, a2 = false, l2 = false;
|
|
33847
|
-
t2 && (t2 instanceof Uh.P ? s2 = t2 : (s2 = e2.generateTexture(t2), l2 = true)), s2 ? (r2 = s2.baseTexture.resolution, o2 = s2.frame, a2 = false, e2.renderTexture.bind(s2)) : (r2 = e2.resolution, a2 = true, o2 =
|
|
33875
|
+
t2 && (t2 instanceof Uh.P ? s2 = t2 : (s2 = e2.generateTexture(t2), l2 = true)), s2 ? (r2 = s2.baseTexture.resolution, o2 = s2.frame, a2 = false, e2.renderTexture.bind(s2)) : (r2 = e2.resolution, a2 = true, o2 = Ly, o2.width = e2.width, o2.height = e2.height, e2.renderTexture.bind(null));
|
|
33848
33876
|
const h2 = Math.floor(o2.width * r2 + 1e-4), u2 = Math.floor(o2.height * r2 + 1e-4);
|
|
33849
33877
|
let c2 = document.createElement("canvas");
|
|
33850
33878
|
c2.width = h2, c2.height = u2;
|
|
@@ -33855,7 +33883,7 @@ void main(void){
|
|
|
33855
33883
|
d2.putImageData(n2, 0, 0);
|
|
33856
33884
|
else {
|
|
33857
33885
|
const t3 = d2.getImageData(0, 0, h2, u2), n3 = new Uint8Array(4 * h2 * u2), { gl: s3 } = e2;
|
|
33858
|
-
s3.readPixels(o2.x * r2, o2.y * r2, h2, u2, s3.RGBA, s3.UNSIGNED_BYTE, n3),
|
|
33886
|
+
s3.readPixels(o2.x * r2, o2.y * r2, h2, u2, s3.RGBA, s3.UNSIGNED_BYTE, n3), Dy.arrayPostDivide(n3, t3.data), d2.putImageData(t3, 0, 0), i2 && this.localStorage.setItem(i2, t3).catch(() => {
|
|
33859
33887
|
});
|
|
33860
33888
|
}
|
|
33861
33889
|
if (a2) {
|
|
@@ -33873,7 +33901,7 @@ void main(void){
|
|
|
33873
33901
|
}
|
|
33874
33902
|
}
|
|
33875
33903
|
}
|
|
33876
|
-
class
|
|
33904
|
+
class Fy extends Ja.a {
|
|
33877
33905
|
constructor() {
|
|
33878
33906
|
super(...arguments), this._volume = 0.5;
|
|
33879
33907
|
}
|
|
@@ -33884,7 +33912,7 @@ void main(void){
|
|
|
33884
33912
|
t2 < 0 && (t2 = 0), t2 > 1 && (t2 = 1), this._volume = t2, this.emit("update", this._volume);
|
|
33885
33913
|
}
|
|
33886
33914
|
}
|
|
33887
|
-
var
|
|
33915
|
+
var By = function(t2, e2, n2, i2) {
|
|
33888
33916
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
33889
33917
|
function s2(t3) {
|
|
33890
33918
|
try {
|
|
@@ -33910,22 +33938,24 @@ void main(void){
|
|
|
33910
33938
|
});
|
|
33911
33939
|
};
|
|
33912
33940
|
window.PIXI = i, Sh.skipHello();
|
|
33913
|
-
const
|
|
33914
|
-
class
|
|
33941
|
+
const Uy = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip" }, ky = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", mediaStop: "mediaStop", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", userInput: "userInput", fullscreenChange: "fullscreenChange" };
|
|
33942
|
+
class Gy extends Ja.a {
|
|
33915
33943
|
constructor(t2, e2 = {}) {
|
|
33916
33944
|
super(), this.errorChannel = new Ja.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Rh.g(0, 0), this.isNVIDIA = false, this.fps = new bm(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.globalEventHub = new Ja.a(), this.globalVideoSprite = new Kd(), this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
|
|
33917
33945
|
this.errorChannel.emit("error", new Tm(gm.CanvasCrash, "webgl context lost."));
|
|
33918
33946
|
}, this.onRequestFullscreenVideo = (t3) => {
|
|
33919
|
-
const { texture: e3, index: n3, targetId:
|
|
33920
|
-
n3 === this.currentIndex && (this.onRequestCancelFullscreenVideo(), this.globalVideoSprite.texture = e3, this.globalVideoSprite.width = this.designWidth, this.globalVideoSprite.height = this.designHeight, this.globalVideoSprite.interactive = true, this.app.stage.addChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: true, targetId:
|
|
33947
|
+
const { texture: e3, index: n3, targetId: i3 } = t3;
|
|
33948
|
+
n3 === this.currentIndex && (this.onRequestCancelFullscreenVideo(), this.globalVideoSprite.texture = e3, this.globalVideoSprite.width = this.designWidth, this.globalVideoSprite.height = this.designHeight, this.globalVideoSprite.interactive = true, this.app.stage.addChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: true, targetId: i3, slideIndex: this.currentIndex }));
|
|
33921
33949
|
}, this.onRequestCancelFullscreenVideo = () => {
|
|
33922
33950
|
this.globalVideoSprite.texture.destroy(false), this.app.stage.removeChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex });
|
|
33923
|
-
}, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new
|
|
33924
|
-
const n2 =
|
|
33925
|
-
|
|
33926
|
-
|
|
33927
|
-
|
|
33928
|
-
|
|
33951
|
+
}, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new Ny(this.logger), this.cachedExtract = new Dy(this.localStorage), this.config = { minFPS: tl()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: tl()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: tl()(e2.resolution) ? 1 : e2.resolution, autoFPS: !tl()(e2.autoFPS) && e2.autoFPS, autoResolution: !tl()(e2.autoResolution) && e2.autoResolution, transactionBgColor: tl()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !tl()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !tl()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Lm(this.localStorage, t2.useLocalCache, this.logger, t2.resourceTimeout, t2.loadDelegate);
|
|
33952
|
+
const n2 = Sh.isWebGLSupported();
|
|
33953
|
+
this.app = new kh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas || !n2 }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
|
|
33954
|
+
const i2 = this.app.renderer;
|
|
33955
|
+
if (i2.gl) {
|
|
33956
|
+
const { drawElements: t3 } = i2.gl, e3 = i2.gl.getExtension("WEBGL_debug_renderer_info"), n3 = i2.gl.getParameter(e3.UNMASKED_RENDERER_WEBGL);
|
|
33957
|
+
/nvidia/i.test(n3) && this.config.enableNvidiaDetect && (this.isNVIDIA = true), i2.gl.drawElements = (...e4) => {
|
|
33958
|
+
t3.call(i2.gl, ...e4), this.drawCall += 1;
|
|
33929
33959
|
};
|
|
33930
33960
|
}
|
|
33931
33961
|
this.fps.on("update", (t3) => {
|
|
@@ -33940,7 +33970,7 @@ void main(void){
|
|
|
33940
33970
|
}
|
|
33941
33971
|
}), this.app.ticker.add(() => {
|
|
33942
33972
|
this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
|
|
33943
|
-
}, null, Ch.c.LOW), this.clock = new Fm(this.app.ticker), this.objPoolGroup = Mm(), this.stagePool = new
|
|
33973
|
+
}, null, Ch.c.LOW), this.clock = new Fm(this.app.ticker), this.objPoolGroup = Mm(), this.stagePool = new Iy(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster, this.config.forceCanvas, this.globalEventHub), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
|
|
33944
33974
|
try {
|
|
33945
33975
|
this.config.forceCanvas || (this.transactionPlayer = new Eh());
|
|
33946
33976
|
} catch (t3) {
|
|
@@ -33960,7 +33990,7 @@ void main(void){
|
|
|
33960
33990
|
return ((t2 = this.currentStage) === null || t2 === void 0 ? void 0 : t2.json.prevIndex) ? this.currentStage.json.prevIndex : this.currentIndex - 1;
|
|
33961
33991
|
}
|
|
33962
33992
|
getMaxResolution(t2) {
|
|
33963
|
-
return !tl()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) :
|
|
33993
|
+
return !tl()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) : Gy.platform.isAndroid() || Gy.platform.isIOS() ? 2 : 4;
|
|
33964
33994
|
}
|
|
33965
33995
|
updateMaxResolutionLevel(t2) {
|
|
33966
33996
|
t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4);
|
|
@@ -33971,7 +34001,7 @@ void main(void){
|
|
|
33971
34001
|
tl()(t2.maxFPS) || tl()(t2.minFPS) || (this.config.maxFPS = t2.maxFPS, this.app.ticker.maxFPS = t2.maxFPS, this.config.minFPS = t2.minFPS, this.app.ticker.minFPS = t2.minFPS), tl()(t2.resolution) || (this.config.resolution = t2.resolution, this.updateResolution(this.scale * this.config.resolution)), tl()(t2.autoFPS) || (this.config.autoFPS = t2.autoFPS), tl()(t2.autoResolution) || (this.config.autoResolution = t2.autoResolution), tl()(t2.transactionBgColor) || (this.config.transactionBgColor = t2.transactionBgColor), this.taskId && this.logger.info("ppt player update config: " + JSON.stringify(this.config), this.taskId), tl()(t2.maxResolutionLevel) || (this.config.maxResolutionLevel = t2.maxResolutionLevel, this.updateMaxResolutionLevel(this.config.maxResolutionLevel));
|
|
33972
34002
|
}
|
|
33973
34003
|
preload(t2) {
|
|
33974
|
-
return
|
|
34004
|
+
return By(this, void 0, void 0, function* () {
|
|
33975
34005
|
t2 < 1 || t2 > this.slideCount || (this.logger.info(`preload slide ${t2} begin`, this.taskId), yield this.stagePool.preload(t2), this.logger.info(`preload slide ${t2} end`, this.taskId));
|
|
33976
34006
|
});
|
|
33977
34007
|
}
|
|
@@ -33990,20 +34020,20 @@ void main(void){
|
|
|
33990
34020
|
}
|
|
33991
34021
|
renderSlide(t2) {
|
|
33992
34022
|
var e2, n2, i2;
|
|
33993
|
-
return
|
|
34023
|
+
return By(this, void 0, void 0, function* () {
|
|
33994
34024
|
if (this._isPaused)
|
|
33995
34025
|
return void this.logger.info("ppt play prevent render slide with paused state", this.taskId);
|
|
33996
|
-
this.logger.info("render slide " + t2, this.taskId), this.emit(
|
|
34026
|
+
this.logger.info("render slide " + t2, this.taskId), this.emit(ky.renderStart, t2);
|
|
33997
34027
|
const r2 = yield this.stagePool.getStage(t2), o2 = `snapshot-${t2}-${this.isForward ? "start" : "end"}`, s2 = yield this.localStorage.getItem(o2);
|
|
33998
34028
|
if (!r2)
|
|
33999
34029
|
return;
|
|
34000
|
-
this.translateEvent(r2.ctx.eventHub, [
|
|
34030
|
+
this.translateEvent(r2.ctx.eventHub, [ky.mainSeqStepChange, ky.mainSeqStateChange, ky.hyperlinkTrigger, ky.interactiveSeqAction, ky.mainSeqStepStart, ky.mainSeqStepEnd, ky.animateStart, ky.animateEnd, ky.mediaPlay, ky.mediaPause, ky.mediaSeek, ky.mediaStop, ky.requestGotoSlide, ky.requestNextSlide, ky.requestPrevSlide, ky.interactiveSeqStateChange, ky.userInput, ky.fullscreenChange]), this.currentIndex = Number(t2);
|
|
34001
34031
|
const { width: a2, height: l2, slideCount: h2 } = r2.json;
|
|
34002
34032
|
this.slideCount = h2, this.designWidth = a2, this.designHeight = l2, (e2 = this.currentStage) === null || e2 === void 0 || e2.clearOnSlideChange();
|
|
34003
34033
|
const u2 = this.currentStage;
|
|
34004
34034
|
this.currentStage = r2, r2.initOnReuse(), r2.createTiming(), r2.container.visible = true, r2.collectMainSeqStartValue(), this.isForward ? r2.setMainSeqStep(0, "start") : r2.setMainSeqStep(-1, "end"), this.onRequestCancelFullscreenVideo();
|
|
34005
34035
|
let c2 = false;
|
|
34006
|
-
if (r2.json.transition && r2.json.transition.type && this.app.stage.children.length > 0 && this.view && u2) {
|
|
34036
|
+
if (Sh.isWebGLSupported() && !this.config.forceCanvas && r2.json.transition && r2.json.transition.type && this.app.stage.children.length > 0 && this.view && u2) {
|
|
34007
34037
|
let { transition: t3 } = r2.json;
|
|
34008
34038
|
!this.isForward && (u2 == null ? void 0 : u2.json.transition) && (t3 = u2.json.transition);
|
|
34009
34039
|
const e3 = this.getTransactionTexture(u2, this.view, null, null);
|
|
@@ -34020,7 +34050,7 @@ void main(void){
|
|
|
34020
34050
|
}
|
|
34021
34051
|
(i2 = this.transactionPlayer) === null || i2 === void 0 || i2.dispose();
|
|
34022
34052
|
}
|
|
34023
|
-
this.isForward ? yield r2.startTiming() : r2.setMainSeqApplied(), r2.ctx.slideScopeEventHub.emit("slide-render", r2.ctx.slideIndex), this.emit(
|
|
34053
|
+
this.isForward ? yield r2.startTiming() : r2.setMainSeqApplied(), r2.ctx.slideScopeEventHub.emit("slide-render", r2.ctx.slideIndex), this.emit(ky.renderEnd, t2), this.emit(ky.slideChange, t2), this.preload(t2 + 1).catch((e3) => {
|
|
34024
34054
|
this.errorChannel.emit("error", Tm.transform(e3), t2 + 1);
|
|
34025
34055
|
}), this.preload(t2 - 1).catch((e3) => {
|
|
34026
34056
|
this.errorChannel.emit("error", Tm.transform(e3), t2 - 1);
|
|
@@ -34034,7 +34064,7 @@ void main(void){
|
|
|
34034
34064
|
return new T(o2);
|
|
34035
34065
|
}
|
|
34036
34066
|
renderToBase64(t2, e2, n2) {
|
|
34037
|
-
return
|
|
34067
|
+
return By(this, void 0, void 0, function* () {
|
|
34038
34068
|
const i2 = yield this.stagePool.getStage(t2);
|
|
34039
34069
|
if (i2) {
|
|
34040
34070
|
const { width: r2, height: o2 } = i2.json;
|
|
@@ -34048,7 +34078,7 @@ void main(void){
|
|
|
34048
34078
|
});
|
|
34049
34079
|
}
|
|
34050
34080
|
renderMainSeqToBase64(t2, e2, n2) {
|
|
34051
|
-
return
|
|
34081
|
+
return By(this, void 0, void 0, function* () {
|
|
34052
34082
|
const i2 = [], r2 = yield this.stagePool.getStage(t2);
|
|
34053
34083
|
if (r2.createTiming(), r2) {
|
|
34054
34084
|
const { width: t3, height: o2 } = r2.json;
|
|
@@ -34069,7 +34099,7 @@ void main(void){
|
|
|
34069
34099
|
});
|
|
34070
34100
|
}
|
|
34071
34101
|
snapshotWithTimingEnd(t2) {
|
|
34072
|
-
return
|
|
34102
|
+
return By(this, void 0, void 0, function* () {
|
|
34073
34103
|
const e2 = yield this.stagePool.getStage(t2);
|
|
34074
34104
|
if (e2) {
|
|
34075
34105
|
const { width: n2, height: i2 } = e2.json;
|
|
@@ -34093,9 +34123,9 @@ void main(void){
|
|
|
34093
34123
|
initTransactionPlayer(t2) {
|
|
34094
34124
|
var e2, n2, i2, r2, o2;
|
|
34095
34125
|
const s2 = (e2 = this.view) === null || e2 === void 0 ? void 0 : e2.parentElement;
|
|
34096
|
-
if (this.view && s2 &&
|
|
34126
|
+
if (this.view && s2 && Uy[t2.type] && this.transactionPlayer) {
|
|
34097
34127
|
const e3 = (n2 = this.transactionPlayer) === null || n2 === void 0 ? void 0 : n2.renderer.domElement;
|
|
34098
|
-
this.transactionPlayer.initPlayer({ reverse: !this.isForward, stageWidth: this.view.width, stageHeight: this.view.height, presetType:
|
|
34128
|
+
this.transactionPlayer.initPlayer({ reverse: !this.isForward, stageWidth: this.view.width, stageHeight: this.view.height, presetType: Uy[t2.type], duration: (r2 = (i2 = this.currentStage) === null || i2 === void 0 ? void 0 : i2.json.transition) === null || r2 === void 0 ? void 0 : r2.dur, delay: 0, clearColor: this.config.transactionBgColor, maxFPS: Math.ceil((o2 = this.config.maxFPS) !== null && o2 !== void 0 ? o2 : 60), options: t2.options }), e3 && (e3.style.position = "absolute", e3.style.zIndex = "9", e3.style.left = "0", e3.style.top = "0", e3.style.width = this.view.style.width, e3.style.height = this.view.style.height), s2.appendChild(e3);
|
|
34099
34129
|
}
|
|
34100
34130
|
}
|
|
34101
34131
|
scaleView(t2, e2, n2) {
|
|
@@ -34110,7 +34140,7 @@ void main(void){
|
|
|
34110
34140
|
}
|
|
34111
34141
|
updateResolution(t2, e2) {
|
|
34112
34142
|
this.app.ticker.addOnce(() => {
|
|
34113
|
-
let n2 =
|
|
34143
|
+
let n2 = My.isDesktop() ? t2 : 1;
|
|
34114
34144
|
for (; n2 * this.designWidth > this.maxResolution.x || n2 * this.designHeight > this.maxResolution.y; )
|
|
34115
34145
|
n2 -= 0.1;
|
|
34116
34146
|
this.app.renderer.resolution = n2, this.app.renderer.plugins.interaction.resolution = this.app.renderer.resolution, this.app.renderer.resize(this.designWidth, this.designHeight), Qa()(e2) && e2();
|
|
@@ -34185,7 +34215,7 @@ void main(void){
|
|
|
34185
34215
|
}
|
|
34186
34216
|
setMediaState(t2, e2, n2) {
|
|
34187
34217
|
var i2;
|
|
34188
|
-
return
|
|
34218
|
+
return By(this, void 0, void 0, function* () {
|
|
34189
34219
|
yield (i2 = this.currentStage) === null || i2 === void 0 ? void 0 : i2.setMediaState(t2, e2, n2);
|
|
34190
34220
|
});
|
|
34191
34221
|
}
|
|
@@ -34213,7 +34243,7 @@ void main(void){
|
|
|
34213
34243
|
}
|
|
34214
34244
|
static clearLocalCache() {
|
|
34215
34245
|
var t2;
|
|
34216
|
-
(t2 =
|
|
34246
|
+
(t2 = Ny.localCache) === null || t2 === void 0 || t2.clear().catch(() => {
|
|
34217
34247
|
});
|
|
34218
34248
|
}
|
|
34219
34249
|
syncFullscreenVideoState(t2) {
|
|
@@ -34232,24 +34262,24 @@ void main(void){
|
|
|
34232
34262
|
this.app.renderer.gl.getExtension("WEBGL_lose_context").loseContext();
|
|
34233
34263
|
} catch (t3) {
|
|
34234
34264
|
}
|
|
34235
|
-
this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 =
|
|
34265
|
+
this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 = Cy.worker) === null || e2 === void 0 || e2.terminate();
|
|
34236
34266
|
} catch (t3) {
|
|
34237
34267
|
}
|
|
34238
34268
|
}
|
|
34239
34269
|
}
|
|
34240
|
-
|
|
34241
|
-
var
|
|
34242
|
-
var
|
|
34270
|
+
Gy.platform = My, Gy.RtcAudioClazz = null;
|
|
34271
|
+
var Hy = /* @__PURE__ */ new Map();
|
|
34272
|
+
var jy, zy = n(132), Vy = n.n(zy), Xy = n(47), Wy = n.n(Xy), Yy = n(48), qy = n.n(Yy), Zy = [], Jy = "ResizeObserver loop completed with undelivered notifications.";
|
|
34243
34273
|
!function(t2) {
|
|
34244
34274
|
t2.BORDER_BOX = "border-box", t2.CONTENT_BOX = "content-box", t2.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
34245
|
-
}(
|
|
34246
|
-
var
|
|
34275
|
+
}(jy || (jy = {}));
|
|
34276
|
+
var Ky, Qy = function(t2) {
|
|
34247
34277
|
return Object.freeze(t2);
|
|
34248
|
-
},
|
|
34249
|
-
this.inlineSize = t2, this.blockSize = e2,
|
|
34250
|
-
},
|
|
34278
|
+
}, $y = function(t2, e2) {
|
|
34279
|
+
this.inlineSize = t2, this.blockSize = e2, Qy(this);
|
|
34280
|
+
}, tx = function() {
|
|
34251
34281
|
function t2(t3, e2, n2, i2) {
|
|
34252
|
-
return this.x = t3, this.y = e2, this.width = n2, this.height = i2, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
34282
|
+
return this.x = t3, this.y = e2, this.width = n2, this.height = i2, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Qy(this);
|
|
34253
34283
|
}
|
|
34254
34284
|
return t2.prototype.toJSON = function() {
|
|
34255
34285
|
var t3 = this;
|
|
@@ -34257,59 +34287,59 @@ void main(void){
|
|
|
34257
34287
|
}, t2.fromRect = function(e2) {
|
|
34258
34288
|
return new t2(e2.x, e2.y, e2.width, e2.height);
|
|
34259
34289
|
}, t2;
|
|
34260
|
-
}(),
|
|
34290
|
+
}(), ex = function(t2) {
|
|
34261
34291
|
return t2 instanceof SVGElement && "getBBox" in t2;
|
|
34262
|
-
},
|
|
34263
|
-
if (
|
|
34292
|
+
}, nx = function(t2) {
|
|
34293
|
+
if (ex(t2)) {
|
|
34264
34294
|
var e2 = t2.getBBox(), n2 = e2.width, i2 = e2.height;
|
|
34265
34295
|
return !n2 && !i2;
|
|
34266
34296
|
}
|
|
34267
34297
|
var r2 = t2, o2 = r2.offsetWidth, s2 = r2.offsetHeight;
|
|
34268
34298
|
return !(o2 || s2 || t2.getClientRects().length);
|
|
34269
|
-
},
|
|
34299
|
+
}, ix = function(t2) {
|
|
34270
34300
|
var e2;
|
|
34271
34301
|
if (t2 instanceof Element)
|
|
34272
34302
|
return true;
|
|
34273
34303
|
var n2 = (e2 = t2 == null ? void 0 : t2.ownerDocument) === null || e2 === void 0 ? void 0 : e2.defaultView;
|
|
34274
34304
|
return !!(n2 && t2 instanceof n2.Element);
|
|
34275
|
-
},
|
|
34305
|
+
}, rx = typeof window != "undefined" ? window : {}, ox = /* @__PURE__ */ new WeakMap(), sx = /auto|scroll/, ax = /^tb|vertical/, lx = /msie|trident/i.test(rx.navigator && rx.navigator.userAgent), hx = function(t2) {
|
|
34276
34306
|
return parseFloat(t2 || "0");
|
|
34277
|
-
},
|
|
34278
|
-
return t2 === void 0 && (t2 = 0), e2 === void 0 && (e2 = 0), n2 === void 0 && (n2 = false), new
|
|
34279
|
-
},
|
|
34280
|
-
if (e2 === void 0 && (e2 = false),
|
|
34281
|
-
return
|
|
34282
|
-
if (
|
|
34283
|
-
return
|
|
34284
|
-
var n2 = getComputedStyle(t2), i2 =
|
|
34285
|
-
return
|
|
34286
|
-
},
|
|
34287
|
-
var i2 =
|
|
34307
|
+
}, ux = function(t2, e2, n2) {
|
|
34308
|
+
return t2 === void 0 && (t2 = 0), e2 === void 0 && (e2 = 0), n2 === void 0 && (n2 = false), new $y((n2 ? e2 : t2) || 0, (n2 ? t2 : e2) || 0);
|
|
34309
|
+
}, cx = Qy({ devicePixelContentBoxSize: ux(), borderBoxSize: ux(), contentBoxSize: ux(), contentRect: new tx(0, 0, 0, 0) }), dx = function(t2, e2) {
|
|
34310
|
+
if (e2 === void 0 && (e2 = false), ox.has(t2) && !e2)
|
|
34311
|
+
return ox.get(t2);
|
|
34312
|
+
if (nx(t2))
|
|
34313
|
+
return ox.set(t2, cx), cx;
|
|
34314
|
+
var n2 = getComputedStyle(t2), i2 = ex(t2) && t2.ownerSVGElement && t2.getBBox(), r2 = !lx && n2.boxSizing === "border-box", o2 = ax.test(n2.writingMode || ""), s2 = !i2 && sx.test(n2.overflowY || ""), a2 = !i2 && sx.test(n2.overflowX || ""), l2 = i2 ? 0 : hx(n2.paddingTop), h2 = i2 ? 0 : hx(n2.paddingRight), u2 = i2 ? 0 : hx(n2.paddingBottom), c2 = i2 ? 0 : hx(n2.paddingLeft), d2 = i2 ? 0 : hx(n2.borderTopWidth), p2 = i2 ? 0 : hx(n2.borderRightWidth), f2 = i2 ? 0 : hx(n2.borderBottomWidth), m2 = c2 + h2, g2 = l2 + u2, v2 = (i2 ? 0 : hx(n2.borderLeftWidth)) + p2, _2 = d2 + f2, y2 = a2 ? t2.offsetHeight - _2 - t2.clientHeight : 0, x2 = s2 ? t2.offsetWidth - v2 - t2.clientWidth : 0, b2 = r2 ? m2 + v2 : 0, T2 = r2 ? g2 + _2 : 0, E2 = i2 ? i2.width : hx(n2.width) - b2 - x2, S2 = i2 ? i2.height : hx(n2.height) - T2 - y2, w2 = E2 + m2 + x2 + v2, A2 = S2 + g2 + y2 + _2, M2 = Qy({ devicePixelContentBoxSize: ux(Math.round(E2 * devicePixelRatio), Math.round(S2 * devicePixelRatio), o2), borderBoxSize: ux(w2, A2, o2), contentBoxSize: ux(E2, S2, o2), contentRect: new tx(c2, l2, E2, S2) });
|
|
34315
|
+
return ox.set(t2, M2), M2;
|
|
34316
|
+
}, px = function(t2, e2, n2) {
|
|
34317
|
+
var i2 = dx(t2, n2), r2 = i2.borderBoxSize, o2 = i2.contentBoxSize, s2 = i2.devicePixelContentBoxSize;
|
|
34288
34318
|
switch (e2) {
|
|
34289
|
-
case
|
|
34319
|
+
case jy.DEVICE_PIXEL_CONTENT_BOX:
|
|
34290
34320
|
return s2;
|
|
34291
|
-
case
|
|
34321
|
+
case jy.BORDER_BOX:
|
|
34292
34322
|
return r2;
|
|
34293
34323
|
default:
|
|
34294
34324
|
return o2;
|
|
34295
34325
|
}
|
|
34296
|
-
}, px = function(t2) {
|
|
34297
|
-
var e2 = cx(t2);
|
|
34298
|
-
this.target = t2, this.contentRect = e2.contentRect, this.borderBoxSize = Ky([e2.borderBoxSize]), this.contentBoxSize = Ky([e2.contentBoxSize]), this.devicePixelContentBoxSize = Ky([e2.devicePixelContentBoxSize]);
|
|
34299
34326
|
}, fx = function(t2) {
|
|
34300
|
-
|
|
34327
|
+
var e2 = dx(t2);
|
|
34328
|
+
this.target = t2, this.contentRect = e2.contentRect, this.borderBoxSize = Qy([e2.borderBoxSize]), this.contentBoxSize = Qy([e2.contentBoxSize]), this.devicePixelContentBoxSize = Qy([e2.devicePixelContentBoxSize]);
|
|
34329
|
+
}, mx = function(t2) {
|
|
34330
|
+
if (nx(t2))
|
|
34301
34331
|
return 1 / 0;
|
|
34302
34332
|
for (var e2 = 0, n2 = t2.parentNode; n2; )
|
|
34303
34333
|
e2 += 1, n2 = n2.parentNode;
|
|
34304
34334
|
return e2;
|
|
34305
|
-
},
|
|
34335
|
+
}, gx = function() {
|
|
34306
34336
|
var t2 = 1 / 0, e2 = [];
|
|
34307
|
-
|
|
34337
|
+
Zy.forEach(function(n3) {
|
|
34308
34338
|
if (n3.activeTargets.length !== 0) {
|
|
34309
34339
|
var i3 = [];
|
|
34310
34340
|
n3.activeTargets.forEach(function(e3) {
|
|
34311
|
-
var n4 = new
|
|
34312
|
-
i3.push(n4), e3.lastReportedSize =
|
|
34341
|
+
var n4 = new fx(e3.target), r2 = mx(e3.target);
|
|
34342
|
+
i3.push(n4), e3.lastReportedSize = px(e3.target, e3.observedBox), r2 < t2 && (t2 = r2);
|
|
34313
34343
|
}), e2.push(function() {
|
|
34314
34344
|
n3.callback.call(n3.observer, i3, n3.observer);
|
|
34315
34345
|
}), n3.activeTargets.splice(0, n3.activeTargets.length);
|
|
@@ -34319,36 +34349,36 @@ void main(void){
|
|
|
34319
34349
|
(0, i2[n2])();
|
|
34320
34350
|
}
|
|
34321
34351
|
return t2;
|
|
34322
|
-
},
|
|
34323
|
-
|
|
34352
|
+
}, vx = function(t2) {
|
|
34353
|
+
Zy.forEach(function(e2) {
|
|
34324
34354
|
e2.activeTargets.splice(0, e2.activeTargets.length), e2.skippedTargets.splice(0, e2.skippedTargets.length), e2.observationTargets.forEach(function(n2) {
|
|
34325
|
-
n2.isActive() && (
|
|
34355
|
+
n2.isActive() && (mx(n2.target) > t2 ? e2.activeTargets.push(n2) : e2.skippedTargets.push(n2));
|
|
34326
34356
|
});
|
|
34327
34357
|
});
|
|
34328
|
-
},
|
|
34358
|
+
}, _x = function() {
|
|
34329
34359
|
var t2, e2 = 0;
|
|
34330
|
-
for (
|
|
34360
|
+
for (vx(e2); Zy.some(function(t3) {
|
|
34331
34361
|
return t3.activeTargets.length > 0;
|
|
34332
34362
|
}); )
|
|
34333
|
-
e2 =
|
|
34334
|
-
return
|
|
34363
|
+
e2 = gx(), vx(e2);
|
|
34364
|
+
return Zy.some(function(t3) {
|
|
34335
34365
|
return t3.skippedTargets.length > 0;
|
|
34336
|
-
}) && (typeof ErrorEvent == "function" ? t2 = new ErrorEvent("error", { message:
|
|
34337
|
-
},
|
|
34338
|
-
if (!
|
|
34366
|
+
}) && (typeof ErrorEvent == "function" ? t2 = new ErrorEvent("error", { message: Jy }) : ((t2 = document.createEvent("Event")).initEvent("error", false, false), t2.message = Jy), window.dispatchEvent(t2)), e2 > 0;
|
|
34367
|
+
}, yx = [], xx = function(t2) {
|
|
34368
|
+
if (!Ky) {
|
|
34339
34369
|
var e2 = 0, n2 = document.createTextNode("");
|
|
34340
34370
|
new MutationObserver(function() {
|
|
34341
|
-
return
|
|
34371
|
+
return yx.splice(0).forEach(function(t3) {
|
|
34342
34372
|
return t3();
|
|
34343
34373
|
});
|
|
34344
|
-
}).observe(n2, { characterData: true }),
|
|
34374
|
+
}).observe(n2, { characterData: true }), Ky = function() {
|
|
34345
34375
|
n2.textContent = "".concat(e2 ? e2-- : e2++);
|
|
34346
34376
|
};
|
|
34347
34377
|
}
|
|
34348
|
-
|
|
34349
|
-
},
|
|
34378
|
+
yx.push(t2), Ky();
|
|
34379
|
+
}, bx = 0, Tx = { attributes: true, characterData: true, childList: true, subtree: true }, Ex = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Sx = function(t2) {
|
|
34350
34380
|
return t2 === void 0 && (t2 = 0), Date.now() + t2;
|
|
34351
|
-
},
|
|
34381
|
+
}, wx = false, Ax = new (function() {
|
|
34352
34382
|
function t2() {
|
|
34353
34383
|
var t3 = this;
|
|
34354
34384
|
this.stopped = true, this.listener = function() {
|
|
@@ -34357,19 +34387,19 @@ void main(void){
|
|
|
34357
34387
|
}
|
|
34358
34388
|
return t2.prototype.run = function(t3) {
|
|
34359
34389
|
var e2 = this;
|
|
34360
|
-
if (t3 === void 0 && (t3 = 250), !
|
|
34361
|
-
|
|
34362
|
-
var n2, i2 =
|
|
34390
|
+
if (t3 === void 0 && (t3 = 250), !wx) {
|
|
34391
|
+
wx = true;
|
|
34392
|
+
var n2, i2 = Sx(t3);
|
|
34363
34393
|
n2 = function() {
|
|
34364
34394
|
var n3 = false;
|
|
34365
34395
|
try {
|
|
34366
|
-
n3 =
|
|
34396
|
+
n3 = _x();
|
|
34367
34397
|
} finally {
|
|
34368
|
-
if (
|
|
34398
|
+
if (wx = false, t3 = i2 - Sx(), !bx)
|
|
34369
34399
|
return;
|
|
34370
34400
|
n3 ? e2.run(1e3) : t3 > 0 ? e2.run(t3) : e2.start();
|
|
34371
34401
|
}
|
|
34372
|
-
},
|
|
34402
|
+
}, xx(function() {
|
|
34373
34403
|
requestAnimationFrame(n2);
|
|
34374
34404
|
});
|
|
34375
34405
|
}
|
|
@@ -34377,29 +34407,29 @@ void main(void){
|
|
|
34377
34407
|
this.stop(), this.run();
|
|
34378
34408
|
}, t2.prototype.observe = function() {
|
|
34379
34409
|
var t3 = this, e2 = function() {
|
|
34380
|
-
return t3.observer && t3.observer.observe(document.body,
|
|
34410
|
+
return t3.observer && t3.observer.observe(document.body, Tx);
|
|
34381
34411
|
};
|
|
34382
|
-
document.body ? e2() :
|
|
34412
|
+
document.body ? e2() : rx.addEventListener("DOMContentLoaded", e2);
|
|
34383
34413
|
}, t2.prototype.start = function() {
|
|
34384
34414
|
var t3 = this;
|
|
34385
|
-
this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(),
|
|
34386
|
-
return
|
|
34415
|
+
this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(), Ex.forEach(function(e2) {
|
|
34416
|
+
return rx.addEventListener(e2, t3.listener, true);
|
|
34387
34417
|
}));
|
|
34388
34418
|
}, t2.prototype.stop = function() {
|
|
34389
34419
|
var t3 = this;
|
|
34390
|
-
this.stopped || (this.observer && this.observer.disconnect(),
|
|
34391
|
-
return
|
|
34420
|
+
this.stopped || (this.observer && this.observer.disconnect(), Ex.forEach(function(e2) {
|
|
34421
|
+
return rx.removeEventListener(e2, t3.listener, true);
|
|
34392
34422
|
}), this.stopped = true);
|
|
34393
34423
|
}, t2;
|
|
34394
|
-
}())(),
|
|
34395
|
-
!
|
|
34396
|
-
},
|
|
34424
|
+
}())(), Mx = function(t2) {
|
|
34425
|
+
!bx && t2 > 0 && Ax.start(), !(bx += t2) && Ax.stop();
|
|
34426
|
+
}, Rx = function() {
|
|
34397
34427
|
function t2(t3, e2) {
|
|
34398
|
-
this.target = t3, this.observedBox = e2 ||
|
|
34428
|
+
this.target = t3, this.observedBox = e2 || jy.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
|
|
34399
34429
|
}
|
|
34400
34430
|
return t2.prototype.isActive = function() {
|
|
34401
|
-
var t3, e2 =
|
|
34402
|
-
return t3 = this.target,
|
|
34431
|
+
var t3, e2 = px(this.target, this.observedBox, true);
|
|
34432
|
+
return t3 = this.target, ex(t3) || function(t4) {
|
|
34403
34433
|
switch (t4.tagName) {
|
|
34404
34434
|
case "INPUT":
|
|
34405
34435
|
if (t4.type !== "image")
|
|
@@ -34416,57 +34446,57 @@ void main(void){
|
|
|
34416
34446
|
return false;
|
|
34417
34447
|
}(t3) || getComputedStyle(t3).display !== "inline" || (this.lastReportedSize = e2), this.lastReportedSize.inlineSize !== e2.inlineSize || this.lastReportedSize.blockSize !== e2.blockSize;
|
|
34418
34448
|
}, t2;
|
|
34419
|
-
}(),
|
|
34449
|
+
}(), Cx = function(t2, e2) {
|
|
34420
34450
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t2, this.callback = e2;
|
|
34421
|
-
},
|
|
34451
|
+
}, Px = /* @__PURE__ */ new WeakMap(), Ix = function(t2, e2) {
|
|
34422
34452
|
for (var n2 = 0; n2 < t2.length; n2 += 1)
|
|
34423
34453
|
if (t2[n2].target === e2)
|
|
34424
34454
|
return n2;
|
|
34425
34455
|
return -1;
|
|
34426
|
-
},
|
|
34456
|
+
}, Ox = function() {
|
|
34427
34457
|
function t2() {
|
|
34428
34458
|
}
|
|
34429
34459
|
return t2.connect = function(t3, e2) {
|
|
34430
|
-
var n2 = new
|
|
34431
|
-
|
|
34460
|
+
var n2 = new Cx(t3, e2);
|
|
34461
|
+
Px.set(t3, n2);
|
|
34432
34462
|
}, t2.observe = function(t3, e2, n2) {
|
|
34433
|
-
var i2 =
|
|
34434
|
-
|
|
34463
|
+
var i2 = Px.get(t3), r2 = i2.observationTargets.length === 0;
|
|
34464
|
+
Ix(i2.observationTargets, e2) < 0 && (r2 && Zy.push(i2), i2.observationTargets.push(new Rx(e2, n2 && n2.box)), Mx(1), Ax.schedule());
|
|
34435
34465
|
}, t2.unobserve = function(t3, e2) {
|
|
34436
|
-
var n2 =
|
|
34437
|
-
i2 >= 0 && (r2 &&
|
|
34466
|
+
var n2 = Px.get(t3), i2 = Ix(n2.observationTargets, e2), r2 = n2.observationTargets.length === 1;
|
|
34467
|
+
i2 >= 0 && (r2 && Zy.splice(Zy.indexOf(n2), 1), n2.observationTargets.splice(i2, 1), Mx(-1));
|
|
34438
34468
|
}, t2.disconnect = function(t3) {
|
|
34439
|
-
var e2 = this, n2 =
|
|
34469
|
+
var e2 = this, n2 = Px.get(t3);
|
|
34440
34470
|
n2.observationTargets.slice().forEach(function(n3) {
|
|
34441
34471
|
return e2.unobserve(t3, n3.target);
|
|
34442
34472
|
}), n2.activeTargets.splice(0, n2.activeTargets.length);
|
|
34443
34473
|
}, t2;
|
|
34444
|
-
}(),
|
|
34474
|
+
}(), Nx = function() {
|
|
34445
34475
|
function t2(t3) {
|
|
34446
34476
|
if (arguments.length === 0)
|
|
34447
34477
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
34448
34478
|
if (typeof t3 != "function")
|
|
34449
34479
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
34450
|
-
|
|
34480
|
+
Ox.connect(this, t3);
|
|
34451
34481
|
}
|
|
34452
34482
|
return t2.prototype.observe = function(t3, e2) {
|
|
34453
34483
|
if (arguments.length === 0)
|
|
34454
34484
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
34455
|
-
if (!
|
|
34485
|
+
if (!ix(t3))
|
|
34456
34486
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
34457
|
-
|
|
34487
|
+
Ox.observe(this, t3, e2);
|
|
34458
34488
|
}, t2.prototype.unobserve = function(t3) {
|
|
34459
34489
|
if (arguments.length === 0)
|
|
34460
34490
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
34461
|
-
if (!
|
|
34491
|
+
if (!ix(t3))
|
|
34462
34492
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
34463
|
-
|
|
34493
|
+
Ox.unobserve(this, t3);
|
|
34464
34494
|
}, t2.prototype.disconnect = function() {
|
|
34465
|
-
|
|
34495
|
+
Ox.disconnect(this);
|
|
34466
34496
|
}, t2.toString = function() {
|
|
34467
34497
|
return "function ResizeObserver () { [polyfill code] }";
|
|
34468
34498
|
}, t2;
|
|
34469
|
-
}(),
|
|
34499
|
+
}(), Lx = function(t2, e2, n2, i2) {
|
|
34470
34500
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
34471
34501
|
function s2(t3) {
|
|
34472
34502
|
try {
|
|
@@ -34490,7 +34520,7 @@ void main(void){
|
|
|
34490
34520
|
}
|
|
34491
34521
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
34492
34522
|
});
|
|
34493
|
-
},
|
|
34523
|
+
}, Dx = function(t2, e2) {
|
|
34494
34524
|
var n2, i2, r2, o2, s2 = { label: 0, sent: function() {
|
|
34495
34525
|
if (1 & r2[0])
|
|
34496
34526
|
throw r2[1];
|
|
@@ -34553,14 +34583,14 @@ void main(void){
|
|
|
34553
34583
|
}([o3, a3]);
|
|
34554
34584
|
};
|
|
34555
34585
|
}
|
|
34556
|
-
},
|
|
34586
|
+
}, Fx = function() {
|
|
34557
34587
|
function t2(t3, e2, n2, i2, r2) {
|
|
34558
34588
|
this.state = "idle", this.index = -1, this.slideIndex = -1, this.fn = n2, this.index = t3, this.slideIndex = e2, this.eventHub = i2, this.id = r2;
|
|
34559
34589
|
}
|
|
34560
34590
|
return t2.prototype.apply = function() {
|
|
34561
|
-
return
|
|
34591
|
+
return Lx(this, void 0, void 0, function() {
|
|
34562
34592
|
var t3;
|
|
34563
|
-
return
|
|
34593
|
+
return Dx(this, function(e2) {
|
|
34564
34594
|
switch (e2.label) {
|
|
34565
34595
|
case 0:
|
|
34566
34596
|
this.eventHub.emit("task-start", this), e2.label = 1;
|
|
@@ -34576,7 +34606,7 @@ void main(void){
|
|
|
34576
34606
|
});
|
|
34577
34607
|
});
|
|
34578
34608
|
}, t2;
|
|
34579
|
-
}(),
|
|
34609
|
+
}(), Bx = function() {
|
|
34580
34610
|
function t2() {
|
|
34581
34611
|
var t3 = this;
|
|
34582
34612
|
this.eventHub = new Ja.a(), this.tasks = [], this.index = 0, this.eventHub.on("task-end", function(e2) {
|
|
@@ -34598,7 +34628,7 @@ void main(void){
|
|
|
34598
34628
|
e2.tasks.splice(t4, 1);
|
|
34599
34629
|
});
|
|
34600
34630
|
}, t2.prototype.addTask = function(t3, e2, n2) {
|
|
34601
|
-
var i2 = new
|
|
34631
|
+
var i2 = new Fx(this.index++, e2, t3, this.eventHub, n2);
|
|
34602
34632
|
this.tasks.push(i2), this.tasks.sort(function(t4, e3) {
|
|
34603
34633
|
return t4.index - e3.index;
|
|
34604
34634
|
}), this.replaceIdleTask(), this.tasks.length === 1 && i2.apply();
|
|
@@ -34610,7 +34640,7 @@ void main(void){
|
|
|
34610
34640
|
this.eventHub.removeAllListeners();
|
|
34611
34641
|
}, t2;
|
|
34612
34642
|
}();
|
|
34613
|
-
function
|
|
34643
|
+
function Ux(t2, e2) {
|
|
34614
34644
|
var n2 = t2.__state.conversionName.toString(), i2 = Math.round(t2.r), r2 = Math.round(t2.g), o2 = Math.round(t2.b), s2 = t2.a, a2 = Math.round(t2.h), l2 = t2.s.toFixed(1), h2 = t2.v.toFixed(1);
|
|
34615
34645
|
if (e2 || n2 === "THREE_CHAR_HEX" || n2 === "SIX_CHAR_HEX") {
|
|
34616
34646
|
for (var u2 = t2.hex.toString(16); u2.length < 6; )
|
|
@@ -34619,28 +34649,28 @@ void main(void){
|
|
|
34619
34649
|
}
|
|
34620
34650
|
return n2 === "CSS_RGB" ? "rgb(" + i2 + "," + r2 + "," + o2 + ")" : n2 === "CSS_RGBA" ? "rgba(" + i2 + "," + r2 + "," + o2 + "," + s2 + ")" : n2 === "HEX" ? "0x" + t2.hex.toString(16) : n2 === "RGB_ARRAY" ? "[" + i2 + "," + r2 + "," + o2 + "]" : n2 === "RGBA_ARRAY" ? "[" + i2 + "," + r2 + "," + o2 + "," + s2 + "]" : n2 === "RGB_OBJ" ? "{r:" + i2 + ",g:" + r2 + ",b:" + o2 + "}" : n2 === "RGBA_OBJ" ? "{r:" + i2 + ",g:" + r2 + ",b:" + o2 + ",a:" + s2 + "}" : n2 === "HSV_OBJ" ? "{h:" + a2 + ",s:" + l2 + ",v:" + h2 + "}" : n2 === "HSVA_OBJ" ? "{h:" + a2 + ",s:" + l2 + ",v:" + h2 + ",a:" + s2 + "}" : "unknown format";
|
|
34621
34651
|
}
|
|
34622
|
-
var
|
|
34623
|
-
return this.each(
|
|
34652
|
+
var kx = Array.prototype.forEach, Gx = Array.prototype.slice, Hx = { BREAK: {}, extend: function(t2) {
|
|
34653
|
+
return this.each(Gx.call(arguments, 1), function(e2) {
|
|
34624
34654
|
(this.isObject(e2) ? Object.keys(e2) : []).forEach(function(n2) {
|
|
34625
34655
|
this.isUndefined(e2[n2]) || (t2[n2] = e2[n2]);
|
|
34626
34656
|
}.bind(this));
|
|
34627
34657
|
}, this), t2;
|
|
34628
34658
|
}, defaults: function(t2) {
|
|
34629
|
-
return this.each(
|
|
34659
|
+
return this.each(Gx.call(arguments, 1), function(e2) {
|
|
34630
34660
|
(this.isObject(e2) ? Object.keys(e2) : []).forEach(function(n2) {
|
|
34631
34661
|
this.isUndefined(t2[n2]) && (t2[n2] = e2[n2]);
|
|
34632
34662
|
}.bind(this));
|
|
34633
34663
|
}, this), t2;
|
|
34634
34664
|
}, compose: function() {
|
|
34635
|
-
var t2 =
|
|
34665
|
+
var t2 = Gx.call(arguments);
|
|
34636
34666
|
return function() {
|
|
34637
|
-
for (var e2 =
|
|
34667
|
+
for (var e2 = Gx.call(arguments), n2 = t2.length - 1; n2 >= 0; n2--)
|
|
34638
34668
|
e2 = [t2[n2].apply(this, e2)];
|
|
34639
34669
|
return e2[0];
|
|
34640
34670
|
};
|
|
34641
34671
|
}, each: function(t2, e2, n2) {
|
|
34642
34672
|
if (t2) {
|
|
34643
|
-
if (
|
|
34673
|
+
if (kx && t2.forEach && t2.forEach === kx)
|
|
34644
34674
|
t2.forEach(e2, n2);
|
|
34645
34675
|
else if (t2.length === t2.length + 0) {
|
|
34646
34676
|
var i2, r2 = void 0;
|
|
@@ -34665,7 +34695,7 @@ void main(void){
|
|
|
34665
34695
|
clearTimeout(i2), i2 = setTimeout(s2, e2), a2 && t2.apply(r2, o2);
|
|
34666
34696
|
};
|
|
34667
34697
|
}, toArray: function(t2) {
|
|
34668
|
-
return t2.toArray ? t2.toArray() :
|
|
34698
|
+
return t2.toArray ? t2.toArray() : Gx.call(t2);
|
|
34669
34699
|
}, isUndefined: function(t2) {
|
|
34670
34700
|
return t2 === void 0;
|
|
34671
34701
|
}, isNull: function(t2) {
|
|
@@ -34691,23 +34721,23 @@ void main(void){
|
|
|
34691
34721
|
return t2 === false || t2 === true;
|
|
34692
34722
|
}, isFunction: function(t2) {
|
|
34693
34723
|
return t2 instanceof Function;
|
|
34694
|
-
} },
|
|
34724
|
+
} }, jx = [{ litmus: Hx.isString, conversions: { THREE_CHAR_HEX: { read: function(t2) {
|
|
34695
34725
|
var e2 = t2.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
|
|
34696
34726
|
return e2 !== null && { space: "HEX", hex: parseInt("0x" + e2[1].toString() + e2[1].toString() + e2[2].toString() + e2[2].toString() + e2[3].toString() + e2[3].toString(), 0) };
|
|
34697
|
-
}, write:
|
|
34727
|
+
}, write: Ux }, SIX_CHAR_HEX: { read: function(t2) {
|
|
34698
34728
|
var e2 = t2.match(/^#([A-F0-9]{6})$/i);
|
|
34699
34729
|
return e2 !== null && { space: "HEX", hex: parseInt("0x" + e2[1].toString(), 0) };
|
|
34700
|
-
}, write:
|
|
34730
|
+
}, write: Ux }, CSS_RGB: { read: function(t2) {
|
|
34701
34731
|
var e2 = t2.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
34702
34732
|
return e2 !== null && { space: "RGB", r: parseFloat(e2[1]), g: parseFloat(e2[2]), b: parseFloat(e2[3]) };
|
|
34703
|
-
}, write:
|
|
34733
|
+
}, write: Ux }, CSS_RGBA: { read: function(t2) {
|
|
34704
34734
|
var e2 = t2.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
34705
34735
|
return e2 !== null && { space: "RGB", r: parseFloat(e2[1]), g: parseFloat(e2[2]), b: parseFloat(e2[3]), a: parseFloat(e2[4]) };
|
|
34706
|
-
}, write:
|
|
34736
|
+
}, write: Ux } } }, { litmus: Hx.isNumber, conversions: { HEX: { read: function(t2) {
|
|
34707
34737
|
return { space: "HEX", hex: t2, conversionName: "HEX" };
|
|
34708
34738
|
}, write: function(t2) {
|
|
34709
34739
|
return t2.hex;
|
|
34710
|
-
} } } }, { litmus:
|
|
34740
|
+
} } } }, { litmus: Hx.isArray, conversions: { RGB_ARRAY: { read: function(t2) {
|
|
34711
34741
|
return t2.length === 3 && { space: "RGB", r: t2[0], g: t2[1], b: t2[2] };
|
|
34712
34742
|
}, write: function(t2) {
|
|
34713
34743
|
return [t2.r, t2.g, t2.b];
|
|
@@ -34715,33 +34745,33 @@ void main(void){
|
|
|
34715
34745
|
return t2.length === 4 && { space: "RGB", r: t2[0], g: t2[1], b: t2[2], a: t2[3] };
|
|
34716
34746
|
}, write: function(t2) {
|
|
34717
34747
|
return [t2.r, t2.g, t2.b, t2.a];
|
|
34718
|
-
} } } }, { litmus:
|
|
34719
|
-
return !!(
|
|
34748
|
+
} } } }, { litmus: Hx.isObject, conversions: { RGBA_OBJ: { read: function(t2) {
|
|
34749
|
+
return !!(Hx.isNumber(t2.r) && Hx.isNumber(t2.g) && Hx.isNumber(t2.b) && Hx.isNumber(t2.a)) && { space: "RGB", r: t2.r, g: t2.g, b: t2.b, a: t2.a };
|
|
34720
34750
|
}, write: function(t2) {
|
|
34721
34751
|
return { r: t2.r, g: t2.g, b: t2.b, a: t2.a };
|
|
34722
34752
|
} }, RGB_OBJ: { read: function(t2) {
|
|
34723
|
-
return !!(
|
|
34753
|
+
return !!(Hx.isNumber(t2.r) && Hx.isNumber(t2.g) && Hx.isNumber(t2.b)) && { space: "RGB", r: t2.r, g: t2.g, b: t2.b };
|
|
34724
34754
|
}, write: function(t2) {
|
|
34725
34755
|
return { r: t2.r, g: t2.g, b: t2.b };
|
|
34726
34756
|
} }, HSVA_OBJ: { read: function(t2) {
|
|
34727
|
-
return !!(
|
|
34757
|
+
return !!(Hx.isNumber(t2.h) && Hx.isNumber(t2.s) && Hx.isNumber(t2.v) && Hx.isNumber(t2.a)) && { space: "HSV", h: t2.h, s: t2.s, v: t2.v, a: t2.a };
|
|
34728
34758
|
}, write: function(t2) {
|
|
34729
34759
|
return { h: t2.h, s: t2.s, v: t2.v, a: t2.a };
|
|
34730
34760
|
} }, HSV_OBJ: { read: function(t2) {
|
|
34731
|
-
return !!(
|
|
34761
|
+
return !!(Hx.isNumber(t2.h) && Hx.isNumber(t2.s) && Hx.isNumber(t2.v)) && { space: "HSV", h: t2.h, s: t2.s, v: t2.v };
|
|
34732
34762
|
}, write: function(t2) {
|
|
34733
34763
|
return { h: t2.h, s: t2.s, v: t2.v };
|
|
34734
|
-
} } } }],
|
|
34735
|
-
|
|
34736
|
-
var t2 = arguments.length > 1 ?
|
|
34737
|
-
return
|
|
34764
|
+
} } } }], zx = void 0, Vx = void 0, Xx = function() {
|
|
34765
|
+
Vx = false;
|
|
34766
|
+
var t2 = arguments.length > 1 ? Hx.toArray(arguments) : arguments[0];
|
|
34767
|
+
return Hx.each(jx, function(e2) {
|
|
34738
34768
|
if (e2.litmus(t2))
|
|
34739
|
-
return
|
|
34740
|
-
if (
|
|
34741
|
-
return
|
|
34742
|
-
}),
|
|
34743
|
-
}),
|
|
34744
|
-
},
|
|
34769
|
+
return Hx.each(e2.conversions, function(e3, n2) {
|
|
34770
|
+
if (zx = e3.read(t2), Vx === false && zx !== false)
|
|
34771
|
+
return Vx = zx, zx.conversionName = n2, zx.conversion = e3, Hx.BREAK;
|
|
34772
|
+
}), Hx.BREAK;
|
|
34773
|
+
}), Vx;
|
|
34774
|
+
}, Wx = void 0, Yx = { hsv_to_rgb: function(t2, e2, n2) {
|
|
34745
34775
|
var i2 = Math.floor(t2 / 60) % 6, r2 = t2 / 60 - Math.floor(t2 / 60), o2 = n2 * (1 - e2), s2 = n2 * (1 - r2 * e2), a2 = n2 * (1 - (1 - r2) * e2), l2 = [[n2, a2, o2], [s2, n2, o2], [o2, n2, a2], [o2, s2, n2], [a2, o2, n2], [n2, o2, s2]][i2];
|
|
34746
34776
|
return { r: 255 * l2[0], g: 255 * l2[1], b: 255 * l2[2] };
|
|
34747
34777
|
}, rgb_to_hsv: function(t2, e2, n2) {
|
|
@@ -34753,15 +34783,15 @@ void main(void){
|
|
|
34753
34783
|
}, component_from_hex: function(t2, e2) {
|
|
34754
34784
|
return t2 >> 8 * e2 & 255;
|
|
34755
34785
|
}, hex_with_component: function(t2, e2, n2) {
|
|
34756
|
-
return n2 << (
|
|
34757
|
-
} },
|
|
34786
|
+
return n2 << (Wx = 8 * e2) | t2 & ~(255 << Wx);
|
|
34787
|
+
} }, qx = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) {
|
|
34758
34788
|
return typeof t2;
|
|
34759
34789
|
} : function(t2) {
|
|
34760
34790
|
return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2;
|
|
34761
|
-
},
|
|
34791
|
+
}, Zx = function(t2, e2) {
|
|
34762
34792
|
if (!(t2 instanceof e2))
|
|
34763
34793
|
throw new TypeError("Cannot call a class as a function");
|
|
34764
|
-
},
|
|
34794
|
+
}, Jx = function() {
|
|
34765
34795
|
function t2(t3, e2) {
|
|
34766
34796
|
for (var n2 = 0; n2 < e2.length; n2++) {
|
|
34767
34797
|
var i2 = e2[n2];
|
|
@@ -34771,7 +34801,7 @@ void main(void){
|
|
|
34771
34801
|
return function(e2, n2, i2) {
|
|
34772
34802
|
return n2 && t2(e2.prototype, n2), i2 && t2(e2, i2), e2;
|
|
34773
34803
|
};
|
|
34774
|
-
}(),
|
|
34804
|
+
}(), Kx = function t2(e2, n2, i2) {
|
|
34775
34805
|
e2 === null && (e2 = Function.prototype);
|
|
34776
34806
|
var r2 = Object.getOwnPropertyDescriptor(e2, n2);
|
|
34777
34807
|
if (r2 === void 0) {
|
|
@@ -34782,67 +34812,67 @@ void main(void){
|
|
|
34782
34812
|
return r2.value;
|
|
34783
34813
|
var s2 = r2.get;
|
|
34784
34814
|
return s2 !== void 0 ? s2.call(i2) : void 0;
|
|
34785
|
-
},
|
|
34815
|
+
}, Qx = function(t2, e2) {
|
|
34786
34816
|
if (typeof e2 != "function" && e2 !== null)
|
|
34787
34817
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e2);
|
|
34788
34818
|
t2.prototype = Object.create(e2 && e2.prototype, { constructor: { value: t2, enumerable: false, writable: true, configurable: true } }), e2 && (Object.setPrototypeOf ? Object.setPrototypeOf(t2, e2) : t2.__proto__ = e2);
|
|
34789
|
-
},
|
|
34819
|
+
}, $x = function(t2, e2) {
|
|
34790
34820
|
if (!t2)
|
|
34791
34821
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34792
34822
|
return !e2 || typeof e2 != "object" && typeof e2 != "function" ? t2 : e2;
|
|
34793
|
-
},
|
|
34823
|
+
}, tb = function() {
|
|
34794
34824
|
function t2() {
|
|
34795
|
-
if (
|
|
34825
|
+
if (Zx(this, t2), this.__state = Xx.apply(this, arguments), this.__state === false)
|
|
34796
34826
|
throw new Error("Failed to interpret color arguments");
|
|
34797
34827
|
this.__state.a = this.__state.a || 1;
|
|
34798
34828
|
}
|
|
34799
|
-
return
|
|
34800
|
-
return
|
|
34829
|
+
return Jx(t2, [{ key: "toString", value: function() {
|
|
34830
|
+
return Ux(this);
|
|
34801
34831
|
} }, { key: "toHexString", value: function() {
|
|
34802
|
-
return
|
|
34832
|
+
return Ux(this, true);
|
|
34803
34833
|
} }, { key: "toOriginal", value: function() {
|
|
34804
34834
|
return this.__state.conversion.write(this);
|
|
34805
34835
|
} }]), t2;
|
|
34806
34836
|
}();
|
|
34807
|
-
function
|
|
34837
|
+
function eb(t2, e2, n2) {
|
|
34808
34838
|
Object.defineProperty(t2, e2, { get: function() {
|
|
34809
|
-
return this.__state.space === "RGB" ||
|
|
34839
|
+
return this.__state.space === "RGB" || tb.recalculateRGB(this, e2, n2), this.__state[e2];
|
|
34810
34840
|
}, set: function(t3) {
|
|
34811
|
-
this.__state.space !== "RGB" && (
|
|
34841
|
+
this.__state.space !== "RGB" && (tb.recalculateRGB(this, e2, n2), this.__state.space = "RGB"), this.__state[e2] = t3;
|
|
34812
34842
|
} });
|
|
34813
34843
|
}
|
|
34814
|
-
function
|
|
34844
|
+
function nb(t2, e2) {
|
|
34815
34845
|
Object.defineProperty(t2, e2, { get: function() {
|
|
34816
|
-
return this.__state.space === "HSV" ||
|
|
34846
|
+
return this.__state.space === "HSV" || tb.recalculateHSV(this), this.__state[e2];
|
|
34817
34847
|
}, set: function(t3) {
|
|
34818
|
-
this.__state.space !== "HSV" && (
|
|
34848
|
+
this.__state.space !== "HSV" && (tb.recalculateHSV(this), this.__state.space = "HSV"), this.__state[e2] = t3;
|
|
34819
34849
|
} });
|
|
34820
34850
|
}
|
|
34821
|
-
|
|
34851
|
+
tb.recalculateRGB = function(t2, e2, n2) {
|
|
34822
34852
|
if (t2.__state.space === "HEX")
|
|
34823
|
-
t2.__state[e2] =
|
|
34853
|
+
t2.__state[e2] = Yx.component_from_hex(t2.__state.hex, n2);
|
|
34824
34854
|
else {
|
|
34825
34855
|
if (t2.__state.space !== "HSV")
|
|
34826
34856
|
throw new Error("Corrupted color state");
|
|
34827
|
-
|
|
34857
|
+
Hx.extend(t2.__state, Yx.hsv_to_rgb(t2.__state.h, t2.__state.s, t2.__state.v));
|
|
34828
34858
|
}
|
|
34829
|
-
},
|
|
34830
|
-
var e2 =
|
|
34831
|
-
|
|
34832
|
-
},
|
|
34859
|
+
}, tb.recalculateHSV = function(t2) {
|
|
34860
|
+
var e2 = Yx.rgb_to_hsv(t2.r, t2.g, t2.b);
|
|
34861
|
+
Hx.extend(t2.__state, { s: e2.s, v: e2.v }), Hx.isNaN(e2.h) ? Hx.isUndefined(t2.__state.h) && (t2.__state.h = 0) : t2.__state.h = e2.h;
|
|
34862
|
+
}, tb.COMPONENTS = ["r", "g", "b", "h", "s", "v", "hex", "a"], eb(tb.prototype, "r", 2), eb(tb.prototype, "g", 1), eb(tb.prototype, "b", 0), nb(tb.prototype, "h"), nb(tb.prototype, "s"), nb(tb.prototype, "v"), Object.defineProperty(tb.prototype, "a", { get: function() {
|
|
34833
34863
|
return this.__state.a;
|
|
34834
34864
|
}, set: function(t2) {
|
|
34835
34865
|
this.__state.a = t2;
|
|
34836
|
-
} }), Object.defineProperty(
|
|
34837
|
-
return this.__state.space !== "HEX" && (this.__state.hex =
|
|
34866
|
+
} }), Object.defineProperty(tb.prototype, "hex", { get: function() {
|
|
34867
|
+
return this.__state.space !== "HEX" && (this.__state.hex = Yx.rgb_to_hex(this.r, this.g, this.b), this.__state.space = "HEX"), this.__state.hex;
|
|
34838
34868
|
}, set: function(t2) {
|
|
34839
34869
|
this.__state.space = "HEX", this.__state.hex = t2;
|
|
34840
34870
|
} });
|
|
34841
|
-
var
|
|
34871
|
+
var ib = function() {
|
|
34842
34872
|
function t2(e2, n2) {
|
|
34843
|
-
|
|
34873
|
+
Zx(this, t2), this.initialValue = e2[n2], this.domElement = document.createElement("div"), this.object = e2, this.property = n2, this.__onChange = void 0, this.__onFinishChange = void 0;
|
|
34844
34874
|
}
|
|
34845
|
-
return
|
|
34875
|
+
return Jx(t2, [{ key: "onChange", value: function(t3) {
|
|
34846
34876
|
return this.__onChange = t3, this;
|
|
34847
34877
|
} }, { key: "onFinishChange", value: function(t3) {
|
|
34848
34878
|
return this.__onFinishChange = t3, this;
|
|
@@ -34855,29 +34885,29 @@ void main(void){
|
|
|
34855
34885
|
} }, { key: "isModified", value: function() {
|
|
34856
34886
|
return this.initialValue !== this.getValue();
|
|
34857
34887
|
} }]), t2;
|
|
34858
|
-
}(),
|
|
34859
|
-
|
|
34860
|
-
|
|
34861
|
-
|
|
34888
|
+
}(), rb = {};
|
|
34889
|
+
Hx.each({ HTMLEvents: ["change"], MouseEvents: ["click", "mousemove", "mousedown", "mouseup", "mouseover"], KeyboardEvents: ["keydown"] }, function(t2, e2) {
|
|
34890
|
+
Hx.each(t2, function(t3) {
|
|
34891
|
+
rb[t3] = e2;
|
|
34862
34892
|
});
|
|
34863
34893
|
});
|
|
34864
|
-
var
|
|
34865
|
-
function
|
|
34866
|
-
if (t2 === "0" ||
|
|
34894
|
+
var ob = /(\d+(\.\d+)?)px/;
|
|
34895
|
+
function sb(t2) {
|
|
34896
|
+
if (t2 === "0" || Hx.isUndefined(t2))
|
|
34867
34897
|
return 0;
|
|
34868
|
-
var e2 = t2.match(
|
|
34869
|
-
return
|
|
34898
|
+
var e2 = t2.match(ob);
|
|
34899
|
+
return Hx.isNull(e2) ? 0 : parseFloat(e2[1]);
|
|
34870
34900
|
}
|
|
34871
|
-
var
|
|
34901
|
+
var ab = { makeSelectable: function(t2, e2) {
|
|
34872
34902
|
t2 !== void 0 && t2.style !== void 0 && (t2.onselectstart = e2 ? function() {
|
|
34873
34903
|
return false;
|
|
34874
34904
|
} : function() {
|
|
34875
34905
|
}, t2.style.MozUserSelect = e2 ? "auto" : "none", t2.style.KhtmlUserSelect = e2 ? "auto" : "none", t2.unselectable = e2 ? "on" : "off");
|
|
34876
34906
|
}, makeFullscreen: function(t2, e2, n2) {
|
|
34877
34907
|
var i2 = n2, r2 = e2;
|
|
34878
|
-
|
|
34908
|
+
Hx.isUndefined(r2) && (r2 = true), Hx.isUndefined(i2) && (i2 = true), t2.style.position = "absolute", r2 && (t2.style.left = 0, t2.style.right = 0), i2 && (t2.style.top = 0, t2.style.bottom = 0);
|
|
34879
34909
|
}, fakeEvent: function(t2, e2, n2, i2) {
|
|
34880
|
-
var r2 = n2 || {}, o2 =
|
|
34910
|
+
var r2 = n2 || {}, o2 = rb[e2];
|
|
34881
34911
|
if (!o2)
|
|
34882
34912
|
throw new Error("Event type " + e2 + " not supported.");
|
|
34883
34913
|
var s2 = document.createEvent(o2);
|
|
@@ -34888,18 +34918,18 @@ void main(void){
|
|
|
34888
34918
|
break;
|
|
34889
34919
|
case "KeyboardEvents":
|
|
34890
34920
|
var h2 = s2.initKeyboardEvent || s2.initKeyEvent;
|
|
34891
|
-
|
|
34921
|
+
Hx.defaults(r2, { cancelable: true, ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, keyCode: void 0, charCode: void 0 }), h2(e2, r2.bubbles || false, r2.cancelable, window, r2.ctrlKey, r2.altKey, r2.shiftKey, r2.metaKey, r2.keyCode, r2.charCode);
|
|
34892
34922
|
break;
|
|
34893
34923
|
default:
|
|
34894
34924
|
s2.initEvent(e2, r2.bubbles || false, r2.cancelable || true);
|
|
34895
34925
|
}
|
|
34896
|
-
|
|
34926
|
+
Hx.defaults(s2, i2), t2.dispatchEvent(s2);
|
|
34897
34927
|
}, bind: function(t2, e2, n2, i2) {
|
|
34898
34928
|
var r2 = i2 || false;
|
|
34899
|
-
return t2.addEventListener ? t2.addEventListener(e2, n2, r2) : t2.attachEvent && t2.attachEvent("on" + e2, n2),
|
|
34929
|
+
return t2.addEventListener ? t2.addEventListener(e2, n2, r2) : t2.attachEvent && t2.attachEvent("on" + e2, n2), ab;
|
|
34900
34930
|
}, unbind: function(t2, e2, n2, i2) {
|
|
34901
34931
|
var r2 = i2 || false;
|
|
34902
|
-
return t2.removeEventListener ? t2.removeEventListener(e2, n2, r2) : t2.detachEvent && t2.detachEvent("on" + e2, n2),
|
|
34932
|
+
return t2.removeEventListener ? t2.removeEventListener(e2, n2, r2) : t2.detachEvent && t2.detachEvent("on" + e2, n2), ab;
|
|
34903
34933
|
}, addClass: function(t2, e2) {
|
|
34904
34934
|
if (t2.className === void 0)
|
|
34905
34935
|
t2.className = e2;
|
|
@@ -34907,7 +34937,7 @@ void main(void){
|
|
|
34907
34937
|
var n2 = t2.className.split(/ +/);
|
|
34908
34938
|
n2.indexOf(e2) === -1 && (n2.push(e2), t2.className = n2.join(" ").replace(/^\s+/, "").replace(/\s+$/, ""));
|
|
34909
34939
|
}
|
|
34910
|
-
return
|
|
34940
|
+
return ab;
|
|
34911
34941
|
}, removeClass: function(t2, e2) {
|
|
34912
34942
|
if (e2)
|
|
34913
34943
|
if (t2.className === e2)
|
|
@@ -34918,15 +34948,15 @@ void main(void){
|
|
|
34918
34948
|
}
|
|
34919
34949
|
else
|
|
34920
34950
|
t2.className = void 0;
|
|
34921
|
-
return
|
|
34951
|
+
return ab;
|
|
34922
34952
|
}, hasClass: function(t2, e2) {
|
|
34923
34953
|
return new RegExp("(?:^|\\s+)" + e2 + "(?:\\s+|$)").test(t2.className) || false;
|
|
34924
34954
|
}, getWidth: function(t2) {
|
|
34925
34955
|
var e2 = getComputedStyle(t2);
|
|
34926
|
-
return
|
|
34956
|
+
return sb(e2["border-left-width"]) + sb(e2["border-right-width"]) + sb(e2["padding-left"]) + sb(e2["padding-right"]) + sb(e2.width);
|
|
34927
34957
|
}, getHeight: function(t2) {
|
|
34928
34958
|
var e2 = getComputedStyle(t2);
|
|
34929
|
-
return
|
|
34959
|
+
return sb(e2["border-top-width"]) + sb(e2["border-bottom-width"]) + sb(e2["padding-top"]) + sb(e2["padding-bottom"]) + sb(e2.height);
|
|
34930
34960
|
}, getOffset: function(t2) {
|
|
34931
34961
|
var e2 = t2, n2 = { left: 0, top: 0 };
|
|
34932
34962
|
if (e2.offsetParent)
|
|
@@ -34936,86 +34966,86 @@ void main(void){
|
|
|
34936
34966
|
return n2;
|
|
34937
34967
|
}, isActive: function(t2) {
|
|
34938
34968
|
return t2 === document.activeElement && (t2.type || t2.href);
|
|
34939
|
-
} },
|
|
34969
|
+
} }, lb = function(t2) {
|
|
34940
34970
|
function e2(t3, n2) {
|
|
34941
|
-
|
|
34942
|
-
var i2 =
|
|
34943
|
-
return i2.__prev = i2.getValue(), i2.__checkbox = document.createElement("input"), i2.__checkbox.setAttribute("type", "checkbox"),
|
|
34971
|
+
Zx(this, e2);
|
|
34972
|
+
var i2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), r2 = i2;
|
|
34973
|
+
return i2.__prev = i2.getValue(), i2.__checkbox = document.createElement("input"), i2.__checkbox.setAttribute("type", "checkbox"), ab.bind(i2.__checkbox, "change", function() {
|
|
34944
34974
|
r2.setValue(!r2.__prev);
|
|
34945
34975
|
}, false), i2.domElement.appendChild(i2.__checkbox), i2.updateDisplay(), i2;
|
|
34946
34976
|
}
|
|
34947
|
-
return
|
|
34948
|
-
var n2 =
|
|
34977
|
+
return Qx(e2, t2), Jx(e2, [{ key: "setValue", value: function(t3) {
|
|
34978
|
+
var n2 = Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "setValue", this).call(this, t3);
|
|
34949
34979
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), this.__prev = this.getValue(), n2;
|
|
34950
34980
|
} }, { key: "updateDisplay", value: function() {
|
|
34951
|
-
return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false),
|
|
34981
|
+
return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false), Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
34952
34982
|
} }]), e2;
|
|
34953
|
-
}(
|
|
34983
|
+
}(ib), hb = function(t2) {
|
|
34954
34984
|
function e2(t3, n2, i2) {
|
|
34955
|
-
|
|
34956
|
-
var r2 =
|
|
34957
|
-
if (r2.__select = document.createElement("select"),
|
|
34985
|
+
Zx(this, e2);
|
|
34986
|
+
var r2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), o2 = i2, s2 = r2;
|
|
34987
|
+
if (r2.__select = document.createElement("select"), Hx.isArray(o2)) {
|
|
34958
34988
|
var a2 = {};
|
|
34959
|
-
|
|
34989
|
+
Hx.each(o2, function(t4) {
|
|
34960
34990
|
a2[t4] = t4;
|
|
34961
34991
|
}), o2 = a2;
|
|
34962
34992
|
}
|
|
34963
|
-
return
|
|
34993
|
+
return Hx.each(o2, function(t4, e3) {
|
|
34964
34994
|
var n3 = document.createElement("option");
|
|
34965
34995
|
n3.innerHTML = e3, n3.setAttribute("value", t4), s2.__select.appendChild(n3);
|
|
34966
|
-
}), r2.updateDisplay(),
|
|
34996
|
+
}), r2.updateDisplay(), ab.bind(r2.__select, "change", function() {
|
|
34967
34997
|
var t4 = this.options[this.selectedIndex].value;
|
|
34968
34998
|
s2.setValue(t4);
|
|
34969
34999
|
}), r2.domElement.appendChild(r2.__select), r2;
|
|
34970
35000
|
}
|
|
34971
|
-
return
|
|
34972
|
-
var n2 =
|
|
35001
|
+
return Qx(e2, t2), Jx(e2, [{ key: "setValue", value: function(t3) {
|
|
35002
|
+
var n2 = Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "setValue", this).call(this, t3);
|
|
34973
35003
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), n2;
|
|
34974
35004
|
} }, { key: "updateDisplay", value: function() {
|
|
34975
|
-
return
|
|
35005
|
+
return ab.isActive(this.__select) ? this : (this.__select.value = this.getValue(), Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this));
|
|
34976
35006
|
} }]), e2;
|
|
34977
|
-
}(
|
|
35007
|
+
}(ib), ub = function(t2) {
|
|
34978
35008
|
function e2(t3, n2) {
|
|
34979
|
-
|
|
34980
|
-
var i2 =
|
|
35009
|
+
Zx(this, e2);
|
|
35010
|
+
var i2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), r2 = i2;
|
|
34981
35011
|
function o2() {
|
|
34982
35012
|
r2.setValue(r2.__input.value);
|
|
34983
35013
|
}
|
|
34984
|
-
return i2.__input = document.createElement("input"), i2.__input.setAttribute("type", "text"),
|
|
35014
|
+
return i2.__input = document.createElement("input"), i2.__input.setAttribute("type", "text"), ab.bind(i2.__input, "keyup", o2), ab.bind(i2.__input, "change", o2), ab.bind(i2.__input, "blur", function() {
|
|
34985
35015
|
r2.__onFinishChange && r2.__onFinishChange.call(r2, r2.getValue());
|
|
34986
|
-
}),
|
|
35016
|
+
}), ab.bind(i2.__input, "keydown", function(t4) {
|
|
34987
35017
|
t4.keyCode === 13 && this.blur();
|
|
34988
35018
|
}), i2.updateDisplay(), i2.domElement.appendChild(i2.__input), i2;
|
|
34989
35019
|
}
|
|
34990
|
-
return
|
|
34991
|
-
return
|
|
35020
|
+
return Qx(e2, t2), Jx(e2, [{ key: "updateDisplay", value: function() {
|
|
35021
|
+
return ab.isActive(this.__input) || (this.__input.value = this.getValue()), Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
34992
35022
|
} }]), e2;
|
|
34993
|
-
}(
|
|
34994
|
-
function
|
|
35023
|
+
}(ib);
|
|
35024
|
+
function cb(t2) {
|
|
34995
35025
|
var e2 = t2.toString();
|
|
34996
35026
|
return e2.indexOf(".") > -1 ? e2.length - e2.indexOf(".") - 1 : 0;
|
|
34997
35027
|
}
|
|
34998
|
-
var
|
|
35028
|
+
var db = function(t2) {
|
|
34999
35029
|
function e2(t3, n2, i2) {
|
|
35000
|
-
|
|
35001
|
-
var r2 =
|
|
35002
|
-
return r2.__min = o2.min, r2.__max = o2.max, r2.__step = o2.step,
|
|
35030
|
+
Zx(this, e2);
|
|
35031
|
+
var r2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), o2 = i2 || {};
|
|
35032
|
+
return r2.__min = o2.min, r2.__max = o2.max, r2.__step = o2.step, Hx.isUndefined(r2.__step) ? r2.initialValue === 0 ? r2.__impliedStep = 1 : r2.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r2.initialValue)) / Math.LN10)) / 10 : r2.__impliedStep = r2.__step, r2.__precision = cb(r2.__impliedStep), r2;
|
|
35003
35033
|
}
|
|
35004
|
-
return
|
|
35034
|
+
return Qx(e2, t2), Jx(e2, [{ key: "setValue", value: function(t3) {
|
|
35005
35035
|
var n2 = t3;
|
|
35006
|
-
return this.__min !== void 0 && n2 < this.__min ? n2 = this.__min : this.__max !== void 0 && n2 > this.__max && (n2 = this.__max), this.__step !== void 0 && n2 % this.__step != 0 && (n2 = Math.round(n2 / this.__step) * this.__step),
|
|
35036
|
+
return this.__min !== void 0 && n2 < this.__min ? n2 = this.__min : this.__max !== void 0 && n2 > this.__max && (n2 = this.__max), this.__step !== void 0 && n2 % this.__step != 0 && (n2 = Math.round(n2 / this.__step) * this.__step), Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "setValue", this).call(this, n2);
|
|
35007
35037
|
} }, { key: "min", value: function(t3) {
|
|
35008
35038
|
return this.__min = t3, this;
|
|
35009
35039
|
} }, { key: "max", value: function(t3) {
|
|
35010
35040
|
return this.__max = t3, this;
|
|
35011
35041
|
} }, { key: "step", value: function(t3) {
|
|
35012
|
-
return this.__step = t3, this.__impliedStep = t3, this.__precision =
|
|
35042
|
+
return this.__step = t3, this.__impliedStep = t3, this.__precision = cb(t3), this;
|
|
35013
35043
|
} }]), e2;
|
|
35014
|
-
}(
|
|
35015
|
-
var
|
|
35044
|
+
}(ib);
|
|
35045
|
+
var pb = function(t2) {
|
|
35016
35046
|
function e2(t3, n2, i2) {
|
|
35017
|
-
|
|
35018
|
-
var r2 =
|
|
35047
|
+
Zx(this, e2);
|
|
35048
|
+
var r2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2, i2));
|
|
35019
35049
|
r2.__truncationSuspended = false;
|
|
35020
35050
|
var o2 = r2, s2 = void 0;
|
|
35021
35051
|
function a2() {
|
|
@@ -35026,101 +35056,101 @@ void main(void){
|
|
|
35026
35056
|
o2.setValue(o2.getValue() + e3 * o2.__impliedStep), s2 = t4.clientY;
|
|
35027
35057
|
}
|
|
35028
35058
|
function h2() {
|
|
35029
|
-
|
|
35059
|
+
ab.unbind(window, "mousemove", l2), ab.unbind(window, "mouseup", h2), a2();
|
|
35030
35060
|
}
|
|
35031
|
-
return r2.__input = document.createElement("input"), r2.__input.setAttribute("type", "text"),
|
|
35061
|
+
return r2.__input = document.createElement("input"), r2.__input.setAttribute("type", "text"), ab.bind(r2.__input, "change", function() {
|
|
35032
35062
|
var t4 = parseFloat(o2.__input.value);
|
|
35033
|
-
|
|
35034
|
-
}),
|
|
35063
|
+
Hx.isNaN(t4) || o2.setValue(t4);
|
|
35064
|
+
}), ab.bind(r2.__input, "blur", function() {
|
|
35035
35065
|
a2();
|
|
35036
|
-
}),
|
|
35037
|
-
|
|
35038
|
-
}),
|
|
35066
|
+
}), ab.bind(r2.__input, "mousedown", function(t4) {
|
|
35067
|
+
ab.bind(window, "mousemove", l2), ab.bind(window, "mouseup", h2), s2 = t4.clientY;
|
|
35068
|
+
}), ab.bind(r2.__input, "keydown", function(t4) {
|
|
35039
35069
|
t4.keyCode === 13 && (o2.__truncationSuspended = true, this.blur(), o2.__truncationSuspended = false, a2());
|
|
35040
35070
|
}), r2.updateDisplay(), r2.domElement.appendChild(r2.__input), r2;
|
|
35041
35071
|
}
|
|
35042
|
-
return
|
|
35072
|
+
return Qx(e2, t2), Jx(e2, [{ key: "updateDisplay", value: function() {
|
|
35043
35073
|
var t3, n2, i2;
|
|
35044
|
-
return this.__input.value = this.__truncationSuspended ? this.getValue() : (t3 = this.getValue(), n2 = this.__precision, i2 = Math.pow(10, n2), Math.round(t3 * i2) / i2),
|
|
35074
|
+
return this.__input.value = this.__truncationSuspended ? this.getValue() : (t3 = this.getValue(), n2 = this.__precision, i2 = Math.pow(10, n2), Math.round(t3 * i2) / i2), Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
35045
35075
|
} }]), e2;
|
|
35046
|
-
}(
|
|
35047
|
-
function
|
|
35076
|
+
}(db);
|
|
35077
|
+
function fb(t2, e2, n2, i2, r2) {
|
|
35048
35078
|
return i2 + (t2 - e2) / (n2 - e2) * (r2 - i2);
|
|
35049
35079
|
}
|
|
35050
|
-
var
|
|
35080
|
+
var mb = function(t2) {
|
|
35051
35081
|
function e2(t3, n2, i2, r2, o2) {
|
|
35052
|
-
|
|
35053
|
-
var s2 =
|
|
35082
|
+
Zx(this, e2);
|
|
35083
|
+
var s2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2, { min: i2, max: r2, step: o2 })), a2 = s2;
|
|
35054
35084
|
function l2(t4) {
|
|
35055
35085
|
t4.preventDefault();
|
|
35056
35086
|
var e3 = a2.__background.getBoundingClientRect();
|
|
35057
|
-
return a2.setValue(
|
|
35087
|
+
return a2.setValue(fb(t4.clientX, e3.left, e3.right, a2.__min, a2.__max)), false;
|
|
35058
35088
|
}
|
|
35059
35089
|
function h2() {
|
|
35060
|
-
|
|
35090
|
+
ab.unbind(window, "mousemove", l2), ab.unbind(window, "mouseup", h2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
35061
35091
|
}
|
|
35062
35092
|
function u2(t4) {
|
|
35063
35093
|
var e3 = t4.touches[0].clientX, n3 = a2.__background.getBoundingClientRect();
|
|
35064
|
-
a2.setValue(
|
|
35094
|
+
a2.setValue(fb(e3, n3.left, n3.right, a2.__min, a2.__max));
|
|
35065
35095
|
}
|
|
35066
35096
|
function c2() {
|
|
35067
|
-
|
|
35097
|
+
ab.unbind(window, "touchmove", u2), ab.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
35068
35098
|
}
|
|
35069
|
-
return s2.__background = document.createElement("div"), s2.__foreground = document.createElement("div"),
|
|
35070
|
-
document.activeElement.blur(),
|
|
35071
|
-
}),
|
|
35099
|
+
return s2.__background = document.createElement("div"), s2.__foreground = document.createElement("div"), ab.bind(s2.__background, "mousedown", function(t4) {
|
|
35100
|
+
document.activeElement.blur(), ab.bind(window, "mousemove", l2), ab.bind(window, "mouseup", h2), l2(t4);
|
|
35101
|
+
}), ab.bind(s2.__background, "touchstart", function(t4) {
|
|
35072
35102
|
if (t4.touches.length !== 1)
|
|
35073
35103
|
return;
|
|
35074
|
-
|
|
35075
|
-
}),
|
|
35104
|
+
ab.bind(window, "touchmove", u2), ab.bind(window, "touchend", c2), u2(t4);
|
|
35105
|
+
}), ab.addClass(s2.__background, "slider"), ab.addClass(s2.__foreground, "slider-fg"), s2.updateDisplay(), s2.__background.appendChild(s2.__foreground), s2.domElement.appendChild(s2.__background), s2;
|
|
35076
35106
|
}
|
|
35077
|
-
return
|
|
35107
|
+
return Qx(e2, t2), Jx(e2, [{ key: "updateDisplay", value: function() {
|
|
35078
35108
|
var t3 = (this.getValue() - this.__min) / (this.__max - this.__min);
|
|
35079
|
-
return this.__foreground.style.width = 100 * t3 + "%",
|
|
35109
|
+
return this.__foreground.style.width = 100 * t3 + "%", Kx(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
35080
35110
|
} }]), e2;
|
|
35081
|
-
}(
|
|
35111
|
+
}(db), gb = function(t2) {
|
|
35082
35112
|
function e2(t3, n2, i2) {
|
|
35083
|
-
|
|
35084
|
-
var r2 =
|
|
35085
|
-
return r2.__button = document.createElement("div"), r2.__button.innerHTML = i2 === void 0 ? "Fire" : i2,
|
|
35113
|
+
Zx(this, e2);
|
|
35114
|
+
var r2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), o2 = r2;
|
|
35115
|
+
return r2.__button = document.createElement("div"), r2.__button.innerHTML = i2 === void 0 ? "Fire" : i2, ab.bind(r2.__button, "click", function(t4) {
|
|
35086
35116
|
return t4.preventDefault(), o2.fire(), false;
|
|
35087
|
-
}),
|
|
35117
|
+
}), ab.addClass(r2.__button, "button"), r2.domElement.appendChild(r2.__button), r2;
|
|
35088
35118
|
}
|
|
35089
|
-
return
|
|
35119
|
+
return Qx(e2, t2), Jx(e2, [{ key: "fire", value: function() {
|
|
35090
35120
|
this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
|
|
35091
35121
|
} }]), e2;
|
|
35092
|
-
}(
|
|
35122
|
+
}(ib), vb = function(t2) {
|
|
35093
35123
|
function e2(t3, n2) {
|
|
35094
|
-
|
|
35095
|
-
var i2 =
|
|
35096
|
-
i2.__color = new
|
|
35124
|
+
Zx(this, e2);
|
|
35125
|
+
var i2 = $x(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2));
|
|
35126
|
+
i2.__color = new tb(i2.getValue()), i2.__temp = new tb(0);
|
|
35097
35127
|
var r2 = i2;
|
|
35098
|
-
i2.domElement = document.createElement("div"),
|
|
35128
|
+
i2.domElement = document.createElement("div"), ab.makeSelectable(i2.domElement, false), i2.__selector = document.createElement("div"), i2.__selector.className = "selector", i2.__saturation_field = document.createElement("div"), i2.__saturation_field.className = "saturation-field", i2.__field_knob = document.createElement("div"), i2.__field_knob.className = "field-knob", i2.__field_knob_border = "2px solid ", i2.__hue_knob = document.createElement("div"), i2.__hue_knob.className = "hue-knob", i2.__hue_field = document.createElement("div"), i2.__hue_field.className = "hue-field", i2.__input = document.createElement("input"), i2.__input.type = "text", i2.__input_textShadow = "0 1px 1px ", ab.bind(i2.__input, "keydown", function(t4) {
|
|
35099
35129
|
t4.keyCode === 13 && c2.call(this);
|
|
35100
|
-
}),
|
|
35101
|
-
|
|
35102
|
-
|
|
35130
|
+
}), ab.bind(i2.__input, "blur", c2), ab.bind(i2.__selector, "mousedown", function() {
|
|
35131
|
+
ab.addClass(this, "drag").bind(window, "mouseup", function() {
|
|
35132
|
+
ab.removeClass(r2.__selector, "drag");
|
|
35103
35133
|
});
|
|
35104
|
-
}),
|
|
35105
|
-
|
|
35106
|
-
|
|
35134
|
+
}), ab.bind(i2.__selector, "touchstart", function() {
|
|
35135
|
+
ab.addClass(this, "drag").bind(window, "touchend", function() {
|
|
35136
|
+
ab.removeClass(r2.__selector, "drag");
|
|
35107
35137
|
});
|
|
35108
35138
|
});
|
|
35109
35139
|
var o2, s2 = document.createElement("div");
|
|
35110
35140
|
function a2(t4) {
|
|
35111
|
-
p2(t4),
|
|
35141
|
+
p2(t4), ab.bind(window, "mousemove", p2), ab.bind(window, "touchmove", p2), ab.bind(window, "mouseup", h2), ab.bind(window, "touchend", h2);
|
|
35112
35142
|
}
|
|
35113
35143
|
function l2(t4) {
|
|
35114
|
-
f2(t4),
|
|
35144
|
+
f2(t4), ab.bind(window, "mousemove", f2), ab.bind(window, "touchmove", f2), ab.bind(window, "mouseup", u2), ab.bind(window, "touchend", u2);
|
|
35115
35145
|
}
|
|
35116
35146
|
function h2() {
|
|
35117
|
-
|
|
35147
|
+
ab.unbind(window, "mousemove", p2), ab.unbind(window, "touchmove", p2), ab.unbind(window, "mouseup", h2), ab.unbind(window, "touchend", h2), d2();
|
|
35118
35148
|
}
|
|
35119
35149
|
function u2() {
|
|
35120
|
-
|
|
35150
|
+
ab.unbind(window, "mousemove", f2), ab.unbind(window, "touchmove", f2), ab.unbind(window, "mouseup", u2), ab.unbind(window, "touchend", u2), d2();
|
|
35121
35151
|
}
|
|
35122
35152
|
function c2() {
|
|
35123
|
-
var t4 =
|
|
35153
|
+
var t4 = Xx(this.value);
|
|
35124
35154
|
t4 !== false ? (r2.__color.__state = t4, r2.setValue(r2.__color.toOriginal())) : this.value = r2.__color.toString();
|
|
35125
35155
|
}
|
|
35126
35156
|
function d2() {
|
|
@@ -35136,28 +35166,28 @@ void main(void){
|
|
|
35136
35166
|
var e3 = r2.__hue_field.getBoundingClientRect(), n3 = 1 - ((t4.touches && t4.touches[0] || t4).clientY - e3.top) / (e3.bottom - e3.top);
|
|
35137
35167
|
return n3 > 1 ? n3 = 1 : n3 < 0 && (n3 = 0), r2.__color.h = 360 * n3, r2.setValue(r2.__color.toOriginal()), false;
|
|
35138
35168
|
}
|
|
35139
|
-
return
|
|
35169
|
+
return Hx.extend(i2.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), Hx.extend(i2.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i2.__field_knob_border + (i2.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), Hx.extend(i2.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), Hx.extend(i2.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), Hx.extend(s2.style, { width: "100%", height: "100%", background: "none" }), yb(s2, "top", "rgba(0,0,0,0)", "#000"), Hx.extend(i2.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o2 = i2.__hue_field).style.background = "", o2.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);", o2.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", Hx.extend(i2.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: i2.__input_textShadow + "rgba(0,0,0,0.7)" }), ab.bind(i2.__saturation_field, "mousedown", a2), ab.bind(i2.__saturation_field, "touchstart", a2), ab.bind(i2.__field_knob, "mousedown", a2), ab.bind(i2.__field_knob, "touchstart", a2), ab.bind(i2.__hue_field, "mousedown", l2), ab.bind(i2.__hue_field, "touchstart", l2), i2.__saturation_field.appendChild(s2), i2.__selector.appendChild(i2.__field_knob), i2.__selector.appendChild(i2.__saturation_field), i2.__selector.appendChild(i2.__hue_field), i2.__hue_field.appendChild(i2.__hue_knob), i2.domElement.appendChild(i2.__input), i2.domElement.appendChild(i2.__selector), i2.updateDisplay(), i2;
|
|
35140
35170
|
}
|
|
35141
|
-
return
|
|
35142
|
-
var t3 =
|
|
35171
|
+
return Qx(e2, t2), Jx(e2, [{ key: "updateDisplay", value: function() {
|
|
35172
|
+
var t3 = Xx(this.getValue());
|
|
35143
35173
|
if (t3 !== false) {
|
|
35144
35174
|
var e3 = false;
|
|
35145
|
-
|
|
35146
|
-
if (!
|
|
35175
|
+
Hx.each(tb.COMPONENTS, function(n3) {
|
|
35176
|
+
if (!Hx.isUndefined(t3[n3]) && !Hx.isUndefined(this.__color.__state[n3]) && t3[n3] !== this.__color.__state[n3])
|
|
35147
35177
|
return e3 = true, {};
|
|
35148
|
-
}, this), e3 &&
|
|
35178
|
+
}, this), e3 && Hx.extend(this.__color.__state, t3);
|
|
35149
35179
|
}
|
|
35150
|
-
|
|
35180
|
+
Hx.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
|
|
35151
35181
|
var n2 = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0, i2 = 255 - n2;
|
|
35152
|
-
|
|
35182
|
+
Hx.extend(this.__field_knob.style, { marginLeft: 100 * this.__color.s - 7 + "px", marginTop: 100 * (1 - this.__color.v) - 7 + "px", backgroundColor: this.__temp.toHexString(), border: this.__field_knob_border + "rgb(" + n2 + "," + n2 + "," + n2 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, yb(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), Hx.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + n2 + "," + n2 + "," + n2 + ")", textShadow: this.__input_textShadow + "rgba(" + i2 + "," + i2 + "," + i2 + ",.7)" });
|
|
35153
35183
|
} }]), e2;
|
|
35154
|
-
}(
|
|
35155
|
-
function
|
|
35156
|
-
t2.style.background = "",
|
|
35184
|
+
}(ib), _b = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
|
|
35185
|
+
function yb(t2, e2, n2, i2) {
|
|
35186
|
+
t2.style.background = "", Hx.each(_b, function(r2) {
|
|
35157
35187
|
t2.style.cssText += "background: " + r2 + "linear-gradient(" + e2 + ", " + n2 + " 0%, " + i2 + " 100%); ";
|
|
35158
35188
|
});
|
|
35159
35189
|
}
|
|
35160
|
-
var
|
|
35190
|
+
var xb = function(t2, e2) {
|
|
35161
35191
|
var n2 = e2 || document, i2 = document.createElement("style");
|
|
35162
35192
|
i2.type = "text/css", i2.innerHTML = t2;
|
|
35163
35193
|
var r2 = n2.getElementsByTagName("head")[0];
|
|
@@ -35165,7 +35195,7 @@ void main(void){
|
|
|
35165
35195
|
r2.appendChild(i2);
|
|
35166
35196
|
} catch (t3) {
|
|
35167
35197
|
}
|
|
35168
|
-
},
|
|
35198
|
+
}, bb = `<div id="dg-save" class="dg dialogue">
|
|
35169
35199
|
|
|
35170
35200
|
Here's the new load parameter for your <code>GUI</code>'s constructor:
|
|
35171
35201
|
|
|
@@ -35185,50 +35215,50 @@ void main(void){
|
|
|
35185
35215
|
|
|
35186
35216
|
</div>
|
|
35187
35217
|
|
|
35188
|
-
</div>`,
|
|
35218
|
+
</div>`, Tb = function(t2, e2) {
|
|
35189
35219
|
var n2 = t2[e2];
|
|
35190
|
-
return
|
|
35220
|
+
return Hx.isArray(arguments[2]) || Hx.isObject(arguments[2]) ? new hb(t2, e2, arguments[2]) : Hx.isNumber(n2) ? Hx.isNumber(arguments[2]) && Hx.isNumber(arguments[3]) ? Hx.isNumber(arguments[4]) ? new mb(t2, e2, arguments[2], arguments[3], arguments[4]) : new mb(t2, e2, arguments[2], arguments[3]) : Hx.isNumber(arguments[4]) ? new pb(t2, e2, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new pb(t2, e2, { min: arguments[2], max: arguments[3] }) : Hx.isString(n2) ? new ub(t2, e2) : Hx.isFunction(n2) ? new gb(t2, e2, "") : Hx.isBoolean(n2) ? new lb(t2, e2) : null;
|
|
35191
35221
|
};
|
|
35192
|
-
var
|
|
35222
|
+
var Eb = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t2) {
|
|
35193
35223
|
setTimeout(t2, 1e3 / 60);
|
|
35194
|
-
},
|
|
35224
|
+
}, Sb = function() {
|
|
35195
35225
|
function t2() {
|
|
35196
|
-
|
|
35226
|
+
Zx(this, t2), this.backgroundElement = document.createElement("div"), Hx.extend(this.backgroundElement.style, { backgroundColor: "rgba(0,0,0,0.8)", top: 0, left: 0, display: "none", zIndex: "1000", opacity: 0, WebkitTransition: "opacity 0.2s linear", transition: "opacity 0.2s linear" }), ab.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), Hx.extend(this.domElement.style, { position: "fixed", display: "none", zIndex: "1001", opacity: 0, WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear", transition: "transform 0.2s ease-out, opacity 0.2s linear" }), document.body.appendChild(this.backgroundElement), document.body.appendChild(this.domElement);
|
|
35197
35227
|
var e2 = this;
|
|
35198
|
-
|
|
35228
|
+
ab.bind(this.backgroundElement, "click", function() {
|
|
35199
35229
|
e2.hide();
|
|
35200
35230
|
});
|
|
35201
35231
|
}
|
|
35202
|
-
return
|
|
35232
|
+
return Jx(t2, [{ key: "show", value: function() {
|
|
35203
35233
|
var t3 = this;
|
|
35204
|
-
this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(),
|
|
35234
|
+
this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(), Hx.defer(function() {
|
|
35205
35235
|
t3.backgroundElement.style.opacity = 1, t3.domElement.style.opacity = 1, t3.domElement.style.webkitTransform = "scale(1)";
|
|
35206
35236
|
});
|
|
35207
35237
|
} }, { key: "hide", value: function() {
|
|
35208
35238
|
var t3 = this, e2 = function e3() {
|
|
35209
|
-
t3.domElement.style.display = "none", t3.backgroundElement.style.display = "none",
|
|
35239
|
+
t3.domElement.style.display = "none", t3.backgroundElement.style.display = "none", ab.unbind(t3.domElement, "webkitTransitionEnd", e3), ab.unbind(t3.domElement, "transitionend", e3), ab.unbind(t3.domElement, "oTransitionEnd", e3);
|
|
35210
35240
|
};
|
|
35211
|
-
|
|
35241
|
+
ab.bind(this.domElement, "webkitTransitionEnd", e2), ab.bind(this.domElement, "transitionend", e2), ab.bind(this.domElement, "oTransitionEnd", e2), this.backgroundElement.style.opacity = 0, this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)";
|
|
35212
35242
|
} }, { key: "layout", value: function() {
|
|
35213
|
-
this.domElement.style.left = window.innerWidth / 2 -
|
|
35243
|
+
this.domElement.style.left = window.innerWidth / 2 - ab.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - ab.getHeight(this.domElement) / 2 + "px";
|
|
35214
35244
|
} }]), t2;
|
|
35215
35245
|
}();
|
|
35216
|
-
|
|
35246
|
+
xb(function(t2) {
|
|
35217
35247
|
if (t2 && typeof window != "undefined") {
|
|
35218
35248
|
var e2 = document.createElement("style");
|
|
35219
35249
|
return e2.setAttribute("type", "text/css"), e2.innerHTML = t2, document.head.appendChild(e2), t2;
|
|
35220
35250
|
}
|
|
35221
35251
|
}(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
|
|
35222
|
-
var
|
|
35252
|
+
var wb = function() {
|
|
35223
35253
|
try {
|
|
35224
35254
|
return !!window.localStorage;
|
|
35225
35255
|
} catch (t2) {
|
|
35226
35256
|
return false;
|
|
35227
35257
|
}
|
|
35228
|
-
}(),
|
|
35258
|
+
}(), Ab = void 0, Mb = true, Rb = void 0, Cb = false, Pb = [], Ib = function t2(e2) {
|
|
35229
35259
|
var n2 = this, i2 = e2 || {};
|
|
35230
|
-
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul),
|
|
35231
|
-
var r2, o2 =
|
|
35260
|
+
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), ab.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], i2 = Hx.defaults(i2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), i2 = Hx.defaults(i2, { resizable: i2.autoPlace, hideable: i2.autoPlace }), Hx.isUndefined(i2.load) ? i2.load = { preset: "Default" } : i2.preset && (i2.load.preset = i2.preset), Hx.isUndefined(i2.parent) && i2.hideable && Pb.push(this), i2.resizable = Hx.isUndefined(i2.parent) && i2.resizable, i2.autoPlace && Hx.isUndefined(i2.scrollable) && (i2.scrollable = true);
|
|
35261
|
+
var r2, o2 = wb && localStorage.getItem(Bb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
|
|
35232
35262
|
if (Object.defineProperties(this, { parent: { get: function() {
|
|
35233
35263
|
return i2.parent;
|
|
35234
35264
|
} }, scrollable: { get: function() {
|
|
@@ -35247,7 +35277,7 @@ void main(void){
|
|
|
35247
35277
|
} }, width: { get: function() {
|
|
35248
35278
|
return i2.width;
|
|
35249
35279
|
}, set: function(t3) {
|
|
35250
|
-
i2.width = t3,
|
|
35280
|
+
i2.width = t3, jb(n2, t3);
|
|
35251
35281
|
} }, name: { get: function() {
|
|
35252
35282
|
return i2.name;
|
|
35253
35283
|
}, set: function(t3) {
|
|
@@ -35255,50 +35285,50 @@ void main(void){
|
|
|
35255
35285
|
} }, closed: { get: function() {
|
|
35256
35286
|
return i2.closed;
|
|
35257
35287
|
}, set: function(e3) {
|
|
35258
|
-
i2.closed = e3, i2.closed ?
|
|
35288
|
+
i2.closed = e3, i2.closed ? ab.addClass(n2.__ul, t2.CLASS_CLOSED) : ab.removeClass(n2.__ul, t2.CLASS_CLOSED), this.onResize(), n2.__closeButton && (n2.__closeButton.innerHTML = e3 ? t2.TEXT_OPEN : t2.TEXT_CLOSED);
|
|
35259
35289
|
} }, load: { get: function() {
|
|
35260
35290
|
return i2.load;
|
|
35261
35291
|
} }, useLocalStorage: { get: function() {
|
|
35262
35292
|
return o2;
|
|
35263
35293
|
}, set: function(t3) {
|
|
35264
|
-
|
|
35265
|
-
} } }),
|
|
35266
|
-
if (this.closed = i2.closed || false,
|
|
35294
|
+
wb && (o2 = t3, t3 ? ab.bind(window, "unload", s2) : ab.unbind(window, "unload", s2), localStorage.setItem(Bb(n2, "isLocal"), t3));
|
|
35295
|
+
} } }), Hx.isUndefined(i2.parent)) {
|
|
35296
|
+
if (this.closed = i2.closed || false, ab.addClass(this.domElement, t2.CLASS_MAIN), ab.makeSelectable(this.domElement, false), wb && o2) {
|
|
35267
35297
|
n2.useLocalStorage = true;
|
|
35268
|
-
var l2 = localStorage.getItem(
|
|
35298
|
+
var l2 = localStorage.getItem(Bb(this, "gui"));
|
|
35269
35299
|
l2 && (i2.load = JSON.parse(l2));
|
|
35270
35300
|
}
|
|
35271
|
-
this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t2.TEXT_CLOSED,
|
|
35301
|
+
this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t2.TEXT_CLOSED, ab.addClass(this.__closeButton, t2.CLASS_CLOSE_BUTTON), i2.closeOnTop ? (ab.addClass(this.__closeButton, t2.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (ab.addClass(this.__closeButton, t2.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), ab.bind(this.__closeButton, "click", function() {
|
|
35272
35302
|
n2.closed = !n2.closed;
|
|
35273
35303
|
});
|
|
35274
35304
|
} else {
|
|
35275
35305
|
i2.closed === void 0 && (i2.closed = true);
|
|
35276
35306
|
var h2 = document.createTextNode(i2.name);
|
|
35277
|
-
|
|
35278
|
-
|
|
35307
|
+
ab.addClass(h2, "controller-name"), a2 = Ob(n2, h2);
|
|
35308
|
+
ab.addClass(this.__ul, t2.CLASS_CLOSED), ab.addClass(a2, "title"), ab.bind(a2, "click", function(t3) {
|
|
35279
35309
|
return t3.preventDefault(), n2.closed = !n2.closed, false;
|
|
35280
35310
|
}), i2.closed || (this.closed = false);
|
|
35281
35311
|
}
|
|
35282
|
-
i2.autoPlace && (
|
|
35312
|
+
i2.autoPlace && (Hx.isUndefined(i2.parent) && (Mb && (Rb = document.createElement("div"), ab.addClass(Rb, "dg"), ab.addClass(Rb, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(Rb), Mb = false), Rb.appendChild(this.domElement), ab.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || jb(n2, i2.width)), this.__resizeHandler = function() {
|
|
35283
35313
|
n2.onResizeDebounced();
|
|
35284
|
-
},
|
|
35285
|
-
|
|
35286
|
-
}, this.saveToLocalStorageIfPossible = s2, i2.parent || ((r2 = n2.getRoot()).width += 1,
|
|
35314
|
+
}, ab.bind(window, "resize", this.__resizeHandler), ab.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), ab.bind(this.__ul, "transitionend", this.__resizeHandler), ab.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), i2.resizable && Hb(this), s2 = function() {
|
|
35315
|
+
wb && localStorage.getItem(Bb(n2, "isLocal")) === "true" && localStorage.setItem(Bb(n2, "gui"), JSON.stringify(n2.getSaveObject()));
|
|
35316
|
+
}, this.saveToLocalStorageIfPossible = s2, i2.parent || ((r2 = n2.getRoot()).width += 1, Hx.defer(function() {
|
|
35287
35317
|
r2.width -= 1;
|
|
35288
35318
|
}));
|
|
35289
35319
|
};
|
|
35290
|
-
function
|
|
35320
|
+
function Ob(t2, e2, n2) {
|
|
35291
35321
|
var i2 = document.createElement("li");
|
|
35292
35322
|
return e2 && i2.appendChild(e2), n2 ? t2.__ul.insertBefore(i2, n2) : t2.__ul.appendChild(i2), t2.onResize(), i2;
|
|
35293
35323
|
}
|
|
35294
|
-
function
|
|
35295
|
-
|
|
35324
|
+
function Nb(t2) {
|
|
35325
|
+
ab.unbind(window, "resize", t2.__resizeHandler), t2.saveToLocalStorageIfPossible && ab.unbind(window, "unload", t2.saveToLocalStorageIfPossible);
|
|
35296
35326
|
}
|
|
35297
|
-
function
|
|
35327
|
+
function Lb(t2, e2) {
|
|
35298
35328
|
var n2 = t2.__preset_select[t2.__preset_select.selectedIndex];
|
|
35299
35329
|
n2.innerHTML = e2 ? n2.value + "*" : n2.value;
|
|
35300
35330
|
}
|
|
35301
|
-
function
|
|
35331
|
+
function Db(t2, e2) {
|
|
35302
35332
|
var n2 = t2.getRoot(), i2 = n2.__rememberedObjects.indexOf(e2.object);
|
|
35303
35333
|
if (i2 !== -1) {
|
|
35304
35334
|
var r2 = n2.__rememberedObjectIndecesToControllers[i2];
|
|
@@ -35318,31 +35348,31 @@ void main(void){
|
|
|
35318
35348
|
}
|
|
35319
35349
|
}
|
|
35320
35350
|
}
|
|
35321
|
-
function
|
|
35351
|
+
function Fb(t2, e2, n2, i2) {
|
|
35322
35352
|
if (e2[n2] === void 0)
|
|
35323
35353
|
throw new Error('Object "' + e2 + '" has no property "' + n2 + '"');
|
|
35324
35354
|
var r2 = void 0;
|
|
35325
35355
|
if (i2.color)
|
|
35326
|
-
r2 = new
|
|
35356
|
+
r2 = new vb(e2, n2);
|
|
35327
35357
|
else {
|
|
35328
35358
|
var o2 = [e2, n2].concat(i2.factoryArgs);
|
|
35329
|
-
r2 =
|
|
35359
|
+
r2 = Tb.apply(t2, o2);
|
|
35330
35360
|
}
|
|
35331
|
-
i2.before instanceof
|
|
35361
|
+
i2.before instanceof ib && (i2.before = i2.before.__li), Db(t2, r2), ab.addClass(r2.domElement, "c");
|
|
35332
35362
|
var s2 = document.createElement("span");
|
|
35333
|
-
|
|
35363
|
+
ab.addClass(s2, "property-name"), s2.innerHTML = r2.property;
|
|
35334
35364
|
var a2 = document.createElement("div");
|
|
35335
35365
|
a2.appendChild(s2), a2.appendChild(r2.domElement);
|
|
35336
|
-
var l2 =
|
|
35337
|
-
return
|
|
35338
|
-
if (n3.__li = e3, n3.__gui = t3,
|
|
35366
|
+
var l2 = Ob(t2, a2, i2.before);
|
|
35367
|
+
return ab.addClass(l2, Ib.CLASS_CONTROLLER_ROW), r2 instanceof vb ? ab.addClass(l2, "color") : ab.addClass(l2, qx(r2.getValue())), function(t3, e3, n3) {
|
|
35368
|
+
if (n3.__li = e3, n3.__gui = t3, Hx.extend(n3, { options: function(e4) {
|
|
35339
35369
|
if (arguments.length > 1) {
|
|
35340
35370
|
var i4 = n3.__li.nextElementSibling;
|
|
35341
|
-
return n3.remove(),
|
|
35371
|
+
return n3.remove(), Fb(t3, n3.object, n3.property, { before: i4, factoryArgs: [Hx.toArray(arguments)] });
|
|
35342
35372
|
}
|
|
35343
|
-
if (
|
|
35373
|
+
if (Hx.isArray(e4) || Hx.isObject(e4)) {
|
|
35344
35374
|
var r4 = n3.__li.nextElementSibling;
|
|
35345
|
-
return n3.remove(),
|
|
35375
|
+
return n3.remove(), Fb(t3, n3.object, n3.property, { before: r4, factoryArgs: [e4] });
|
|
35346
35376
|
}
|
|
35347
35377
|
}, name: function(t4) {
|
|
35348
35378
|
return n3.__li.firstElementChild.firstElementChild.innerHTML = t4, n3;
|
|
@@ -35350,157 +35380,157 @@ void main(void){
|
|
|
35350
35380
|
return n3.__gui.listen(n3), n3;
|
|
35351
35381
|
}, remove: function() {
|
|
35352
35382
|
return n3.__gui.remove(n3), n3;
|
|
35353
|
-
} }), n3 instanceof
|
|
35354
|
-
var i3 = new
|
|
35355
|
-
|
|
35383
|
+
} }), n3 instanceof mb) {
|
|
35384
|
+
var i3 = new pb(n3.object, n3.property, { min: n3.__min, max: n3.__max, step: n3.__step });
|
|
35385
|
+
Hx.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t4) {
|
|
35356
35386
|
var e4 = n3[t4], r4 = i3[t4];
|
|
35357
35387
|
n3[t4] = i3[t4] = function() {
|
|
35358
35388
|
var t5 = Array.prototype.slice.call(arguments);
|
|
35359
35389
|
return r4.apply(i3, t5), e4.apply(n3, t5);
|
|
35360
35390
|
};
|
|
35361
|
-
}),
|
|
35362
|
-
} else if (n3 instanceof
|
|
35391
|
+
}), ab.addClass(e3, "has-slider"), n3.domElement.insertBefore(i3.domElement, n3.domElement.firstElementChild);
|
|
35392
|
+
} else if (n3 instanceof pb) {
|
|
35363
35393
|
var r3 = function(e4) {
|
|
35364
|
-
if (
|
|
35394
|
+
if (Hx.isNumber(n3.__min) && Hx.isNumber(n3.__max)) {
|
|
35365
35395
|
var i4 = n3.__li.firstElementChild.firstElementChild.innerHTML, r4 = n3.__gui.__listening.indexOf(n3) > -1;
|
|
35366
35396
|
n3.remove();
|
|
35367
|
-
var o3 =
|
|
35397
|
+
var o3 = Fb(t3, n3.object, n3.property, { before: n3.__li.nextElementSibling, factoryArgs: [n3.__min, n3.__max, n3.__step] });
|
|
35368
35398
|
return o3.name(i4), r4 && o3.listen(), o3;
|
|
35369
35399
|
}
|
|
35370
35400
|
return e4;
|
|
35371
35401
|
};
|
|
35372
|
-
n3.min =
|
|
35402
|
+
n3.min = Hx.compose(r3, n3.min), n3.max = Hx.compose(r3, n3.max);
|
|
35373
35403
|
} else
|
|
35374
|
-
n3 instanceof
|
|
35375
|
-
|
|
35376
|
-
}),
|
|
35404
|
+
n3 instanceof lb ? (ab.bind(e3, "click", function() {
|
|
35405
|
+
ab.fakeEvent(n3.__checkbox, "click");
|
|
35406
|
+
}), ab.bind(n3.__checkbox, "click", function(t4) {
|
|
35377
35407
|
t4.stopPropagation();
|
|
35378
|
-
})) : n3 instanceof
|
|
35379
|
-
|
|
35380
|
-
}),
|
|
35381
|
-
|
|
35382
|
-
}),
|
|
35383
|
-
|
|
35384
|
-
})) : n3 instanceof
|
|
35408
|
+
})) : n3 instanceof gb ? (ab.bind(e3, "click", function() {
|
|
35409
|
+
ab.fakeEvent(n3.__button, "click");
|
|
35410
|
+
}), ab.bind(e3, "mouseover", function() {
|
|
35411
|
+
ab.addClass(n3.__button, "hover");
|
|
35412
|
+
}), ab.bind(e3, "mouseout", function() {
|
|
35413
|
+
ab.removeClass(n3.__button, "hover");
|
|
35414
|
+
})) : n3 instanceof vb && (ab.addClass(e3, "color"), n3.updateDisplay = Hx.compose(function(t4) {
|
|
35385
35415
|
return e3.style.borderLeftColor = n3.__color.toString(), t4;
|
|
35386
35416
|
}, n3.updateDisplay), n3.updateDisplay());
|
|
35387
|
-
n3.setValue =
|
|
35388
|
-
return t3.getRoot().__preset_select && n3.isModified() &&
|
|
35417
|
+
n3.setValue = Hx.compose(function(e4) {
|
|
35418
|
+
return t3.getRoot().__preset_select && n3.isModified() && Lb(t3.getRoot(), true), e4;
|
|
35389
35419
|
}, n3.setValue);
|
|
35390
35420
|
}(t2, l2, r2), t2.__controllers.push(r2), r2;
|
|
35391
35421
|
}
|
|
35392
|
-
function
|
|
35422
|
+
function Bb(t2, e2) {
|
|
35393
35423
|
return document.location.href + "." + e2;
|
|
35394
35424
|
}
|
|
35395
|
-
function
|
|
35425
|
+
function Ub(t2, e2, n2) {
|
|
35396
35426
|
var i2 = document.createElement("option");
|
|
35397
35427
|
i2.innerHTML = e2, i2.value = e2, t2.__preset_select.appendChild(i2), n2 && (t2.__preset_select.selectedIndex = t2.__preset_select.length - 1);
|
|
35398
35428
|
}
|
|
35399
|
-
function
|
|
35429
|
+
function kb(t2, e2) {
|
|
35400
35430
|
e2.style.display = t2.useLocalStorage ? "block" : "none";
|
|
35401
35431
|
}
|
|
35402
|
-
function
|
|
35432
|
+
function Gb(t2) {
|
|
35403
35433
|
var e2 = t2.__save_row = document.createElement("li");
|
|
35404
|
-
|
|
35434
|
+
ab.addClass(t2.domElement, "has-save"), t2.__ul.insertBefore(e2, t2.__ul.firstChild), ab.addClass(e2, "save-row");
|
|
35405
35435
|
var n2 = document.createElement("span");
|
|
35406
|
-
n2.innerHTML = " ",
|
|
35436
|
+
n2.innerHTML = " ", ab.addClass(n2, "button gears");
|
|
35407
35437
|
var i2 = document.createElement("span");
|
|
35408
|
-
i2.innerHTML = "Save",
|
|
35438
|
+
i2.innerHTML = "Save", ab.addClass(i2, "button"), ab.addClass(i2, "save");
|
|
35409
35439
|
var r2 = document.createElement("span");
|
|
35410
|
-
r2.innerHTML = "New",
|
|
35440
|
+
r2.innerHTML = "New", ab.addClass(r2, "button"), ab.addClass(r2, "save-as");
|
|
35411
35441
|
var o2 = document.createElement("span");
|
|
35412
|
-
o2.innerHTML = "Revert",
|
|
35442
|
+
o2.innerHTML = "Revert", ab.addClass(o2, "button"), ab.addClass(o2, "revert");
|
|
35413
35443
|
var s2 = t2.__preset_select = document.createElement("select");
|
|
35414
|
-
if (t2.load && t2.load.remembered ?
|
|
35415
|
-
|
|
35416
|
-
}) :
|
|
35444
|
+
if (t2.load && t2.load.remembered ? Hx.each(t2.load.remembered, function(e3, n3) {
|
|
35445
|
+
Ub(t2, n3, n3 === t2.preset);
|
|
35446
|
+
}) : Ub(t2, "Default", false), ab.bind(s2, "change", function() {
|
|
35417
35447
|
for (var e3 = 0; e3 < t2.__preset_select.length; e3++)
|
|
35418
35448
|
t2.__preset_select[e3].innerHTML = t2.__preset_select[e3].value;
|
|
35419
35449
|
t2.preset = this.value;
|
|
35420
|
-
}), e2.appendChild(s2), e2.appendChild(n2), e2.appendChild(i2), e2.appendChild(r2), e2.appendChild(o2),
|
|
35450
|
+
}), e2.appendChild(s2), e2.appendChild(n2), e2.appendChild(i2), e2.appendChild(r2), e2.appendChild(o2), wb) {
|
|
35421
35451
|
var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
|
|
35422
|
-
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(
|
|
35423
|
-
t2.useLocalStorage = !t2.useLocalStorage,
|
|
35452
|
+
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(Bb(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), kb(t2, a2), ab.bind(l2, "change", function() {
|
|
35453
|
+
t2.useLocalStorage = !t2.useLocalStorage, kb(t2, a2);
|
|
35424
35454
|
});
|
|
35425
35455
|
}
|
|
35426
35456
|
var h2 = document.getElementById("dg-new-constructor");
|
|
35427
|
-
|
|
35428
|
-
!t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 ||
|
|
35429
|
-
}),
|
|
35430
|
-
h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2),
|
|
35431
|
-
}),
|
|
35457
|
+
ab.bind(h2, "keydown", function(t3) {
|
|
35458
|
+
!t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 || Ab.hide();
|
|
35459
|
+
}), ab.bind(n2, "click", function() {
|
|
35460
|
+
h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2), Ab.show(), h2.focus(), h2.select();
|
|
35461
|
+
}), ab.bind(i2, "click", function() {
|
|
35432
35462
|
t2.save();
|
|
35433
|
-
}),
|
|
35463
|
+
}), ab.bind(r2, "click", function() {
|
|
35434
35464
|
var e3 = prompt("Enter a new preset name.");
|
|
35435
35465
|
e3 && t2.saveAs(e3);
|
|
35436
|
-
}),
|
|
35466
|
+
}), ab.bind(o2, "click", function() {
|
|
35437
35467
|
t2.revert();
|
|
35438
35468
|
});
|
|
35439
35469
|
}
|
|
35440
|
-
function
|
|
35470
|
+
function Hb(t2) {
|
|
35441
35471
|
var e2 = void 0;
|
|
35442
35472
|
function n2(n3) {
|
|
35443
35473
|
return n3.preventDefault(), t2.width += e2 - n3.clientX, t2.onResize(), e2 = n3.clientX, false;
|
|
35444
35474
|
}
|
|
35445
35475
|
function i2() {
|
|
35446
|
-
|
|
35476
|
+
ab.removeClass(t2.__closeButton, Ib.CLASS_DRAG), ab.unbind(window, "mousemove", n2), ab.unbind(window, "mouseup", i2);
|
|
35447
35477
|
}
|
|
35448
35478
|
function r2(r3) {
|
|
35449
|
-
return r3.preventDefault(), e2 = r3.clientX,
|
|
35479
|
+
return r3.preventDefault(), e2 = r3.clientX, ab.addClass(t2.__closeButton, Ib.CLASS_DRAG), ab.bind(window, "mousemove", n2), ab.bind(window, "mouseup", i2), false;
|
|
35450
35480
|
}
|
|
35451
|
-
t2.__resize_handle = document.createElement("div"),
|
|
35481
|
+
t2.__resize_handle = document.createElement("div"), Hx.extend(t2.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }), ab.bind(t2.__resize_handle, "mousedown", r2), ab.bind(t2.__closeButton, "mousedown", r2), t2.domElement.insertBefore(t2.__resize_handle, t2.domElement.firstElementChild);
|
|
35452
35482
|
}
|
|
35453
|
-
function
|
|
35483
|
+
function jb(t2, e2) {
|
|
35454
35484
|
t2.domElement.style.width = e2 + "px", t2.__save_row && t2.autoPlace && (t2.__save_row.style.width = e2 + "px"), t2.__closeButton && (t2.__closeButton.style.width = e2 + "px");
|
|
35455
35485
|
}
|
|
35456
|
-
function
|
|
35486
|
+
function zb(t2, e2) {
|
|
35457
35487
|
var n2 = {};
|
|
35458
|
-
return
|
|
35488
|
+
return Hx.each(t2.__rememberedObjects, function(i2, r2) {
|
|
35459
35489
|
var o2 = {}, s2 = t2.__rememberedObjectIndecesToControllers[r2];
|
|
35460
|
-
|
|
35490
|
+
Hx.each(s2, function(t3, n3) {
|
|
35461
35491
|
o2[n3] = e2 ? t3.initialValue : t3.getValue();
|
|
35462
35492
|
}), n2[r2] = o2;
|
|
35463
35493
|
}), n2;
|
|
35464
35494
|
}
|
|
35465
|
-
|
|
35466
|
-
|
|
35467
|
-
t2.domElement.style.display =
|
|
35495
|
+
Ib.toggleHide = function() {
|
|
35496
|
+
Cb = !Cb, Hx.each(Pb, function(t2) {
|
|
35497
|
+
t2.domElement.style.display = Cb ? "none" : "";
|
|
35468
35498
|
});
|
|
35469
|
-
},
|
|
35470
|
-
document.activeElement.type === "text" || t2.which !== 72 && t2.keyCode !== 72 ||
|
|
35471
|
-
},
|
|
35472
|
-
return
|
|
35499
|
+
}, Ib.CLASS_AUTO_PLACE = "a", Ib.CLASS_AUTO_PLACE_CONTAINER = "ac", Ib.CLASS_MAIN = "main", Ib.CLASS_CONTROLLER_ROW = "cr", Ib.CLASS_TOO_TALL = "taller-than-window", Ib.CLASS_CLOSED = "closed", Ib.CLASS_CLOSE_BUTTON = "close-button", Ib.CLASS_CLOSE_TOP = "close-top", Ib.CLASS_CLOSE_BOTTOM = "close-bottom", Ib.CLASS_DRAG = "drag", Ib.DEFAULT_WIDTH = 245, Ib.TEXT_CLOSED = "Close Controls", Ib.TEXT_OPEN = "Open Controls", Ib._keydownHandler = function(t2) {
|
|
35500
|
+
document.activeElement.type === "text" || t2.which !== 72 && t2.keyCode !== 72 || Ib.toggleHide();
|
|
35501
|
+
}, ab.bind(window, "keydown", Ib._keydownHandler, false), Hx.extend(Ib.prototype, { add: function(t2, e2) {
|
|
35502
|
+
return Fb(this, t2, e2, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
|
|
35473
35503
|
}, addColor: function(t2, e2) {
|
|
35474
|
-
return
|
|
35504
|
+
return Fb(this, t2, e2, { color: true });
|
|
35475
35505
|
}, remove: function(t2) {
|
|
35476
35506
|
this.__ul.removeChild(t2.__li), this.__controllers.splice(this.__controllers.indexOf(t2), 1);
|
|
35477
35507
|
var e2 = this;
|
|
35478
|
-
|
|
35508
|
+
Hx.defer(function() {
|
|
35479
35509
|
e2.onResize();
|
|
35480
35510
|
});
|
|
35481
35511
|
}, destroy: function() {
|
|
35482
35512
|
if (this.parent)
|
|
35483
35513
|
throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
|
|
35484
|
-
this.autoPlace &&
|
|
35514
|
+
this.autoPlace && Rb.removeChild(this.domElement);
|
|
35485
35515
|
var t2 = this;
|
|
35486
|
-
|
|
35516
|
+
Hx.each(this.__folders, function(e2) {
|
|
35487
35517
|
t2.removeFolder(e2);
|
|
35488
|
-
}),
|
|
35518
|
+
}), ab.unbind(window, "keydown", Ib._keydownHandler, false), Nb(this);
|
|
35489
35519
|
}, addFolder: function(t2) {
|
|
35490
35520
|
if (this.__folders[t2] !== void 0)
|
|
35491
35521
|
throw new Error('You already have a folder in this GUI by the name "' + t2 + '"');
|
|
35492
35522
|
var e2 = { name: t2, parent: this };
|
|
35493
35523
|
e2.autoPlace = this.autoPlace, this.load && this.load.folders && this.load.folders[t2] && (e2.closed = this.load.folders[t2].closed, e2.load = this.load.folders[t2]);
|
|
35494
|
-
var n2 = new
|
|
35524
|
+
var n2 = new Ib(e2);
|
|
35495
35525
|
this.__folders[t2] = n2;
|
|
35496
|
-
var i2 =
|
|
35497
|
-
return
|
|
35526
|
+
var i2 = Ob(this, n2.domElement);
|
|
35527
|
+
return ab.addClass(i2, "folder"), n2;
|
|
35498
35528
|
}, removeFolder: function(t2) {
|
|
35499
|
-
this.__ul.removeChild(t2.domElement.parentElement), delete this.__folders[t2.name], this.load && this.load.folders && this.load.folders[t2.name] && delete this.load.folders[t2.name],
|
|
35529
|
+
this.__ul.removeChild(t2.domElement.parentElement), delete this.__folders[t2.name], this.load && this.load.folders && this.load.folders[t2.name] && delete this.load.folders[t2.name], Nb(t2);
|
|
35500
35530
|
var e2 = this;
|
|
35501
|
-
|
|
35531
|
+
Hx.each(t2.__folders, function(e3) {
|
|
35502
35532
|
t2.removeFolder(e3);
|
|
35503
|
-
}),
|
|
35533
|
+
}), Hx.defer(function() {
|
|
35504
35534
|
e2.onResize();
|
|
35505
35535
|
});
|
|
35506
35536
|
}, open: function() {
|
|
@@ -35514,60 +35544,60 @@ void main(void){
|
|
|
35514
35544
|
}, onResize: function() {
|
|
35515
35545
|
var t2 = this.getRoot();
|
|
35516
35546
|
if (t2.scrollable) {
|
|
35517
|
-
var e2 =
|
|
35518
|
-
|
|
35519
|
-
t2.autoPlace && e3 === t2.__save_row || (n2 +=
|
|
35520
|
-
}), window.innerHeight - e2 - 20 < n2 ? (
|
|
35547
|
+
var e2 = ab.getOffset(t2.__ul).top, n2 = 0;
|
|
35548
|
+
Hx.each(t2.__ul.childNodes, function(e3) {
|
|
35549
|
+
t2.autoPlace && e3 === t2.__save_row || (n2 += ab.getHeight(e3));
|
|
35550
|
+
}), window.innerHeight - e2 - 20 < n2 ? (ab.addClass(t2.domElement, Ib.CLASS_TOO_TALL), t2.__ul.style.height = window.innerHeight - e2 - 20 + "px") : (ab.removeClass(t2.domElement, Ib.CLASS_TOO_TALL), t2.__ul.style.height = "auto");
|
|
35521
35551
|
}
|
|
35522
|
-
t2.__resize_handle &&
|
|
35552
|
+
t2.__resize_handle && Hx.defer(function() {
|
|
35523
35553
|
t2.__resize_handle.style.height = t2.__ul.offsetHeight + "px";
|
|
35524
35554
|
}), t2.__closeButton && (t2.__closeButton.style.width = t2.width + "px");
|
|
35525
|
-
}, onResizeDebounced:
|
|
35555
|
+
}, onResizeDebounced: Hx.debounce(function() {
|
|
35526
35556
|
this.onResize();
|
|
35527
35557
|
}, 50), remember: function() {
|
|
35528
|
-
if (
|
|
35558
|
+
if (Hx.isUndefined(Ab) && ((Ab = new Sb()).domElement.innerHTML = bb), this.parent)
|
|
35529
35559
|
throw new Error("You can only call remember on a top level GUI.");
|
|
35530
35560
|
var t2 = this;
|
|
35531
|
-
|
|
35532
|
-
t2.__rememberedObjects.length === 0 &&
|
|
35533
|
-
}), this.autoPlace &&
|
|
35561
|
+
Hx.each(Array.prototype.slice.call(arguments), function(e2) {
|
|
35562
|
+
t2.__rememberedObjects.length === 0 && Gb(t2), t2.__rememberedObjects.indexOf(e2) === -1 && t2.__rememberedObjects.push(e2);
|
|
35563
|
+
}), this.autoPlace && jb(this, this.width);
|
|
35534
35564
|
}, getRoot: function() {
|
|
35535
35565
|
for (var t2 = this; t2.parent; )
|
|
35536
35566
|
t2 = t2.parent;
|
|
35537
35567
|
return t2;
|
|
35538
35568
|
}, getSaveObject: function() {
|
|
35539
35569
|
var t2 = this.load;
|
|
35540
|
-
return t2.closed = this.closed, this.__rememberedObjects.length > 0 && (t2.preset = this.preset, t2.remembered || (t2.remembered = {}), t2.remembered[this.preset] =
|
|
35570
|
+
return t2.closed = this.closed, this.__rememberedObjects.length > 0 && (t2.preset = this.preset, t2.remembered || (t2.remembered = {}), t2.remembered[this.preset] = zb(this)), t2.folders = {}, Hx.each(this.__folders, function(e2, n2) {
|
|
35541
35571
|
t2.folders[n2] = e2.getSaveObject();
|
|
35542
35572
|
}), t2;
|
|
35543
35573
|
}, save: function() {
|
|
35544
|
-
this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] =
|
|
35574
|
+
this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = zb(this), Lb(this, false), this.saveToLocalStorageIfPossible();
|
|
35545
35575
|
}, saveAs: function(t2) {
|
|
35546
|
-
this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default =
|
|
35576
|
+
this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = zb(this, true)), this.load.remembered[t2] = zb(this), this.preset = t2, Ub(this, t2, true), this.saveToLocalStorageIfPossible();
|
|
35547
35577
|
}, revert: function(t2) {
|
|
35548
|
-
|
|
35549
|
-
this.getRoot().load.remembered ?
|
|
35550
|
-
}, this),
|
|
35578
|
+
Hx.each(this.__controllers, function(e2) {
|
|
35579
|
+
this.getRoot().load.remembered ? Db(t2 || this.getRoot(), e2) : e2.setValue(e2.initialValue), e2.__onFinishChange && e2.__onFinishChange.call(e2, e2.getValue());
|
|
35580
|
+
}, this), Hx.each(this.__folders, function(t3) {
|
|
35551
35581
|
t3.revert(t3);
|
|
35552
|
-
}), t2 ||
|
|
35582
|
+
}), t2 || Lb(this.getRoot(), false);
|
|
35553
35583
|
}, listen: function(t2) {
|
|
35554
35584
|
var e2 = this.__listening.length === 0;
|
|
35555
35585
|
this.__listening.push(t2), e2 && function t3(e3) {
|
|
35556
|
-
e3.length !== 0 &&
|
|
35586
|
+
e3.length !== 0 && Eb.call(window, function() {
|
|
35557
35587
|
t3(e3);
|
|
35558
35588
|
});
|
|
35559
|
-
|
|
35589
|
+
Hx.each(e3, function(t4) {
|
|
35560
35590
|
t4.updateDisplay();
|
|
35561
35591
|
});
|
|
35562
35592
|
}(this.__listening);
|
|
35563
35593
|
}, updateDisplay: function() {
|
|
35564
|
-
|
|
35594
|
+
Hx.each(this.__controllers, function(t2) {
|
|
35565
35595
|
t2.updateDisplay();
|
|
35566
|
-
}),
|
|
35596
|
+
}), Hx.each(this.__folders, function(t2) {
|
|
35567
35597
|
t2.updateDisplay();
|
|
35568
35598
|
});
|
|
35569
35599
|
} });
|
|
35570
|
-
var
|
|
35600
|
+
var Vb = Ib, Xb = function() {
|
|
35571
35601
|
function t2(t3) {
|
|
35572
35602
|
this.player = t3;
|
|
35573
35603
|
}
|
|
@@ -35609,10 +35639,10 @@ void main(void){
|
|
|
35609
35639
|
}, set: function(t3) {
|
|
35610
35640
|
this.player.updateConfig({ transactionBgColor: t3 });
|
|
35611
35641
|
}, enumerable: false, configurable: true }), t2;
|
|
35612
|
-
}(),
|
|
35642
|
+
}(), Wb = function() {
|
|
35613
35643
|
function t2(t3, e2) {
|
|
35614
35644
|
var n2;
|
|
35615
|
-
this.config = new
|
|
35645
|
+
this.config = new Xb(t3), this.anchor = e2, n2 = this.createControllerGUI(), this.gui = n2[0], this.controller = n2[1], this.createStats();
|
|
35616
35646
|
}
|
|
35617
35647
|
return t2.prototype.createStats = function() {
|
|
35618
35648
|
var t3 = this;
|
|
@@ -35620,7 +35650,7 @@ void main(void){
|
|
|
35620
35650
|
t3.controller.frameRate.updateDisplay(), t3.controller.size.updateDisplay(), t3.controller.minFPS.updateDisplay(), t3.controller.drawFrames.updateDisplay(), t3.controller.maxFPS.updateDisplay(), t3.controller.resolution.updateDisplay(), t3.controller.autoFps.updateDisplay(), t3.controller.autoResolution.updateDisplay(), t3.controller.drawCall.updateDisplay();
|
|
35621
35651
|
}, 16);
|
|
35622
35652
|
}, t2.prototype.createControllerGUI = function() {
|
|
35623
|
-
var t3 = new
|
|
35653
|
+
var t3 = new Vb({ autoPlace: true, closed: true });
|
|
35624
35654
|
t3.domElement.style.opacity = ".6", t3.domElement.style.transformOrigin = "100% 0", t3.domElement.style.transform = "scale(1)", this.anchor.appendChild(t3.domElement), t3.domElement.style.position = "absolute", t3.domElement.style.right = "0", t3.domElement.style.top = "0", t3.domElement.style.zIndex = "2";
|
|
35625
35655
|
var e2 = { frameRate: t3.add(this.config, "frameRate"), drawFrames: t3.add(this.config, "drawFrames"), drawCall: t3.add(this.config, "drawCall"), size: t3.add(this.config, "size"), minFPS: t3.add(this.config, "minFPS", 0, 60), maxFPS: t3.add(this.config, "maxFPS", 0, 60), resolution: t3.add(this.config, "resolution", 0.5, 8, 0.5), autoResolution: t3.add(this.config, "autoResolution"), autoFps: t3.add(this.config, "autoFPS"), transactionBgColor: t3.addColor(this.config, "backgroundColor") };
|
|
35626
35656
|
return [t3, e2];
|
|
@@ -35630,7 +35660,7 @@ void main(void){
|
|
|
35630
35660
|
} catch (t3) {
|
|
35631
35661
|
}
|
|
35632
35662
|
}, t2;
|
|
35633
|
-
}(),
|
|
35663
|
+
}(), Yb = function() {
|
|
35634
35664
|
function t2(t3) {
|
|
35635
35665
|
var e2 = this;
|
|
35636
35666
|
this.tasks = [], this.isDestroy = false, this.isScheduling = false, this.schedule = function() {
|
|
@@ -35646,7 +35676,7 @@ void main(void){
|
|
|
35646
35676
|
}, t2.prototype.addTask = function(t3) {
|
|
35647
35677
|
this.tasks.push(t3), this.isScheduling || this.schedule();
|
|
35648
35678
|
}, t2;
|
|
35649
|
-
}(),
|
|
35679
|
+
}(), qb = function() {
|
|
35650
35680
|
function t2(t3) {
|
|
35651
35681
|
this.autoUnlock = /* @__PURE__ */ Object.create(null), this.locks = /* @__PURE__ */ Object.create(null), this.available = false, this.available = t3;
|
|
35652
35682
|
}
|
|
@@ -35660,7 +35690,7 @@ void main(void){
|
|
|
35660
35690
|
}, t2.prototype.isLocked = function(t3) {
|
|
35661
35691
|
return !!this.available && !!this.locks[t3];
|
|
35662
35692
|
}, t2;
|
|
35663
|
-
}(),
|
|
35693
|
+
}(), Zb = function() {
|
|
35664
35694
|
function t2() {
|
|
35665
35695
|
var t3 = this;
|
|
35666
35696
|
this.tasks = [], this.isDestroy = false, this.isScheduling = false, this.schedule = function() {
|
|
@@ -35683,7 +35713,7 @@ void main(void){
|
|
|
35683
35713
|
}, t2.prototype.destroy = function() {
|
|
35684
35714
|
this.isDestroy = true;
|
|
35685
35715
|
}, t2;
|
|
35686
|
-
}(),
|
|
35716
|
+
}(), Jb = function(t2, e2, n2, i2) {
|
|
35687
35717
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
35688
35718
|
function s2(t3) {
|
|
35689
35719
|
try {
|
|
@@ -35707,7 +35737,7 @@ void main(void){
|
|
|
35707
35737
|
}
|
|
35708
35738
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
35709
35739
|
});
|
|
35710
|
-
},
|
|
35740
|
+
}, Kb = function(t2, e2) {
|
|
35711
35741
|
var n2, i2, r2, o2, s2 = { label: 0, sent: function() {
|
|
35712
35742
|
if (1 & r2[0])
|
|
35713
35743
|
throw r2[1];
|
|
@@ -35771,13 +35801,13 @@ void main(void){
|
|
|
35771
35801
|
};
|
|
35772
35802
|
}
|
|
35773
35803
|
};
|
|
35774
|
-
function
|
|
35775
|
-
return
|
|
35804
|
+
function Qb(t2, e2, n2) {
|
|
35805
|
+
return Jb(this, void 0, void 0, function() {
|
|
35776
35806
|
var i2, r2, o2, s2;
|
|
35777
|
-
return
|
|
35807
|
+
return Kb(this, function(a2) {
|
|
35778
35808
|
switch (a2.label) {
|
|
35779
35809
|
case 0:
|
|
35780
|
-
return i2 = document.createElement("div"), (r2 = new
|
|
35810
|
+
return i2 = document.createElement("div"), (r2 = new cT({ anchor: i2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1 }, mode: "local", interactive: false, useLocalCache: true })).setResource(t2, e2), [4, r2.getSlideCountAsync()];
|
|
35781
35811
|
case 1:
|
|
35782
35812
|
o2 = a2.sent(), s2 = 1, a2.label = 2;
|
|
35783
35813
|
case 2:
|
|
@@ -35792,7 +35822,7 @@ void main(void){
|
|
|
35792
35822
|
});
|
|
35793
35823
|
});
|
|
35794
35824
|
}
|
|
35795
|
-
var
|
|
35825
|
+
var $b = function() {
|
|
35796
35826
|
var t2 = function(e2, n2) {
|
|
35797
35827
|
return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
|
|
35798
35828
|
t3.__proto__ = e3;
|
|
@@ -35809,14 +35839,14 @@ void main(void){
|
|
|
35809
35839
|
}
|
|
35810
35840
|
t2(e2, n2), e2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2());
|
|
35811
35841
|
};
|
|
35812
|
-
}(),
|
|
35813
|
-
return (
|
|
35842
|
+
}(), tT = function() {
|
|
35843
|
+
return (tT = Object.assign || function(t2) {
|
|
35814
35844
|
for (var e2, n2 = 1, i2 = arguments.length; n2 < i2; n2++)
|
|
35815
35845
|
for (var r2 in e2 = arguments[n2])
|
|
35816
35846
|
Object.prototype.hasOwnProperty.call(e2, r2) && (t2[r2] = e2[r2]);
|
|
35817
35847
|
return t2;
|
|
35818
35848
|
}).apply(this, arguments);
|
|
35819
|
-
},
|
|
35849
|
+
}, eT = function(t2, e2, n2, i2) {
|
|
35820
35850
|
var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(e2, n2) : i2;
|
|
35821
35851
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
35822
35852
|
s2 = Reflect.decorate(t2, e2, n2, i2);
|
|
@@ -35824,7 +35854,7 @@ void main(void){
|
|
|
35824
35854
|
for (var a2 = t2.length - 1; a2 >= 0; a2--)
|
|
35825
35855
|
(r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, n2, s2) : r2(e2, n2)) || s2);
|
|
35826
35856
|
return o2 > 3 && s2 && Object.defineProperty(e2, n2, s2), s2;
|
|
35827
|
-
},
|
|
35857
|
+
}, nT = function(t2, e2, n2, i2) {
|
|
35828
35858
|
return new (n2 || (n2 = Promise))(function(r2, o2) {
|
|
35829
35859
|
function s2(t3) {
|
|
35830
35860
|
try {
|
|
@@ -35848,7 +35878,7 @@ void main(void){
|
|
|
35848
35878
|
}
|
|
35849
35879
|
l2((i2 = i2.apply(t2, e2 || [])).next());
|
|
35850
35880
|
});
|
|
35851
|
-
},
|
|
35881
|
+
}, iT = function(t2, e2) {
|
|
35852
35882
|
var n2, i2, r2, o2, s2 = { label: 0, sent: function() {
|
|
35853
35883
|
if (1 & r2[0])
|
|
35854
35884
|
throw r2[1];
|
|
@@ -35911,20 +35941,20 @@ void main(void){
|
|
|
35911
35941
|
}([o3, a3]);
|
|
35912
35942
|
};
|
|
35913
35943
|
}
|
|
35914
|
-
},
|
|
35944
|
+
}, rT = window.ResizeObserver || Nx, oT = function(t2) {
|
|
35915
35945
|
return new Promise(function(e2) {
|
|
35916
35946
|
return setTimeout(e2, t2);
|
|
35917
35947
|
});
|
|
35918
35948
|
};
|
|
35919
|
-
function
|
|
35920
|
-
return
|
|
35949
|
+
function sT(t2, e2) {
|
|
35950
|
+
return nT(this, void 0, void 0, function() {
|
|
35921
35951
|
var n2;
|
|
35922
|
-
return
|
|
35952
|
+
return iT(this, function(i2) {
|
|
35923
35953
|
switch (i2.label) {
|
|
35924
35954
|
case 0:
|
|
35925
35955
|
n2 = Date.now(), i2.label = 1;
|
|
35926
35956
|
case 1:
|
|
35927
|
-
return !t2() && Date.now() - n2 < e2 ? [4,
|
|
35957
|
+
return !t2() && Date.now() - n2 < e2 ? [4, oT(50)] : [3, 3];
|
|
35928
35958
|
case 2:
|
|
35929
35959
|
return i2.sent(), n2 = Date.now(), [3, 1];
|
|
35930
35960
|
case 3:
|
|
@@ -35933,27 +35963,27 @@ void main(void){
|
|
|
35933
35963
|
});
|
|
35934
35964
|
});
|
|
35935
35965
|
}
|
|
35936
|
-
var
|
|
35966
|
+
var aT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, lT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, hT = "";
|
|
35937
35967
|
try {
|
|
35938
|
-
|
|
35968
|
+
hT = "0.9.0";
|
|
35939
35969
|
} catch (t2) {
|
|
35940
|
-
|
|
35970
|
+
hT = "-dev";
|
|
35941
35971
|
}
|
|
35942
|
-
var
|
|
35972
|
+
var uT = null;
|
|
35943
35973
|
try {
|
|
35944
|
-
(
|
|
35974
|
+
(uT = s.createInstance({ name: "__slide_local_log__", driver: s.INDEXEDDB, version: 1 })).ready(function(t2) {
|
|
35945
35975
|
}).catch(function(t2) {
|
|
35946
35976
|
});
|
|
35947
35977
|
} catch (t2) {
|
|
35948
35978
|
}
|
|
35949
|
-
var
|
|
35979
|
+
var cT = function(t2) {
|
|
35950
35980
|
function e2(n3) {
|
|
35951
35981
|
var i3 = t2.call(this) || this;
|
|
35952
|
-
return i3.iosResetCache = [], i3.needClearCacheImage = false, i3.version =
|
|
35982
|
+
return i3.iosResetCache = [], i3.needClearCacheImage = false, i3.version = hT, i3.__slideState = qy()(lT), i3.userInputTime = 0, i3.isSyncingSlideState = false, i3.frozenTaskManager = new Zb(), i3.randomId = o(), i3.resize = false, i3.isAnimating = false, i3.renderingTaskManager = new Bx(), i3.isLoading = false, i3.interactive = true, i3.renderingIndex = 0, i3.frameWidth = 1, i3.frameHeight = 1, i3.frame = document.createElement("div"), i3.canvasContainer = document.createElement("div"), i3.medianController = document.createElement("div"), i3.frameResizeObserver = new rT(function() {
|
|
35953
35983
|
return i3.frameResizeHandler();
|
|
35954
35984
|
}), i3.timestamp = function() {
|
|
35955
35985
|
return Date.now();
|
|
35956
|
-
}, i3.mode = "local", i3.enableGlobalClick = false, i3.lastEmitedState = null, i3.playerController = null, i3.isInitResized = false, i3.cacheImage = document.createElement("img"), i3.isTouchStart = false, i3.touchStartId = void 0, i3.taskId = "", i3.volumeAdjuster = new
|
|
35986
|
+
}, i3.mode = "local", i3.enableGlobalClick = false, i3.lastEmitedState = null, i3.playerController = null, i3.isInitResized = false, i3.cacheImage = document.createElement("img"), i3.isTouchStart = false, i3.touchStartId = void 0, i3.taskId = "", i3.volumeAdjuster = new Fy(), i3.designWidth = 0, i3.designHeight = 0, i3._slideCount = 0, i3._dispatchIncrId = 0, i3._receiveIncrId = 0, i3.recoverHandler = function(t3) {
|
|
35957
35987
|
if (t3.data.type === "@slide/_recover_" && t3.data.slideId === i3.randomId) {
|
|
35958
35988
|
var e3 = t3.data, n4 = e3.recoverBy, r2 = e3.payload;
|
|
35959
35989
|
if (!r2)
|
|
@@ -35980,12 +36010,12 @@ void main(void){
|
|
|
35980
36010
|
}, i3.handleSlideRef = function() {
|
|
35981
36011
|
console.log(i3), window.__slide = i3;
|
|
35982
36012
|
}, i3.receiveSyncHandler = function(t3) {
|
|
35983
|
-
return
|
|
36013
|
+
return nT(i3, void 0, void 0, function() {
|
|
35984
36014
|
var e3, n4, i4, r2, o2, s2 = this;
|
|
35985
|
-
return
|
|
36015
|
+
return iT(this, function(a2) {
|
|
35986
36016
|
switch (a2.label) {
|
|
35987
36017
|
case 0:
|
|
35988
|
-
return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(
|
|
36018
|
+
return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(aT.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), t3.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
|
|
35989
36019
|
s2.doNextStep(true, t3.clientId || "");
|
|
35990
36020
|
})) : this.doNextStep(true, t3.clientId || ""), [3, 6]);
|
|
35991
36021
|
case 1:
|
|
@@ -36006,16 +36036,16 @@ void main(void){
|
|
|
36006
36036
|
});
|
|
36007
36037
|
});
|
|
36008
36038
|
}, i3.handlePrevSlide = function(t3) {
|
|
36009
|
-
return t3 === void 0 && (t3 = false),
|
|
36039
|
+
return t3 === void 0 && (t3 = false), nT(i3, void 0, void 0, function() {
|
|
36010
36040
|
var e3;
|
|
36011
|
-
return
|
|
36041
|
+
return iT(this, function(n4) {
|
|
36012
36042
|
return this.player ? ((e3 = this.player.prevSlideIndex) >= 1 && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, false) : this.renderSlide(e3, false)), [2]) : [2];
|
|
36013
36043
|
});
|
|
36014
36044
|
});
|
|
36015
36045
|
}, i3.handleNextSlide = function(t3) {
|
|
36016
|
-
return t3 === void 0 && (t3 = false),
|
|
36046
|
+
return t3 === void 0 && (t3 = false), nT(i3, void 0, void 0, function() {
|
|
36017
36047
|
var e3;
|
|
36018
|
-
return
|
|
36048
|
+
return iT(this, function(n4) {
|
|
36019
36049
|
return this.player ? ((e3 = this.player.nextSlideIndex) <= this.slideCount && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, true) : this.renderSlide(e3, true)), [2]) : [2];
|
|
36020
36050
|
});
|
|
36021
36051
|
});
|
|
@@ -36040,27 +36070,27 @@ void main(void){
|
|
|
36040
36070
|
e2.appendLogString("ERROR - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n");
|
|
36041
36071
|
var o2 = (r2 = i3.config.logger) === null || r2 === void 0 ? void 0 : r2.error;
|
|
36042
36072
|
o2 && o2("[" + n4 + "] " + t3);
|
|
36043
|
-
} }, i3.logger.info("new slide with clientId: " + i3.config.clientId, i3.taskId), i3.anchor = i3.config.anchor, i3.syncQueue = new
|
|
36073
|
+
} }, i3.logger.info("new slide with clientId: " + i3.config.clientId, i3.taskId), i3.anchor = i3.config.anchor, i3.syncQueue = new Yb(i3.receiveSyncHandler), i3.lock = new qb(i3.mode === "interactive"), i3.cacheImage.style.position = "absolute", i3.cacheImage.style.zIndex = "100", i3.setMedianControllerAttribute(), i3.canvasContainer.style.position = "relative", i3.canvasContainer.appendChild(i3.medianController), i3.frame.appendChild(i3.canvasContainer), i3.frameResizeObserver.observe(i3.frame), i3.on(aT.syncReceive, function(t3) {
|
|
36044
36074
|
i3.lock.unlock(t3.type, t3.uuid), i3.syncQueue.addTask(t3);
|
|
36045
36075
|
}), i3.renderingTaskManager.eventHub.on("task-error", function(t3) {
|
|
36046
36076
|
var e3 = t3.error, n4 = t3.task, r2 = Tm.transform(e3);
|
|
36047
36077
|
r2.errorType === gm.RuntimeWarn ? i3.logger.warn(r2.message, i3.taskId) : i3.logger.error(r2.message, i3.taskId), i3.isLoading = false, i3.reportError(r2, n4.slideIndex);
|
|
36048
|
-
}), window.addEventListener("__slide_ref__", i3.handleSlideRef), i3.resizeView =
|
|
36078
|
+
}), window.addEventListener("__slide_ref__", i3.handleSlideRef), i3.resizeView = Wy()(i3.resizeView.bind(i3), 50), i3.player = i3.initPlayer(i3.config), i3.config.controller && i3.createController(), i3.player.view && i3.canvasContainer.appendChild(i3.player.view), i3.handleViewClick = Wy()(i3.handleViewClick, 300), i3.player.errorChannel.on("error", function(t3, e3) {
|
|
36049
36079
|
var n4 = Tm.transform(t3);
|
|
36050
36080
|
n4.errorType === gm.RuntimeWarn ? i3.logger.warn(n4.message, i3.taskId) : i3.logger.error(n4.message, i3.taskId), i3.isLoading = false, e3 === i3.renderingIndex && i3.reportError(t3, e3);
|
|
36051
36081
|
}), window.addEventListener("message", i3.recoverHandler), i3;
|
|
36052
36082
|
}
|
|
36053
36083
|
var n2, i2;
|
|
36054
|
-
return
|
|
36055
|
-
return t3 === void 0 && (t3 = false),
|
|
36056
|
-
return
|
|
36084
|
+
return $b(e2, t2), e2.flushLog = function(t3) {
|
|
36085
|
+
return t3 === void 0 && (t3 = false), nT(this, void 0, void 0, function() {
|
|
36086
|
+
return iT(this, function(n3) {
|
|
36057
36087
|
switch (n3.label) {
|
|
36058
36088
|
case 0:
|
|
36059
36089
|
if (!(e2._tempLog.length > 131072 || t3 && e2._tempLog.length > 0))
|
|
36060
36090
|
return [3, 5];
|
|
36061
36091
|
n3.label = 1;
|
|
36062
36092
|
case 1:
|
|
36063
|
-
return n3.trys.push([1, 3, , 4]), [4,
|
|
36093
|
+
return n3.trys.push([1, 3, , 4]), [4, uT == null ? void 0 : uT.setItem("run_time_log_" + e2._tempLogIndex, e2._tempLog)];
|
|
36064
36094
|
case 2:
|
|
36065
36095
|
return n3.sent(), [3, 4];
|
|
36066
36096
|
case 3:
|
|
@@ -36075,18 +36105,18 @@ void main(void){
|
|
|
36075
36105
|
}, e2.stopRemoteLog = function() {
|
|
36076
36106
|
e2.remoteLogAddress = null;
|
|
36077
36107
|
}, e2.startRemoteLog = function(t3) {
|
|
36078
|
-
return
|
|
36108
|
+
return nT(this, void 0, void 0, function() {
|
|
36079
36109
|
var n3, i3, r2, o2, s2;
|
|
36080
|
-
return
|
|
36110
|
+
return iT(this, function(a2) {
|
|
36081
36111
|
switch (a2.label) {
|
|
36082
36112
|
case 0:
|
|
36083
36113
|
return e2.remoteLogAddress = t3, [4, e2.flushLog(true)];
|
|
36084
36114
|
case 1:
|
|
36085
|
-
if (a2.sent(), !
|
|
36115
|
+
if (a2.sent(), !uT)
|
|
36086
36116
|
return [3, 13];
|
|
36087
36117
|
n3 = [], a2.label = 2;
|
|
36088
36118
|
case 2:
|
|
36089
|
-
return a2.trys.push([2, 4, , 5]), [4,
|
|
36119
|
+
return a2.trys.push([2, 4, , 5]), [4, uT.keys()];
|
|
36090
36120
|
case 3:
|
|
36091
36121
|
return n3 = (a2.sent() || []).sort(function(t4, e3) {
|
|
36092
36122
|
return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
|
|
@@ -36100,7 +36130,7 @@ void main(void){
|
|
|
36100
36130
|
return [3, 13];
|
|
36101
36131
|
o2 = r2[i3], o2.replace("run_time_log_", ""), s2 = "", a2.label = 7;
|
|
36102
36132
|
case 7:
|
|
36103
|
-
return a2.trys.push([7, 9, , 10]), [4,
|
|
36133
|
+
return a2.trys.push([7, 9, , 10]), [4, uT.getItem(o2)];
|
|
36104
36134
|
case 8:
|
|
36105
36135
|
return s2 = a2.sent() || "", [3, 10];
|
|
36106
36136
|
case 9:
|
|
@@ -36122,61 +36152,61 @@ void main(void){
|
|
|
36122
36152
|
}, Object.defineProperty(e2.prototype, "dispatchIncrId", { get: function() {
|
|
36123
36153
|
return this._dispatchIncrId++;
|
|
36124
36154
|
}, enumerable: false, configurable: true }), e2.prototype.reportError = function(t3, e3) {
|
|
36125
|
-
this.emit(
|
|
36155
|
+
this.emit(aT.renderError, { error: t3, index: e3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: e3, customMessage: "@slide/_error_" }, "*");
|
|
36126
36156
|
}, e2.prototype.initSlideConfig = function(t3) {
|
|
36127
|
-
return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (
|
|
36157
|
+
return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (Gy.RtcAudioClazz = t3.rtcAudio), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !tl()(t3.enableGlobalClick) && t3.enableGlobalClick, this.resize = t3.resize || false, this.interactive = t3.interactive, this.frame.style.cssText = t3.fixedFrameSize ? "width:" + t3.fixedFrameSize.width + "px;height:" + t3.fixedFrameSize.height + "px;" : "width:100%;height:100%", this.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", t3.fixedFrameSize && (this.frameWidth = t3.fixedFrameSize.width, this.frameHeight = t3.fixedFrameSize.height), t3;
|
|
36128
36158
|
}, e2.prototype.initPlayer = function(t3) {
|
|
36129
|
-
var e3, n3, i3, r2 = this, o2 = new
|
|
36130
|
-
return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(
|
|
36131
|
-
r2.isLoading = true, r2.emit(
|
|
36132
|
-
}), o2.on(
|
|
36133
|
-
r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(
|
|
36134
|
-
}), o2.on(
|
|
36135
|
-
r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(
|
|
36136
|
-
}), o2.on(
|
|
36159
|
+
var e3, n3, i3, r2 = this, o2 = new Gy({ mode: this.mode, useLocalCache: !!tl()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: tl()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster }, t3.renderOptions);
|
|
36160
|
+
return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(ky.renderStart, function(t4) {
|
|
36161
|
+
r2.isLoading = true, r2.emit(aT.renderStart, t4);
|
|
36162
|
+
}), o2.on(ky.renderEnd, function(t4) {
|
|
36163
|
+
r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(aT.renderEnd, t4);
|
|
36164
|
+
}), o2.on(ky.slideChange, function(t4) {
|
|
36165
|
+
r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(aT.slideChange, t4);
|
|
36166
|
+
}), o2.on(ky.mainSeqStateChange, function(t4) {
|
|
36137
36167
|
r2.__slideState.mainSeqState = t4, r2.emitStateChange();
|
|
36138
|
-
}), o2.on(
|
|
36168
|
+
}), o2.on(ky.mainSeqStepChange, function(t4) {
|
|
36139
36169
|
r2.__slideState.mainSeqStep = t4, r2.emitStateChange();
|
|
36140
|
-
}), o2.on(
|
|
36170
|
+
}), o2.on(ky.interactiveSeqStateChange, function(t4) {
|
|
36141
36171
|
var e4 = t4.id, n4 = t4.state;
|
|
36142
36172
|
r2.__slideState.interactiveSeqState[e4] = n4, r2.emitStateChange();
|
|
36143
|
-
}), o2.on(
|
|
36144
|
-
r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(
|
|
36145
|
-
}), o2.on(
|
|
36146
|
-
r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(
|
|
36147
|
-
}), o2.on(
|
|
36173
|
+
}), o2.on(ky.animateStart, function() {
|
|
36174
|
+
r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(aT.animateStart));
|
|
36175
|
+
}), o2.on(ky.animateEnd, function() {
|
|
36176
|
+
r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(aT.animateEnd));
|
|
36177
|
+
}), o2.on(ky.interactiveSeqAction, function(t4) {
|
|
36148
36178
|
var e4 = t4.action, n4 = t4.seqId;
|
|
36149
36179
|
r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "interactiveAnim", action: e4, seqId: n4 }), r2.emitStateChange();
|
|
36150
|
-
}), o2.on(
|
|
36151
|
-
r2.emit(
|
|
36152
|
-
}), o2.on(
|
|
36153
|
-
r2.emit(
|
|
36154
|
-
}), o2.on(
|
|
36180
|
+
}), o2.on(ky.mainSeqStepStart, function(t4) {
|
|
36181
|
+
r2.emit(aT.mainSeqStepStart, t4);
|
|
36182
|
+
}), o2.on(ky.mainSeqStepEnd, function(t4) {
|
|
36183
|
+
r2.emit(aT.mainSeqStepEnd, t4);
|
|
36184
|
+
}), o2.on(ky.mediaPlay, function(t4) {
|
|
36155
36185
|
var e4, n4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
|
|
36156
36186
|
n4.type = "play", n4.time = r2.timestamp() - 1e3 * t4.time, r2.__slideState.mediaState[t4.id] = n4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: n4 }), r2.emitStateChange();
|
|
36157
|
-
}), o2.on(
|
|
36187
|
+
}), o2.on(ky.mediaStop, function(t4) {
|
|
36158
36188
|
delete r2.__slideState.mediaState[t4.id], r2.emitStateChange();
|
|
36159
|
-
}), o2.on(
|
|
36189
|
+
}), o2.on(ky.mediaPause, function(t4) {
|
|
36160
36190
|
var e4, n4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
|
|
36161
36191
|
n4.type = "pause", n4.time = t4.time, r2.__slideState.mediaState[t4.id] = n4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPause", id: t4.id, state: n4 }), r2.emitStateChange();
|
|
36162
|
-
}), o2.on(
|
|
36192
|
+
}), o2.on(ky.mediaSeek, function(t4) {
|
|
36163
36193
|
var e4, n4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
|
|
36164
36194
|
t4.isPlaying ? (n4.type = "play", n4.time = r2.timestamp() - 1e3 * t4.time) : (n4.type = "pause", n4.time = t4.time), r2.__slideState.mediaState[t4.id] = n4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaSeek", id: t4.id, time: t4.time, state: n4 }), r2.emitStateChange();
|
|
36165
|
-
}), o2.on(
|
|
36195
|
+
}), o2.on(ky.requestPrevSlide, function(t4) {
|
|
36166
36196
|
r2.handlePrevSlide(t4);
|
|
36167
|
-
}), o2.on(
|
|
36197
|
+
}), o2.on(ky.requestNextSlide, function(t4) {
|
|
36168
36198
|
r2.handleNextSlide(t4);
|
|
36169
|
-
}), o2.on(
|
|
36199
|
+
}), o2.on(ky.requestGotoSlide, function(t4) {
|
|
36170
36200
|
r2.config.navigatorDelegate ? r2.config.navigatorDelegate.gotoPage(t4) : r2.handleGotoSlide(t4);
|
|
36171
|
-
}), o2.on(
|
|
36201
|
+
}), o2.on(ky.fullscreenChange, function(t4) {
|
|
36172
36202
|
var e4, n4 = t4.targetId, i4 = t4.state;
|
|
36173
36203
|
if (r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaFullscreen", targetId: n4, state: i4 }), n4) {
|
|
36174
36204
|
var o3 = (e4 = r2.__slideState.mediaState[n4]) !== null && e4 !== void 0 ? e4 : {};
|
|
36175
36205
|
o3.fullscreen = i4, r2.__slideState.mediaState[n4] = o3, r2.emitStateChange();
|
|
36176
36206
|
}
|
|
36177
|
-
}), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(
|
|
36207
|
+
}), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(ky.userInput, this.userInputHandle), o2;
|
|
36178
36208
|
}, e2.prototype.createController = function() {
|
|
36179
|
-
this.player && (this.playerController = new
|
|
36209
|
+
this.player && (this.playerController = new Wb(this.player, this.frame));
|
|
36180
36210
|
}, e2.prototype.setMedianControllerAttribute = function() {
|
|
36181
36211
|
this.medianController.className = "median-container", this.medianController.style.position = "absolute", this.medianController.style.left = "0", this.medianController.style.top = "0", this.medianController.style.zIndex = "2";
|
|
36182
36212
|
}, e2.prototype.frameResizeHandler = function() {
|
|
@@ -36196,9 +36226,9 @@ void main(void){
|
|
|
36196
36226
|
}
|
|
36197
36227
|
}, e2.prototype.setSlideState = function(t3) {
|
|
36198
36228
|
var e3, n3, i3;
|
|
36199
|
-
return
|
|
36229
|
+
return nT(this, void 0, void 0, function() {
|
|
36200
36230
|
var r2, o2 = this;
|
|
36201
|
-
return
|
|
36231
|
+
return iT(this, function(s2) {
|
|
36202
36232
|
switch (s2.label) {
|
|
36203
36233
|
case 0:
|
|
36204
36234
|
return this.isSyncingSlideState = true, this.logger.info("stateChange receive " + JSON.stringify(t3), this.taskId), t3.taskId && t3.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t3.taskId, (e3 = this.player) === null || e3 === void 0 || e3.setResourceData(t3.taskId, this.__slideState.url)), t3.url && t3.url !== this.__slideState.url && (this.__slideState.url = t3.url, (n3 = this.player) === null || n3 === void 0 || n3.setResourceData(this.__slideState.taskId, t3.url)), Number.isInteger(t3.currentSlideIndex) && t3.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t3.currentSlideIndex, [4, this.doRenderSlide(t3.currentSlideIndex)]) : [3, 2];
|
|
@@ -36234,9 +36264,9 @@ void main(void){
|
|
|
36234
36264
|
}, Object.defineProperty(e2.prototype, "slideCount", { get: function() {
|
|
36235
36265
|
return this._slideCount;
|
|
36236
36266
|
}, enumerable: false, configurable: true }), e2.prototype.getSizeAsync = function() {
|
|
36237
|
-
return
|
|
36267
|
+
return nT(this, void 0, void 0, function() {
|
|
36238
36268
|
var t3;
|
|
36239
|
-
return
|
|
36269
|
+
return iT(this, function(e3) {
|
|
36240
36270
|
switch (e3.label) {
|
|
36241
36271
|
case 0:
|
|
36242
36272
|
if (this.width > 0 && this.height > 0)
|
|
@@ -36256,8 +36286,8 @@ void main(void){
|
|
|
36256
36286
|
});
|
|
36257
36287
|
});
|
|
36258
36288
|
}, e2.prototype.getSlideCountAsync = function() {
|
|
36259
|
-
return
|
|
36260
|
-
return
|
|
36289
|
+
return nT(this, void 0, void 0, function() {
|
|
36290
|
+
return iT(this, function(t3) {
|
|
36261
36291
|
switch (t3.label) {
|
|
36262
36292
|
case 0:
|
|
36263
36293
|
if (this._slideCount > 0)
|
|
@@ -36313,12 +36343,12 @@ void main(void){
|
|
|
36313
36343
|
this.taskId = t3, (n3 = this.player) === null || n3 === void 0 || n3.setResourceData(t3, e3), this.__slideState.taskId = t3, this.__slideState.url = e3, this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "setResource", taskId: t3, url: e3 });
|
|
36314
36344
|
}, e2.prototype._renderSlide = function(t3) {
|
|
36315
36345
|
var e3;
|
|
36316
|
-
return
|
|
36346
|
+
return nT(this, void 0, void 0, function() {
|
|
36317
36347
|
var n3 = this;
|
|
36318
|
-
return
|
|
36348
|
+
return iT(this, function(i3) {
|
|
36319
36349
|
switch (i3.label) {
|
|
36320
36350
|
case 0:
|
|
36321
|
-
return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((
|
|
36351
|
+
return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((Gy.platform.isIOS() || Gy.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), [4, (e3 = this.player) === null || e3 === void 0 ? void 0 : e3.renderSlide(t3)]);
|
|
36322
36352
|
case 1:
|
|
36323
36353
|
return i3.sent(), this.__slideState.currentSlideIndex = t3, this.resizeView(), this.__slideState.interactiveSeqState = {}, this.__slideState.mediaState = {}, this.emitStateChange(), setTimeout(function() {
|
|
36324
36354
|
var t4, e4;
|
|
@@ -36337,8 +36367,8 @@ void main(void){
|
|
|
36337
36367
|
(n3 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n3 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(n3, e3));
|
|
36338
36368
|
}
|
|
36339
36369
|
}, e2.prototype.needCreateNewPlayer = function() {
|
|
36340
|
-
var t3 =
|
|
36341
|
-
return (
|
|
36370
|
+
var t3 = Gy.platform.isLowGpuMemory() ? 15 : 30;
|
|
36371
|
+
return (Gy.platform.isIOS() || Gy.platform.isAndroid()) && this.iosResetCache.length > t3;
|
|
36342
36372
|
}, e2.prototype.poseRenderSlide = function(t3, e3) {
|
|
36343
36373
|
this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t3, isForward: e3 }) : this.mode === "sync" ? (this.doRenderSlide(t3, e3), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t3, isForward: e3 })) : this.doRenderSlide(t3, e3);
|
|
36344
36374
|
}, e2.prototype.doRenderSlide = function(t3, e3) {
|
|
@@ -36359,7 +36389,7 @@ void main(void){
|
|
|
36359
36389
|
var t3, e3;
|
|
36360
36390
|
return (e3 = (t3 = this.player) === null || t3 === void 0 ? void 0 : t3.getSnapshot()) !== null && e3 !== void 0 ? e3 : null;
|
|
36361
36391
|
}, e2.prototype.nextStep = function() {
|
|
36362
|
-
!this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(
|
|
36392
|
+
!this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(aT.slideStepEnd), this.player.mainSeqHasNextStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() + 1 }) : this.mode === "sync" ? (this.doNextStep(false, ""), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() })) : this.doNextStep(false, "") : this.handleNextSlide()) : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
|
|
36363
36393
|
}, e2.prototype.doNextStep = function(t3, e3) {
|
|
36364
36394
|
if (this.player) {
|
|
36365
36395
|
var n3 = !this.config.clientId || e3 === this.config.clientId;
|
|
@@ -36368,7 +36398,7 @@ void main(void){
|
|
|
36368
36398
|
this.__slideState.mainSeqStep = i3, this.emitStateChange();
|
|
36369
36399
|
}
|
|
36370
36400
|
}, e2.prototype.prevStep = function() {
|
|
36371
|
-
!this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(
|
|
36401
|
+
!this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(aT.slideStepStart), this.player.mainSeqHasPrevStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ type: "prevStep", slideIndex: this.__slideState.currentSlideIndex, next: this.player.mainSeqStep() - 1 }) : this.mode === "sync" ? (this.doPrevStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "prevStep", next: this.player.mainSeqStep() })) : this.doPrevStep() : this.handlePrevSlide()) : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
|
|
36372
36402
|
}, e2.prototype.doPrevStep = function(t3) {
|
|
36373
36403
|
if (t3 === void 0 && (t3 = false), this.player) {
|
|
36374
36404
|
this.player.prevStep(t3);
|
|
@@ -36380,14 +36410,14 @@ void main(void){
|
|
|
36380
36410
|
}, e2.prototype.emitStateChange = function() {
|
|
36381
36411
|
if (this.mode !== "local" && !this.isSyncingSlideState) {
|
|
36382
36412
|
var t3 = this.slideState;
|
|
36383
|
-
!
|
|
36413
|
+
!Vy()(this.lastEmitedState, t3) && this.isSlideStateReady(t3) && (this.lastEmitedState = t3, this.emit(aT.stateChange, t3), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
|
|
36384
36414
|
}
|
|
36385
36415
|
}, e2.prototype.emitSyncDispatch = function(t3) {
|
|
36386
36416
|
if (!this.lock.isLocked(t3.type)) {
|
|
36387
36417
|
var e3 = Math.random().toString(32).substr(2);
|
|
36388
36418
|
this.lock.addLock(t3.type, e3);
|
|
36389
|
-
var n3 =
|
|
36390
|
-
this.config.mode === "sync" && (n3.incrId = this.dispatchIncrId), this.emit(
|
|
36419
|
+
var n3 = tT(tT({}, t3), { uuid: e3, clientId: this.config.clientId });
|
|
36420
|
+
this.config.mode === "sync" && (n3.incrId = this.dispatchIncrId), this.emit(aT.syncDispatch, n3), this.logger.info("sync dispatch " + JSON.stringify(n3), this.taskId);
|
|
36391
36421
|
}
|
|
36392
36422
|
}, e2.prototype.setMainSeqStep = function(t3, e3) {
|
|
36393
36423
|
var n3;
|
|
@@ -36403,9 +36433,9 @@ void main(void){
|
|
|
36403
36433
|
(t3 = this.player) === null || t3 === void 0 || t3.resume();
|
|
36404
36434
|
}, e2.prototype._doFrozen = function() {
|
|
36405
36435
|
var t3;
|
|
36406
|
-
return
|
|
36436
|
+
return nT(this, void 0, void 0, function() {
|
|
36407
36437
|
var e3, n3, i3, r2 = this;
|
|
36408
|
-
return
|
|
36438
|
+
return iT(this, function(o2) {
|
|
36409
36439
|
switch (o2.label) {
|
|
36410
36440
|
case 0:
|
|
36411
36441
|
return this.logger.info("frozen with player[" + !!this.player + "]", this.taskId), this.view && this.player ? [4, this.player.clock.waitUntil(function() {
|
|
@@ -36413,7 +36443,7 @@ void main(void){
|
|
|
36413
36443
|
}, 6e4)] : [3, 2];
|
|
36414
36444
|
case 1:
|
|
36415
36445
|
for (n3 in o2.sent(), e3 = this.player.getSnapshot() || "", this.cacheImage.src = e3, this.frame.appendChild(this.cacheImage), this.player.destroy(), (t3 = this.playerController) === null || t3 === void 0 || t3.destroy(), this.player = void 0, this.__slideState.mediaState)
|
|
36416
|
-
i3 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] =
|
|
36446
|
+
i3 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = tT(tT({}, i3), { frozenTime: this.timestamp() });
|
|
36417
36447
|
o2.label = 2;
|
|
36418
36448
|
case 2:
|
|
36419
36449
|
return [2];
|
|
@@ -36427,14 +36457,14 @@ void main(void){
|
|
|
36427
36457
|
});
|
|
36428
36458
|
}, e2.prototype._doRelease = function() {
|
|
36429
36459
|
var t3, e3;
|
|
36430
|
-
return
|
|
36460
|
+
return nT(this, void 0, void 0, function() {
|
|
36431
36461
|
var n3, i3, r2, o2;
|
|
36432
|
-
return
|
|
36462
|
+
return iT(this, function(s2) {
|
|
36433
36463
|
switch (s2.label) {
|
|
36434
36464
|
case 0:
|
|
36435
36465
|
if (this.logger.info("do release slide", this.taskId), this.player)
|
|
36436
36466
|
return [2];
|
|
36437
|
-
for (i3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState =
|
|
36467
|
+
for (i3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = qy()(lT), n3.mediaState)
|
|
36438
36468
|
(r2 = n3.mediaState[i3]).type === "play" && (o2 = Math.max((e3 = r2.frozenTime) !== null && e3 !== void 0 ? e3 : 0, r2.time), r2.time = this.timestamp() - (o2 - r2.time), r2.frozenTime = void 0);
|
|
36439
36469
|
return [4, this.setSlideState(n3)];
|
|
36440
36470
|
case 1:
|
|
@@ -36472,14 +36502,14 @@ void main(void){
|
|
|
36472
36502
|
} catch (t4) {
|
|
36473
36503
|
}
|
|
36474
36504
|
}, e2.prototype.waitLoadEnd = function() {
|
|
36475
|
-
return
|
|
36505
|
+
return nT(this, void 0, void 0, function() {
|
|
36476
36506
|
var t3;
|
|
36477
|
-
return
|
|
36507
|
+
return iT(this, function(e3) {
|
|
36478
36508
|
switch (e3.label) {
|
|
36479
36509
|
case 0:
|
|
36480
36510
|
t3 = 0, e3.label = 1;
|
|
36481
36511
|
case 1:
|
|
36482
|
-
return this.isLoading && t3 < 10 ? [4,
|
|
36512
|
+
return this.isLoading && t3 < 10 ? [4, oT(100)] : [3, 3];
|
|
36483
36513
|
case 2:
|
|
36484
36514
|
return e3.sent(), t3 += 1, [3, 1];
|
|
36485
36515
|
case 3:
|
|
@@ -36508,14 +36538,14 @@ void main(void){
|
|
|
36508
36538
|
var t3 = this.player.currentIndex === 1, e3 = this.mainSeqLength === 0 || this.mainSeqStep === 0, n3 = this.mainSeqState === "idle" || this.mainSeqState === null;
|
|
36509
36539
|
return !(t3 && e3 && n3);
|
|
36510
36540
|
}, e2.prototype.snapshot = function() {
|
|
36511
|
-
return
|
|
36512
|
-
return
|
|
36541
|
+
return nT(this, void 0, void 0, function() {
|
|
36542
|
+
return iT(this, function(t3) {
|
|
36513
36543
|
return this.player ? [2, this.player.getSnapshot()] : [2, null];
|
|
36514
36544
|
});
|
|
36515
36545
|
});
|
|
36516
36546
|
}, e2.prototype.snapshotWithTimingEnd = function(t3) {
|
|
36517
|
-
return
|
|
36518
|
-
return
|
|
36547
|
+
return nT(this, void 0, void 0, function() {
|
|
36548
|
+
return iT(this, function(e3) {
|
|
36519
36549
|
return this.player ? [2, this.player.snapshotWithTimingEnd(t3)] : [2, null];
|
|
36520
36550
|
});
|
|
36521
36551
|
});
|
|
@@ -36524,7 +36554,7 @@ void main(void){
|
|
|
36524
36554
|
}, e2.prototype.getGlobalVolume = function() {
|
|
36525
36555
|
return this.volumeAdjuster.volume;
|
|
36526
36556
|
}, e2.clearLocalCache = function() {
|
|
36527
|
-
|
|
36557
|
+
Gy.clearLocalCache();
|
|
36528
36558
|
}, e2.disposeLocalCache = function() {
|
|
36529
36559
|
}, n2 = e2, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.remoteLogAddress = null, e2.usePlugin = function(t3) {
|
|
36530
36560
|
t3.context({ logger: { info: function(t4) {
|
|
@@ -36534,8 +36564,8 @@ void main(void){
|
|
|
36534
36564
|
}, error: function(t4) {
|
|
36535
36565
|
e2.appendLogString("ERROR - " + new Date().toISOString() + " - " + t4 + "\n");
|
|
36536
36566
|
} } }), function(t4) {
|
|
36537
|
-
var e3 =
|
|
36538
|
-
e3.push(t4),
|
|
36567
|
+
var e3 = Hy.get(t4.hookPoint) || [];
|
|
36568
|
+
e3.push(t4), Hy.set(t4.hookPoint, e3);
|
|
36539
36569
|
}(t3);
|
|
36540
36570
|
}, e2.handleFrozenAllSlide = function() {
|
|
36541
36571
|
e2.instances.forEach(function(t3) {
|
|
@@ -36549,18 +36579,18 @@ void main(void){
|
|
|
36549
36579
|
n3 && n3.release();
|
|
36550
36580
|
}), e2._tempFrozenIds = [];
|
|
36551
36581
|
}, e2.handleLogReport = function(t3) {
|
|
36552
|
-
return
|
|
36582
|
+
return nT(void 0, void 0, void 0, function() {
|
|
36553
36583
|
var i3, r2, o2, s2, a2, l2;
|
|
36554
|
-
return
|
|
36584
|
+
return iT(n2, function(n3) {
|
|
36555
36585
|
switch (n3.label) {
|
|
36556
36586
|
case 0:
|
|
36557
36587
|
return [4, e2.flushLog(true)];
|
|
36558
36588
|
case 1:
|
|
36559
|
-
if (n3.sent(), !
|
|
36589
|
+
if (n3.sent(), !uT)
|
|
36560
36590
|
return [3, 12];
|
|
36561
36591
|
i3 = [], n3.label = 2;
|
|
36562
36592
|
case 2:
|
|
36563
|
-
return n3.trys.push([2, 4, , 5]), [4,
|
|
36593
|
+
return n3.trys.push([2, 4, , 5]), [4, uT.keys()];
|
|
36564
36594
|
case 3:
|
|
36565
36595
|
return i3 = (n3.sent() || []).sort(function(t4, e3) {
|
|
36566
36596
|
return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
|
|
@@ -36576,7 +36606,7 @@ void main(void){
|
|
|
36576
36606
|
return [3, 12];
|
|
36577
36607
|
s2 = o2[r2], a2 = s2.replace("run_time_log_", ""), l2 = "", n3.label = 7;
|
|
36578
36608
|
case 7:
|
|
36579
|
-
return n3.trys.push([7, 9, , 10]), [4,
|
|
36609
|
+
return n3.trys.push([7, 9, , 10]), [4, uT.getItem(s2)];
|
|
36580
36610
|
case 8:
|
|
36581
36611
|
return l2 = n3.sent() || "", [3, 10];
|
|
36582
36612
|
case 9:
|
|
@@ -36591,20 +36621,20 @@ void main(void){
|
|
|
36591
36621
|
});
|
|
36592
36622
|
});
|
|
36593
36623
|
}, e2.handleLogDownload = function() {
|
|
36594
|
-
return
|
|
36624
|
+
return nT(void 0, void 0, void 0, function() {
|
|
36595
36625
|
var t3, i3, r2, o2, s2, a2, l2;
|
|
36596
|
-
return
|
|
36626
|
+
return iT(n2, function(n3) {
|
|
36597
36627
|
switch (n3.label) {
|
|
36598
36628
|
case 0:
|
|
36599
36629
|
return n3.trys.push([0, 7, , 8]), [4, e2.flushLog(true)];
|
|
36600
36630
|
case 1:
|
|
36601
|
-
return n3.sent(), t3 = "",
|
|
36631
|
+
return n3.sent(), t3 = "", uT ? [4, uT.keys()] : [3, 6];
|
|
36602
36632
|
case 2:
|
|
36603
36633
|
i3 = (n3.sent() || []).sort(function(t4, e3) {
|
|
36604
36634
|
return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
|
|
36605
36635
|
}), r2 = 0, o2 = i3, n3.label = 3;
|
|
36606
36636
|
case 3:
|
|
36607
|
-
return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4,
|
|
36637
|
+
return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4, uT.getItem(s2)]) : [3, 6];
|
|
36608
36638
|
case 4:
|
|
36609
36639
|
t3 = a2 + (n3.sent() || ""), n3.label = 5;
|
|
36610
36640
|
case 5:
|
|
@@ -36618,12 +36648,12 @@ void main(void){
|
|
|
36618
36648
|
}
|
|
36619
36649
|
});
|
|
36620
36650
|
});
|
|
36621
|
-
},
|
|
36651
|
+
}, eT([(i2 = "Slide.initConfig", function(t3, e3, n3) {
|
|
36622
36652
|
var r2 = n3.value;
|
|
36623
36653
|
n3.value = function() {
|
|
36624
36654
|
for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
|
|
36625
36655
|
t4[e4] = arguments[e4];
|
|
36626
|
-
for (var n4 =
|
|
36656
|
+
for (var n4 = Hy.get(i2) || [], o2 = t4, s2 = 0, a2 = n4; s2 < a2.length; s2++) {
|
|
36627
36657
|
var l2 = a2[s2];
|
|
36628
36658
|
try {
|
|
36629
36659
|
o2 = l2.before(o2);
|
|
@@ -36645,16 +36675,16 @@ void main(void){
|
|
|
36645
36675
|
};
|
|
36646
36676
|
})], e2.prototype, "initSlideConfig", null), e2;
|
|
36647
36677
|
}(Ja.a);
|
|
36648
|
-
|
|
36649
|
-
}), window.addEventListener("__slide_log__",
|
|
36650
|
-
t2.data.type === "@slide/_request_log_" &&
|
|
36678
|
+
uT == null || uT.clear().catch(function() {
|
|
36679
|
+
}), window.addEventListener("__slide_log__", cT.handleLogDownload), window.addEventListener("message", function(t2) {
|
|
36680
|
+
t2.data.type === "@slide/_request_log_" && cT.handleLogReport(t2.data.sessionId).catch(function() {
|
|
36651
36681
|
});
|
|
36652
36682
|
}), window.addEventListener("message", function(t2) {
|
|
36653
|
-
t2.data.type === "@slide/_request_frozen_" &&
|
|
36683
|
+
t2.data.type === "@slide/_request_frozen_" && cT.handleFrozenAllSlide();
|
|
36654
36684
|
}), window.addEventListener("message", function(t2) {
|
|
36655
|
-
t2.data.type === "@slide/_request_release_" &&
|
|
36685
|
+
t2.data.type === "@slide/_request_release_" && cT.handleReleaseAllSlide();
|
|
36656
36686
|
}), window.setInterval(function() {
|
|
36657
|
-
|
|
36687
|
+
cT.flushLog().catch(function() {
|
|
36658
36688
|
});
|
|
36659
36689
|
}, 2e3);
|
|
36660
36690
|
}]);
|
|
@@ -38998,7 +39028,7 @@ class SlidePreviewer {
|
|
|
38998
39028
|
}
|
|
38999
39029
|
}
|
|
39000
39030
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39001
|
-
const version = "0.2.26-beta.
|
|
39031
|
+
const version = "0.2.26-beta.2";
|
|
39002
39032
|
const SlideApp = {
|
|
39003
39033
|
kind: "Slide",
|
|
39004
39034
|
setup(context) {
|