@zsviczian/excalidraw 0.13.0-obsidian-2 → 0.14.0-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 +491 -1096
- 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 +18 -3
- package/types/actions/actionAlign.d.ts +6 -18
- package/types/actions/actionBoundText.d.ts +8 -3
- package/types/actions/actionCanvas.d.ts +62 -30
- package/types/actions/actionClipboard.d.ts +49 -6
- package/types/actions/actionDeleteSelected.d.ts +19 -6
- package/types/actions/actionDistribute.d.ts +2 -6
- package/types/actions/actionDuplicateSelection.d.ts +1 -3
- package/types/actions/actionExport.d.ts +62 -33
- package/types/actions/actionFinalize.d.ts +13 -5
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionGroup.d.ts +4 -8
- package/types/actions/actionLinearEditor.d.ts +7 -2
- package/types/actions/actionMenu.d.ts +19 -11
- package/types/actions/actionNavigate.d.ts +1 -3
- package/types/actions/actionProperties.d.ts +91 -52
- package/types/actions/actionStyles.d.ts +6 -1
- package/types/actions/actionToggleGridMode.d.ts +7 -1
- package/types/actions/actionToggleLock.d.ts +6 -1
- package/types/actions/actionToggleStats.d.ts +6 -1
- package/types/actions/actionToggleViewMode.d.ts +7 -1
- package/types/actions/actionToggleZenMode.d.ts +7 -1
- package/types/actions/actionZindex.d.ts +4 -12
- package/types/actions/manager.d.ts +2 -1
- package/types/actions/types.d.ts +2 -4
- package/types/components/App.d.ts +7 -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/JSONExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +2 -3
- package/types/components/LibraryMenuHeaderContent.d.ts +23 -0
- package/types/components/MobileMenu.d.ts +4 -6
- package/types/components/UserList.d.ts +0 -2
- package/types/components/dropdownMenu/DropdownMenu.d.ts +64 -0
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +13 -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 +12 -0
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -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 +1 -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 +55 -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 +0 -3
- package/types/element/Hyperlink.d.ts +8 -5
- package/types/element/linearElementEditor.d.ts +6 -1
- 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 -0
- 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 +41 -19
- package/types/utils.d.ts +17 -0
|
@@ -11,110 +11,8 @@ https://github.com/nodeca/pica
|
|
|
11
11
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
17
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
18
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
-
|
|
20
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
22
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
23
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
24
|
-
|
|
25
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
26
|
-
and limitations under the License.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
|
|
29
|
-
/*! https://mths.be/utf8js v2.1.2 by @mathias */
|
|
30
|
-
|
|
31
14
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
32
15
|
|
|
33
|
-
/**
|
|
34
|
-
* @license
|
|
35
|
-
* Copyright 2017 Google LLC
|
|
36
|
-
*
|
|
37
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
38
|
-
* you may not use this file except in compliance with the License.
|
|
39
|
-
* You may obtain a copy of the License at
|
|
40
|
-
*
|
|
41
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
42
|
-
*
|
|
43
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
44
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
45
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
46
|
-
* See the License for the specific language governing permissions and
|
|
47
|
-
* limitations under the License.
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @license
|
|
52
|
-
* Copyright 2018 Google LLC
|
|
53
|
-
*
|
|
54
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
55
|
-
* you may not use this file except in compliance with the License.
|
|
56
|
-
* You may obtain a copy of the License at
|
|
57
|
-
*
|
|
58
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
59
|
-
*
|
|
60
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
61
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
62
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
63
|
-
* See the License for the specific language governing permissions and
|
|
64
|
-
* limitations under the License.
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @license
|
|
69
|
-
* Copyright 2019 Google LLC
|
|
70
|
-
*
|
|
71
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
72
|
-
* you may not use this file except in compliance with the License.
|
|
73
|
-
* You may obtain a copy of the License at
|
|
74
|
-
*
|
|
75
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
76
|
-
*
|
|
77
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
78
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
79
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
80
|
-
* See the License for the specific language governing permissions and
|
|
81
|
-
* limitations under the License.
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @license
|
|
86
|
-
* Copyright 2020 Google LLC
|
|
87
|
-
*
|
|
88
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
89
|
-
* you may not use this file except in compliance with the License.
|
|
90
|
-
* You may obtain a copy of the License at
|
|
91
|
-
*
|
|
92
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
93
|
-
*
|
|
94
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
95
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
96
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
97
|
-
* See the License for the specific language governing permissions and
|
|
98
|
-
* limitations under the License.
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @license
|
|
103
|
-
* Copyright 2021 Google LLC
|
|
104
|
-
*
|
|
105
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
106
|
-
* you may not use this file except in compliance with the License.
|
|
107
|
-
* You may obtain a copy of the License at
|
|
108
|
-
*
|
|
109
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
110
|
-
*
|
|
111
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
112
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
113
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
114
|
-
* See the License for the specific language governing permissions and
|
|
115
|
-
* limitations under the License.
|
|
116
|
-
*/
|
|
117
|
-
|
|
118
16
|
/**
|
|
119
17
|
* @license React
|
|
120
18
|
* react-jsx-runtime.production.min.js
|
package/package.json
CHANGED
|
@@ -9,6 +9,11 @@ export declare const actionAddToLibrary: {
|
|
|
9
9
|
toast: {
|
|
10
10
|
message: string;
|
|
11
11
|
};
|
|
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;
|
|
@@ -65,7 +70,7 @@ export declare const actionAddToLibrary: {
|
|
|
65
70
|
openMenu: "canvas" | "shape" | null;
|
|
66
71
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
67
72
|
openSidebar: "library" | "customSidebar" | null;
|
|
68
|
-
openDialog: "imageExport" | "help" | null;
|
|
73
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
69
74
|
isSidebarDocked: boolean;
|
|
70
75
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
71
76
|
selectedElementIds: {
|
|
@@ -113,6 +118,11 @@ export declare const actionAddToLibrary: {
|
|
|
113
118
|
commitToHistory: false;
|
|
114
119
|
appState: {
|
|
115
120
|
errorMessage: any;
|
|
121
|
+
contextMenu: {
|
|
122
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
123
|
+
top: number;
|
|
124
|
+
left: number;
|
|
125
|
+
} | null;
|
|
116
126
|
showWelcomeScreen: boolean;
|
|
117
127
|
isLoading: boolean;
|
|
118
128
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -168,7 +178,7 @@ export declare const actionAddToLibrary: {
|
|
|
168
178
|
openMenu: "canvas" | "shape" | null;
|
|
169
179
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
170
180
|
openSidebar: "library" | "customSidebar" | null;
|
|
171
|
-
openDialog: "imageExport" | "help" | null;
|
|
181
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
172
182
|
isSidebarDocked: boolean;
|
|
173
183
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
174
184
|
selectedElementIds: {
|
|
@@ -221,6 +231,11 @@ export declare const actionAddToLibrary: {
|
|
|
221
231
|
commitToHistory: false;
|
|
222
232
|
appState: {
|
|
223
233
|
errorMessage: string;
|
|
234
|
+
contextMenu: {
|
|
235
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
236
|
+
top: number;
|
|
237
|
+
left: number;
|
|
238
|
+
} | null;
|
|
224
239
|
showWelcomeScreen: boolean;
|
|
225
240
|
isLoading: boolean;
|
|
226
241
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -276,7 +291,7 @@ export declare const actionAddToLibrary: {
|
|
|
276
291
|
openMenu: "canvas" | "shape" | null;
|
|
277
292
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
278
293
|
openSidebar: "library" | "customSidebar" | null;
|
|
279
|
-
openDialog: "imageExport" | "help" | null;
|
|
294
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
280
295
|
isSidebarDocked: boolean;
|
|
281
296
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
282
297
|
selectedElementIds: {
|
|
@@ -12,9 +12,7 @@ export declare const actionAlignTop: {
|
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
16
|
-
isInHamburgerMenu: boolean;
|
|
17
|
-
}) => JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
18
16
|
} & {
|
|
19
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
20
18
|
};
|
|
@@ -29,9 +27,7 @@ export declare const actionAlignBottom: {
|
|
|
29
27
|
commitToHistory: true;
|
|
30
28
|
};
|
|
31
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
33
|
-
isInHamburgerMenu: boolean;
|
|
34
|
-
}) => JSX.Element;
|
|
30
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
35
31
|
} & {
|
|
36
32
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
37
33
|
};
|
|
@@ -46,9 +42,7 @@ export declare const actionAlignLeft: {
|
|
|
46
42
|
commitToHistory: true;
|
|
47
43
|
};
|
|
48
44
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
49
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
50
|
-
isInHamburgerMenu: boolean;
|
|
51
|
-
}) => JSX.Element;
|
|
45
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
52
46
|
} & {
|
|
53
47
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
54
48
|
};
|
|
@@ -63,9 +57,7 @@ export declare const actionAlignRight: {
|
|
|
63
57
|
commitToHistory: true;
|
|
64
58
|
};
|
|
65
59
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
66
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
67
|
-
isInHamburgerMenu: boolean;
|
|
68
|
-
}) => JSX.Element;
|
|
60
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
69
61
|
} & {
|
|
70
62
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
71
63
|
};
|
|
@@ -79,9 +71,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
79
71
|
elements: ExcalidrawElement[];
|
|
80
72
|
commitToHistory: true;
|
|
81
73
|
};
|
|
82
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
83
|
-
isInHamburgerMenu: boolean;
|
|
84
|
-
}) => JSX.Element;
|
|
74
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
85
75
|
} & {
|
|
86
76
|
keyTest?: undefined;
|
|
87
77
|
};
|
|
@@ -95,9 +85,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
95
85
|
elements: ExcalidrawElement[];
|
|
96
86
|
commitToHistory: true;
|
|
97
87
|
};
|
|
98
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
99
|
-
isInHamburgerMenu: boolean;
|
|
100
|
-
}) => JSX.Element;
|
|
88
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
101
89
|
} & {
|
|
102
90
|
keyTest?: undefined;
|
|
103
91
|
};
|
|
@@ -4,7 +4,7 @@ export declare const actionUnbindText: {
|
|
|
4
4
|
trackEvent: {
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
8
8
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
9
9
|
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
10
10
|
appState: Readonly<import("../types").AppState>;
|
|
@@ -19,13 +19,18 @@ export declare const actionBindText: {
|
|
|
19
19
|
trackEvent: {
|
|
20
20
|
category: "element";
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
23
23
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
24
24
|
elements: import("../element/types").ExcalidrawElement[];
|
|
25
25
|
appState: {
|
|
26
26
|
selectedElementIds: {
|
|
27
27
|
[x: string]: true;
|
|
28
28
|
};
|
|
29
|
+
contextMenu: {
|
|
30
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
31
|
+
top: number;
|
|
32
|
+
left: number;
|
|
33
|
+
} | null;
|
|
29
34
|
showWelcomeScreen: boolean;
|
|
30
35
|
isLoading: boolean;
|
|
31
36
|
errorMessage: string | null;
|
|
@@ -82,7 +87,7 @@ export declare const actionBindText: {
|
|
|
82
87
|
openMenu: "canvas" | "shape" | null;
|
|
83
88
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
84
89
|
openSidebar: "library" | "customSidebar" | null;
|
|
85
|
-
openDialog: "imageExport" | "help" | null;
|
|
90
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
86
91
|
isSidebarDocked: boolean;
|
|
87
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
88
93
|
previousSelectedElementIds: {
|
|
@@ -4,13 +4,12 @@ import { AppState, NormalizedZoomValue } from "../types";
|
|
|
4
4
|
export declare const actionChangeViewBackgroundColor: {
|
|
5
5
|
name: "changeViewBackgroundColor";
|
|
6
6
|
trackEvent: false;
|
|
7
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
7
8
|
perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
8
9
|
appState: any;
|
|
9
10
|
commitToHistory: boolean;
|
|
10
11
|
};
|
|
11
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
12
|
-
isInHamburgerMenu: boolean;
|
|
13
|
-
}) => JSX.Element;
|
|
12
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
14
13
|
} & {
|
|
15
14
|
keyTest?: undefined;
|
|
16
15
|
};
|
|
@@ -19,6 +18,7 @@ export declare const actionClearCanvas: {
|
|
|
19
18
|
trackEvent: {
|
|
20
19
|
category: "canvas";
|
|
21
20
|
};
|
|
21
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
22
22
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
23
23
|
elements: ExcalidrawElement[];
|
|
24
24
|
appState: {
|
|
@@ -55,6 +55,11 @@ export declare const actionClearCanvas: {
|
|
|
55
55
|
};
|
|
56
56
|
trayModeEnabled: boolean;
|
|
57
57
|
name: string;
|
|
58
|
+
contextMenu: {
|
|
59
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
60
|
+
top: number;
|
|
61
|
+
left: number;
|
|
62
|
+
} | null;
|
|
58
63
|
showWelcomeScreen: boolean;
|
|
59
64
|
isLoading: boolean;
|
|
60
65
|
errorMessage: string | null;
|
|
@@ -95,7 +100,7 @@ export declare const actionClearCanvas: {
|
|
|
95
100
|
openMenu: "canvas" | "shape" | null;
|
|
96
101
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
97
102
|
openSidebar: "library" | "customSidebar" | null;
|
|
98
|
-
openDialog: "imageExport" | "help" | null;
|
|
103
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
99
104
|
isSidebarDocked: boolean;
|
|
100
105
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
101
106
|
selectedElementIds: {
|
|
@@ -126,9 +131,6 @@ export declare const actionClearCanvas: {
|
|
|
126
131
|
};
|
|
127
132
|
commitToHistory: true;
|
|
128
133
|
};
|
|
129
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
130
|
-
isInHamburgerMenu: boolean;
|
|
131
|
-
}) => JSX.Element;
|
|
132
134
|
} & {
|
|
133
135
|
keyTest?: undefined;
|
|
134
136
|
};
|
|
@@ -145,6 +147,11 @@ export declare const actionZoomIn: {
|
|
|
145
147
|
zoom: {
|
|
146
148
|
value: NormalizedZoomValue;
|
|
147
149
|
};
|
|
150
|
+
contextMenu: {
|
|
151
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
152
|
+
top: number;
|
|
153
|
+
left: number;
|
|
154
|
+
} | null;
|
|
148
155
|
showWelcomeScreen: boolean;
|
|
149
156
|
isLoading: boolean;
|
|
150
157
|
errorMessage: string | null;
|
|
@@ -196,7 +203,7 @@ export declare const actionZoomIn: {
|
|
|
196
203
|
openMenu: "canvas" | "shape" | null;
|
|
197
204
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
198
205
|
openSidebar: "library" | "customSidebar" | null;
|
|
199
|
-
openDialog: "imageExport" | "help" | null;
|
|
206
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
200
207
|
isSidebarDocked: boolean;
|
|
201
208
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
202
209
|
selectedElementIds: {
|
|
@@ -247,9 +254,7 @@ export declare const actionZoomIn: {
|
|
|
247
254
|
};
|
|
248
255
|
commitToHistory: false;
|
|
249
256
|
};
|
|
250
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
251
|
-
isInHamburgerMenu: boolean;
|
|
252
|
-
}) => JSX.Element;
|
|
257
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
253
258
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
254
259
|
} & {
|
|
255
260
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -267,6 +272,11 @@ export declare const actionZoomOut: {
|
|
|
267
272
|
zoom: {
|
|
268
273
|
value: NormalizedZoomValue;
|
|
269
274
|
};
|
|
275
|
+
contextMenu: {
|
|
276
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
277
|
+
top: number;
|
|
278
|
+
left: number;
|
|
279
|
+
} | null;
|
|
270
280
|
showWelcomeScreen: boolean;
|
|
271
281
|
isLoading: boolean;
|
|
272
282
|
errorMessage: string | null;
|
|
@@ -318,7 +328,7 @@ export declare const actionZoomOut: {
|
|
|
318
328
|
openMenu: "canvas" | "shape" | null;
|
|
319
329
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
320
330
|
openSidebar: "library" | "customSidebar" | null;
|
|
321
|
-
openDialog: "imageExport" | "help" | null;
|
|
331
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
322
332
|
isSidebarDocked: boolean;
|
|
323
333
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
324
334
|
selectedElementIds: {
|
|
@@ -369,9 +379,7 @@ export declare const actionZoomOut: {
|
|
|
369
379
|
};
|
|
370
380
|
commitToHistory: false;
|
|
371
381
|
};
|
|
372
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
373
|
-
isInHamburgerMenu: boolean;
|
|
374
|
-
}) => JSX.Element;
|
|
382
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
375
383
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
376
384
|
} & {
|
|
377
385
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -389,6 +397,11 @@ export declare const actionResetZoom: {
|
|
|
389
397
|
zoom: {
|
|
390
398
|
value: NormalizedZoomValue;
|
|
391
399
|
};
|
|
400
|
+
contextMenu: {
|
|
401
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
402
|
+
top: number;
|
|
403
|
+
left: number;
|
|
404
|
+
} | null;
|
|
392
405
|
showWelcomeScreen: boolean;
|
|
393
406
|
isLoading: boolean;
|
|
394
407
|
errorMessage: string | null;
|
|
@@ -440,7 +453,7 @@ export declare const actionResetZoom: {
|
|
|
440
453
|
openMenu: "canvas" | "shape" | null;
|
|
441
454
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
442
455
|
openSidebar: "library" | "customSidebar" | null;
|
|
443
|
-
openDialog: "imageExport" | "help" | null;
|
|
456
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
444
457
|
isSidebarDocked: boolean;
|
|
445
458
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
446
459
|
selectedElementIds: {
|
|
@@ -491,9 +504,7 @@ export declare const actionResetZoom: {
|
|
|
491
504
|
};
|
|
492
505
|
commitToHistory: false;
|
|
493
506
|
};
|
|
494
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps
|
|
495
|
-
isInHamburgerMenu: boolean;
|
|
496
|
-
}) => JSX.Element;
|
|
507
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
497
508
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
498
509
|
} & {
|
|
499
510
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -505,6 +516,11 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
505
516
|
};
|
|
506
517
|
scrollX: number;
|
|
507
518
|
scrollY: number;
|
|
519
|
+
contextMenu: {
|
|
520
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
521
|
+
top: number;
|
|
522
|
+
left: number;
|
|
523
|
+
} | null;
|
|
508
524
|
showWelcomeScreen: boolean;
|
|
509
525
|
isLoading: boolean;
|
|
510
526
|
errorMessage: string | null;
|
|
@@ -556,7 +572,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
556
572
|
openMenu: "canvas" | "shape" | null;
|
|
557
573
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
558
574
|
openSidebar: "library" | "customSidebar" | null;
|
|
559
|
-
openDialog: "imageExport" | "help" | null;
|
|
575
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
560
576
|
isSidebarDocked: boolean;
|
|
561
577
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
562
578
|
selectedElementIds: {
|
|
@@ -619,6 +635,11 @@ export declare const actionZoomToSelected: {
|
|
|
619
635
|
};
|
|
620
636
|
scrollX: number;
|
|
621
637
|
scrollY: number;
|
|
638
|
+
contextMenu: {
|
|
639
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
640
|
+
top: number;
|
|
641
|
+
left: number;
|
|
642
|
+
} | null;
|
|
622
643
|
showWelcomeScreen: boolean;
|
|
623
644
|
isLoading: boolean;
|
|
624
645
|
errorMessage: string | null;
|
|
@@ -670,7 +691,7 @@ export declare const actionZoomToSelected: {
|
|
|
670
691
|
openMenu: "canvas" | "shape" | null;
|
|
671
692
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
672
693
|
openSidebar: "library" | "customSidebar" | null;
|
|
673
|
-
openDialog: "imageExport" | "help" | null;
|
|
694
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
674
695
|
isSidebarDocked: boolean;
|
|
675
696
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
676
697
|
selectedElementIds: {
|
|
@@ -738,6 +759,11 @@ export declare const actionZoomToFit: {
|
|
|
738
759
|
};
|
|
739
760
|
scrollX: number;
|
|
740
761
|
scrollY: number;
|
|
762
|
+
contextMenu: {
|
|
763
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
764
|
+
top: number;
|
|
765
|
+
left: number;
|
|
766
|
+
} | null;
|
|
741
767
|
showWelcomeScreen: boolean;
|
|
742
768
|
isLoading: boolean;
|
|
743
769
|
errorMessage: string | null;
|
|
@@ -789,7 +815,7 @@ export declare const actionZoomToFit: {
|
|
|
789
815
|
openMenu: "canvas" | "shape" | null;
|
|
790
816
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
791
817
|
openSidebar: "library" | "customSidebar" | null;
|
|
792
|
-
openDialog: "imageExport" | "help" | null;
|
|
818
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
793
819
|
isSidebarDocked: boolean;
|
|
794
820
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
795
821
|
selectedElementIds: {
|
|
@@ -853,6 +879,11 @@ export declare const actionToggleTheme: {
|
|
|
853
879
|
perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../types").AppClassProperties) => {
|
|
854
880
|
appState: {
|
|
855
881
|
theme: any;
|
|
882
|
+
contextMenu: {
|
|
883
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
884
|
+
top: number;
|
|
885
|
+
left: number;
|
|
886
|
+
} | null;
|
|
856
887
|
showWelcomeScreen: boolean;
|
|
857
888
|
isLoading: boolean;
|
|
858
889
|
errorMessage: string | null;
|
|
@@ -909,7 +940,7 @@ export declare const actionToggleTheme: {
|
|
|
909
940
|
openMenu: "canvas" | "shape" | null;
|
|
910
941
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
911
942
|
openSidebar: "library" | "customSidebar" | null;
|
|
912
|
-
openDialog: "imageExport" | "help" | null;
|
|
943
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
913
944
|
isSidebarDocked: boolean;
|
|
914
945
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
915
946
|
selectedElementIds: {
|
|
@@ -959,10 +990,8 @@ export declare const actionToggleTheme: {
|
|
|
959
990
|
};
|
|
960
991
|
commitToHistory: false;
|
|
961
992
|
};
|
|
962
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
|
|
963
|
-
isInHamburgerMenu: boolean;
|
|
964
|
-
}) => JSX.Element;
|
|
965
993
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
994
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
966
995
|
} & {
|
|
967
996
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
968
997
|
};
|
|
@@ -986,6 +1015,11 @@ export declare const actionErase: {
|
|
|
986
1015
|
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
987
1016
|
locked: boolean;
|
|
988
1017
|
};
|
|
1018
|
+
contextMenu: {
|
|
1019
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1020
|
+
top: number;
|
|
1021
|
+
left: number;
|
|
1022
|
+
} | null;
|
|
989
1023
|
showWelcomeScreen: boolean;
|
|
990
1024
|
isLoading: boolean;
|
|
991
1025
|
errorMessage: string | null;
|
|
@@ -1031,7 +1065,7 @@ export declare const actionErase: {
|
|
|
1031
1065
|
openMenu: "canvas" | "shape" | null;
|
|
1032
1066
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1033
1067
|
openSidebar: "library" | "customSidebar" | null;
|
|
1034
|
-
openDialog: "imageExport" | "help" | null;
|
|
1068
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1035
1069
|
isSidebarDocked: boolean;
|
|
1036
1070
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1037
1071
|
previousSelectedElementIds: {
|
|
@@ -1077,9 +1111,7 @@ export declare const actionErase: {
|
|
|
1077
1111
|
commitToHistory: true;
|
|
1078
1112
|
};
|
|
1079
1113
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1080
|
-
PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps
|
|
1081
|
-
isInHamburgerMenu: boolean;
|
|
1082
|
-
}) => JSX.Element;
|
|
1114
|
+
PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1083
1115
|
} & {
|
|
1084
1116
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1085
1117
|
};
|