@versa_ai/vmml-editor 1.0.44 → 1.0.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versa_ai/vmml-editor",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -17,7 +17,7 @@
17
17
  "remotion": "4.0.166",
18
18
  "uuid": "^10.0.0",
19
19
  "zod": "^3.23.8",
20
- "@versa_ai/vmml-player": "1.1.21",
20
+ "@versa_ai/vmml-player": "1.1.22",
21
21
  "@versa_ai/vmml-utils": "1.0.15"
22
22
  },
23
23
  "devDependencies": {
package/src/index.tsx CHANGED
@@ -442,7 +442,7 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
442
442
 
443
443
  const convertedVmml = v;
444
444
  const isSame = JSON.stringify(convertedVmml) == JSON.stringify(vmmlState);
445
- console.log(isSame, 'isSamew>>>')
445
+ // console.log(isSame, 'isSamew>>>')
446
446
  if (!isSame) {
447
447
  const currentV = cloneDeep(convertedVmml)
448
448
  canvasCurrent?.getCanvasCtx()?.clear?.()
@@ -94,7 +94,6 @@ class VmmlConverter {
94
94
  * @param fObj - 画布fObj
95
95
  */
96
96
  public addTextClip(fObj: any): void {
97
- console.log("addTextClip fObj", fObj);
98
97
  const posParam = this.setPosParam(fObj);
99
98
 
100
99
  // const [rect, textbox] = fObj.objects;
@@ -142,7 +141,7 @@ class VmmlConverter {
142
141
  editorTrack.clips.push(tClipData);
143
142
  }
144
143
 
145
- console.log("addTextClip 最终vmml", this.vmml);
144
+ // console.log("addTextClip 最终vmml", this.vmml);
146
145
  }
147
146
 
148
147
  /**
@@ -150,7 +149,6 @@ class VmmlConverter {
150
149
  * @param fObj - 画布fObj
151
150
  */
152
151
  public addVideoClip(fObj: any): void {
153
- console.log("addVideoClip fObj", fObj);
154
152
  const clips = [];
155
153
  const editorTrack = this.tracks.find((track: any) => track.editorType === "表情包");
156
154
  const clipData = this.loadClipData(fObj);
@@ -183,7 +181,7 @@ class VmmlConverter {
183
181
  }
184
182
  }
185
183
 
186
- console.log("addVideoClip 最终vmml", this.vmml);
184
+ // console.log("addVideoClip 最终vmml", this.vmml);
187
185
  }
188
186
 
189
187
  /**
@@ -191,7 +189,7 @@ class VmmlConverter {
191
189
  * @param fObj - 画布fObj
192
190
  */
193
191
  public updateClip(fObj: any) {
194
- console.log("updateClip fObj", fObj, this.tracks);
192
+ // console.log("updateClip fObj", fObj, this.tracks);
195
193
  const posParam = this.setPosParam(fObj);
196
194
  const {
197
195
  clipData: { id, type, lineSpacing, originClip },
@@ -223,7 +221,7 @@ class VmmlConverter {
223
221
  // console.log("updateClip 最终vmml", this.vmml);
224
222
  }
225
223
  public updateTextClip(fObj: any, duration: number) {
226
- console.log("updateClip fObj", fObj, this.tracks);
224
+ // console.log("updateClip fObj", fObj, this.tracks);
227
225
  const posParam = this.setPosParam(fObj);
228
226
  const {
229
227
  clipData: { id },
@@ -234,7 +232,6 @@ class VmmlConverter {
234
232
  const { clipData: { text, textColor, bgColor }} = fObj;
235
233
  const scale = this.fontSize / 22;
236
234
  existClip.duration = duration
237
- console.log(bgColor, 'bgColor>>>')
238
235
  existClip.textClip = {
239
236
  ...existClip.textClip,
240
237
  posParam,
@@ -247,7 +244,7 @@ class VmmlConverter {
247
244
  }
248
245
  };
249
246
  }
250
- console.log(this.vmml, 'updateText>>>')
247
+ // console.log(this.vmml, 'updateText>>>')
251
248
  }
252
249
 
253
250
  /**
@@ -279,7 +276,6 @@ class VmmlConverter {
279
276
  }
280
277
  }
281
278
  }
282
- console.log('删除之后的vmml', this.vmml)
283
279
  }
284
280
 
285
281
  changeVmml (newVmml: any) {
@@ -302,7 +298,7 @@ class VmmlConverter {
302
298
  }
303
299
  }
304
300
 
305
- console.log("changeMute 最终Vmml", this.vmml);
301
+ // console.log("changeMute 最终Vmml", this.vmml);
306
302
  }
307
303
 
308
304
  //加载clip数据