Fixes text jumping on creation (#266)

* Fixes text jumping on creation

* Do not remove node on ESC

* Fixed typo
This commit is contained in:
Timur Khazamov
2020-01-09 00:06:25 +05:00
committed by GitHub
parent 2122a9cf9f
commit 37934c0f8b
5 changed files with 52 additions and 23 deletions

View File

@ -5,5 +5,7 @@ export type ExcalidrawTextElement = ExcalidrawElement & {
type: "text";
font: string;
text: string;
actualBoundingBoxAscent: number;
// for backward compatibility
actualBoundingBoxAscent?: number;
baseline: number;
};