@zsviczian/excalidraw 0.17.1-obsidian-20 → 0.17.1-obsidian-21
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/dist/excalidraw.development.js +190 -80
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +78 -50
- package/dist/styles.production.css +5 -5
- package/package.json +2 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +4 -4
- package/types/excalidraw/actions/actionAlign.d.ts +20 -20
- package/types/excalidraw/actions/actionBoundText.d.ts +7 -7
- package/types/excalidraw/actions/actionCanvas.d.ts +65 -65
- package/types/excalidraw/actions/actionClipboard.d.ts +24 -24
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +8 -8
- package/types/excalidraw/actions/actionDistribute.d.ts +8 -8
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -6
- package/types/excalidraw/actions/actionElementLock.d.ts +8 -8
- package/types/excalidraw/actions/actionExport.d.ts +32 -32
- package/types/excalidraw/actions/actionFinalize.d.ts +8 -8
- package/types/excalidraw/actions/actionFlip.d.ts +9 -9
- package/types/excalidraw/actions/actionFrame.d.ts +14 -202
- package/types/excalidraw/actions/actionGroup.d.ts +11 -387
- package/types/excalidraw/actions/actionHistory.d.ts +3 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +2 -2
- package/types/excalidraw/actions/actionLink.d.ts +5 -5
- package/types/excalidraw/actions/actionMenu.d.ts +8 -8
- package/types/excalidraw/actions/actionNavigate.d.ts +3 -3
- package/types/excalidraw/actions/actionProperties.d.ts +32 -32
- package/types/excalidraw/actions/actionSelectAll.d.ts +4 -4
- package/types/excalidraw/actions/actionStyles.d.ts +9 -12
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -4
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleStats.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
- package/types/excalidraw/actions/actionZindex.d.ts +18 -19
- package/types/excalidraw/actions/manager.d.ts +3 -3
- package/types/excalidraw/actions/types.d.ts +4 -4
- package/types/excalidraw/appState.d.ts +4 -4
- package/types/excalidraw/change.d.ts +191 -0
- package/types/excalidraw/components/App.d.ts +22 -8
- package/types/excalidraw/components/RadioGroup.d.ts +2 -1
- package/types/excalidraw/components/ToolButton.d.ts +1 -0
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
- package/types/excalidraw/components/icons.d.ts +4 -0
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -2
- package/types/excalidraw/constants.d.ts +3 -0
- package/types/excalidraw/data/reconcile.d.ts +6 -0
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/url.d.ts +1 -0
- package/types/excalidraw/element/binding.d.ts +52 -9
- package/types/excalidraw/element/bounds.d.ts +0 -1
- package/types/excalidraw/element/collision.d.ts +14 -19
- package/types/excalidraw/element/embeddable.d.ts +7 -4
- package/types/excalidraw/element/index.d.ts +0 -1
- package/types/excalidraw/element/linearElementEditor.d.ts +12 -12
- package/types/excalidraw/element/mutateElement.d.ts +1 -2
- package/types/excalidraw/element/newElement.d.ts +1 -1
- package/types/excalidraw/element/resizeElements.d.ts +1 -1
- package/types/excalidraw/element/resizeTest.d.ts +4 -4
- package/types/excalidraw/element/textElement.d.ts +1 -2
- package/types/excalidraw/element/transformHandles.d.ts +22 -4
- package/types/excalidraw/element/typeChecks.d.ts +2 -2
- package/types/excalidraw/element/types.d.ts +22 -6
- package/types/excalidraw/errors.d.ts +3 -0
- package/types/excalidraw/fractionalIndex.d.ts +40 -0
- package/types/excalidraw/frame.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +2 -0
- package/types/excalidraw/history.d.ts +34 -46
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
- package/types/excalidraw/index.d.ts +2 -0
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/scene/Scene.d.ts +7 -6
- package/types/excalidraw/scene/types.d.ts +2 -1
- package/types/excalidraw/store.d.ts +99 -0
- package/types/excalidraw/types.d.ts +18 -4
- package/types/excalidraw/utils.d.ts +7 -0
- package/types/excalidraw/webpack.prod.config.d.ts +1 -1
- package/types/excalidraw/zindex.d.ts +2 -2
- package/types/utils/collision.d.ts +4 -0
- package/types/utils/export.d.ts +2 -2
- package/types/utils/geometry/geometry.d.ts +71 -0
- package/types/utils/geometry/shape.d.ts +56 -0
|
@@ -5,8 +5,8 @@ export declare const actionCopy: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("../element/types").
|
|
9
|
-
|
|
8
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
9
|
+
storeAction: import("../store").StoreActionType;
|
|
10
10
|
appState: {
|
|
11
11
|
errorMessage: any;
|
|
12
12
|
contextMenu: {
|
|
@@ -193,7 +193,7 @@ export declare const actionCopy: {
|
|
|
193
193
|
followedBy: Set<import("../types").SocketId>;
|
|
194
194
|
};
|
|
195
195
|
} | {
|
|
196
|
-
|
|
196
|
+
storeAction: import("../store").StoreActionType;
|
|
197
197
|
appState?: undefined;
|
|
198
198
|
}>;
|
|
199
199
|
keyTest: undefined;
|
|
@@ -206,8 +206,8 @@ export declare const actionPaste: {
|
|
|
206
206
|
trackEvent: {
|
|
207
207
|
category: "element";
|
|
208
208
|
};
|
|
209
|
-
perform: (elements: readonly import("../element/types").
|
|
210
|
-
|
|
209
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
210
|
+
storeAction: import("../store").StoreActionType;
|
|
211
211
|
appState: {
|
|
212
212
|
errorMessage: string;
|
|
213
213
|
contextMenu: {
|
|
@@ -394,7 +394,7 @@ export declare const actionPaste: {
|
|
|
394
394
|
followedBy: Set<import("../types").SocketId>;
|
|
395
395
|
};
|
|
396
396
|
} | {
|
|
397
|
-
|
|
397
|
+
storeAction: import("../store").StoreActionType;
|
|
398
398
|
appState?: undefined;
|
|
399
399
|
}>;
|
|
400
400
|
keyTest: undefined;
|
|
@@ -408,8 +408,8 @@ export declare const actionCut: {
|
|
|
408
408
|
trackEvent: {
|
|
409
409
|
category: "element";
|
|
410
410
|
};
|
|
411
|
-
perform: (elements: readonly import("../element/types").
|
|
412
|
-
elements: import("../element/types").
|
|
411
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
412
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
413
413
|
appState: {
|
|
414
414
|
editingLinearElement: null;
|
|
415
415
|
contextMenu: {
|
|
@@ -595,9 +595,9 @@ export declare const actionCut: {
|
|
|
595
595
|
userToFollow: import("../types").UserToFollow | null;
|
|
596
596
|
followedBy: Set<import("../types").SocketId>;
|
|
597
597
|
};
|
|
598
|
-
|
|
598
|
+
storeAction: import("../store").StoreActionType;
|
|
599
599
|
} | {
|
|
600
|
-
elements: readonly import("../element/types").
|
|
600
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
601
601
|
appState: {
|
|
602
602
|
editingLinearElement: {
|
|
603
603
|
selectedPointsIndices: number[];
|
|
@@ -811,7 +811,7 @@ export declare const actionCut: {
|
|
|
811
811
|
userToFollow: import("../types").UserToFollow | null;
|
|
812
812
|
followedBy: Set<import("../types").SocketId>;
|
|
813
813
|
};
|
|
814
|
-
|
|
814
|
+
storeAction: import("../store").StoreActionType;
|
|
815
815
|
} | {
|
|
816
816
|
elements: import("../element/types").ExcalidrawElement[];
|
|
817
817
|
appState: {
|
|
@@ -992,11 +992,11 @@ export declare const actionCut: {
|
|
|
992
992
|
userToFollow: import("../types").UserToFollow | null;
|
|
993
993
|
followedBy: Set<import("../types").SocketId>;
|
|
994
994
|
};
|
|
995
|
-
|
|
995
|
+
storeAction: import("../store").StoreActionType;
|
|
996
996
|
};
|
|
997
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
997
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
998
998
|
} & {
|
|
999
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
999
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1000
1000
|
};
|
|
1001
1001
|
export declare const actionCopyAsSvg: {
|
|
1002
1002
|
name: "copyAsSvg";
|
|
@@ -1005,8 +1005,8 @@ export declare const actionCopyAsSvg: {
|
|
|
1005
1005
|
trackEvent: {
|
|
1006
1006
|
category: "element";
|
|
1007
1007
|
};
|
|
1008
|
-
perform: (elements: readonly import("../element/types").
|
|
1009
|
-
|
|
1008
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1009
|
+
storeAction: import("../store").StoreActionType;
|
|
1010
1010
|
appState?: undefined;
|
|
1011
1011
|
} | {
|
|
1012
1012
|
appState: {
|
|
@@ -1194,7 +1194,7 @@ export declare const actionCopyAsSvg: {
|
|
|
1194
1194
|
userToFollow: import("../types").UserToFollow | null;
|
|
1195
1195
|
followedBy: Set<import("../types").SocketId>;
|
|
1196
1196
|
};
|
|
1197
|
-
|
|
1197
|
+
storeAction: import("../store").StoreActionType;
|
|
1198
1198
|
}>;
|
|
1199
1199
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1200
1200
|
keywords: string[];
|
|
@@ -1208,8 +1208,8 @@ export declare const actionCopyAsPng: {
|
|
|
1208
1208
|
trackEvent: {
|
|
1209
1209
|
category: "element";
|
|
1210
1210
|
};
|
|
1211
|
-
perform: (elements: readonly import("../element/types").
|
|
1212
|
-
|
|
1211
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1212
|
+
storeAction: import("../store").StoreActionType;
|
|
1213
1213
|
appState?: undefined;
|
|
1214
1214
|
} | {
|
|
1215
1215
|
appState: {
|
|
@@ -1397,13 +1397,13 @@ export declare const actionCopyAsPng: {
|
|
|
1397
1397
|
userToFollow: import("../types").UserToFollow | null;
|
|
1398
1398
|
followedBy: Set<import("../types").SocketId>;
|
|
1399
1399
|
};
|
|
1400
|
-
|
|
1400
|
+
storeAction: import("../store").StoreActionType;
|
|
1401
1401
|
}>;
|
|
1402
1402
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1403
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1403
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1404
1404
|
keywords: string[];
|
|
1405
1405
|
} & {
|
|
1406
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1406
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1407
1407
|
};
|
|
1408
1408
|
export declare const copyText: {
|
|
1409
1409
|
name: "copyText";
|
|
@@ -1411,8 +1411,8 @@ export declare const copyText: {
|
|
|
1411
1411
|
trackEvent: {
|
|
1412
1412
|
category: "element";
|
|
1413
1413
|
};
|
|
1414
|
-
perform: (elements: readonly import("../element/types").
|
|
1415
|
-
|
|
1414
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1415
|
+
storeAction: import("../store").StoreActionType;
|
|
1416
1416
|
};
|
|
1417
1417
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1418
1418
|
keywords: string[];
|
|
@@ -9,8 +9,8 @@ export declare const actionDeleteSelected: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
action: string;
|
|
11
11
|
};
|
|
12
|
-
perform: (elements: readonly
|
|
13
|
-
elements:
|
|
12
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
13
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: {
|
|
15
15
|
editingLinearElement: null;
|
|
16
16
|
contextMenu: {
|
|
@@ -196,9 +196,9 @@ export declare const actionDeleteSelected: {
|
|
|
196
196
|
userToFollow: import("../types").UserToFollow | null;
|
|
197
197
|
followedBy: Set<import("../types").SocketId>;
|
|
198
198
|
};
|
|
199
|
-
|
|
199
|
+
storeAction: import("../store").StoreActionType;
|
|
200
200
|
} | {
|
|
201
|
-
elements: readonly
|
|
201
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
202
202
|
appState: {
|
|
203
203
|
editingLinearElement: {
|
|
204
204
|
selectedPointsIndices: number[];
|
|
@@ -412,7 +412,7 @@ export declare const actionDeleteSelected: {
|
|
|
412
412
|
userToFollow: import("../types").UserToFollow | null;
|
|
413
413
|
followedBy: Set<import("../types").SocketId>;
|
|
414
414
|
};
|
|
415
|
-
|
|
415
|
+
storeAction: import("../store").StoreActionType;
|
|
416
416
|
} | {
|
|
417
417
|
elements: ExcalidrawElement[];
|
|
418
418
|
appState: {
|
|
@@ -593,10 +593,10 @@ export declare const actionDeleteSelected: {
|
|
|
593
593
|
userToFollow: import("../types").UserToFollow | null;
|
|
594
594
|
followedBy: Set<import("../types").SocketId>;
|
|
595
595
|
};
|
|
596
|
-
|
|
596
|
+
storeAction: import("../store").StoreActionType;
|
|
597
597
|
};
|
|
598
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
598
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
599
599
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
600
600
|
} & {
|
|
601
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
601
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
602
602
|
};
|
|
@@ -6,15 +6,15 @@ export declare const distributeHorizontally: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
10
|
appState: Readonly<AppState>;
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
|
-
|
|
12
|
+
storeAction: import("../store").StoreActionType;
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
14
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const distributeVertically: {
|
|
20
20
|
name: "distributeVertically";
|
|
@@ -22,13 +22,13 @@ export declare const distributeVertically: {
|
|
|
22
22
|
trackEvent: {
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
|
-
perform: (elements: readonly
|
|
25
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
26
26
|
appState: Readonly<AppState>;
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
|
-
|
|
28
|
+
storeAction: import("../store").StoreActionType;
|
|
29
29
|
};
|
|
30
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
30
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
31
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
33
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
34
34
|
};
|
|
@@ -7,16 +7,15 @@ export declare const actionDuplicateSelection: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly
|
|
11
|
-
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
storeAction: import("../store").StoreActionType;
|
|
12
12
|
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
13
|
-
appState?: import("../utility-types").MarkOptional<AppState, "
|
|
13
|
+
appState?: import("../utility-types").MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
|
|
14
14
|
files?: import("../types").BinaryFiles | null | undefined;
|
|
15
|
-
syncHistory?: boolean | undefined;
|
|
16
15
|
replaceFiles?: boolean | undefined;
|
|
17
16
|
};
|
|
18
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
18
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
} & {
|
|
21
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
20
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
22
21
|
};
|
|
@@ -7,8 +7,8 @@ export declare const actionToggleElementLock: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
10
|
-
perform: (elements: readonly
|
|
11
|
-
elements:
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
14
14
|
contextMenu: {
|
|
@@ -194,11 +194,11 @@ export declare const actionToggleElementLock: {
|
|
|
194
194
|
userToFollow: import("../types").UserToFollow | null;
|
|
195
195
|
followedBy: Set<import("../types").SocketId>;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
storeAction: import("../store").StoreActionType;
|
|
198
198
|
};
|
|
199
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
199
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
200
200
|
} & {
|
|
201
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
202
202
|
};
|
|
203
203
|
export declare const actionUnlockAllElements: {
|
|
204
204
|
name: "unlockAllElements";
|
|
@@ -209,8 +209,8 @@ export declare const actionUnlockAllElements: {
|
|
|
209
209
|
viewMode: false;
|
|
210
210
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
211
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
212
|
-
perform: (elements: readonly
|
|
213
|
-
elements:
|
|
212
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
213
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
214
214
|
appState: {
|
|
215
215
|
selectedElementIds: {
|
|
216
216
|
[k: string]: true;
|
|
@@ -396,7 +396,7 @@ export declare const actionUnlockAllElements: {
|
|
|
396
396
|
userToFollow: import("../types").UserToFollow | null;
|
|
397
397
|
followedBy: Set<import("../types").SocketId>;
|
|
398
398
|
};
|
|
399
|
-
|
|
399
|
+
storeAction: import("../store").StoreActionType;
|
|
400
400
|
};
|
|
401
401
|
label: string;
|
|
402
402
|
} & {
|
|
@@ -4,7 +4,7 @@ export declare const actionChangeProjectName: {
|
|
|
4
4
|
name: "changeProjectName";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: false;
|
|
7
|
-
perform: (_elements: readonly import("../element/types").
|
|
7
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
8
8
|
appState: {
|
|
9
9
|
name: any;
|
|
10
10
|
contextMenu: {
|
|
@@ -190,7 +190,7 @@ export declare const actionChangeProjectName: {
|
|
|
190
190
|
userToFollow: import("../types").UserToFollow | null;
|
|
191
191
|
followedBy: Set<import("../types").SocketId>;
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
storeAction: import("../store").StoreActionType;
|
|
194
194
|
};
|
|
195
195
|
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
196
196
|
} & {
|
|
@@ -203,7 +203,7 @@ export declare const actionChangeExportScale: {
|
|
|
203
203
|
category: "export";
|
|
204
204
|
action: string;
|
|
205
205
|
};
|
|
206
|
-
perform: (_elements: readonly import("../element/types").
|
|
206
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
207
207
|
appState: {
|
|
208
208
|
exportScale: any;
|
|
209
209
|
contextMenu: {
|
|
@@ -389,7 +389,7 @@ export declare const actionChangeExportScale: {
|
|
|
389
389
|
userToFollow: import("../types").UserToFollow | null;
|
|
390
390
|
followedBy: Set<import("../types").SocketId>;
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
storeAction: import("../store").StoreActionType;
|
|
393
393
|
};
|
|
394
394
|
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
395
395
|
} & {
|
|
@@ -402,7 +402,7 @@ export declare const actionChangeExportBackground: {
|
|
|
402
402
|
category: "export";
|
|
403
403
|
action: string;
|
|
404
404
|
};
|
|
405
|
-
perform: (_elements: readonly import("../element/types").
|
|
405
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
406
406
|
appState: {
|
|
407
407
|
exportBackground: any;
|
|
408
408
|
contextMenu: {
|
|
@@ -588,7 +588,7 @@ export declare const actionChangeExportBackground: {
|
|
|
588
588
|
userToFollow: import("../types").UserToFollow | null;
|
|
589
589
|
followedBy: Set<import("../types").SocketId>;
|
|
590
590
|
};
|
|
591
|
-
|
|
591
|
+
storeAction: import("../store").StoreActionType;
|
|
592
592
|
};
|
|
593
593
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
594
594
|
} & {
|
|
@@ -601,7 +601,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
601
601
|
category: "export";
|
|
602
602
|
action: string;
|
|
603
603
|
};
|
|
604
|
-
perform: (_elements: readonly import("../element/types").
|
|
604
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
605
605
|
appState: {
|
|
606
606
|
exportEmbedScene: any;
|
|
607
607
|
contextMenu: {
|
|
@@ -787,7 +787,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
787
787
|
userToFollow: import("../types").UserToFollow | null;
|
|
788
788
|
followedBy: Set<import("../types").SocketId>;
|
|
789
789
|
};
|
|
790
|
-
|
|
790
|
+
storeAction: import("../store").StoreActionType;
|
|
791
791
|
};
|
|
792
792
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
793
793
|
} & {
|
|
@@ -801,8 +801,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
801
801
|
category: "export";
|
|
802
802
|
};
|
|
803
803
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
804
|
-
perform: (elements: readonly import("../element/types").
|
|
805
|
-
|
|
804
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
805
|
+
storeAction: import("../store").StoreActionType;
|
|
806
806
|
appState: {
|
|
807
807
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
808
808
|
toast: {
|
|
@@ -987,12 +987,12 @@ export declare const actionSaveToActiveFile: {
|
|
|
987
987
|
followedBy: Set<import("../types").SocketId>;
|
|
988
988
|
};
|
|
989
989
|
} | {
|
|
990
|
-
|
|
990
|
+
storeAction: import("../store").StoreActionType;
|
|
991
991
|
appState?: undefined;
|
|
992
992
|
}>;
|
|
993
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
993
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
994
994
|
} & {
|
|
995
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
995
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
996
996
|
};
|
|
997
997
|
export declare const actionSaveFileToDisk: {
|
|
998
998
|
name: "saveFileToDisk";
|
|
@@ -1002,8 +1002,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1002
1002
|
trackEvent: {
|
|
1003
1003
|
category: "export";
|
|
1004
1004
|
};
|
|
1005
|
-
perform: (elements: readonly import("../element/types").
|
|
1006
|
-
|
|
1005
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1006
|
+
storeAction: import("../store").StoreActionType;
|
|
1007
1007
|
appState: {
|
|
1008
1008
|
openDialog: null;
|
|
1009
1009
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -1177,13 +1177,13 @@ export declare const actionSaveFileToDisk: {
|
|
|
1177
1177
|
followedBy: Set<import("../types").SocketId>;
|
|
1178
1178
|
};
|
|
1179
1179
|
} | {
|
|
1180
|
-
|
|
1180
|
+
storeAction: import("../store").StoreActionType;
|
|
1181
1181
|
appState?: undefined;
|
|
1182
1182
|
}>;
|
|
1183
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1183
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1184
1184
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1185
1185
|
} & {
|
|
1186
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1186
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1187
1187
|
};
|
|
1188
1188
|
export declare const actionLoadScene: {
|
|
1189
1189
|
name: "loadScene";
|
|
@@ -1192,9 +1192,14 @@ export declare const actionLoadScene: {
|
|
|
1192
1192
|
category: "export";
|
|
1193
1193
|
};
|
|
1194
1194
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1195
|
-
perform: (elements: readonly import("../element/types").
|
|
1196
|
-
elements: import("../element/types").
|
|
1195
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1196
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
1197
1197
|
appState: {
|
|
1198
|
+
viewModeEnabled: boolean;
|
|
1199
|
+
zenModeEnabled: boolean;
|
|
1200
|
+
objectsSnapModeEnabled: boolean;
|
|
1201
|
+
theme: Theme;
|
|
1202
|
+
name: string | null;
|
|
1198
1203
|
contextMenu: {
|
|
1199
1204
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1200
1205
|
top: number;
|
|
@@ -1253,7 +1258,6 @@ export declare const actionLoadScene: {
|
|
|
1253
1258
|
scrollY: number;
|
|
1254
1259
|
cursorButton: "up" | "down";
|
|
1255
1260
|
scrolledOutside: boolean;
|
|
1256
|
-
name: string | null;
|
|
1257
1261
|
isResizing: boolean;
|
|
1258
1262
|
isRotating: boolean;
|
|
1259
1263
|
zoom: Readonly<{
|
|
@@ -1292,11 +1296,8 @@ export declare const actionLoadScene: {
|
|
|
1292
1296
|
closable?: boolean | undefined;
|
|
1293
1297
|
duration?: number | undefined;
|
|
1294
1298
|
} | null;
|
|
1295
|
-
zenModeEnabled: boolean;
|
|
1296
|
-
theme: Theme;
|
|
1297
1299
|
gridSize: number | null;
|
|
1298
1300
|
previousGridSize: number | null;
|
|
1299
|
-
viewModeEnabled: boolean;
|
|
1300
1301
|
selectedGroupIds: {
|
|
1301
1302
|
[groupId: string]: boolean;
|
|
1302
1303
|
};
|
|
@@ -1371,14 +1372,13 @@ export declare const actionLoadScene: {
|
|
|
1371
1372
|
x: number;
|
|
1372
1373
|
y: number;
|
|
1373
1374
|
} | null;
|
|
1374
|
-
objectsSnapModeEnabled: boolean;
|
|
1375
1375
|
userToFollow: import("../types").UserToFollow | null;
|
|
1376
1376
|
followedBy: Set<import("../types").SocketId>;
|
|
1377
1377
|
};
|
|
1378
1378
|
files: import("../types").BinaryFiles;
|
|
1379
|
-
|
|
1379
|
+
storeAction: import("../store").StoreActionType;
|
|
1380
1380
|
} | {
|
|
1381
|
-
elements: readonly import("../element/types").
|
|
1381
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1382
1382
|
appState: {
|
|
1383
1383
|
errorMessage: any;
|
|
1384
1384
|
contextMenu: {
|
|
@@ -1565,11 +1565,11 @@ export declare const actionLoadScene: {
|
|
|
1565
1565
|
followedBy: Set<import("../types").SocketId>;
|
|
1566
1566
|
};
|
|
1567
1567
|
files: import("../types").BinaryFiles;
|
|
1568
|
-
|
|
1568
|
+
storeAction: import("../store").StoreActionType;
|
|
1569
1569
|
}>;
|
|
1570
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1570
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1571
1571
|
} & {
|
|
1572
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1572
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1573
1573
|
};
|
|
1574
1574
|
export declare const actionExportWithDarkMode: {
|
|
1575
1575
|
name: "exportWithDarkMode";
|
|
@@ -1578,7 +1578,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1578
1578
|
category: "export";
|
|
1579
1579
|
action: string;
|
|
1580
1580
|
};
|
|
1581
|
-
perform: (_elements: readonly import("../element/types").
|
|
1581
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
1582
1582
|
appState: {
|
|
1583
1583
|
exportWithDarkMode: any;
|
|
1584
1584
|
contextMenu: {
|
|
@@ -1764,7 +1764,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1764
1764
|
userToFollow: import("../types").UserToFollow | null;
|
|
1765
1765
|
followedBy: Set<import("../types").SocketId>;
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1767
|
+
storeAction: import("../store").StoreActionType;
|
|
1768
1768
|
};
|
|
1769
1769
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1770
1770
|
} & {
|
|
@@ -4,11 +4,12 @@ export declare const actionFinalize: {
|
|
|
4
4
|
name: "finalize";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: false;
|
|
7
|
-
perform: (elements: readonly import("../element/types").
|
|
8
|
-
elements: import("../element/types").
|
|
7
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
8
|
+
elements: import("../element/types").OrderedExcalidrawElement[] | undefined;
|
|
9
9
|
appState: {
|
|
10
10
|
cursorButton: "up";
|
|
11
11
|
editingLinearElement: null;
|
|
12
|
+
selectedLinearElement: null;
|
|
12
13
|
contextMenu: {
|
|
13
14
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
15
|
top: number;
|
|
@@ -181,7 +182,6 @@ export declare const actionFinalize: {
|
|
|
181
182
|
nameColor: string;
|
|
182
183
|
};
|
|
183
184
|
invertBindingBehaviour: boolean;
|
|
184
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
185
185
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
186
186
|
originSnapOffset: {
|
|
187
187
|
x: number;
|
|
@@ -191,9 +191,9 @@ export declare const actionFinalize: {
|
|
|
191
191
|
userToFollow: import("../types").UserToFollow | null;
|
|
192
192
|
followedBy: Set<import("../types").SocketId>;
|
|
193
193
|
};
|
|
194
|
-
|
|
194
|
+
storeAction: import("../store").StoreActionType;
|
|
195
195
|
} | {
|
|
196
|
-
elements: readonly import("../element/types").
|
|
196
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
197
197
|
appState: {
|
|
198
198
|
cursorButton: "up";
|
|
199
199
|
activeTool: {
|
|
@@ -376,10 +376,10 @@ export declare const actionFinalize: {
|
|
|
376
376
|
userToFollow: import("../types").UserToFollow | null;
|
|
377
377
|
followedBy: Set<import("../types").SocketId>;
|
|
378
378
|
};
|
|
379
|
-
|
|
379
|
+
storeAction: import("../store").StoreActionType;
|
|
380
380
|
};
|
|
381
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
381
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
382
382
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
383
383
|
} & {
|
|
384
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
384
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
385
385
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState } from "../types";
|
|
2
|
+
import { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionFlipHorizontal: {
|
|
4
4
|
name: "flipHorizontal";
|
|
5
5
|
label: string;
|
|
@@ -7,14 +7,14 @@ export declare const actionFlipHorizontal: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
12
|
appState: Readonly<AppState>;
|
|
13
|
-
|
|
13
|
+
storeAction: import("../store").StoreActionType;
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
15
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const actionFlipVertical: {
|
|
20
20
|
name: "flipVertical";
|
|
@@ -23,12 +23,12 @@ export declare const actionFlipVertical: {
|
|
|
23
23
|
trackEvent: {
|
|
24
24
|
category: "element";
|
|
25
25
|
};
|
|
26
|
-
perform: (elements: readonly
|
|
26
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: Readonly<AppState>;
|
|
29
|
-
|
|
29
|
+
storeAction: import("../store").StoreActionType;
|
|
30
30
|
};
|
|
31
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
31
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
33
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
34
34
|
};
|