mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Import and export library from/to a file (#1940)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
7eff6893c5
commit
ee8fa6aaad
11 changed files with 199 additions and 39 deletions
|
@ -1,5 +1,5 @@
|
|||
import { ExcalidrawElement } from "../element/types";
|
||||
import { AppState } from "../types";
|
||||
import { AppState, LibraryItems } from "../types";
|
||||
|
||||
export interface DataState {
|
||||
type?: string;
|
||||
|
@ -8,3 +8,10 @@ export interface DataState {
|
|||
elements: readonly ExcalidrawElement[];
|
||||
appState: MarkOptional<AppState, "offsetTop" | "offsetLeft"> | null;
|
||||
}
|
||||
|
||||
export interface LibraryData {
|
||||
type?: string;
|
||||
version?: number;
|
||||
source?: string;
|
||||
library?: LibraryItems;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue