@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,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
3
2
|
import { AppState } from "../types";
|
|
4
3
|
export declare const actionFinalize: {
|
|
5
4
|
name: "finalize";
|
|
6
5
|
trackEvent: false;
|
|
7
|
-
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>, _: any, {
|
|
6
|
+
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>, _: any, { interactiveCanvas, focusContainer, scene }: import("../types").AppClassProperties) => {
|
|
8
7
|
elements: import("../element/types").ExcalidrawElement[] | undefined;
|
|
9
8
|
appState: {
|
|
10
9
|
cursorButton: "up";
|
|
@@ -16,7 +15,11 @@ export declare const actionFinalize: {
|
|
|
16
15
|
} | null;
|
|
17
16
|
showWelcomeScreen: boolean;
|
|
18
17
|
isLoading: boolean;
|
|
19
|
-
errorMessage:
|
|
18
|
+
errorMessage: import("react").ReactNode;
|
|
19
|
+
activeEmbeddable: {
|
|
20
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
21
|
+
state: "active" | "hover";
|
|
22
|
+
} | null;
|
|
20
23
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
24
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
25
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -24,18 +27,20 @@ export declare const actionFinalize: {
|
|
|
24
27
|
isBindingEnabled: boolean;
|
|
25
28
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
26
29
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
30
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
31
|
+
frameRendering: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
name: boolean;
|
|
34
|
+
outline: boolean;
|
|
35
|
+
clip: boolean;
|
|
36
|
+
};
|
|
37
|
+
editingFrame: string | null;
|
|
38
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
27
39
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
40
|
activeTool: {
|
|
29
|
-
|
|
30
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
41
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
31
42
|
locked: boolean;
|
|
32
|
-
|
|
33
|
-
} | {
|
|
34
|
-
type: "custom";
|
|
35
|
-
customType: string;
|
|
36
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
37
|
-
locked: boolean;
|
|
38
|
-
};
|
|
43
|
+
} & import("../types").ActiveTool;
|
|
39
44
|
penMode: boolean;
|
|
40
45
|
penDetected: boolean;
|
|
41
46
|
exportBackground: boolean;
|
|
@@ -66,17 +71,21 @@ export declare const actionFinalize: {
|
|
|
66
71
|
value: import("../types").NormalizedZoomValue;
|
|
67
72
|
}>;
|
|
68
73
|
openMenu: "canvas" | "shape" | null;
|
|
69
|
-
openPopup: "
|
|
70
|
-
openSidebar:
|
|
74
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
75
|
+
openSidebar: {
|
|
76
|
+
name: string;
|
|
77
|
+
tab?: string | undefined;
|
|
78
|
+
} | null;
|
|
71
79
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
72
|
-
|
|
80
|
+
defaultSidebarDockedPreference: boolean;
|
|
73
81
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
74
|
-
selectedElementIds: {
|
|
75
|
-
[id: string]:
|
|
76
|
-
}
|
|
82
|
+
selectedElementIds: Readonly<{
|
|
83
|
+
[id: string]: true;
|
|
84
|
+
}>;
|
|
77
85
|
previousSelectedElementIds: {
|
|
78
|
-
[id: string]:
|
|
86
|
+
[id: string]: true;
|
|
79
87
|
};
|
|
88
|
+
selectedElementsAreBeingDragged: boolean;
|
|
80
89
|
shouldCacheIgnoreZoom: boolean;
|
|
81
90
|
toast: {
|
|
82
91
|
message: string;
|
|
@@ -84,7 +93,7 @@ export declare const actionFinalize: {
|
|
|
84
93
|
duration?: number | undefined;
|
|
85
94
|
} | null;
|
|
86
95
|
zenModeEnabled: boolean;
|
|
87
|
-
theme:
|
|
96
|
+
theme: import("../element/types").Theme;
|
|
88
97
|
gridSize: number | null;
|
|
89
98
|
viewModeEnabled: boolean;
|
|
90
99
|
selectedGroupIds: {
|
|
@@ -107,8 +116,14 @@ export declare const actionFinalize: {
|
|
|
107
116
|
data: import("../charts").Spreadsheet;
|
|
108
117
|
};
|
|
109
118
|
pendingImageElementId: string | null;
|
|
110
|
-
showHyperlinkPopup: false | "
|
|
119
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
111
120
|
selectedLinearElement: LinearElementEditor | null;
|
|
121
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
122
|
+
originSnapOffset: {
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
} | null;
|
|
126
|
+
objectsSnapModeEnabled: boolean;
|
|
112
127
|
};
|
|
113
128
|
commitToHistory: true;
|
|
114
129
|
} | {
|
|
@@ -116,24 +131,18 @@ export declare const actionFinalize: {
|
|
|
116
131
|
appState: {
|
|
117
132
|
cursorButton: "up";
|
|
118
133
|
activeTool: {
|
|
119
|
-
|
|
120
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
134
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
121
135
|
locked: boolean;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
type: "custom";
|
|
125
|
-
customType: string;
|
|
126
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
127
|
-
locked: boolean;
|
|
128
|
-
};
|
|
136
|
+
} & import("../types").ActiveTool;
|
|
137
|
+
activeEmbeddable: null;
|
|
129
138
|
draggingElement: null;
|
|
130
139
|
multiElement: null;
|
|
131
140
|
editingElement: null;
|
|
132
141
|
startBoundElement: null;
|
|
133
142
|
suggestedBindings: never[];
|
|
134
|
-
selectedElementIds: {
|
|
135
|
-
[id: string]:
|
|
136
|
-
}
|
|
143
|
+
selectedElementIds: Readonly<{
|
|
144
|
+
[id: string]: true;
|
|
145
|
+
}>;
|
|
137
146
|
selectedLinearElement: LinearElementEditor | null;
|
|
138
147
|
pendingImageElementId: null;
|
|
139
148
|
contextMenu: {
|
|
@@ -143,10 +152,19 @@ export declare const actionFinalize: {
|
|
|
143
152
|
} | null;
|
|
144
153
|
showWelcomeScreen: boolean;
|
|
145
154
|
isLoading: boolean;
|
|
146
|
-
errorMessage:
|
|
155
|
+
errorMessage: import("react").ReactNode;
|
|
147
156
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
148
157
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
149
158
|
isBindingEnabled: boolean;
|
|
159
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
160
|
+
frameRendering: {
|
|
161
|
+
enabled: boolean;
|
|
162
|
+
name: boolean;
|
|
163
|
+
outline: boolean;
|
|
164
|
+
clip: boolean;
|
|
165
|
+
};
|
|
166
|
+
editingFrame: string | null;
|
|
167
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
150
168
|
editingLinearElement: LinearElementEditor | null;
|
|
151
169
|
penMode: boolean;
|
|
152
170
|
penDetected: boolean;
|
|
@@ -178,14 +196,18 @@ export declare const actionFinalize: {
|
|
|
178
196
|
value: import("../types").NormalizedZoomValue;
|
|
179
197
|
}>;
|
|
180
198
|
openMenu: "canvas" | "shape" | null;
|
|
181
|
-
openPopup: "
|
|
182
|
-
openSidebar:
|
|
199
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
200
|
+
openSidebar: {
|
|
201
|
+
name: string;
|
|
202
|
+
tab?: string | undefined;
|
|
203
|
+
} | null;
|
|
183
204
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
184
|
-
|
|
205
|
+
defaultSidebarDockedPreference: boolean;
|
|
185
206
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
186
207
|
previousSelectedElementIds: {
|
|
187
|
-
[id: string]:
|
|
208
|
+
[id: string]: true;
|
|
188
209
|
};
|
|
210
|
+
selectedElementsAreBeingDragged: boolean;
|
|
189
211
|
shouldCacheIgnoreZoom: boolean;
|
|
190
212
|
toast: {
|
|
191
213
|
message: string;
|
|
@@ -193,7 +215,7 @@ export declare const actionFinalize: {
|
|
|
193
215
|
duration?: number | undefined;
|
|
194
216
|
} | null;
|
|
195
217
|
zenModeEnabled: boolean;
|
|
196
|
-
theme:
|
|
218
|
+
theme: import("../element/types").Theme;
|
|
197
219
|
gridSize: number | null;
|
|
198
220
|
viewModeEnabled: boolean;
|
|
199
221
|
selectedGroupIds: {
|
|
@@ -215,12 +237,18 @@ export declare const actionFinalize: {
|
|
|
215
237
|
shown: true;
|
|
216
238
|
data: import("../charts").Spreadsheet;
|
|
217
239
|
};
|
|
218
|
-
showHyperlinkPopup: false | "
|
|
240
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
241
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
242
|
+
originSnapOffset: {
|
|
243
|
+
x: number;
|
|
244
|
+
y: number;
|
|
245
|
+
} | null;
|
|
246
|
+
objectsSnapModeEnabled: boolean;
|
|
219
247
|
};
|
|
220
248
|
commitToHistory: boolean;
|
|
221
249
|
};
|
|
222
|
-
keyTest: (event:
|
|
250
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
|
|
223
251
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
224
252
|
} & {
|
|
225
|
-
keyTest?: ((event:
|
|
253
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
|
|
226
254
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ExcalidrawElement } from "../element/types";
|
|
3
2
|
import { AppState } from "../types";
|
|
4
3
|
export declare const actionFlipHorizontal: {
|
|
@@ -6,30 +5,28 @@ export declare const actionFlipHorizontal: {
|
|
|
6
5
|
trackEvent: {
|
|
7
6
|
category: "element";
|
|
8
7
|
};
|
|
9
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
10
|
-
elements:
|
|
8
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
9
|
+
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
11
10
|
appState: Readonly<AppState>;
|
|
12
11
|
commitToHistory: true;
|
|
13
12
|
};
|
|
14
|
-
keyTest: (event:
|
|
13
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
14
|
contextItemLabel: string;
|
|
16
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
17
15
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
16
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
19
17
|
};
|
|
20
18
|
export declare const actionFlipVertical: {
|
|
21
19
|
name: "flipVertical";
|
|
22
20
|
trackEvent: {
|
|
23
21
|
category: "element";
|
|
24
22
|
};
|
|
25
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
26
|
-
elements:
|
|
23
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
24
|
+
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
27
25
|
appState: Readonly<AppState>;
|
|
28
26
|
commitToHistory: true;
|
|
29
27
|
};
|
|
30
|
-
keyTest: (event:
|
|
28
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
31
29
|
contextItemLabel: string;
|
|
32
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
33
30
|
} & {
|
|
34
|
-
keyTest?: ((event:
|
|
31
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
35
32
|
};
|