mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
add excalidraw_embed into base repo (#2040)
Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
parent
80cbe13167
commit
ab7073abdb
16 changed files with 6710 additions and 77 deletions
10
src/types.ts
10
src/types.ts
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue