@lvce-editor/editor-worker 19.68.3 → 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.
@@ -9929,9 +9929,6 @@ const getLineInfos = (lines, tokenizer, languageId) => {
9929
9929
  lineInfos.push(lineInfo);
9930
9930
  currentLineState = result;
9931
9931
  }
9932
- console.error({
9933
- lineInfos
9934
- });
9935
9932
  return lineInfos;
9936
9933
  };
9937
9934
 
@@ -15135,7 +15132,11 @@ const isAutoClosingTagsEnabled = async () => {
15135
15132
  return true;
15136
15133
  };
15137
15134
  const getRowHeight = async () => {
15138
- 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;
15139
15140
  };
15140
15141
  const getFontSize = async () => {
15141
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.3",
3
+ "version": "19.68.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"