@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @versa_ai/vmml-editor@1.0.26 build D:\code\work\vmml-player\packages\editor
2
+ > @versa_ai/vmml-editor@1.0.28 build D:\code\work\vmml-player\packages\editor
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -124,12 +124,12 @@ More info and automated migrator: https://sass-lang.com/d/slash-div [35
124
124
 
125
125
 
126
126
  DTS Build start
127
- CJS dist\index.js 115.30 KB
128
- CJS dist\index.js.map 218.69 KB
129
- CJS ⚡️ Build success in 705ms
130
- ESM dist\index.mjs 113.66 KB
131
- ESM dist\index.mjs.map 218.39 KB
132
- ESM ⚡️ Build success in 706ms
133
- DTS ⚡️ Build success in 1858ms
127
+ ESM dist\index.mjs 113.87 KB
128
+ ESM dist\index.mjs.map 218.82 KB
129
+ ESM ⚡️ Build success in 666ms
130
+ CJS dist\index.js 115.50 KB
131
+ CJS dist\index.js.map 219.12 KB
132
+ CJS ⚡️ Build success in 666ms
133
+ DTS ⚡️ Build success in 1709ms
134
134
  DTS dist\index.d.ts 158.00 B
135
135
  DTS dist\index.d.mts 158.00 B
package/dist/index.js CHANGED
@@ -2768,6 +2768,7 @@ var EditorFn = ({
2768
2768
  const { current: canvasCurrent } = canvasRef;
2769
2769
  if (!playerCurrent) return;
2770
2770
  (_b = (_a2 = canvasCurrent == null ? void 0 : canvasCurrent.getCanvasCtx()) == null ? void 0 : _a2.clear) == null ? void 0 : _b.call(_a2);
2771
+ needPlay.current = false;
2771
2772
  const currentFrame = checkFrame ?? pauseFrame;
2772
2773
  const convertedVmml = vmmlUtils.convertVmmlTextScaleByForbidden(v);
2773
2774
  setVmmlState(convertedVmml);
@@ -2778,11 +2779,17 @@ var EditorFn = ({
2778
2779
  canvasCurrent.checkObjectInPoint(currentFrame);
2779
2780
  }
2780
2781
  };
2782
+ const getCurrentFrame = () => {
2783
+ console.log(player, "getCurrentFrame>>>>>>>>>>>>");
2784
+ if (!player) return 0;
2785
+ return player.getCurrentFrame();
2786
+ };
2781
2787
  react.useImperativeHandle(
2782
2788
  ref,
2783
2789
  () => ({
2784
2790
  getActions,
2785
2791
  getfcObject,
2792
+ getCurrentFrame,
2786
2793
  getVmml,
2787
2794
  getPlayer,
2788
2795
  texteditClose,