@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/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]);
@@ -1054,7 +1053,6 @@ var EditorCanvas = forwardRef(
1054
1053
  if (fc) {
1055
1054
  const ns = Math.floor((f ?? frame) / 30 * 1e6);
1056
1055
  const objects = fc.getObjects();
1057
- console.log(objects, "checkObjectInPoint>>>objects>>>>>>>>>>>", ns, f, frame);
1058
1056
  objects.forEach((item) => {
1059
1057
  var _a, _b, _c;
1060
1058
  if (((_a = item == null ? void 0 : item.clipData) == null ? void 0 : _a.type) === "\u6587\u5B57") {
@@ -1660,7 +1658,7 @@ var EditorCanvas = forwardRef(
1660
1658
  createTextFromClip,
1661
1659
  changeObjectVisible,
1662
1660
  getCanvasCtx
1663
- }), [fc]);
1661
+ }), [fc, frame]);
1664
1662
  const getActions = () => {
1665
1663
  if (history) {
1666
1664
  return history.getActionType();
@@ -2651,7 +2649,6 @@ var EditorFn = ({
2651
2649
  };
2652
2650
  const onWaiting = () => {
2653
2651
  var _a2, _b;
2654
- console.log("onWaiting>>>>>>>>>>>>>>consol");
2655
2652
  const { current } = vmmlPlayerRef;
2656
2653
  const playing = ((_b = (_a2 = current == null ? void 0 : current.playerRef) == null ? void 0 : _a2.isPlaying) == null ? void 0 : _b.call(_a2)) ?? false;
2657
2654
  if (playing) {
@@ -2789,8 +2786,9 @@ var EditorFn = ({
2789
2786
  if (!playing) needPlay.current = false;
2790
2787
  const currentFrame = checkFrame ?? (((_c = player == null ? void 0 : player.getCurrentFrame) == null ? void 0 : _c.call(player)) ?? frame ?? pauseFrame);
2791
2788
  setFrame(currentFrame);
2792
- const convertedVmml = convertVmmlTextScaleByForbidden(v);
2793
- const isSame = JSON.stringify(convertedVmml) === JSON.stringify(vmmlState);
2789
+ const convertedVmml = v;
2790
+ const isSame = JSON.stringify(convertedVmml) == JSON.stringify(vmmlState);
2791
+ console.log(isSame, "VMML\u662F\u5426\u76F8\u540C", convertedVmml, vmmlState);
2794
2792
  if (!isSame) {
2795
2793
  (_e = (_d = canvasCurrent == null ? void 0 : canvasCurrent.getCanvasCtx()) == null ? void 0 : _d.clear) == null ? void 0 : _e.call(_d);
2796
2794
  setVmmlState(convertedVmml);