@netless/app-slide 0.2.94 → 0.2.95
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/LICENSE +21 -0
- package/dist/main.cjs.js +50 -50
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +8 -6
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +50 -50
- package/dist/main.iife.js.map +1 -1
- package/package.json +9 -9
package/dist/main.es.js
CHANGED
|
@@ -30038,10 +30038,10 @@ void main(void){
|
|
|
30038
30038
|
if (r2) {
|
|
30039
30039
|
const i3 = new ep();
|
|
30040
30040
|
if (i3.texture = r2, n2.length > 0 && this.config.useFilter && (this.ctx.featureList || {}).filter && (i3.filters = av(n2, this.ctx.featureList)), this.config.fillFloat) {
|
|
30041
|
-
const { l:
|
|
30042
|
-
|
|
30043
|
-
const
|
|
30044
|
-
i3.width =
|
|
30041
|
+
const n3 = (null !== (t2 = this.config.shapeRotation) && void 0 !== t2 ? t2 : 0) + (null !== (e2 = this.config.groupRotation) && void 0 !== e2 ? e2 : 0), { l: r3, t: o3, r: s2, b: a2 } = this.config.fillFloat.fillRect, l2 = (t3) => Math.abs(Math.sin(t3)), h2 = (t3) => Math.abs(Math.cos(t3)), u2 = 1 - r3 * h2(n3) - s2 * h2(n3) - o3 * l2(n3) - a2 * l2(n3), c2 = 1 - r3 * l2(n3) - s2 * l2(n3) - o3 * h2(n3) - a2 * h2(n3), d2 = this.width * u2, p2 = this.height * c2, f2 = new Jd();
|
|
30042
|
+
f2.drawRect(0, 0, d2, p2), f2.pivot.x = d2 / 2, f2.pivot.y = p2 / 2, f2.rotation = n3;
|
|
30043
|
+
const m2 = f2.getBounds(), g2 = m2.width, v2 = m2.height;
|
|
30044
|
+
i3.width = g2, i3.height = v2, i3.anchor.x = 0.5, i3.anchor.y = 0.5, i3.rotation = -1 * n3, i3.name = "math-texture", 0 === n3 ? (i3.position.x = g2 / 2 + r3 * this.width, i3.position.y = v2 / 2 + o3 * this.height) : (i3.position.x = this.width / 2, i3.position.y = this.height / 2);
|
|
30045
30045
|
} else
|
|
30046
30046
|
i3.width = this.width, i3.height = this.height, o2.rotate && (i3.position.x = this.width / 2, i3.position.y = this.height / 2, i3.anchor.x = 0.5, i3.anchor.y = 0.5, i3.rotation = o2.rotate / 180 * Math.PI);
|
|
30047
30047
|
return i3;
|
|
@@ -31111,6 +31111,8 @@ void main(void){
|
|
|
31111
31111
|
}
|
|
31112
31112
|
createStrokeGraphics() {
|
|
31113
31113
|
var t2, e2, i2, n2;
|
|
31114
|
+
if (this.json.isMathFallback)
|
|
31115
|
+
return null;
|
|
31114
31116
|
const { id: r2, geometry: o2, lineStyle: s2 } = this.json, { width: a2, height: l2, pivot: h2 } = (null == o2 ? void 0 : o2.lineTransform) || $v, u2 = a2 || this.json.width, c2 = l2 || this.json.height, d2 = "solidFill" === (null === (t2 = null == s2 ? void 0 : s2.fill) || void 0 === t2 ? void 0 : t2.fillType) ? s2.fill.color : null;
|
|
31115
31117
|
return s2 && "noFill" !== (null === (e2 = s2.fill) || void 0 === e2 ? void 0 : e2.fillType) ? new Zv(r2 + "-path-graphics", this.ctx, null !== (i2 = null == o2 ? void 0 : o2.paths) && void 0 !== i2 ? i2 : [], null !== (n2 = null == o2 ? void 0 : o2.hash) && void 0 !== n2 ? n2 : "", h2 || { x: 0, y: 0 }, u2, c2, s2, false, null, d2) : null;
|
|
31116
31118
|
}
|
|
@@ -36526,7 +36528,7 @@ void main(void){
|
|
|
36526
36528
|
}
|
|
36527
36529
|
var _T = { 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", useraddLink: "useraddLink" }, yT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, xT = "";
|
|
36528
36530
|
try {
|
|
36529
|
-
xT = "1.4.
|
|
36531
|
+
xT = "1.4.49";
|
|
36530
36532
|
} catch (t2) {
|
|
36531
36533
|
xT = "-dev-";
|
|
36532
36534
|
}
|
|
@@ -40350,7 +40352,7 @@ class SlidePreviewer {
|
|
|
40350
40352
|
}
|
|
40351
40353
|
}
|
|
40352
40354
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
40353
|
-
const version = "0.2.
|
|
40355
|
+
const version = "0.2.95";
|
|
40354
40356
|
const SlideApp = {
|
|
40355
40357
|
kind: "Slide",
|
|
40356
40358
|
setup(context) {
|