@versa_ai/vmml-editor 1.0.49 → 1.0.51

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.49 build D:\code\work\vmml-player\packages\editor
2
+ > @versa_ai/vmml-editor@1.0.51 build D:\code\work\vmml-player\packages\editor
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -17,6 +17,7 @@ Recommendation: math.div($px, 750) or calc($px / 750)
17
17
  More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
18
18
 
19
19
  src/assets/css/colorSelector.scss:4:9:
20
+ DTS Build start
20
21
   4 │ $px / 750
21
22
  ╵ ^
22
23
 
@@ -123,13 +124,12 @@ More info and automated migrator: https://sass-lang.com/d/slash-div [35
123
124
 
124
125
 
125
126
 
126
- DTS Build start
127
- CJS dist\index.js 121.82 KB
128
- CJS dist\index.js.map 233.81 KB
129
- CJS ⚡️ Build success in 666ms
130
- ESM dist\index.mjs 119.95 KB
131
- ESM dist\index.mjs.map 233.51 KB
132
- ESM ⚡️ Build success in 666ms
133
- DTS ⚡️ Build success in 1560ms
127
+ CJS dist\index.js 121.84 KB
128
+ CJS dist\index.js.map 233.86 KB
129
+ CJS ⚡️ Build success in 997ms
130
+ ESM dist\index.mjs 119.97 KB
131
+ ESM dist\index.mjs.map 233.56 KB
132
+ ESM ⚡️ Build success in 998ms
133
+ DTS ⚡️ Build success in 2081ms
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
@@ -1055,6 +1055,7 @@ var EditorCanvas = react.forwardRef(
1055
1055
  const canvas = new fabric.fabric.Canvas("canvas", {
1056
1056
  width: canvasSize.width,
1057
1057
  height: canvasSize.height,
1058
+ uniScaleKey: "",
1058
1059
  selection: false
1059
1060
  // 画布框选
1060
1061
  });
@@ -2603,13 +2604,13 @@ var EditorFn = ({
2603
2604
  }
2604
2605
  };
2605
2606
  const onControlsClick = () => {
2607
+ setPreviewState(true);
2606
2608
  if (previewState) {
2607
2609
  const { current } = vmmlPlayerRef;
2608
2610
  current.unmute();
2609
2611
  current.play();
2610
2612
  } else {
2611
2613
  setMenuState("");
2612
- setPreviewState(true);
2613
2614
  }
2614
2615
  };
2615
2616
  const onClickMenu = (type) => {