37934c0f8b
* Fixes text jumping on creation * Do not remove node on ESC * Fixed typo
12 lines
304 B
TypeScript
12 lines
304 B
TypeScript
import { newElement } from "./newElement";
|
|
|
|
export type ExcalidrawElement = ReturnType<typeof newElement>;
|
|
export type ExcalidrawTextElement = ExcalidrawElement & {
|
|
type: "text";
|
|
font: string;
|
|
text: string;
|
|
// for backward compatibility
|
|
actualBoundingBoxAscent?: number;
|
|
baseline: number;
|
|
};
|