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