2020-01-06 19:34:22 +04:00
|
|
|
import { newElement } from "./newElement";
|
|
|
|
|
|
|
|
export type ExcalidrawElement = ReturnType<typeof newElement>;
|
|
|
|
export type ExcalidrawTextElement = ExcalidrawElement & {
|
|
|
|
type: "text";
|
|
|
|
font: string;
|
|
|
|
text: string;
|
2020-01-09 00:06:25 +05:00
|
|
|
// for backward compatibility
|
|
|
|
actualBoundingBoxAscent?: number;
|
|
|
|
baseline: number;
|
2020-01-06 19:34:22 +04:00
|
|
|
};
|