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