@lvce-editor/editor-worker 19.76.0 → 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 +1 -2
- package/dist/editorWorkerMain.js +1 -2
- package/package.json +1 -1
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
|
-
|
|
6283
|
-
return width + letterSpacing;
|
|
6282
|
+
return measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
|
|
6284
6283
|
};
|
|
6285
6284
|
|
|
6286
6285
|
const normalizeLineEndings = content => {
|
package/dist/editorWorkerMain.js
CHANGED
|
@@ -6692,8 +6692,7 @@ const getLanguages = async (platform, assetDir) => {
|
|
|
6692
6692
|
};
|
|
6693
6693
|
|
|
6694
6694
|
const measureCharacterWidth = async (fontWeight, fontSize, fontFamily, letterSpacing) => {
|
|
6695
|
-
|
|
6696
|
-
return width + letterSpacing;
|
|
6695
|
+
return measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
|
|
6697
6696
|
};
|
|
6698
6697
|
|
|
6699
6698
|
const normalizeLineEndings = content => {
|