@zsviczian/excalidraw 0.13.0-obsidian → 0.13.0-obsidian-1
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 +1103 -142
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +104 -0
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +6 -3
- package/types/actions/actionAlign.d.ts +18 -6
- package/types/actions/actionBoundText.d.ts +2 -1
- package/types/actions/actionCanvas.d.ts +41 -18
- package/types/actions/actionClipboard.d.ts +10 -5
- package/types/actions/actionDeleteSelected.d.ts +9 -4
- package/types/actions/actionDistribute.d.ts +6 -2
- package/types/actions/actionDuplicateSelection.d.ts +3 -1
- package/types/actions/actionExport.d.ts +44 -19
- package/types/actions/actionFinalize.d.ts +7 -3
- package/types/actions/actionGroup.d.ts +6 -2
- package/types/actions/actionLinearEditor.d.ts +2 -1
- package/types/actions/actionMenu.d.ts +15 -6
- package/types/actions/actionNavigate.d.ts +3 -1
- package/types/actions/actionProperties.d.ts +65 -26
- package/types/actions/actionStyles.d.ts +2 -1
- package/types/actions/actionToggleGridMode.d.ts +2 -1
- package/types/actions/actionToggleLock.d.ts +2 -1
- package/types/actions/actionToggleStats.d.ts +2 -1
- package/types/actions/actionToggleViewMode.d.ts +2 -1
- package/types/actions/actionToggleZenMode.d.ts +2 -1
- package/types/actions/actionZindex.d.ts +12 -4
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +3 -1
- package/types/appState.d.ts +3 -2
- package/types/bug-issue-template.d.ts +2 -0
- package/types/clients.d.ts +1 -1
- package/types/components/Actions.d.ts +1 -0
- package/types/components/App.d.ts +46 -0
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/CollabButton.d.ts +2 -1
- package/types/components/DialogActionButton.d.ts +10 -0
- package/types/components/EncryptedIcon.d.ts +2 -0
- package/types/components/Footer.d.ts +2 -1
- package/types/components/HelpButton.d.ts +8 -0
- package/types/components/ImageExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/LibraryButton.d.ts +1 -0
- package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
- package/types/components/LibraryMenuItems.d.ts +5 -2
- package/types/components/MenuItem.d.ts +11 -0
- package/types/components/MenuUtils.d.ts +2 -0
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/Sidebar/Sidebar.d.ts +1 -1
- package/types/components/Sidebar/common.d.ts +1 -0
- package/types/components/TopErrorBoundary.d.ts +15 -0
- package/types/components/WelcomeScreen.d.ts +8 -0
- package/types/components/WelcomeScreenDecor.d.ts +6 -0
- package/types/components/icons.d.ts +83 -124
- package/types/constants.d.ts +1 -0
- package/types/element/Hyperlink.d.ts +5 -2
- package/types/element/linearElementEditor.d.ts +2 -1
- package/types/element/transformHandles.d.ts +1 -1
- package/types/excalidraw-app/CustomStats.d.ts +9 -0
- package/types/excalidraw-app/app_constants.d.ts +32 -0
- package/types/excalidraw-app/collab/Collab.d.ts +163 -0
- package/types/excalidraw-app/collab/Portal.d.ts +28 -0
- package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
- package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
- package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
- package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
- package/types/excalidraw-app/components/icons.d.ts +1 -0
- package/types/excalidraw-app/data/FileManager.d.ts +66 -0
- package/types/excalidraw-app/data/LocalData.d.ts +32 -0
- package/types/excalidraw-app/data/Locker.d.ts +8 -0
- package/types/excalidraw-app/data/firebase.d.ts +25 -0
- package/types/excalidraw-app/data/index.d.ts +186 -0
- package/types/excalidraw-app/data/localStorage.d.ts +112 -0
- package/types/excalidraw-app/data/tabSync.d.ts +9 -0
- package/types/excalidraw-app/index.d.ts +26 -0
- package/types/hooks/useOutsideClick.d.ts +2 -0
- package/types/keys.d.ts +10 -0
- package/types/packages/excalidraw/index.d.ts +3 -0
- package/types/packages/utils.d.ts +3 -1
- package/types/renderer/renderScene.d.ts +1 -1
- package/types/scene/types.d.ts +1 -0
- package/types/shapes.d.ts +27 -3
- package/types/types.d.ts +13 -1
|
@@ -11,6 +11,110 @@ 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
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
32
|
+
|
|
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
|
+
|
|
14
118
|
/**
|
|
15
119
|
* @license React
|
|
16
120
|
* react-jsx-runtime.production.min.js
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ export declare const actionAddToLibrary: {
|
|
|
9
9
|
toast: {
|
|
10
10
|
message: string;
|
|
11
11
|
};
|
|
12
|
+
showWelcomeScreen: boolean;
|
|
12
13
|
isLoading: boolean;
|
|
13
14
|
errorMessage: string | null;
|
|
14
15
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -65,6 +66,7 @@ export declare const actionAddToLibrary: {
|
|
|
65
66
|
openMenu: "canvas" | "shape" | null;
|
|
66
67
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
67
68
|
openSidebar: "library" | "customSidebar" | null;
|
|
69
|
+
openDialog: "imageExport" | "help" | null;
|
|
68
70
|
isSidebarDocked: boolean;
|
|
69
71
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
70
72
|
selectedElementIds: {
|
|
@@ -74,7 +76,6 @@ export declare const actionAddToLibrary: {
|
|
|
74
76
|
[id: string]: boolean;
|
|
75
77
|
};
|
|
76
78
|
shouldCacheIgnoreZoom: boolean;
|
|
77
|
-
showHelpDialog: boolean;
|
|
78
79
|
zenModeEnabled: boolean;
|
|
79
80
|
theme: string;
|
|
80
81
|
gridSize: number | null;
|
|
@@ -113,6 +114,7 @@ export declare const actionAddToLibrary: {
|
|
|
113
114
|
commitToHistory: false;
|
|
114
115
|
appState: {
|
|
115
116
|
errorMessage: any;
|
|
117
|
+
showWelcomeScreen: boolean;
|
|
116
118
|
isLoading: boolean;
|
|
117
119
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
118
120
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -168,6 +170,7 @@ export declare const actionAddToLibrary: {
|
|
|
168
170
|
openMenu: "canvas" | "shape" | null;
|
|
169
171
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
170
172
|
openSidebar: "library" | "customSidebar" | null;
|
|
173
|
+
openDialog: "imageExport" | "help" | null;
|
|
171
174
|
isSidebarDocked: boolean;
|
|
172
175
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
173
176
|
selectedElementIds: {
|
|
@@ -177,7 +180,6 @@ export declare const actionAddToLibrary: {
|
|
|
177
180
|
[id: string]: boolean;
|
|
178
181
|
};
|
|
179
182
|
shouldCacheIgnoreZoom: boolean;
|
|
180
|
-
showHelpDialog: boolean;
|
|
181
183
|
toast: {
|
|
182
184
|
message: string;
|
|
183
185
|
closable?: boolean | undefined;
|
|
@@ -221,6 +223,7 @@ export declare const actionAddToLibrary: {
|
|
|
221
223
|
commitToHistory: false;
|
|
222
224
|
appState: {
|
|
223
225
|
errorMessage: string;
|
|
226
|
+
showWelcomeScreen: boolean;
|
|
224
227
|
isLoading: boolean;
|
|
225
228
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
226
229
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -276,6 +279,7 @@ export declare const actionAddToLibrary: {
|
|
|
276
279
|
openMenu: "canvas" | "shape" | null;
|
|
277
280
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
278
281
|
openSidebar: "library" | "customSidebar" | null;
|
|
282
|
+
openDialog: "imageExport" | "help" | null;
|
|
279
283
|
isSidebarDocked: boolean;
|
|
280
284
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
281
285
|
selectedElementIds: {
|
|
@@ -285,7 +289,6 @@ export declare const actionAddToLibrary: {
|
|
|
285
289
|
[id: string]: boolean;
|
|
286
290
|
};
|
|
287
291
|
shouldCacheIgnoreZoom: boolean;
|
|
288
|
-
showHelpDialog: boolean;
|
|
289
292
|
toast: {
|
|
290
293
|
message: string;
|
|
291
294
|
closable?: boolean | undefined;
|
|
@@ -12,7 +12,9 @@ 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
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
16
|
+
isInHamburgerMenu: boolean;
|
|
17
|
+
}) => JSX.Element;
|
|
16
18
|
} & {
|
|
17
19
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
20
|
};
|
|
@@ -27,7 +29,9 @@ export declare const actionAlignBottom: {
|
|
|
27
29
|
commitToHistory: true;
|
|
28
30
|
};
|
|
29
31
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
30
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
32
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
33
|
+
isInHamburgerMenu: boolean;
|
|
34
|
+
}) => JSX.Element;
|
|
31
35
|
} & {
|
|
32
36
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
33
37
|
};
|
|
@@ -42,7 +46,9 @@ export declare const actionAlignLeft: {
|
|
|
42
46
|
commitToHistory: true;
|
|
43
47
|
};
|
|
44
48
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
45
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
49
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
50
|
+
isInHamburgerMenu: boolean;
|
|
51
|
+
}) => JSX.Element;
|
|
46
52
|
} & {
|
|
47
53
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
48
54
|
};
|
|
@@ -57,7 +63,9 @@ export declare const actionAlignRight: {
|
|
|
57
63
|
commitToHistory: true;
|
|
58
64
|
};
|
|
59
65
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
60
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
66
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
67
|
+
isInHamburgerMenu: boolean;
|
|
68
|
+
}) => JSX.Element;
|
|
61
69
|
} & {
|
|
62
70
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
63
71
|
};
|
|
@@ -71,7 +79,9 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
71
79
|
elements: ExcalidrawElement[];
|
|
72
80
|
commitToHistory: true;
|
|
73
81
|
};
|
|
74
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
82
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
83
|
+
isInHamburgerMenu: boolean;
|
|
84
|
+
}) => JSX.Element;
|
|
75
85
|
} & {
|
|
76
86
|
keyTest?: undefined;
|
|
77
87
|
};
|
|
@@ -85,7 +95,9 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
85
95
|
elements: ExcalidrawElement[];
|
|
86
96
|
commitToHistory: true;
|
|
87
97
|
};
|
|
88
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
98
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
99
|
+
isInHamburgerMenu: boolean;
|
|
100
|
+
}) => JSX.Element;
|
|
89
101
|
} & {
|
|
90
102
|
keyTest?: undefined;
|
|
91
103
|
};
|
|
@@ -26,6 +26,7 @@ export declare const actionBindText: {
|
|
|
26
26
|
selectedElementIds: {
|
|
27
27
|
[x: string]: true;
|
|
28
28
|
};
|
|
29
|
+
showWelcomeScreen: boolean;
|
|
29
30
|
isLoading: boolean;
|
|
30
31
|
errorMessage: string | null;
|
|
31
32
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -82,13 +83,13 @@ export declare const actionBindText: {
|
|
|
82
83
|
openMenu: "canvas" | "shape" | null;
|
|
83
84
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
84
85
|
openSidebar: "library" | "customSidebar" | null;
|
|
86
|
+
openDialog: "imageExport" | "help" | null;
|
|
85
87
|
isSidebarDocked: boolean;
|
|
86
88
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
87
89
|
previousSelectedElementIds: {
|
|
88
90
|
[id: string]: boolean;
|
|
89
91
|
};
|
|
90
92
|
shouldCacheIgnoreZoom: boolean;
|
|
91
|
-
showHelpDialog: boolean;
|
|
92
93
|
toast: {
|
|
93
94
|
message: string;
|
|
94
95
|
closable?: boolean | undefined;
|
|
@@ -8,7 +8,9 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
8
8
|
appState: any;
|
|
9
9
|
commitToHistory: boolean;
|
|
10
10
|
};
|
|
11
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
11
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
12
|
+
isInHamburgerMenu: boolean;
|
|
13
|
+
}) => JSX.Element;
|
|
12
14
|
} & {
|
|
13
15
|
keyTest?: undefined;
|
|
14
16
|
};
|
|
@@ -51,6 +53,8 @@ export declare const actionClearCanvas: {
|
|
|
51
53
|
elementBackground?: string[] | undefined;
|
|
52
54
|
elementStroke?: string[] | undefined;
|
|
53
55
|
};
|
|
56
|
+
trayModeEnabled: boolean;
|
|
57
|
+
name: string;
|
|
54
58
|
scrollX: number;
|
|
55
59
|
scrollY: number;
|
|
56
60
|
viewBackgroundColor: string;
|
|
@@ -58,6 +62,7 @@ export declare const actionClearCanvas: {
|
|
|
58
62
|
value: NormalizedZoomValue;
|
|
59
63
|
}>;
|
|
60
64
|
shouldCacheIgnoreZoom: boolean;
|
|
65
|
+
showWelcomeScreen: boolean;
|
|
61
66
|
isLoading: boolean;
|
|
62
67
|
errorMessage: string | null;
|
|
63
68
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -87,12 +92,12 @@ export declare const actionClearCanvas: {
|
|
|
87
92
|
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
88
93
|
cursorButton: "up" | "down";
|
|
89
94
|
scrolledOutside: boolean;
|
|
90
|
-
name: string;
|
|
91
95
|
isResizing: boolean;
|
|
92
96
|
isRotating: boolean;
|
|
93
97
|
openMenu: "canvas" | "shape" | null;
|
|
94
98
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
95
99
|
openSidebar: "library" | "customSidebar" | null;
|
|
100
|
+
openDialog: "imageExport" | "help" | null;
|
|
96
101
|
isSidebarDocked: boolean;
|
|
97
102
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
98
103
|
selectedElementIds: {
|
|
@@ -101,7 +106,6 @@ export declare const actionClearCanvas: {
|
|
|
101
106
|
previousSelectedElementIds: {
|
|
102
107
|
[id: string]: boolean;
|
|
103
108
|
};
|
|
104
|
-
showHelpDialog: boolean;
|
|
105
109
|
toast: {
|
|
106
110
|
message: string;
|
|
107
111
|
closable?: boolean | undefined;
|
|
@@ -119,12 +123,13 @@ export declare const actionClearCanvas: {
|
|
|
119
123
|
pendingImageElementId: string | null;
|
|
120
124
|
showHyperlinkPopup: false | "info" | "editor";
|
|
121
125
|
linkOpacity: number;
|
|
122
|
-
trayModeEnabled: boolean;
|
|
123
126
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
124
127
|
};
|
|
125
128
|
commitToHistory: true;
|
|
126
129
|
};
|
|
127
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
130
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
131
|
+
isInHamburgerMenu: boolean;
|
|
132
|
+
}) => JSX.Element;
|
|
128
133
|
} & {
|
|
129
134
|
keyTest?: undefined;
|
|
130
135
|
};
|
|
@@ -140,6 +145,7 @@ export declare const actionZoomIn: {
|
|
|
140
145
|
zoom: {
|
|
141
146
|
value: NormalizedZoomValue;
|
|
142
147
|
};
|
|
148
|
+
showWelcomeScreen: boolean;
|
|
143
149
|
isLoading: boolean;
|
|
144
150
|
errorMessage: string | null;
|
|
145
151
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -191,6 +197,7 @@ export declare const actionZoomIn: {
|
|
|
191
197
|
openMenu: "canvas" | "shape" | null;
|
|
192
198
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
193
199
|
openSidebar: "library" | "customSidebar" | null;
|
|
200
|
+
openDialog: "imageExport" | "help" | null;
|
|
194
201
|
isSidebarDocked: boolean;
|
|
195
202
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
196
203
|
selectedElementIds: {
|
|
@@ -200,7 +207,6 @@ export declare const actionZoomIn: {
|
|
|
200
207
|
[id: string]: boolean;
|
|
201
208
|
};
|
|
202
209
|
shouldCacheIgnoreZoom: boolean;
|
|
203
|
-
showHelpDialog: boolean;
|
|
204
210
|
toast: {
|
|
205
211
|
message: string;
|
|
206
212
|
closable?: boolean | undefined;
|
|
@@ -242,7 +248,9 @@ export declare const actionZoomIn: {
|
|
|
242
248
|
};
|
|
243
249
|
commitToHistory: false;
|
|
244
250
|
};
|
|
245
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
251
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
252
|
+
isInHamburgerMenu: boolean;
|
|
253
|
+
}) => JSX.Element;
|
|
246
254
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
247
255
|
} & {
|
|
248
256
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -259,6 +267,7 @@ export declare const actionZoomOut: {
|
|
|
259
267
|
zoom: {
|
|
260
268
|
value: NormalizedZoomValue;
|
|
261
269
|
};
|
|
270
|
+
showWelcomeScreen: boolean;
|
|
262
271
|
isLoading: boolean;
|
|
263
272
|
errorMessage: string | null;
|
|
264
273
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -310,6 +319,7 @@ export declare const actionZoomOut: {
|
|
|
310
319
|
openMenu: "canvas" | "shape" | null;
|
|
311
320
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
312
321
|
openSidebar: "library" | "customSidebar" | null;
|
|
322
|
+
openDialog: "imageExport" | "help" | null;
|
|
313
323
|
isSidebarDocked: boolean;
|
|
314
324
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
315
325
|
selectedElementIds: {
|
|
@@ -319,7 +329,6 @@ export declare const actionZoomOut: {
|
|
|
319
329
|
[id: string]: boolean;
|
|
320
330
|
};
|
|
321
331
|
shouldCacheIgnoreZoom: boolean;
|
|
322
|
-
showHelpDialog: boolean;
|
|
323
332
|
toast: {
|
|
324
333
|
message: string;
|
|
325
334
|
closable?: boolean | undefined;
|
|
@@ -361,7 +370,9 @@ export declare const actionZoomOut: {
|
|
|
361
370
|
};
|
|
362
371
|
commitToHistory: false;
|
|
363
372
|
};
|
|
364
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
373
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
374
|
+
isInHamburgerMenu: boolean;
|
|
375
|
+
}) => JSX.Element;
|
|
365
376
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
366
377
|
} & {
|
|
367
378
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -378,6 +389,7 @@ export declare const actionResetZoom: {
|
|
|
378
389
|
zoom: {
|
|
379
390
|
value: NormalizedZoomValue;
|
|
380
391
|
};
|
|
392
|
+
showWelcomeScreen: boolean;
|
|
381
393
|
isLoading: boolean;
|
|
382
394
|
errorMessage: string | null;
|
|
383
395
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -429,6 +441,7 @@ export declare const actionResetZoom: {
|
|
|
429
441
|
openMenu: "canvas" | "shape" | null;
|
|
430
442
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
431
443
|
openSidebar: "library" | "customSidebar" | null;
|
|
444
|
+
openDialog: "imageExport" | "help" | null;
|
|
432
445
|
isSidebarDocked: boolean;
|
|
433
446
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
434
447
|
selectedElementIds: {
|
|
@@ -438,7 +451,6 @@ export declare const actionResetZoom: {
|
|
|
438
451
|
[id: string]: boolean;
|
|
439
452
|
};
|
|
440
453
|
shouldCacheIgnoreZoom: boolean;
|
|
441
|
-
showHelpDialog: boolean;
|
|
442
454
|
toast: {
|
|
443
455
|
message: string;
|
|
444
456
|
closable?: boolean | undefined;
|
|
@@ -480,7 +492,9 @@ export declare const actionResetZoom: {
|
|
|
480
492
|
};
|
|
481
493
|
commitToHistory: false;
|
|
482
494
|
};
|
|
483
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps
|
|
495
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps & {
|
|
496
|
+
isInHamburgerMenu: boolean;
|
|
497
|
+
}) => JSX.Element;
|
|
484
498
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
485
499
|
} & {
|
|
486
500
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -492,6 +506,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
492
506
|
};
|
|
493
507
|
scrollX: number;
|
|
494
508
|
scrollY: number;
|
|
509
|
+
showWelcomeScreen: boolean;
|
|
495
510
|
isLoading: boolean;
|
|
496
511
|
errorMessage: string | null;
|
|
497
512
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -543,6 +558,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
543
558
|
openMenu: "canvas" | "shape" | null;
|
|
544
559
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
545
560
|
openSidebar: "library" | "customSidebar" | null;
|
|
561
|
+
openDialog: "imageExport" | "help" | null;
|
|
546
562
|
isSidebarDocked: boolean;
|
|
547
563
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
548
564
|
selectedElementIds: {
|
|
@@ -552,7 +568,6 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
552
568
|
[id: string]: boolean;
|
|
553
569
|
};
|
|
554
570
|
shouldCacheIgnoreZoom: boolean;
|
|
555
|
-
showHelpDialog: boolean;
|
|
556
571
|
toast: {
|
|
557
572
|
message: string;
|
|
558
573
|
closable?: boolean | undefined;
|
|
@@ -606,6 +621,7 @@ export declare const actionZoomToSelected: {
|
|
|
606
621
|
};
|
|
607
622
|
scrollX: number;
|
|
608
623
|
scrollY: number;
|
|
624
|
+
showWelcomeScreen: boolean;
|
|
609
625
|
isLoading: boolean;
|
|
610
626
|
errorMessage: string | null;
|
|
611
627
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -657,6 +673,7 @@ export declare const actionZoomToSelected: {
|
|
|
657
673
|
openMenu: "canvas" | "shape" | null;
|
|
658
674
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
659
675
|
openSidebar: "library" | "customSidebar" | null;
|
|
676
|
+
openDialog: "imageExport" | "help" | null;
|
|
660
677
|
isSidebarDocked: boolean;
|
|
661
678
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
662
679
|
selectedElementIds: {
|
|
@@ -666,7 +683,6 @@ export declare const actionZoomToSelected: {
|
|
|
666
683
|
[id: string]: boolean;
|
|
667
684
|
};
|
|
668
685
|
shouldCacheIgnoreZoom: boolean;
|
|
669
|
-
showHelpDialog: boolean;
|
|
670
686
|
toast: {
|
|
671
687
|
message: string;
|
|
672
688
|
closable?: boolean | undefined;
|
|
@@ -724,6 +740,7 @@ export declare const actionZoomToFit: {
|
|
|
724
740
|
};
|
|
725
741
|
scrollX: number;
|
|
726
742
|
scrollY: number;
|
|
743
|
+
showWelcomeScreen: boolean;
|
|
727
744
|
isLoading: boolean;
|
|
728
745
|
errorMessage: string | null;
|
|
729
746
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -775,6 +792,7 @@ export declare const actionZoomToFit: {
|
|
|
775
792
|
openMenu: "canvas" | "shape" | null;
|
|
776
793
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
777
794
|
openSidebar: "library" | "customSidebar" | null;
|
|
795
|
+
openDialog: "imageExport" | "help" | null;
|
|
778
796
|
isSidebarDocked: boolean;
|
|
779
797
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
780
798
|
selectedElementIds: {
|
|
@@ -784,7 +802,6 @@ export declare const actionZoomToFit: {
|
|
|
784
802
|
[id: string]: boolean;
|
|
785
803
|
};
|
|
786
804
|
shouldCacheIgnoreZoom: boolean;
|
|
787
|
-
showHelpDialog: boolean;
|
|
788
805
|
toast: {
|
|
789
806
|
message: string;
|
|
790
807
|
closable?: boolean | undefined;
|
|
@@ -838,6 +855,7 @@ export declare const actionToggleTheme: {
|
|
|
838
855
|
perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../types").AppClassProperties) => {
|
|
839
856
|
appState: {
|
|
840
857
|
theme: any;
|
|
858
|
+
showWelcomeScreen: boolean;
|
|
841
859
|
isLoading: boolean;
|
|
842
860
|
errorMessage: string | null;
|
|
843
861
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -894,6 +912,7 @@ export declare const actionToggleTheme: {
|
|
|
894
912
|
openMenu: "canvas" | "shape" | null;
|
|
895
913
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
896
914
|
openSidebar: "library" | "customSidebar" | null;
|
|
915
|
+
openDialog: "imageExport" | "help" | null;
|
|
897
916
|
isSidebarDocked: boolean;
|
|
898
917
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
899
918
|
selectedElementIds: {
|
|
@@ -903,7 +922,6 @@ export declare const actionToggleTheme: {
|
|
|
903
922
|
[id: string]: boolean;
|
|
904
923
|
};
|
|
905
924
|
shouldCacheIgnoreZoom: boolean;
|
|
906
|
-
showHelpDialog: boolean;
|
|
907
925
|
toast: {
|
|
908
926
|
message: string;
|
|
909
927
|
closable?: boolean | undefined;
|
|
@@ -944,7 +962,9 @@ export declare const actionToggleTheme: {
|
|
|
944
962
|
};
|
|
945
963
|
commitToHistory: false;
|
|
946
964
|
};
|
|
947
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
965
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
|
|
966
|
+
isInHamburgerMenu: boolean;
|
|
967
|
+
}) => JSX.Element;
|
|
948
968
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
949
969
|
} & {
|
|
950
970
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -969,6 +989,7 @@ export declare const actionErase: {
|
|
|
969
989
|
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
970
990
|
locked: boolean;
|
|
971
991
|
};
|
|
992
|
+
showWelcomeScreen: boolean;
|
|
972
993
|
isLoading: boolean;
|
|
973
994
|
errorMessage: string | null;
|
|
974
995
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1014,13 +1035,13 @@ export declare const actionErase: {
|
|
|
1014
1035
|
openMenu: "canvas" | "shape" | null;
|
|
1015
1036
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1016
1037
|
openSidebar: "library" | "customSidebar" | null;
|
|
1038
|
+
openDialog: "imageExport" | "help" | null;
|
|
1017
1039
|
isSidebarDocked: boolean;
|
|
1018
1040
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1019
1041
|
previousSelectedElementIds: {
|
|
1020
1042
|
[id: string]: boolean;
|
|
1021
1043
|
};
|
|
1022
1044
|
shouldCacheIgnoreZoom: boolean;
|
|
1023
|
-
showHelpDialog: boolean;
|
|
1024
1045
|
toast: {
|
|
1025
1046
|
message: string;
|
|
1026
1047
|
closable?: boolean | undefined;
|
|
@@ -1060,7 +1081,9 @@ export declare const actionErase: {
|
|
|
1060
1081
|
commitToHistory: true;
|
|
1061
1082
|
};
|
|
1062
1083
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1063
|
-
PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps
|
|
1084
|
+
PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps & {
|
|
1085
|
+
isInHamburgerMenu: boolean;
|
|
1086
|
+
}) => JSX.Element;
|
|
1064
1087
|
} & {
|
|
1065
1088
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1066
1089
|
};
|