mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix restoring appState (#2182)
This commit is contained in:
parent
b2822f3538
commit
adb1ac5788
8 changed files with 74 additions and 49 deletions
|
@ -14,7 +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";
|
||||
import { ImportedDataState } from "./data/types";
|
||||
|
||||
export type FlooredNumber = number & { _brand: "FlooredNumber" };
|
||||
export type Point = Readonly<RoughPoint>;
|
||||
|
@ -127,7 +127,7 @@ export interface ExcalidrawProps {
|
|||
elements: readonly ExcalidrawElement[],
|
||||
appState: AppState,
|
||||
) => void;
|
||||
initialData?: DataState;
|
||||
initialData?: ImportedDataState;
|
||||
user?: {
|
||||
name?: string | null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue