@lvce-editor/editor-worker 19.68.4 → 19.68.5
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/editorWorkerMain.js +5 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -15132,7 +15132,11 @@ const isAutoClosingTagsEnabled = async () => {
|
|
|
15132
15132
|
return true;
|
|
15133
15133
|
};
|
|
15134
15134
|
const getRowHeight = async () => {
|
|
15135
|
-
|
|
15135
|
+
const [lineHeight, fontSize] = await Promise.all([get$3(kLineHeight), getFontSize()]);
|
|
15136
|
+
if (typeof lineHeight !== 'number' || !Number.isFinite(lineHeight) || lineHeight < fontSize) {
|
|
15137
|
+
return fontSize;
|
|
15138
|
+
}
|
|
15139
|
+
return lineHeight;
|
|
15136
15140
|
};
|
|
15137
15141
|
const getFontSize = async () => {
|
|
15138
15142
|
return (await get$3(kFontSize)) || 15; // TODO find out if it is possible to use all numeric values for settings for efficiency, maybe settings could be an array
|