@excalidraw/element 0.18.0-5fffc47 → 0.18.0-6135548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +3183 -1798
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +17 -17
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +15 -27
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +47 -35
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/binding.d.ts +58 -44
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +6 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +5 -1
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +16 -20
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +5 -2
- package/dist/types/element/src/visualdebug.d.ts +59 -0
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +78 -136
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +76 -876
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +95 -159
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +23 -45
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +28 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +207 -322
- package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +134 -194
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -46
- package/dist/types/excalidraw/actions/actionMenu.d.ts +21 -43
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -42
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +28 -48
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +7 -6
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +58 -58
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +12 -19
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +21 -12
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +321 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +159 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +6 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +22 -20
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +9 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
3
|
export declare const actionDeleteSelected: {
|
|
@@ -9,7 +8,7 @@ export declare const actionDeleteSelected: {
|
|
|
9
8
|
category: "element";
|
|
10
9
|
action: string;
|
|
11
10
|
};
|
|
12
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData:
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
|
|
13
12
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
14
13
|
appState: {
|
|
15
14
|
selectedLinearElement: null;
|
|
@@ -20,10 +19,10 @@ export declare const actionDeleteSelected: {
|
|
|
20
19
|
} | null;
|
|
21
20
|
showWelcomeScreen: boolean;
|
|
22
21
|
isLoading: boolean;
|
|
23
|
-
errorMessage:
|
|
22
|
+
errorMessage: React.ReactNode;
|
|
24
23
|
activeEmbeddable: {
|
|
25
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
26
|
-
state: "
|
|
25
|
+
state: "hover" | "active";
|
|
27
26
|
} | null;
|
|
28
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
29
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -31,7 +30,7 @@ export declare const actionDeleteSelected: {
|
|
|
31
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
31
|
isBindingEnabled: boolean;
|
|
33
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
|
|
33
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
35
|
frameRendering: {
|
|
37
36
|
enabled: boolean;
|
|
@@ -59,19 +58,19 @@ export declare const actionDeleteSelected: {
|
|
|
59
58
|
exportScale: number;
|
|
60
59
|
currentItemStrokeColor: string;
|
|
61
60
|
currentItemBackgroundColor: string;
|
|
62
|
-
currentItemFillStyle:
|
|
61
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
63
62
|
currentItemStrokeWidth: number;
|
|
64
|
-
currentItemStrokeStyle:
|
|
63
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
65
64
|
currentItemRoughness: number;
|
|
66
65
|
currentItemOpacity: number;
|
|
67
|
-
currentItemFontFamily:
|
|
66
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
68
67
|
currentItemFontSize: number;
|
|
69
|
-
currentItemTextAlign:
|
|
68
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
70
69
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
71
70
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
|
-
currentHoveredFontFamily:
|
|
71
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
73
72
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
73
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
75
74
|
viewBackgroundColor: string;
|
|
76
75
|
scrollX: number;
|
|
77
76
|
scrollY: number;
|
|
@@ -80,26 +79,26 @@ export declare const actionDeleteSelected: {
|
|
|
80
79
|
name: string | null;
|
|
81
80
|
isResizing: boolean;
|
|
82
81
|
isRotating: boolean;
|
|
83
|
-
zoom:
|
|
84
|
-
value: import("../types").NormalizedZoomValue;
|
|
85
|
-
}>;
|
|
82
|
+
zoom: import("../types").Zoom;
|
|
86
83
|
openMenu: "canvas" | null;
|
|
87
|
-
openPopup: "
|
|
84
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
88
85
|
openSidebar: {
|
|
89
|
-
name:
|
|
90
|
-
tab?:
|
|
86
|
+
name: import("../types").SidebarName;
|
|
87
|
+
tab?: import("../types").SidebarTabName;
|
|
91
88
|
} | null;
|
|
92
|
-
openDialog: {
|
|
89
|
+
openDialog: null | {
|
|
93
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
94
91
|
} | {
|
|
95
92
|
name: "ttd";
|
|
96
|
-
tab: "
|
|
93
|
+
tab: "text-to-diagram" | "mermaid";
|
|
97
94
|
} | {
|
|
98
95
|
name: "commandPalette";
|
|
96
|
+
} | {
|
|
97
|
+
name: "settings";
|
|
99
98
|
} | {
|
|
100
99
|
name: "elementLinkSelector";
|
|
101
|
-
sourceElementId:
|
|
102
|
-
}
|
|
100
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
101
|
+
};
|
|
103
102
|
defaultSidebarDockedPreference: boolean;
|
|
104
103
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
105
104
|
selectedElementIds: Readonly<{
|
|
@@ -115,8 +114,8 @@ export declare const actionDeleteSelected: {
|
|
|
115
114
|
shouldCacheIgnoreZoom: boolean;
|
|
116
115
|
toast: {
|
|
117
116
|
message: string;
|
|
118
|
-
closable?: boolean
|
|
119
|
-
duration?: number
|
|
117
|
+
closable?: boolean;
|
|
118
|
+
duration?: number;
|
|
120
119
|
} | null;
|
|
121
120
|
zenModeEnabled: boolean;
|
|
122
121
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -127,32 +126,13 @@ export declare const actionDeleteSelected: {
|
|
|
127
126
|
selectedGroupIds: {
|
|
128
127
|
[groupId: string]: boolean;
|
|
129
128
|
};
|
|
130
|
-
editingGroupId:
|
|
129
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
131
130
|
width: number;
|
|
132
131
|
height: number;
|
|
133
132
|
offsetTop: number;
|
|
134
133
|
offsetLeft: number;
|
|
135
134
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
136
|
-
collaborators: Map<import("../types").SocketId,
|
|
137
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
138
|
-
button?: "up" | "down" | undefined;
|
|
139
|
-
selectedElementIds?: Readonly<{
|
|
140
|
-
[id: string]: true;
|
|
141
|
-
}> | undefined;
|
|
142
|
-
username?: string | null | undefined;
|
|
143
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
144
|
-
color?: {
|
|
145
|
-
background: string;
|
|
146
|
-
stroke: string;
|
|
147
|
-
} | undefined;
|
|
148
|
-
avatarUrl?: string | undefined;
|
|
149
|
-
id?: string | undefined;
|
|
150
|
-
socketId?: import("../types").SocketId | undefined;
|
|
151
|
-
isCurrentUser?: boolean | undefined;
|
|
152
|
-
isInCall?: boolean | undefined;
|
|
153
|
-
isSpeaking?: boolean | undefined;
|
|
154
|
-
isMuted?: boolean | undefined;
|
|
155
|
-
}>>;
|
|
135
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
156
136
|
stats: {
|
|
157
137
|
open: boolean;
|
|
158
138
|
panels: number;
|
|
@@ -165,7 +145,7 @@ export declare const actionDeleteSelected: {
|
|
|
165
145
|
shown: true;
|
|
166
146
|
data: import("../charts").Spreadsheet;
|
|
167
147
|
};
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
148
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
169
149
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
150
|
originSnapOffset: {
|
|
171
151
|
x: number;
|
|
@@ -175,16 +155,16 @@ export declare const actionDeleteSelected: {
|
|
|
175
155
|
userToFollow: import("../types").UserToFollow | null;
|
|
176
156
|
followedBy: Set<import("../types").SocketId>;
|
|
177
157
|
isCropping: boolean;
|
|
178
|
-
croppingElementId:
|
|
158
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
179
159
|
searchMatches: Readonly<{
|
|
180
|
-
focusedId:
|
|
160
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
181
161
|
matches: readonly import("../types").SearchMatch[];
|
|
182
162
|
}> | null;
|
|
183
163
|
activeLockedId: string | null;
|
|
184
164
|
lockedMultiSelections: {
|
|
185
165
|
[groupId: string]: true;
|
|
186
166
|
};
|
|
187
|
-
|
|
167
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
188
168
|
};
|
|
189
169
|
captureUpdate: "IMMEDIATELY";
|
|
190
170
|
} | {
|
|
@@ -192,36 +172,34 @@ export declare const actionDeleteSelected: {
|
|
|
192
172
|
appState: {
|
|
193
173
|
selectedLinearElement: {
|
|
194
174
|
selectedPointsIndices: number[];
|
|
195
|
-
|
|
196
|
-
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
197
|
-
elementId: string & {
|
|
175
|
+
elementId: ExcalidrawElement["id"] & {
|
|
198
176
|
_brand: "excalidrawLinearElementId";
|
|
199
177
|
};
|
|
200
|
-
|
|
178
|
+
initialState: Readonly<{
|
|
201
179
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
202
180
|
lastClickedPoint: number;
|
|
203
|
-
|
|
204
|
-
origin: Readonly<{
|
|
205
|
-
x: number;
|
|
206
|
-
y: number;
|
|
207
|
-
}> | null;
|
|
181
|
+
origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
208
182
|
segmentMidpoint: {
|
|
209
|
-
value: import("
|
|
183
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
210
184
|
index: number | null;
|
|
211
185
|
added: boolean;
|
|
212
186
|
};
|
|
187
|
+
arrowStartIsInside: boolean;
|
|
188
|
+
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
213
189
|
}>;
|
|
214
190
|
isDragging: boolean;
|
|
215
|
-
lastUncommittedPoint: import("
|
|
191
|
+
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
192
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
216
193
|
pointerOffset: Readonly<{
|
|
217
194
|
x: number;
|
|
218
195
|
y: number;
|
|
219
196
|
}>;
|
|
220
197
|
hoverPointIndex: number;
|
|
221
|
-
segmentMidPointHoveredCoords: import("
|
|
198
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
222
199
|
elbowed: boolean;
|
|
223
200
|
customLineAngle: number | null;
|
|
224
201
|
isEditing: boolean;
|
|
202
|
+
pointerDownState: never;
|
|
225
203
|
};
|
|
226
204
|
contextMenu: {
|
|
227
205
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -230,10 +208,10 @@ export declare const actionDeleteSelected: {
|
|
|
230
208
|
} | null;
|
|
231
209
|
showWelcomeScreen: boolean;
|
|
232
210
|
isLoading: boolean;
|
|
233
|
-
errorMessage:
|
|
211
|
+
errorMessage: React.ReactNode;
|
|
234
212
|
activeEmbeddable: {
|
|
235
213
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
236
|
-
state: "
|
|
214
|
+
state: "hover" | "active";
|
|
237
215
|
} | null;
|
|
238
216
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
239
217
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -241,7 +219,7 @@ export declare const actionDeleteSelected: {
|
|
|
241
219
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
242
220
|
isBindingEnabled: boolean;
|
|
243
221
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
244
|
-
|
|
222
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
245
223
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
246
224
|
frameRendering: {
|
|
247
225
|
enabled: boolean;
|
|
@@ -269,19 +247,19 @@ export declare const actionDeleteSelected: {
|
|
|
269
247
|
exportScale: number;
|
|
270
248
|
currentItemStrokeColor: string;
|
|
271
249
|
currentItemBackgroundColor: string;
|
|
272
|
-
currentItemFillStyle:
|
|
250
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
273
251
|
currentItemStrokeWidth: number;
|
|
274
|
-
currentItemStrokeStyle:
|
|
252
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
275
253
|
currentItemRoughness: number;
|
|
276
254
|
currentItemOpacity: number;
|
|
277
|
-
currentItemFontFamily:
|
|
255
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
278
256
|
currentItemFontSize: number;
|
|
279
|
-
currentItemTextAlign:
|
|
257
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
280
258
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
281
259
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
282
|
-
currentHoveredFontFamily:
|
|
260
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
283
261
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
284
|
-
currentItemArrowType: "
|
|
262
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
285
263
|
viewBackgroundColor: string;
|
|
286
264
|
scrollX: number;
|
|
287
265
|
scrollY: number;
|
|
@@ -290,26 +268,26 @@ export declare const actionDeleteSelected: {
|
|
|
290
268
|
name: string | null;
|
|
291
269
|
isResizing: boolean;
|
|
292
270
|
isRotating: boolean;
|
|
293
|
-
zoom:
|
|
294
|
-
value: import("../types").NormalizedZoomValue;
|
|
295
|
-
}>;
|
|
271
|
+
zoom: import("../types").Zoom;
|
|
296
272
|
openMenu: "canvas" | null;
|
|
297
|
-
openPopup: "
|
|
273
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
298
274
|
openSidebar: {
|
|
299
|
-
name:
|
|
300
|
-
tab?:
|
|
275
|
+
name: import("../types").SidebarName;
|
|
276
|
+
tab?: import("../types").SidebarTabName;
|
|
301
277
|
} | null;
|
|
302
|
-
openDialog: {
|
|
278
|
+
openDialog: null | {
|
|
303
279
|
name: "imageExport" | "help" | "jsonExport";
|
|
304
280
|
} | {
|
|
305
281
|
name: "ttd";
|
|
306
|
-
tab: "
|
|
282
|
+
tab: "text-to-diagram" | "mermaid";
|
|
307
283
|
} | {
|
|
308
284
|
name: "commandPalette";
|
|
285
|
+
} | {
|
|
286
|
+
name: "settings";
|
|
309
287
|
} | {
|
|
310
288
|
name: "elementLinkSelector";
|
|
311
|
-
sourceElementId:
|
|
312
|
-
}
|
|
289
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
290
|
+
};
|
|
313
291
|
defaultSidebarDockedPreference: boolean;
|
|
314
292
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
315
293
|
selectedElementIds: Readonly<{
|
|
@@ -325,8 +303,8 @@ export declare const actionDeleteSelected: {
|
|
|
325
303
|
shouldCacheIgnoreZoom: boolean;
|
|
326
304
|
toast: {
|
|
327
305
|
message: string;
|
|
328
|
-
closable?: boolean
|
|
329
|
-
duration?: number
|
|
306
|
+
closable?: boolean;
|
|
307
|
+
duration?: number;
|
|
330
308
|
} | null;
|
|
331
309
|
zenModeEnabled: boolean;
|
|
332
310
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -337,32 +315,13 @@ export declare const actionDeleteSelected: {
|
|
|
337
315
|
selectedGroupIds: {
|
|
338
316
|
[groupId: string]: boolean;
|
|
339
317
|
};
|
|
340
|
-
editingGroupId:
|
|
318
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
341
319
|
width: number;
|
|
342
320
|
height: number;
|
|
343
321
|
offsetTop: number;
|
|
344
322
|
offsetLeft: number;
|
|
345
323
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
346
|
-
collaborators: Map<import("../types").SocketId,
|
|
347
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
348
|
-
button?: "up" | "down" | undefined;
|
|
349
|
-
selectedElementIds?: Readonly<{
|
|
350
|
-
[id: string]: true;
|
|
351
|
-
}> | undefined;
|
|
352
|
-
username?: string | null | undefined;
|
|
353
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
354
|
-
color?: {
|
|
355
|
-
background: string;
|
|
356
|
-
stroke: string;
|
|
357
|
-
} | undefined;
|
|
358
|
-
avatarUrl?: string | undefined;
|
|
359
|
-
id?: string | undefined;
|
|
360
|
-
socketId?: import("../types").SocketId | undefined;
|
|
361
|
-
isCurrentUser?: boolean | undefined;
|
|
362
|
-
isInCall?: boolean | undefined;
|
|
363
|
-
isSpeaking?: boolean | undefined;
|
|
364
|
-
isMuted?: boolean | undefined;
|
|
365
|
-
}>>;
|
|
324
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
366
325
|
stats: {
|
|
367
326
|
open: boolean;
|
|
368
327
|
panels: number;
|
|
@@ -375,7 +334,7 @@ export declare const actionDeleteSelected: {
|
|
|
375
334
|
shown: true;
|
|
376
335
|
data: import("../charts").Spreadsheet;
|
|
377
336
|
};
|
|
378
|
-
showHyperlinkPopup: false | "
|
|
337
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
379
338
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
380
339
|
originSnapOffset: {
|
|
381
340
|
x: number;
|
|
@@ -385,16 +344,16 @@ export declare const actionDeleteSelected: {
|
|
|
385
344
|
userToFollow: import("../types").UserToFollow | null;
|
|
386
345
|
followedBy: Set<import("../types").SocketId>;
|
|
387
346
|
isCropping: boolean;
|
|
388
|
-
croppingElementId:
|
|
347
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
389
348
|
searchMatches: Readonly<{
|
|
390
|
-
focusedId:
|
|
349
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
391
350
|
matches: readonly import("../types").SearchMatch[];
|
|
392
351
|
}> | null;
|
|
393
352
|
activeLockedId: string | null;
|
|
394
353
|
lockedMultiSelections: {
|
|
395
354
|
[groupId: string]: true;
|
|
396
355
|
};
|
|
397
|
-
|
|
356
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
398
357
|
};
|
|
399
358
|
captureUpdate: "IMMEDIATELY";
|
|
400
359
|
} | {
|
|
@@ -406,15 +365,12 @@ export declare const actionDeleteSelected: {
|
|
|
406
365
|
fromSelection: boolean;
|
|
407
366
|
} & import("../types").ActiveTool;
|
|
408
367
|
multiElement: null;
|
|
368
|
+
newElement: null;
|
|
409
369
|
activeEmbeddable: null;
|
|
410
370
|
selectedLinearElement: null;
|
|
411
|
-
editingGroupId:
|
|
412
|
-
selectedElementIds:
|
|
413
|
-
|
|
414
|
-
}>;
|
|
415
|
-
selectedGroupIds: {
|
|
416
|
-
[groupId: string]: boolean;
|
|
417
|
-
};
|
|
371
|
+
editingGroupId: AppState["editingGroupId"];
|
|
372
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
373
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
418
374
|
contextMenu: {
|
|
419
375
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
420
376
|
top: number;
|
|
@@ -422,13 +378,12 @@ export declare const actionDeleteSelected: {
|
|
|
422
378
|
} | null;
|
|
423
379
|
showWelcomeScreen: boolean;
|
|
424
380
|
isLoading: boolean;
|
|
425
|
-
errorMessage:
|
|
426
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
381
|
+
errorMessage: React.ReactNode;
|
|
427
382
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
428
383
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
429
384
|
isBindingEnabled: boolean;
|
|
430
385
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
431
|
-
|
|
386
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
432
387
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
433
388
|
frameRendering: {
|
|
434
389
|
enabled: boolean;
|
|
@@ -451,19 +406,19 @@ export declare const actionDeleteSelected: {
|
|
|
451
406
|
exportScale: number;
|
|
452
407
|
currentItemStrokeColor: string;
|
|
453
408
|
currentItemBackgroundColor: string;
|
|
454
|
-
currentItemFillStyle:
|
|
409
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
455
410
|
currentItemStrokeWidth: number;
|
|
456
|
-
currentItemStrokeStyle:
|
|
411
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
457
412
|
currentItemRoughness: number;
|
|
458
413
|
currentItemOpacity: number;
|
|
459
|
-
currentItemFontFamily:
|
|
414
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
460
415
|
currentItemFontSize: number;
|
|
461
|
-
currentItemTextAlign:
|
|
416
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
462
417
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
463
418
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
464
|
-
currentHoveredFontFamily:
|
|
419
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
465
420
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
466
|
-
currentItemArrowType: "
|
|
421
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
467
422
|
viewBackgroundColor: string;
|
|
468
423
|
scrollX: number;
|
|
469
424
|
scrollY: number;
|
|
@@ -472,26 +427,26 @@ export declare const actionDeleteSelected: {
|
|
|
472
427
|
name: string | null;
|
|
473
428
|
isResizing: boolean;
|
|
474
429
|
isRotating: boolean;
|
|
475
|
-
zoom:
|
|
476
|
-
value: import("../types").NormalizedZoomValue;
|
|
477
|
-
}>;
|
|
430
|
+
zoom: import("../types").Zoom;
|
|
478
431
|
openMenu: "canvas" | null;
|
|
479
|
-
openPopup: "
|
|
432
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
480
433
|
openSidebar: {
|
|
481
|
-
name:
|
|
482
|
-
tab?:
|
|
434
|
+
name: import("../types").SidebarName;
|
|
435
|
+
tab?: import("../types").SidebarTabName;
|
|
483
436
|
} | null;
|
|
484
|
-
openDialog: {
|
|
437
|
+
openDialog: null | {
|
|
485
438
|
name: "imageExport" | "help" | "jsonExport";
|
|
486
439
|
} | {
|
|
487
440
|
name: "ttd";
|
|
488
|
-
tab: "
|
|
441
|
+
tab: "text-to-diagram" | "mermaid";
|
|
489
442
|
} | {
|
|
490
443
|
name: "commandPalette";
|
|
444
|
+
} | {
|
|
445
|
+
name: "settings";
|
|
491
446
|
} | {
|
|
492
447
|
name: "elementLinkSelector";
|
|
493
|
-
sourceElementId:
|
|
494
|
-
}
|
|
448
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
449
|
+
};
|
|
495
450
|
defaultSidebarDockedPreference: boolean;
|
|
496
451
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
497
452
|
hoveredElementIds: Readonly<{
|
|
@@ -504,8 +459,8 @@ export declare const actionDeleteSelected: {
|
|
|
504
459
|
shouldCacheIgnoreZoom: boolean;
|
|
505
460
|
toast: {
|
|
506
461
|
message: string;
|
|
507
|
-
closable?: boolean
|
|
508
|
-
duration?: number
|
|
462
|
+
closable?: boolean;
|
|
463
|
+
duration?: number;
|
|
509
464
|
} | null;
|
|
510
465
|
zenModeEnabled: boolean;
|
|
511
466
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -518,26 +473,7 @@ export declare const actionDeleteSelected: {
|
|
|
518
473
|
offsetTop: number;
|
|
519
474
|
offsetLeft: number;
|
|
520
475
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
521
|
-
collaborators: Map<import("../types").SocketId,
|
|
522
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
523
|
-
button?: "up" | "down" | undefined;
|
|
524
|
-
selectedElementIds?: Readonly<{
|
|
525
|
-
[id: string]: true;
|
|
526
|
-
}> | undefined;
|
|
527
|
-
username?: string | null | undefined;
|
|
528
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
529
|
-
color?: {
|
|
530
|
-
background: string;
|
|
531
|
-
stroke: string;
|
|
532
|
-
} | undefined;
|
|
533
|
-
avatarUrl?: string | undefined;
|
|
534
|
-
id?: string | undefined;
|
|
535
|
-
socketId?: import("../types").SocketId | undefined;
|
|
536
|
-
isCurrentUser?: boolean | undefined;
|
|
537
|
-
isInCall?: boolean | undefined;
|
|
538
|
-
isSpeaking?: boolean | undefined;
|
|
539
|
-
isMuted?: boolean | undefined;
|
|
540
|
-
}>>;
|
|
476
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
541
477
|
stats: {
|
|
542
478
|
open: boolean;
|
|
543
479
|
panels: number;
|
|
@@ -550,7 +486,7 @@ export declare const actionDeleteSelected: {
|
|
|
550
486
|
shown: true;
|
|
551
487
|
data: import("../charts").Spreadsheet;
|
|
552
488
|
};
|
|
553
|
-
showHyperlinkPopup: false | "
|
|
489
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
554
490
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
555
491
|
originSnapOffset: {
|
|
556
492
|
x: number;
|
|
@@ -560,21 +496,21 @@ export declare const actionDeleteSelected: {
|
|
|
560
496
|
userToFollow: import("../types").UserToFollow | null;
|
|
561
497
|
followedBy: Set<import("../types").SocketId>;
|
|
562
498
|
isCropping: boolean;
|
|
563
|
-
croppingElementId:
|
|
499
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
564
500
|
searchMatches: Readonly<{
|
|
565
|
-
focusedId:
|
|
501
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
566
502
|
matches: readonly import("../types").SearchMatch[];
|
|
567
503
|
}> | null;
|
|
568
504
|
activeLockedId: string | null;
|
|
569
505
|
lockedMultiSelections: {
|
|
570
506
|
[groupId: string]: true;
|
|
571
507
|
};
|
|
572
|
-
|
|
508
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
573
509
|
};
|
|
574
510
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
575
511
|
};
|
|
576
512
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
577
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
513
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
578
514
|
} & {
|
|
579
515
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
580
516
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
3
|
export declare const distributeHorizontally: {
|
|
@@ -7,7 +6,7 @@ export declare const distributeHorizontally: {
|
|
|
7
6
|
trackEvent: {
|
|
8
7
|
category: "element";
|
|
9
8
|
};
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
10
|
appState: Readonly<AppState>;
|
|
12
11
|
elements: ExcalidrawElement[];
|
|
13
12
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -23,7 +22,7 @@ export declare const distributeVertically: {
|
|
|
23
22
|
trackEvent: {
|
|
24
23
|
category: "element";
|
|
25
24
|
};
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
25
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
27
26
|
appState: Readonly<AppState>;
|
|
28
27
|
elements: ExcalidrawElement[];
|
|
29
28
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionDuplicateSelection: {
|
|
3
2
|
name: "duplicateSelection";
|
|
4
3
|
label: string;
|
|
@@ -6,13 +5,13 @@ export declare const actionDuplicateSelection: {
|
|
|
6
5
|
trackEvent: {
|
|
7
6
|
category: "element";
|
|
8
7
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData:
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
|
|
10
9
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
10
|
appState: import("../types").AppState;
|
|
12
11
|
captureUpdate: "IMMEDIATELY";
|
|
13
12
|
};
|
|
14
13
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
} & {
|
|
17
16
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
17
|
};
|