@lvce-editor/editor-worker 19.75.6 → 19.76.1

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/diff-sdk.js CHANGED
@@ -6279,8 +6279,7 @@ const getLanguages = async (platform, assetDir) => {
6279
6279
  };
6280
6280
 
6281
6281
  const measureCharacterWidth = async (fontWeight, fontSize, fontFamily, letterSpacing) => {
6282
- const width = await measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
6283
- return width + letterSpacing;
6282
+ return measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
6284
6283
  };
6285
6284
 
6286
6285
  const normalizeLineEndings = content => {
@@ -6692,8 +6692,7 @@ const getLanguages = async (platform, assetDir) => {
6692
6692
  };
6693
6693
 
6694
6694
  const measureCharacterWidth = async (fontWeight, fontSize, fontFamily, letterSpacing) => {
6695
- const width = await measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
6696
- return width + letterSpacing;
6695
+ return measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
6697
6696
  };
6698
6697
 
6699
6698
  const normalizeLineEndings = content => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.75.6",
3
+ "version": "19.76.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"