@dwelle/excalidraw 0.4.0-e1bdbb6 → 0.4.0-e3bee83
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/CHANGELOG.md +189 -0
- package/README.md +418 -20
- package/dist/excalidraw.development.js +649 -341
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +21 -9
- package/types/actions/actionAlign.d.ts +6 -18
- package/types/actions/actionBoundText.d.ts +9 -5
- package/types/actions/actionCanvas.d.ts +76 -52
- package/types/actions/actionClipboard.d.ts +63 -16
- package/types/actions/actionDeleteSelected.d.ts +31 -12
- package/types/actions/actionDistribute.d.ts +2 -6
- package/types/actions/actionDuplicateSelection.d.ts +1 -3
- package/types/actions/actionExport.d.ts +79 -58
- package/types/actions/actionFinalize.d.ts +15 -9
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionGroup.d.ts +4 -8
- package/types/actions/actionLinearEditor.d.ts +8 -4
- package/types/actions/actionMenu.d.ts +24 -17
- package/types/actions/actionNavigate.d.ts +2 -3
- package/types/actions/actionProperties.d.ts +106 -80
- package/types/actions/actionStyles.d.ts +7 -3
- package/types/actions/actionToggleGridMode.d.ts +9 -3
- package/types/actions/actionToggleLock.d.ts +7 -3
- package/types/actions/actionToggleStats.d.ts +8 -3
- package/types/actions/actionToggleViewMode.d.ts +9 -3
- package/types/actions/actionToggleZenMode.d.ts +9 -3
- package/types/actions/actionZindex.d.ts +4 -12
- package/types/actions/manager.d.ts +2 -1
- package/types/actions/types.d.ts +6 -5
- package/types/appState.d.ts +9 -10
- package/types/clipboard.d.ts +6 -1
- package/types/components/App.d.ts +9 -51
- package/types/components/Button.d.ts +15 -0
- package/types/components/Card.d.ts +7 -0
- package/types/components/ContextMenu.d.ts +8 -21
- package/types/components/JSONExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +3 -5
- package/types/components/LibraryMenuHeaderContent.d.ts +23 -0
- package/types/components/MobileMenu.d.ts +5 -8
- 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 +47 -0
- package/types/components/main-menu/MainMenu.d.ts +55 -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 +11 -8
- package/types/data/index.d.ts +1 -1
- package/types/element/Hyperlink.d.ts +9 -7
- package/types/element/bounds.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +39 -8
- package/types/element/newElement.d.ts +2 -2
- package/types/element/resizeElements.d.ts +0 -1
- package/types/element/textElement.d.ts +24 -2
- package/types/element/textWysiwyg.d.ts +6 -1
- package/types/element/transformHandles.d.ts +2 -3
- package/types/element/typeChecks.d.ts +10 -1
- package/types/element/types.d.ts +11 -4
- package/types/keys.d.ts +2 -0
- package/types/math.d.ts +2 -1
- 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 +12 -1
- package/types/packages/utils.d.ts +22 -25
- package/types/renderer/renderElement.d.ts +4 -3
- package/types/renderer/renderScene.d.ts +1 -3
- 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/export.d.ts +143 -9
- package/types/scene/index.d.ts +1 -1
- package/types/scene/types.d.ts +9 -1
- package/types/types.d.ts +44 -24
- package/types/utils.d.ts +17 -0
- package/types/components/ActiveFile.d.ts +0 -7
- package/types/components/ClearCanvas.d.ts +0 -4
- package/types/components/CollabButton.d.ts +0 -6
- package/types/components/Footer.d.ts +0 -10
- package/types/components/MenuItem.d.ts +0 -11
- package/types/components/MenuUtils.d.ts +0 -1
- package/types/components/WelcomeScreen.d.ts +0 -10
- package/types/components/WelcomeScreenDecor.d.ts +0 -6
|
@@ -7,6 +7,11 @@ export declare const actionToggleCanvasMenu: {
|
|
|
7
7
|
perform: (_: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
8
8
|
appState: {
|
|
9
9
|
openMenu: "canvas" | null;
|
|
10
|
+
contextMenu: {
|
|
11
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
12
|
+
top: number;
|
|
13
|
+
left: number;
|
|
14
|
+
} | null;
|
|
10
15
|
showWelcomeScreen: boolean;
|
|
11
16
|
isLoading: boolean;
|
|
12
17
|
errorMessage: string | null;
|
|
@@ -46,10 +51,9 @@ export declare const actionToggleCanvasMenu: {
|
|
|
46
51
|
currentItemFontFamily: number;
|
|
47
52
|
currentItemFontSize: number;
|
|
48
53
|
currentItemTextAlign: string;
|
|
49
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
50
54
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
51
55
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
52
|
-
|
|
56
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
53
57
|
viewBackgroundColor: string;
|
|
54
58
|
scrollX: number;
|
|
55
59
|
scrollY: number;
|
|
@@ -63,7 +67,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
63
67
|
}>;
|
|
64
68
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
65
69
|
openSidebar: "library" | "customSidebar" | null;
|
|
66
|
-
openDialog: "imageExport" | "help" | null;
|
|
70
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
67
71
|
isSidebarDocked: boolean;
|
|
68
72
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
69
73
|
selectedElementIds: {
|
|
@@ -107,9 +111,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
107
111
|
};
|
|
108
112
|
commitToHistory: false;
|
|
109
113
|
};
|
|
110
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
111
|
-
isInHamburgerMenu: boolean;
|
|
112
|
-
}) => JSX.Element;
|
|
114
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
113
115
|
} & {
|
|
114
116
|
keyTest?: undefined;
|
|
115
117
|
};
|
|
@@ -121,6 +123,11 @@ export declare const actionToggleEditMenu: {
|
|
|
121
123
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
122
124
|
appState: {
|
|
123
125
|
openMenu: "shape" | null;
|
|
126
|
+
contextMenu: {
|
|
127
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
128
|
+
top: number;
|
|
129
|
+
left: number;
|
|
130
|
+
} | null;
|
|
124
131
|
showWelcomeScreen: boolean;
|
|
125
132
|
isLoading: boolean;
|
|
126
133
|
errorMessage: string | null;
|
|
@@ -160,10 +167,9 @@ export declare const actionToggleEditMenu: {
|
|
|
160
167
|
currentItemFontFamily: number;
|
|
161
168
|
currentItemFontSize: number;
|
|
162
169
|
currentItemTextAlign: string;
|
|
163
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
164
170
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
165
171
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
166
|
-
|
|
172
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
167
173
|
viewBackgroundColor: string;
|
|
168
174
|
scrollX: number;
|
|
169
175
|
scrollY: number;
|
|
@@ -177,7 +183,7 @@ export declare const actionToggleEditMenu: {
|
|
|
177
183
|
}>;
|
|
178
184
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
179
185
|
openSidebar: "library" | "customSidebar" | null;
|
|
180
|
-
openDialog: "imageExport" | "help" | null;
|
|
186
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
181
187
|
isSidebarDocked: boolean;
|
|
182
188
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
183
189
|
selectedElementIds: {
|
|
@@ -221,14 +227,13 @@ export declare const actionToggleEditMenu: {
|
|
|
221
227
|
};
|
|
222
228
|
commitToHistory: false;
|
|
223
229
|
};
|
|
224
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
225
|
-
isInHamburgerMenu: boolean;
|
|
226
|
-
}) => JSX.Element;
|
|
230
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
227
231
|
} & {
|
|
228
232
|
keyTest?: undefined;
|
|
229
233
|
};
|
|
230
234
|
export declare const actionFullScreen: {
|
|
231
235
|
name: "toggleFullScreen";
|
|
236
|
+
viewMode: true;
|
|
232
237
|
trackEvent: {
|
|
233
238
|
category: "canvas";
|
|
234
239
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
@@ -242,6 +247,7 @@ export declare const actionFullScreen: {
|
|
|
242
247
|
};
|
|
243
248
|
export declare const actionShortcuts: {
|
|
244
249
|
name: "toggleShortcuts";
|
|
250
|
+
viewMode: true;
|
|
245
251
|
trackEvent: {
|
|
246
252
|
category: "menu";
|
|
247
253
|
action: string;
|
|
@@ -249,6 +255,11 @@ export declare const actionShortcuts: {
|
|
|
249
255
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
|
|
250
256
|
appState: {
|
|
251
257
|
openDialog: "help" | null;
|
|
258
|
+
contextMenu: {
|
|
259
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
260
|
+
top: number;
|
|
261
|
+
left: number;
|
|
262
|
+
} | null;
|
|
252
263
|
showWelcomeScreen: boolean;
|
|
253
264
|
isLoading: boolean;
|
|
254
265
|
errorMessage: string | null;
|
|
@@ -288,10 +299,9 @@ export declare const actionShortcuts: {
|
|
|
288
299
|
currentItemFontFamily: number;
|
|
289
300
|
currentItemFontSize: number;
|
|
290
301
|
currentItemTextAlign: string;
|
|
291
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
292
302
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
293
303
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
294
|
-
|
|
304
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
295
305
|
viewBackgroundColor: string;
|
|
296
306
|
scrollX: number;
|
|
297
307
|
scrollY: number;
|
|
@@ -349,9 +359,6 @@ export declare const actionShortcuts: {
|
|
|
349
359
|
};
|
|
350
360
|
commitToHistory: false;
|
|
351
361
|
};
|
|
352
|
-
PanelComponent: ({ updateData, isInHamburgerMenu }: import("./types").PanelComponentProps & {
|
|
353
|
-
isInHamburgerMenu: boolean;
|
|
354
|
-
}) => JSX.Element;
|
|
355
362
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
356
363
|
} & {
|
|
357
364
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const actionGoToCollaborator: {
|
|
2
2
|
name: "goToCollaborator";
|
|
3
|
+
viewMode: true;
|
|
3
4
|
trackEvent: {
|
|
4
5
|
category: "collab";
|
|
5
6
|
};
|
|
@@ -7,9 +8,7 @@ export declare const actionGoToCollaborator: {
|
|
|
7
8
|
appState: Readonly<import("../types").AppState>;
|
|
8
9
|
commitToHistory: false;
|
|
9
10
|
};
|
|
10
|
-
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps
|
|
11
|
-
isInHamburgerMenu: boolean;
|
|
12
|
-
}) => JSX.Element;
|
|
11
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
13
12
|
} & {
|
|
14
13
|
keyTest?: undefined;
|
|
15
14
|
};
|