Extract element functions into modules (#207)
This commit is contained in:
9
src/element/types.ts
Normal file
9
src/element/types.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { newElement } from "./newElement";
|
||||
|
||||
export type ExcalidrawElement = ReturnType<typeof newElement>;
|
||||
export type ExcalidrawTextElement = ExcalidrawElement & {
|
||||
type: "text";
|
||||
font: string;
|
||||
text: string;
|
||||
actualBoundingBoxAscent: number;
|
||||
};
|
Reference in New Issue
Block a user