mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Expose update scene via refs (#2217)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
8a10f2a0b8
commit
63566ecb92
4 changed files with 178 additions and 132 deletions
|
@ -15,6 +15,7 @@ import { SocketUpdateDataSource } from "./data";
|
|||
import { LinearElementEditor } from "./element/linearElementEditor";
|
||||
import { SuggestedBinding } from "./element/binding";
|
||||
import { ImportedDataState } from "./data/types";
|
||||
import { ExcalidrawImperativeAPI } from "./components/App";
|
||||
|
||||
export type FlooredNumber = number & { _brand: "FlooredNumber" };
|
||||
export type Point = Readonly<RoughPoint>;
|
||||
|
@ -132,4 +133,5 @@ export interface ExcalidrawProps {
|
|||
name?: string | null;
|
||||
};
|
||||
onUsernameChange?: (username: string) => void;
|
||||
forwardedRef: ForwardRef<ExcalidrawImperativeAPI>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue