mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
allow to supply canvas offsets from upstream (#2271)
This commit is contained in:
parent
499a60309f
commit
72a3450c99
6 changed files with 140 additions and 101 deletions
|
@ -126,6 +126,10 @@ export type LibraryItems = readonly LibraryItem[];
|
|||
export interface ExcalidrawProps {
|
||||
width: number;
|
||||
height: number;
|
||||
/** if not supplied, calculated by Excalidraw */
|
||||
offsetLeft?: number;
|
||||
/** if not supplied, calculated by Excalidraw */
|
||||
offsetTop?: number;
|
||||
onChange?: (
|
||||
elements: readonly ExcalidrawElement[],
|
||||
appState: AppState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue