@dwelle/excalidraw 0.6.0-rc.2 → 0.6.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/dev/{chunk-LCPOPWNR.js → chunk-FCTATTEX.js} +2 -2
- package/dist/dev/{chunk-NGUTX5QY.js → chunk-GPAPUEH7.js} +14 -14
- package/dist/dev/{chunk-NGUTX5QY.js.map → chunk-GPAPUEH7.js.map} +2 -2
- package/dist/dev/data/{image-2IPPJHZ4.js → image-KIZE4OBD.js} +3 -3
- package/dist/dev/index.js +170 -145
- package/dist/dev/index.js.map +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-BE2LY6VO.js → chunk-DZ7HA6XS.js} +1 -1
- package/dist/prod/{chunk-R7OERAXD.js → chunk-TQDSDB2B.js} +4 -4
- package/dist/prod/data/image-SCXWNX5A.js +1 -0
- package/dist/prod/index.js +11 -11
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +13 -13
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +13 -13
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +11 -11
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +15 -15
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionZindex.d.ts +4 -4
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/components/App.d.ts +12 -2
- package/dist/types/excalidraw/element/embeddable.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +1 -1
- package/dist/types/excalidraw/store.d.ts +6 -6
- package/dist/types/excalidraw/types.d.ts +2 -2
- package/package.json +2 -10
- package/dist/prod/data/image-DXJVNPGL.js +0 -1
- /package/dist/dev/{chunk-LCPOPWNR.js.map → chunk-FCTATTEX.js.map} +0 -0
- /package/dist/dev/data/{image-2IPPJHZ4.js.map → image-KIZE4OBD.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-EIO257PC.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-EIO257PC.js";import"./chunk-DZ7HA6XS.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-EIO257PC.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-EIO257PC.js";import"./chunk-DZ7HA6XS.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -5,7 +5,7 @@ export declare const actionAddToLibrary: {
|
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
7
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
8
|
-
|
|
8
|
+
captureUpdate: "EVENTUALLY";
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -178,7 +178,7 @@ export declare const actionAddToLibrary: {
|
|
|
178
178
|
}[];
|
|
179
179
|
};
|
|
180
180
|
} | {
|
|
181
|
-
|
|
181
|
+
captureUpdate: "EVENTUALLY";
|
|
182
182
|
appState: {
|
|
183
183
|
errorMessage: any;
|
|
184
184
|
contextMenu: {
|
|
@@ -353,7 +353,7 @@ export declare const actionAddToLibrary: {
|
|
|
353
353
|
}[];
|
|
354
354
|
};
|
|
355
355
|
}> | {
|
|
356
|
-
|
|
356
|
+
captureUpdate: "EVENTUALLY";
|
|
357
357
|
appState: {
|
|
358
358
|
errorMessage: string;
|
|
359
359
|
contextMenu: {
|
|
@@ -13,7 +13,7 @@ export declare const actionAlignTop: {
|
|
|
13
13
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
elements: ExcalidrawElement[];
|
|
16
|
-
|
|
16
|
+
captureUpdate: "IMMEDIATELY";
|
|
17
17
|
};
|
|
18
18
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
19
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -31,7 +31,7 @@ export declare const actionAlignBottom: {
|
|
|
31
31
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
32
32
|
appState: Readonly<AppState>;
|
|
33
33
|
elements: ExcalidrawElement[];
|
|
34
|
-
|
|
34
|
+
captureUpdate: "IMMEDIATELY";
|
|
35
35
|
};
|
|
36
36
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
37
37
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,7 +49,7 @@ export declare const actionAlignLeft: {
|
|
|
49
49
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
50
50
|
appState: Readonly<AppState>;
|
|
51
51
|
elements: ExcalidrawElement[];
|
|
52
|
-
|
|
52
|
+
captureUpdate: "IMMEDIATELY";
|
|
53
53
|
};
|
|
54
54
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
55
55
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -67,7 +67,7 @@ export declare const actionAlignRight: {
|
|
|
67
67
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
68
68
|
appState: Readonly<AppState>;
|
|
69
69
|
elements: ExcalidrawElement[];
|
|
70
|
-
|
|
70
|
+
captureUpdate: "IMMEDIATELY";
|
|
71
71
|
};
|
|
72
72
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
73
73
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -85,7 +85,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
85
85
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
86
86
|
appState: Readonly<AppState>;
|
|
87
87
|
elements: ExcalidrawElement[];
|
|
88
|
-
|
|
88
|
+
captureUpdate: "IMMEDIATELY";
|
|
89
89
|
};
|
|
90
90
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
91
91
|
} & {
|
|
@@ -102,7 +102,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
102
102
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
103
103
|
appState: Readonly<AppState>;
|
|
104
104
|
elements: ExcalidrawElement[];
|
|
105
|
-
|
|
105
|
+
captureUpdate: "IMMEDIATELY";
|
|
106
106
|
};
|
|
107
107
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
108
108
|
} & {
|
|
@@ -12,7 +12,7 @@ export declare const actionUnbindText: {
|
|
|
12
12
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
13
13
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
|
-
|
|
15
|
+
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
@@ -199,7 +199,7 @@ export declare const actionBindText: {
|
|
|
199
199
|
}[];
|
|
200
200
|
}[];
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
captureUpdate: "IMMEDIATELY";
|
|
203
203
|
};
|
|
204
204
|
} & {
|
|
205
205
|
keyTest?: undefined;
|
|
@@ -386,7 +386,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
386
386
|
}[];
|
|
387
387
|
}[];
|
|
388
388
|
};
|
|
389
|
-
|
|
389
|
+
captureUpdate: "IMMEDIATELY";
|
|
390
390
|
};
|
|
391
391
|
} & {
|
|
392
392
|
keyTest?: undefined;
|
|
@@ -10,7 +10,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
11
|
perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
12
12
|
appState: any;
|
|
13
|
-
|
|
13
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
14
14
|
};
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
@@ -197,7 +197,7 @@ export declare const actionClearCanvas: {
|
|
|
197
197
|
}[];
|
|
198
198
|
}[];
|
|
199
199
|
};
|
|
200
|
-
|
|
200
|
+
captureUpdate: "IMMEDIATELY";
|
|
201
201
|
};
|
|
202
202
|
} & {
|
|
203
203
|
keyTest?: undefined;
|
|
@@ -384,7 +384,7 @@ export declare const actionZoomIn: {
|
|
|
384
384
|
}[];
|
|
385
385
|
}[];
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
captureUpdate: "EVENTUALLY";
|
|
388
388
|
};
|
|
389
389
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
390
390
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -573,7 +573,7 @@ export declare const actionZoomOut: {
|
|
|
573
573
|
}[];
|
|
574
574
|
}[];
|
|
575
575
|
};
|
|
576
|
-
|
|
576
|
+
captureUpdate: "EVENTUALLY";
|
|
577
577
|
};
|
|
578
578
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
579
579
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -762,7 +762,7 @@ export declare const actionResetZoom: {
|
|
|
762
762
|
}[];
|
|
763
763
|
}[];
|
|
764
764
|
};
|
|
765
|
-
|
|
765
|
+
captureUpdate: "EVENTUALLY";
|
|
766
766
|
};
|
|
767
767
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
768
768
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -958,7 +958,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
958
958
|
}[];
|
|
959
959
|
}[];
|
|
960
960
|
};
|
|
961
|
-
|
|
961
|
+
captureUpdate: "EVENTUALLY";
|
|
962
962
|
};
|
|
963
963
|
export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
964
964
|
canvasOffsets?: Partial<{
|
|
@@ -1149,7 +1149,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1149
1149
|
}[];
|
|
1150
1150
|
}[];
|
|
1151
1151
|
};
|
|
1152
|
-
|
|
1152
|
+
captureUpdate: "EVENTUALLY";
|
|
1153
1153
|
};
|
|
1154
1154
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1155
1155
|
name: "zoomToFitSelectionInViewport";
|
|
@@ -1332,7 +1332,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1332
1332
|
}[];
|
|
1333
1333
|
}[];
|
|
1334
1334
|
};
|
|
1335
|
-
|
|
1335
|
+
captureUpdate: "EVENTUALLY";
|
|
1336
1336
|
};
|
|
1337
1337
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1338
1338
|
} & {
|
|
@@ -1519,7 +1519,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1519
1519
|
}[];
|
|
1520
1520
|
}[];
|
|
1521
1521
|
};
|
|
1522
|
-
|
|
1522
|
+
captureUpdate: "EVENTUALLY";
|
|
1523
1523
|
};
|
|
1524
1524
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1525
1525
|
} & {
|
|
@@ -1707,7 +1707,7 @@ export declare const actionZoomToFit: {
|
|
|
1707
1707
|
}[];
|
|
1708
1708
|
}[];
|
|
1709
1709
|
};
|
|
1710
|
-
|
|
1710
|
+
captureUpdate: "EVENTUALLY";
|
|
1711
1711
|
};
|
|
1712
1712
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1713
1713
|
} & {
|
|
@@ -1896,7 +1896,7 @@ export declare const actionToggleTheme: {
|
|
|
1896
1896
|
}[];
|
|
1897
1897
|
}[];
|
|
1898
1898
|
};
|
|
1899
|
-
|
|
1899
|
+
captureUpdate: "EVENTUALLY";
|
|
1900
1900
|
};
|
|
1901
1901
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1902
1902
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
@@ -2076,7 +2076,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2076
2076
|
}[];
|
|
2077
2077
|
}[];
|
|
2078
2078
|
};
|
|
2079
|
-
|
|
2079
|
+
captureUpdate: "IMMEDIATELY";
|
|
2080
2080
|
};
|
|
2081
2081
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2082
2082
|
} & {
|
|
@@ -2258,7 +2258,7 @@ export declare const actionToggleHandTool: {
|
|
|
2258
2258
|
}[];
|
|
2259
2259
|
}[];
|
|
2260
2260
|
};
|
|
2261
|
-
|
|
2261
|
+
captureUpdate: "IMMEDIATELY";
|
|
2262
2262
|
};
|
|
2263
2263
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2264
2264
|
} & {
|
|
@@ -7,7 +7,7 @@ export declare const actionCopy: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
|
-
|
|
10
|
+
captureUpdate: "EVENTUALLY";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
13
13
|
contextMenu: {
|
|
@@ -182,7 +182,7 @@ export declare const actionCopy: {
|
|
|
182
182
|
}[];
|
|
183
183
|
};
|
|
184
184
|
} | {
|
|
185
|
-
|
|
185
|
+
captureUpdate: "EVENTUALLY";
|
|
186
186
|
appState?: undefined;
|
|
187
187
|
}>;
|
|
188
188
|
keyTest: undefined;
|
|
@@ -196,7 +196,7 @@ export declare const actionPaste: {
|
|
|
196
196
|
category: "element";
|
|
197
197
|
};
|
|
198
198
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
199
|
-
|
|
199
|
+
captureUpdate: "EVENTUALLY";
|
|
200
200
|
appState: {
|
|
201
201
|
errorMessage: string;
|
|
202
202
|
contextMenu: {
|
|
@@ -371,7 +371,7 @@ export declare const actionPaste: {
|
|
|
371
371
|
}[];
|
|
372
372
|
};
|
|
373
373
|
} | {
|
|
374
|
-
|
|
374
|
+
captureUpdate: "EVENTUALLY";
|
|
375
375
|
appState?: undefined;
|
|
376
376
|
}>;
|
|
377
377
|
keyTest: undefined;
|
|
@@ -560,7 +560,7 @@ export declare const actionCut: {
|
|
|
560
560
|
}[];
|
|
561
561
|
}[];
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
captureUpdate: "IMMEDIATELY";
|
|
564
564
|
} | {
|
|
565
565
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
566
566
|
appState: {
|
|
@@ -766,7 +766,7 @@ export declare const actionCut: {
|
|
|
766
766
|
}[];
|
|
767
767
|
}[];
|
|
768
768
|
};
|
|
769
|
-
|
|
769
|
+
captureUpdate: "IMMEDIATELY";
|
|
770
770
|
} | {
|
|
771
771
|
elements: import("../element/types").ExcalidrawElement[];
|
|
772
772
|
appState: {
|
|
@@ -939,7 +939,7 @@ export declare const actionCut: {
|
|
|
939
939
|
}[];
|
|
940
940
|
}[];
|
|
941
941
|
};
|
|
942
|
-
|
|
942
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
943
943
|
};
|
|
944
944
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
945
945
|
} & {
|
|
@@ -953,7 +953,7 @@ export declare const actionCopyAsSvg: {
|
|
|
953
953
|
category: "element";
|
|
954
954
|
};
|
|
955
955
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
956
|
-
|
|
956
|
+
captureUpdate: "EVENTUALLY";
|
|
957
957
|
appState?: undefined;
|
|
958
958
|
} | {
|
|
959
959
|
appState: {
|
|
@@ -962,13 +962,13 @@ export declare const actionCopyAsSvg: {
|
|
|
962
962
|
};
|
|
963
963
|
errorMessage?: undefined;
|
|
964
964
|
};
|
|
965
|
-
|
|
965
|
+
captureUpdate: "EVENTUALLY";
|
|
966
966
|
} | {
|
|
967
967
|
appState: {
|
|
968
968
|
errorMessage: any;
|
|
969
969
|
toast?: undefined;
|
|
970
970
|
};
|
|
971
|
-
|
|
971
|
+
captureUpdate: "EVENTUALLY";
|
|
972
972
|
}>;
|
|
973
973
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
974
974
|
keywords: string[];
|
|
@@ -983,7 +983,7 @@ export declare const actionCopyAsPng: {
|
|
|
983
983
|
category: "element";
|
|
984
984
|
};
|
|
985
985
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
986
|
-
|
|
986
|
+
captureUpdate: "EVENTUALLY";
|
|
987
987
|
appState?: undefined;
|
|
988
988
|
} | {
|
|
989
989
|
appState: {
|
|
@@ -1159,7 +1159,7 @@ export declare const actionCopyAsPng: {
|
|
|
1159
1159
|
}[];
|
|
1160
1160
|
}[];
|
|
1161
1161
|
};
|
|
1162
|
-
|
|
1162
|
+
captureUpdate: "EVENTUALLY";
|
|
1163
1163
|
}>;
|
|
1164
1164
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1165
1165
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1174,7 +1174,7 @@ export declare const copyText: {
|
|
|
1174
1174
|
category: "element";
|
|
1175
1175
|
};
|
|
1176
1176
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1177
|
-
|
|
1177
|
+
captureUpdate: "EVENTUALLY";
|
|
1178
1178
|
};
|
|
1179
1179
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1180
1180
|
keywords: string[];
|
|
@@ -182,7 +182,7 @@ export declare const actionToggleCropEditor: {
|
|
|
182
182
|
}[];
|
|
183
183
|
}[];
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
captureUpdate: "IMMEDIATELY";
|
|
186
186
|
};
|
|
187
187
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
188
188
|
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -185,7 +185,7 @@ export declare const actionDeleteSelected: {
|
|
|
185
185
|
}[];
|
|
186
186
|
}[];
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
captureUpdate: "IMMEDIATELY";
|
|
189
189
|
} | {
|
|
190
190
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
191
191
|
appState: {
|
|
@@ -391,7 +391,7 @@ export declare const actionDeleteSelected: {
|
|
|
391
391
|
}[];
|
|
392
392
|
}[];
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
captureUpdate: "IMMEDIATELY";
|
|
395
395
|
} | {
|
|
396
396
|
elements: ExcalidrawElement[];
|
|
397
397
|
appState: {
|
|
@@ -564,7 +564,7 @@ export declare const actionDeleteSelected: {
|
|
|
564
564
|
}[];
|
|
565
565
|
}[];
|
|
566
566
|
};
|
|
567
|
-
|
|
567
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
568
568
|
};
|
|
569
569
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
570
570
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,7 @@ export declare const distributeHorizontally: {
|
|
|
10
10
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
|
-
|
|
13
|
+
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
16
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,7 +26,7 @@ export declare const distributeVertically: {
|
|
|
26
26
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
27
27
|
appState: Readonly<AppState>;
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
|
-
|
|
29
|
+
captureUpdate: "IMMEDIATELY";
|
|
30
30
|
};
|
|
31
31
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
32
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ export declare const actionDuplicateSelection: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
12
|
-
|
|
12
|
+
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
14
14
|
appState?: Partial<AppState> | null | undefined;
|
|
15
15
|
files?: import("../types").BinaryFiles | null | undefined;
|
|
@@ -13,14 +13,14 @@ export declare const actionCopyElementLink: {
|
|
|
13
13
|
closable: true;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
captureUpdate: "EVENTUALLY";
|
|
17
17
|
elements?: undefined;
|
|
18
18
|
app?: undefined;
|
|
19
19
|
} | {
|
|
20
20
|
appState: Readonly<import("../types").AppState>;
|
|
21
21
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
22
22
|
app: import("../types").AppClassProperties;
|
|
23
|
-
|
|
23
|
+
captureUpdate: "EVENTUALLY";
|
|
24
24
|
}>;
|
|
25
25
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
26
26
|
} & {
|
|
@@ -34,7 +34,7 @@ export declare const actionLinkToElement: {
|
|
|
34
34
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
35
35
|
appState: Readonly<import("../types").AppState>;
|
|
36
36
|
app: import("../types").AppClassProperties;
|
|
37
|
-
|
|
37
|
+
captureUpdate: "EVENTUALLY";
|
|
38
38
|
} | {
|
|
39
39
|
appState: {
|
|
40
40
|
openDialog: {
|
|
@@ -202,7 +202,7 @@ export declare const actionLinkToElement: {
|
|
|
202
202
|
}[];
|
|
203
203
|
}[];
|
|
204
204
|
};
|
|
205
|
-
|
|
205
|
+
captureUpdate: "IMMEDIATELY";
|
|
206
206
|
elements?: undefined;
|
|
207
207
|
app?: undefined;
|
|
208
208
|
};
|
|
@@ -183,7 +183,7 @@ export declare const actionToggleElementLock: {
|
|
|
183
183
|
}[];
|
|
184
184
|
}[];
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
captureUpdate: "IMMEDIATELY";
|
|
187
187
|
};
|
|
188
188
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
189
189
|
} & {
|
|
@@ -373,7 +373,7 @@ export declare const actionUnlockAllElements: {
|
|
|
373
373
|
}[];
|
|
374
374
|
}[];
|
|
375
375
|
};
|
|
376
|
-
|
|
376
|
+
captureUpdate: "IMMEDIATELY";
|
|
377
377
|
};
|
|
378
378
|
label: string;
|
|
379
379
|
} & {
|
|
@@ -179,7 +179,7 @@ export declare const actionChangeProjectName: {
|
|
|
179
179
|
}[];
|
|
180
180
|
}[];
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
captureUpdate: "EVENTUALLY";
|
|
183
183
|
};
|
|
184
184
|
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
185
185
|
} & {
|
|
@@ -366,7 +366,7 @@ export declare const actionChangeExportScale: {
|
|
|
366
366
|
}[];
|
|
367
367
|
}[];
|
|
368
368
|
};
|
|
369
|
-
|
|
369
|
+
captureUpdate: "EVENTUALLY";
|
|
370
370
|
};
|
|
371
371
|
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
372
372
|
} & {
|
|
@@ -553,7 +553,7 @@ export declare const actionChangeExportBackground: {
|
|
|
553
553
|
}[];
|
|
554
554
|
}[];
|
|
555
555
|
};
|
|
556
|
-
|
|
556
|
+
captureUpdate: "EVENTUALLY";
|
|
557
557
|
};
|
|
558
558
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
559
559
|
} & {
|
|
@@ -740,7 +740,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
740
740
|
}[];
|
|
741
741
|
}[];
|
|
742
742
|
};
|
|
743
|
-
|
|
743
|
+
captureUpdate: "EVENTUALLY";
|
|
744
744
|
};
|
|
745
745
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
746
746
|
} & {
|
|
@@ -755,7 +755,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
755
755
|
};
|
|
756
756
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
757
757
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
758
|
-
|
|
758
|
+
captureUpdate: "EVENTUALLY";
|
|
759
759
|
appState: {
|
|
760
760
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
761
761
|
toast: {
|
|
@@ -928,7 +928,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
928
928
|
}[];
|
|
929
929
|
};
|
|
930
930
|
} | {
|
|
931
|
-
|
|
931
|
+
captureUpdate: "EVENTUALLY";
|
|
932
932
|
appState?: undefined;
|
|
933
933
|
}>;
|
|
934
934
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -944,7 +944,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
944
944
|
category: "export";
|
|
945
945
|
};
|
|
946
946
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
947
|
-
|
|
947
|
+
captureUpdate: "EVENTUALLY";
|
|
948
948
|
appState: {
|
|
949
949
|
openDialog: null;
|
|
950
950
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -1107,7 +1107,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1107
1107
|
}[];
|
|
1108
1108
|
};
|
|
1109
1109
|
} | {
|
|
1110
|
-
|
|
1110
|
+
captureUpdate: "EVENTUALLY";
|
|
1111
1111
|
appState?: undefined;
|
|
1112
1112
|
}>;
|
|
1113
1113
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1294,7 +1294,7 @@ export declare const actionLoadScene: {
|
|
|
1294
1294
|
}[];
|
|
1295
1295
|
};
|
|
1296
1296
|
files: import("../types").BinaryFiles;
|
|
1297
|
-
|
|
1297
|
+
captureUpdate: "IMMEDIATELY";
|
|
1298
1298
|
} | {
|
|
1299
1299
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1300
1300
|
appState: {
|
|
@@ -1471,7 +1471,7 @@ export declare const actionLoadScene: {
|
|
|
1471
1471
|
}[];
|
|
1472
1472
|
};
|
|
1473
1473
|
files: import("../types").BinaryFiles;
|
|
1474
|
-
|
|
1474
|
+
captureUpdate: "EVENTUALLY";
|
|
1475
1475
|
}>;
|
|
1476
1476
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1477
1477
|
} & {
|
|
@@ -1658,7 +1658,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1658
1658
|
}[];
|
|
1659
1659
|
}[];
|
|
1660
1660
|
};
|
|
1661
|
-
|
|
1661
|
+
captureUpdate: "EVENTUALLY";
|
|
1662
1662
|
};
|
|
1663
1663
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1664
1664
|
} & {
|
|
@@ -180,7 +180,7 @@ export declare const actionFinalize: {
|
|
|
180
180
|
}[];
|
|
181
181
|
}[];
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
captureUpdate: "IMMEDIATELY";
|
|
184
184
|
} | {
|
|
185
185
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
186
186
|
appState: {
|
|
@@ -353,7 +353,7 @@ export declare const actionFinalize: {
|
|
|
353
353
|
}[];
|
|
354
354
|
}[];
|
|
355
355
|
};
|
|
356
|
-
|
|
356
|
+
captureUpdate: "IMMEDIATELY";
|
|
357
357
|
};
|
|
358
358
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
359
359
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ export declare const actionFlipHorizontal: {
|
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
|
|
14
|
+
captureUpdate: "IMMEDIATELY";
|
|
15
15
|
};
|
|
16
16
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
17
|
} & {
|
|
@@ -27,7 +27,7 @@ export declare const actionFlipVertical: {
|
|
|
27
27
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
|
-
|
|
30
|
+
captureUpdate: "IMMEDIATELY";
|
|
31
31
|
};
|
|
32
32
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
33
33
|
} & {
|
|
@@ -180,11 +180,11 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
180
180
|
}[];
|
|
181
181
|
}[];
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
captureUpdate: "IMMEDIATELY";
|
|
184
184
|
} | {
|
|
185
185
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
186
186
|
appState: Readonly<AppState>;
|
|
187
|
-
|
|
187
|
+
captureUpdate: "EVENTUALLY";
|
|
188
188
|
};
|
|
189
189
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
190
190
|
} & {
|
|
@@ -371,11 +371,11 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
371
371
|
}[];
|
|
372
372
|
}[];
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
captureUpdate: "IMMEDIATELY";
|
|
375
375
|
} | {
|
|
376
376
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
377
377
|
appState: Readonly<AppState>;
|
|
378
|
-
|
|
378
|
+
captureUpdate: "EVENTUALLY";
|
|
379
379
|
};
|
|
380
380
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
381
381
|
} & {
|
|
@@ -563,7 +563,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
563
563
|
}[];
|
|
564
564
|
}[];
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
captureUpdate: "EVENTUALLY";
|
|
567
567
|
};
|
|
568
568
|
checked: (appState: AppState) => boolean;
|
|
569
569
|
} & {
|
|
@@ -752,7 +752,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
752
752
|
}[];
|
|
753
753
|
}[];
|
|
754
754
|
};
|
|
755
|
-
|
|
755
|
+
captureUpdate: "EVENTUALLY";
|
|
756
756
|
};
|
|
757
757
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
758
758
|
} & {
|
|
@@ -1246,7 +1246,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1246
1246
|
[x: string]: true;
|
|
1247
1247
|
};
|
|
1248
1248
|
};
|
|
1249
|
-
|
|
1249
|
+
captureUpdate: "IMMEDIATELY";
|
|
1250
1250
|
};
|
|
1251
1251
|
} & {
|
|
1252
1252
|
keyTest?: undefined;
|