@versa_ai/vmml-editor 1.0.35 → 1.0.37
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 +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/EditorCanvas.tsx +1 -1
- package/src/components/SeekBar.tsx +0 -1
- package/src/index.tsx +7 -3
package/dist/index.mjs
CHANGED
|
@@ -362,7 +362,6 @@ var SeekBar = ({ player, vmmlRef, frame, durationInFrames, intoEdit, setDragStat
|
|
|
362
362
|
wasPlaying: player.isPlaying()
|
|
363
363
|
});
|
|
364
364
|
player.pause();
|
|
365
|
-
console.log(_frame, "vcnjvabnjvabnjvbn>>>>>>>>>>>>>");
|
|
366
365
|
player.seekTo(_frame);
|
|
367
366
|
vmmlRef.current && vmmlRef.current.onSeekStart();
|
|
368
367
|
}, [player, durationInFrames]);
|
|
@@ -1660,7 +1659,7 @@ var EditorCanvas = forwardRef(
|
|
|
1660
1659
|
createTextFromClip,
|
|
1661
1660
|
changeObjectVisible,
|
|
1662
1661
|
getCanvasCtx
|
|
1663
|
-
}), [fc]);
|
|
1662
|
+
}), [fc, frame]);
|
|
1664
1663
|
const getActions = () => {
|
|
1665
1664
|
if (history) {
|
|
1666
1665
|
return history.getActionType();
|
|
@@ -2650,6 +2649,14 @@ var EditorFn = ({
|
|
|
2650
2649
|
setIsPlaying(false);
|
|
2651
2650
|
};
|
|
2652
2651
|
const onWaiting = () => {
|
|
2652
|
+
var _a2, _b;
|
|
2653
|
+
const { current } = vmmlPlayerRef;
|
|
2654
|
+
const playing = ((_b = (_a2 = current == null ? void 0 : current.playerRef) == null ? void 0 : _a2.isPlaying) == null ? void 0 : _b.call(_a2)) ?? false;
|
|
2655
|
+
if (playing) {
|
|
2656
|
+
setShowCanvas(false);
|
|
2657
|
+
setPreviewState(true);
|
|
2658
|
+
setBuffering(true);
|
|
2659
|
+
}
|
|
2653
2660
|
};
|
|
2654
2661
|
const onResume = () => {
|
|
2655
2662
|
setBuffering(false);
|