@versa_ai/vmml-editor 1.0.36 → 1.0.38
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/.turbo/turbo-build.log +8 -8
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/EditorCanvas.tsx +1 -2
- package/src/components/SeekBar.tsx +0 -1
- package/src/index.tsx +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @versa_ai/vmml-editor@1.0.
|
|
2
|
+
> @versa_ai/vmml-editor@1.0.38 build D:\code\work\vmml-player\packages\editor
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
|
@@ -124,12 +124,12 @@ More info and automated migrator: https://sass-lang.com/d/slash-div[0m [1m[35
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
[34mDTS[39m Build start
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
132
|
-
[
|
|
133
|
-
[32mDTS[39m ⚡️ Build success in
|
|
127
|
+
[32mESM[39m [1mdist\index.mjs [22m[32m115.26 KB[39m
|
|
128
|
+
[32mESM[39m [1mdist\index.mjs.map [22m[32m222.82 KB[39m
|
|
129
|
+
[32mESM[39m ⚡️ Build success in 885ms
|
|
130
|
+
[32mCJS[39m [1mdist\index.js [22m[32m116.86 KB[39m
|
|
131
|
+
[32mCJS[39m [1mdist\index.js.map [22m[32m223.11 KB[39m
|
|
132
|
+
[32mCJS[39m ⚡️ Build success in 886ms
|
|
133
|
+
[32mDTS[39m ⚡️ Build success in 1577ms
|
|
134
134
|
[32mDTS[39m [1mdist\index.d.ts [22m[32m158.00 B[39m
|
|
135
135
|
[32mDTS[39m [1mdist\index.d.mts [22m[32m158.00 B[39m
|
package/dist/index.js
CHANGED
|
@@ -364,7 +364,6 @@ var SeekBar = ({ player, vmmlRef, frame, durationInFrames, intoEdit, setDragStat
|
|
|
364
364
|
wasPlaying: player.isPlaying()
|
|
365
365
|
});
|
|
366
366
|
player.pause();
|
|
367
|
-
console.log(_frame, "vcnjvabnjvabnjvbn>>>>>>>>>>>>>");
|
|
368
367
|
player.seekTo(_frame);
|
|
369
368
|
vmmlRef.current && vmmlRef.current.onSeekStart();
|
|
370
369
|
}, [player, durationInFrames]);
|
|
@@ -1056,7 +1055,6 @@ var EditorCanvas = react.forwardRef(
|
|
|
1056
1055
|
if (fc) {
|
|
1057
1056
|
const ns = Math.floor((f ?? frame) / 30 * 1e6);
|
|
1058
1057
|
const objects = fc.getObjects();
|
|
1059
|
-
console.log(objects, "checkObjectInPoint>>>objects>>>>>>>>>>>", ns, f, frame);
|
|
1060
1058
|
objects.forEach((item) => {
|
|
1061
1059
|
var _a, _b, _c;
|
|
1062
1060
|
if (((_a = item == null ? void 0 : item.clipData) == null ? void 0 : _a.type) === "\u6587\u5B57") {
|
|
@@ -1662,7 +1660,7 @@ var EditorCanvas = react.forwardRef(
|
|
|
1662
1660
|
createTextFromClip,
|
|
1663
1661
|
changeObjectVisible,
|
|
1664
1662
|
getCanvasCtx
|
|
1665
|
-
}), [fc]);
|
|
1663
|
+
}), [fc, frame]);
|
|
1666
1664
|
const getActions = () => {
|
|
1667
1665
|
if (history) {
|
|
1668
1666
|
return history.getActionType();
|
|
@@ -2653,7 +2651,6 @@ var EditorFn = ({
|
|
|
2653
2651
|
};
|
|
2654
2652
|
const onWaiting = () => {
|
|
2655
2653
|
var _a2, _b;
|
|
2656
|
-
console.log("onWaiting>>>>>>>>>>>>>>consol");
|
|
2657
2654
|
const { current } = vmmlPlayerRef;
|
|
2658
2655
|
const playing = ((_b = (_a2 = current == null ? void 0 : current.playerRef) == null ? void 0 : _a2.isPlaying) == null ? void 0 : _b.call(_a2)) ?? false;
|
|
2659
2656
|
if (playing) {
|
|
@@ -2791,8 +2788,9 @@ var EditorFn = ({
|
|
|
2791
2788
|
if (!playing) needPlay.current = false;
|
|
2792
2789
|
const currentFrame = checkFrame ?? (((_c = player == null ? void 0 : player.getCurrentFrame) == null ? void 0 : _c.call(player)) ?? frame ?? pauseFrame);
|
|
2793
2790
|
setFrame(currentFrame);
|
|
2794
|
-
const convertedVmml =
|
|
2795
|
-
const isSame = JSON.stringify(convertedVmml)
|
|
2791
|
+
const convertedVmml = v;
|
|
2792
|
+
const isSame = JSON.stringify(convertedVmml) == JSON.stringify(vmmlState);
|
|
2793
|
+
console.log(isSame, "VMML\u662F\u5426\u76F8\u540C", convertedVmml, vmmlState);
|
|
2796
2794
|
if (!isSame) {
|
|
2797
2795
|
(_e = (_d = canvasCurrent == null ? void 0 : canvasCurrent.getCanvasCtx()) == null ? void 0 : _d.clear) == null ? void 0 : _e.call(_d);
|
|
2798
2796
|
setVmmlState(convertedVmml);
|