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