@versa_ai/vmml-editor 1.0.43 → 1.0.44

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.43 build D:\code\work\vmml-player\packages\editor
2
+ > @versa_ai/vmml-editor@1.0.44 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
 
127
- ESM dist\index.mjs 119.67 KB
128
- ESM dist\index.mjs.map 232.93 KB
129
- ESM ⚡️ Build success in 941ms
130
- CJS dist\index.js 121.47 KB
131
- CJS dist\index.js.map 233.24 KB
132
- CJS ⚡️ Build success in 942ms
133
- DTS ⚡️ Build success in 1928ms
127
+ CJS dist\index.js 121.53 KB
128
+ CJS dist\index.js.map 233.39 KB
129
+ CJS ⚡️ Build success in 1082ms
130
+ ESM dist\index.mjs 119.73 KB
131
+ ESM dist\index.mjs.map 233.08 KB
132
+ ESM ⚡️ Build success in 1083ms
133
+ DTS ⚡️ Build success in 2236ms
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
@@ -2926,12 +2926,14 @@ var EditorFn = ({
2926
2926
  if (!playing) needPlay.current = false;
2927
2927
  const currentFrame = checkFrame ?? (((_c = player == null ? void 0 : player.getCurrentFrame) == null ? void 0 : _c.call(player)) ?? frame ?? pauseFrame);
2928
2928
  setFrame(currentFrame);
2929
- const convertedVmml = cloneDeep__default.default(v);
2929
+ const convertedVmml = v;
2930
2930
  const isSame = JSON.stringify(convertedVmml) == JSON.stringify(vmmlState);
2931
+ console.log(isSame, "isSamew>>>");
2931
2932
  if (!isSame) {
2933
+ const currentV = cloneDeep__default.default(convertedVmml);
2932
2934
  (_e = (_d = canvasCurrent == null ? void 0 : canvasCurrent.getCanvasCtx()) == null ? void 0 : _d.clear) == null ? void 0 : _e.call(_d);
2933
- setVmmlState(convertedVmml);
2934
- setDurationInFrames(vmmlUtils.getFrames(((_f = convertedVmml == null ? void 0 : convertedVmml.template) == null ? void 0 : _f.duration) || 1, fps));
2935
+ setVmmlState(currentV);
2936
+ setDurationInFrames(vmmlUtils.getFrames(((_f = currentV == null ? void 0 : currentV.template) == null ? void 0 : _f.duration) || 1, fps));
2935
2937
  }
2936
2938
  playerCurrent.setVmml(convertedVmml, currentFrame);
2937
2939
  if (isSame) (_g = canvasCurrent == null ? void 0 : canvasCurrent.checkObjectInPoint) == null ? void 0 : _g.call(canvasCurrent, currentFrame);