From 089862d990ff70b12cff62db025b19fda5b20a08 Mon Sep 17 00:00:00 2001 From: Mike Sawka Date: Fri, 1 Mar 2024 00:14:28 -0800 Subject: [PATCH] initialize lhe (#364) --- src/models/model.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/models/model.ts b/src/models/model.ts index ba81d85e..12a02026 100644 --- a/src/models/model.ts +++ b/src/models/model.ts @@ -188,6 +188,14 @@ class Model { document.addEventListener("keydown", this.docKeyDownHandler.bind(this)); document.addEventListener("selectionchange", this.docSelectionChangeHandler.bind(this)); setTimeout(() => this.getClientDataLoop(1), 10); + this.lineHeightEnv = { + // defaults + fontSize: 12, + fontSizeSm: 10, + lineHeight: 15, + lineHeightSm: 13, + pad: 7, + }; } static getInstance(): Model {