@zsviczian/excalidraw 0.13.0-obsidian → 0.13.0-obsidian-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/excalidraw.development.js +1149 -166
- 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 +9 -9
- package/types/actions/actionAlign.d.ts +18 -6
- package/types/actions/actionBoundText.d.ts +3 -3
- package/types/actions/actionCanvas.d.ts +62 -43
- package/types/actions/actionClipboard.d.ts +24 -15
- package/types/actions/actionDeleteSelected.d.ts +21 -10
- package/types/actions/actionDistribute.d.ts +6 -2
- package/types/actions/actionDuplicateSelection.d.ts +3 -1
- package/types/actions/actionExport.d.ts +61 -44
- package/types/actions/actionFinalize.d.ts +9 -7
- package/types/actions/actionGroup.d.ts +6 -2
- package/types/actions/actionLinearEditor.d.ts +3 -3
- package/types/actions/actionMenu.d.ts +20 -12
- package/types/actions/actionNavigate.d.ts +4 -1
- package/types/actions/actionProperties.d.ts +80 -54
- package/types/actions/actionStyles.d.ts +3 -3
- package/types/actions/actionToggleGridMode.d.ts +4 -3
- package/types/actions/actionToggleLock.d.ts +3 -3
- package/types/actions/actionToggleStats.d.ts +4 -3
- package/types/actions/actionToggleViewMode.d.ts +4 -3
- package/types/actions/actionToggleZenMode.d.ts +4 -3
- 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 +7 -2
- package/types/appState.d.ts +11 -11
- package/types/bug-issue-template.d.ts +2 -0
- package/types/clients.d.ts +1 -1
- package/types/clipboard.d.ts +6 -1
- package/types/components/Actions.d.ts +1 -0
- package/types/components/App.d.ts +47 -1
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/CollabButton.d.ts +2 -1
- package/types/components/ContextMenu.d.ts +9 -10
- 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 +8 -5
- package/types/element/Hyperlink.d.ts +6 -4
- package/types/element/bounds.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +34 -6
- package/types/element/newElement.d.ts +2 -2
- package/types/element/resizeElements.d.ts +0 -1
- package/types/element/textElement.d.ts +17 -2
- package/types/element/transformHandles.d.ts +3 -4
- package/types/element/typeChecks.d.ts +10 -1
- package/types/element/types.d.ts +11 -4
- 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 +185 -0
- package/types/excalidraw-app/data/localStorage.d.ts +111 -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/math.d.ts +2 -1
- package/types/packages/excalidraw/index.d.ts +3 -0
- package/types/packages/utils.d.ts +3 -1
- package/types/renderer/renderElement.d.ts +4 -3
- package/types/renderer/renderScene.d.ts +1 -1
- package/types/scene/Fonts.d.ts +21 -0
- package/types/scene/Scene.d.ts +15 -0
- package/types/scene/comparisons.d.ts +2 -3
- package/types/scene/index.d.ts +1 -1
- package/types/scene/types.d.ts +1 -0
- package/types/shapes.d.ts +27 -3
- package/types/types.d.ts +15 -4
|
@@ -12,6 +12,7 @@ export declare const actionDeleteSelected: {
|
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: {
|
|
14
14
|
editingLinearElement: null;
|
|
15
|
+
showWelcomeScreen: boolean;
|
|
15
16
|
isLoading: boolean;
|
|
16
17
|
errorMessage: string | null;
|
|
17
18
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -49,10 +50,9 @@ export declare const actionDeleteSelected: {
|
|
|
49
50
|
currentItemFontFamily: number;
|
|
50
51
|
currentItemFontSize: number;
|
|
51
52
|
currentItemTextAlign: string;
|
|
52
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
53
53
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
54
54
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
55
|
-
|
|
55
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
56
56
|
viewBackgroundColor: string;
|
|
57
57
|
scrollX: number;
|
|
58
58
|
scrollY: number;
|
|
@@ -67,6 +67,7 @@ export declare const actionDeleteSelected: {
|
|
|
67
67
|
openMenu: "canvas" | "shape" | null;
|
|
68
68
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
69
69
|
openSidebar: "library" | "customSidebar" | null;
|
|
70
|
+
openDialog: "imageExport" | "help" | null;
|
|
70
71
|
isSidebarDocked: boolean;
|
|
71
72
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
72
73
|
selectedElementIds: {
|
|
@@ -76,7 +77,6 @@ export declare const actionDeleteSelected: {
|
|
|
76
77
|
[id: string]: boolean;
|
|
77
78
|
};
|
|
78
79
|
shouldCacheIgnoreZoom: boolean;
|
|
79
|
-
showHelpDialog: boolean;
|
|
80
80
|
toast: {
|
|
81
81
|
message: string;
|
|
82
82
|
closable?: boolean | undefined;
|
|
@@ -130,6 +130,15 @@ export declare const actionDeleteSelected: {
|
|
|
130
130
|
pointerDownState: Readonly<{
|
|
131
131
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
132
132
|
lastClickedPoint: number;
|
|
133
|
+
origin: Readonly<{
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
}> | null;
|
|
137
|
+
segmentMidpoint: {
|
|
138
|
+
value: readonly [number, number] | null;
|
|
139
|
+
index: number | null;
|
|
140
|
+
added: boolean;
|
|
141
|
+
};
|
|
133
142
|
}>;
|
|
134
143
|
isDragging: boolean;
|
|
135
144
|
lastUncommittedPoint: readonly [number, number] | null;
|
|
@@ -140,6 +149,7 @@ export declare const actionDeleteSelected: {
|
|
|
140
149
|
hoverPointIndex: number;
|
|
141
150
|
segmentMidPointHoveredCoords: readonly [number, number] | null;
|
|
142
151
|
};
|
|
152
|
+
showWelcomeScreen: boolean;
|
|
143
153
|
isLoading: boolean;
|
|
144
154
|
errorMessage: string | null;
|
|
145
155
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -177,10 +187,9 @@ export declare const actionDeleteSelected: {
|
|
|
177
187
|
currentItemFontFamily: number;
|
|
178
188
|
currentItemFontSize: number;
|
|
179
189
|
currentItemTextAlign: string;
|
|
180
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
181
190
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
182
191
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
183
|
-
|
|
192
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
184
193
|
viewBackgroundColor: string;
|
|
185
194
|
scrollX: number;
|
|
186
195
|
scrollY: number;
|
|
@@ -195,6 +204,7 @@ export declare const actionDeleteSelected: {
|
|
|
195
204
|
openMenu: "canvas" | "shape" | null;
|
|
196
205
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
197
206
|
openSidebar: "library" | "customSidebar" | null;
|
|
207
|
+
openDialog: "imageExport" | "help" | null;
|
|
198
208
|
isSidebarDocked: boolean;
|
|
199
209
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
200
210
|
selectedElementIds: {
|
|
@@ -204,7 +214,6 @@ export declare const actionDeleteSelected: {
|
|
|
204
214
|
[id: string]: boolean;
|
|
205
215
|
};
|
|
206
216
|
shouldCacheIgnoreZoom: boolean;
|
|
207
|
-
showHelpDialog: boolean;
|
|
208
217
|
toast: {
|
|
209
218
|
message: string;
|
|
210
219
|
closable?: boolean | undefined;
|
|
@@ -261,6 +270,7 @@ export declare const actionDeleteSelected: {
|
|
|
261
270
|
};
|
|
262
271
|
multiElement: null;
|
|
263
272
|
selectedElementIds: {};
|
|
273
|
+
showWelcomeScreen: boolean;
|
|
264
274
|
isLoading: boolean;
|
|
265
275
|
errorMessage: string | null;
|
|
266
276
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -287,10 +297,9 @@ export declare const actionDeleteSelected: {
|
|
|
287
297
|
currentItemFontFamily: number;
|
|
288
298
|
currentItemFontSize: number;
|
|
289
299
|
currentItemTextAlign: string;
|
|
290
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
291
300
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
292
301
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
293
|
-
|
|
302
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
294
303
|
viewBackgroundColor: string;
|
|
295
304
|
scrollX: number;
|
|
296
305
|
scrollY: number;
|
|
@@ -305,13 +314,13 @@ export declare const actionDeleteSelected: {
|
|
|
305
314
|
openMenu: "canvas" | "shape" | null;
|
|
306
315
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
307
316
|
openSidebar: "library" | "customSidebar" | null;
|
|
317
|
+
openDialog: "imageExport" | "help" | null;
|
|
308
318
|
isSidebarDocked: boolean;
|
|
309
319
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
310
320
|
previousSelectedElementIds: {
|
|
311
321
|
[id: string]: boolean;
|
|
312
322
|
};
|
|
313
323
|
shouldCacheIgnoreZoom: boolean;
|
|
314
|
-
showHelpDialog: boolean;
|
|
315
324
|
toast: {
|
|
316
325
|
message: string;
|
|
317
326
|
closable?: boolean | undefined;
|
|
@@ -355,7 +364,9 @@ export declare const actionDeleteSelected: {
|
|
|
355
364
|
};
|
|
356
365
|
contextItemLabel: string;
|
|
357
366
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
358
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
367
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
368
|
+
isInHamburgerMenu: boolean;
|
|
369
|
+
}) => JSX.Element;
|
|
359
370
|
} & {
|
|
360
371
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
361
372
|
};
|
|
@@ -12,7 +12,9 @@ export declare const distributeHorizontally: {
|
|
|
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 distributeVertically: {
|
|
|
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
|
};
|
|
@@ -16,7 +16,9 @@ export declare const actionDuplicateSelection: {
|
|
|
16
16
|
};
|
|
17
17
|
contextItemLabel: string;
|
|
18
18
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
19
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
20
|
+
isInHamburgerMenu: boolean;
|
|
21
|
+
}) => JSX.Element;
|
|
20
22
|
} & {
|
|
21
23
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
22
24
|
};
|
|
@@ -6,6 +6,7 @@ export declare const actionChangeProjectName: {
|
|
|
6
6
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
7
7
|
appState: {
|
|
8
8
|
name: any;
|
|
9
|
+
showWelcomeScreen: boolean;
|
|
9
10
|
isLoading: boolean;
|
|
10
11
|
errorMessage: string | null;
|
|
11
12
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -44,10 +45,9 @@ export declare const actionChangeProjectName: {
|
|
|
44
45
|
currentItemFontFamily: number;
|
|
45
46
|
currentItemFontSize: number;
|
|
46
47
|
currentItemTextAlign: string;
|
|
47
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
48
48
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
49
49
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
50
|
-
|
|
50
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
51
51
|
viewBackgroundColor: string;
|
|
52
52
|
scrollX: number;
|
|
53
53
|
scrollY: number;
|
|
@@ -61,6 +61,7 @@ export declare const actionChangeProjectName: {
|
|
|
61
61
|
openMenu: "canvas" | "shape" | null;
|
|
62
62
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
63
63
|
openSidebar: "library" | "customSidebar" | null;
|
|
64
|
+
openDialog: "imageExport" | "help" | null;
|
|
64
65
|
isSidebarDocked: boolean;
|
|
65
66
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
66
67
|
selectedElementIds: {
|
|
@@ -70,7 +71,6 @@ export declare const actionChangeProjectName: {
|
|
|
70
71
|
[id: string]: boolean;
|
|
71
72
|
};
|
|
72
73
|
shouldCacheIgnoreZoom: boolean;
|
|
73
|
-
showHelpDialog: boolean;
|
|
74
74
|
toast: {
|
|
75
75
|
message: string;
|
|
76
76
|
closable?: boolean | undefined;
|
|
@@ -112,7 +112,9 @@ export declare const actionChangeProjectName: {
|
|
|
112
112
|
};
|
|
113
113
|
commitToHistory: false;
|
|
114
114
|
};
|
|
115
|
-
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps
|
|
115
|
+
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps & {
|
|
116
|
+
isInHamburgerMenu: boolean;
|
|
117
|
+
}) => JSX.Element;
|
|
116
118
|
} & {
|
|
117
119
|
keyTest?: undefined;
|
|
118
120
|
};
|
|
@@ -125,6 +127,7 @@ export declare const actionChangeExportScale: {
|
|
|
125
127
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
126
128
|
appState: {
|
|
127
129
|
exportScale: any;
|
|
130
|
+
showWelcomeScreen: boolean;
|
|
128
131
|
isLoading: boolean;
|
|
129
132
|
errorMessage: string | null;
|
|
130
133
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -162,10 +165,9 @@ export declare const actionChangeExportScale: {
|
|
|
162
165
|
currentItemFontFamily: number;
|
|
163
166
|
currentItemFontSize: number;
|
|
164
167
|
currentItemTextAlign: string;
|
|
165
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
166
168
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
167
169
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
168
|
-
|
|
170
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
169
171
|
viewBackgroundColor: string;
|
|
170
172
|
scrollX: number;
|
|
171
173
|
scrollY: number;
|
|
@@ -180,6 +182,7 @@ export declare const actionChangeExportScale: {
|
|
|
180
182
|
openMenu: "canvas" | "shape" | null;
|
|
181
183
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
182
184
|
openSidebar: "library" | "customSidebar" | null;
|
|
185
|
+
openDialog: "imageExport" | "help" | null;
|
|
183
186
|
isSidebarDocked: boolean;
|
|
184
187
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
185
188
|
selectedElementIds: {
|
|
@@ -189,7 +192,6 @@ export declare const actionChangeExportScale: {
|
|
|
189
192
|
[id: string]: boolean;
|
|
190
193
|
};
|
|
191
194
|
shouldCacheIgnoreZoom: boolean;
|
|
192
|
-
showHelpDialog: boolean;
|
|
193
195
|
toast: {
|
|
194
196
|
message: string;
|
|
195
197
|
closable?: boolean | undefined;
|
|
@@ -231,7 +233,9 @@ export declare const actionChangeExportScale: {
|
|
|
231
233
|
};
|
|
232
234
|
commitToHistory: false;
|
|
233
235
|
};
|
|
234
|
-
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps
|
|
236
|
+
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
237
|
+
isInHamburgerMenu: boolean;
|
|
238
|
+
}) => JSX.Element;
|
|
235
239
|
} & {
|
|
236
240
|
keyTest?: undefined;
|
|
237
241
|
};
|
|
@@ -244,6 +248,7 @@ export declare const actionChangeExportBackground: {
|
|
|
244
248
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
245
249
|
appState: {
|
|
246
250
|
exportBackground: any;
|
|
251
|
+
showWelcomeScreen: boolean;
|
|
247
252
|
isLoading: boolean;
|
|
248
253
|
errorMessage: string | null;
|
|
249
254
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -281,10 +286,9 @@ export declare const actionChangeExportBackground: {
|
|
|
281
286
|
currentItemFontFamily: number;
|
|
282
287
|
currentItemFontSize: number;
|
|
283
288
|
currentItemTextAlign: string;
|
|
284
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
285
289
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
286
290
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
287
|
-
|
|
291
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
288
292
|
viewBackgroundColor: string;
|
|
289
293
|
scrollX: number;
|
|
290
294
|
scrollY: number;
|
|
@@ -299,6 +303,7 @@ export declare const actionChangeExportBackground: {
|
|
|
299
303
|
openMenu: "canvas" | "shape" | null;
|
|
300
304
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
301
305
|
openSidebar: "library" | "customSidebar" | null;
|
|
306
|
+
openDialog: "imageExport" | "help" | null;
|
|
302
307
|
isSidebarDocked: boolean;
|
|
303
308
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
304
309
|
selectedElementIds: {
|
|
@@ -308,7 +313,6 @@ export declare const actionChangeExportBackground: {
|
|
|
308
313
|
[id: string]: boolean;
|
|
309
314
|
};
|
|
310
315
|
shouldCacheIgnoreZoom: boolean;
|
|
311
|
-
showHelpDialog: boolean;
|
|
312
316
|
toast: {
|
|
313
317
|
message: string;
|
|
314
318
|
closable?: boolean | undefined;
|
|
@@ -350,7 +354,9 @@ export declare const actionChangeExportBackground: {
|
|
|
350
354
|
};
|
|
351
355
|
commitToHistory: false;
|
|
352
356
|
};
|
|
353
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
357
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
|
|
358
|
+
isInHamburgerMenu: boolean;
|
|
359
|
+
}) => JSX.Element;
|
|
354
360
|
} & {
|
|
355
361
|
keyTest?: undefined;
|
|
356
362
|
};
|
|
@@ -363,6 +369,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
363
369
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
364
370
|
appState: {
|
|
365
371
|
exportEmbedScene: any;
|
|
372
|
+
showWelcomeScreen: boolean;
|
|
366
373
|
isLoading: boolean;
|
|
367
374
|
errorMessage: string | null;
|
|
368
375
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -400,10 +407,9 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
400
407
|
currentItemFontFamily: number;
|
|
401
408
|
currentItemFontSize: number;
|
|
402
409
|
currentItemTextAlign: string;
|
|
403
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
404
410
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
405
411
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
406
|
-
|
|
412
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
407
413
|
viewBackgroundColor: string;
|
|
408
414
|
scrollX: number;
|
|
409
415
|
scrollY: number;
|
|
@@ -418,6 +424,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
418
424
|
openMenu: "canvas" | "shape" | null;
|
|
419
425
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
420
426
|
openSidebar: "library" | "customSidebar" | null;
|
|
427
|
+
openDialog: "imageExport" | "help" | null;
|
|
421
428
|
isSidebarDocked: boolean;
|
|
422
429
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
423
430
|
selectedElementIds: {
|
|
@@ -427,7 +434,6 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
427
434
|
[id: string]: boolean;
|
|
428
435
|
};
|
|
429
436
|
shouldCacheIgnoreZoom: boolean;
|
|
430
|
-
showHelpDialog: boolean;
|
|
431
437
|
toast: {
|
|
432
438
|
message: string;
|
|
433
439
|
closable?: boolean | undefined;
|
|
@@ -469,7 +475,9 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
469
475
|
};
|
|
470
476
|
commitToHistory: false;
|
|
471
477
|
};
|
|
472
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
478
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
|
|
479
|
+
isInHamburgerMenu: boolean;
|
|
480
|
+
}) => JSX.Element;
|
|
473
481
|
} & {
|
|
474
482
|
keyTest?: undefined;
|
|
475
483
|
};
|
|
@@ -485,6 +493,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
485
493
|
toast: {
|
|
486
494
|
message: string;
|
|
487
495
|
} | null;
|
|
496
|
+
showWelcomeScreen: boolean;
|
|
488
497
|
isLoading: boolean;
|
|
489
498
|
errorMessage: string | null;
|
|
490
499
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -523,10 +532,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
523
532
|
currentItemFontFamily: number;
|
|
524
533
|
currentItemFontSize: number;
|
|
525
534
|
currentItemTextAlign: string;
|
|
526
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
527
535
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
528
536
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
529
|
-
|
|
537
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
530
538
|
viewBackgroundColor: string;
|
|
531
539
|
scrollX: number;
|
|
532
540
|
scrollY: number;
|
|
@@ -541,6 +549,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
541
549
|
openMenu: "canvas" | "shape" | null;
|
|
542
550
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
543
551
|
openSidebar: "library" | "customSidebar" | null;
|
|
552
|
+
openDialog: "imageExport" | "help" | null;
|
|
544
553
|
isSidebarDocked: boolean;
|
|
545
554
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
546
555
|
selectedElementIds: {
|
|
@@ -550,7 +559,6 @@ export declare const actionSaveToActiveFile: {
|
|
|
550
559
|
[id: string]: boolean;
|
|
551
560
|
};
|
|
552
561
|
shouldCacheIgnoreZoom: boolean;
|
|
553
|
-
showHelpDialog: boolean;
|
|
554
562
|
zenModeEnabled: boolean;
|
|
555
563
|
theme: string;
|
|
556
564
|
gridSize: number | null;
|
|
@@ -589,12 +597,15 @@ export declare const actionSaveToActiveFile: {
|
|
|
589
597
|
appState?: undefined;
|
|
590
598
|
}>;
|
|
591
599
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
592
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps
|
|
600
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps & {
|
|
601
|
+
isInHamburgerMenu: boolean;
|
|
602
|
+
}) => JSX.Element;
|
|
593
603
|
} & {
|
|
594
604
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
595
605
|
};
|
|
596
606
|
export declare const actionSaveFileToDisk: {
|
|
597
607
|
name: "saveFileToDisk";
|
|
608
|
+
viewMode: true;
|
|
598
609
|
trackEvent: {
|
|
599
610
|
category: "export";
|
|
600
611
|
};
|
|
@@ -602,6 +613,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
602
613
|
commitToHistory: false;
|
|
603
614
|
appState: {
|
|
604
615
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
616
|
+
showWelcomeScreen: boolean;
|
|
605
617
|
isLoading: boolean;
|
|
606
618
|
errorMessage: string | null;
|
|
607
619
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -640,10 +652,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
640
652
|
currentItemFontFamily: number;
|
|
641
653
|
currentItemFontSize: number;
|
|
642
654
|
currentItemTextAlign: string;
|
|
643
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
644
655
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
645
656
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
646
|
-
|
|
657
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
647
658
|
viewBackgroundColor: string;
|
|
648
659
|
scrollX: number;
|
|
649
660
|
scrollY: number;
|
|
@@ -658,6 +669,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
658
669
|
openMenu: "canvas" | "shape" | null;
|
|
659
670
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
660
671
|
openSidebar: "library" | "customSidebar" | null;
|
|
672
|
+
openDialog: "imageExport" | "help" | null;
|
|
661
673
|
isSidebarDocked: boolean;
|
|
662
674
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
663
675
|
selectedElementIds: {
|
|
@@ -667,7 +679,6 @@ export declare const actionSaveFileToDisk: {
|
|
|
667
679
|
[id: string]: boolean;
|
|
668
680
|
};
|
|
669
681
|
shouldCacheIgnoreZoom: boolean;
|
|
670
|
-
showHelpDialog: boolean;
|
|
671
682
|
toast: {
|
|
672
683
|
message: string;
|
|
673
684
|
closable?: boolean | undefined;
|
|
@@ -711,7 +722,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
711
722
|
appState?: undefined;
|
|
712
723
|
}>;
|
|
713
724
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
714
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
725
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
726
|
+
isInHamburgerMenu: boolean;
|
|
727
|
+
}) => JSX.Element;
|
|
715
728
|
} & {
|
|
716
729
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
717
730
|
};
|
|
@@ -723,6 +736,8 @@ export declare const actionLoadScene: {
|
|
|
723
736
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
724
737
|
elements: import("../element/types").ExcalidrawElement[];
|
|
725
738
|
appState: {
|
|
739
|
+
theme: string;
|
|
740
|
+
name: string;
|
|
726
741
|
activeTool: {
|
|
727
742
|
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
728
743
|
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
@@ -734,14 +749,7 @@ export declare const actionLoadScene: {
|
|
|
734
749
|
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
735
750
|
locked: boolean;
|
|
736
751
|
};
|
|
737
|
-
|
|
738
|
-
scrollY: number;
|
|
739
|
-
viewBackgroundColor: string;
|
|
740
|
-
zoom: Readonly<{
|
|
741
|
-
value: import("../types").NormalizedZoomValue;
|
|
742
|
-
}>;
|
|
743
|
-
shouldCacheIgnoreZoom: boolean;
|
|
744
|
-
theme: string;
|
|
752
|
+
showWelcomeScreen: boolean;
|
|
745
753
|
isLoading: boolean;
|
|
746
754
|
errorMessage: string | null;
|
|
747
755
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -769,18 +777,23 @@ export declare const actionLoadScene: {
|
|
|
769
777
|
currentItemFontFamily: number;
|
|
770
778
|
currentItemFontSize: number;
|
|
771
779
|
currentItemTextAlign: string;
|
|
772
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
773
780
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
774
781
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
775
|
-
|
|
782
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
783
|
+
viewBackgroundColor: string;
|
|
784
|
+
scrollX: number;
|
|
785
|
+
scrollY: number;
|
|
776
786
|
cursorButton: "up" | "down";
|
|
777
787
|
scrolledOutside: boolean;
|
|
778
|
-
name: string;
|
|
779
788
|
isResizing: boolean;
|
|
780
789
|
isRotating: boolean;
|
|
790
|
+
zoom: Readonly<{
|
|
791
|
+
value: import("../types").NormalizedZoomValue;
|
|
792
|
+
}>;
|
|
781
793
|
openMenu: "canvas" | "shape" | null;
|
|
782
794
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
783
795
|
openSidebar: "library" | "customSidebar" | null;
|
|
796
|
+
openDialog: "imageExport" | "help" | null;
|
|
784
797
|
isSidebarDocked: boolean;
|
|
785
798
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
786
799
|
selectedElementIds: {
|
|
@@ -789,7 +802,7 @@ export declare const actionLoadScene: {
|
|
|
789
802
|
previousSelectedElementIds: {
|
|
790
803
|
[id: string]: boolean;
|
|
791
804
|
};
|
|
792
|
-
|
|
805
|
+
shouldCacheIgnoreZoom: boolean;
|
|
793
806
|
toast: {
|
|
794
807
|
message: string;
|
|
795
808
|
closable?: boolean | undefined;
|
|
@@ -830,6 +843,7 @@ export declare const actionLoadScene: {
|
|
|
830
843
|
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
831
844
|
appState: {
|
|
832
845
|
errorMessage: any;
|
|
846
|
+
showWelcomeScreen: boolean;
|
|
833
847
|
isLoading: boolean;
|
|
834
848
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
835
849
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -867,10 +881,9 @@ export declare const actionLoadScene: {
|
|
|
867
881
|
currentItemFontFamily: number;
|
|
868
882
|
currentItemFontSize: number;
|
|
869
883
|
currentItemTextAlign: string;
|
|
870
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
871
884
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
872
885
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
873
|
-
|
|
886
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
874
887
|
viewBackgroundColor: string;
|
|
875
888
|
scrollX: number;
|
|
876
889
|
scrollY: number;
|
|
@@ -885,6 +898,7 @@ export declare const actionLoadScene: {
|
|
|
885
898
|
openMenu: "canvas" | "shape" | null;
|
|
886
899
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
887
900
|
openSidebar: "library" | "customSidebar" | null;
|
|
901
|
+
openDialog: "imageExport" | "help" | null;
|
|
888
902
|
isSidebarDocked: boolean;
|
|
889
903
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
890
904
|
selectedElementIds: {
|
|
@@ -894,7 +908,6 @@ export declare const actionLoadScene: {
|
|
|
894
908
|
[id: string]: boolean;
|
|
895
909
|
};
|
|
896
910
|
shouldCacheIgnoreZoom: boolean;
|
|
897
|
-
showHelpDialog: boolean;
|
|
898
911
|
toast: {
|
|
899
912
|
message: string;
|
|
900
913
|
closable?: boolean | undefined;
|
|
@@ -938,7 +951,9 @@ export declare const actionLoadScene: {
|
|
|
938
951
|
commitToHistory: false;
|
|
939
952
|
}>;
|
|
940
953
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
941
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
954
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
955
|
+
isInHamburgerMenu: boolean;
|
|
956
|
+
}) => JSX.Element;
|
|
942
957
|
} & {
|
|
943
958
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
944
959
|
};
|
|
@@ -951,6 +966,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
951
966
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
952
967
|
appState: {
|
|
953
968
|
exportWithDarkMode: any;
|
|
969
|
+
showWelcomeScreen: boolean;
|
|
954
970
|
isLoading: boolean;
|
|
955
971
|
errorMessage: string | null;
|
|
956
972
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -988,10 +1004,9 @@ export declare const actionExportWithDarkMode: {
|
|
|
988
1004
|
currentItemFontFamily: number;
|
|
989
1005
|
currentItemFontSize: number;
|
|
990
1006
|
currentItemTextAlign: string;
|
|
991
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
992
1007
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
993
1008
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
994
|
-
|
|
1009
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
995
1010
|
viewBackgroundColor: string;
|
|
996
1011
|
scrollX: number;
|
|
997
1012
|
scrollY: number;
|
|
@@ -1006,6 +1021,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1006
1021
|
openMenu: "canvas" | "shape" | null;
|
|
1007
1022
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1008
1023
|
openSidebar: "library" | "customSidebar" | null;
|
|
1024
|
+
openDialog: "imageExport" | "help" | null;
|
|
1009
1025
|
isSidebarDocked: boolean;
|
|
1010
1026
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1011
1027
|
selectedElementIds: {
|
|
@@ -1015,7 +1031,6 @@ export declare const actionExportWithDarkMode: {
|
|
|
1015
1031
|
[id: string]: boolean;
|
|
1016
1032
|
};
|
|
1017
1033
|
shouldCacheIgnoreZoom: boolean;
|
|
1018
|
-
showHelpDialog: boolean;
|
|
1019
1034
|
toast: {
|
|
1020
1035
|
message: string;
|
|
1021
1036
|
closable?: boolean | undefined;
|
|
@@ -1057,7 +1072,9 @@ export declare const actionExportWithDarkMode: {
|
|
|
1057
1072
|
};
|
|
1058
1073
|
commitToHistory: false;
|
|
1059
1074
|
};
|
|
1060
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
1075
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
|
|
1076
|
+
isInHamburgerMenu: boolean;
|
|
1077
|
+
}) => JSX.Element;
|
|
1061
1078
|
} & {
|
|
1062
1079
|
keyTest?: undefined;
|
|
1063
1080
|
};
|