@excalidraw/math 0.18.0-3bdaafe → 0.18.0-4872083
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 +348 -148
- 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 +48 -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 -77
- 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 +4 -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/sortElements.d.ts +10 -0
- 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 -219
- package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +112 -131
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +412 -1578
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +139 -899
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +54 -64
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +177 -208
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -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 -77
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +111 -130
- package/dist/types/excalidraw/actions/actionExport.d.ts +190 -1414
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +253 -504
- package/dist/types/excalidraw/actions/actionGroup.d.ts +122 -149
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +151 -197
- package/dist/types/excalidraw/actions/actionLink.d.ts +67 -77
- package/dist/types/excalidraw/actions/actionMenu.d.ts +56 -438
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
- package/dist/types/excalidraw/actions/actionProperties.d.ts +194 -2531
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +61 -75
- package/dist/types/excalidraw/actions/actionStyles.d.ts +54 -63
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +176 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +69 -80
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +176 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +68 -78
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +57 -74
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +67 -77
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +68 -78
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +68 -78
- 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 -25
- 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 +56 -19
- package/dist/types/excalidraw/components/Actions.d.ts +33 -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 +38 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
- package/dist/types/excalidraw/components/App.d.ts +455 -119
- 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 -4
- 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/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/{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 +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 +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 +2 -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/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 +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 +54 -22
- 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 +335 -15
- 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 +173 -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/data/types.d.ts +4 -1
- 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/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +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 +521 -55
- package/dist/types/excalidraw/viewport.d.ts +270 -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 +4 -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 -185
- 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/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" | 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: {
|
|
@@ -164,26 +155,25 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
164
155
|
y: number;
|
|
165
156
|
} | null;
|
|
166
157
|
objectsSnapModeEnabled: boolean;
|
|
167
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
168
|
-
followedBy: Set<import("../types").SocketId>;
|
|
169
158
|
isCropping: boolean;
|
|
170
|
-
croppingElementId:
|
|
159
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
171
160
|
searchMatches: Readonly<{
|
|
172
|
-
focusedId:
|
|
161
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
173
162
|
matches: readonly import("../types").SearchMatch[];
|
|
174
163
|
}> | null;
|
|
175
164
|
activeLockedId: string | null;
|
|
176
165
|
lockedMultiSelections: {
|
|
177
166
|
[groupId: string]: true;
|
|
178
167
|
};
|
|
168
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
179
169
|
};
|
|
180
170
|
captureUpdate: "IMMEDIATELY";
|
|
181
171
|
} | {
|
|
182
172
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
183
|
-
appState: Readonly<AppState>;
|
|
173
|
+
appState: Readonly<import("../types").AppState>;
|
|
184
174
|
captureUpdate: "EVENTUALLY";
|
|
185
175
|
};
|
|
186
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
176
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
187
177
|
} & {
|
|
188
178
|
keyTest?: undefined;
|
|
189
179
|
};
|
|
@@ -193,7 +183,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
193
183
|
trackEvent: {
|
|
194
184
|
category: "history";
|
|
195
185
|
};
|
|
196
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
186
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
197
187
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
198
188
|
appState: {
|
|
199
189
|
selectedElementIds: {
|
|
@@ -206,18 +196,27 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
206
196
|
} | null;
|
|
207
197
|
showWelcomeScreen: boolean;
|
|
208
198
|
isLoading: boolean;
|
|
209
|
-
errorMessage:
|
|
199
|
+
errorMessage: React.ReactNode;
|
|
210
200
|
activeEmbeddable: {
|
|
211
201
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
212
|
-
state: "
|
|
202
|
+
state: "hover" | "active";
|
|
213
203
|
} | null;
|
|
214
204
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
215
205
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
216
206
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
217
207
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
208
|
isBindingEnabled: boolean;
|
|
219
|
-
|
|
220
|
-
|
|
209
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
210
|
+
bindingPreference: "enabled" | "disabled";
|
|
211
|
+
isMidpointSnappingEnabled: boolean;
|
|
212
|
+
suggestedBinding: {
|
|
213
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
214
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
215
|
+
} | null;
|
|
216
|
+
hoveredArrowTextAnchor: {
|
|
217
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
218
|
+
anchor: "start" | "end" | "label";
|
|
219
|
+
} | null;
|
|
221
220
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
221
|
frameRendering: {
|
|
223
222
|
enabled: boolean;
|
|
@@ -225,14 +224,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
225
224
|
outline: boolean;
|
|
226
225
|
clip: boolean;
|
|
227
226
|
};
|
|
228
|
-
editingFrame:
|
|
229
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
230
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
227
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
228
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
229
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
231
230
|
activeTool: {
|
|
232
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
232
|
locked: boolean;
|
|
234
233
|
fromSelection: boolean;
|
|
235
234
|
} & import("../types").ActiveTool;
|
|
235
|
+
preferredSelectionTool: {
|
|
236
|
+
type: "selection" | "lasso";
|
|
237
|
+
initialized: boolean;
|
|
238
|
+
};
|
|
236
239
|
penMode: boolean;
|
|
237
240
|
penDetected: boolean;
|
|
238
241
|
exportBackground: boolean;
|
|
@@ -241,47 +244,53 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
241
244
|
exportScale: number;
|
|
242
245
|
currentItemStrokeColor: string;
|
|
243
246
|
currentItemBackgroundColor: string;
|
|
244
|
-
currentItemFillStyle:
|
|
245
|
-
|
|
246
|
-
currentItemStrokeStyle:
|
|
247
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
248
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
249
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
247
250
|
currentItemRoughness: number;
|
|
251
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
248
252
|
currentItemOpacity: number;
|
|
249
|
-
currentItemFontFamily:
|
|
253
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
250
254
|
currentItemFontSize: number;
|
|
251
|
-
currentItemTextAlign:
|
|
255
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
252
256
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
253
257
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
254
|
-
currentHoveredFontFamily:
|
|
258
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
255
259
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
256
|
-
currentItemArrowType: "
|
|
260
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
257
261
|
viewBackgroundColor: string;
|
|
258
262
|
scrollX: number;
|
|
259
263
|
scrollY: number;
|
|
264
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
260
265
|
cursorButton: "up" | "down";
|
|
261
266
|
scrolledOutside: boolean;
|
|
262
267
|
name: string | null;
|
|
263
268
|
isResizing: boolean;
|
|
264
269
|
isRotating: boolean;
|
|
265
|
-
zoom:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
openMenu: "canvas" | "shape" | null;
|
|
269
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
270
|
+
zoom: import("../types").Zoom;
|
|
271
|
+
openMenu: "canvas" | null;
|
|
272
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
270
273
|
openSidebar: {
|
|
271
|
-
name:
|
|
272
|
-
tab?:
|
|
274
|
+
name: import("../types").SidebarName;
|
|
275
|
+
tab?: import("../types").SidebarTabName;
|
|
273
276
|
} | null;
|
|
274
|
-
openDialog: {
|
|
277
|
+
openDialog: null | {
|
|
275
278
|
name: "imageExport" | "help" | "jsonExport";
|
|
276
279
|
} | {
|
|
277
280
|
name: "ttd";
|
|
278
|
-
tab: "
|
|
281
|
+
tab: "text-to-diagram" | "mermaid";
|
|
279
282
|
} | {
|
|
280
283
|
name: "commandPalette";
|
|
284
|
+
} | {
|
|
285
|
+
name: "settings";
|
|
281
286
|
} | {
|
|
282
287
|
name: "elementLinkSelector";
|
|
283
|
-
sourceElementId:
|
|
284
|
-
} |
|
|
288
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
289
|
+
} | {
|
|
290
|
+
name: "charts";
|
|
291
|
+
data: import("../charts").Spreadsheet;
|
|
292
|
+
rawText: string;
|
|
293
|
+
};
|
|
285
294
|
defaultSidebarDockedPreference: boolean;
|
|
286
295
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
287
296
|
hoveredElementIds: Readonly<{
|
|
@@ -293,9 +302,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
293
302
|
selectedElementsAreBeingDragged: boolean;
|
|
294
303
|
shouldCacheIgnoreZoom: boolean;
|
|
295
304
|
toast: {
|
|
296
|
-
message:
|
|
297
|
-
closable?: boolean
|
|
298
|
-
duration?: number
|
|
305
|
+
message: React.ReactNode;
|
|
306
|
+
closable?: boolean;
|
|
307
|
+
duration?: number;
|
|
299
308
|
} | null;
|
|
300
309
|
zenModeEnabled: boolean;
|
|
301
310
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -306,45 +315,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
306
315
|
selectedGroupIds: {
|
|
307
316
|
[groupId: string]: boolean;
|
|
308
317
|
};
|
|
309
|
-
editingGroupId:
|
|
318
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
310
319
|
width: number;
|
|
311
320
|
height: number;
|
|
312
321
|
offsetTop: number;
|
|
313
322
|
offsetLeft: number;
|
|
314
|
-
fileHandle:
|
|
315
|
-
collaborators: Map<import("../types").SocketId,
|
|
316
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
317
|
-
button?: "up" | "down" | undefined;
|
|
318
|
-
selectedElementIds?: Readonly<{
|
|
319
|
-
[id: string]: true;
|
|
320
|
-
}> | undefined;
|
|
321
|
-
username?: string | null | undefined;
|
|
322
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
323
|
-
color?: {
|
|
324
|
-
background: string;
|
|
325
|
-
stroke: string;
|
|
326
|
-
} | undefined;
|
|
327
|
-
avatarUrl?: string | undefined;
|
|
328
|
-
id?: string | undefined;
|
|
329
|
-
socketId?: import("../types").SocketId | undefined;
|
|
330
|
-
isCurrentUser?: boolean | undefined;
|
|
331
|
-
isInCall?: boolean | undefined;
|
|
332
|
-
isSpeaking?: boolean | undefined;
|
|
333
|
-
isMuted?: boolean | undefined;
|
|
334
|
-
}>>;
|
|
323
|
+
fileHandle: FileSystemFileHandle | null;
|
|
324
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
335
325
|
stats: {
|
|
336
326
|
open: boolean;
|
|
337
327
|
panels: number;
|
|
338
328
|
};
|
|
339
|
-
|
|
340
|
-
pasteDialog: {
|
|
341
|
-
shown: false;
|
|
342
|
-
data: null;
|
|
343
|
-
} | {
|
|
344
|
-
shown: true;
|
|
345
|
-
data: import("../charts").Spreadsheet;
|
|
346
|
-
};
|
|
347
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
329
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
348
330
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
349
331
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
350
332
|
originSnapOffset: {
|
|
@@ -352,26 +334,25 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
352
334
|
y: number;
|
|
353
335
|
} | null;
|
|
354
336
|
objectsSnapModeEnabled: boolean;
|
|
355
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
356
|
-
followedBy: Set<import("../types").SocketId>;
|
|
357
337
|
isCropping: boolean;
|
|
358
|
-
croppingElementId:
|
|
338
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
359
339
|
searchMatches: Readonly<{
|
|
360
|
-
focusedId:
|
|
340
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
361
341
|
matches: readonly import("../types").SearchMatch[];
|
|
362
342
|
}> | null;
|
|
363
343
|
activeLockedId: string | null;
|
|
364
344
|
lockedMultiSelections: {
|
|
365
345
|
[groupId: string]: true;
|
|
366
346
|
};
|
|
347
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
367
348
|
};
|
|
368
349
|
captureUpdate: "IMMEDIATELY";
|
|
369
350
|
} | {
|
|
370
351
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
371
|
-
appState: Readonly<AppState>;
|
|
352
|
+
appState: Readonly<import("../types").AppState>;
|
|
372
353
|
captureUpdate: "EVENTUALLY";
|
|
373
354
|
};
|
|
374
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
355
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
375
356
|
} & {
|
|
376
357
|
keyTest?: undefined;
|
|
377
358
|
};
|
|
@@ -382,7 +363,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
382
363
|
trackEvent: {
|
|
383
364
|
category: "canvas";
|
|
384
365
|
};
|
|
385
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
366
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
386
367
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
387
368
|
appState: {
|
|
388
369
|
frameRendering: {
|
|
@@ -398,27 +379,40 @@ export declare const actionupdateFrameRendering: {
|
|
|
398
379
|
} | null;
|
|
399
380
|
showWelcomeScreen: boolean;
|
|
400
381
|
isLoading: boolean;
|
|
401
|
-
errorMessage:
|
|
382
|
+
errorMessage: React.ReactNode;
|
|
402
383
|
activeEmbeddable: {
|
|
403
384
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
404
|
-
state: "
|
|
385
|
+
state: "hover" | "active";
|
|
405
386
|
} | null;
|
|
406
387
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
407
388
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
408
389
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
409
390
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
410
391
|
isBindingEnabled: boolean;
|
|
411
|
-
|
|
412
|
-
|
|
392
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
393
|
+
bindingPreference: "enabled" | "disabled";
|
|
394
|
+
isMidpointSnappingEnabled: boolean;
|
|
395
|
+
suggestedBinding: {
|
|
396
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
397
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
398
|
+
} | null;
|
|
399
|
+
hoveredArrowTextAnchor: {
|
|
400
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
401
|
+
anchor: "start" | "end" | "label";
|
|
402
|
+
} | null;
|
|
413
403
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
414
|
-
editingFrame:
|
|
415
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
416
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
404
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
405
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
406
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
417
407
|
activeTool: {
|
|
418
408
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
419
409
|
locked: boolean;
|
|
420
410
|
fromSelection: boolean;
|
|
421
411
|
} & import("../types").ActiveTool;
|
|
412
|
+
preferredSelectionTool: {
|
|
413
|
+
type: "selection" | "lasso";
|
|
414
|
+
initialized: boolean;
|
|
415
|
+
};
|
|
422
416
|
penMode: boolean;
|
|
423
417
|
penDetected: boolean;
|
|
424
418
|
exportBackground: boolean;
|
|
@@ -427,233 +421,53 @@ export declare const actionupdateFrameRendering: {
|
|
|
427
421
|
exportScale: number;
|
|
428
422
|
currentItemStrokeColor: string;
|
|
429
423
|
currentItemBackgroundColor: string;
|
|
430
|
-
currentItemFillStyle:
|
|
431
|
-
|
|
432
|
-
currentItemStrokeStyle:
|
|
424
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
425
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
426
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
433
427
|
currentItemRoughness: number;
|
|
428
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
434
429
|
currentItemOpacity: number;
|
|
435
|
-
currentItemFontFamily:
|
|
430
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
436
431
|
currentItemFontSize: number;
|
|
437
|
-
currentItemTextAlign:
|
|
432
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
438
433
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
439
434
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
440
|
-
currentHoveredFontFamily:
|
|
435
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
441
436
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
442
|
-
currentItemArrowType: "
|
|
437
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
443
438
|
viewBackgroundColor: string;
|
|
444
439
|
scrollX: number;
|
|
445
440
|
scrollY: number;
|
|
441
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
446
442
|
cursorButton: "up" | "down";
|
|
447
443
|
scrolledOutside: boolean;
|
|
448
444
|
name: string | null;
|
|
449
445
|
isResizing: boolean;
|
|
450
446
|
isRotating: boolean;
|
|
451
|
-
zoom:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
openMenu: "canvas" | "shape" | null;
|
|
455
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
447
|
+
zoom: import("../types").Zoom;
|
|
448
|
+
openMenu: "canvas" | null;
|
|
449
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
456
450
|
openSidebar: {
|
|
457
|
-
name:
|
|
458
|
-
tab?:
|
|
451
|
+
name: import("../types").SidebarName;
|
|
452
|
+
tab?: import("../types").SidebarTabName;
|
|
459
453
|
} | null;
|
|
460
|
-
openDialog: {
|
|
454
|
+
openDialog: null | {
|
|
461
455
|
name: "imageExport" | "help" | "jsonExport";
|
|
462
456
|
} | {
|
|
463
457
|
name: "ttd";
|
|
464
|
-
tab: "
|
|
458
|
+
tab: "text-to-diagram" | "mermaid";
|
|
465
459
|
} | {
|
|
466
460
|
name: "commandPalette";
|
|
461
|
+
} | {
|
|
462
|
+
name: "settings";
|
|
467
463
|
} | {
|
|
468
464
|
name: "elementLinkSelector";
|
|
469
|
-
sourceElementId:
|
|
470
|
-
} | null;
|
|
471
|
-
defaultSidebarDockedPreference: boolean;
|
|
472
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
473
|
-
selectedElementIds: Readonly<{
|
|
474
|
-
[id: string]: true;
|
|
475
|
-
}>;
|
|
476
|
-
hoveredElementIds: Readonly<{
|
|
477
|
-
[id: string]: true;
|
|
478
|
-
}>;
|
|
479
|
-
previousSelectedElementIds: {
|
|
480
|
-
[id: string]: true;
|
|
481
|
-
};
|
|
482
|
-
selectedElementsAreBeingDragged: boolean;
|
|
483
|
-
shouldCacheIgnoreZoom: boolean;
|
|
484
|
-
toast: {
|
|
485
|
-
message: string;
|
|
486
|
-
closable?: boolean | undefined;
|
|
487
|
-
duration?: number | undefined;
|
|
488
|
-
} | null;
|
|
489
|
-
zenModeEnabled: boolean;
|
|
490
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
491
|
-
gridSize: number;
|
|
492
|
-
gridStep: number;
|
|
493
|
-
gridModeEnabled: boolean;
|
|
494
|
-
viewModeEnabled: boolean;
|
|
495
|
-
selectedGroupIds: {
|
|
496
|
-
[groupId: string]: boolean;
|
|
497
|
-
};
|
|
498
|
-
editingGroupId: string | null;
|
|
499
|
-
width: number;
|
|
500
|
-
height: number;
|
|
501
|
-
offsetTop: number;
|
|
502
|
-
offsetLeft: number;
|
|
503
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
504
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
505
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
506
|
-
button?: "up" | "down" | undefined;
|
|
507
|
-
selectedElementIds?: Readonly<{
|
|
508
|
-
[id: string]: true;
|
|
509
|
-
}> | undefined;
|
|
510
|
-
username?: string | null | undefined;
|
|
511
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
512
|
-
color?: {
|
|
513
|
-
background: string;
|
|
514
|
-
stroke: string;
|
|
515
|
-
} | undefined;
|
|
516
|
-
avatarUrl?: string | undefined;
|
|
517
|
-
id?: string | undefined;
|
|
518
|
-
socketId?: import("../types").SocketId | undefined;
|
|
519
|
-
isCurrentUser?: boolean | undefined;
|
|
520
|
-
isInCall?: boolean | undefined;
|
|
521
|
-
isSpeaking?: boolean | undefined;
|
|
522
|
-
isMuted?: boolean | undefined;
|
|
523
|
-
}>>;
|
|
524
|
-
stats: {
|
|
525
|
-
open: boolean;
|
|
526
|
-
panels: number;
|
|
527
|
-
};
|
|
528
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
529
|
-
pasteDialog: {
|
|
530
|
-
shown: false;
|
|
531
|
-
data: null;
|
|
465
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
532
466
|
} | {
|
|
533
|
-
|
|
467
|
+
name: "charts";
|
|
534
468
|
data: import("../charts").Spreadsheet;
|
|
469
|
+
rawText: string;
|
|
535
470
|
};
|
|
536
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
537
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
538
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
539
|
-
originSnapOffset: {
|
|
540
|
-
x: number;
|
|
541
|
-
y: number;
|
|
542
|
-
} | null;
|
|
543
|
-
objectsSnapModeEnabled: boolean;
|
|
544
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
545
|
-
followedBy: Set<import("../types").SocketId>;
|
|
546
|
-
isCropping: boolean;
|
|
547
|
-
croppingElementId: string | null;
|
|
548
|
-
searchMatches: Readonly<{
|
|
549
|
-
focusedId: string | null;
|
|
550
|
-
matches: readonly import("../types").SearchMatch[];
|
|
551
|
-
}> | null;
|
|
552
|
-
activeLockedId: string | null;
|
|
553
|
-
lockedMultiSelections: {
|
|
554
|
-
[groupId: string]: true;
|
|
555
|
-
};
|
|
556
|
-
};
|
|
557
|
-
captureUpdate: "EVENTUALLY";
|
|
558
|
-
};
|
|
559
|
-
checked: (appState: AppState) => boolean;
|
|
560
|
-
} & {
|
|
561
|
-
keyTest?: undefined;
|
|
562
|
-
};
|
|
563
|
-
export declare const actionSetFrameAsActiveTool: {
|
|
564
|
-
name: "setFrameAsActiveTool";
|
|
565
|
-
label: string;
|
|
566
|
-
trackEvent: {
|
|
567
|
-
category: "toolbar";
|
|
568
|
-
};
|
|
569
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
570
|
-
viewMode: false;
|
|
571
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
572
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
573
|
-
appState: {
|
|
574
|
-
activeTool: {
|
|
575
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
576
|
-
locked: boolean;
|
|
577
|
-
fromSelection: boolean;
|
|
578
|
-
} & import("../types").ActiveTool;
|
|
579
|
-
contextMenu: {
|
|
580
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
581
|
-
top: number;
|
|
582
|
-
left: number;
|
|
583
|
-
} | null;
|
|
584
|
-
showWelcomeScreen: boolean;
|
|
585
|
-
isLoading: boolean;
|
|
586
|
-
errorMessage: import("react").ReactNode;
|
|
587
|
-
activeEmbeddable: {
|
|
588
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
589
|
-
state: "active" | "hover";
|
|
590
|
-
} | null;
|
|
591
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
592
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
593
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
594
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
595
|
-
isBindingEnabled: boolean;
|
|
596
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
597
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
598
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
599
|
-
frameRendering: {
|
|
600
|
-
enabled: boolean;
|
|
601
|
-
name: boolean;
|
|
602
|
-
outline: boolean;
|
|
603
|
-
clip: boolean;
|
|
604
|
-
};
|
|
605
|
-
editingFrame: string | null;
|
|
606
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
607
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
608
|
-
penMode: boolean;
|
|
609
|
-
penDetected: boolean;
|
|
610
|
-
exportBackground: boolean;
|
|
611
|
-
exportEmbedScene: boolean;
|
|
612
|
-
exportWithDarkMode: boolean;
|
|
613
|
-
exportScale: number;
|
|
614
|
-
currentItemStrokeColor: string;
|
|
615
|
-
currentItemBackgroundColor: string;
|
|
616
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
617
|
-
currentItemStrokeWidth: number;
|
|
618
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
619
|
-
currentItemRoughness: number;
|
|
620
|
-
currentItemOpacity: number;
|
|
621
|
-
currentItemFontFamily: number;
|
|
622
|
-
currentItemFontSize: number;
|
|
623
|
-
currentItemTextAlign: string;
|
|
624
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
625
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
626
|
-
currentHoveredFontFamily: number | null;
|
|
627
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
628
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
629
|
-
viewBackgroundColor: string;
|
|
630
|
-
scrollX: number;
|
|
631
|
-
scrollY: number;
|
|
632
|
-
cursorButton: "up" | "down";
|
|
633
|
-
scrolledOutside: boolean;
|
|
634
|
-
name: string | null;
|
|
635
|
-
isResizing: boolean;
|
|
636
|
-
isRotating: boolean;
|
|
637
|
-
zoom: Readonly<{
|
|
638
|
-
value: import("../types").NormalizedZoomValue;
|
|
639
|
-
}>;
|
|
640
|
-
openMenu: "canvas" | "shape" | null;
|
|
641
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
642
|
-
openSidebar: {
|
|
643
|
-
name: string;
|
|
644
|
-
tab?: string | undefined;
|
|
645
|
-
} | null;
|
|
646
|
-
openDialog: {
|
|
647
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
648
|
-
} | {
|
|
649
|
-
name: "ttd";
|
|
650
|
-
tab: "mermaid" | "text-to-diagram";
|
|
651
|
-
} | {
|
|
652
|
-
name: "commandPalette";
|
|
653
|
-
} | {
|
|
654
|
-
name: "elementLinkSelector";
|
|
655
|
-
sourceElementId: string;
|
|
656
|
-
} | null;
|
|
657
471
|
defaultSidebarDockedPreference: boolean;
|
|
658
472
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
659
473
|
selectedElementIds: Readonly<{
|
|
@@ -668,9 +482,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
668
482
|
selectedElementsAreBeingDragged: boolean;
|
|
669
483
|
shouldCacheIgnoreZoom: boolean;
|
|
670
484
|
toast: {
|
|
671
|
-
message:
|
|
672
|
-
closable?: boolean
|
|
673
|
-
duration?: number
|
|
485
|
+
message: React.ReactNode;
|
|
486
|
+
closable?: boolean;
|
|
487
|
+
duration?: number;
|
|
674
488
|
} | null;
|
|
675
489
|
zenModeEnabled: boolean;
|
|
676
490
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -681,45 +495,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
681
495
|
selectedGroupIds: {
|
|
682
496
|
[groupId: string]: boolean;
|
|
683
497
|
};
|
|
684
|
-
editingGroupId:
|
|
498
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
685
499
|
width: number;
|
|
686
500
|
height: number;
|
|
687
501
|
offsetTop: number;
|
|
688
502
|
offsetLeft: number;
|
|
689
|
-
fileHandle:
|
|
690
|
-
collaborators: Map<import("../types").SocketId,
|
|
691
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
692
|
-
button?: "up" | "down" | undefined;
|
|
693
|
-
selectedElementIds?: Readonly<{
|
|
694
|
-
[id: string]: true;
|
|
695
|
-
}> | undefined;
|
|
696
|
-
username?: string | null | undefined;
|
|
697
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
698
|
-
color?: {
|
|
699
|
-
background: string;
|
|
700
|
-
stroke: string;
|
|
701
|
-
} | undefined;
|
|
702
|
-
avatarUrl?: string | undefined;
|
|
703
|
-
id?: string | undefined;
|
|
704
|
-
socketId?: import("../types").SocketId | undefined;
|
|
705
|
-
isCurrentUser?: boolean | undefined;
|
|
706
|
-
isInCall?: boolean | undefined;
|
|
707
|
-
isSpeaking?: boolean | undefined;
|
|
708
|
-
isMuted?: boolean | undefined;
|
|
709
|
-
}>>;
|
|
503
|
+
fileHandle: FileSystemFileHandle | null;
|
|
504
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
710
505
|
stats: {
|
|
711
506
|
open: boolean;
|
|
712
507
|
panels: number;
|
|
713
508
|
};
|
|
714
|
-
|
|
715
|
-
pasteDialog: {
|
|
716
|
-
shown: false;
|
|
717
|
-
data: null;
|
|
718
|
-
} | {
|
|
719
|
-
shown: true;
|
|
720
|
-
data: import("../charts").Spreadsheet;
|
|
721
|
-
};
|
|
722
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
509
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
723
510
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
724
511
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
725
512
|
originSnapOffset: {
|
|
@@ -727,24 +514,23 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
727
514
|
y: number;
|
|
728
515
|
} | null;
|
|
729
516
|
objectsSnapModeEnabled: boolean;
|
|
730
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
731
|
-
followedBy: Set<import("../types").SocketId>;
|
|
732
517
|
isCropping: boolean;
|
|
733
|
-
croppingElementId:
|
|
518
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
734
519
|
searchMatches: Readonly<{
|
|
735
|
-
focusedId:
|
|
520
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
736
521
|
matches: readonly import("../types").SearchMatch[];
|
|
737
522
|
}> | null;
|
|
738
523
|
activeLockedId: string | null;
|
|
739
524
|
lockedMultiSelections: {
|
|
740
525
|
[groupId: string]: true;
|
|
741
526
|
};
|
|
527
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
742
528
|
};
|
|
743
529
|
captureUpdate: "EVENTUALLY";
|
|
744
530
|
};
|
|
745
|
-
|
|
531
|
+
checked: (appState: Readonly<UIAppState>) => boolean;
|
|
746
532
|
} & {
|
|
747
|
-
keyTest?:
|
|
533
|
+
keyTest?: undefined;
|
|
748
534
|
};
|
|
749
535
|
export declare const actionWrapSelectionInFrame: {
|
|
750
536
|
name: "wrapSelectionInFrame";
|
|
@@ -752,8 +538,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
752
538
|
trackEvent: {
|
|
753
539
|
category: "element";
|
|
754
540
|
};
|
|
755
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
756
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
541
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
542
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
757
543
|
elements: ((Readonly<{
|
|
758
544
|
id: string;
|
|
759
545
|
x: number;
|
|
@@ -763,10 +549,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
763
549
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
764
550
|
strokeWidth: number;
|
|
765
551
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
766
|
-
roundness: {
|
|
552
|
+
roundness: null | {
|
|
767
553
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
768
|
-
value?: number
|
|
769
|
-
}
|
|
554
|
+
value?: number;
|
|
555
|
+
};
|
|
770
556
|
roughness: number;
|
|
771
557
|
opacity: number;
|
|
772
558
|
width: number;
|
|
@@ -777,22 +563,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
777
563
|
versionNonce: number;
|
|
778
564
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
779
565
|
isDeleted: boolean;
|
|
780
|
-
groupIds: readonly
|
|
566
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
781
567
|
frameId: string | null;
|
|
782
|
-
boundElements: readonly
|
|
783
|
-
id: string;
|
|
784
|
-
type: "arrow" | "text";
|
|
785
|
-
}>[] | null;
|
|
568
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
786
569
|
updated: number;
|
|
787
570
|
link: string | null;
|
|
788
571
|
locked: boolean;
|
|
789
|
-
customData?: Record<string, any
|
|
572
|
+
customData?: Record<string, any>;
|
|
790
573
|
}> & Readonly<{
|
|
791
574
|
type: "line" | "arrow";
|
|
792
575
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
576
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
577
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
796
578
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
797
579
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
798
580
|
}> & {
|
|
@@ -806,10 +588,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
806
588
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
807
589
|
strokeWidth: number;
|
|
808
590
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
809
|
-
roundness: {
|
|
591
|
+
roundness: null | {
|
|
810
592
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
811
|
-
value?: number
|
|
812
|
-
}
|
|
593
|
+
value?: number;
|
|
594
|
+
};
|
|
813
595
|
roughness: number;
|
|
814
596
|
opacity: number;
|
|
815
597
|
width: number;
|
|
@@ -820,16 +602,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
820
602
|
versionNonce: number;
|
|
821
603
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
822
604
|
isDeleted: boolean;
|
|
823
|
-
groupIds: readonly
|
|
605
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
824
606
|
frameId: string | null;
|
|
825
|
-
boundElements: readonly
|
|
826
|
-
id: string;
|
|
827
|
-
type: "arrow" | "text";
|
|
828
|
-
}>[] | null;
|
|
607
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
829
608
|
updated: number;
|
|
830
609
|
link: string | null;
|
|
831
610
|
locked: boolean;
|
|
832
|
-
customData?: Record<string, any
|
|
611
|
+
customData?: Record<string, any>;
|
|
833
612
|
}> & {
|
|
834
613
|
type: "selection";
|
|
835
614
|
} & {
|
|
@@ -843,10 +622,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
843
622
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
844
623
|
strokeWidth: number;
|
|
845
624
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
846
|
-
roundness: {
|
|
625
|
+
roundness: null | {
|
|
847
626
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
848
|
-
value?: number
|
|
849
|
-
}
|
|
627
|
+
value?: number;
|
|
628
|
+
};
|
|
850
629
|
roughness: number;
|
|
851
630
|
opacity: number;
|
|
852
631
|
width: number;
|
|
@@ -857,16 +636,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
857
636
|
versionNonce: number;
|
|
858
637
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
859
638
|
isDeleted: boolean;
|
|
860
|
-
groupIds: readonly
|
|
639
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
861
640
|
frameId: string | null;
|
|
862
|
-
boundElements: readonly
|
|
863
|
-
id: string;
|
|
864
|
-
type: "arrow" | "text";
|
|
865
|
-
}>[] | null;
|
|
641
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
866
642
|
updated: number;
|
|
867
643
|
link: string | null;
|
|
868
644
|
locked: boolean;
|
|
869
|
-
customData?: Record<string, any
|
|
645
|
+
customData?: Record<string, any>;
|
|
870
646
|
}> & {
|
|
871
647
|
type: "rectangle";
|
|
872
648
|
} & {
|
|
@@ -880,10 +656,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
880
656
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
881
657
|
strokeWidth: number;
|
|
882
658
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
883
|
-
roundness: {
|
|
659
|
+
roundness: null | {
|
|
884
660
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
885
|
-
value?: number
|
|
886
|
-
}
|
|
661
|
+
value?: number;
|
|
662
|
+
};
|
|
887
663
|
roughness: number;
|
|
888
664
|
opacity: number;
|
|
889
665
|
width: number;
|
|
@@ -894,16 +670,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
894
670
|
versionNonce: number;
|
|
895
671
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
896
672
|
isDeleted: boolean;
|
|
897
|
-
groupIds: readonly
|
|
673
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
898
674
|
frameId: string | null;
|
|
899
|
-
boundElements: readonly
|
|
900
|
-
id: string;
|
|
901
|
-
type: "arrow" | "text";
|
|
902
|
-
}>[] | null;
|
|
675
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
903
676
|
updated: number;
|
|
904
677
|
link: string | null;
|
|
905
678
|
locked: boolean;
|
|
906
|
-
customData?: Record<string, any
|
|
679
|
+
customData?: Record<string, any>;
|
|
907
680
|
}> & {
|
|
908
681
|
type: "diamond";
|
|
909
682
|
} & {
|
|
@@ -917,10 +690,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
917
690
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
918
691
|
strokeWidth: number;
|
|
919
692
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
920
|
-
roundness: {
|
|
693
|
+
roundness: null | {
|
|
921
694
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
922
|
-
value?: number
|
|
923
|
-
}
|
|
695
|
+
value?: number;
|
|
696
|
+
};
|
|
924
697
|
roughness: number;
|
|
925
698
|
opacity: number;
|
|
926
699
|
width: number;
|
|
@@ -931,16 +704,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
931
704
|
versionNonce: number;
|
|
932
705
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
933
706
|
isDeleted: boolean;
|
|
934
|
-
groupIds: readonly
|
|
707
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
935
708
|
frameId: string | null;
|
|
936
|
-
boundElements: readonly
|
|
937
|
-
id: string;
|
|
938
|
-
type: "arrow" | "text";
|
|
939
|
-
}>[] | null;
|
|
709
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
940
710
|
updated: number;
|
|
941
711
|
link: string | null;
|
|
942
712
|
locked: boolean;
|
|
943
|
-
customData?: Record<string, any
|
|
713
|
+
customData?: Record<string, any>;
|
|
944
714
|
}> & {
|
|
945
715
|
type: "ellipse";
|
|
946
716
|
} & {
|
|
@@ -954,10 +724,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
954
724
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
955
725
|
strokeWidth: number;
|
|
956
726
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
957
|
-
roundness: {
|
|
727
|
+
roundness: null | {
|
|
958
728
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
959
|
-
value?: number
|
|
960
|
-
}
|
|
729
|
+
value?: number;
|
|
730
|
+
};
|
|
961
731
|
roughness: number;
|
|
962
732
|
opacity: number;
|
|
963
733
|
width: number;
|
|
@@ -968,16 +738,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
968
738
|
versionNonce: number;
|
|
969
739
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
970
740
|
isDeleted: boolean;
|
|
971
|
-
groupIds: readonly
|
|
741
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
972
742
|
frameId: string | null;
|
|
973
|
-
boundElements: readonly
|
|
974
|
-
id: string;
|
|
975
|
-
type: "arrow" | "text";
|
|
976
|
-
}>[] | null;
|
|
743
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
977
744
|
updated: number;
|
|
978
745
|
link: string | null;
|
|
979
746
|
locked: boolean;
|
|
980
|
-
customData?: Record<string, any
|
|
747
|
+
customData?: Record<string, any>;
|
|
981
748
|
}> & Readonly<{
|
|
982
749
|
type: "embeddable";
|
|
983
750
|
}> & {
|
|
@@ -991,10 +758,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
991
758
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
992
759
|
strokeWidth: number;
|
|
993
760
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
994
|
-
roundness: {
|
|
761
|
+
roundness: null | {
|
|
995
762
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
996
|
-
value?: number
|
|
997
|
-
}
|
|
763
|
+
value?: number;
|
|
764
|
+
};
|
|
998
765
|
roughness: number;
|
|
999
766
|
opacity: number;
|
|
1000
767
|
width: number;
|
|
@@ -1005,21 +772,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1005
772
|
versionNonce: number;
|
|
1006
773
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1007
774
|
isDeleted: boolean;
|
|
1008
|
-
groupIds: readonly
|
|
775
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1009
776
|
frameId: string | null;
|
|
1010
|
-
boundElements: readonly
|
|
1011
|
-
id: string;
|
|
1012
|
-
type: "arrow" | "text";
|
|
1013
|
-
}>[] | null;
|
|
777
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1014
778
|
updated: number;
|
|
1015
779
|
link: string | null;
|
|
1016
780
|
locked: boolean;
|
|
1017
|
-
customData?: Record<string, any
|
|
781
|
+
customData?: Record<string, any>;
|
|
1018
782
|
}> & Readonly<{
|
|
1019
783
|
type: "iframe";
|
|
1020
784
|
customData?: {
|
|
1021
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
1022
|
-
}
|
|
785
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
786
|
+
};
|
|
1023
787
|
}> & {
|
|
1024
788
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1025
789
|
}) | (Readonly<{
|
|
@@ -1031,10 +795,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1031
795
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1032
796
|
strokeWidth: number;
|
|
1033
797
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1034
|
-
roundness: {
|
|
798
|
+
roundness: null | {
|
|
1035
799
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1036
|
-
value?: number
|
|
1037
|
-
}
|
|
800
|
+
value?: number;
|
|
801
|
+
};
|
|
1038
802
|
roughness: number;
|
|
1039
803
|
opacity: number;
|
|
1040
804
|
width: number;
|
|
@@ -1045,20 +809,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1045
809
|
versionNonce: number;
|
|
1046
810
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1047
811
|
isDeleted: boolean;
|
|
1048
|
-
groupIds: readonly
|
|
812
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1049
813
|
frameId: string | null;
|
|
1050
|
-
boundElements: readonly
|
|
1051
|
-
id: string;
|
|
1052
|
-
type: "arrow" | "text";
|
|
1053
|
-
}>[] | null;
|
|
814
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1054
815
|
updated: number;
|
|
1055
816
|
link: string | null;
|
|
1056
817
|
locked: boolean;
|
|
1057
|
-
customData?: Record<string, any
|
|
818
|
+
customData?: Record<string, any>;
|
|
1058
819
|
}> & Readonly<{
|
|
1059
820
|
type: "image";
|
|
1060
821
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1061
|
-
status: "pending" | "
|
|
822
|
+
status: "pending" | "saved" | "error";
|
|
1062
823
|
scale: [number, number];
|
|
1063
824
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1064
825
|
}> & {
|
|
@@ -1072,10 +833,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1072
833
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1073
834
|
strokeWidth: number;
|
|
1074
835
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1075
|
-
roundness: {
|
|
836
|
+
roundness: null | {
|
|
1076
837
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1077
|
-
value?: number
|
|
1078
|
-
}
|
|
838
|
+
value?: number;
|
|
839
|
+
};
|
|
1079
840
|
roughness: number;
|
|
1080
841
|
opacity: number;
|
|
1081
842
|
width: number;
|
|
@@ -1086,16 +847,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1086
847
|
versionNonce: number;
|
|
1087
848
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1088
849
|
isDeleted: boolean;
|
|
1089
|
-
groupIds: readonly
|
|
850
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1090
851
|
frameId: string | null;
|
|
1091
|
-
boundElements: readonly
|
|
1092
|
-
id: string;
|
|
1093
|
-
type: "arrow" | "text";
|
|
1094
|
-
}>[] | null;
|
|
852
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1095
853
|
updated: number;
|
|
1096
854
|
link: string | null;
|
|
1097
855
|
locked: boolean;
|
|
1098
|
-
customData?: Record<string, any
|
|
856
|
+
customData?: Record<string, any>;
|
|
1099
857
|
}> & {
|
|
1100
858
|
type: "frame";
|
|
1101
859
|
name: string | null;
|
|
@@ -1110,10 +868,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1110
868
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1111
869
|
strokeWidth: number;
|
|
1112
870
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1113
|
-
roundness: {
|
|
871
|
+
roundness: null | {
|
|
1114
872
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1115
|
-
value?: number
|
|
1116
|
-
}
|
|
873
|
+
value?: number;
|
|
874
|
+
};
|
|
1117
875
|
roughness: number;
|
|
1118
876
|
opacity: number;
|
|
1119
877
|
width: number;
|
|
@@ -1124,16 +882,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1124
882
|
versionNonce: number;
|
|
1125
883
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1126
884
|
isDeleted: boolean;
|
|
1127
|
-
groupIds: readonly
|
|
885
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1128
886
|
frameId: string | null;
|
|
1129
|
-
boundElements: readonly
|
|
1130
|
-
id: string;
|
|
1131
|
-
type: "arrow" | "text";
|
|
1132
|
-
}>[] | null;
|
|
887
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1133
888
|
updated: number;
|
|
1134
889
|
link: string | null;
|
|
1135
890
|
locked: boolean;
|
|
1136
|
-
customData?: Record<string, any
|
|
891
|
+
customData?: Record<string, any>;
|
|
1137
892
|
}> & {
|
|
1138
893
|
type: "magicframe";
|
|
1139
894
|
name: string | null;
|
|
@@ -1148,10 +903,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1148
903
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1149
904
|
strokeWidth: number;
|
|
1150
905
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1151
|
-
roundness: {
|
|
906
|
+
roundness: null | {
|
|
1152
907
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1153
|
-
value?: number
|
|
1154
|
-
}
|
|
908
|
+
value?: number;
|
|
909
|
+
};
|
|
1155
910
|
roughness: number;
|
|
1156
911
|
opacity: number;
|
|
1157
912
|
width: number;
|
|
@@ -1162,24 +917,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1162
917
|
versionNonce: number;
|
|
1163
918
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1164
919
|
isDeleted: boolean;
|
|
1165
|
-
groupIds: readonly
|
|
920
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1166
921
|
frameId: string | null;
|
|
1167
|
-
boundElements: readonly
|
|
1168
|
-
id: string;
|
|
1169
|
-
type: "arrow" | "text";
|
|
1170
|
-
}>[] | null;
|
|
922
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1171
923
|
updated: number;
|
|
1172
924
|
link: string | null;
|
|
1173
925
|
locked: boolean;
|
|
1174
|
-
customData?: Record<string, any
|
|
926
|
+
customData?: Record<string, any>;
|
|
1175
927
|
}> & Readonly<{
|
|
1176
928
|
type: "text";
|
|
1177
929
|
fontSize: number;
|
|
1178
|
-
fontFamily:
|
|
930
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1179
931
|
text: string;
|
|
1180
|
-
textAlign:
|
|
1181
|
-
verticalAlign:
|
|
1182
|
-
containerId:
|
|
932
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
933
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
934
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1183
935
|
originalText: string;
|
|
1184
936
|
autoResize: boolean;
|
|
1185
937
|
lineHeight: number & {
|
|
@@ -1196,10 +948,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1196
948
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1197
949
|
strokeWidth: number;
|
|
1198
950
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1199
|
-
roundness: {
|
|
951
|
+
roundness: null | {
|
|
1200
952
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1201
|
-
value?: number
|
|
1202
|
-
}
|
|
953
|
+
value?: number;
|
|
954
|
+
};
|
|
1203
955
|
roughness: number;
|
|
1204
956
|
opacity: number;
|
|
1205
957
|
width: number;
|
|
@@ -1210,22 +962,19 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1210
962
|
versionNonce: number;
|
|
1211
963
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1212
964
|
isDeleted: boolean;
|
|
1213
|
-
groupIds: readonly
|
|
965
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1214
966
|
frameId: string | null;
|
|
1215
|
-
boundElements: readonly
|
|
1216
|
-
id: string;
|
|
1217
|
-
type: "arrow" | "text";
|
|
1218
|
-
}>[] | null;
|
|
967
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1219
968
|
updated: number;
|
|
1220
969
|
link: string | null;
|
|
1221
970
|
locked: boolean;
|
|
1222
|
-
customData?: Record<string, any
|
|
971
|
+
customData?: Record<string, any>;
|
|
1223
972
|
}> & Readonly<{
|
|
1224
973
|
type: "freedraw";
|
|
1225
974
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1226
975
|
pressures: readonly number[];
|
|
1227
976
|
simulatePressure: boolean;
|
|
1228
|
-
|
|
977
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
1229
978
|
}> & {
|
|
1230
979
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1231
980
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|