@zsviczian/excalidraw 0.13.0-obsidian-2 → 0.14.1-obsidian
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 +417 -19
- package/dist/excalidraw.development.js +581 -1153
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -102
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +39 -18
- package/types/actions/actionAlign.d.ts +6 -18
- package/types/actions/actionBoundText.d.ts +15 -8
- package/types/actions/actionCanvas.d.ts +246 -76
- package/types/actions/actionClipboard.d.ts +84 -31
- package/types/actions/actionDeleteSelected.d.ts +40 -21
- package/types/actions/actionDistribute.d.ts +2 -6
- package/types/actions/actionDuplicateSelection.d.ts +1 -3
- package/types/actions/actionExport.d.ts +125 -78
- package/types/actions/actionFinalize.d.ts +27 -15
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionGroup.d.ts +4 -8
- package/types/actions/actionLinearEditor.d.ts +14 -7
- package/types/actions/actionMenu.d.ts +40 -26
- package/types/actions/actionNavigate.d.ts +1 -3
- package/types/actions/actionProperties.d.ts +182 -117
- package/types/actions/actionStyles.d.ts +13 -6
- package/types/actions/actionToggleGridMode.d.ts +14 -6
- package/types/actions/actionToggleLock.d.ts +13 -6
- package/types/actions/actionToggleStats.d.ts +13 -6
- package/types/actions/actionToggleViewMode.d.ts +14 -6
- package/types/actions/actionToggleZenMode.d.ts +14 -6
- package/types/actions/actionZindex.d.ts +4 -12
- package/types/actions/manager.d.ts +2 -1
- package/types/actions/types.d.ts +3 -5
- package/types/appState.d.ts +8 -6
- package/types/components/ActiveConfirmDialog.d.ts +24 -0
- package/types/components/App.d.ts +8 -50
- package/types/components/Button.d.ts +15 -0
- package/types/components/CollabButton.d.ts +1 -2
- package/types/components/ContextMenu.d.ts +8 -20
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/JSONExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +3 -3
- package/types/components/LibraryMenuHeaderContent.d.ts +23 -0
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +5 -6
- package/types/components/ToolButton.d.ts +1 -1
- package/types/components/UserList.d.ts +0 -2
- package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -0
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -0
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -0
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -0
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
- package/types/components/footer/Footer.d.ts +13 -0
- package/types/components/footer/FooterCenter.d.ts +8 -0
- package/types/components/icons.d.ts +2 -1
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -0
- package/types/components/main-menu/DefaultItems.d.ts +44 -0
- package/types/components/main-menu/MainMenu.d.ts +60 -0
- package/types/components/mainMenu/DefaultItems.d.ts +44 -0
- package/types/components/mainMenu/MainMenu.d.ts +63 -0
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
- package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -0
- package/types/constants.d.ts +6 -4
- package/types/element/Hyperlink.d.ts +15 -10
- package/types/element/linearElementEditor.d.ts +14 -6
- package/types/element/textElement.d.ts +7 -0
- package/types/element/textWysiwyg.d.ts +6 -1
- package/types/excalidraw-app/data/index.d.ts +5 -0
- package/types/excalidraw-app/data/localStorage.d.ts +5 -0
- package/types/keys.d.ts +2 -3
- package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -0
- package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -0
- package/types/packages/excalidraw/index.d.ts +10 -0
- package/types/renderer/easingFunctions.d.ts +6 -0
- package/types/types.d.ts +54 -26
- package/types/utils.d.ts +23 -3
|
@@ -9,6 +9,11 @@ export declare const actionFinalize: {
|
|
|
9
9
|
appState: {
|
|
10
10
|
cursorButton: "up";
|
|
11
11
|
editingLinearElement: null;
|
|
12
|
+
contextMenu: {
|
|
13
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
} | null;
|
|
12
17
|
showWelcomeScreen: boolean;
|
|
13
18
|
isLoading: boolean;
|
|
14
19
|
errorMessage: string | null;
|
|
@@ -21,16 +26,15 @@ export declare const actionFinalize: {
|
|
|
21
26
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
22
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
28
|
activeTool: {
|
|
24
|
-
|
|
25
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
29
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
26
30
|
locked: boolean;
|
|
31
|
+
} & ({
|
|
32
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
27
33
|
customType: null;
|
|
28
34
|
} | {
|
|
29
35
|
type: "custom";
|
|
30
36
|
customType: string;
|
|
31
|
-
|
|
32
|
-
locked: boolean;
|
|
33
|
-
};
|
|
37
|
+
});
|
|
34
38
|
penMode: boolean;
|
|
35
39
|
penDetected: boolean;
|
|
36
40
|
exportBackground: boolean;
|
|
@@ -63,7 +67,7 @@ export declare const actionFinalize: {
|
|
|
63
67
|
openMenu: "canvas" | "shape" | null;
|
|
64
68
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
65
69
|
openSidebar: "library" | "customSidebar" | null;
|
|
66
|
-
openDialog: "imageExport" | "help" | null;
|
|
70
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
67
71
|
isSidebarDocked: boolean;
|
|
68
72
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
69
73
|
selectedElementIds: {
|
|
@@ -81,6 +85,7 @@ export declare const actionFinalize: {
|
|
|
81
85
|
zenModeEnabled: boolean;
|
|
82
86
|
theme: string;
|
|
83
87
|
gridSize: number | null;
|
|
88
|
+
previousGridSize: number | null;
|
|
84
89
|
viewModeEnabled: boolean;
|
|
85
90
|
selectedGroupIds: {
|
|
86
91
|
[groupId: string]: boolean;
|
|
@@ -110,6 +115,8 @@ export declare const actionFinalize: {
|
|
|
110
115
|
elementBackground?: string[] | undefined;
|
|
111
116
|
elementStroke?: string[] | undefined;
|
|
112
117
|
};
|
|
118
|
+
allowWheelZoom?: boolean | undefined;
|
|
119
|
+
allowPinchZoom?: boolean | undefined;
|
|
113
120
|
selectedLinearElement: LinearElementEditor | null;
|
|
114
121
|
};
|
|
115
122
|
commitToHistory: true;
|
|
@@ -118,16 +125,15 @@ export declare const actionFinalize: {
|
|
|
118
125
|
appState: {
|
|
119
126
|
cursorButton: "up";
|
|
120
127
|
activeTool: {
|
|
121
|
-
|
|
122
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
128
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
123
129
|
locked: boolean;
|
|
130
|
+
} & ({
|
|
131
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
124
132
|
customType: null;
|
|
125
133
|
} | {
|
|
126
134
|
type: "custom";
|
|
127
135
|
customType: string;
|
|
128
|
-
|
|
129
|
-
locked: boolean;
|
|
130
|
-
};
|
|
136
|
+
});
|
|
131
137
|
draggingElement: null;
|
|
132
138
|
multiElement: null;
|
|
133
139
|
editingElement: null;
|
|
@@ -138,6 +144,11 @@ export declare const actionFinalize: {
|
|
|
138
144
|
};
|
|
139
145
|
selectedLinearElement: LinearElementEditor | null;
|
|
140
146
|
pendingImageElementId: null;
|
|
147
|
+
contextMenu: {
|
|
148
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
149
|
+
top: number;
|
|
150
|
+
left: number;
|
|
151
|
+
} | null;
|
|
141
152
|
showWelcomeScreen: boolean;
|
|
142
153
|
isLoading: boolean;
|
|
143
154
|
errorMessage: string | null;
|
|
@@ -177,7 +188,7 @@ export declare const actionFinalize: {
|
|
|
177
188
|
openMenu: "canvas" | "shape" | null;
|
|
178
189
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
179
190
|
openSidebar: "library" | "customSidebar" | null;
|
|
180
|
-
openDialog: "imageExport" | "help" | null;
|
|
191
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
181
192
|
isSidebarDocked: boolean;
|
|
182
193
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
183
194
|
previousSelectedElementIds: {
|
|
@@ -192,6 +203,7 @@ export declare const actionFinalize: {
|
|
|
192
203
|
zenModeEnabled: boolean;
|
|
193
204
|
theme: string;
|
|
194
205
|
gridSize: number | null;
|
|
206
|
+
previousGridSize: number | null;
|
|
195
207
|
viewModeEnabled: boolean;
|
|
196
208
|
selectedGroupIds: {
|
|
197
209
|
[groupId: string]: boolean;
|
|
@@ -220,13 +232,13 @@ export declare const actionFinalize: {
|
|
|
220
232
|
elementBackground?: string[] | undefined;
|
|
221
233
|
elementStroke?: string[] | undefined;
|
|
222
234
|
};
|
|
235
|
+
allowWheelZoom?: boolean | undefined;
|
|
236
|
+
allowPinchZoom?: boolean | undefined;
|
|
223
237
|
};
|
|
224
238
|
commitToHistory: boolean;
|
|
225
239
|
};
|
|
226
240
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
227
|
-
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps
|
|
228
|
-
isInHamburgerMenu: boolean;
|
|
229
|
-
}) => JSX.Element;
|
|
241
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
230
242
|
} & {
|
|
231
243
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
232
244
|
};
|
|
@@ -13,7 +13,7 @@ export declare const actionFlipHorizontal: {
|
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
15
|
contextItemLabel: string;
|
|
16
|
-
|
|
16
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
19
|
};
|
|
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
|
|
|
29
29
|
};
|
|
30
30
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
31
31
|
contextItemLabel: string;
|
|
32
|
-
|
|
32
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
33
33
|
} & {
|
|
34
34
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -16,11 +16,9 @@ export declare const actionGroup: {
|
|
|
16
16
|
commitToHistory: true;
|
|
17
17
|
};
|
|
18
18
|
contextItemLabel: string;
|
|
19
|
-
|
|
19
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
20
20
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
21
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
22
|
-
isInHamburgerMenu: boolean;
|
|
23
|
-
}) => JSX.Element;
|
|
21
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
24
22
|
} & {
|
|
25
23
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
26
24
|
};
|
|
@@ -40,10 +38,8 @@ export declare const actionUngroup: {
|
|
|
40
38
|
};
|
|
41
39
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
42
40
|
contextItemLabel: string;
|
|
43
|
-
|
|
44
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
45
|
-
isInHamburgerMenu: boolean;
|
|
46
|
-
}) => JSX.Element;
|
|
41
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
42
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
47
43
|
} & {
|
|
48
44
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
49
45
|
};
|
|
@@ -5,10 +5,15 @@ export declare const actionToggleLinearEditor: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
9
9
|
perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
10
10
|
appState: {
|
|
11
11
|
editingLinearElement: LinearElementEditor | null;
|
|
12
|
+
contextMenu: {
|
|
13
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
} | null;
|
|
12
17
|
showWelcomeScreen: boolean;
|
|
13
18
|
isLoading: boolean;
|
|
14
19
|
errorMessage: string | null;
|
|
@@ -21,16 +26,15 @@ export declare const actionToggleLinearEditor: {
|
|
|
21
26
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
22
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
28
|
activeTool: {
|
|
24
|
-
|
|
25
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
29
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
26
30
|
locked: boolean;
|
|
31
|
+
} & ({
|
|
32
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
27
33
|
customType: null;
|
|
28
34
|
} | {
|
|
29
35
|
type: "custom";
|
|
30
36
|
customType: string;
|
|
31
|
-
|
|
32
|
-
locked: boolean;
|
|
33
|
-
};
|
|
37
|
+
});
|
|
34
38
|
penMode: boolean;
|
|
35
39
|
penDetected: boolean;
|
|
36
40
|
exportBackground: boolean;
|
|
@@ -64,7 +68,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
64
68
|
openMenu: "canvas" | "shape" | null;
|
|
65
69
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
66
70
|
openSidebar: "library" | "customSidebar" | null;
|
|
67
|
-
openDialog: "imageExport" | "help" | null;
|
|
71
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
68
72
|
isSidebarDocked: boolean;
|
|
69
73
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
70
74
|
selectedElementIds: {
|
|
@@ -82,6 +86,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
82
86
|
zenModeEnabled: boolean;
|
|
83
87
|
theme: string;
|
|
84
88
|
gridSize: number | null;
|
|
89
|
+
previousGridSize: number | null;
|
|
85
90
|
viewModeEnabled: boolean;
|
|
86
91
|
selectedGroupIds: {
|
|
87
92
|
[groupId: string]: boolean;
|
|
@@ -111,6 +116,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
111
116
|
elementBackground?: string[] | undefined;
|
|
112
117
|
elementStroke?: string[] | undefined;
|
|
113
118
|
};
|
|
119
|
+
allowWheelZoom?: boolean | undefined;
|
|
120
|
+
allowPinchZoom?: boolean | undefined;
|
|
114
121
|
selectedLinearElement: LinearElementEditor | null;
|
|
115
122
|
};
|
|
116
123
|
commitToHistory: false;
|
|
@@ -7,6 +7,11 @@ export declare const actionToggleCanvasMenu: {
|
|
|
7
7
|
perform: (_: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
8
8
|
appState: {
|
|
9
9
|
openMenu: "canvas" | null;
|
|
10
|
+
contextMenu: {
|
|
11
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
12
|
+
top: number;
|
|
13
|
+
left: number;
|
|
14
|
+
} | null;
|
|
10
15
|
showWelcomeScreen: boolean;
|
|
11
16
|
isLoading: boolean;
|
|
12
17
|
errorMessage: string | null;
|
|
@@ -20,16 +25,15 @@ export declare const actionToggleCanvasMenu: {
|
|
|
20
25
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
26
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
22
27
|
activeTool: {
|
|
23
|
-
|
|
24
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
28
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
25
29
|
locked: boolean;
|
|
30
|
+
} & ({
|
|
31
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
26
32
|
customType: null;
|
|
27
33
|
} | {
|
|
28
34
|
type: "custom";
|
|
29
35
|
customType: string;
|
|
30
|
-
|
|
31
|
-
locked: boolean;
|
|
32
|
-
};
|
|
36
|
+
});
|
|
33
37
|
penMode: boolean;
|
|
34
38
|
penDetected: boolean;
|
|
35
39
|
exportBackground: boolean;
|
|
@@ -62,7 +66,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
62
66
|
}>;
|
|
63
67
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
64
68
|
openSidebar: "library" | "customSidebar" | null;
|
|
65
|
-
openDialog: "imageExport" | "help" | null;
|
|
69
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
66
70
|
isSidebarDocked: boolean;
|
|
67
71
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
68
72
|
selectedElementIds: {
|
|
@@ -80,6 +84,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
80
84
|
zenModeEnabled: boolean;
|
|
81
85
|
theme: string;
|
|
82
86
|
gridSize: number | null;
|
|
87
|
+
previousGridSize: number | null;
|
|
83
88
|
viewModeEnabled: boolean;
|
|
84
89
|
selectedGroupIds: {
|
|
85
90
|
[groupId: string]: boolean;
|
|
@@ -109,13 +114,13 @@ export declare const actionToggleCanvasMenu: {
|
|
|
109
114
|
elementBackground?: string[] | undefined;
|
|
110
115
|
elementStroke?: string[] | undefined;
|
|
111
116
|
};
|
|
117
|
+
allowWheelZoom?: boolean | undefined;
|
|
118
|
+
allowPinchZoom?: boolean | undefined;
|
|
112
119
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
113
120
|
};
|
|
114
121
|
commitToHistory: false;
|
|
115
122
|
};
|
|
116
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
117
|
-
isInHamburgerMenu: boolean;
|
|
118
|
-
}) => JSX.Element;
|
|
123
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
119
124
|
} & {
|
|
120
125
|
keyTest?: undefined;
|
|
121
126
|
};
|
|
@@ -127,6 +132,11 @@ export declare const actionToggleEditMenu: {
|
|
|
127
132
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
128
133
|
appState: {
|
|
129
134
|
openMenu: "shape" | null;
|
|
135
|
+
contextMenu: {
|
|
136
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
137
|
+
top: number;
|
|
138
|
+
left: number;
|
|
139
|
+
} | null;
|
|
130
140
|
showWelcomeScreen: boolean;
|
|
131
141
|
isLoading: boolean;
|
|
132
142
|
errorMessage: string | null;
|
|
@@ -140,16 +150,15 @@ export declare const actionToggleEditMenu: {
|
|
|
140
150
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
141
151
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
142
152
|
activeTool: {
|
|
143
|
-
|
|
144
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
153
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
145
154
|
locked: boolean;
|
|
155
|
+
} & ({
|
|
156
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
146
157
|
customType: null;
|
|
147
158
|
} | {
|
|
148
159
|
type: "custom";
|
|
149
160
|
customType: string;
|
|
150
|
-
|
|
151
|
-
locked: boolean;
|
|
152
|
-
};
|
|
161
|
+
});
|
|
153
162
|
penMode: boolean;
|
|
154
163
|
penDetected: boolean;
|
|
155
164
|
exportBackground: boolean;
|
|
@@ -182,7 +191,7 @@ export declare const actionToggleEditMenu: {
|
|
|
182
191
|
}>;
|
|
183
192
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
184
193
|
openSidebar: "library" | "customSidebar" | null;
|
|
185
|
-
openDialog: "imageExport" | "help" | null;
|
|
194
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
186
195
|
isSidebarDocked: boolean;
|
|
187
196
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
188
197
|
selectedElementIds: {
|
|
@@ -200,6 +209,7 @@ export declare const actionToggleEditMenu: {
|
|
|
200
209
|
zenModeEnabled: boolean;
|
|
201
210
|
theme: string;
|
|
202
211
|
gridSize: number | null;
|
|
212
|
+
previousGridSize: number | null;
|
|
203
213
|
viewModeEnabled: boolean;
|
|
204
214
|
selectedGroupIds: {
|
|
205
215
|
[groupId: string]: boolean;
|
|
@@ -229,13 +239,13 @@ export declare const actionToggleEditMenu: {
|
|
|
229
239
|
elementBackground?: string[] | undefined;
|
|
230
240
|
elementStroke?: string[] | undefined;
|
|
231
241
|
};
|
|
242
|
+
allowWheelZoom?: boolean | undefined;
|
|
243
|
+
allowPinchZoom?: boolean | undefined;
|
|
232
244
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
233
245
|
};
|
|
234
246
|
commitToHistory: false;
|
|
235
247
|
};
|
|
236
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
237
|
-
isInHamburgerMenu: boolean;
|
|
238
|
-
}) => JSX.Element;
|
|
248
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
239
249
|
} & {
|
|
240
250
|
keyTest?: undefined;
|
|
241
251
|
};
|
|
@@ -263,6 +273,11 @@ export declare const actionShortcuts: {
|
|
|
263
273
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
|
|
264
274
|
appState: {
|
|
265
275
|
openDialog: "help" | null;
|
|
276
|
+
contextMenu: {
|
|
277
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
278
|
+
top: number;
|
|
279
|
+
left: number;
|
|
280
|
+
} | null;
|
|
266
281
|
showWelcomeScreen: boolean;
|
|
267
282
|
isLoading: boolean;
|
|
268
283
|
errorMessage: string | null;
|
|
@@ -276,16 +291,15 @@ export declare const actionShortcuts: {
|
|
|
276
291
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
277
292
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
278
293
|
activeTool: {
|
|
279
|
-
|
|
280
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
294
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
281
295
|
locked: boolean;
|
|
296
|
+
} & ({
|
|
297
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
282
298
|
customType: null;
|
|
283
299
|
} | {
|
|
284
300
|
type: "custom";
|
|
285
301
|
customType: string;
|
|
286
|
-
|
|
287
|
-
locked: boolean;
|
|
288
|
-
};
|
|
302
|
+
});
|
|
289
303
|
penMode: boolean;
|
|
290
304
|
penDetected: boolean;
|
|
291
305
|
exportBackground: boolean;
|
|
@@ -336,6 +350,7 @@ export declare const actionShortcuts: {
|
|
|
336
350
|
zenModeEnabled: boolean;
|
|
337
351
|
theme: string;
|
|
338
352
|
gridSize: number | null;
|
|
353
|
+
previousGridSize: number | null;
|
|
339
354
|
viewModeEnabled: boolean;
|
|
340
355
|
selectedGroupIds: {
|
|
341
356
|
[groupId: string]: boolean;
|
|
@@ -365,13 +380,12 @@ export declare const actionShortcuts: {
|
|
|
365
380
|
elementBackground?: string[] | undefined;
|
|
366
381
|
elementStroke?: string[] | undefined;
|
|
367
382
|
};
|
|
383
|
+
allowWheelZoom?: boolean | undefined;
|
|
384
|
+
allowPinchZoom?: boolean | undefined;
|
|
368
385
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
369
386
|
};
|
|
370
387
|
commitToHistory: false;
|
|
371
388
|
};
|
|
372
|
-
PanelComponent: ({ updateData, isInHamburgerMenu }: import("./types").PanelComponentProps & {
|
|
373
|
-
isInHamburgerMenu: boolean;
|
|
374
|
-
}) => JSX.Element;
|
|
375
389
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
376
390
|
} & {
|
|
377
391
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -8,9 +8,7 @@ export declare const actionGoToCollaborator: {
|
|
|
8
8
|
appState: Readonly<import("../types").AppState>;
|
|
9
9
|
commitToHistory: false;
|
|
10
10
|
};
|
|
11
|
-
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps
|
|
12
|
-
isInHamburgerMenu: boolean;
|
|
13
|
-
}) => JSX.Element;
|
|
11
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
14
12
|
} & {
|
|
15
13
|
keyTest?: undefined;
|
|
16
14
|
};
|