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