@versa_ai/vmml-editor 1.0.26 → 1.0.28
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 +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +8 -0
package/dist/index.mjs
CHANGED
|
@@ -2766,6 +2766,7 @@ var EditorFn = ({
|
|
|
2766
2766
|
const { current: canvasCurrent } = canvasRef;
|
|
2767
2767
|
if (!playerCurrent) return;
|
|
2768
2768
|
(_b = (_a2 = canvasCurrent == null ? void 0 : canvasCurrent.getCanvasCtx()) == null ? void 0 : _a2.clear) == null ? void 0 : _b.call(_a2);
|
|
2769
|
+
needPlay.current = false;
|
|
2769
2770
|
const currentFrame = checkFrame ?? pauseFrame;
|
|
2770
2771
|
const convertedVmml = convertVmmlTextScaleByForbidden(v);
|
|
2771
2772
|
setVmmlState(convertedVmml);
|
|
@@ -2776,11 +2777,17 @@ var EditorFn = ({
|
|
|
2776
2777
|
canvasCurrent.checkObjectInPoint(currentFrame);
|
|
2777
2778
|
}
|
|
2778
2779
|
};
|
|
2780
|
+
const getCurrentFrame = () => {
|
|
2781
|
+
console.log(player, "getCurrentFrame>>>>>>>>>>>>");
|
|
2782
|
+
if (!player) return 0;
|
|
2783
|
+
return player.getCurrentFrame();
|
|
2784
|
+
};
|
|
2779
2785
|
useImperativeHandle(
|
|
2780
2786
|
ref,
|
|
2781
2787
|
() => ({
|
|
2782
2788
|
getActions,
|
|
2783
2789
|
getfcObject,
|
|
2790
|
+
getCurrentFrame,
|
|
2784
2791
|
getVmml,
|
|
2785
2792
|
getPlayer,
|
|
2786
2793
|
texteditClose,
|