add excalidraw_embed into base repo (#2040)

Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
David Luzar 2020-08-20 16:45:20 +02:00 committed by GitHub
parent 80cbe13167
commit ab7073abdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 6710 additions and 77 deletions

View file

@ -14,6 +14,7 @@ import { Point as RoughPoint } from "roughjs/bin/geometry";
import { SocketUpdateDataSource } from "./data";
import { LinearElementEditor } from "./element/linearElementEditor";
import { SuggestedBinding } from "./element/binding";
import { DataState } from "./data/types";
export type FlooredNumber = number & { _brand: "FlooredNumber" };
export type Point = Readonly<RoughPoint>;
@ -122,4 +123,13 @@ export type LibraryItems = readonly LibraryItem[];
export interface ExcalidrawProps {
width: number;
height: number;
onChange?: (
elements: readonly ExcalidrawElement[],
appState: AppState,
) => void;
initialData?: DataState;
user?: {
name?: string | null;
};
onUsernameChange?: (username: string) => void;
}