Extract element functions into modules (#207)

This commit is contained in:
Gasim Gasimzada 2020-01-06 19:34:22 +04:00 committed by GitHub
parent e3eef04e00
commit 01805f734d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 547 additions and 474 deletions

9
src/element/types.ts Normal file
View 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;
};