@dwelle/excalidraw 0.4.0-e3bee83 → 0.4.0-e587816
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 +525 -0
- package/README.md +18 -1820
- package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js → vendor-d415b28e9024dee4bb1b.js} +2 -2
- package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
- package/dist/excalidraw.development.js +3071 -1566
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +20 -0
- package/main.js +1 -8
- package/package.json +9 -4
- package/types/actions/actionAddToLibrary.d.ts +103 -55
- package/types/actions/actionAlign.d.ts +33 -28
- package/types/actions/actionBoundText.d.ts +175 -22
- package/types/actions/actionCanvas.d.ts +680 -170
- package/types/actions/actionClipboard.d.ts +174 -100
- package/types/actions/actionDeleteSelected.d.ts +102 -60
- package/types/actions/actionDistribute.d.ts +11 -12
- package/types/actions/actionDuplicateSelection.d.ts +3 -4
- package/types/actions/actionElementLock.d.ts +271 -0
- package/types/actions/actionExport.d.ts +363 -221
- package/types/actions/actionFinalize.d.ts +70 -42
- package/types/actions/actionFlip.d.ts +8 -11
- package/types/actions/actionFrame.d.ts +423 -0
- package/types/actions/actionGroup.d.ts +250 -13
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +37 -21
- package/types/actions/actionMenu.d.ts +108 -62
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +465 -256
- package/types/actions/actionSelectAll.d.ts +123 -4
- package/types/actions/actionStyles.d.ts +39 -24
- package/types/actions/actionToggleGridMode.d.ts +37 -22
- package/types/actions/{actionToggleLock.d.ts → actionToggleObjectsSnapMode.d.ts} +49 -32
- package/types/actions/actionToggleStats.d.ts +37 -22
- package/types/actions/actionToggleViewMode.d.ts +37 -22
- package/types/actions/actionToggleZenMode.d.ts +37 -22
- package/types/actions/actionZindex.d.ts +12 -12
- package/types/actions/index.d.ts +2 -1
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +2 -1
- package/types/actions/types.d.ts +11 -9
- package/types/appState.d.ts +18 -18
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +5 -6
- package/types/clipboard.d.ts +8 -7
- package/types/colors.d.ts +60 -5
- package/types/components/Actions.d.ts +7 -12
- package/types/components/ActiveConfirmDialog.d.ts +4 -0
- package/types/components/App.d.ts +93 -35
- package/types/components/Avatar.d.ts +1 -2
- package/types/components/BraveMeasureTextError.d.ts +2 -0
- package/types/components/Button.d.ts +3 -2
- package/types/components/ButtonIconSelect.d.ts +11 -3
- package/types/components/Card.d.ts +0 -1
- package/types/components/ColorPicker/ColorInput.d.ts +9 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +19 -0
- package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
- package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
- package/types/components/ColorPicker/Picker.d.ts +18 -0
- package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
- package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
- package/types/components/ColorPicker/ShadeList.d.ts +8 -0
- package/types/components/ColorPicker/TopPicks.d.ts +9 -0
- package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +20 -0
- package/types/components/ContextMenu.d.ts +3 -3
- package/types/components/DefaultSidebar.d.ts +29 -0
- package/types/components/Dialog.d.ts +3 -4
- package/types/components/ErrorDialog.d.ts +3 -2
- package/types/components/ExcalidrawLogo.d.ts +15 -0
- package/types/components/EyeDropper.d.ts +28 -0
- package/types/components/FilledButton.d.ts +17 -0
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/HelpButton.d.ts +1 -2
- package/types/components/HintViewer.d.ts +4 -5
- package/types/components/HomeButton.d.ts +1 -1
- package/types/components/ImageExportDialog.d.ts +8 -13
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +5 -5
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +9 -15
- package/types/components/LibraryMenu.d.ts +13 -14
- package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
- package/types/components/LibraryMenuControlButtons.d.ts +9 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +10 -28
- package/types/components/LibraryMenuItems.d.ts +6 -7
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +6 -3
- package/types/components/LoadingMessage.d.ts +0 -1
- package/types/components/LockButton.d.ts +1 -2
- package/types/components/MobileMenu.d.ts +8 -11
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
- package/types/components/PasteChartDialog.d.ts +4 -5
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +2 -1
- package/types/components/PublishLibrary.d.ts +2 -2
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Section.d.ts +1 -1
- package/types/components/Sidebar/Sidebar.d.ts +66 -63
- package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
- package/types/components/Sidebar/SidebarTab.d.ts +8 -0
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -0
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -0
- package/types/components/Sidebar/SidebarTabs.d.ts +6 -0
- package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
- package/types/components/Sidebar/common.d.ts +24 -7
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +4 -3
- package/types/components/Stats.d.ts +3 -3
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +6 -5
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/Trans.d.ts +9 -0
- package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
- package/types/components/canvases/StaticCanvas.d.ts +18 -0
- package/types/components/canvases/index.d.ts +3 -0
- package/types/components/dropdownMenu/DropdownMenu.d.ts +15 -9
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +7 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +4 -4
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +4 -2
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -2
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/footer/Footer.d.ts +4 -5
- package/types/components/hoc/withInternalFallback.d.ts +4 -0
- package/types/components/icons.d.ts +16 -1
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
- package/types/components/main-menu/MainMenu.d.ts +22 -13
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
- package/types/components/welcome-screen/WelcomeScreen.d.ts +2 -3
- package/types/constants.d.ts +94 -10
- package/types/context/tunnels.d.ts +19 -0
- package/types/context/ui-appState.d.ts +4 -0
- package/types/cursor.d.ts +5 -0
- package/types/data/blob.d.ts +5 -3
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +2 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/restore.d.ts +10 -4
- package/types/data/transform.d.ts +73 -0
- package/types/data/types.d.ts +3 -5
- package/types/data/url.d.ts +7 -0
- package/types/element/Hyperlink.d.ts +48 -29
- package/types/element/binding.d.ts +4 -3
- package/types/element/bounds.d.ts +40 -10
- package/types/element/collision.d.ts +7 -7
- package/types/element/dragElements.d.ts +12 -2
- package/types/element/embeddable.d.ts +153 -0
- package/types/element/image.d.ts +11 -1
- package/types/element/index.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +43 -27
- package/types/element/mutateElement.d.ts +3 -2
- package/types/element/newElement.d.ts +48 -15
- package/types/element/resizeElements.d.ts +3 -2
- package/types/element/resizeTest.d.ts +2 -1
- package/types/element/showSelectedShapeActions.d.ts +2 -2
- package/types/element/sizeHelpers.d.ts +8 -1
- package/types/element/sortElements.d.ts +2 -0
- package/types/element/textElement.d.ts +43 -17
- package/types/element/textWysiwyg.d.ts +1 -1
- package/types/element/transformHandles.d.ts +16 -8
- package/types/element/typeChecks.d.ts +5 -2
- package/types/element/types.d.ts +59 -35
- package/types/emitter.d.ts +1 -2
- package/types/errors.d.ts +1 -1
- package/types/frame.d.ts +46 -0
- package/types/ga.d.ts +5 -5
- package/types/groups.d.ts +15 -11
- package/types/history.d.ts +3 -3
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -2
- package/types/hooks/useScrollPosition.d.ts +1 -0
- package/types/hooks/useStable.d.ts +1 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/i18n.d.ts +11 -2
- package/types/jotai.d.ts +20 -108
- package/types/keys.d.ts +5 -4
- package/types/math.d.ts +5 -0
- package/types/packages/bbox.d.ts +11 -0
- package/types/packages/excalidraw/example/App.d.ts +7 -1
- package/types/packages/excalidraw/example/initialData.d.ts +182 -64
- package/types/packages/excalidraw/index.d.ts +11 -4
- package/types/packages/excalidraw/main.d.ts +3 -1
- package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
- package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
- package/types/packages/utils.d.ts +11 -2
- package/types/packages/withinBounds.d.ts +19 -0
- package/types/renderer/renderElement.d.ts +12 -22
- package/types/renderer/renderScene.d.ts +19 -27
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Renderer.d.ts +25 -0
- package/types/scene/Scene.d.ts +27 -5
- package/types/scene/Shape.d.ts +12 -0
- package/types/scene/ShapeCache.d.ts +20 -0
- package/types/scene/comparisons.d.ts +0 -1
- package/types/scene/export.d.ts +50 -11
- package/types/scene/index.d.ts +1 -1
- package/types/scene/scroll.d.ts +1 -1
- package/types/scene/scrollbars.d.ts +2 -6
- package/types/scene/selection.d.ts +27 -6
- package/types/scene/types.d.ts +70 -34
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +200 -84
- package/types/utility-types.d.ts +24 -0
- package/types/utils.d.ts +73 -29
- package/types/zindex.d.ts +4 -4
- package/types/components/ColorPicker.d.ts +0 -14
- package/types/components/LibraryButton.d.ts +0 -8
- package/types/components/SingleLibraryItem.d.ts +0 -10
- package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
- /package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js.LICENSE.txt → vendor-d415b28e9024dee4bb1b.js.LICENSE.txt} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.d.ts → vendor-d415b28e9024dee4bb1b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionToggleCanvasMenu: {
|
|
3
2
|
name: "toggleCanvasMenu";
|
|
4
3
|
trackEvent: {
|
|
@@ -14,7 +13,11 @@ export declare const actionToggleCanvasMenu: {
|
|
|
14
13
|
} | null;
|
|
15
14
|
showWelcomeScreen: boolean;
|
|
16
15
|
isLoading: boolean;
|
|
17
|
-
errorMessage:
|
|
16
|
+
errorMessage: import("react").ReactNode;
|
|
17
|
+
activeEmbeddable: {
|
|
18
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
19
|
+
state: "active" | "hover";
|
|
20
|
+
} | null;
|
|
18
21
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
19
22
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
20
23
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -22,19 +25,21 @@ export declare const actionToggleCanvasMenu: {
|
|
|
22
25
|
isBindingEnabled: boolean;
|
|
23
26
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
24
27
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
29
|
+
frameRendering: {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
name: boolean;
|
|
32
|
+
outline: boolean;
|
|
33
|
+
clip: boolean;
|
|
34
|
+
};
|
|
35
|
+
editingFrame: string | null;
|
|
36
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
25
37
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
26
38
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
27
39
|
activeTool: {
|
|
28
|
-
|
|
29
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
30
|
-
locked: boolean;
|
|
31
|
-
customType: null;
|
|
32
|
-
} | {
|
|
33
|
-
type: "custom";
|
|
34
|
-
customType: string;
|
|
35
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
40
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
36
41
|
locked: boolean;
|
|
37
|
-
};
|
|
42
|
+
} & import("../types").ActiveTool;
|
|
38
43
|
penMode: boolean;
|
|
39
44
|
penDetected: boolean;
|
|
40
45
|
exportBackground: boolean;
|
|
@@ -65,17 +70,21 @@ export declare const actionToggleCanvasMenu: {
|
|
|
65
70
|
zoom: Readonly<{
|
|
66
71
|
value: import("../types").NormalizedZoomValue;
|
|
67
72
|
}>;
|
|
68
|
-
openPopup: "
|
|
69
|
-
openSidebar:
|
|
73
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
74
|
+
openSidebar: {
|
|
75
|
+
name: string;
|
|
76
|
+
tab?: string | undefined;
|
|
77
|
+
} | null;
|
|
70
78
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
71
|
-
|
|
79
|
+
defaultSidebarDockedPreference: boolean;
|
|
72
80
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
73
|
-
selectedElementIds: {
|
|
74
|
-
[id: string]:
|
|
75
|
-
}
|
|
81
|
+
selectedElementIds: Readonly<{
|
|
82
|
+
[id: string]: true;
|
|
83
|
+
}>;
|
|
76
84
|
previousSelectedElementIds: {
|
|
77
|
-
[id: string]:
|
|
85
|
+
[id: string]: true;
|
|
78
86
|
};
|
|
87
|
+
selectedElementsAreBeingDragged: boolean;
|
|
79
88
|
shouldCacheIgnoreZoom: boolean;
|
|
80
89
|
toast: {
|
|
81
90
|
message: string;
|
|
@@ -83,7 +92,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
83
92
|
duration?: number | undefined;
|
|
84
93
|
} | null;
|
|
85
94
|
zenModeEnabled: boolean;
|
|
86
|
-
theme:
|
|
95
|
+
theme: import("../element/types").Theme;
|
|
87
96
|
gridSize: number | null;
|
|
88
97
|
viewModeEnabled: boolean;
|
|
89
98
|
selectedGroupIds: {
|
|
@@ -106,8 +115,14 @@ export declare const actionToggleCanvasMenu: {
|
|
|
106
115
|
data: import("../charts").Spreadsheet;
|
|
107
116
|
};
|
|
108
117
|
pendingImageElementId: string | null;
|
|
109
|
-
showHyperlinkPopup: false | "
|
|
118
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
110
119
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
120
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
121
|
+
originSnapOffset: {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
} | null;
|
|
125
|
+
objectsSnapModeEnabled: boolean;
|
|
111
126
|
};
|
|
112
127
|
commitToHistory: false;
|
|
113
128
|
};
|
|
@@ -130,7 +145,11 @@ export declare const actionToggleEditMenu: {
|
|
|
130
145
|
} | null;
|
|
131
146
|
showWelcomeScreen: boolean;
|
|
132
147
|
isLoading: boolean;
|
|
133
|
-
errorMessage:
|
|
148
|
+
errorMessage: import("react").ReactNode;
|
|
149
|
+
activeEmbeddable: {
|
|
150
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
151
|
+
state: "active" | "hover";
|
|
152
|
+
} | null;
|
|
134
153
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
135
154
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
136
155
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -138,19 +157,21 @@ export declare const actionToggleEditMenu: {
|
|
|
138
157
|
isBindingEnabled: boolean;
|
|
139
158
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
140
159
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
160
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
161
|
+
frameRendering: {
|
|
162
|
+
enabled: boolean;
|
|
163
|
+
name: boolean;
|
|
164
|
+
outline: boolean;
|
|
165
|
+
clip: boolean;
|
|
166
|
+
};
|
|
167
|
+
editingFrame: string | null;
|
|
168
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
141
169
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
142
170
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
143
171
|
activeTool: {
|
|
144
|
-
|
|
145
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
172
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
146
173
|
locked: boolean;
|
|
147
|
-
|
|
148
|
-
} | {
|
|
149
|
-
type: "custom";
|
|
150
|
-
customType: string;
|
|
151
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
152
|
-
locked: boolean;
|
|
153
|
-
};
|
|
174
|
+
} & import("../types").ActiveTool;
|
|
154
175
|
penMode: boolean;
|
|
155
176
|
penDetected: boolean;
|
|
156
177
|
exportBackground: boolean;
|
|
@@ -181,17 +202,21 @@ export declare const actionToggleEditMenu: {
|
|
|
181
202
|
zoom: Readonly<{
|
|
182
203
|
value: import("../types").NormalizedZoomValue;
|
|
183
204
|
}>;
|
|
184
|
-
openPopup: "
|
|
185
|
-
openSidebar:
|
|
205
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
206
|
+
openSidebar: {
|
|
207
|
+
name: string;
|
|
208
|
+
tab?: string | undefined;
|
|
209
|
+
} | null;
|
|
186
210
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
187
|
-
|
|
211
|
+
defaultSidebarDockedPreference: boolean;
|
|
188
212
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
189
|
-
selectedElementIds: {
|
|
190
|
-
[id: string]:
|
|
191
|
-
}
|
|
213
|
+
selectedElementIds: Readonly<{
|
|
214
|
+
[id: string]: true;
|
|
215
|
+
}>;
|
|
192
216
|
previousSelectedElementIds: {
|
|
193
|
-
[id: string]:
|
|
217
|
+
[id: string]: true;
|
|
194
218
|
};
|
|
219
|
+
selectedElementsAreBeingDragged: boolean;
|
|
195
220
|
shouldCacheIgnoreZoom: boolean;
|
|
196
221
|
toast: {
|
|
197
222
|
message: string;
|
|
@@ -199,7 +224,7 @@ export declare const actionToggleEditMenu: {
|
|
|
199
224
|
duration?: number | undefined;
|
|
200
225
|
} | null;
|
|
201
226
|
zenModeEnabled: boolean;
|
|
202
|
-
theme:
|
|
227
|
+
theme: import("../element/types").Theme;
|
|
203
228
|
gridSize: number | null;
|
|
204
229
|
viewModeEnabled: boolean;
|
|
205
230
|
selectedGroupIds: {
|
|
@@ -222,8 +247,14 @@ export declare const actionToggleEditMenu: {
|
|
|
222
247
|
data: import("../charts").Spreadsheet;
|
|
223
248
|
};
|
|
224
249
|
pendingImageElementId: string | null;
|
|
225
|
-
showHyperlinkPopup: false | "
|
|
250
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
226
251
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
252
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
253
|
+
originSnapOffset: {
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
} | null;
|
|
257
|
+
objectsSnapModeEnabled: boolean;
|
|
227
258
|
};
|
|
228
259
|
commitToHistory: false;
|
|
229
260
|
};
|
|
@@ -241,9 +272,8 @@ export declare const actionFullScreen: {
|
|
|
241
272
|
perform: () => {
|
|
242
273
|
commitToHistory: false;
|
|
243
274
|
};
|
|
244
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
245
275
|
} & {
|
|
246
|
-
keyTest?:
|
|
276
|
+
keyTest?: undefined;
|
|
247
277
|
};
|
|
248
278
|
export declare const actionShortcuts: {
|
|
249
279
|
name: "toggleShortcuts";
|
|
@@ -262,7 +292,11 @@ export declare const actionShortcuts: {
|
|
|
262
292
|
} | null;
|
|
263
293
|
showWelcomeScreen: boolean;
|
|
264
294
|
isLoading: boolean;
|
|
265
|
-
errorMessage:
|
|
295
|
+
errorMessage: import("react").ReactNode;
|
|
296
|
+
activeEmbeddable: {
|
|
297
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
298
|
+
state: "active" | "hover";
|
|
299
|
+
} | null;
|
|
266
300
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
267
301
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
268
302
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -270,19 +304,21 @@ export declare const actionShortcuts: {
|
|
|
270
304
|
isBindingEnabled: boolean;
|
|
271
305
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
272
306
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
307
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
308
|
+
frameRendering: {
|
|
309
|
+
enabled: boolean;
|
|
310
|
+
name: boolean;
|
|
311
|
+
outline: boolean;
|
|
312
|
+
clip: boolean;
|
|
313
|
+
};
|
|
314
|
+
editingFrame: string | null;
|
|
315
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
273
316
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
274
317
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
275
318
|
activeTool: {
|
|
276
|
-
|
|
277
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
319
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
278
320
|
locked: boolean;
|
|
279
|
-
|
|
280
|
-
} | {
|
|
281
|
-
type: "custom";
|
|
282
|
-
customType: string;
|
|
283
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
284
|
-
locked: boolean;
|
|
285
|
-
};
|
|
321
|
+
} & import("../types").ActiveTool;
|
|
286
322
|
penMode: boolean;
|
|
287
323
|
penDetected: boolean;
|
|
288
324
|
exportBackground: boolean;
|
|
@@ -314,16 +350,20 @@ export declare const actionShortcuts: {
|
|
|
314
350
|
value: import("../types").NormalizedZoomValue;
|
|
315
351
|
}>;
|
|
316
352
|
openMenu: "canvas" | "shape" | null;
|
|
317
|
-
openPopup: "
|
|
318
|
-
openSidebar:
|
|
319
|
-
|
|
353
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
354
|
+
openSidebar: {
|
|
355
|
+
name: string;
|
|
356
|
+
tab?: string | undefined;
|
|
357
|
+
} | null;
|
|
358
|
+
defaultSidebarDockedPreference: boolean;
|
|
320
359
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
321
|
-
selectedElementIds: {
|
|
322
|
-
[id: string]:
|
|
323
|
-
}
|
|
360
|
+
selectedElementIds: Readonly<{
|
|
361
|
+
[id: string]: true;
|
|
362
|
+
}>;
|
|
324
363
|
previousSelectedElementIds: {
|
|
325
|
-
[id: string]:
|
|
364
|
+
[id: string]: true;
|
|
326
365
|
};
|
|
366
|
+
selectedElementsAreBeingDragged: boolean;
|
|
327
367
|
shouldCacheIgnoreZoom: boolean;
|
|
328
368
|
toast: {
|
|
329
369
|
message: string;
|
|
@@ -331,7 +371,7 @@ export declare const actionShortcuts: {
|
|
|
331
371
|
duration?: number | undefined;
|
|
332
372
|
} | null;
|
|
333
373
|
zenModeEnabled: boolean;
|
|
334
|
-
theme:
|
|
374
|
+
theme: import("../element/types").Theme;
|
|
335
375
|
gridSize: number | null;
|
|
336
376
|
viewModeEnabled: boolean;
|
|
337
377
|
selectedGroupIds: {
|
|
@@ -354,12 +394,18 @@ export declare const actionShortcuts: {
|
|
|
354
394
|
data: import("../charts").Spreadsheet;
|
|
355
395
|
};
|
|
356
396
|
pendingImageElementId: string | null;
|
|
357
|
-
showHyperlinkPopup: false | "
|
|
397
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
358
398
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
399
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
400
|
+
originSnapOffset: {
|
|
401
|
+
x: number;
|
|
402
|
+
y: number;
|
|
403
|
+
} | null;
|
|
404
|
+
objectsSnapModeEnabled: boolean;
|
|
359
405
|
};
|
|
360
406
|
commitToHistory: false;
|
|
361
407
|
};
|
|
362
|
-
keyTest: (event:
|
|
408
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
363
409
|
} & {
|
|
364
|
-
keyTest?: ((event:
|
|
410
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
365
411
|
};
|
|
@@ -8,7 +8,7 @@ export declare const actionGoToCollaborator: {
|
|
|
8
8
|
appState: Readonly<import("../types").AppState>;
|
|
9
9
|
commitToHistory: false;
|
|
10
10
|
};
|
|
11
|
-
PanelComponent: ({
|
|
11
|
+
PanelComponent: ({ updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
12
12
|
} & {
|
|
13
13
|
keyTest?: undefined;
|
|
14
14
|
};
|