@netless/app-slide 0.2.35 → 0.2.36
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 +78 -78
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +19 -11
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +78 -78
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -30611,7 +30611,7 @@ void main(void){
|
|
|
30611
30611
|
const r3 = e2[t3], o3 = e2[t3 + 1], [s3, a2] = o3.split(",").map((t4) => Number(t4) / 100);
|
|
30612
30612
|
i2.push(r3), n2.push({ x: s3, y: a2 });
|
|
30613
30613
|
}
|
|
30614
|
-
if (i2.join("") !== "
|
|
30614
|
+
if (i2.join("") !== "MLLLCC")
|
|
30615
30615
|
return false;
|
|
30616
30616
|
for (let t3 = 0; t3 < 3; t3++) {
|
|
30617
30617
|
const e3 = n2[t3], i3 = n2[t3 + 1];
|
|
@@ -31065,10 +31065,15 @@ void main(void){
|
|
|
31065
31065
|
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") {
|
|
31066
31066
|
if (this.renderContainer.addChild(this.container), this.text) {
|
|
31067
31067
|
const { x: t4, y: e3 } = (i2 = this.json.scale) !== null && i2 !== void 0 ? i2 : { x: 1, y: 1 };
|
|
31068
|
-
this.text.container.scale.x = e3 < 0 ? -Math.abs(t4) : Math.abs(t4), this.text.container.scale.y = e3, this.text.container.position.x = ((r2 = (n2 = this.json.position) === null || n2 === void 0 ? void 0 : n2.x) !== null && r2 !== void 0 ? r2 : 0) + this.text.x, this.text.container.position.y = ((s2 = (o2 = this.json.position) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 0) + this.text.y, this.text.container.scale.y < 0 && (this.text.container.position.y += this.text.height), this.text.container.scale.x < 0 && (this.text.container.position.x += this.json.width), this.renderContainer.addChild(this.text.container);
|
|
31068
|
+
this.text.container.scale.x = e3 < 0 ? -Math.abs(t4) : Math.abs(t4), this.text.container.scale.y = e3, this.text.container.position.x = ((r2 = (n2 = this.json.position) === null || n2 === void 0 ? void 0 : n2.x) !== null && r2 !== void 0 ? r2 : 0) + this.text.x, this.text.container.position.y = ((s2 = (o2 = this.json.position) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 0) + this.text.y, this.text.container.scale.y < 0 && (this.text.container.position.y += this.text.height), this.text.container.scale.x < 0 && (this.text.container.position.x += this.json.width), this.json.textRotation && (this.text.container.rotation = this.json.textRotation), this.renderContainer.addChild(this.text.container);
|
|
31069
31069
|
}
|
|
31070
31070
|
} else {
|
|
31071
31071
|
if (this.text) {
|
|
31072
|
+
if (this.json.textRotation) {
|
|
31073
|
+
this.text.container.rotation = this.json.textRotation;
|
|
31074
|
+
const { width: t5, height: e4 } = this.text, { x: i4, y: n3 } = this.text.container.position;
|
|
31075
|
+
this.text.container.pivot.x = t5 / 2, this.text.container.pivot.y = e4 / 2, this.text.container.x = i4 + t5 / 2, this.text.container.y = n3 + e4 / 2;
|
|
31076
|
+
}
|
|
31072
31077
|
if (cg()(this.json.textRotateWithShape) && !this.json.textRotateWithShape) {
|
|
31073
31078
|
const t5 = this.json.rotation || 0;
|
|
31074
31079
|
this.text.container.rotation = -t5;
|
|
@@ -31541,7 +31546,7 @@ void main(void){
|
|
|
31541
31546
|
this.controller.jumpToTime(t2);
|
|
31542
31547
|
}
|
|
31543
31548
|
stop() {
|
|
31544
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(Hy.mediaStop);
|
|
31549
|
+
this.seek(0), this.pause(), this.ctx.eventHub.emit(Hy.mediaStop, { id: this.id });
|
|
31545
31550
|
}
|
|
31546
31551
|
requestFullscreen() {
|
|
31547
31552
|
return u_(this, void 0, void 0, function* () {
|
|
@@ -31644,7 +31649,7 @@ void main(void){
|
|
|
31644
31649
|
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent seek event with paused state", this.ctx.taskId) : this.controller.jumpToTime(t2);
|
|
31645
31650
|
}
|
|
31646
31651
|
stop() {
|
|
31647
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(Hy.mediaStop);
|
|
31652
|
+
this.seek(0), this.pause(), this.ctx.eventHub.emit(Hy.mediaStop, { id: this.id });
|
|
31648
31653
|
}
|
|
31649
31654
|
requestFullscreen() {
|
|
31650
31655
|
}
|
|
@@ -31787,8 +31792,11 @@ void main(void){
|
|
|
31787
31792
|
const o2 = { x: (i2 = (e2 = this.json.position) === null || e2 === void 0 ? void 0 : e2.x) !== null && i2 !== void 0 ? i2 : 0, y: (r2 = (n2 = this.json.position) === null || n2 === void 0 ? void 0 : n2.y) !== null && r2 !== void 0 ? r2 : 0 };
|
|
31788
31793
|
for (let e3 = 0, i3 = this.json.children.length; e3 < i3; e3++)
|
|
31789
31794
|
t2.addSubMTask(() => g_(this, void 0, void 0, function* () {
|
|
31790
|
-
|
|
31791
|
-
|
|
31795
|
+
let i4 = this.json.children[e3], n3 = null;
|
|
31796
|
+
if (!(!this.ctx.featureList || !this.ctx.featureList.smartArt) && ((i4 == null ? void 0 : i4.type) === "Shape" || (i4 == null ? void 0 : i4.type) === "Picture") && this.ctx.smartArtShapeList) {
|
|
31797
|
+
const { id: t3 } = i4, e4 = this.ctx.smartArtShapeList.find((e5) => e5.id === t3);
|
|
31798
|
+
e4 && (i4 = e4);
|
|
31799
|
+
}
|
|
31792
31800
|
(i4 == null ? void 0 : i4.type) === "Shape" ? n3 = new Kv(i4, this.ctx, o2, this.json.fillStyle) : (i4 == null ? void 0 : i4.type) === "Picture" ? n3 = new m_(i4, this.ctx, o2, this.json.fillStyle) : (i4 == null ? void 0 : i4.type) === "Container" && (n3 = new v_(i4, this.ctx, o2, this.json.fillStyle, t2)), n3 && this.children.push(n3);
|
|
31793
31801
|
}), "@ContainerImpl[child.init]");
|
|
31794
31802
|
}
|
|
@@ -32986,7 +32994,7 @@ void main(void){
|
|
|
32986
32994
|
};
|
|
32987
32995
|
class wy extends v_ {
|
|
32988
32996
|
constructor(t2, e2, i2, n2) {
|
|
32989
|
-
super({ id: "stage", width: t2.width, height: t2.height, type: "Container", children: t2.children }, e2, i2, void 0, n2), this.isRendered = false, this.isTimingStartValueCollected = false, this.json = t2, e2.hasBackgroundFillShape = this.detectUseBackgroundFill(this.json), this.container.visible = false, this.ctx = e2;
|
|
32997
|
+
super({ id: "stage", width: t2.width, height: t2.height, type: "Container", children: t2.children }, e2, i2, void 0, n2), this.isRendered = false, this.isTimingStartValueCollected = false, this.json = t2, this.json.smartArtShapeList && (e2.smartArtShapeList = this.json.smartArtShapeList), e2.hasBackgroundFillShape = this.detectUseBackgroundFill(this.json), this.container.visible = false, this.ctx = e2;
|
|
32990
32998
|
const r2 = new Jd();
|
|
32991
32999
|
r2.beginFill(16777215), r2.drawRect(0, 0, t2.width, t2.height), r2.endFill(), this.container.addChild(r2);
|
|
32992
33000
|
}
|
|
@@ -35737,9 +35745,9 @@ void main(void){
|
|
|
35737
35745
|
}
|
|
35738
35746
|
var hT = { 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" }, uT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, cT = "";
|
|
35739
35747
|
try {
|
|
35740
|
-
cT = "1.0.1
|
|
35748
|
+
cT = "1.0.1";
|
|
35741
35749
|
} catch (t2) {
|
|
35742
|
-
cT = "
|
|
35750
|
+
cT = "dev";
|
|
35743
35751
|
}
|
|
35744
35752
|
var dT = null;
|
|
35745
35753
|
try {
|
|
@@ -35844,7 +35852,7 @@ void main(void){
|
|
|
35844
35852
|
e2.appendLogString("ERROR - " + new Date().toISOString() + " - {" + n3.randomId + "}[" + i4 + "] " + t3 + "\n");
|
|
35845
35853
|
var o2 = (r2 = n3.config.logger) === null || r2 === void 0 ? void 0 : r2.error;
|
|
35846
35854
|
o2 && o2("[" + i4 + "] " + t3);
|
|
35847
|
-
} }, n3.logger.info("new slide with clientId: " + n3.config.clientId, n3.taskId), n3.anchor = n3.config.anchor, n3.syncQueue = new Zb(n3.receiveSyncHandler), n3.lock = new Jb(n3.mode === "interactive"), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frameResizeObserver.observe(n3.frame), n3.on(hT.syncReceive, function(t3) {
|
|
35855
|
+
} }, n3.logger.info("new slide with clientId: " + n3.config.clientId + ", version: " + n3.version, n3.taskId), n3.anchor = n3.config.anchor, n3.syncQueue = new Zb(n3.receiveSyncHandler), n3.lock = new Jb(n3.mode === "interactive"), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frameResizeObserver.observe(n3.frame), n3.on(hT.syncReceive, function(t3) {
|
|
35848
35856
|
n3.lock.unlock(t3.type, t3.uuid), n3.syncQueue.addTask(t3);
|
|
35849
35857
|
}), n3.renderingTaskManager.eventHub.on("task-error", function(t3) {
|
|
35850
35858
|
var e3 = t3.error, i4 = t3.task, r2 = Tm.transform(e3);
|
|
@@ -38834,7 +38842,7 @@ class SlidePreviewer {
|
|
|
38834
38842
|
}
|
|
38835
38843
|
}
|
|
38836
38844
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
38837
|
-
const version = "0.2.
|
|
38845
|
+
const version = "0.2.36";
|
|
38838
38846
|
const SlideApp = {
|
|
38839
38847
|
kind: "Slide",
|
|
38840
38848
|
setup(context) {
|