@excalidraw/math 0.18.0-a8acc82 → 0.18.0-ab0255f
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 +305 -102
- 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 +75 -39
- package/dist/types/common/src/constants.d.ts +35 -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 +3 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +47 -78
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +11 -7
- package/dist/types/element/src/align.d.ts +2 -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 +79 -51
- package/dist/types/element/src/bounds.d.ts +25 -18
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +8 -7
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/distribute.d.ts +3 -2
- package/dist/types/element/src/dragElements.d.ts +30 -3
- package/dist/types/element/src/duplicate.d.ts +7 -6
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +7 -7
- package/dist/types/element/src/fractionalIndex.d.ts +4 -4
- package/dist/types/element/src/frame.d.ts +14 -9
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +8 -4
- package/dist/types/element/src/linearElementEditor.d.ts +38 -30
- package/dist/types/element/src/mutateElement.d.ts +5 -1
- package/dist/types/element/src/newElement.d.ts +20 -6
- package/dist/types/element/src/renderElement.d.ts +1 -10
- package/dist/types/element/src/resizeElements.d.ts +12 -12
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +14 -14
- package/dist/types/element/src/shape.d.ts +21 -8
- package/dist/types/element/src/textElement.d.ts +13 -10
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +29 -31
- package/dist/types/element/src/types.d.ts +20 -14
- package/dist/types/element/src/utils.d.ts +9 -4
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +191 -216
- package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +112 -129
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +412 -1564
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +139 -901
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +54 -63
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +177 -205
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +162 -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 +61 -76
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +111 -128
- package/dist/types/excalidraw/actions/actionExport.d.ts +190 -1419
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +253 -502
- package/dist/types/excalidraw/actions/actionGroup.d.ts +122 -147
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +150 -195
- package/dist/types/excalidraw/actions/actionLink.d.ts +67 -76
- package/dist/types/excalidraw/actions/actionMenu.d.ts +56 -439
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
- package/dist/types/excalidraw/actions/actionProperties.d.ts +197 -2554
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +61 -74
- package/dist/types/excalidraw/actions/actionStyles.d.ts +54 -62
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +178 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +69 -79
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +178 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +68 -77
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +57 -73
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +67 -76
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +68 -77
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +68 -77
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/index.d.ts +5 -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 +34 -26
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +13 -38
- package/dist/types/excalidraw/components/Actions.d.ts +26 -11
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +34 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +447 -118
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +73 -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 +5 -5
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +7 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +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 +4 -4
- 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/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
- 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 +5 -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 +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- 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 +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +11 -7
- package/dist/types/excalidraw/components/ToolPopover.d.ts +22 -0
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +146 -0
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +10 -4
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/types/excalidraw/components/icons.d.ts +47 -23
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +24 -3
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +338 -7
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
- package/dist/types/excalidraw/data/index.d.ts +8 -9
- package/dist/types/excalidraw/data/json.d.ts +175 -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/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/i18n.d.ts +2 -2
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
- package/dist/types/excalidraw/scene/Renderer.d.ts +428 -18
- package/dist/types/excalidraw/scene/export.d.ts +4 -4
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +26 -8
- 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 +485 -52
- package/dist/types/excalidraw/viewport.d.ts +272 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +8 -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 +4 -1
- 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 +3 -3
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/export.d.ts +8 -8
- package/dist/types/utils/src/index.d.ts +1 -2
- package/dist/types/utils/src/shape.d.ts +6 -6
- 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/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/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/withinBounds.d.ts +0 -19
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
-
import type { AppClassProperties,
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
4
3
|
export declare const actionSelectAllElementsInFrame: {
|
|
5
4
|
name: "selectAllElementsInFrame";
|
|
6
5
|
label: string;
|
|
7
6
|
trackEvent: {
|
|
8
7
|
category: "canvas";
|
|
9
8
|
};
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
10
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
11
|
appState: {
|
|
13
12
|
selectedElementIds: Record<string, true>;
|
|
@@ -18,18 +17,27 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
18
17
|
} | null;
|
|
19
18
|
showWelcomeScreen: boolean;
|
|
20
19
|
isLoading: boolean;
|
|
21
|
-
errorMessage:
|
|
20
|
+
errorMessage: React.ReactNode;
|
|
22
21
|
activeEmbeddable: {
|
|
23
22
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
-
state: "
|
|
23
|
+
state: "hover" | "active";
|
|
25
24
|
} | null;
|
|
26
25
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
26
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
29
|
isBindingEnabled: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
|
+
bindingPreference: "enabled" | "disabled";
|
|
32
|
+
isMidpointSnappingEnabled: boolean;
|
|
33
|
+
suggestedBinding: {
|
|
34
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
|
+
} | null;
|
|
37
|
+
hoveredArrowTextAnchor: {
|
|
38
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
39
|
+
anchor: "start" | "end" | "label";
|
|
40
|
+
} | null;
|
|
33
41
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
42
|
frameRendering: {
|
|
35
43
|
enabled: boolean;
|
|
@@ -37,14 +45,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
37
45
|
outline: boolean;
|
|
38
46
|
clip: boolean;
|
|
39
47
|
};
|
|
40
|
-
editingFrame:
|
|
41
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
42
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
48
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
49
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
50
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
43
51
|
activeTool: {
|
|
44
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
53
|
locked: boolean;
|
|
46
54
|
fromSelection: boolean;
|
|
47
55
|
} & import("../types").ActiveTool;
|
|
56
|
+
preferredSelectionTool: {
|
|
57
|
+
type: "selection" | "lasso";
|
|
58
|
+
initialized: boolean;
|
|
59
|
+
};
|
|
48
60
|
penMode: boolean;
|
|
49
61
|
penDetected: boolean;
|
|
50
62
|
exportBackground: boolean;
|
|
@@ -53,47 +65,53 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
53
65
|
exportScale: number;
|
|
54
66
|
currentItemStrokeColor: string;
|
|
55
67
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle:
|
|
57
|
-
|
|
58
|
-
currentItemStrokeStyle:
|
|
68
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
69
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
70
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
59
71
|
currentItemRoughness: number;
|
|
72
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
60
73
|
currentItemOpacity: number;
|
|
61
|
-
currentItemFontFamily:
|
|
74
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
62
75
|
currentItemFontSize: number;
|
|
63
|
-
currentItemTextAlign:
|
|
76
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
64
77
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
65
78
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
-
currentHoveredFontFamily:
|
|
79
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
67
80
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
|
-
currentItemArrowType: "
|
|
81
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
69
82
|
viewBackgroundColor: string;
|
|
70
83
|
scrollX: number;
|
|
71
84
|
scrollY: number;
|
|
85
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
72
86
|
cursorButton: "up" | "down";
|
|
73
87
|
scrolledOutside: boolean;
|
|
74
88
|
name: string | null;
|
|
75
89
|
isResizing: boolean;
|
|
76
90
|
isRotating: boolean;
|
|
77
|
-
zoom:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
openMenu: "canvas" | "shape" | null;
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
91
|
+
zoom: import("../types").Zoom;
|
|
92
|
+
openMenu: "canvas" | null;
|
|
93
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
94
|
openSidebar: {
|
|
83
|
-
name:
|
|
84
|
-
tab?:
|
|
95
|
+
name: import("../types").SidebarName;
|
|
96
|
+
tab?: import("../types").SidebarTabName;
|
|
85
97
|
} | null;
|
|
86
|
-
openDialog: {
|
|
98
|
+
openDialog: null | {
|
|
87
99
|
name: "imageExport" | "help" | "jsonExport";
|
|
88
100
|
} | {
|
|
89
101
|
name: "ttd";
|
|
90
|
-
tab: "
|
|
102
|
+
tab: "text-to-diagram" | "mermaid";
|
|
91
103
|
} | {
|
|
92
104
|
name: "commandPalette";
|
|
105
|
+
} | {
|
|
106
|
+
name: "settings";
|
|
93
107
|
} | {
|
|
94
108
|
name: "elementLinkSelector";
|
|
95
|
-
sourceElementId:
|
|
96
|
-
} |
|
|
109
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
110
|
+
} | {
|
|
111
|
+
name: "charts";
|
|
112
|
+
data: import("../charts").Spreadsheet;
|
|
113
|
+
rawText: string;
|
|
114
|
+
};
|
|
97
115
|
defaultSidebarDockedPreference: boolean;
|
|
98
116
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
117
|
hoveredElementIds: Readonly<{
|
|
@@ -105,9 +123,9 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
105
123
|
selectedElementsAreBeingDragged: boolean;
|
|
106
124
|
shouldCacheIgnoreZoom: boolean;
|
|
107
125
|
toast: {
|
|
108
|
-
message:
|
|
109
|
-
closable?: boolean
|
|
110
|
-
duration?: number
|
|
126
|
+
message: React.ReactNode;
|
|
127
|
+
closable?: boolean;
|
|
128
|
+
duration?: number;
|
|
111
129
|
} | null;
|
|
112
130
|
zenModeEnabled: boolean;
|
|
113
131
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -118,45 +136,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
118
136
|
selectedGroupIds: {
|
|
119
137
|
[groupId: string]: boolean;
|
|
120
138
|
};
|
|
121
|
-
editingGroupId:
|
|
139
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
122
140
|
width: number;
|
|
123
141
|
height: number;
|
|
124
142
|
offsetTop: number;
|
|
125
143
|
offsetLeft: number;
|
|
126
|
-
fileHandle:
|
|
127
|
-
collaborators: Map<import("../types").SocketId,
|
|
128
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
129
|
-
button?: "up" | "down" | undefined;
|
|
130
|
-
selectedElementIds?: Readonly<{
|
|
131
|
-
[id: string]: true;
|
|
132
|
-
}> | undefined;
|
|
133
|
-
username?: string | null | undefined;
|
|
134
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
|
-
color?: {
|
|
136
|
-
background: string;
|
|
137
|
-
stroke: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
avatarUrl?: string | undefined;
|
|
140
|
-
id?: string | undefined;
|
|
141
|
-
socketId?: import("../types").SocketId | undefined;
|
|
142
|
-
isCurrentUser?: boolean | undefined;
|
|
143
|
-
isInCall?: boolean | undefined;
|
|
144
|
-
isSpeaking?: boolean | undefined;
|
|
145
|
-
isMuted?: boolean | undefined;
|
|
146
|
-
}>>;
|
|
144
|
+
fileHandle: FileSystemFileHandle | null;
|
|
145
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
147
146
|
stats: {
|
|
148
147
|
open: boolean;
|
|
149
148
|
panels: number;
|
|
150
149
|
};
|
|
151
|
-
|
|
152
|
-
pasteDialog: {
|
|
153
|
-
shown: false;
|
|
154
|
-
data: null;
|
|
155
|
-
} | {
|
|
156
|
-
shown: true;
|
|
157
|
-
data: import("../charts").Spreadsheet;
|
|
158
|
-
};
|
|
159
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
150
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
160
151
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
161
152
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
162
153
|
originSnapOffset: {
|
|
@@ -167,24 +158,24 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
167
158
|
userToFollow: import("../types").UserToFollow | null;
|
|
168
159
|
followedBy: Set<import("../types").SocketId>;
|
|
169
160
|
isCropping: boolean;
|
|
170
|
-
croppingElementId:
|
|
161
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
171
162
|
searchMatches: Readonly<{
|
|
172
|
-
focusedId:
|
|
163
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
173
164
|
matches: readonly import("../types").SearchMatch[];
|
|
174
165
|
}> | null;
|
|
175
166
|
activeLockedId: string | null;
|
|
176
167
|
lockedMultiSelections: {
|
|
177
168
|
[groupId: string]: true;
|
|
178
169
|
};
|
|
179
|
-
|
|
170
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
180
171
|
};
|
|
181
172
|
captureUpdate: "IMMEDIATELY";
|
|
182
173
|
} | {
|
|
183
174
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
184
|
-
appState: Readonly<AppState>;
|
|
175
|
+
appState: Readonly<import("../types").AppState>;
|
|
185
176
|
captureUpdate: "EVENTUALLY";
|
|
186
177
|
};
|
|
187
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
178
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
188
179
|
} & {
|
|
189
180
|
keyTest?: undefined;
|
|
190
181
|
};
|
|
@@ -194,7 +185,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
194
185
|
trackEvent: {
|
|
195
186
|
category: "history";
|
|
196
187
|
};
|
|
197
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
188
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
198
189
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
199
190
|
appState: {
|
|
200
191
|
selectedElementIds: {
|
|
@@ -207,18 +198,27 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
207
198
|
} | null;
|
|
208
199
|
showWelcomeScreen: boolean;
|
|
209
200
|
isLoading: boolean;
|
|
210
|
-
errorMessage:
|
|
201
|
+
errorMessage: React.ReactNode;
|
|
211
202
|
activeEmbeddable: {
|
|
212
203
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
213
|
-
state: "
|
|
204
|
+
state: "hover" | "active";
|
|
214
205
|
} | null;
|
|
215
206
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
216
207
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
217
208
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
218
209
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
219
210
|
isBindingEnabled: boolean;
|
|
220
|
-
|
|
221
|
-
|
|
211
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
212
|
+
bindingPreference: "enabled" | "disabled";
|
|
213
|
+
isMidpointSnappingEnabled: boolean;
|
|
214
|
+
suggestedBinding: {
|
|
215
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
216
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
217
|
+
} | null;
|
|
218
|
+
hoveredArrowTextAnchor: {
|
|
219
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
220
|
+
anchor: "start" | "end" | "label";
|
|
221
|
+
} | null;
|
|
222
222
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
223
223
|
frameRendering: {
|
|
224
224
|
enabled: boolean;
|
|
@@ -226,14 +226,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
226
226
|
outline: boolean;
|
|
227
227
|
clip: boolean;
|
|
228
228
|
};
|
|
229
|
-
editingFrame:
|
|
230
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
231
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
229
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
230
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
231
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
232
232
|
activeTool: {
|
|
233
233
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
234
234
|
locked: boolean;
|
|
235
235
|
fromSelection: boolean;
|
|
236
236
|
} & import("../types").ActiveTool;
|
|
237
|
+
preferredSelectionTool: {
|
|
238
|
+
type: "selection" | "lasso";
|
|
239
|
+
initialized: boolean;
|
|
240
|
+
};
|
|
237
241
|
penMode: boolean;
|
|
238
242
|
penDetected: boolean;
|
|
239
243
|
exportBackground: boolean;
|
|
@@ -242,47 +246,53 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
242
246
|
exportScale: number;
|
|
243
247
|
currentItemStrokeColor: string;
|
|
244
248
|
currentItemBackgroundColor: string;
|
|
245
|
-
currentItemFillStyle:
|
|
246
|
-
|
|
247
|
-
currentItemStrokeStyle:
|
|
249
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
250
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
251
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
248
252
|
currentItemRoughness: number;
|
|
253
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
249
254
|
currentItemOpacity: number;
|
|
250
|
-
currentItemFontFamily:
|
|
255
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
251
256
|
currentItemFontSize: number;
|
|
252
|
-
currentItemTextAlign:
|
|
257
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
253
258
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
254
259
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
255
|
-
currentHoveredFontFamily:
|
|
260
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
256
261
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
257
|
-
currentItemArrowType: "
|
|
262
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
258
263
|
viewBackgroundColor: string;
|
|
259
264
|
scrollX: number;
|
|
260
265
|
scrollY: number;
|
|
266
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
261
267
|
cursorButton: "up" | "down";
|
|
262
268
|
scrolledOutside: boolean;
|
|
263
269
|
name: string | null;
|
|
264
270
|
isResizing: boolean;
|
|
265
271
|
isRotating: boolean;
|
|
266
|
-
zoom:
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
openMenu: "canvas" | "shape" | null;
|
|
270
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
272
|
+
zoom: import("../types").Zoom;
|
|
273
|
+
openMenu: "canvas" | null;
|
|
274
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
271
275
|
openSidebar: {
|
|
272
|
-
name:
|
|
273
|
-
tab?:
|
|
276
|
+
name: import("../types").SidebarName;
|
|
277
|
+
tab?: import("../types").SidebarTabName;
|
|
274
278
|
} | null;
|
|
275
|
-
openDialog: {
|
|
279
|
+
openDialog: null | {
|
|
276
280
|
name: "imageExport" | "help" | "jsonExport";
|
|
277
281
|
} | {
|
|
278
282
|
name: "ttd";
|
|
279
|
-
tab: "
|
|
283
|
+
tab: "text-to-diagram" | "mermaid";
|
|
280
284
|
} | {
|
|
281
285
|
name: "commandPalette";
|
|
286
|
+
} | {
|
|
287
|
+
name: "settings";
|
|
282
288
|
} | {
|
|
283
289
|
name: "elementLinkSelector";
|
|
284
|
-
sourceElementId:
|
|
285
|
-
} |
|
|
290
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
291
|
+
} | {
|
|
292
|
+
name: "charts";
|
|
293
|
+
data: import("../charts").Spreadsheet;
|
|
294
|
+
rawText: string;
|
|
295
|
+
};
|
|
286
296
|
defaultSidebarDockedPreference: boolean;
|
|
287
297
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
288
298
|
hoveredElementIds: Readonly<{
|
|
@@ -294,9 +304,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
294
304
|
selectedElementsAreBeingDragged: boolean;
|
|
295
305
|
shouldCacheIgnoreZoom: boolean;
|
|
296
306
|
toast: {
|
|
297
|
-
message:
|
|
298
|
-
closable?: boolean
|
|
299
|
-
duration?: number
|
|
307
|
+
message: React.ReactNode;
|
|
308
|
+
closable?: boolean;
|
|
309
|
+
duration?: number;
|
|
300
310
|
} | null;
|
|
301
311
|
zenModeEnabled: boolean;
|
|
302
312
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -307,45 +317,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
307
317
|
selectedGroupIds: {
|
|
308
318
|
[groupId: string]: boolean;
|
|
309
319
|
};
|
|
310
|
-
editingGroupId:
|
|
320
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
311
321
|
width: number;
|
|
312
322
|
height: number;
|
|
313
323
|
offsetTop: number;
|
|
314
324
|
offsetLeft: number;
|
|
315
|
-
fileHandle:
|
|
316
|
-
collaborators: Map<import("../types").SocketId,
|
|
317
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
318
|
-
button?: "up" | "down" | undefined;
|
|
319
|
-
selectedElementIds?: Readonly<{
|
|
320
|
-
[id: string]: true;
|
|
321
|
-
}> | undefined;
|
|
322
|
-
username?: string | null | undefined;
|
|
323
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
324
|
-
color?: {
|
|
325
|
-
background: string;
|
|
326
|
-
stroke: string;
|
|
327
|
-
} | undefined;
|
|
328
|
-
avatarUrl?: string | undefined;
|
|
329
|
-
id?: string | undefined;
|
|
330
|
-
socketId?: import("../types").SocketId | undefined;
|
|
331
|
-
isCurrentUser?: boolean | undefined;
|
|
332
|
-
isInCall?: boolean | undefined;
|
|
333
|
-
isSpeaking?: boolean | undefined;
|
|
334
|
-
isMuted?: boolean | undefined;
|
|
335
|
-
}>>;
|
|
325
|
+
fileHandle: FileSystemFileHandle | null;
|
|
326
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
336
327
|
stats: {
|
|
337
328
|
open: boolean;
|
|
338
329
|
panels: number;
|
|
339
330
|
};
|
|
340
|
-
|
|
341
|
-
pasteDialog: {
|
|
342
|
-
shown: false;
|
|
343
|
-
data: null;
|
|
344
|
-
} | {
|
|
345
|
-
shown: true;
|
|
346
|
-
data: import("../charts").Spreadsheet;
|
|
347
|
-
};
|
|
348
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
331
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
349
332
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
350
333
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
351
334
|
originSnapOffset: {
|
|
@@ -356,24 +339,24 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
356
339
|
userToFollow: import("../types").UserToFollow | null;
|
|
357
340
|
followedBy: Set<import("../types").SocketId>;
|
|
358
341
|
isCropping: boolean;
|
|
359
|
-
croppingElementId:
|
|
342
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
360
343
|
searchMatches: Readonly<{
|
|
361
|
-
focusedId:
|
|
344
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
362
345
|
matches: readonly import("../types").SearchMatch[];
|
|
363
346
|
}> | null;
|
|
364
347
|
activeLockedId: string | null;
|
|
365
348
|
lockedMultiSelections: {
|
|
366
349
|
[groupId: string]: true;
|
|
367
350
|
};
|
|
368
|
-
|
|
351
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
369
352
|
};
|
|
370
353
|
captureUpdate: "IMMEDIATELY";
|
|
371
354
|
} | {
|
|
372
355
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
373
|
-
appState: Readonly<AppState>;
|
|
356
|
+
appState: Readonly<import("../types").AppState>;
|
|
374
357
|
captureUpdate: "EVENTUALLY";
|
|
375
358
|
};
|
|
376
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
359
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
377
360
|
} & {
|
|
378
361
|
keyTest?: undefined;
|
|
379
362
|
};
|
|
@@ -384,7 +367,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
384
367
|
trackEvent: {
|
|
385
368
|
category: "canvas";
|
|
386
369
|
};
|
|
387
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
370
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
388
371
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
389
372
|
appState: {
|
|
390
373
|
frameRendering: {
|
|
@@ -400,27 +383,40 @@ export declare const actionupdateFrameRendering: {
|
|
|
400
383
|
} | null;
|
|
401
384
|
showWelcomeScreen: boolean;
|
|
402
385
|
isLoading: boolean;
|
|
403
|
-
errorMessage:
|
|
386
|
+
errorMessage: React.ReactNode;
|
|
404
387
|
activeEmbeddable: {
|
|
405
388
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
406
|
-
state: "
|
|
389
|
+
state: "hover" | "active";
|
|
407
390
|
} | null;
|
|
408
391
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
409
392
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
410
393
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
411
394
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
412
395
|
isBindingEnabled: boolean;
|
|
413
|
-
|
|
414
|
-
|
|
396
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
397
|
+
bindingPreference: "enabled" | "disabled";
|
|
398
|
+
isMidpointSnappingEnabled: boolean;
|
|
399
|
+
suggestedBinding: {
|
|
400
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
401
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
402
|
+
} | null;
|
|
403
|
+
hoveredArrowTextAnchor: {
|
|
404
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
405
|
+
anchor: "start" | "end" | "label";
|
|
406
|
+
} | null;
|
|
415
407
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
416
|
-
editingFrame:
|
|
417
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
418
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
408
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
409
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
410
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
419
411
|
activeTool: {
|
|
420
412
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
421
413
|
locked: boolean;
|
|
422
414
|
fromSelection: boolean;
|
|
423
415
|
} & import("../types").ActiveTool;
|
|
416
|
+
preferredSelectionTool: {
|
|
417
|
+
type: "selection" | "lasso";
|
|
418
|
+
initialized: boolean;
|
|
419
|
+
};
|
|
424
420
|
penMode: boolean;
|
|
425
421
|
penDetected: boolean;
|
|
426
422
|
exportBackground: boolean;
|
|
@@ -429,234 +425,53 @@ export declare const actionupdateFrameRendering: {
|
|
|
429
425
|
exportScale: number;
|
|
430
426
|
currentItemStrokeColor: string;
|
|
431
427
|
currentItemBackgroundColor: string;
|
|
432
|
-
currentItemFillStyle:
|
|
433
|
-
|
|
434
|
-
currentItemStrokeStyle:
|
|
428
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
429
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
430
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
435
431
|
currentItemRoughness: number;
|
|
432
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
436
433
|
currentItemOpacity: number;
|
|
437
|
-
currentItemFontFamily:
|
|
434
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
438
435
|
currentItemFontSize: number;
|
|
439
|
-
currentItemTextAlign:
|
|
436
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
440
437
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
441
438
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
442
|
-
currentHoveredFontFamily:
|
|
439
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
443
440
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
444
|
-
currentItemArrowType: "
|
|
441
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
445
442
|
viewBackgroundColor: string;
|
|
446
443
|
scrollX: number;
|
|
447
444
|
scrollY: number;
|
|
445
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
448
446
|
cursorButton: "up" | "down";
|
|
449
447
|
scrolledOutside: boolean;
|
|
450
448
|
name: string | null;
|
|
451
449
|
isResizing: boolean;
|
|
452
450
|
isRotating: boolean;
|
|
453
|
-
zoom:
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
openMenu: "canvas" | "shape" | null;
|
|
457
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
451
|
+
zoom: import("../types").Zoom;
|
|
452
|
+
openMenu: "canvas" | null;
|
|
453
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
458
454
|
openSidebar: {
|
|
459
|
-
name:
|
|
460
|
-
tab?:
|
|
455
|
+
name: import("../types").SidebarName;
|
|
456
|
+
tab?: import("../types").SidebarTabName;
|
|
461
457
|
} | null;
|
|
462
|
-
openDialog: {
|
|
458
|
+
openDialog: null | {
|
|
463
459
|
name: "imageExport" | "help" | "jsonExport";
|
|
464
460
|
} | {
|
|
465
461
|
name: "ttd";
|
|
466
|
-
tab: "
|
|
462
|
+
tab: "text-to-diagram" | "mermaid";
|
|
467
463
|
} | {
|
|
468
464
|
name: "commandPalette";
|
|
465
|
+
} | {
|
|
466
|
+
name: "settings";
|
|
469
467
|
} | {
|
|
470
468
|
name: "elementLinkSelector";
|
|
471
|
-
sourceElementId:
|
|
472
|
-
} | null;
|
|
473
|
-
defaultSidebarDockedPreference: boolean;
|
|
474
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
475
|
-
selectedElementIds: Readonly<{
|
|
476
|
-
[id: string]: true;
|
|
477
|
-
}>;
|
|
478
|
-
hoveredElementIds: Readonly<{
|
|
479
|
-
[id: string]: true;
|
|
480
|
-
}>;
|
|
481
|
-
previousSelectedElementIds: {
|
|
482
|
-
[id: string]: true;
|
|
483
|
-
};
|
|
484
|
-
selectedElementsAreBeingDragged: boolean;
|
|
485
|
-
shouldCacheIgnoreZoom: boolean;
|
|
486
|
-
toast: {
|
|
487
|
-
message: string;
|
|
488
|
-
closable?: boolean | undefined;
|
|
489
|
-
duration?: number | undefined;
|
|
490
|
-
} | null;
|
|
491
|
-
zenModeEnabled: boolean;
|
|
492
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
493
|
-
gridSize: number;
|
|
494
|
-
gridStep: number;
|
|
495
|
-
gridModeEnabled: boolean;
|
|
496
|
-
viewModeEnabled: boolean;
|
|
497
|
-
selectedGroupIds: {
|
|
498
|
-
[groupId: string]: boolean;
|
|
499
|
-
};
|
|
500
|
-
editingGroupId: string | null;
|
|
501
|
-
width: number;
|
|
502
|
-
height: number;
|
|
503
|
-
offsetTop: number;
|
|
504
|
-
offsetLeft: number;
|
|
505
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
506
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
507
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
508
|
-
button?: "up" | "down" | undefined;
|
|
509
|
-
selectedElementIds?: Readonly<{
|
|
510
|
-
[id: string]: true;
|
|
511
|
-
}> | undefined;
|
|
512
|
-
username?: string | null | undefined;
|
|
513
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
514
|
-
color?: {
|
|
515
|
-
background: string;
|
|
516
|
-
stroke: string;
|
|
517
|
-
} | undefined;
|
|
518
|
-
avatarUrl?: string | undefined;
|
|
519
|
-
id?: string | undefined;
|
|
520
|
-
socketId?: import("../types").SocketId | undefined;
|
|
521
|
-
isCurrentUser?: boolean | undefined;
|
|
522
|
-
isInCall?: boolean | undefined;
|
|
523
|
-
isSpeaking?: boolean | undefined;
|
|
524
|
-
isMuted?: boolean | undefined;
|
|
525
|
-
}>>;
|
|
526
|
-
stats: {
|
|
527
|
-
open: boolean;
|
|
528
|
-
panels: number;
|
|
529
|
-
};
|
|
530
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
531
|
-
pasteDialog: {
|
|
532
|
-
shown: false;
|
|
533
|
-
data: null;
|
|
469
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
534
470
|
} | {
|
|
535
|
-
|
|
471
|
+
name: "charts";
|
|
536
472
|
data: import("../charts").Spreadsheet;
|
|
473
|
+
rawText: string;
|
|
537
474
|
};
|
|
538
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
539
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
540
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
541
|
-
originSnapOffset: {
|
|
542
|
-
x: number;
|
|
543
|
-
y: number;
|
|
544
|
-
} | null;
|
|
545
|
-
objectsSnapModeEnabled: boolean;
|
|
546
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
547
|
-
followedBy: Set<import("../types").SocketId>;
|
|
548
|
-
isCropping: boolean;
|
|
549
|
-
croppingElementId: string | null;
|
|
550
|
-
searchMatches: Readonly<{
|
|
551
|
-
focusedId: string | null;
|
|
552
|
-
matches: readonly import("../types").SearchMatch[];
|
|
553
|
-
}> | null;
|
|
554
|
-
activeLockedId: string | null;
|
|
555
|
-
lockedMultiSelections: {
|
|
556
|
-
[groupId: string]: true;
|
|
557
|
-
};
|
|
558
|
-
stylesPanelMode: "compact" | "full";
|
|
559
|
-
};
|
|
560
|
-
captureUpdate: "EVENTUALLY";
|
|
561
|
-
};
|
|
562
|
-
checked: (appState: AppState) => boolean;
|
|
563
|
-
} & {
|
|
564
|
-
keyTest?: undefined;
|
|
565
|
-
};
|
|
566
|
-
export declare const actionSetFrameAsActiveTool: {
|
|
567
|
-
name: "setFrameAsActiveTool";
|
|
568
|
-
label: string;
|
|
569
|
-
trackEvent: {
|
|
570
|
-
category: "toolbar";
|
|
571
|
-
};
|
|
572
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
573
|
-
viewMode: false;
|
|
574
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
575
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
576
|
-
appState: {
|
|
577
|
-
activeTool: {
|
|
578
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
579
|
-
locked: boolean;
|
|
580
|
-
fromSelection: boolean;
|
|
581
|
-
} & import("../types").ActiveTool;
|
|
582
|
-
contextMenu: {
|
|
583
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
584
|
-
top: number;
|
|
585
|
-
left: number;
|
|
586
|
-
} | null;
|
|
587
|
-
showWelcomeScreen: boolean;
|
|
588
|
-
isLoading: boolean;
|
|
589
|
-
errorMessage: import("react").ReactNode;
|
|
590
|
-
activeEmbeddable: {
|
|
591
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
592
|
-
state: "active" | "hover";
|
|
593
|
-
} | null;
|
|
594
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
595
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
596
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
597
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
598
|
-
isBindingEnabled: boolean;
|
|
599
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
600
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
601
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
602
|
-
frameRendering: {
|
|
603
|
-
enabled: boolean;
|
|
604
|
-
name: boolean;
|
|
605
|
-
outline: boolean;
|
|
606
|
-
clip: boolean;
|
|
607
|
-
};
|
|
608
|
-
editingFrame: string | null;
|
|
609
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
610
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
611
|
-
penMode: boolean;
|
|
612
|
-
penDetected: boolean;
|
|
613
|
-
exportBackground: boolean;
|
|
614
|
-
exportEmbedScene: boolean;
|
|
615
|
-
exportWithDarkMode: boolean;
|
|
616
|
-
exportScale: number;
|
|
617
|
-
currentItemStrokeColor: string;
|
|
618
|
-
currentItemBackgroundColor: string;
|
|
619
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
620
|
-
currentItemStrokeWidth: number;
|
|
621
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
622
|
-
currentItemRoughness: number;
|
|
623
|
-
currentItemOpacity: number;
|
|
624
|
-
currentItemFontFamily: number;
|
|
625
|
-
currentItemFontSize: number;
|
|
626
|
-
currentItemTextAlign: string;
|
|
627
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
628
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
629
|
-
currentHoveredFontFamily: number | null;
|
|
630
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
631
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
632
|
-
viewBackgroundColor: string;
|
|
633
|
-
scrollX: number;
|
|
634
|
-
scrollY: number;
|
|
635
|
-
cursorButton: "up" | "down";
|
|
636
|
-
scrolledOutside: boolean;
|
|
637
|
-
name: string | null;
|
|
638
|
-
isResizing: boolean;
|
|
639
|
-
isRotating: boolean;
|
|
640
|
-
zoom: Readonly<{
|
|
641
|
-
value: import("../types").NormalizedZoomValue;
|
|
642
|
-
}>;
|
|
643
|
-
openMenu: "canvas" | "shape" | null;
|
|
644
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
645
|
-
openSidebar: {
|
|
646
|
-
name: string;
|
|
647
|
-
tab?: string | undefined;
|
|
648
|
-
} | null;
|
|
649
|
-
openDialog: {
|
|
650
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
651
|
-
} | {
|
|
652
|
-
name: "ttd";
|
|
653
|
-
tab: "mermaid" | "text-to-diagram";
|
|
654
|
-
} | {
|
|
655
|
-
name: "commandPalette";
|
|
656
|
-
} | {
|
|
657
|
-
name: "elementLinkSelector";
|
|
658
|
-
sourceElementId: string;
|
|
659
|
-
} | null;
|
|
660
475
|
defaultSidebarDockedPreference: boolean;
|
|
661
476
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
662
477
|
selectedElementIds: Readonly<{
|
|
@@ -671,9 +486,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
671
486
|
selectedElementsAreBeingDragged: boolean;
|
|
672
487
|
shouldCacheIgnoreZoom: boolean;
|
|
673
488
|
toast: {
|
|
674
|
-
message:
|
|
675
|
-
closable?: boolean
|
|
676
|
-
duration?: number
|
|
489
|
+
message: React.ReactNode;
|
|
490
|
+
closable?: boolean;
|
|
491
|
+
duration?: number;
|
|
677
492
|
} | null;
|
|
678
493
|
zenModeEnabled: boolean;
|
|
679
494
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -684,45 +499,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
684
499
|
selectedGroupIds: {
|
|
685
500
|
[groupId: string]: boolean;
|
|
686
501
|
};
|
|
687
|
-
editingGroupId:
|
|
502
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
688
503
|
width: number;
|
|
689
504
|
height: number;
|
|
690
505
|
offsetTop: number;
|
|
691
506
|
offsetLeft: number;
|
|
692
|
-
fileHandle:
|
|
693
|
-
collaborators: Map<import("../types").SocketId,
|
|
694
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
695
|
-
button?: "up" | "down" | undefined;
|
|
696
|
-
selectedElementIds?: Readonly<{
|
|
697
|
-
[id: string]: true;
|
|
698
|
-
}> | undefined;
|
|
699
|
-
username?: string | null | undefined;
|
|
700
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
701
|
-
color?: {
|
|
702
|
-
background: string;
|
|
703
|
-
stroke: string;
|
|
704
|
-
} | undefined;
|
|
705
|
-
avatarUrl?: string | undefined;
|
|
706
|
-
id?: string | undefined;
|
|
707
|
-
socketId?: import("../types").SocketId | undefined;
|
|
708
|
-
isCurrentUser?: boolean | undefined;
|
|
709
|
-
isInCall?: boolean | undefined;
|
|
710
|
-
isSpeaking?: boolean | undefined;
|
|
711
|
-
isMuted?: boolean | undefined;
|
|
712
|
-
}>>;
|
|
507
|
+
fileHandle: FileSystemFileHandle | null;
|
|
508
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
713
509
|
stats: {
|
|
714
510
|
open: boolean;
|
|
715
511
|
panels: number;
|
|
716
512
|
};
|
|
717
|
-
|
|
718
|
-
pasteDialog: {
|
|
719
|
-
shown: false;
|
|
720
|
-
data: null;
|
|
721
|
-
} | {
|
|
722
|
-
shown: true;
|
|
723
|
-
data: import("../charts").Spreadsheet;
|
|
724
|
-
};
|
|
725
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
513
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
726
514
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
727
515
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
728
516
|
originSnapOffset: {
|
|
@@ -733,22 +521,22 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
733
521
|
userToFollow: import("../types").UserToFollow | null;
|
|
734
522
|
followedBy: Set<import("../types").SocketId>;
|
|
735
523
|
isCropping: boolean;
|
|
736
|
-
croppingElementId:
|
|
524
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
737
525
|
searchMatches: Readonly<{
|
|
738
|
-
focusedId:
|
|
526
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
739
527
|
matches: readonly import("../types").SearchMatch[];
|
|
740
528
|
}> | null;
|
|
741
529
|
activeLockedId: string | null;
|
|
742
530
|
lockedMultiSelections: {
|
|
743
531
|
[groupId: string]: true;
|
|
744
532
|
};
|
|
745
|
-
|
|
533
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
746
534
|
};
|
|
747
535
|
captureUpdate: "EVENTUALLY";
|
|
748
536
|
};
|
|
749
|
-
|
|
537
|
+
checked: (appState: Readonly<UIAppState>) => boolean;
|
|
750
538
|
} & {
|
|
751
|
-
keyTest?:
|
|
539
|
+
keyTest?: undefined;
|
|
752
540
|
};
|
|
753
541
|
export declare const actionWrapSelectionInFrame: {
|
|
754
542
|
name: "wrapSelectionInFrame";
|
|
@@ -756,8 +544,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
756
544
|
trackEvent: {
|
|
757
545
|
category: "element";
|
|
758
546
|
};
|
|
759
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
760
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
547
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
548
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
761
549
|
elements: ((Readonly<{
|
|
762
550
|
id: string;
|
|
763
551
|
x: number;
|
|
@@ -767,10 +555,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
767
555
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
768
556
|
strokeWidth: number;
|
|
769
557
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
770
|
-
roundness: {
|
|
558
|
+
roundness: null | {
|
|
771
559
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
772
|
-
value?: number
|
|
773
|
-
}
|
|
560
|
+
value?: number;
|
|
561
|
+
};
|
|
774
562
|
roughness: number;
|
|
775
563
|
opacity: number;
|
|
776
564
|
width: number;
|
|
@@ -781,22 +569,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
781
569
|
versionNonce: number;
|
|
782
570
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
783
571
|
isDeleted: boolean;
|
|
784
|
-
groupIds: readonly
|
|
572
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
785
573
|
frameId: string | null;
|
|
786
|
-
boundElements: readonly
|
|
787
|
-
id: string;
|
|
788
|
-
type: "arrow" | "text";
|
|
789
|
-
}>[] | null;
|
|
574
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
790
575
|
updated: number;
|
|
791
576
|
link: string | null;
|
|
792
577
|
locked: boolean;
|
|
793
|
-
customData?: Record<string, any
|
|
578
|
+
customData?: Record<string, any>;
|
|
794
579
|
}> & Readonly<{
|
|
795
580
|
type: "line" | "arrow";
|
|
796
581
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
582
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
583
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
800
584
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
801
585
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
802
586
|
}> & {
|
|
@@ -810,10 +594,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
810
594
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
811
595
|
strokeWidth: number;
|
|
812
596
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
813
|
-
roundness: {
|
|
597
|
+
roundness: null | {
|
|
814
598
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
815
|
-
value?: number
|
|
816
|
-
}
|
|
599
|
+
value?: number;
|
|
600
|
+
};
|
|
817
601
|
roughness: number;
|
|
818
602
|
opacity: number;
|
|
819
603
|
width: number;
|
|
@@ -824,16 +608,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
824
608
|
versionNonce: number;
|
|
825
609
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
826
610
|
isDeleted: boolean;
|
|
827
|
-
groupIds: readonly
|
|
611
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
828
612
|
frameId: string | null;
|
|
829
|
-
boundElements: readonly
|
|
830
|
-
id: string;
|
|
831
|
-
type: "arrow" | "text";
|
|
832
|
-
}>[] | null;
|
|
613
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
833
614
|
updated: number;
|
|
834
615
|
link: string | null;
|
|
835
616
|
locked: boolean;
|
|
836
|
-
customData?: Record<string, any
|
|
617
|
+
customData?: Record<string, any>;
|
|
837
618
|
}> & {
|
|
838
619
|
type: "selection";
|
|
839
620
|
} & {
|
|
@@ -847,10 +628,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
847
628
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
848
629
|
strokeWidth: number;
|
|
849
630
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
850
|
-
roundness: {
|
|
631
|
+
roundness: null | {
|
|
851
632
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
852
|
-
value?: number
|
|
853
|
-
}
|
|
633
|
+
value?: number;
|
|
634
|
+
};
|
|
854
635
|
roughness: number;
|
|
855
636
|
opacity: number;
|
|
856
637
|
width: number;
|
|
@@ -861,16 +642,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
861
642
|
versionNonce: number;
|
|
862
643
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
863
644
|
isDeleted: boolean;
|
|
864
|
-
groupIds: readonly
|
|
645
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
865
646
|
frameId: string | null;
|
|
866
|
-
boundElements: readonly
|
|
867
|
-
id: string;
|
|
868
|
-
type: "arrow" | "text";
|
|
869
|
-
}>[] | null;
|
|
647
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
870
648
|
updated: number;
|
|
871
649
|
link: string | null;
|
|
872
650
|
locked: boolean;
|
|
873
|
-
customData?: Record<string, any
|
|
651
|
+
customData?: Record<string, any>;
|
|
874
652
|
}> & {
|
|
875
653
|
type: "rectangle";
|
|
876
654
|
} & {
|
|
@@ -884,10 +662,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
884
662
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
885
663
|
strokeWidth: number;
|
|
886
664
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
887
|
-
roundness: {
|
|
665
|
+
roundness: null | {
|
|
888
666
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
889
|
-
value?: number
|
|
890
|
-
}
|
|
667
|
+
value?: number;
|
|
668
|
+
};
|
|
891
669
|
roughness: number;
|
|
892
670
|
opacity: number;
|
|
893
671
|
width: number;
|
|
@@ -898,16 +676,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
898
676
|
versionNonce: number;
|
|
899
677
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
900
678
|
isDeleted: boolean;
|
|
901
|
-
groupIds: readonly
|
|
679
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
902
680
|
frameId: string | null;
|
|
903
|
-
boundElements: readonly
|
|
904
|
-
id: string;
|
|
905
|
-
type: "arrow" | "text";
|
|
906
|
-
}>[] | null;
|
|
681
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
907
682
|
updated: number;
|
|
908
683
|
link: string | null;
|
|
909
684
|
locked: boolean;
|
|
910
|
-
customData?: Record<string, any
|
|
685
|
+
customData?: Record<string, any>;
|
|
911
686
|
}> & {
|
|
912
687
|
type: "diamond";
|
|
913
688
|
} & {
|
|
@@ -921,10 +696,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
921
696
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
922
697
|
strokeWidth: number;
|
|
923
698
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
924
|
-
roundness: {
|
|
699
|
+
roundness: null | {
|
|
925
700
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
926
|
-
value?: number
|
|
927
|
-
}
|
|
701
|
+
value?: number;
|
|
702
|
+
};
|
|
928
703
|
roughness: number;
|
|
929
704
|
opacity: number;
|
|
930
705
|
width: number;
|
|
@@ -935,16 +710,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
935
710
|
versionNonce: number;
|
|
936
711
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
937
712
|
isDeleted: boolean;
|
|
938
|
-
groupIds: readonly
|
|
713
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
939
714
|
frameId: string | null;
|
|
940
|
-
boundElements: readonly
|
|
941
|
-
id: string;
|
|
942
|
-
type: "arrow" | "text";
|
|
943
|
-
}>[] | null;
|
|
715
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
944
716
|
updated: number;
|
|
945
717
|
link: string | null;
|
|
946
718
|
locked: boolean;
|
|
947
|
-
customData?: Record<string, any
|
|
719
|
+
customData?: Record<string, any>;
|
|
948
720
|
}> & {
|
|
949
721
|
type: "ellipse";
|
|
950
722
|
} & {
|
|
@@ -958,10 +730,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
958
730
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
959
731
|
strokeWidth: number;
|
|
960
732
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
961
|
-
roundness: {
|
|
733
|
+
roundness: null | {
|
|
962
734
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
963
|
-
value?: number
|
|
964
|
-
}
|
|
735
|
+
value?: number;
|
|
736
|
+
};
|
|
965
737
|
roughness: number;
|
|
966
738
|
opacity: number;
|
|
967
739
|
width: number;
|
|
@@ -972,16 +744,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
972
744
|
versionNonce: number;
|
|
973
745
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
974
746
|
isDeleted: boolean;
|
|
975
|
-
groupIds: readonly
|
|
747
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
976
748
|
frameId: string | null;
|
|
977
|
-
boundElements: readonly
|
|
978
|
-
id: string;
|
|
979
|
-
type: "arrow" | "text";
|
|
980
|
-
}>[] | null;
|
|
749
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
981
750
|
updated: number;
|
|
982
751
|
link: string | null;
|
|
983
752
|
locked: boolean;
|
|
984
|
-
customData?: Record<string, any
|
|
753
|
+
customData?: Record<string, any>;
|
|
985
754
|
}> & Readonly<{
|
|
986
755
|
type: "embeddable";
|
|
987
756
|
}> & {
|
|
@@ -995,10 +764,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
995
764
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
996
765
|
strokeWidth: number;
|
|
997
766
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
998
|
-
roundness: {
|
|
767
|
+
roundness: null | {
|
|
999
768
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1000
|
-
value?: number
|
|
1001
|
-
}
|
|
769
|
+
value?: number;
|
|
770
|
+
};
|
|
1002
771
|
roughness: number;
|
|
1003
772
|
opacity: number;
|
|
1004
773
|
width: number;
|
|
@@ -1009,21 +778,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1009
778
|
versionNonce: number;
|
|
1010
779
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1011
780
|
isDeleted: boolean;
|
|
1012
|
-
groupIds: readonly
|
|
781
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1013
782
|
frameId: string | null;
|
|
1014
|
-
boundElements: readonly
|
|
1015
|
-
id: string;
|
|
1016
|
-
type: "arrow" | "text";
|
|
1017
|
-
}>[] | null;
|
|
783
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1018
784
|
updated: number;
|
|
1019
785
|
link: string | null;
|
|
1020
786
|
locked: boolean;
|
|
1021
|
-
customData?: Record<string, any
|
|
787
|
+
customData?: Record<string, any>;
|
|
1022
788
|
}> & Readonly<{
|
|
1023
789
|
type: "iframe";
|
|
1024
790
|
customData?: {
|
|
1025
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
1026
|
-
}
|
|
791
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
792
|
+
};
|
|
1027
793
|
}> & {
|
|
1028
794
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1029
795
|
}) | (Readonly<{
|
|
@@ -1035,10 +801,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1035
801
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1036
802
|
strokeWidth: number;
|
|
1037
803
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1038
|
-
roundness: {
|
|
804
|
+
roundness: null | {
|
|
1039
805
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1040
|
-
value?: number
|
|
1041
|
-
}
|
|
806
|
+
value?: number;
|
|
807
|
+
};
|
|
1042
808
|
roughness: number;
|
|
1043
809
|
opacity: number;
|
|
1044
810
|
width: number;
|
|
@@ -1049,20 +815,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1049
815
|
versionNonce: number;
|
|
1050
816
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1051
817
|
isDeleted: boolean;
|
|
1052
|
-
groupIds: readonly
|
|
818
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1053
819
|
frameId: string | null;
|
|
1054
|
-
boundElements: readonly
|
|
1055
|
-
id: string;
|
|
1056
|
-
type: "arrow" | "text";
|
|
1057
|
-
}>[] | null;
|
|
820
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1058
821
|
updated: number;
|
|
1059
822
|
link: string | null;
|
|
1060
823
|
locked: boolean;
|
|
1061
|
-
customData?: Record<string, any
|
|
824
|
+
customData?: Record<string, any>;
|
|
1062
825
|
}> & Readonly<{
|
|
1063
826
|
type: "image";
|
|
1064
827
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1065
|
-
status: "pending" | "
|
|
828
|
+
status: "pending" | "saved" | "error";
|
|
1066
829
|
scale: [number, number];
|
|
1067
830
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1068
831
|
}> & {
|
|
@@ -1076,10 +839,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1076
839
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1077
840
|
strokeWidth: number;
|
|
1078
841
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1079
|
-
roundness: {
|
|
842
|
+
roundness: null | {
|
|
1080
843
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1081
|
-
value?: number
|
|
1082
|
-
}
|
|
844
|
+
value?: number;
|
|
845
|
+
};
|
|
1083
846
|
roughness: number;
|
|
1084
847
|
opacity: number;
|
|
1085
848
|
width: number;
|
|
@@ -1090,16 +853,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1090
853
|
versionNonce: number;
|
|
1091
854
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1092
855
|
isDeleted: boolean;
|
|
1093
|
-
groupIds: readonly
|
|
856
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1094
857
|
frameId: string | null;
|
|
1095
|
-
boundElements: readonly
|
|
1096
|
-
id: string;
|
|
1097
|
-
type: "arrow" | "text";
|
|
1098
|
-
}>[] | null;
|
|
858
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1099
859
|
updated: number;
|
|
1100
860
|
link: string | null;
|
|
1101
861
|
locked: boolean;
|
|
1102
|
-
customData?: Record<string, any
|
|
862
|
+
customData?: Record<string, any>;
|
|
1103
863
|
}> & {
|
|
1104
864
|
type: "frame";
|
|
1105
865
|
name: string | null;
|
|
@@ -1114,10 +874,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1114
874
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1115
875
|
strokeWidth: number;
|
|
1116
876
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1117
|
-
roundness: {
|
|
877
|
+
roundness: null | {
|
|
1118
878
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1119
|
-
value?: number
|
|
1120
|
-
}
|
|
879
|
+
value?: number;
|
|
880
|
+
};
|
|
1121
881
|
roughness: number;
|
|
1122
882
|
opacity: number;
|
|
1123
883
|
width: number;
|
|
@@ -1128,16 +888,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1128
888
|
versionNonce: number;
|
|
1129
889
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1130
890
|
isDeleted: boolean;
|
|
1131
|
-
groupIds: readonly
|
|
891
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1132
892
|
frameId: string | null;
|
|
1133
|
-
boundElements: readonly
|
|
1134
|
-
id: string;
|
|
1135
|
-
type: "arrow" | "text";
|
|
1136
|
-
}>[] | null;
|
|
893
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1137
894
|
updated: number;
|
|
1138
895
|
link: string | null;
|
|
1139
896
|
locked: boolean;
|
|
1140
|
-
customData?: Record<string, any
|
|
897
|
+
customData?: Record<string, any>;
|
|
1141
898
|
}> & {
|
|
1142
899
|
type: "magicframe";
|
|
1143
900
|
name: string | null;
|
|
@@ -1152,10 +909,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1152
909
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1153
910
|
strokeWidth: number;
|
|
1154
911
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1155
|
-
roundness: {
|
|
912
|
+
roundness: null | {
|
|
1156
913
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1157
|
-
value?: number
|
|
1158
|
-
}
|
|
914
|
+
value?: number;
|
|
915
|
+
};
|
|
1159
916
|
roughness: number;
|
|
1160
917
|
opacity: number;
|
|
1161
918
|
width: number;
|
|
@@ -1166,24 +923,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1166
923
|
versionNonce: number;
|
|
1167
924
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1168
925
|
isDeleted: boolean;
|
|
1169
|
-
groupIds: readonly
|
|
926
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1170
927
|
frameId: string | null;
|
|
1171
|
-
boundElements: readonly
|
|
1172
|
-
id: string;
|
|
1173
|
-
type: "arrow" | "text";
|
|
1174
|
-
}>[] | null;
|
|
928
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1175
929
|
updated: number;
|
|
1176
930
|
link: string | null;
|
|
1177
931
|
locked: boolean;
|
|
1178
|
-
customData?: Record<string, any
|
|
932
|
+
customData?: Record<string, any>;
|
|
1179
933
|
}> & Readonly<{
|
|
1180
934
|
type: "text";
|
|
1181
935
|
fontSize: number;
|
|
1182
|
-
fontFamily:
|
|
936
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1183
937
|
text: string;
|
|
1184
|
-
textAlign:
|
|
1185
|
-
verticalAlign:
|
|
1186
|
-
containerId:
|
|
938
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
939
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
940
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1187
941
|
originalText: string;
|
|
1188
942
|
autoResize: boolean;
|
|
1189
943
|
lineHeight: number & {
|
|
@@ -1200,10 +954,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1200
954
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1201
955
|
strokeWidth: number;
|
|
1202
956
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1203
|
-
roundness: {
|
|
957
|
+
roundness: null | {
|
|
1204
958
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1205
|
-
value?: number
|
|
1206
|
-
}
|
|
959
|
+
value?: number;
|
|
960
|
+
};
|
|
1207
961
|
roughness: number;
|
|
1208
962
|
opacity: number;
|
|
1209
963
|
width: number;
|
|
@@ -1214,22 +968,19 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1214
968
|
versionNonce: number;
|
|
1215
969
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1216
970
|
isDeleted: boolean;
|
|
1217
|
-
groupIds: readonly
|
|
971
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1218
972
|
frameId: string | null;
|
|
1219
|
-
boundElements: readonly
|
|
1220
|
-
id: string;
|
|
1221
|
-
type: "arrow" | "text";
|
|
1222
|
-
}>[] | null;
|
|
973
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1223
974
|
updated: number;
|
|
1224
975
|
link: string | null;
|
|
1225
976
|
locked: boolean;
|
|
1226
|
-
customData?: Record<string, any
|
|
977
|
+
customData?: Record<string, any>;
|
|
1227
978
|
}> & Readonly<{
|
|
1228
979
|
type: "freedraw";
|
|
1229
980
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1230
981
|
pressures: readonly number[];
|
|
1231
982
|
simulatePressure: boolean;
|
|
1232
|
-
|
|
983
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
1233
984
|
}> & {
|
|
1234
985
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1235
986
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|