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