@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.
@@ -15132,7 +15132,11 @@ const isAutoClosingTagsEnabled = async () => {
15132
15132
  return true;
15133
15133
  };
15134
15134
  const getRowHeight = async () => {
15135
- return (await get$3(kLineHeight)) || 20;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.68.4",
3
+ "version": "19.68.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"