@excalidraw/math 0.18.0-4e0441e → 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 +313 -116
- 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 +75 -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 +45 -77
- 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 +206 -219
- package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +122 -131
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +446 -1594
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +149 -919
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +59 -64
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +192 -208
- 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 +66 -77
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +121 -130
- package/dist/types/excalidraw/actions/actionExport.d.ts +200 -1449
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +318 -509
- package/dist/types/excalidraw/actions/actionGroup.d.ts +132 -149
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +205 -196
- package/dist/types/excalidraw/actions/actionLink.d.ts +73 -78
- package/dist/types/excalidraw/actions/actionMenu.d.ts +60 -71
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +213 -2610
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +66 -75
- package/dist/types/excalidraw/actions/actionStyles.d.ts +60 -64
- 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 +74 -80
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +186 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +73 -78
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +62 -74
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +72 -77
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +73 -78
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +73 -78
- 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 +4 -2
- 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 +50 -25
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +13 -38
- package/dist/types/excalidraw/components/Actions.d.ts +22 -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 +552 -125
- 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 -5
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -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/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/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 +2 -2
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/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 +4 -4
- 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 +1 -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/Toast.d.ts +11 -7
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- 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 +48 -38
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
- 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 -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 +354 -7
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
- package/dist/types/excalidraw/data/index.d.ts +8 -9
- package/dist/types/excalidraw/data/json.d.ts +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 +25 -10
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- 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/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 +566 -55
- 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 +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 -190
- 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/MobileToolBar.d.ts +0 -11
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- 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,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { AppClassProperties, AppState } from "../types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
4
3
|
export declare const actionGroup: {
|
|
5
4
|
name: "group";
|
|
6
5
|
label: string;
|
|
7
|
-
icon: (appState:
|
|
6
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
trackEvent: {
|
|
9
8
|
category: "element";
|
|
10
9
|
};
|
|
11
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
12
|
-
appState: Readonly<AppState>;
|
|
10
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
|
|
11
|
+
appState: Readonly<import("../types").AppState>;
|
|
13
12
|
elements: readonly OrderedExcalidrawElement[];
|
|
14
13
|
captureUpdate: "EVENTUALLY";
|
|
15
14
|
} | {
|
|
16
15
|
appState: {
|
|
17
|
-
editingGroupId:
|
|
18
|
-
selectedElementIds:
|
|
19
|
-
|
|
20
|
-
}>;
|
|
21
|
-
selectedGroupIds: {
|
|
22
|
-
[groupId: string]: boolean;
|
|
23
|
-
};
|
|
16
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
17
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
18
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
24
19
|
contextMenu: {
|
|
25
20
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
26
21
|
top: number;
|
|
@@ -28,18 +23,28 @@ export declare const actionGroup: {
|
|
|
28
23
|
} | null;
|
|
29
24
|
showWelcomeScreen: boolean;
|
|
30
25
|
isLoading: boolean;
|
|
31
|
-
errorMessage:
|
|
26
|
+
errorMessage: React.ReactNode;
|
|
32
27
|
activeEmbeddable: {
|
|
33
28
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
34
|
-
state: "
|
|
29
|
+
state: "hover" | "active";
|
|
35
30
|
} | null;
|
|
36
31
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
37
32
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
38
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
39
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
35
|
isBindingEnabled: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
|
+
bindingPreference: "enabled" | "disabled";
|
|
38
|
+
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
inputDevice: import("../types").InputDevice;
|
|
40
|
+
suggestedBinding: {
|
|
41
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
42
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
43
|
+
} | null;
|
|
44
|
+
hoveredArrowTextAnchor: {
|
|
45
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
46
|
+
anchor: "start" | "end" | "label";
|
|
47
|
+
} | null;
|
|
43
48
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
49
|
frameRendering: {
|
|
45
50
|
enabled: boolean;
|
|
@@ -47,9 +52,9 @@ export declare const actionGroup: {
|
|
|
47
52
|
outline: boolean;
|
|
48
53
|
clip: boolean;
|
|
49
54
|
};
|
|
50
|
-
editingFrame:
|
|
51
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
52
|
-
editingTextElement:
|
|
55
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
56
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
57
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
53
58
|
activeTool: {
|
|
54
59
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
60
|
locked: boolean;
|
|
@@ -66,48 +71,56 @@ export declare const actionGroup: {
|
|
|
66
71
|
exportWithDarkMode: boolean;
|
|
67
72
|
exportScale: number;
|
|
68
73
|
currentItemStrokeColor: string;
|
|
74
|
+
currentItemStickynoteStrokeColor: string;
|
|
75
|
+
currentItemStickynoteBackgroundColor: string;
|
|
69
76
|
currentItemBackgroundColor: string;
|
|
70
|
-
currentItemFillStyle:
|
|
71
|
-
|
|
72
|
-
currentItemStrokeStyle:
|
|
77
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
78
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
79
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
73
80
|
currentItemRoughness: number;
|
|
81
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
74
82
|
currentItemOpacity: number;
|
|
75
|
-
currentItemFontFamily:
|
|
83
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
76
84
|
currentItemFontSize: number;
|
|
77
|
-
currentItemTextAlign:
|
|
85
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
78
86
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
79
87
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
80
|
-
currentHoveredFontFamily:
|
|
88
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
81
89
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
82
|
-
currentItemArrowType: "
|
|
90
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
83
91
|
viewBackgroundColor: string;
|
|
84
92
|
scrollX: number;
|
|
85
93
|
scrollY: number;
|
|
94
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
86
95
|
cursorButton: "up" | "down";
|
|
87
96
|
scrolledOutside: boolean;
|
|
88
97
|
name: string | null;
|
|
89
98
|
isResizing: boolean;
|
|
90
99
|
isRotating: boolean;
|
|
91
|
-
zoom:
|
|
92
|
-
value: import("../types").NormalizedZoomValue;
|
|
93
|
-
}>;
|
|
100
|
+
zoom: import("../types").Zoom;
|
|
94
101
|
openMenu: "canvas" | null;
|
|
95
|
-
openPopup: "
|
|
102
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
96
103
|
openSidebar: {
|
|
97
|
-
name:
|
|
98
|
-
tab?:
|
|
104
|
+
name: import("../types").SidebarName;
|
|
105
|
+
tab?: import("../types").SidebarTabName;
|
|
99
106
|
} | null;
|
|
100
|
-
openDialog: {
|
|
107
|
+
openDialog: null | {
|
|
101
108
|
name: "imageExport" | "help" | "jsonExport";
|
|
102
109
|
} | {
|
|
103
110
|
name: "ttd";
|
|
104
|
-
tab: "
|
|
111
|
+
tab: "text-to-diagram" | "mermaid";
|
|
105
112
|
} | {
|
|
106
113
|
name: "commandPalette";
|
|
114
|
+
} | {
|
|
115
|
+
name: "settings";
|
|
107
116
|
} | {
|
|
108
117
|
name: "elementLinkSelector";
|
|
109
|
-
sourceElementId:
|
|
110
|
-
} |
|
|
118
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
119
|
+
} | {
|
|
120
|
+
name: "charts";
|
|
121
|
+
data: import("../charts").Spreadsheet;
|
|
122
|
+
rawText: string;
|
|
123
|
+
};
|
|
111
124
|
defaultSidebarDockedPreference: boolean;
|
|
112
125
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
113
126
|
hoveredElementIds: Readonly<{
|
|
@@ -119,9 +132,9 @@ export declare const actionGroup: {
|
|
|
119
132
|
selectedElementsAreBeingDragged: boolean;
|
|
120
133
|
shouldCacheIgnoreZoom: boolean;
|
|
121
134
|
toast: {
|
|
122
|
-
message:
|
|
123
|
-
closable?: boolean
|
|
124
|
-
duration?: number
|
|
135
|
+
message: React.ReactNode;
|
|
136
|
+
closable?: boolean;
|
|
137
|
+
duration?: number;
|
|
125
138
|
} | null;
|
|
126
139
|
zenModeEnabled: boolean;
|
|
127
140
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -133,40 +146,13 @@ export declare const actionGroup: {
|
|
|
133
146
|
height: number;
|
|
134
147
|
offsetTop: number;
|
|
135
148
|
offsetLeft: number;
|
|
136
|
-
fileHandle:
|
|
137
|
-
collaborators: Map<import("../types").SocketId,
|
|
138
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
139
|
-
button?: "up" | "down" | undefined;
|
|
140
|
-
selectedElementIds?: Readonly<{
|
|
141
|
-
[id: string]: true;
|
|
142
|
-
}> | undefined;
|
|
143
|
-
username?: string | null | undefined;
|
|
144
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
145
|
-
color?: {
|
|
146
|
-
background: string;
|
|
147
|
-
stroke: string;
|
|
148
|
-
} | undefined;
|
|
149
|
-
avatarUrl?: string | undefined;
|
|
150
|
-
id?: string | undefined;
|
|
151
|
-
socketId?: import("../types").SocketId | undefined;
|
|
152
|
-
isCurrentUser?: boolean | undefined;
|
|
153
|
-
isInCall?: boolean | undefined;
|
|
154
|
-
isSpeaking?: boolean | undefined;
|
|
155
|
-
isMuted?: boolean | undefined;
|
|
156
|
-
}>>;
|
|
149
|
+
fileHandle: FileSystemFileHandle | null;
|
|
150
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
157
151
|
stats: {
|
|
158
152
|
open: boolean;
|
|
159
153
|
panels: number;
|
|
160
154
|
};
|
|
161
|
-
|
|
162
|
-
pasteDialog: {
|
|
163
|
-
shown: false;
|
|
164
|
-
data: null;
|
|
165
|
-
} | {
|
|
166
|
-
shown: true;
|
|
167
|
-
data: import("../charts").Spreadsheet;
|
|
168
|
-
};
|
|
169
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
155
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
170
156
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
171
157
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
172
158
|
originSnapOffset: {
|
|
@@ -174,24 +160,29 @@ export declare const actionGroup: {
|
|
|
174
160
|
y: number;
|
|
175
161
|
} | null;
|
|
176
162
|
objectsSnapModeEnabled: boolean;
|
|
177
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
178
|
-
followedBy: Set<import("../types").SocketId>;
|
|
179
163
|
isCropping: boolean;
|
|
180
|
-
croppingElementId:
|
|
164
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
181
165
|
searchMatches: Readonly<{
|
|
182
|
-
focusedId:
|
|
166
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
183
167
|
matches: readonly import("../types").SearchMatch[];
|
|
184
168
|
}> | null;
|
|
185
169
|
activeLockedId: string | null;
|
|
186
170
|
lockedMultiSelections: {
|
|
187
171
|
[groupId: string]: true;
|
|
188
172
|
};
|
|
189
|
-
|
|
173
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
174
|
+
colorTopPicks: {
|
|
175
|
+
elementStroke: readonly string[] | null;
|
|
176
|
+
elementBackground: readonly string[] | null;
|
|
177
|
+
bucketFill: readonly string[] | null;
|
|
178
|
+
stickyNoteStroke: readonly string[] | null;
|
|
179
|
+
stickyNoteBackground: readonly string[] | null;
|
|
180
|
+
};
|
|
190
181
|
};
|
|
191
182
|
elements: OrderedExcalidrawElement[];
|
|
192
183
|
captureUpdate: "IMMEDIATELY";
|
|
193
184
|
};
|
|
194
|
-
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;
|
|
195
186
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
196
187
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
197
188
|
} & {
|
|
@@ -200,23 +191,19 @@ export declare const actionGroup: {
|
|
|
200
191
|
export declare const actionUngroup: {
|
|
201
192
|
name: "ungroup";
|
|
202
193
|
label: string;
|
|
203
|
-
icon: (appState:
|
|
194
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
204
195
|
trackEvent: {
|
|
205
196
|
category: "element";
|
|
206
197
|
};
|
|
207
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
208
|
-
appState: Readonly<AppState>;
|
|
198
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
199
|
+
appState: Readonly<import("../types").AppState>;
|
|
209
200
|
elements: readonly OrderedExcalidrawElement[];
|
|
210
201
|
captureUpdate: "EVENTUALLY";
|
|
211
202
|
} | {
|
|
212
203
|
appState: {
|
|
213
|
-
editingGroupId:
|
|
214
|
-
selectedElementIds:
|
|
215
|
-
|
|
216
|
-
}>;
|
|
217
|
-
selectedGroupIds: {
|
|
218
|
-
[groupId: string]: boolean;
|
|
219
|
-
};
|
|
204
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
205
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
206
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
220
207
|
contextMenu: {
|
|
221
208
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
222
209
|
top: number;
|
|
@@ -224,18 +211,28 @@ export declare const actionUngroup: {
|
|
|
224
211
|
} | null;
|
|
225
212
|
showWelcomeScreen: boolean;
|
|
226
213
|
isLoading: boolean;
|
|
227
|
-
errorMessage:
|
|
214
|
+
errorMessage: React.ReactNode;
|
|
228
215
|
activeEmbeddable: {
|
|
229
216
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
230
|
-
state: "
|
|
217
|
+
state: "hover" | "active";
|
|
231
218
|
} | null;
|
|
232
219
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
233
220
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
221
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
235
222
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
236
223
|
isBindingEnabled: boolean;
|
|
237
|
-
|
|
238
|
-
|
|
224
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
225
|
+
bindingPreference: "enabled" | "disabled";
|
|
226
|
+
isMidpointSnappingEnabled: boolean;
|
|
227
|
+
inputDevice: import("../types").InputDevice;
|
|
228
|
+
suggestedBinding: {
|
|
229
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
230
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
231
|
+
} | null;
|
|
232
|
+
hoveredArrowTextAnchor: {
|
|
233
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
234
|
+
anchor: "start" | "end" | "label";
|
|
235
|
+
} | null;
|
|
239
236
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
240
237
|
frameRendering: {
|
|
241
238
|
enabled: boolean;
|
|
@@ -243,9 +240,9 @@ export declare const actionUngroup: {
|
|
|
243
240
|
outline: boolean;
|
|
244
241
|
clip: boolean;
|
|
245
242
|
};
|
|
246
|
-
editingFrame:
|
|
247
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
248
|
-
editingTextElement:
|
|
243
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
244
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
245
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
249
246
|
activeTool: {
|
|
250
247
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
251
248
|
locked: boolean;
|
|
@@ -262,48 +259,56 @@ export declare const actionUngroup: {
|
|
|
262
259
|
exportWithDarkMode: boolean;
|
|
263
260
|
exportScale: number;
|
|
264
261
|
currentItemStrokeColor: string;
|
|
262
|
+
currentItemStickynoteStrokeColor: string;
|
|
263
|
+
currentItemStickynoteBackgroundColor: string;
|
|
265
264
|
currentItemBackgroundColor: string;
|
|
266
|
-
currentItemFillStyle:
|
|
267
|
-
|
|
268
|
-
currentItemStrokeStyle:
|
|
265
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
266
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
267
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
269
268
|
currentItemRoughness: number;
|
|
269
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
270
270
|
currentItemOpacity: number;
|
|
271
|
-
currentItemFontFamily:
|
|
271
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
272
272
|
currentItemFontSize: number;
|
|
273
|
-
currentItemTextAlign:
|
|
273
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
274
274
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
275
275
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
276
|
-
currentHoveredFontFamily:
|
|
276
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
277
277
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
278
|
-
currentItemArrowType: "
|
|
278
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
279
279
|
viewBackgroundColor: string;
|
|
280
280
|
scrollX: number;
|
|
281
281
|
scrollY: number;
|
|
282
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
282
283
|
cursorButton: "up" | "down";
|
|
283
284
|
scrolledOutside: boolean;
|
|
284
285
|
name: string | null;
|
|
285
286
|
isResizing: boolean;
|
|
286
287
|
isRotating: boolean;
|
|
287
|
-
zoom:
|
|
288
|
-
value: import("../types").NormalizedZoomValue;
|
|
289
|
-
}>;
|
|
288
|
+
zoom: import("../types").Zoom;
|
|
290
289
|
openMenu: "canvas" | null;
|
|
291
|
-
openPopup: "
|
|
290
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
292
291
|
openSidebar: {
|
|
293
|
-
name:
|
|
294
|
-
tab?:
|
|
292
|
+
name: import("../types").SidebarName;
|
|
293
|
+
tab?: import("../types").SidebarTabName;
|
|
295
294
|
} | null;
|
|
296
|
-
openDialog: {
|
|
295
|
+
openDialog: null | {
|
|
297
296
|
name: "imageExport" | "help" | "jsonExport";
|
|
298
297
|
} | {
|
|
299
298
|
name: "ttd";
|
|
300
|
-
tab: "
|
|
299
|
+
tab: "text-to-diagram" | "mermaid";
|
|
301
300
|
} | {
|
|
302
301
|
name: "commandPalette";
|
|
302
|
+
} | {
|
|
303
|
+
name: "settings";
|
|
303
304
|
} | {
|
|
304
305
|
name: "elementLinkSelector";
|
|
305
|
-
sourceElementId:
|
|
306
|
-
} |
|
|
306
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
307
|
+
} | {
|
|
308
|
+
name: "charts";
|
|
309
|
+
data: import("../charts").Spreadsheet;
|
|
310
|
+
rawText: string;
|
|
311
|
+
};
|
|
307
312
|
defaultSidebarDockedPreference: boolean;
|
|
308
313
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
309
314
|
hoveredElementIds: Readonly<{
|
|
@@ -315,9 +320,9 @@ export declare const actionUngroup: {
|
|
|
315
320
|
selectedElementsAreBeingDragged: boolean;
|
|
316
321
|
shouldCacheIgnoreZoom: boolean;
|
|
317
322
|
toast: {
|
|
318
|
-
message:
|
|
319
|
-
closable?: boolean
|
|
320
|
-
duration?: number
|
|
323
|
+
message: React.ReactNode;
|
|
324
|
+
closable?: boolean;
|
|
325
|
+
duration?: number;
|
|
321
326
|
} | null;
|
|
322
327
|
zenModeEnabled: boolean;
|
|
323
328
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -329,40 +334,13 @@ export declare const actionUngroup: {
|
|
|
329
334
|
height: number;
|
|
330
335
|
offsetTop: number;
|
|
331
336
|
offsetLeft: number;
|
|
332
|
-
fileHandle:
|
|
333
|
-
collaborators: Map<import("../types").SocketId,
|
|
334
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
335
|
-
button?: "up" | "down" | undefined;
|
|
336
|
-
selectedElementIds?: Readonly<{
|
|
337
|
-
[id: string]: true;
|
|
338
|
-
}> | undefined;
|
|
339
|
-
username?: string | null | undefined;
|
|
340
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
341
|
-
color?: {
|
|
342
|
-
background: string;
|
|
343
|
-
stroke: string;
|
|
344
|
-
} | undefined;
|
|
345
|
-
avatarUrl?: string | undefined;
|
|
346
|
-
id?: string | undefined;
|
|
347
|
-
socketId?: import("../types").SocketId | undefined;
|
|
348
|
-
isCurrentUser?: boolean | undefined;
|
|
349
|
-
isInCall?: boolean | undefined;
|
|
350
|
-
isSpeaking?: boolean | undefined;
|
|
351
|
-
isMuted?: boolean | undefined;
|
|
352
|
-
}>>;
|
|
337
|
+
fileHandle: FileSystemFileHandle | null;
|
|
338
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
353
339
|
stats: {
|
|
354
340
|
open: boolean;
|
|
355
341
|
panels: number;
|
|
356
342
|
};
|
|
357
|
-
|
|
358
|
-
pasteDialog: {
|
|
359
|
-
shown: false;
|
|
360
|
-
data: null;
|
|
361
|
-
} | {
|
|
362
|
-
shown: true;
|
|
363
|
-
data: import("../charts").Spreadsheet;
|
|
364
|
-
};
|
|
365
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
343
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
366
344
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
367
345
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
368
346
|
originSnapOffset: {
|
|
@@ -370,25 +348,30 @@ export declare const actionUngroup: {
|
|
|
370
348
|
y: number;
|
|
371
349
|
} | null;
|
|
372
350
|
objectsSnapModeEnabled: boolean;
|
|
373
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
374
|
-
followedBy: Set<import("../types").SocketId>;
|
|
375
351
|
isCropping: boolean;
|
|
376
|
-
croppingElementId:
|
|
352
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
377
353
|
searchMatches: Readonly<{
|
|
378
|
-
focusedId:
|
|
354
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
379
355
|
matches: readonly import("../types").SearchMatch[];
|
|
380
356
|
}> | null;
|
|
381
357
|
activeLockedId: string | null;
|
|
382
358
|
lockedMultiSelections: {
|
|
383
359
|
[groupId: string]: true;
|
|
384
360
|
};
|
|
385
|
-
|
|
361
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
362
|
+
colorTopPicks: {
|
|
363
|
+
elementStroke: readonly string[] | null;
|
|
364
|
+
elementBackground: readonly string[] | null;
|
|
365
|
+
bucketFill: readonly string[] | null;
|
|
366
|
+
stickyNoteStroke: readonly string[] | null;
|
|
367
|
+
stickyNoteBackground: readonly string[] | null;
|
|
368
|
+
};
|
|
386
369
|
};
|
|
387
370
|
elements: OrderedExcalidrawElement[];
|
|
388
371
|
captureUpdate: "IMMEDIATELY";
|
|
389
372
|
};
|
|
390
373
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
391
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
374
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
392
375
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
393
376
|
} & {
|
|
394
377
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|