@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758
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 +3 -3
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/common/debug.d.ts +21 -0
- 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 +19 -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 +3 -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 +50 -39
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +66 -46
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/distribute.d.ts +2 -1
- 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 +3 -3
- package/dist/types/element/src/linearElementEditor.d.ts +18 -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 +8 -12
- package/dist/types/element/src/utils.d.ts +8 -3
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +141 -202
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +71 -112
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +424 -858
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +105 -907
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +115 -180
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +44 -71
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +70 -111
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionExport.d.ts +153 -1166
- 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 +221 -340
- package/dist/types/excalidraw/actions/actionGroup.d.ts +74 -123
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +126 -185
- package/dist/types/excalidraw/actions/actionLink.d.ts +51 -72
- package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -65
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +131 -2576
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -62
- package/dist/types/excalidraw/actions/actionStyles.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -65
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +49 -70
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +20 -20
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +11 -35
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +68 -60
- 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 +2 -4
- 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/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -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 +23 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -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 +12 -29
- 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/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -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 +95 -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 +48 -38
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- 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/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- 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 +27 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/shapes.d.ts +74 -1
- 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 +319 -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 +158 -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 +8 -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 +34 -29
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/point.d.ts +6 -1
- 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/math/src/types.d.ts +25 -1
- 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 +2 -2
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type SceneBounds } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
3
|
import type { AppState, Offsets } from "../types";
|
|
5
|
-
export declare const actionChangeViewBackgroundColor: {
|
|
6
|
-
|
|
7
|
-
label: string;
|
|
8
|
-
trackEvent: false;
|
|
9
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
10
|
-
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
11
|
-
appState: any;
|
|
12
|
-
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
13
|
-
};
|
|
14
|
-
PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
} & {
|
|
16
|
-
keyTest?: undefined;
|
|
4
|
+
export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
17
6
|
};
|
|
18
7
|
export declare const actionClearCanvas: {
|
|
19
8
|
name: "clearCanvas";
|
|
@@ -23,7 +12,7 @@ export declare const actionClearCanvas: {
|
|
|
23
12
|
category: "canvas";
|
|
24
13
|
};
|
|
25
14
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
15
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
27
16
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
28
17
|
appState: {
|
|
29
18
|
files: {};
|
|
@@ -39,13 +28,6 @@ export declare const actionClearCanvas: {
|
|
|
39
28
|
open: boolean;
|
|
40
29
|
panels: number;
|
|
41
30
|
};
|
|
42
|
-
pasteDialog: {
|
|
43
|
-
shown: false;
|
|
44
|
-
data: null;
|
|
45
|
-
} | {
|
|
46
|
-
shown: true;
|
|
47
|
-
data: import("../charts").Spreadsheet;
|
|
48
|
-
};
|
|
49
31
|
activeTool: {
|
|
50
32
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
33
|
locked: boolean;
|
|
@@ -59,31 +41,35 @@ export declare const actionClearCanvas: {
|
|
|
59
41
|
clip: boolean;
|
|
60
42
|
};
|
|
61
43
|
name: string | null;
|
|
62
|
-
zoom:
|
|
63
|
-
value: import("../types").NormalizedZoomValue;
|
|
64
|
-
}>;
|
|
44
|
+
zoom: import("../types").Zoom;
|
|
65
45
|
scrollX: number;
|
|
66
46
|
scrollY: number;
|
|
67
47
|
viewModeEnabled: boolean;
|
|
68
|
-
openDialog: {
|
|
48
|
+
openDialog: null | {
|
|
69
49
|
name: "imageExport" | "help" | "jsonExport";
|
|
70
50
|
} | {
|
|
71
51
|
name: "ttd";
|
|
72
|
-
tab: "
|
|
52
|
+
tab: "text-to-diagram" | "mermaid";
|
|
73
53
|
} | {
|
|
74
54
|
name: "commandPalette";
|
|
55
|
+
} | {
|
|
56
|
+
name: "settings";
|
|
75
57
|
} | {
|
|
76
58
|
name: "elementLinkSelector";
|
|
77
|
-
sourceElementId:
|
|
78
|
-
} |
|
|
79
|
-
|
|
59
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
60
|
+
} | {
|
|
61
|
+
name: "charts";
|
|
62
|
+
data: import("../charts").Spreadsheet;
|
|
63
|
+
rawText: string;
|
|
64
|
+
};
|
|
65
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
80
66
|
selectedElementIds: Readonly<{
|
|
81
67
|
[id: string]: true;
|
|
82
68
|
}>;
|
|
83
69
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
84
70
|
activeEmbeddable: {
|
|
85
71
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
86
|
-
state: "
|
|
72
|
+
state: "hover" | "active";
|
|
87
73
|
} | null;
|
|
88
74
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
89
75
|
selectedGroupIds: {
|
|
@@ -91,40 +77,32 @@ export declare const actionClearCanvas: {
|
|
|
91
77
|
};
|
|
92
78
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
93
79
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
80
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
94
81
|
isBindingEnabled: boolean;
|
|
95
|
-
|
|
82
|
+
suggestedBinding: {
|
|
83
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
84
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
85
|
+
} | null;
|
|
96
86
|
isRotating: boolean;
|
|
97
87
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
98
|
-
collaborators: Map<import("../types").SocketId,
|
|
99
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
100
|
-
button?: "up" | "down" | undefined;
|
|
101
|
-
selectedElementIds?: Readonly<{
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
}> | undefined;
|
|
104
|
-
username?: string | null | undefined;
|
|
105
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
106
|
-
color?: {
|
|
107
|
-
background: string;
|
|
108
|
-
stroke: string;
|
|
109
|
-
} | undefined;
|
|
110
|
-
avatarUrl?: string | undefined;
|
|
111
|
-
id?: string | undefined;
|
|
112
|
-
socketId?: import("../types").SocketId | undefined;
|
|
113
|
-
isCurrentUser?: boolean | undefined;
|
|
114
|
-
isInCall?: boolean | undefined;
|
|
115
|
-
isSpeaking?: boolean | undefined;
|
|
116
|
-
isMuted?: boolean | undefined;
|
|
117
|
-
}>>;
|
|
88
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
118
89
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
119
90
|
zenModeEnabled: boolean;
|
|
120
91
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
121
92
|
isCropping: boolean;
|
|
122
|
-
croppingElementId:
|
|
93
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
123
94
|
searchMatches: Readonly<{
|
|
124
|
-
focusedId:
|
|
95
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
125
96
|
matches: readonly import("../types").SearchMatch[];
|
|
126
97
|
}> | null;
|
|
127
98
|
activeLockedId: string | null;
|
|
99
|
+
hoveredElementIds: Readonly<{
|
|
100
|
+
[id: string]: true;
|
|
101
|
+
}>;
|
|
102
|
+
shouldCacheIgnoreZoom: boolean;
|
|
103
|
+
exportScale: number;
|
|
104
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
105
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
128
106
|
contextMenu: {
|
|
129
107
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
130
108
|
top: number;
|
|
@@ -132,8 +110,7 @@ export declare const actionClearCanvas: {
|
|
|
132
110
|
} | null;
|
|
133
111
|
showWelcomeScreen: boolean;
|
|
134
112
|
isLoading: boolean;
|
|
135
|
-
errorMessage:
|
|
136
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
113
|
+
errorMessage: React.ReactNode;
|
|
137
114
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
138
115
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
139
116
|
editingFrame: string | null;
|
|
@@ -142,49 +119,42 @@ export declare const actionClearCanvas: {
|
|
|
142
119
|
initialized: boolean;
|
|
143
120
|
};
|
|
144
121
|
exportWithDarkMode: boolean;
|
|
145
|
-
exportScale: number;
|
|
146
122
|
currentItemStrokeColor: string;
|
|
147
123
|
currentItemBackgroundColor: string;
|
|
148
|
-
currentItemFillStyle:
|
|
124
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
149
125
|
currentItemStrokeWidth: number;
|
|
150
|
-
currentItemStrokeStyle:
|
|
126
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
151
127
|
currentItemRoughness: number;
|
|
152
128
|
currentItemOpacity: number;
|
|
153
|
-
currentItemFontFamily:
|
|
129
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
154
130
|
currentItemFontSize: number;
|
|
155
|
-
currentItemTextAlign:
|
|
131
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
156
132
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
157
133
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
158
|
-
currentHoveredFontFamily:
|
|
134
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
159
135
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
160
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
161
136
|
cursorButton: "up" | "down";
|
|
162
137
|
scrolledOutside: boolean;
|
|
163
138
|
isResizing: boolean;
|
|
164
139
|
openMenu: "canvas" | null;
|
|
165
|
-
openPopup: "
|
|
140
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
166
141
|
openSidebar: {
|
|
167
|
-
name:
|
|
168
|
-
tab?:
|
|
142
|
+
name: import("../types").SidebarName;
|
|
143
|
+
tab?: import("../types").SidebarTabName;
|
|
169
144
|
} | null;
|
|
170
145
|
defaultSidebarDockedPreference: boolean;
|
|
171
146
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
172
|
-
hoveredElementIds: Readonly<{
|
|
173
|
-
[id: string]: true;
|
|
174
|
-
}>;
|
|
175
147
|
previousSelectedElementIds: {
|
|
176
148
|
[id: string]: true;
|
|
177
149
|
};
|
|
178
150
|
selectedElementsAreBeingDragged: boolean;
|
|
179
|
-
shouldCacheIgnoreZoom: boolean;
|
|
180
151
|
toast: {
|
|
181
152
|
message: string;
|
|
182
|
-
closable?: boolean
|
|
183
|
-
duration?: number
|
|
153
|
+
closable?: boolean;
|
|
154
|
+
duration?: number;
|
|
184
155
|
} | null;
|
|
185
156
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
186
|
-
|
|
187
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
157
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
188
158
|
originSnapOffset: {
|
|
189
159
|
x: number;
|
|
190
160
|
y: number;
|
|
@@ -195,7 +165,6 @@ export declare const actionClearCanvas: {
|
|
|
195
165
|
lockedMultiSelections: {
|
|
196
166
|
[groupId: string]: true;
|
|
197
167
|
};
|
|
198
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
199
168
|
};
|
|
200
169
|
captureUpdate: "IMMEDIATELY";
|
|
201
170
|
};
|
|
@@ -210,7 +179,7 @@ export declare const actionZoomIn: {
|
|
|
210
179
|
trackEvent: {
|
|
211
180
|
category: "canvas";
|
|
212
181
|
};
|
|
213
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
182
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
214
183
|
appState: {
|
|
215
184
|
userToFollow: null;
|
|
216
185
|
scrollX: number;
|
|
@@ -225,10 +194,10 @@ export declare const actionZoomIn: {
|
|
|
225
194
|
} | null;
|
|
226
195
|
showWelcomeScreen: boolean;
|
|
227
196
|
isLoading: boolean;
|
|
228
|
-
errorMessage:
|
|
197
|
+
errorMessage: React.ReactNode;
|
|
229
198
|
activeEmbeddable: {
|
|
230
199
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
231
|
-
state: "
|
|
200
|
+
state: "hover" | "active";
|
|
232
201
|
} | null;
|
|
233
202
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
234
203
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -236,7 +205,10 @@ export declare const actionZoomIn: {
|
|
|
236
205
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
206
|
isBindingEnabled: boolean;
|
|
238
207
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
239
|
-
|
|
208
|
+
suggestedBinding: {
|
|
209
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
210
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
211
|
+
} | null;
|
|
240
212
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
241
213
|
frameRendering: {
|
|
242
214
|
enabled: boolean;
|
|
@@ -264,19 +236,19 @@ export declare const actionZoomIn: {
|
|
|
264
236
|
exportScale: number;
|
|
265
237
|
currentItemStrokeColor: string;
|
|
266
238
|
currentItemBackgroundColor: string;
|
|
267
|
-
currentItemFillStyle:
|
|
239
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
268
240
|
currentItemStrokeWidth: number;
|
|
269
|
-
currentItemStrokeStyle:
|
|
241
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
270
242
|
currentItemRoughness: number;
|
|
271
243
|
currentItemOpacity: number;
|
|
272
|
-
currentItemFontFamily:
|
|
244
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
273
245
|
currentItemFontSize: number;
|
|
274
|
-
currentItemTextAlign:
|
|
246
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
275
247
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
276
248
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
277
|
-
currentHoveredFontFamily:
|
|
249
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
278
250
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
279
|
-
currentItemArrowType: "
|
|
251
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
280
252
|
viewBackgroundColor: string;
|
|
281
253
|
cursorButton: "up" | "down";
|
|
282
254
|
scrolledOutside: boolean;
|
|
@@ -284,22 +256,28 @@ export declare const actionZoomIn: {
|
|
|
284
256
|
isResizing: boolean;
|
|
285
257
|
isRotating: boolean;
|
|
286
258
|
openMenu: "canvas" | null;
|
|
287
|
-
openPopup: "
|
|
259
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
288
260
|
openSidebar: {
|
|
289
|
-
name:
|
|
290
|
-
tab?:
|
|
261
|
+
name: import("../types").SidebarName;
|
|
262
|
+
tab?: import("../types").SidebarTabName;
|
|
291
263
|
} | null;
|
|
292
|
-
openDialog: {
|
|
264
|
+
openDialog: null | {
|
|
293
265
|
name: "imageExport" | "help" | "jsonExport";
|
|
294
266
|
} | {
|
|
295
267
|
name: "ttd";
|
|
296
|
-
tab: "
|
|
268
|
+
tab: "text-to-diagram" | "mermaid";
|
|
297
269
|
} | {
|
|
298
270
|
name: "commandPalette";
|
|
271
|
+
} | {
|
|
272
|
+
name: "settings";
|
|
299
273
|
} | {
|
|
300
274
|
name: "elementLinkSelector";
|
|
301
|
-
sourceElementId:
|
|
302
|
-
} |
|
|
275
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
276
|
+
} | {
|
|
277
|
+
name: "charts";
|
|
278
|
+
data: import("../charts").Spreadsheet;
|
|
279
|
+
rawText: string;
|
|
280
|
+
};
|
|
303
281
|
defaultSidebarDockedPreference: boolean;
|
|
304
282
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
305
283
|
selectedElementIds: Readonly<{
|
|
@@ -315,8 +293,8 @@ export declare const actionZoomIn: {
|
|
|
315
293
|
shouldCacheIgnoreZoom: boolean;
|
|
316
294
|
toast: {
|
|
317
295
|
message: string;
|
|
318
|
-
closable?: boolean
|
|
319
|
-
duration?: number
|
|
296
|
+
closable?: boolean;
|
|
297
|
+
duration?: number;
|
|
320
298
|
} | null;
|
|
321
299
|
zenModeEnabled: boolean;
|
|
322
300
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -327,45 +305,18 @@ export declare const actionZoomIn: {
|
|
|
327
305
|
selectedGroupIds: {
|
|
328
306
|
[groupId: string]: boolean;
|
|
329
307
|
};
|
|
330
|
-
editingGroupId:
|
|
308
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
331
309
|
width: number;
|
|
332
310
|
height: number;
|
|
333
311
|
offsetTop: number;
|
|
334
312
|
offsetLeft: number;
|
|
335
313
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
336
|
-
collaborators: Map<import("../types").SocketId,
|
|
337
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
338
|
-
button?: "up" | "down" | undefined;
|
|
339
|
-
selectedElementIds?: Readonly<{
|
|
340
|
-
[id: string]: true;
|
|
341
|
-
}> | undefined;
|
|
342
|
-
username?: string | null | undefined;
|
|
343
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
344
|
-
color?: {
|
|
345
|
-
background: string;
|
|
346
|
-
stroke: string;
|
|
347
|
-
} | undefined;
|
|
348
|
-
avatarUrl?: string | undefined;
|
|
349
|
-
id?: string | undefined;
|
|
350
|
-
socketId?: import("../types").SocketId | undefined;
|
|
351
|
-
isCurrentUser?: boolean | undefined;
|
|
352
|
-
isInCall?: boolean | undefined;
|
|
353
|
-
isSpeaking?: boolean | undefined;
|
|
354
|
-
isMuted?: boolean | undefined;
|
|
355
|
-
}>>;
|
|
314
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
356
315
|
stats: {
|
|
357
316
|
open: boolean;
|
|
358
317
|
panels: number;
|
|
359
318
|
};
|
|
360
|
-
|
|
361
|
-
pasteDialog: {
|
|
362
|
-
shown: false;
|
|
363
|
-
data: null;
|
|
364
|
-
} | {
|
|
365
|
-
shown: true;
|
|
366
|
-
data: import("../charts").Spreadsheet;
|
|
367
|
-
};
|
|
368
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
319
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
369
320
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
370
321
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
371
322
|
originSnapOffset: {
|
|
@@ -375,16 +326,16 @@ export declare const actionZoomIn: {
|
|
|
375
326
|
objectsSnapModeEnabled: boolean;
|
|
376
327
|
followedBy: Set<import("../types").SocketId>;
|
|
377
328
|
isCropping: boolean;
|
|
378
|
-
croppingElementId:
|
|
329
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
379
330
|
searchMatches: Readonly<{
|
|
380
|
-
focusedId:
|
|
331
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
381
332
|
matches: readonly import("../types").SearchMatch[];
|
|
382
333
|
}> | null;
|
|
383
334
|
activeLockedId: string | null;
|
|
384
335
|
lockedMultiSelections: {
|
|
385
336
|
[groupId: string]: true;
|
|
386
337
|
};
|
|
387
|
-
|
|
338
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
388
339
|
};
|
|
389
340
|
captureUpdate: "EVENTUALLY";
|
|
390
341
|
};
|
|
@@ -401,7 +352,7 @@ export declare const actionZoomOut: {
|
|
|
401
352
|
trackEvent: {
|
|
402
353
|
category: "canvas";
|
|
403
354
|
};
|
|
404
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
355
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
405
356
|
appState: {
|
|
406
357
|
userToFollow: null;
|
|
407
358
|
scrollX: number;
|
|
@@ -416,10 +367,10 @@ export declare const actionZoomOut: {
|
|
|
416
367
|
} | null;
|
|
417
368
|
showWelcomeScreen: boolean;
|
|
418
369
|
isLoading: boolean;
|
|
419
|
-
errorMessage:
|
|
370
|
+
errorMessage: React.ReactNode;
|
|
420
371
|
activeEmbeddable: {
|
|
421
372
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
422
|
-
state: "
|
|
373
|
+
state: "hover" | "active";
|
|
423
374
|
} | null;
|
|
424
375
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
425
376
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -427,7 +378,10 @@ export declare const actionZoomOut: {
|
|
|
427
378
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
428
379
|
isBindingEnabled: boolean;
|
|
429
380
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
430
|
-
|
|
381
|
+
suggestedBinding: {
|
|
382
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
383
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
384
|
+
} | null;
|
|
431
385
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
432
386
|
frameRendering: {
|
|
433
387
|
enabled: boolean;
|
|
@@ -455,19 +409,19 @@ export declare const actionZoomOut: {
|
|
|
455
409
|
exportScale: number;
|
|
456
410
|
currentItemStrokeColor: string;
|
|
457
411
|
currentItemBackgroundColor: string;
|
|
458
|
-
currentItemFillStyle:
|
|
412
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
459
413
|
currentItemStrokeWidth: number;
|
|
460
|
-
currentItemStrokeStyle:
|
|
414
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
461
415
|
currentItemRoughness: number;
|
|
462
416
|
currentItemOpacity: number;
|
|
463
|
-
currentItemFontFamily:
|
|
417
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
464
418
|
currentItemFontSize: number;
|
|
465
|
-
currentItemTextAlign:
|
|
419
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
466
420
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
467
421
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
468
|
-
currentHoveredFontFamily:
|
|
422
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
469
423
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
470
|
-
currentItemArrowType: "
|
|
424
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
471
425
|
viewBackgroundColor: string;
|
|
472
426
|
cursorButton: "up" | "down";
|
|
473
427
|
scrolledOutside: boolean;
|
|
@@ -475,22 +429,28 @@ export declare const actionZoomOut: {
|
|
|
475
429
|
isResizing: boolean;
|
|
476
430
|
isRotating: boolean;
|
|
477
431
|
openMenu: "canvas" | null;
|
|
478
|
-
openPopup: "
|
|
432
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
479
433
|
openSidebar: {
|
|
480
|
-
name:
|
|
481
|
-
tab?:
|
|
434
|
+
name: import("../types").SidebarName;
|
|
435
|
+
tab?: import("../types").SidebarTabName;
|
|
482
436
|
} | null;
|
|
483
|
-
openDialog: {
|
|
437
|
+
openDialog: null | {
|
|
484
438
|
name: "imageExport" | "help" | "jsonExport";
|
|
485
439
|
} | {
|
|
486
440
|
name: "ttd";
|
|
487
|
-
tab: "
|
|
441
|
+
tab: "text-to-diagram" | "mermaid";
|
|
488
442
|
} | {
|
|
489
443
|
name: "commandPalette";
|
|
444
|
+
} | {
|
|
445
|
+
name: "settings";
|
|
490
446
|
} | {
|
|
491
447
|
name: "elementLinkSelector";
|
|
492
|
-
sourceElementId:
|
|
493
|
-
} |
|
|
448
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
449
|
+
} | {
|
|
450
|
+
name: "charts";
|
|
451
|
+
data: import("../charts").Spreadsheet;
|
|
452
|
+
rawText: string;
|
|
453
|
+
};
|
|
494
454
|
defaultSidebarDockedPreference: boolean;
|
|
495
455
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
496
456
|
selectedElementIds: Readonly<{
|
|
@@ -506,8 +466,8 @@ export declare const actionZoomOut: {
|
|
|
506
466
|
shouldCacheIgnoreZoom: boolean;
|
|
507
467
|
toast: {
|
|
508
468
|
message: string;
|
|
509
|
-
closable?: boolean
|
|
510
|
-
duration?: number
|
|
469
|
+
closable?: boolean;
|
|
470
|
+
duration?: number;
|
|
511
471
|
} | null;
|
|
512
472
|
zenModeEnabled: boolean;
|
|
513
473
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -518,45 +478,18 @@ export declare const actionZoomOut: {
|
|
|
518
478
|
selectedGroupIds: {
|
|
519
479
|
[groupId: string]: boolean;
|
|
520
480
|
};
|
|
521
|
-
editingGroupId:
|
|
481
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
522
482
|
width: number;
|
|
523
483
|
height: number;
|
|
524
484
|
offsetTop: number;
|
|
525
485
|
offsetLeft: number;
|
|
526
486
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
527
|
-
collaborators: Map<import("../types").SocketId,
|
|
528
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
529
|
-
button?: "up" | "down" | undefined;
|
|
530
|
-
selectedElementIds?: Readonly<{
|
|
531
|
-
[id: string]: true;
|
|
532
|
-
}> | undefined;
|
|
533
|
-
username?: string | null | undefined;
|
|
534
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
535
|
-
color?: {
|
|
536
|
-
background: string;
|
|
537
|
-
stroke: string;
|
|
538
|
-
} | undefined;
|
|
539
|
-
avatarUrl?: string | undefined;
|
|
540
|
-
id?: string | undefined;
|
|
541
|
-
socketId?: import("../types").SocketId | undefined;
|
|
542
|
-
isCurrentUser?: boolean | undefined;
|
|
543
|
-
isInCall?: boolean | undefined;
|
|
544
|
-
isSpeaking?: boolean | undefined;
|
|
545
|
-
isMuted?: boolean | undefined;
|
|
546
|
-
}>>;
|
|
487
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
547
488
|
stats: {
|
|
548
489
|
open: boolean;
|
|
549
490
|
panels: number;
|
|
550
491
|
};
|
|
551
|
-
|
|
552
|
-
pasteDialog: {
|
|
553
|
-
shown: false;
|
|
554
|
-
data: null;
|
|
555
|
-
} | {
|
|
556
|
-
shown: true;
|
|
557
|
-
data: import("../charts").Spreadsheet;
|
|
558
|
-
};
|
|
559
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
492
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
560
493
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
561
494
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
562
495
|
originSnapOffset: {
|
|
@@ -566,16 +499,16 @@ export declare const actionZoomOut: {
|
|
|
566
499
|
objectsSnapModeEnabled: boolean;
|
|
567
500
|
followedBy: Set<import("../types").SocketId>;
|
|
568
501
|
isCropping: boolean;
|
|
569
|
-
croppingElementId:
|
|
502
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
570
503
|
searchMatches: Readonly<{
|
|
571
|
-
focusedId:
|
|
504
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
572
505
|
matches: readonly import("../types").SearchMatch[];
|
|
573
506
|
}> | null;
|
|
574
507
|
activeLockedId: string | null;
|
|
575
508
|
lockedMultiSelections: {
|
|
576
509
|
[groupId: string]: true;
|
|
577
510
|
};
|
|
578
|
-
|
|
511
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
579
512
|
};
|
|
580
513
|
captureUpdate: "EVENTUALLY";
|
|
581
514
|
};
|
|
@@ -592,7 +525,7 @@ export declare const actionResetZoom: {
|
|
|
592
525
|
trackEvent: {
|
|
593
526
|
category: "canvas";
|
|
594
527
|
};
|
|
595
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
528
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
596
529
|
appState: {
|
|
597
530
|
userToFollow: null;
|
|
598
531
|
scrollX: number;
|
|
@@ -607,10 +540,10 @@ export declare const actionResetZoom: {
|
|
|
607
540
|
} | null;
|
|
608
541
|
showWelcomeScreen: boolean;
|
|
609
542
|
isLoading: boolean;
|
|
610
|
-
errorMessage:
|
|
543
|
+
errorMessage: React.ReactNode;
|
|
611
544
|
activeEmbeddable: {
|
|
612
545
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
613
|
-
state: "
|
|
546
|
+
state: "hover" | "active";
|
|
614
547
|
} | null;
|
|
615
548
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
616
549
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -618,7 +551,10 @@ export declare const actionResetZoom: {
|
|
|
618
551
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
619
552
|
isBindingEnabled: boolean;
|
|
620
553
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
621
|
-
|
|
554
|
+
suggestedBinding: {
|
|
555
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
556
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
557
|
+
} | null;
|
|
622
558
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
623
559
|
frameRendering: {
|
|
624
560
|
enabled: boolean;
|
|
@@ -646,19 +582,19 @@ export declare const actionResetZoom: {
|
|
|
646
582
|
exportScale: number;
|
|
647
583
|
currentItemStrokeColor: string;
|
|
648
584
|
currentItemBackgroundColor: string;
|
|
649
|
-
currentItemFillStyle:
|
|
585
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
650
586
|
currentItemStrokeWidth: number;
|
|
651
|
-
currentItemStrokeStyle:
|
|
587
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
652
588
|
currentItemRoughness: number;
|
|
653
589
|
currentItemOpacity: number;
|
|
654
|
-
currentItemFontFamily:
|
|
590
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
655
591
|
currentItemFontSize: number;
|
|
656
|
-
currentItemTextAlign:
|
|
592
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
657
593
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
658
594
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
659
|
-
currentHoveredFontFamily:
|
|
595
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
660
596
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
661
|
-
currentItemArrowType: "
|
|
597
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
662
598
|
viewBackgroundColor: string;
|
|
663
599
|
cursorButton: "up" | "down";
|
|
664
600
|
scrolledOutside: boolean;
|
|
@@ -666,22 +602,28 @@ export declare const actionResetZoom: {
|
|
|
666
602
|
isResizing: boolean;
|
|
667
603
|
isRotating: boolean;
|
|
668
604
|
openMenu: "canvas" | null;
|
|
669
|
-
openPopup: "
|
|
605
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
670
606
|
openSidebar: {
|
|
671
|
-
name:
|
|
672
|
-
tab?:
|
|
607
|
+
name: import("../types").SidebarName;
|
|
608
|
+
tab?: import("../types").SidebarTabName;
|
|
673
609
|
} | null;
|
|
674
|
-
openDialog: {
|
|
610
|
+
openDialog: null | {
|
|
675
611
|
name: "imageExport" | "help" | "jsonExport";
|
|
676
612
|
} | {
|
|
677
613
|
name: "ttd";
|
|
678
|
-
tab: "
|
|
614
|
+
tab: "text-to-diagram" | "mermaid";
|
|
679
615
|
} | {
|
|
680
616
|
name: "commandPalette";
|
|
617
|
+
} | {
|
|
618
|
+
name: "settings";
|
|
681
619
|
} | {
|
|
682
620
|
name: "elementLinkSelector";
|
|
683
|
-
sourceElementId:
|
|
684
|
-
} |
|
|
621
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
622
|
+
} | {
|
|
623
|
+
name: "charts";
|
|
624
|
+
data: import("../charts").Spreadsheet;
|
|
625
|
+
rawText: string;
|
|
626
|
+
};
|
|
685
627
|
defaultSidebarDockedPreference: boolean;
|
|
686
628
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
687
629
|
selectedElementIds: Readonly<{
|
|
@@ -697,8 +639,8 @@ export declare const actionResetZoom: {
|
|
|
697
639
|
shouldCacheIgnoreZoom: boolean;
|
|
698
640
|
toast: {
|
|
699
641
|
message: string;
|
|
700
|
-
closable?: boolean
|
|
701
|
-
duration?: number
|
|
642
|
+
closable?: boolean;
|
|
643
|
+
duration?: number;
|
|
702
644
|
} | null;
|
|
703
645
|
zenModeEnabled: boolean;
|
|
704
646
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -709,45 +651,18 @@ export declare const actionResetZoom: {
|
|
|
709
651
|
selectedGroupIds: {
|
|
710
652
|
[groupId: string]: boolean;
|
|
711
653
|
};
|
|
712
|
-
editingGroupId:
|
|
654
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
713
655
|
width: number;
|
|
714
656
|
height: number;
|
|
715
657
|
offsetTop: number;
|
|
716
658
|
offsetLeft: number;
|
|
717
659
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
718
|
-
collaborators: Map<import("../types").SocketId,
|
|
719
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
720
|
-
button?: "up" | "down" | undefined;
|
|
721
|
-
selectedElementIds?: Readonly<{
|
|
722
|
-
[id: string]: true;
|
|
723
|
-
}> | undefined;
|
|
724
|
-
username?: string | null | undefined;
|
|
725
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
726
|
-
color?: {
|
|
727
|
-
background: string;
|
|
728
|
-
stroke: string;
|
|
729
|
-
} | undefined;
|
|
730
|
-
avatarUrl?: string | undefined;
|
|
731
|
-
id?: string | undefined;
|
|
732
|
-
socketId?: import("../types").SocketId | undefined;
|
|
733
|
-
isCurrentUser?: boolean | undefined;
|
|
734
|
-
isInCall?: boolean | undefined;
|
|
735
|
-
isSpeaking?: boolean | undefined;
|
|
736
|
-
isMuted?: boolean | undefined;
|
|
737
|
-
}>>;
|
|
660
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
738
661
|
stats: {
|
|
739
662
|
open: boolean;
|
|
740
663
|
panels: number;
|
|
741
664
|
};
|
|
742
|
-
|
|
743
|
-
pasteDialog: {
|
|
744
|
-
shown: false;
|
|
745
|
-
data: null;
|
|
746
|
-
} | {
|
|
747
|
-
shown: true;
|
|
748
|
-
data: import("../charts").Spreadsheet;
|
|
749
|
-
};
|
|
750
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
665
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
751
666
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
752
667
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
753
668
|
originSnapOffset: {
|
|
@@ -757,16 +672,16 @@ export declare const actionResetZoom: {
|
|
|
757
672
|
objectsSnapModeEnabled: boolean;
|
|
758
673
|
followedBy: Set<import("../types").SocketId>;
|
|
759
674
|
isCropping: boolean;
|
|
760
|
-
croppingElementId:
|
|
675
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
761
676
|
searchMatches: Readonly<{
|
|
762
|
-
focusedId:
|
|
677
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
763
678
|
matches: readonly import("../types").SearchMatch[];
|
|
764
679
|
}> | null;
|
|
765
680
|
activeLockedId: string | null;
|
|
766
681
|
lockedMultiSelections: {
|
|
767
682
|
[groupId: string]: true;
|
|
768
683
|
};
|
|
769
|
-
|
|
684
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
770
685
|
};
|
|
771
686
|
captureUpdate: "EVENTUALLY";
|
|
772
687
|
};
|
|
@@ -777,19 +692,14 @@ export declare const actionResetZoom: {
|
|
|
777
692
|
};
|
|
778
693
|
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
779
694
|
bounds: SceneBounds;
|
|
780
|
-
canvasOffsets?:
|
|
781
|
-
top: number;
|
|
782
|
-
right: number;
|
|
783
|
-
bottom: number;
|
|
784
|
-
left: number;
|
|
785
|
-
}> | undefined;
|
|
695
|
+
canvasOffsets?: Offsets;
|
|
786
696
|
appState: Readonly<AppState>;
|
|
787
697
|
/** whether to fit content to viewport (beyond >100%) */
|
|
788
698
|
fitToViewport: boolean;
|
|
789
699
|
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
790
|
-
viewportZoomFactor?: number
|
|
791
|
-
minZoom?: number
|
|
792
|
-
maxZoom?: number
|
|
700
|
+
viewportZoomFactor?: number;
|
|
701
|
+
minZoom?: number;
|
|
702
|
+
maxZoom?: number;
|
|
793
703
|
}) => {
|
|
794
704
|
appState: {
|
|
795
705
|
scrollX: number;
|
|
@@ -804,10 +714,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
804
714
|
} | null;
|
|
805
715
|
showWelcomeScreen: boolean;
|
|
806
716
|
isLoading: boolean;
|
|
807
|
-
errorMessage:
|
|
717
|
+
errorMessage: React.ReactNode;
|
|
808
718
|
activeEmbeddable: {
|
|
809
719
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
810
|
-
state: "
|
|
720
|
+
state: "hover" | "active";
|
|
811
721
|
} | null;
|
|
812
722
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
813
723
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -815,7 +725,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
815
725
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
816
726
|
isBindingEnabled: boolean;
|
|
817
727
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
818
|
-
|
|
728
|
+
suggestedBinding: {
|
|
729
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
730
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
731
|
+
} | null;
|
|
819
732
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
820
733
|
frameRendering: {
|
|
821
734
|
enabled: boolean;
|
|
@@ -843,19 +756,19 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
843
756
|
exportScale: number;
|
|
844
757
|
currentItemStrokeColor: string;
|
|
845
758
|
currentItemBackgroundColor: string;
|
|
846
|
-
currentItemFillStyle:
|
|
759
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
847
760
|
currentItemStrokeWidth: number;
|
|
848
|
-
currentItemStrokeStyle:
|
|
761
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
849
762
|
currentItemRoughness: number;
|
|
850
763
|
currentItemOpacity: number;
|
|
851
|
-
currentItemFontFamily:
|
|
764
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
852
765
|
currentItemFontSize: number;
|
|
853
|
-
currentItemTextAlign:
|
|
766
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
854
767
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
855
768
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
856
|
-
currentHoveredFontFamily:
|
|
769
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
857
770
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
858
|
-
currentItemArrowType: "
|
|
771
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
859
772
|
viewBackgroundColor: string;
|
|
860
773
|
cursorButton: "up" | "down";
|
|
861
774
|
scrolledOutside: boolean;
|
|
@@ -863,22 +776,28 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
863
776
|
isResizing: boolean;
|
|
864
777
|
isRotating: boolean;
|
|
865
778
|
openMenu: "canvas" | null;
|
|
866
|
-
openPopup: "
|
|
779
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
867
780
|
openSidebar: {
|
|
868
|
-
name:
|
|
869
|
-
tab?:
|
|
781
|
+
name: import("../types").SidebarName;
|
|
782
|
+
tab?: import("../types").SidebarTabName;
|
|
870
783
|
} | null;
|
|
871
|
-
openDialog: {
|
|
784
|
+
openDialog: null | {
|
|
872
785
|
name: "imageExport" | "help" | "jsonExport";
|
|
873
786
|
} | {
|
|
874
787
|
name: "ttd";
|
|
875
|
-
tab: "
|
|
788
|
+
tab: "text-to-diagram" | "mermaid";
|
|
876
789
|
} | {
|
|
877
790
|
name: "commandPalette";
|
|
791
|
+
} | {
|
|
792
|
+
name: "settings";
|
|
878
793
|
} | {
|
|
879
794
|
name: "elementLinkSelector";
|
|
880
|
-
sourceElementId:
|
|
881
|
-
} |
|
|
795
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
796
|
+
} | {
|
|
797
|
+
name: "charts";
|
|
798
|
+
data: import("../charts").Spreadsheet;
|
|
799
|
+
rawText: string;
|
|
800
|
+
};
|
|
882
801
|
defaultSidebarDockedPreference: boolean;
|
|
883
802
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
884
803
|
selectedElementIds: Readonly<{
|
|
@@ -894,8 +813,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
894
813
|
shouldCacheIgnoreZoom: boolean;
|
|
895
814
|
toast: {
|
|
896
815
|
message: string;
|
|
897
|
-
closable?: boolean
|
|
898
|
-
duration?: number
|
|
816
|
+
closable?: boolean;
|
|
817
|
+
duration?: number;
|
|
899
818
|
} | null;
|
|
900
819
|
zenModeEnabled: boolean;
|
|
901
820
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -906,45 +825,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
906
825
|
selectedGroupIds: {
|
|
907
826
|
[groupId: string]: boolean;
|
|
908
827
|
};
|
|
909
|
-
editingGroupId:
|
|
828
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
910
829
|
width: number;
|
|
911
830
|
height: number;
|
|
912
831
|
offsetTop: number;
|
|
913
832
|
offsetLeft: number;
|
|
914
833
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
915
|
-
collaborators: Map<import("../types").SocketId,
|
|
916
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
917
|
-
button?: "up" | "down" | undefined;
|
|
918
|
-
selectedElementIds?: Readonly<{
|
|
919
|
-
[id: string]: true;
|
|
920
|
-
}> | undefined;
|
|
921
|
-
username?: string | null | undefined;
|
|
922
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
923
|
-
color?: {
|
|
924
|
-
background: string;
|
|
925
|
-
stroke: string;
|
|
926
|
-
} | undefined;
|
|
927
|
-
avatarUrl?: string | undefined;
|
|
928
|
-
id?: string | undefined;
|
|
929
|
-
socketId?: import("../types").SocketId | undefined;
|
|
930
|
-
isCurrentUser?: boolean | undefined;
|
|
931
|
-
isInCall?: boolean | undefined;
|
|
932
|
-
isSpeaking?: boolean | undefined;
|
|
933
|
-
isMuted?: boolean | undefined;
|
|
934
|
-
}>>;
|
|
834
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
935
835
|
stats: {
|
|
936
836
|
open: boolean;
|
|
937
837
|
panels: number;
|
|
938
838
|
};
|
|
939
|
-
|
|
940
|
-
pasteDialog: {
|
|
941
|
-
shown: false;
|
|
942
|
-
data: null;
|
|
943
|
-
} | {
|
|
944
|
-
shown: true;
|
|
945
|
-
data: import("../charts").Spreadsheet;
|
|
946
|
-
};
|
|
947
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
839
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
948
840
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
949
841
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
950
842
|
originSnapOffset: {
|
|
@@ -955,34 +847,29 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
955
847
|
userToFollow: import("../types").UserToFollow | null;
|
|
956
848
|
followedBy: Set<import("../types").SocketId>;
|
|
957
849
|
isCropping: boolean;
|
|
958
|
-
croppingElementId:
|
|
850
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
959
851
|
searchMatches: Readonly<{
|
|
960
|
-
focusedId:
|
|
852
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
961
853
|
matches: readonly import("../types").SearchMatch[];
|
|
962
854
|
}> | null;
|
|
963
855
|
activeLockedId: string | null;
|
|
964
856
|
lockedMultiSelections: {
|
|
965
857
|
[groupId: string]: true;
|
|
966
858
|
};
|
|
967
|
-
|
|
859
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
968
860
|
};
|
|
969
861
|
captureUpdate: "EVENTUALLY";
|
|
970
862
|
};
|
|
971
863
|
export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
972
|
-
canvasOffsets?:
|
|
973
|
-
top: number;
|
|
974
|
-
right: number;
|
|
975
|
-
bottom: number;
|
|
976
|
-
left: number;
|
|
977
|
-
}> | undefined;
|
|
864
|
+
canvasOffsets?: Offsets;
|
|
978
865
|
targetElements: readonly ExcalidrawElement[];
|
|
979
866
|
appState: Readonly<AppState>;
|
|
980
867
|
/** whether to fit content to viewport (beyond >100%) */
|
|
981
868
|
fitToViewport: boolean;
|
|
982
869
|
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
983
|
-
viewportZoomFactor?: number
|
|
984
|
-
minZoom?: number
|
|
985
|
-
maxZoom?: number
|
|
870
|
+
viewportZoomFactor?: number;
|
|
871
|
+
minZoom?: number;
|
|
872
|
+
maxZoom?: number;
|
|
986
873
|
}) => {
|
|
987
874
|
appState: {
|
|
988
875
|
scrollX: number;
|
|
@@ -997,10 +884,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
997
884
|
} | null;
|
|
998
885
|
showWelcomeScreen: boolean;
|
|
999
886
|
isLoading: boolean;
|
|
1000
|
-
errorMessage:
|
|
887
|
+
errorMessage: React.ReactNode;
|
|
1001
888
|
activeEmbeddable: {
|
|
1002
889
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1003
|
-
state: "
|
|
890
|
+
state: "hover" | "active";
|
|
1004
891
|
} | null;
|
|
1005
892
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1006
893
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1008,7 +895,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1008
895
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1009
896
|
isBindingEnabled: boolean;
|
|
1010
897
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1011
|
-
|
|
898
|
+
suggestedBinding: {
|
|
899
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
900
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
901
|
+
} | null;
|
|
1012
902
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1013
903
|
frameRendering: {
|
|
1014
904
|
enabled: boolean;
|
|
@@ -1036,19 +926,19 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1036
926
|
exportScale: number;
|
|
1037
927
|
currentItemStrokeColor: string;
|
|
1038
928
|
currentItemBackgroundColor: string;
|
|
1039
|
-
currentItemFillStyle:
|
|
929
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1040
930
|
currentItemStrokeWidth: number;
|
|
1041
|
-
currentItemStrokeStyle:
|
|
931
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1042
932
|
currentItemRoughness: number;
|
|
1043
933
|
currentItemOpacity: number;
|
|
1044
|
-
currentItemFontFamily:
|
|
934
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1045
935
|
currentItemFontSize: number;
|
|
1046
|
-
currentItemTextAlign:
|
|
936
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1047
937
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1048
938
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1049
|
-
currentHoveredFontFamily:
|
|
939
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1050
940
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1051
|
-
currentItemArrowType: "
|
|
941
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1052
942
|
viewBackgroundColor: string;
|
|
1053
943
|
cursorButton: "up" | "down";
|
|
1054
944
|
scrolledOutside: boolean;
|
|
@@ -1056,22 +946,28 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1056
946
|
isResizing: boolean;
|
|
1057
947
|
isRotating: boolean;
|
|
1058
948
|
openMenu: "canvas" | null;
|
|
1059
|
-
openPopup: "
|
|
949
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1060
950
|
openSidebar: {
|
|
1061
|
-
name:
|
|
1062
|
-
tab?:
|
|
951
|
+
name: import("../types").SidebarName;
|
|
952
|
+
tab?: import("../types").SidebarTabName;
|
|
1063
953
|
} | null;
|
|
1064
|
-
openDialog: {
|
|
954
|
+
openDialog: null | {
|
|
1065
955
|
name: "imageExport" | "help" | "jsonExport";
|
|
1066
956
|
} | {
|
|
1067
957
|
name: "ttd";
|
|
1068
|
-
tab: "
|
|
958
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1069
959
|
} | {
|
|
1070
960
|
name: "commandPalette";
|
|
961
|
+
} | {
|
|
962
|
+
name: "settings";
|
|
1071
963
|
} | {
|
|
1072
964
|
name: "elementLinkSelector";
|
|
1073
|
-
sourceElementId:
|
|
1074
|
-
} |
|
|
965
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
966
|
+
} | {
|
|
967
|
+
name: "charts";
|
|
968
|
+
data: import("../charts").Spreadsheet;
|
|
969
|
+
rawText: string;
|
|
970
|
+
};
|
|
1075
971
|
defaultSidebarDockedPreference: boolean;
|
|
1076
972
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1077
973
|
selectedElementIds: Readonly<{
|
|
@@ -1087,8 +983,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1087
983
|
shouldCacheIgnoreZoom: boolean;
|
|
1088
984
|
toast: {
|
|
1089
985
|
message: string;
|
|
1090
|
-
closable?: boolean
|
|
1091
|
-
duration?: number
|
|
986
|
+
closable?: boolean;
|
|
987
|
+
duration?: number;
|
|
1092
988
|
} | null;
|
|
1093
989
|
zenModeEnabled: boolean;
|
|
1094
990
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1099,45 +995,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1099
995
|
selectedGroupIds: {
|
|
1100
996
|
[groupId: string]: boolean;
|
|
1101
997
|
};
|
|
1102
|
-
editingGroupId:
|
|
998
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1103
999
|
width: number;
|
|
1104
1000
|
height: number;
|
|
1105
1001
|
offsetTop: number;
|
|
1106
1002
|
offsetLeft: number;
|
|
1107
1003
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1108
|
-
collaborators: Map<import("../types").SocketId,
|
|
1109
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1110
|
-
button?: "up" | "down" | undefined;
|
|
1111
|
-
selectedElementIds?: Readonly<{
|
|
1112
|
-
[id: string]: true;
|
|
1113
|
-
}> | undefined;
|
|
1114
|
-
username?: string | null | undefined;
|
|
1115
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1116
|
-
color?: {
|
|
1117
|
-
background: string;
|
|
1118
|
-
stroke: string;
|
|
1119
|
-
} | undefined;
|
|
1120
|
-
avatarUrl?: string | undefined;
|
|
1121
|
-
id?: string | undefined;
|
|
1122
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1123
|
-
isCurrentUser?: boolean | undefined;
|
|
1124
|
-
isInCall?: boolean | undefined;
|
|
1125
|
-
isSpeaking?: boolean | undefined;
|
|
1126
|
-
isMuted?: boolean | undefined;
|
|
1127
|
-
}>>;
|
|
1004
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1128
1005
|
stats: {
|
|
1129
1006
|
open: boolean;
|
|
1130
1007
|
panels: number;
|
|
1131
1008
|
};
|
|
1132
|
-
|
|
1133
|
-
pasteDialog: {
|
|
1134
|
-
shown: false;
|
|
1135
|
-
data: null;
|
|
1136
|
-
} | {
|
|
1137
|
-
shown: true;
|
|
1138
|
-
data: import("../charts").Spreadsheet;
|
|
1139
|
-
};
|
|
1140
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1009
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1141
1010
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1142
1011
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1143
1012
|
originSnapOffset: {
|
|
@@ -1148,16 +1017,16 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1148
1017
|
userToFollow: import("../types").UserToFollow | null;
|
|
1149
1018
|
followedBy: Set<import("../types").SocketId>;
|
|
1150
1019
|
isCropping: boolean;
|
|
1151
|
-
croppingElementId:
|
|
1020
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1152
1021
|
searchMatches: Readonly<{
|
|
1153
|
-
focusedId:
|
|
1022
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1154
1023
|
matches: readonly import("../types").SearchMatch[];
|
|
1155
1024
|
}> | null;
|
|
1156
1025
|
activeLockedId: string | null;
|
|
1157
1026
|
lockedMultiSelections: {
|
|
1158
1027
|
[groupId: string]: true;
|
|
1159
1028
|
};
|
|
1160
|
-
|
|
1029
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1161
1030
|
};
|
|
1162
1031
|
captureUpdate: "EVENTUALLY";
|
|
1163
1032
|
};
|
|
@@ -1168,7 +1037,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1168
1037
|
trackEvent: {
|
|
1169
1038
|
category: "canvas";
|
|
1170
1039
|
};
|
|
1171
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1040
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1172
1041
|
appState: {
|
|
1173
1042
|
scrollX: number;
|
|
1174
1043
|
scrollY: number;
|
|
@@ -1182,10 +1051,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1182
1051
|
} | null;
|
|
1183
1052
|
showWelcomeScreen: boolean;
|
|
1184
1053
|
isLoading: boolean;
|
|
1185
|
-
errorMessage:
|
|
1054
|
+
errorMessage: React.ReactNode;
|
|
1186
1055
|
activeEmbeddable: {
|
|
1187
1056
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1188
|
-
state: "
|
|
1057
|
+
state: "hover" | "active";
|
|
1189
1058
|
} | null;
|
|
1190
1059
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1191
1060
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1193,7 +1062,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1193
1062
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1194
1063
|
isBindingEnabled: boolean;
|
|
1195
1064
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1196
|
-
|
|
1065
|
+
suggestedBinding: {
|
|
1066
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1067
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1068
|
+
} | null;
|
|
1197
1069
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1198
1070
|
frameRendering: {
|
|
1199
1071
|
enabled: boolean;
|
|
@@ -1221,19 +1093,19 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1221
1093
|
exportScale: number;
|
|
1222
1094
|
currentItemStrokeColor: string;
|
|
1223
1095
|
currentItemBackgroundColor: string;
|
|
1224
|
-
currentItemFillStyle:
|
|
1096
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1225
1097
|
currentItemStrokeWidth: number;
|
|
1226
|
-
currentItemStrokeStyle:
|
|
1098
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1227
1099
|
currentItemRoughness: number;
|
|
1228
1100
|
currentItemOpacity: number;
|
|
1229
|
-
currentItemFontFamily:
|
|
1101
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1230
1102
|
currentItemFontSize: number;
|
|
1231
|
-
currentItemTextAlign:
|
|
1103
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1232
1104
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1233
1105
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1234
|
-
currentHoveredFontFamily:
|
|
1106
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1235
1107
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1236
|
-
currentItemArrowType: "
|
|
1108
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1237
1109
|
viewBackgroundColor: string;
|
|
1238
1110
|
cursorButton: "up" | "down";
|
|
1239
1111
|
scrolledOutside: boolean;
|
|
@@ -1241,22 +1113,28 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1241
1113
|
isResizing: boolean;
|
|
1242
1114
|
isRotating: boolean;
|
|
1243
1115
|
openMenu: "canvas" | null;
|
|
1244
|
-
openPopup: "
|
|
1116
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1245
1117
|
openSidebar: {
|
|
1246
|
-
name:
|
|
1247
|
-
tab?:
|
|
1118
|
+
name: import("../types").SidebarName;
|
|
1119
|
+
tab?: import("../types").SidebarTabName;
|
|
1248
1120
|
} | null;
|
|
1249
|
-
openDialog: {
|
|
1121
|
+
openDialog: null | {
|
|
1250
1122
|
name: "imageExport" | "help" | "jsonExport";
|
|
1251
1123
|
} | {
|
|
1252
1124
|
name: "ttd";
|
|
1253
|
-
tab: "
|
|
1125
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1254
1126
|
} | {
|
|
1255
1127
|
name: "commandPalette";
|
|
1128
|
+
} | {
|
|
1129
|
+
name: "settings";
|
|
1256
1130
|
} | {
|
|
1257
1131
|
name: "elementLinkSelector";
|
|
1258
|
-
sourceElementId:
|
|
1259
|
-
} |
|
|
1132
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1133
|
+
} | {
|
|
1134
|
+
name: "charts";
|
|
1135
|
+
data: import("../charts").Spreadsheet;
|
|
1136
|
+
rawText: string;
|
|
1137
|
+
};
|
|
1260
1138
|
defaultSidebarDockedPreference: boolean;
|
|
1261
1139
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1262
1140
|
selectedElementIds: Readonly<{
|
|
@@ -1272,8 +1150,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1272
1150
|
shouldCacheIgnoreZoom: boolean;
|
|
1273
1151
|
toast: {
|
|
1274
1152
|
message: string;
|
|
1275
|
-
closable?: boolean
|
|
1276
|
-
duration?: number
|
|
1153
|
+
closable?: boolean;
|
|
1154
|
+
duration?: number;
|
|
1277
1155
|
} | null;
|
|
1278
1156
|
zenModeEnabled: boolean;
|
|
1279
1157
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1284,45 +1162,18 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1284
1162
|
selectedGroupIds: {
|
|
1285
1163
|
[groupId: string]: boolean;
|
|
1286
1164
|
};
|
|
1287
|
-
editingGroupId:
|
|
1165
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1288
1166
|
width: number;
|
|
1289
1167
|
height: number;
|
|
1290
1168
|
offsetTop: number;
|
|
1291
1169
|
offsetLeft: number;
|
|
1292
1170
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1293
|
-
collaborators: Map<import("../types").SocketId,
|
|
1294
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1295
|
-
button?: "up" | "down" | undefined;
|
|
1296
|
-
selectedElementIds?: Readonly<{
|
|
1297
|
-
[id: string]: true;
|
|
1298
|
-
}> | undefined;
|
|
1299
|
-
username?: string | null | undefined;
|
|
1300
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1301
|
-
color?: {
|
|
1302
|
-
background: string;
|
|
1303
|
-
stroke: string;
|
|
1304
|
-
} | undefined;
|
|
1305
|
-
avatarUrl?: string | undefined;
|
|
1306
|
-
id?: string | undefined;
|
|
1307
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1308
|
-
isCurrentUser?: boolean | undefined;
|
|
1309
|
-
isInCall?: boolean | undefined;
|
|
1310
|
-
isSpeaking?: boolean | undefined;
|
|
1311
|
-
isMuted?: boolean | undefined;
|
|
1312
|
-
}>>;
|
|
1171
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1313
1172
|
stats: {
|
|
1314
1173
|
open: boolean;
|
|
1315
1174
|
panels: number;
|
|
1316
1175
|
};
|
|
1317
|
-
|
|
1318
|
-
pasteDialog: {
|
|
1319
|
-
shown: false;
|
|
1320
|
-
data: null;
|
|
1321
|
-
} | {
|
|
1322
|
-
shown: true;
|
|
1323
|
-
data: import("../charts").Spreadsheet;
|
|
1324
|
-
};
|
|
1325
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1176
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1326
1177
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1327
1178
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1328
1179
|
originSnapOffset: {
|
|
@@ -1333,16 +1184,16 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1333
1184
|
userToFollow: import("../types").UserToFollow | null;
|
|
1334
1185
|
followedBy: Set<import("../types").SocketId>;
|
|
1335
1186
|
isCropping: boolean;
|
|
1336
|
-
croppingElementId:
|
|
1187
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1337
1188
|
searchMatches: Readonly<{
|
|
1338
|
-
focusedId:
|
|
1189
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1339
1190
|
matches: readonly import("../types").SearchMatch[];
|
|
1340
1191
|
}> | null;
|
|
1341
1192
|
activeLockedId: string | null;
|
|
1342
1193
|
lockedMultiSelections: {
|
|
1343
1194
|
[groupId: string]: true;
|
|
1344
1195
|
};
|
|
1345
|
-
|
|
1196
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1346
1197
|
};
|
|
1347
1198
|
captureUpdate: "EVENTUALLY";
|
|
1348
1199
|
};
|
|
@@ -1357,7 +1208,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1357
1208
|
trackEvent: {
|
|
1358
1209
|
category: "canvas";
|
|
1359
1210
|
};
|
|
1360
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1211
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1361
1212
|
appState: {
|
|
1362
1213
|
scrollX: number;
|
|
1363
1214
|
scrollY: number;
|
|
@@ -1371,10 +1222,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1371
1222
|
} | null;
|
|
1372
1223
|
showWelcomeScreen: boolean;
|
|
1373
1224
|
isLoading: boolean;
|
|
1374
|
-
errorMessage:
|
|
1225
|
+
errorMessage: React.ReactNode;
|
|
1375
1226
|
activeEmbeddable: {
|
|
1376
1227
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1377
|
-
state: "
|
|
1228
|
+
state: "hover" | "active";
|
|
1378
1229
|
} | null;
|
|
1379
1230
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1380
1231
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1382,7 +1233,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1382
1233
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1383
1234
|
isBindingEnabled: boolean;
|
|
1384
1235
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1385
|
-
|
|
1236
|
+
suggestedBinding: {
|
|
1237
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1238
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1239
|
+
} | null;
|
|
1386
1240
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1387
1241
|
frameRendering: {
|
|
1388
1242
|
enabled: boolean;
|
|
@@ -1410,19 +1264,19 @@ export declare const actionZoomToFitSelection: {
|
|
|
1410
1264
|
exportScale: number;
|
|
1411
1265
|
currentItemStrokeColor: string;
|
|
1412
1266
|
currentItemBackgroundColor: string;
|
|
1413
|
-
currentItemFillStyle:
|
|
1267
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1414
1268
|
currentItemStrokeWidth: number;
|
|
1415
|
-
currentItemStrokeStyle:
|
|
1269
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1416
1270
|
currentItemRoughness: number;
|
|
1417
1271
|
currentItemOpacity: number;
|
|
1418
|
-
currentItemFontFamily:
|
|
1272
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1419
1273
|
currentItemFontSize: number;
|
|
1420
|
-
currentItemTextAlign:
|
|
1274
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1421
1275
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1422
1276
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1423
|
-
currentHoveredFontFamily:
|
|
1277
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1424
1278
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1425
|
-
currentItemArrowType: "
|
|
1279
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1426
1280
|
viewBackgroundColor: string;
|
|
1427
1281
|
cursorButton: "up" | "down";
|
|
1428
1282
|
scrolledOutside: boolean;
|
|
@@ -1430,22 +1284,28 @@ export declare const actionZoomToFitSelection: {
|
|
|
1430
1284
|
isResizing: boolean;
|
|
1431
1285
|
isRotating: boolean;
|
|
1432
1286
|
openMenu: "canvas" | null;
|
|
1433
|
-
openPopup: "
|
|
1287
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1434
1288
|
openSidebar: {
|
|
1435
|
-
name:
|
|
1436
|
-
tab?:
|
|
1289
|
+
name: import("../types").SidebarName;
|
|
1290
|
+
tab?: import("../types").SidebarTabName;
|
|
1437
1291
|
} | null;
|
|
1438
|
-
openDialog: {
|
|
1292
|
+
openDialog: null | {
|
|
1439
1293
|
name: "imageExport" | "help" | "jsonExport";
|
|
1440
1294
|
} | {
|
|
1441
1295
|
name: "ttd";
|
|
1442
|
-
tab: "
|
|
1296
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1443
1297
|
} | {
|
|
1444
1298
|
name: "commandPalette";
|
|
1299
|
+
} | {
|
|
1300
|
+
name: "settings";
|
|
1445
1301
|
} | {
|
|
1446
1302
|
name: "elementLinkSelector";
|
|
1447
|
-
sourceElementId:
|
|
1448
|
-
} |
|
|
1303
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1304
|
+
} | {
|
|
1305
|
+
name: "charts";
|
|
1306
|
+
data: import("../charts").Spreadsheet;
|
|
1307
|
+
rawText: string;
|
|
1308
|
+
};
|
|
1449
1309
|
defaultSidebarDockedPreference: boolean;
|
|
1450
1310
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1451
1311
|
selectedElementIds: Readonly<{
|
|
@@ -1461,8 +1321,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1461
1321
|
shouldCacheIgnoreZoom: boolean;
|
|
1462
1322
|
toast: {
|
|
1463
1323
|
message: string;
|
|
1464
|
-
closable?: boolean
|
|
1465
|
-
duration?: number
|
|
1324
|
+
closable?: boolean;
|
|
1325
|
+
duration?: number;
|
|
1466
1326
|
} | null;
|
|
1467
1327
|
zenModeEnabled: boolean;
|
|
1468
1328
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1473,45 +1333,18 @@ export declare const actionZoomToFitSelection: {
|
|
|
1473
1333
|
selectedGroupIds: {
|
|
1474
1334
|
[groupId: string]: boolean;
|
|
1475
1335
|
};
|
|
1476
|
-
editingGroupId:
|
|
1336
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1477
1337
|
width: number;
|
|
1478
1338
|
height: number;
|
|
1479
1339
|
offsetTop: number;
|
|
1480
1340
|
offsetLeft: number;
|
|
1481
1341
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1482
|
-
collaborators: Map<import("../types").SocketId,
|
|
1483
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1484
|
-
button?: "up" | "down" | undefined;
|
|
1485
|
-
selectedElementIds?: Readonly<{
|
|
1486
|
-
[id: string]: true;
|
|
1487
|
-
}> | undefined;
|
|
1488
|
-
username?: string | null | undefined;
|
|
1489
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1490
|
-
color?: {
|
|
1491
|
-
background: string;
|
|
1492
|
-
stroke: string;
|
|
1493
|
-
} | undefined;
|
|
1494
|
-
avatarUrl?: string | undefined;
|
|
1495
|
-
id?: string | undefined;
|
|
1496
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1497
|
-
isCurrentUser?: boolean | undefined;
|
|
1498
|
-
isInCall?: boolean | undefined;
|
|
1499
|
-
isSpeaking?: boolean | undefined;
|
|
1500
|
-
isMuted?: boolean | undefined;
|
|
1501
|
-
}>>;
|
|
1342
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1502
1343
|
stats: {
|
|
1503
1344
|
open: boolean;
|
|
1504
1345
|
panels: number;
|
|
1505
1346
|
};
|
|
1506
|
-
|
|
1507
|
-
pasteDialog: {
|
|
1508
|
-
shown: false;
|
|
1509
|
-
data: null;
|
|
1510
|
-
} | {
|
|
1511
|
-
shown: true;
|
|
1512
|
-
data: import("../charts").Spreadsheet;
|
|
1513
|
-
};
|
|
1514
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1347
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1515
1348
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1516
1349
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1517
1350
|
originSnapOffset: {
|
|
@@ -1522,16 +1355,16 @@ export declare const actionZoomToFitSelection: {
|
|
|
1522
1355
|
userToFollow: import("../types").UserToFollow | null;
|
|
1523
1356
|
followedBy: Set<import("../types").SocketId>;
|
|
1524
1357
|
isCropping: boolean;
|
|
1525
|
-
croppingElementId:
|
|
1358
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1526
1359
|
searchMatches: Readonly<{
|
|
1527
|
-
focusedId:
|
|
1360
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1528
1361
|
matches: readonly import("../types").SearchMatch[];
|
|
1529
1362
|
}> | null;
|
|
1530
1363
|
activeLockedId: string | null;
|
|
1531
1364
|
lockedMultiSelections: {
|
|
1532
1365
|
[groupId: string]: true;
|
|
1533
1366
|
};
|
|
1534
|
-
|
|
1367
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1535
1368
|
};
|
|
1536
1369
|
captureUpdate: "EVENTUALLY";
|
|
1537
1370
|
};
|
|
@@ -1547,7 +1380,7 @@ export declare const actionZoomToFit: {
|
|
|
1547
1380
|
trackEvent: {
|
|
1548
1381
|
category: "canvas";
|
|
1549
1382
|
};
|
|
1550
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1383
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1551
1384
|
appState: {
|
|
1552
1385
|
scrollX: number;
|
|
1553
1386
|
scrollY: number;
|
|
@@ -1561,10 +1394,10 @@ export declare const actionZoomToFit: {
|
|
|
1561
1394
|
} | null;
|
|
1562
1395
|
showWelcomeScreen: boolean;
|
|
1563
1396
|
isLoading: boolean;
|
|
1564
|
-
errorMessage:
|
|
1397
|
+
errorMessage: React.ReactNode;
|
|
1565
1398
|
activeEmbeddable: {
|
|
1566
1399
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1567
|
-
state: "
|
|
1400
|
+
state: "hover" | "active";
|
|
1568
1401
|
} | null;
|
|
1569
1402
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1570
1403
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1572,7 +1405,10 @@ export declare const actionZoomToFit: {
|
|
|
1572
1405
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1573
1406
|
isBindingEnabled: boolean;
|
|
1574
1407
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1575
|
-
|
|
1408
|
+
suggestedBinding: {
|
|
1409
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1410
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1411
|
+
} | null;
|
|
1576
1412
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1577
1413
|
frameRendering: {
|
|
1578
1414
|
enabled: boolean;
|
|
@@ -1600,19 +1436,19 @@ export declare const actionZoomToFit: {
|
|
|
1600
1436
|
exportScale: number;
|
|
1601
1437
|
currentItemStrokeColor: string;
|
|
1602
1438
|
currentItemBackgroundColor: string;
|
|
1603
|
-
currentItemFillStyle:
|
|
1439
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1604
1440
|
currentItemStrokeWidth: number;
|
|
1605
|
-
currentItemStrokeStyle:
|
|
1441
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1606
1442
|
currentItemRoughness: number;
|
|
1607
1443
|
currentItemOpacity: number;
|
|
1608
|
-
currentItemFontFamily:
|
|
1444
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1609
1445
|
currentItemFontSize: number;
|
|
1610
|
-
currentItemTextAlign:
|
|
1446
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1611
1447
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1612
1448
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1613
|
-
currentHoveredFontFamily:
|
|
1449
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1614
1450
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1615
|
-
currentItemArrowType: "
|
|
1451
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1616
1452
|
viewBackgroundColor: string;
|
|
1617
1453
|
cursorButton: "up" | "down";
|
|
1618
1454
|
scrolledOutside: boolean;
|
|
@@ -1620,214 +1456,28 @@ export declare const actionZoomToFit: {
|
|
|
1620
1456
|
isResizing: boolean;
|
|
1621
1457
|
isRotating: boolean;
|
|
1622
1458
|
openMenu: "canvas" | null;
|
|
1623
|
-
openPopup: "
|
|
1459
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1624
1460
|
openSidebar: {
|
|
1625
|
-
name:
|
|
1626
|
-
tab?:
|
|
1461
|
+
name: import("../types").SidebarName;
|
|
1462
|
+
tab?: import("../types").SidebarTabName;
|
|
1627
1463
|
} | null;
|
|
1628
|
-
openDialog: {
|
|
1464
|
+
openDialog: null | {
|
|
1629
1465
|
name: "imageExport" | "help" | "jsonExport";
|
|
1630
1466
|
} | {
|
|
1631
1467
|
name: "ttd";
|
|
1632
|
-
tab: "
|
|
1468
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1633
1469
|
} | {
|
|
1634
1470
|
name: "commandPalette";
|
|
1471
|
+
} | {
|
|
1472
|
+
name: "settings";
|
|
1635
1473
|
} | {
|
|
1636
1474
|
name: "elementLinkSelector";
|
|
1637
|
-
sourceElementId:
|
|
1638
|
-
} | null;
|
|
1639
|
-
defaultSidebarDockedPreference: boolean;
|
|
1640
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1641
|
-
selectedElementIds: Readonly<{
|
|
1642
|
-
[id: string]: true;
|
|
1643
|
-
}>;
|
|
1644
|
-
hoveredElementIds: Readonly<{
|
|
1645
|
-
[id: string]: true;
|
|
1646
|
-
}>;
|
|
1647
|
-
previousSelectedElementIds: {
|
|
1648
|
-
[id: string]: true;
|
|
1649
|
-
};
|
|
1650
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1651
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1652
|
-
toast: {
|
|
1653
|
-
message: string;
|
|
1654
|
-
closable?: boolean | undefined;
|
|
1655
|
-
duration?: number | undefined;
|
|
1656
|
-
} | null;
|
|
1657
|
-
zenModeEnabled: boolean;
|
|
1658
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1659
|
-
gridSize: number;
|
|
1660
|
-
gridStep: number;
|
|
1661
|
-
gridModeEnabled: boolean;
|
|
1662
|
-
viewModeEnabled: boolean;
|
|
1663
|
-
selectedGroupIds: {
|
|
1664
|
-
[groupId: string]: boolean;
|
|
1665
|
-
};
|
|
1666
|
-
editingGroupId: string | null;
|
|
1667
|
-
width: number;
|
|
1668
|
-
height: number;
|
|
1669
|
-
offsetTop: number;
|
|
1670
|
-
offsetLeft: number;
|
|
1671
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1672
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1673
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1674
|
-
button?: "up" | "down" | undefined;
|
|
1675
|
-
selectedElementIds?: Readonly<{
|
|
1676
|
-
[id: string]: true;
|
|
1677
|
-
}> | undefined;
|
|
1678
|
-
username?: string | null | undefined;
|
|
1679
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1680
|
-
color?: {
|
|
1681
|
-
background: string;
|
|
1682
|
-
stroke: string;
|
|
1683
|
-
} | undefined;
|
|
1684
|
-
avatarUrl?: string | undefined;
|
|
1685
|
-
id?: string | undefined;
|
|
1686
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1687
|
-
isCurrentUser?: boolean | undefined;
|
|
1688
|
-
isInCall?: boolean | undefined;
|
|
1689
|
-
isSpeaking?: boolean | undefined;
|
|
1690
|
-
isMuted?: boolean | undefined;
|
|
1691
|
-
}>>;
|
|
1692
|
-
stats: {
|
|
1693
|
-
open: boolean;
|
|
1694
|
-
panels: number;
|
|
1695
|
-
};
|
|
1696
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1697
|
-
pasteDialog: {
|
|
1698
|
-
shown: false;
|
|
1699
|
-
data: null;
|
|
1475
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1700
1476
|
} | {
|
|
1701
|
-
|
|
1477
|
+
name: "charts";
|
|
1702
1478
|
data: import("../charts").Spreadsheet;
|
|
1479
|
+
rawText: string;
|
|
1703
1480
|
};
|
|
1704
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1705
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1706
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1707
|
-
originSnapOffset: {
|
|
1708
|
-
x: number;
|
|
1709
|
-
y: number;
|
|
1710
|
-
} | null;
|
|
1711
|
-
objectsSnapModeEnabled: boolean;
|
|
1712
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1713
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1714
|
-
isCropping: boolean;
|
|
1715
|
-
croppingElementId: string | null;
|
|
1716
|
-
searchMatches: Readonly<{
|
|
1717
|
-
focusedId: string | null;
|
|
1718
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1719
|
-
}> | null;
|
|
1720
|
-
activeLockedId: string | null;
|
|
1721
|
-
lockedMultiSelections: {
|
|
1722
|
-
[groupId: string]: true;
|
|
1723
|
-
};
|
|
1724
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1725
|
-
};
|
|
1726
|
-
captureUpdate: "EVENTUALLY";
|
|
1727
|
-
};
|
|
1728
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1729
|
-
} & {
|
|
1730
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1731
|
-
};
|
|
1732
|
-
export declare const actionToggleTheme: {
|
|
1733
|
-
name: "toggleTheme";
|
|
1734
|
-
label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
|
|
1735
|
-
keywords: string[];
|
|
1736
|
-
icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
1737
|
-
viewMode: true;
|
|
1738
|
-
trackEvent: {
|
|
1739
|
-
category: "canvas";
|
|
1740
|
-
};
|
|
1741
|
-
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1742
|
-
appState: {
|
|
1743
|
-
theme: any;
|
|
1744
|
-
contextMenu: {
|
|
1745
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1746
|
-
top: number;
|
|
1747
|
-
left: number;
|
|
1748
|
-
} | null;
|
|
1749
|
-
showWelcomeScreen: boolean;
|
|
1750
|
-
isLoading: boolean;
|
|
1751
|
-
errorMessage: import("react").ReactNode;
|
|
1752
|
-
activeEmbeddable: {
|
|
1753
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1754
|
-
state: "active" | "hover";
|
|
1755
|
-
} | null;
|
|
1756
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1757
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1758
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1759
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1760
|
-
isBindingEnabled: boolean;
|
|
1761
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1762
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1763
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1764
|
-
frameRendering: {
|
|
1765
|
-
enabled: boolean;
|
|
1766
|
-
name: boolean;
|
|
1767
|
-
outline: boolean;
|
|
1768
|
-
clip: boolean;
|
|
1769
|
-
};
|
|
1770
|
-
editingFrame: string | null;
|
|
1771
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1772
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1773
|
-
activeTool: {
|
|
1774
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1775
|
-
locked: boolean;
|
|
1776
|
-
fromSelection: boolean;
|
|
1777
|
-
} & import("../types").ActiveTool;
|
|
1778
|
-
preferredSelectionTool: {
|
|
1779
|
-
type: "selection" | "lasso";
|
|
1780
|
-
initialized: boolean;
|
|
1781
|
-
};
|
|
1782
|
-
penMode: boolean;
|
|
1783
|
-
penDetected: boolean;
|
|
1784
|
-
exportBackground: boolean;
|
|
1785
|
-
exportEmbedScene: boolean;
|
|
1786
|
-
exportWithDarkMode: boolean;
|
|
1787
|
-
exportScale: number;
|
|
1788
|
-
currentItemStrokeColor: string;
|
|
1789
|
-
currentItemBackgroundColor: string;
|
|
1790
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1791
|
-
currentItemStrokeWidth: number;
|
|
1792
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1793
|
-
currentItemRoughness: number;
|
|
1794
|
-
currentItemOpacity: number;
|
|
1795
|
-
currentItemFontFamily: number;
|
|
1796
|
-
currentItemFontSize: number;
|
|
1797
|
-
currentItemTextAlign: string;
|
|
1798
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1799
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1800
|
-
currentHoveredFontFamily: number | null;
|
|
1801
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1802
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1803
|
-
viewBackgroundColor: string;
|
|
1804
|
-
scrollX: number;
|
|
1805
|
-
scrollY: number;
|
|
1806
|
-
cursorButton: "up" | "down";
|
|
1807
|
-
scrolledOutside: boolean;
|
|
1808
|
-
name: string | null;
|
|
1809
|
-
isResizing: boolean;
|
|
1810
|
-
isRotating: boolean;
|
|
1811
|
-
zoom: Readonly<{
|
|
1812
|
-
value: import("../types").NormalizedZoomValue;
|
|
1813
|
-
}>;
|
|
1814
|
-
openMenu: "canvas" | null;
|
|
1815
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1816
|
-
openSidebar: {
|
|
1817
|
-
name: string;
|
|
1818
|
-
tab?: string | undefined;
|
|
1819
|
-
} | null;
|
|
1820
|
-
openDialog: {
|
|
1821
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1822
|
-
} | {
|
|
1823
|
-
name: "ttd";
|
|
1824
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1825
|
-
} | {
|
|
1826
|
-
name: "commandPalette";
|
|
1827
|
-
} | {
|
|
1828
|
-
name: "elementLinkSelector";
|
|
1829
|
-
sourceElementId: string;
|
|
1830
|
-
} | null;
|
|
1831
1481
|
defaultSidebarDockedPreference: boolean;
|
|
1832
1482
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1833
1483
|
selectedElementIds: Readonly<{
|
|
@@ -1843,10 +1493,11 @@ export declare const actionToggleTheme: {
|
|
|
1843
1493
|
shouldCacheIgnoreZoom: boolean;
|
|
1844
1494
|
toast: {
|
|
1845
1495
|
message: string;
|
|
1846
|
-
closable?: boolean
|
|
1847
|
-
duration?: number
|
|
1496
|
+
closable?: boolean;
|
|
1497
|
+
duration?: number;
|
|
1848
1498
|
} | null;
|
|
1849
1499
|
zenModeEnabled: boolean;
|
|
1500
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1850
1501
|
gridSize: number;
|
|
1851
1502
|
gridStep: number;
|
|
1852
1503
|
gridModeEnabled: boolean;
|
|
@@ -1854,45 +1505,18 @@ export declare const actionToggleTheme: {
|
|
|
1854
1505
|
selectedGroupIds: {
|
|
1855
1506
|
[groupId: string]: boolean;
|
|
1856
1507
|
};
|
|
1857
|
-
editingGroupId:
|
|
1508
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1858
1509
|
width: number;
|
|
1859
1510
|
height: number;
|
|
1860
1511
|
offsetTop: number;
|
|
1861
1512
|
offsetLeft: number;
|
|
1862
1513
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1863
|
-
collaborators: Map<import("../types").SocketId,
|
|
1864
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1865
|
-
button?: "up" | "down" | undefined;
|
|
1866
|
-
selectedElementIds?: Readonly<{
|
|
1867
|
-
[id: string]: true;
|
|
1868
|
-
}> | undefined;
|
|
1869
|
-
username?: string | null | undefined;
|
|
1870
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1871
|
-
color?: {
|
|
1872
|
-
background: string;
|
|
1873
|
-
stroke: string;
|
|
1874
|
-
} | undefined;
|
|
1875
|
-
avatarUrl?: string | undefined;
|
|
1876
|
-
id?: string | undefined;
|
|
1877
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1878
|
-
isCurrentUser?: boolean | undefined;
|
|
1879
|
-
isInCall?: boolean | undefined;
|
|
1880
|
-
isSpeaking?: boolean | undefined;
|
|
1881
|
-
isMuted?: boolean | undefined;
|
|
1882
|
-
}>>;
|
|
1514
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1883
1515
|
stats: {
|
|
1884
1516
|
open: boolean;
|
|
1885
1517
|
panels: number;
|
|
1886
1518
|
};
|
|
1887
|
-
|
|
1888
|
-
pasteDialog: {
|
|
1889
|
-
shown: false;
|
|
1890
|
-
data: null;
|
|
1891
|
-
} | {
|
|
1892
|
-
shown: true;
|
|
1893
|
-
data: import("../charts").Spreadsheet;
|
|
1894
|
-
};
|
|
1895
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1519
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1896
1520
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1897
1521
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1898
1522
|
originSnapOffset: {
|
|
@@ -1903,31 +1527,33 @@ export declare const actionToggleTheme: {
|
|
|
1903
1527
|
userToFollow: import("../types").UserToFollow | null;
|
|
1904
1528
|
followedBy: Set<import("../types").SocketId>;
|
|
1905
1529
|
isCropping: boolean;
|
|
1906
|
-
croppingElementId:
|
|
1530
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1907
1531
|
searchMatches: Readonly<{
|
|
1908
|
-
focusedId:
|
|
1532
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1909
1533
|
matches: readonly import("../types").SearchMatch[];
|
|
1910
1534
|
}> | null;
|
|
1911
1535
|
activeLockedId: string | null;
|
|
1912
1536
|
lockedMultiSelections: {
|
|
1913
1537
|
[groupId: string]: true;
|
|
1914
1538
|
};
|
|
1915
|
-
|
|
1539
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1916
1540
|
};
|
|
1917
1541
|
captureUpdate: "EVENTUALLY";
|
|
1918
1542
|
};
|
|
1919
1543
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1920
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1921
1544
|
} & {
|
|
1922
1545
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1923
1546
|
};
|
|
1547
|
+
export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
|
|
1548
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1549
|
+
};
|
|
1924
1550
|
export declare const actionToggleEraserTool: {
|
|
1925
1551
|
name: "toggleEraserTool";
|
|
1926
1552
|
label: string;
|
|
1927
1553
|
trackEvent: {
|
|
1928
1554
|
category: "toolbar";
|
|
1929
1555
|
};
|
|
1930
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1556
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1931
1557
|
appState: {
|
|
1932
1558
|
selectedElementIds: {};
|
|
1933
1559
|
selectedGroupIds: {};
|
|
@@ -1944,14 +1570,17 @@ export declare const actionToggleEraserTool: {
|
|
|
1944
1570
|
} | null;
|
|
1945
1571
|
showWelcomeScreen: boolean;
|
|
1946
1572
|
isLoading: boolean;
|
|
1947
|
-
errorMessage:
|
|
1573
|
+
errorMessage: React.ReactNode;
|
|
1948
1574
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1949
1575
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1950
1576
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1951
1577
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1952
1578
|
isBindingEnabled: boolean;
|
|
1953
1579
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1954
|
-
|
|
1580
|
+
suggestedBinding: {
|
|
1581
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1582
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1583
|
+
} | null;
|
|
1955
1584
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1956
1585
|
frameRendering: {
|
|
1957
1586
|
enabled: boolean;
|
|
@@ -1974,19 +1603,19 @@ export declare const actionToggleEraserTool: {
|
|
|
1974
1603
|
exportScale: number;
|
|
1975
1604
|
currentItemStrokeColor: string;
|
|
1976
1605
|
currentItemBackgroundColor: string;
|
|
1977
|
-
currentItemFillStyle:
|
|
1606
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1978
1607
|
currentItemStrokeWidth: number;
|
|
1979
|
-
currentItemStrokeStyle:
|
|
1608
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1980
1609
|
currentItemRoughness: number;
|
|
1981
1610
|
currentItemOpacity: number;
|
|
1982
|
-
currentItemFontFamily:
|
|
1611
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1983
1612
|
currentItemFontSize: number;
|
|
1984
|
-
currentItemTextAlign:
|
|
1613
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1985
1614
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1986
1615
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1987
|
-
currentHoveredFontFamily:
|
|
1616
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1988
1617
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1989
|
-
currentItemArrowType: "
|
|
1618
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1990
1619
|
viewBackgroundColor: string;
|
|
1991
1620
|
scrollX: number;
|
|
1992
1621
|
scrollY: number;
|
|
@@ -1995,26 +1624,30 @@ export declare const actionToggleEraserTool: {
|
|
|
1995
1624
|
name: string | null;
|
|
1996
1625
|
isResizing: boolean;
|
|
1997
1626
|
isRotating: boolean;
|
|
1998
|
-
zoom:
|
|
1999
|
-
value: import("../types").NormalizedZoomValue;
|
|
2000
|
-
}>;
|
|
1627
|
+
zoom: import("../types").Zoom;
|
|
2001
1628
|
openMenu: "canvas" | null;
|
|
2002
|
-
openPopup: "
|
|
1629
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2003
1630
|
openSidebar: {
|
|
2004
|
-
name:
|
|
2005
|
-
tab?:
|
|
1631
|
+
name: import("../types").SidebarName;
|
|
1632
|
+
tab?: import("../types").SidebarTabName;
|
|
2006
1633
|
} | null;
|
|
2007
|
-
openDialog: {
|
|
1634
|
+
openDialog: null | {
|
|
2008
1635
|
name: "imageExport" | "help" | "jsonExport";
|
|
2009
1636
|
} | {
|
|
2010
1637
|
name: "ttd";
|
|
2011
|
-
tab: "
|
|
1638
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2012
1639
|
} | {
|
|
2013
1640
|
name: "commandPalette";
|
|
1641
|
+
} | {
|
|
1642
|
+
name: "settings";
|
|
2014
1643
|
} | {
|
|
2015
1644
|
name: "elementLinkSelector";
|
|
2016
|
-
sourceElementId:
|
|
2017
|
-
} |
|
|
1645
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1646
|
+
} | {
|
|
1647
|
+
name: "charts";
|
|
1648
|
+
data: import("../charts").Spreadsheet;
|
|
1649
|
+
rawText: string;
|
|
1650
|
+
};
|
|
2018
1651
|
defaultSidebarDockedPreference: boolean;
|
|
2019
1652
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2020
1653
|
hoveredElementIds: Readonly<{
|
|
@@ -2027,8 +1660,8 @@ export declare const actionToggleEraserTool: {
|
|
|
2027
1660
|
shouldCacheIgnoreZoom: boolean;
|
|
2028
1661
|
toast: {
|
|
2029
1662
|
message: string;
|
|
2030
|
-
closable?: boolean
|
|
2031
|
-
duration?: number
|
|
1663
|
+
closable?: boolean;
|
|
1664
|
+
duration?: number;
|
|
2032
1665
|
} | null;
|
|
2033
1666
|
zenModeEnabled: boolean;
|
|
2034
1667
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2036,45 +1669,18 @@ export declare const actionToggleEraserTool: {
|
|
|
2036
1669
|
gridStep: number;
|
|
2037
1670
|
gridModeEnabled: boolean;
|
|
2038
1671
|
viewModeEnabled: boolean;
|
|
2039
|
-
editingGroupId:
|
|
1672
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2040
1673
|
width: number;
|
|
2041
1674
|
height: number;
|
|
2042
1675
|
offsetTop: number;
|
|
2043
1676
|
offsetLeft: number;
|
|
2044
1677
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2045
|
-
collaborators: Map<import("../types").SocketId,
|
|
2046
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2047
|
-
button?: "up" | "down" | undefined;
|
|
2048
|
-
selectedElementIds?: Readonly<{
|
|
2049
|
-
[id: string]: true;
|
|
2050
|
-
}> | undefined;
|
|
2051
|
-
username?: string | null | undefined;
|
|
2052
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2053
|
-
color?: {
|
|
2054
|
-
background: string;
|
|
2055
|
-
stroke: string;
|
|
2056
|
-
} | undefined;
|
|
2057
|
-
avatarUrl?: string | undefined;
|
|
2058
|
-
id?: string | undefined;
|
|
2059
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2060
|
-
isCurrentUser?: boolean | undefined;
|
|
2061
|
-
isInCall?: boolean | undefined;
|
|
2062
|
-
isSpeaking?: boolean | undefined;
|
|
2063
|
-
isMuted?: boolean | undefined;
|
|
2064
|
-
}>>;
|
|
1678
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2065
1679
|
stats: {
|
|
2066
1680
|
open: boolean;
|
|
2067
1681
|
panels: number;
|
|
2068
1682
|
};
|
|
2069
|
-
|
|
2070
|
-
pasteDialog: {
|
|
2071
|
-
shown: false;
|
|
2072
|
-
data: null;
|
|
2073
|
-
} | {
|
|
2074
|
-
shown: true;
|
|
2075
|
-
data: import("../charts").Spreadsheet;
|
|
2076
|
-
};
|
|
2077
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1683
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2078
1684
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2079
1685
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2080
1686
|
originSnapOffset: {
|
|
@@ -2085,16 +1691,16 @@ export declare const actionToggleEraserTool: {
|
|
|
2085
1691
|
userToFollow: import("../types").UserToFollow | null;
|
|
2086
1692
|
followedBy: Set<import("../types").SocketId>;
|
|
2087
1693
|
isCropping: boolean;
|
|
2088
|
-
croppingElementId:
|
|
1694
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2089
1695
|
searchMatches: Readonly<{
|
|
2090
|
-
focusedId:
|
|
1696
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2091
1697
|
matches: readonly import("../types").SearchMatch[];
|
|
2092
1698
|
}> | null;
|
|
2093
1699
|
activeLockedId: string | null;
|
|
2094
1700
|
lockedMultiSelections: {
|
|
2095
1701
|
[groupId: string]: true;
|
|
2096
1702
|
};
|
|
2097
|
-
|
|
1703
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2098
1704
|
};
|
|
2099
1705
|
captureUpdate: "IMMEDIATELY";
|
|
2100
1706
|
};
|
|
@@ -2110,7 +1716,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2110
1716
|
category: "toolbar";
|
|
2111
1717
|
};
|
|
2112
1718
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
2113
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1719
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
2114
1720
|
appState: {
|
|
2115
1721
|
selectedElementIds: {};
|
|
2116
1722
|
selectedGroupIds: {};
|
|
@@ -2127,14 +1733,17 @@ export declare const actionToggleLassoTool: {
|
|
|
2127
1733
|
} | null;
|
|
2128
1734
|
showWelcomeScreen: boolean;
|
|
2129
1735
|
isLoading: boolean;
|
|
2130
|
-
errorMessage:
|
|
1736
|
+
errorMessage: React.ReactNode;
|
|
2131
1737
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2132
1738
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2133
1739
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2134
1740
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2135
1741
|
isBindingEnabled: boolean;
|
|
2136
1742
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2137
|
-
|
|
1743
|
+
suggestedBinding: {
|
|
1744
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1745
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1746
|
+
} | null;
|
|
2138
1747
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2139
1748
|
frameRendering: {
|
|
2140
1749
|
enabled: boolean;
|
|
@@ -2157,19 +1766,19 @@ export declare const actionToggleLassoTool: {
|
|
|
2157
1766
|
exportScale: number;
|
|
2158
1767
|
currentItemStrokeColor: string;
|
|
2159
1768
|
currentItemBackgroundColor: string;
|
|
2160
|
-
currentItemFillStyle:
|
|
1769
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
2161
1770
|
currentItemStrokeWidth: number;
|
|
2162
|
-
currentItemStrokeStyle:
|
|
1771
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
2163
1772
|
currentItemRoughness: number;
|
|
2164
1773
|
currentItemOpacity: number;
|
|
2165
|
-
currentItemFontFamily:
|
|
1774
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
2166
1775
|
currentItemFontSize: number;
|
|
2167
|
-
currentItemTextAlign:
|
|
1776
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
2168
1777
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2169
1778
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2170
|
-
currentHoveredFontFamily:
|
|
1779
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
2171
1780
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2172
|
-
currentItemArrowType: "
|
|
1781
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2173
1782
|
viewBackgroundColor: string;
|
|
2174
1783
|
scrollX: number;
|
|
2175
1784
|
scrollY: number;
|
|
@@ -2178,26 +1787,30 @@ export declare const actionToggleLassoTool: {
|
|
|
2178
1787
|
name: string | null;
|
|
2179
1788
|
isResizing: boolean;
|
|
2180
1789
|
isRotating: boolean;
|
|
2181
|
-
zoom:
|
|
2182
|
-
value: import("../types").NormalizedZoomValue;
|
|
2183
|
-
}>;
|
|
1790
|
+
zoom: import("../types").Zoom;
|
|
2184
1791
|
openMenu: "canvas" | null;
|
|
2185
|
-
openPopup: "
|
|
1792
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2186
1793
|
openSidebar: {
|
|
2187
|
-
name:
|
|
2188
|
-
tab?:
|
|
1794
|
+
name: import("../types").SidebarName;
|
|
1795
|
+
tab?: import("../types").SidebarTabName;
|
|
2189
1796
|
} | null;
|
|
2190
|
-
openDialog: {
|
|
1797
|
+
openDialog: null | {
|
|
2191
1798
|
name: "imageExport" | "help" | "jsonExport";
|
|
2192
1799
|
} | {
|
|
2193
1800
|
name: "ttd";
|
|
2194
|
-
tab: "
|
|
1801
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2195
1802
|
} | {
|
|
2196
1803
|
name: "commandPalette";
|
|
1804
|
+
} | {
|
|
1805
|
+
name: "settings";
|
|
2197
1806
|
} | {
|
|
2198
1807
|
name: "elementLinkSelector";
|
|
2199
|
-
sourceElementId:
|
|
2200
|
-
} |
|
|
1808
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1809
|
+
} | {
|
|
1810
|
+
name: "charts";
|
|
1811
|
+
data: import("../charts").Spreadsheet;
|
|
1812
|
+
rawText: string;
|
|
1813
|
+
};
|
|
2201
1814
|
defaultSidebarDockedPreference: boolean;
|
|
2202
1815
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2203
1816
|
hoveredElementIds: Readonly<{
|
|
@@ -2210,8 +1823,8 @@ export declare const actionToggleLassoTool: {
|
|
|
2210
1823
|
shouldCacheIgnoreZoom: boolean;
|
|
2211
1824
|
toast: {
|
|
2212
1825
|
message: string;
|
|
2213
|
-
closable?: boolean
|
|
2214
|
-
duration?: number
|
|
1826
|
+
closable?: boolean;
|
|
1827
|
+
duration?: number;
|
|
2215
1828
|
} | null;
|
|
2216
1829
|
zenModeEnabled: boolean;
|
|
2217
1830
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2219,45 +1832,18 @@ export declare const actionToggleLassoTool: {
|
|
|
2219
1832
|
gridStep: number;
|
|
2220
1833
|
gridModeEnabled: boolean;
|
|
2221
1834
|
viewModeEnabled: boolean;
|
|
2222
|
-
editingGroupId:
|
|
1835
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2223
1836
|
width: number;
|
|
2224
1837
|
height: number;
|
|
2225
1838
|
offsetTop: number;
|
|
2226
1839
|
offsetLeft: number;
|
|
2227
1840
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2228
|
-
collaborators: Map<import("../types").SocketId,
|
|
2229
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2230
|
-
button?: "up" | "down" | undefined;
|
|
2231
|
-
selectedElementIds?: Readonly<{
|
|
2232
|
-
[id: string]: true;
|
|
2233
|
-
}> | undefined;
|
|
2234
|
-
username?: string | null | undefined;
|
|
2235
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2236
|
-
color?: {
|
|
2237
|
-
background: string;
|
|
2238
|
-
stroke: string;
|
|
2239
|
-
} | undefined;
|
|
2240
|
-
avatarUrl?: string | undefined;
|
|
2241
|
-
id?: string | undefined;
|
|
2242
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2243
|
-
isCurrentUser?: boolean | undefined;
|
|
2244
|
-
isInCall?: boolean | undefined;
|
|
2245
|
-
isSpeaking?: boolean | undefined;
|
|
2246
|
-
isMuted?: boolean | undefined;
|
|
2247
|
-
}>>;
|
|
1841
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2248
1842
|
stats: {
|
|
2249
1843
|
open: boolean;
|
|
2250
1844
|
panels: number;
|
|
2251
1845
|
};
|
|
2252
|
-
|
|
2253
|
-
pasteDialog: {
|
|
2254
|
-
shown: false;
|
|
2255
|
-
data: null;
|
|
2256
|
-
} | {
|
|
2257
|
-
shown: true;
|
|
2258
|
-
data: import("../charts").Spreadsheet;
|
|
2259
|
-
};
|
|
2260
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1846
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2261
1847
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2262
1848
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2263
1849
|
originSnapOffset: {
|
|
@@ -2268,16 +1854,16 @@ export declare const actionToggleLassoTool: {
|
|
|
2268
1854
|
userToFollow: import("../types").UserToFollow | null;
|
|
2269
1855
|
followedBy: Set<import("../types").SocketId>;
|
|
2270
1856
|
isCropping: boolean;
|
|
2271
|
-
croppingElementId:
|
|
1857
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2272
1858
|
searchMatches: Readonly<{
|
|
2273
|
-
focusedId:
|
|
1859
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2274
1860
|
matches: readonly import("../types").SearchMatch[];
|
|
2275
1861
|
}> | null;
|
|
2276
1862
|
activeLockedId: string | null;
|
|
2277
1863
|
lockedMultiSelections: {
|
|
2278
1864
|
[groupId: string]: true;
|
|
2279
1865
|
};
|
|
2280
|
-
|
|
1866
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2281
1867
|
};
|
|
2282
1868
|
captureUpdate: "NEVER";
|
|
2283
1869
|
};
|
|
@@ -2292,7 +1878,7 @@ export declare const actionToggleHandTool: {
|
|
|
2292
1878
|
};
|
|
2293
1879
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
2294
1880
|
viewMode: false;
|
|
2295
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1881
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
2296
1882
|
appState: {
|
|
2297
1883
|
selectedElementIds: {};
|
|
2298
1884
|
selectedGroupIds: {};
|
|
@@ -2309,14 +1895,17 @@ export declare const actionToggleHandTool: {
|
|
|
2309
1895
|
} | null;
|
|
2310
1896
|
showWelcomeScreen: boolean;
|
|
2311
1897
|
isLoading: boolean;
|
|
2312
|
-
errorMessage:
|
|
1898
|
+
errorMessage: React.ReactNode;
|
|
2313
1899
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2314
1900
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2315
1901
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2316
1902
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2317
1903
|
isBindingEnabled: boolean;
|
|
2318
1904
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2319
|
-
|
|
1905
|
+
suggestedBinding: {
|
|
1906
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1907
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1908
|
+
} | null;
|
|
2320
1909
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2321
1910
|
frameRendering: {
|
|
2322
1911
|
enabled: boolean;
|
|
@@ -2339,19 +1928,19 @@ export declare const actionToggleHandTool: {
|
|
|
2339
1928
|
exportScale: number;
|
|
2340
1929
|
currentItemStrokeColor: string;
|
|
2341
1930
|
currentItemBackgroundColor: string;
|
|
2342
|
-
currentItemFillStyle:
|
|
1931
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
2343
1932
|
currentItemStrokeWidth: number;
|
|
2344
|
-
currentItemStrokeStyle:
|
|
1933
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
2345
1934
|
currentItemRoughness: number;
|
|
2346
1935
|
currentItemOpacity: number;
|
|
2347
|
-
currentItemFontFamily:
|
|
1936
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
2348
1937
|
currentItemFontSize: number;
|
|
2349
|
-
currentItemTextAlign:
|
|
1938
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
2350
1939
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2351
1940
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2352
|
-
currentHoveredFontFamily:
|
|
1941
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
2353
1942
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2354
|
-
currentItemArrowType: "
|
|
1943
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2355
1944
|
viewBackgroundColor: string;
|
|
2356
1945
|
scrollX: number;
|
|
2357
1946
|
scrollY: number;
|
|
@@ -2360,26 +1949,30 @@ export declare const actionToggleHandTool: {
|
|
|
2360
1949
|
name: string | null;
|
|
2361
1950
|
isResizing: boolean;
|
|
2362
1951
|
isRotating: boolean;
|
|
2363
|
-
zoom:
|
|
2364
|
-
value: import("../types").NormalizedZoomValue;
|
|
2365
|
-
}>;
|
|
1952
|
+
zoom: import("../types").Zoom;
|
|
2366
1953
|
openMenu: "canvas" | null;
|
|
2367
|
-
openPopup: "
|
|
1954
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2368
1955
|
openSidebar: {
|
|
2369
|
-
name:
|
|
2370
|
-
tab?:
|
|
1956
|
+
name: import("../types").SidebarName;
|
|
1957
|
+
tab?: import("../types").SidebarTabName;
|
|
2371
1958
|
} | null;
|
|
2372
|
-
openDialog: {
|
|
1959
|
+
openDialog: null | {
|
|
2373
1960
|
name: "imageExport" | "help" | "jsonExport";
|
|
2374
1961
|
} | {
|
|
2375
1962
|
name: "ttd";
|
|
2376
|
-
tab: "
|
|
1963
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2377
1964
|
} | {
|
|
2378
1965
|
name: "commandPalette";
|
|
1966
|
+
} | {
|
|
1967
|
+
name: "settings";
|
|
2379
1968
|
} | {
|
|
2380
1969
|
name: "elementLinkSelector";
|
|
2381
|
-
sourceElementId:
|
|
2382
|
-
} |
|
|
1970
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1971
|
+
} | {
|
|
1972
|
+
name: "charts";
|
|
1973
|
+
data: import("../charts").Spreadsheet;
|
|
1974
|
+
rawText: string;
|
|
1975
|
+
};
|
|
2383
1976
|
defaultSidebarDockedPreference: boolean;
|
|
2384
1977
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2385
1978
|
hoveredElementIds: Readonly<{
|
|
@@ -2392,8 +1985,8 @@ export declare const actionToggleHandTool: {
|
|
|
2392
1985
|
shouldCacheIgnoreZoom: boolean;
|
|
2393
1986
|
toast: {
|
|
2394
1987
|
message: string;
|
|
2395
|
-
closable?: boolean
|
|
2396
|
-
duration?: number
|
|
1988
|
+
closable?: boolean;
|
|
1989
|
+
duration?: number;
|
|
2397
1990
|
} | null;
|
|
2398
1991
|
zenModeEnabled: boolean;
|
|
2399
1992
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2401,45 +1994,18 @@ export declare const actionToggleHandTool: {
|
|
|
2401
1994
|
gridStep: number;
|
|
2402
1995
|
gridModeEnabled: boolean;
|
|
2403
1996
|
viewModeEnabled: boolean;
|
|
2404
|
-
editingGroupId:
|
|
1997
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2405
1998
|
width: number;
|
|
2406
1999
|
height: number;
|
|
2407
2000
|
offsetTop: number;
|
|
2408
2001
|
offsetLeft: number;
|
|
2409
2002
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2410
|
-
collaborators: Map<import("../types").SocketId,
|
|
2411
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2412
|
-
button?: "up" | "down" | undefined;
|
|
2413
|
-
selectedElementIds?: Readonly<{
|
|
2414
|
-
[id: string]: true;
|
|
2415
|
-
}> | undefined;
|
|
2416
|
-
username?: string | null | undefined;
|
|
2417
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2418
|
-
color?: {
|
|
2419
|
-
background: string;
|
|
2420
|
-
stroke: string;
|
|
2421
|
-
} | undefined;
|
|
2422
|
-
avatarUrl?: string | undefined;
|
|
2423
|
-
id?: string | undefined;
|
|
2424
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2425
|
-
isCurrentUser?: boolean | undefined;
|
|
2426
|
-
isInCall?: boolean | undefined;
|
|
2427
|
-
isSpeaking?: boolean | undefined;
|
|
2428
|
-
isMuted?: boolean | undefined;
|
|
2429
|
-
}>>;
|
|
2003
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2430
2004
|
stats: {
|
|
2431
2005
|
open: boolean;
|
|
2432
2006
|
panels: number;
|
|
2433
2007
|
};
|
|
2434
|
-
|
|
2435
|
-
pasteDialog: {
|
|
2436
|
-
shown: false;
|
|
2437
|
-
data: null;
|
|
2438
|
-
} | {
|
|
2439
|
-
shown: true;
|
|
2440
|
-
data: import("../charts").Spreadsheet;
|
|
2441
|
-
};
|
|
2442
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2008
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2443
2009
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2444
2010
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2445
2011
|
originSnapOffset: {
|
|
@@ -2450,16 +2016,16 @@ export declare const actionToggleHandTool: {
|
|
|
2450
2016
|
userToFollow: import("../types").UserToFollow | null;
|
|
2451
2017
|
followedBy: Set<import("../types").SocketId>;
|
|
2452
2018
|
isCropping: boolean;
|
|
2453
|
-
croppingElementId:
|
|
2019
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2454
2020
|
searchMatches: Readonly<{
|
|
2455
|
-
focusedId:
|
|
2021
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2456
2022
|
matches: readonly import("../types").SearchMatch[];
|
|
2457
2023
|
}> | null;
|
|
2458
2024
|
activeLockedId: string | null;
|
|
2459
2025
|
lockedMultiSelections: {
|
|
2460
2026
|
[groupId: string]: true;
|
|
2461
2027
|
};
|
|
2462
|
-
|
|
2028
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2463
2029
|
};
|
|
2464
2030
|
captureUpdate: "IMMEDIATELY";
|
|
2465
2031
|
};
|