mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Extract element functions into modules (#207)
This commit is contained in:
parent
e3eef04e00
commit
01805f734d
13 changed files with 547 additions and 474 deletions
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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue