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