mce 0.29.0 → 0.29.1
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/index.js +20 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15444,33 +15444,36 @@ var yf = (n) => {
|
|
|
15444
15444
|
],
|
|
15445
15445
|
setup: () => {
|
|
15446
15446
|
const { assets: V, on: L, off: T } = n, A = c;
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15447
|
+
function S() {
|
|
15448
|
+
s.value = !0, t.value.currentTime = t.value.startTime, A();
|
|
15449
|
+
}
|
|
15450
|
+
let P, b;
|
|
15451
|
+
function C() {
|
|
15452
|
+
if (P !== void 0) return;
|
|
15453
|
+
const v = t.value;
|
|
15454
|
+
A(), v.play({
|
|
15452
15455
|
rate: a.value,
|
|
15453
15456
|
loopMode: r.value
|
|
15454
15457
|
});
|
|
15455
|
-
function
|
|
15456
|
-
|
|
15458
|
+
function k(x) {
|
|
15459
|
+
b !== void 0 && x !== void 0 && t.value.advance(x - b), b = x, P = requestAnimationFrame(k);
|
|
15457
15460
|
}
|
|
15458
|
-
|
|
15461
|
+
k();
|
|
15459
15462
|
}
|
|
15460
|
-
function
|
|
15461
|
-
|
|
15463
|
+
function y() {
|
|
15464
|
+
P !== void 0 && (cancelAnimationFrame(P), P = void 0), b = void 0, t.value.pause();
|
|
15462
15465
|
}
|
|
15463
|
-
const
|
|
15466
|
+
const g = () => {
|
|
15464
15467
|
s.value = !0;
|
|
15465
15468
|
};
|
|
15466
|
-
t.value.on("ended",
|
|
15467
|
-
s.value =
|
|
15468
|
-
}, { immediate: !0 }), De(s, (
|
|
15469
|
-
|
|
15469
|
+
t.value.on("ended", g), De(() => o.value.visible, (v) => {
|
|
15470
|
+
s.value = v;
|
|
15471
|
+
}, { immediate: !0 }), De(s, (v) => {
|
|
15472
|
+
v ? y() : C();
|
|
15470
15473
|
}, { immediate: !0 }), xt(() => {
|
|
15471
|
-
L("docSet",
|
|
15474
|
+
L("docSet", S), V.on("loaded", A);
|
|
15472
15475
|
}), Jt(() => {
|
|
15473
|
-
|
|
15476
|
+
y(), t.value.off("ended", g), T("docSet", S), V.off("loaded", A);
|
|
15474
15477
|
});
|
|
15475
15478
|
}
|
|
15476
15479
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.29.
|
|
4
|
+
"version": "0.29.1",
|
|
5
5
|
"description": "A headless infinite canvas editor framework built on WebGL rendering, supports exporting to image, video, and PPT. Only the ESM.",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|