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