@versa_ai/vmml-editor 1.0.31 → 1.0.32

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.31 build D:\code\work\vmml-player\packages\editor
2
+ > @versa_ai/vmml-editor@1.0.32 build D:\code\work\vmml-player\packages\editor
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -123,13 +123,13 @@ More info and automated migrator: https://sass-lang.com/d/slash-div [35
123
123
 
124
124
 
125
125
 
126
+ CJS dist\index.js 115.87 KB
127
+ CJS dist\index.js.map 221.07 KB
128
+ CJS ⚡️ Build success in 906ms
129
+ ESM dist\index.mjs 114.26 KB
130
+ ESM dist\index.mjs.map 220.78 KB
131
+ ESM ⚡️ Build success in 906ms
126
132
  DTS Build start
127
- ESM dist\index.mjs 114.31 KB
128
- ESM dist\index.mjs.map 220.87 KB
129
- ESM ⚡️ Build success in 852ms
130
- CJS dist\index.js 115.92 KB
131
- CJS dist\index.js.map 221.16 KB
132
- CJS ⚡️ Build success in 853ms
133
- DTS ⚡️ Build success in 7106ms
133
+ DTS ⚡️ Build success in 1918ms
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
@@ -2723,10 +2723,8 @@ var EditorFn = ({
2723
2723
  if (player) {
2724
2724
  const parent = player.getContainerNode();
2725
2725
  if (!canvasSize.width) {
2726
- console.log(parent, "parent>>>>");
2727
2726
  const playerElement = parent == null ? void 0 : parent.children[0];
2728
2727
  const { width, height: height2 } = (playerElement == null ? void 0 : playerElement.getBoundingClientRect()) || {};
2729
- console.log(height2);
2730
2728
  setCanvasSize({ width, height: height2, top: playerElement.offsetTop });
2731
2729
  }
2732
2730
  player.addEventListener("play", onPlay);
@@ -2771,6 +2769,7 @@ var EditorFn = ({
2771
2769
  const isSame = JSON.stringify(v) === JSON.stringify(vmmlState);
2772
2770
  console.log(v, vmmlState, isSame, "\u5224\u65ADvmml\u662F\u5426\u76F8\u540C");
2773
2771
  needPlay.current = false;
2772
+ once.current = false;
2774
2773
  const convertedVmml = vmmlUtils.convertVmmlTextScaleByForbidden(v);
2775
2774
  if (!isSame) {
2776
2775
  (_b = (_a2 = canvasCurrent == null ? void 0 : canvasCurrent.getCanvasCtx()) == null ? void 0 : _a2.clear) == null ? void 0 : _b.call(_a2);