@excalidraw/element 0.18.0-91c7748 → 0.18.0-a52cd20
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 +15101 -8988
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +20 -19
- 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 +89 -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 +52 -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 +85 -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 +11 -3
- 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 +67 -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 +59 -9
- package/dist/types/element/src/renderElement.d.ts +21 -13
- 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 +36 -9
- 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 +21 -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 +22 -6
- package/dist/types/element/src/visualdebug.d.ts +58 -0
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +215 -189
- package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +150 -133
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +543 -1576
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +152 -880
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +73 -65
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +237 -214
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +65 -63
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +149 -132
- package/dist/types/excalidraw/actions/actionExport.d.ts +228 -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 +373 -521
- package/dist/types/excalidraw/actions/actionGroup.d.ts +160 -151
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +236 -214
- package/dist/types/excalidraw/actions/actionLink.d.ts +72 -64
- package/dist/types/excalidraw/actions/actionMenu.d.ts +64 -430
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
- package/dist/types/excalidraw/actions/actionProperties.d.ts +241 -2560
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +80 -76
- package/dist/types/excalidraw/actions/actionStyles.d.ts +74 -65
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +88 -79
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +77 -70
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +74 -66
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +65 -64
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +74 -66
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +75 -67
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +75 -67
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- 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 +50 -20
- 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 +26 -11
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -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 +646 -132
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +26 -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 +7 -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/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- 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 +7 -3
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +9 -5
- 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/Tooltip.d.ts +15 -1
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -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 +26 -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 +373 -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 +192 -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 +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/renderOverrides.d.ts +9 -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 +491 -19
- 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 +28 -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 +644 -60
- package/dist/types/excalidraw/viewport.d.ts +302 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +14 -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 +10 -3
- 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,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionAddToLibrary: {
|
|
3
2
|
name: "addToLibrary";
|
|
4
3
|
trackEvent: {
|
|
5
4
|
category: "element";
|
|
6
5
|
};
|
|
7
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
6
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
8
7
|
captureUpdate: "EVENTUALLY";
|
|
9
8
|
appState: {
|
|
10
9
|
toast: {
|
|
@@ -17,18 +16,36 @@ export declare const actionAddToLibrary: {
|
|
|
17
16
|
} | null;
|
|
18
17
|
showWelcomeScreen: boolean;
|
|
19
18
|
isLoading: boolean;
|
|
20
|
-
errorMessage:
|
|
19
|
+
errorMessage: React.ReactNode;
|
|
21
20
|
activeEmbeddable: {
|
|
22
21
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
|
-
state: "
|
|
22
|
+
state: "hover" | "active";
|
|
24
23
|
} | null;
|
|
25
24
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
25
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
26
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
27
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
28
|
isBindingEnabled: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
|
+
bindingPreference: "enabled" | "disabled";
|
|
31
|
+
isMidpointSnappingEnabled: boolean;
|
|
32
|
+
showHints: boolean;
|
|
33
|
+
inputDevice: import("../types").InputDevice;
|
|
34
|
+
suggestedBinding: {
|
|
35
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
37
|
+
} | null;
|
|
38
|
+
textToolHover: {
|
|
39
|
+
type: "text";
|
|
40
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
41
|
+
} | {
|
|
42
|
+
type: "container";
|
|
43
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
44
|
+
} | {
|
|
45
|
+
type: "arrow";
|
|
46
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
47
|
+
anchor: "start" | "end" | "label";
|
|
48
|
+
} | null;
|
|
32
49
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
50
|
frameRendering: {
|
|
34
51
|
enabled: boolean;
|
|
@@ -36,14 +53,18 @@ export declare const actionAddToLibrary: {
|
|
|
36
53
|
outline: boolean;
|
|
37
54
|
clip: boolean;
|
|
38
55
|
};
|
|
39
|
-
editingFrame:
|
|
40
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
41
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
56
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
57
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
58
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
42
59
|
activeTool: {
|
|
43
60
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
61
|
locked: boolean;
|
|
45
62
|
fromSelection: boolean;
|
|
46
63
|
} & import("../types").ActiveTool;
|
|
64
|
+
preferredSelectionTool: {
|
|
65
|
+
type: "selection" | "lasso";
|
|
66
|
+
initialized: boolean;
|
|
67
|
+
};
|
|
47
68
|
penMode: boolean;
|
|
48
69
|
penDetected: boolean;
|
|
49
70
|
exportBackground: boolean;
|
|
@@ -51,48 +72,56 @@ export declare const actionAddToLibrary: {
|
|
|
51
72
|
exportWithDarkMode: boolean;
|
|
52
73
|
exportScale: number;
|
|
53
74
|
currentItemStrokeColor: string;
|
|
75
|
+
currentItemStickynoteStrokeColor: string;
|
|
76
|
+
currentItemStickynoteBackgroundColor: string;
|
|
54
77
|
currentItemBackgroundColor: string;
|
|
55
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
56
|
-
|
|
57
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
78
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
79
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
80
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
58
81
|
currentItemRoughness: number;
|
|
82
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
59
83
|
currentItemOpacity: number;
|
|
60
|
-
currentItemFontFamily:
|
|
84
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
61
85
|
currentItemFontSize: number;
|
|
62
|
-
currentItemTextAlign:
|
|
86
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
63
87
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
88
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
65
|
-
currentHoveredFontFamily:
|
|
89
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
66
90
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
67
|
-
currentItemArrowType: "
|
|
91
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
68
92
|
viewBackgroundColor: string;
|
|
69
93
|
scrollX: number;
|
|
70
94
|
scrollY: number;
|
|
95
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
71
96
|
cursorButton: "up" | "down";
|
|
72
97
|
scrolledOutside: boolean;
|
|
73
98
|
name: string | null;
|
|
74
99
|
isResizing: boolean;
|
|
75
100
|
isRotating: boolean;
|
|
76
|
-
zoom:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
openMenu: "canvas" | "shape" | null;
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
101
|
+
zoom: import("../types").Zoom;
|
|
102
|
+
openMenu: "canvas" | null;
|
|
103
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
104
|
openSidebar: {
|
|
82
|
-
name:
|
|
83
|
-
tab?:
|
|
105
|
+
name: import("../types").SidebarName;
|
|
106
|
+
tab?: import("../types").SidebarTabName;
|
|
84
107
|
} | null;
|
|
85
|
-
openDialog: {
|
|
108
|
+
openDialog: null | {
|
|
86
109
|
name: "imageExport" | "help" | "jsonExport";
|
|
87
110
|
} | {
|
|
88
111
|
name: "ttd";
|
|
89
|
-
tab: "
|
|
112
|
+
tab: "text-to-diagram" | "mermaid";
|
|
90
113
|
} | {
|
|
91
114
|
name: "commandPalette";
|
|
115
|
+
} | {
|
|
116
|
+
name: "settings";
|
|
92
117
|
} | {
|
|
93
118
|
name: "elementLinkSelector";
|
|
94
|
-
sourceElementId:
|
|
95
|
-
} |
|
|
119
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
120
|
+
} | {
|
|
121
|
+
name: "charts";
|
|
122
|
+
data: import("../charts").Spreadsheet;
|
|
123
|
+
rawText: string;
|
|
124
|
+
};
|
|
96
125
|
defaultSidebarDockedPreference: boolean;
|
|
97
126
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
98
127
|
selectedElementIds: Readonly<{
|
|
@@ -115,45 +144,18 @@ export declare const actionAddToLibrary: {
|
|
|
115
144
|
selectedGroupIds: {
|
|
116
145
|
[groupId: string]: boolean;
|
|
117
146
|
};
|
|
118
|
-
editingGroupId:
|
|
147
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
119
148
|
width: number;
|
|
120
149
|
height: number;
|
|
121
150
|
offsetTop: number;
|
|
122
151
|
offsetLeft: number;
|
|
123
|
-
fileHandle:
|
|
124
|
-
collaborators: Map<import("../types").SocketId,
|
|
125
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
126
|
-
button?: "up" | "down" | undefined;
|
|
127
|
-
selectedElementIds?: Readonly<{
|
|
128
|
-
[id: string]: true;
|
|
129
|
-
}> | undefined;
|
|
130
|
-
username?: string | null | undefined;
|
|
131
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
132
|
-
color?: {
|
|
133
|
-
background: string;
|
|
134
|
-
stroke: string;
|
|
135
|
-
} | undefined;
|
|
136
|
-
avatarUrl?: string | undefined;
|
|
137
|
-
id?: string | undefined;
|
|
138
|
-
socketId?: import("../types").SocketId | undefined;
|
|
139
|
-
isCurrentUser?: boolean | undefined;
|
|
140
|
-
isInCall?: boolean | undefined;
|
|
141
|
-
isSpeaking?: boolean | undefined;
|
|
142
|
-
isMuted?: boolean | undefined;
|
|
143
|
-
}>>;
|
|
152
|
+
fileHandle: FileSystemFileHandle | null;
|
|
153
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
144
154
|
stats: {
|
|
145
155
|
open: boolean;
|
|
146
156
|
panels: number;
|
|
147
157
|
};
|
|
148
|
-
|
|
149
|
-
pasteDialog: {
|
|
150
|
-
shown: false;
|
|
151
|
-
data: null;
|
|
152
|
-
} | {
|
|
153
|
-
shown: true;
|
|
154
|
-
data: import("../charts").Spreadsheet;
|
|
155
|
-
};
|
|
156
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
158
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
157
159
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
158
160
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
159
161
|
originSnapOffset: {
|
|
@@ -161,19 +163,25 @@ export declare const actionAddToLibrary: {
|
|
|
161
163
|
y: number;
|
|
162
164
|
} | null;
|
|
163
165
|
objectsSnapModeEnabled: boolean;
|
|
164
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
165
|
-
followedBy: Set<import("../types").SocketId>;
|
|
166
166
|
isCropping: boolean;
|
|
167
|
-
croppingElementId:
|
|
167
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
168
168
|
searchMatches: Readonly<{
|
|
169
|
-
focusedId:
|
|
169
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
170
170
|
matches: readonly import("../types").SearchMatch[];
|
|
171
171
|
}> | null;
|
|
172
172
|
activeLockedId: string | null;
|
|
173
173
|
lockedMultiSelections: {
|
|
174
174
|
[groupId: string]: true;
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
177
|
+
colorTopPicks: {
|
|
178
|
+
elementStroke: readonly string[] | null;
|
|
179
|
+
elementBackground: readonly string[] | null;
|
|
180
|
+
bucketFill: readonly string[] | null;
|
|
181
|
+
stickyNoteStroke: readonly string[] | null;
|
|
182
|
+
stickyNoteBackground: readonly string[] | null;
|
|
183
|
+
};
|
|
184
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
177
185
|
};
|
|
178
186
|
} | {
|
|
179
187
|
captureUpdate: "EVENTUALLY";
|
|
@@ -188,15 +196,33 @@ export declare const actionAddToLibrary: {
|
|
|
188
196
|
isLoading: boolean;
|
|
189
197
|
activeEmbeddable: {
|
|
190
198
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
191
|
-
state: "
|
|
199
|
+
state: "hover" | "active";
|
|
192
200
|
} | null;
|
|
193
201
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
194
202
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
195
203
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
196
204
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
197
205
|
isBindingEnabled: boolean;
|
|
198
|
-
|
|
199
|
-
|
|
206
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
207
|
+
bindingPreference: "enabled" | "disabled";
|
|
208
|
+
isMidpointSnappingEnabled: boolean;
|
|
209
|
+
showHints: boolean;
|
|
210
|
+
inputDevice: import("../types").InputDevice;
|
|
211
|
+
suggestedBinding: {
|
|
212
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
213
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
214
|
+
} | null;
|
|
215
|
+
textToolHover: {
|
|
216
|
+
type: "text";
|
|
217
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
218
|
+
} | {
|
|
219
|
+
type: "container";
|
|
220
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
221
|
+
} | {
|
|
222
|
+
type: "arrow";
|
|
223
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
224
|
+
anchor: "start" | "end" | "label";
|
|
225
|
+
} | null;
|
|
200
226
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
201
227
|
frameRendering: {
|
|
202
228
|
enabled: boolean;
|
|
@@ -204,14 +230,18 @@ export declare const actionAddToLibrary: {
|
|
|
204
230
|
outline: boolean;
|
|
205
231
|
clip: boolean;
|
|
206
232
|
};
|
|
207
|
-
editingFrame:
|
|
208
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
209
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
233
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
234
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
235
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
210
236
|
activeTool: {
|
|
211
237
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
212
238
|
locked: boolean;
|
|
213
239
|
fromSelection: boolean;
|
|
214
240
|
} & import("../types").ActiveTool;
|
|
241
|
+
preferredSelectionTool: {
|
|
242
|
+
type: "selection" | "lasso";
|
|
243
|
+
initialized: boolean;
|
|
244
|
+
};
|
|
215
245
|
penMode: boolean;
|
|
216
246
|
penDetected: boolean;
|
|
217
247
|
exportBackground: boolean;
|
|
@@ -219,48 +249,56 @@ export declare const actionAddToLibrary: {
|
|
|
219
249
|
exportWithDarkMode: boolean;
|
|
220
250
|
exportScale: number;
|
|
221
251
|
currentItemStrokeColor: string;
|
|
252
|
+
currentItemStickynoteStrokeColor: string;
|
|
253
|
+
currentItemStickynoteBackgroundColor: string;
|
|
222
254
|
currentItemBackgroundColor: string;
|
|
223
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
224
|
-
|
|
225
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
255
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
256
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
257
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
226
258
|
currentItemRoughness: number;
|
|
259
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
227
260
|
currentItemOpacity: number;
|
|
228
|
-
currentItemFontFamily:
|
|
261
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
229
262
|
currentItemFontSize: number;
|
|
230
|
-
currentItemTextAlign:
|
|
263
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
231
264
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
232
265
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
233
|
-
currentHoveredFontFamily:
|
|
266
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
234
267
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
235
|
-
currentItemArrowType: "
|
|
268
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
236
269
|
viewBackgroundColor: string;
|
|
237
270
|
scrollX: number;
|
|
238
271
|
scrollY: number;
|
|
272
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
239
273
|
cursorButton: "up" | "down";
|
|
240
274
|
scrolledOutside: boolean;
|
|
241
275
|
name: string | null;
|
|
242
276
|
isResizing: boolean;
|
|
243
277
|
isRotating: boolean;
|
|
244
|
-
zoom:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
openMenu: "canvas" | "shape" | null;
|
|
248
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
278
|
+
zoom: import("../types").Zoom;
|
|
279
|
+
openMenu: "canvas" | null;
|
|
280
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
249
281
|
openSidebar: {
|
|
250
|
-
name:
|
|
251
|
-
tab?:
|
|
282
|
+
name: import("../types").SidebarName;
|
|
283
|
+
tab?: import("../types").SidebarTabName;
|
|
252
284
|
} | null;
|
|
253
|
-
openDialog: {
|
|
285
|
+
openDialog: null | {
|
|
254
286
|
name: "imageExport" | "help" | "jsonExport";
|
|
255
287
|
} | {
|
|
256
288
|
name: "ttd";
|
|
257
|
-
tab: "
|
|
289
|
+
tab: "text-to-diagram" | "mermaid";
|
|
258
290
|
} | {
|
|
259
291
|
name: "commandPalette";
|
|
292
|
+
} | {
|
|
293
|
+
name: "settings";
|
|
260
294
|
} | {
|
|
261
295
|
name: "elementLinkSelector";
|
|
262
|
-
sourceElementId:
|
|
263
|
-
} |
|
|
296
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
297
|
+
} | {
|
|
298
|
+
name: "charts";
|
|
299
|
+
data: import("../charts").Spreadsheet;
|
|
300
|
+
rawText: string;
|
|
301
|
+
};
|
|
264
302
|
defaultSidebarDockedPreference: boolean;
|
|
265
303
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
266
304
|
selectedElementIds: Readonly<{
|
|
@@ -275,9 +313,9 @@ export declare const actionAddToLibrary: {
|
|
|
275
313
|
selectedElementsAreBeingDragged: boolean;
|
|
276
314
|
shouldCacheIgnoreZoom: boolean;
|
|
277
315
|
toast: {
|
|
278
|
-
message:
|
|
279
|
-
closable?: boolean
|
|
280
|
-
duration?: number
|
|
316
|
+
message: React.ReactNode;
|
|
317
|
+
closable?: boolean;
|
|
318
|
+
duration?: number;
|
|
281
319
|
} | null;
|
|
282
320
|
zenModeEnabled: boolean;
|
|
283
321
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -288,45 +326,18 @@ export declare const actionAddToLibrary: {
|
|
|
288
326
|
selectedGroupIds: {
|
|
289
327
|
[groupId: string]: boolean;
|
|
290
328
|
};
|
|
291
|
-
editingGroupId:
|
|
329
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
292
330
|
width: number;
|
|
293
331
|
height: number;
|
|
294
332
|
offsetTop: number;
|
|
295
333
|
offsetLeft: number;
|
|
296
|
-
fileHandle:
|
|
297
|
-
collaborators: Map<import("../types").SocketId,
|
|
298
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
299
|
-
button?: "up" | "down" | undefined;
|
|
300
|
-
selectedElementIds?: Readonly<{
|
|
301
|
-
[id: string]: true;
|
|
302
|
-
}> | undefined;
|
|
303
|
-
username?: string | null | undefined;
|
|
304
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
305
|
-
color?: {
|
|
306
|
-
background: string;
|
|
307
|
-
stroke: string;
|
|
308
|
-
} | undefined;
|
|
309
|
-
avatarUrl?: string | undefined;
|
|
310
|
-
id?: string | undefined;
|
|
311
|
-
socketId?: import("../types").SocketId | undefined;
|
|
312
|
-
isCurrentUser?: boolean | undefined;
|
|
313
|
-
isInCall?: boolean | undefined;
|
|
314
|
-
isSpeaking?: boolean | undefined;
|
|
315
|
-
isMuted?: boolean | undefined;
|
|
316
|
-
}>>;
|
|
334
|
+
fileHandle: FileSystemFileHandle | null;
|
|
335
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
317
336
|
stats: {
|
|
318
337
|
open: boolean;
|
|
319
338
|
panels: number;
|
|
320
339
|
};
|
|
321
|
-
|
|
322
|
-
pasteDialog: {
|
|
323
|
-
shown: false;
|
|
324
|
-
data: null;
|
|
325
|
-
} | {
|
|
326
|
-
shown: true;
|
|
327
|
-
data: import("../charts").Spreadsheet;
|
|
328
|
-
};
|
|
329
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
340
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
330
341
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
331
342
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
332
343
|
originSnapOffset: {
|
|
@@ -334,19 +345,25 @@ export declare const actionAddToLibrary: {
|
|
|
334
345
|
y: number;
|
|
335
346
|
} | null;
|
|
336
347
|
objectsSnapModeEnabled: boolean;
|
|
337
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
338
|
-
followedBy: Set<import("../types").SocketId>;
|
|
339
348
|
isCropping: boolean;
|
|
340
|
-
croppingElementId:
|
|
349
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
341
350
|
searchMatches: Readonly<{
|
|
342
|
-
focusedId:
|
|
351
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
343
352
|
matches: readonly import("../types").SearchMatch[];
|
|
344
353
|
}> | null;
|
|
345
354
|
activeLockedId: string | null;
|
|
346
355
|
lockedMultiSelections: {
|
|
347
356
|
[groupId: string]: true;
|
|
348
357
|
};
|
|
349
|
-
|
|
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
|
+
};
|
|
366
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
350
367
|
};
|
|
351
368
|
}> | {
|
|
352
369
|
captureUpdate: "EVENTUALLY";
|
|
@@ -361,15 +378,33 @@ export declare const actionAddToLibrary: {
|
|
|
361
378
|
isLoading: boolean;
|
|
362
379
|
activeEmbeddable: {
|
|
363
380
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
364
|
-
state: "
|
|
381
|
+
state: "hover" | "active";
|
|
365
382
|
} | null;
|
|
366
383
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
367
384
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
368
385
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
369
386
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
370
387
|
isBindingEnabled: boolean;
|
|
371
|
-
|
|
372
|
-
|
|
388
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
389
|
+
bindingPreference: "enabled" | "disabled";
|
|
390
|
+
isMidpointSnappingEnabled: boolean;
|
|
391
|
+
showHints: boolean;
|
|
392
|
+
inputDevice: import("../types").InputDevice;
|
|
393
|
+
suggestedBinding: {
|
|
394
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
395
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
396
|
+
} | null;
|
|
397
|
+
textToolHover: {
|
|
398
|
+
type: "text";
|
|
399
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
400
|
+
} | {
|
|
401
|
+
type: "container";
|
|
402
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
403
|
+
} | {
|
|
404
|
+
type: "arrow";
|
|
405
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
406
|
+
anchor: "start" | "end" | "label";
|
|
407
|
+
} | null;
|
|
373
408
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
374
409
|
frameRendering: {
|
|
375
410
|
enabled: boolean;
|
|
@@ -377,14 +412,18 @@ export declare const actionAddToLibrary: {
|
|
|
377
412
|
outline: boolean;
|
|
378
413
|
clip: boolean;
|
|
379
414
|
};
|
|
380
|
-
editingFrame:
|
|
381
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
382
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
415
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
416
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
417
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
383
418
|
activeTool: {
|
|
384
419
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
385
420
|
locked: boolean;
|
|
386
421
|
fromSelection: boolean;
|
|
387
422
|
} & import("../types").ActiveTool;
|
|
423
|
+
preferredSelectionTool: {
|
|
424
|
+
type: "selection" | "lasso";
|
|
425
|
+
initialized: boolean;
|
|
426
|
+
};
|
|
388
427
|
penMode: boolean;
|
|
389
428
|
penDetected: boolean;
|
|
390
429
|
exportBackground: boolean;
|
|
@@ -392,48 +431,56 @@ export declare const actionAddToLibrary: {
|
|
|
392
431
|
exportWithDarkMode: boolean;
|
|
393
432
|
exportScale: number;
|
|
394
433
|
currentItemStrokeColor: string;
|
|
434
|
+
currentItemStickynoteStrokeColor: string;
|
|
435
|
+
currentItemStickynoteBackgroundColor: string;
|
|
395
436
|
currentItemBackgroundColor: string;
|
|
396
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
397
|
-
|
|
398
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
437
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
438
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
439
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
399
440
|
currentItemRoughness: number;
|
|
441
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
400
442
|
currentItemOpacity: number;
|
|
401
|
-
currentItemFontFamily:
|
|
443
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
402
444
|
currentItemFontSize: number;
|
|
403
|
-
currentItemTextAlign:
|
|
445
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
404
446
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
405
447
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
406
|
-
currentHoveredFontFamily:
|
|
448
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
407
449
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
408
|
-
currentItemArrowType: "
|
|
450
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
409
451
|
viewBackgroundColor: string;
|
|
410
452
|
scrollX: number;
|
|
411
453
|
scrollY: number;
|
|
454
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
412
455
|
cursorButton: "up" | "down";
|
|
413
456
|
scrolledOutside: boolean;
|
|
414
457
|
name: string | null;
|
|
415
458
|
isResizing: boolean;
|
|
416
459
|
isRotating: boolean;
|
|
417
|
-
zoom:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
openMenu: "canvas" | "shape" | null;
|
|
421
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
460
|
+
zoom: import("../types").Zoom;
|
|
461
|
+
openMenu: "canvas" | null;
|
|
462
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
422
463
|
openSidebar: {
|
|
423
|
-
name:
|
|
424
|
-
tab?:
|
|
464
|
+
name: import("../types").SidebarName;
|
|
465
|
+
tab?: import("../types").SidebarTabName;
|
|
425
466
|
} | null;
|
|
426
|
-
openDialog: {
|
|
467
|
+
openDialog: null | {
|
|
427
468
|
name: "imageExport" | "help" | "jsonExport";
|
|
428
469
|
} | {
|
|
429
470
|
name: "ttd";
|
|
430
|
-
tab: "
|
|
471
|
+
tab: "text-to-diagram" | "mermaid";
|
|
431
472
|
} | {
|
|
432
473
|
name: "commandPalette";
|
|
474
|
+
} | {
|
|
475
|
+
name: "settings";
|
|
433
476
|
} | {
|
|
434
477
|
name: "elementLinkSelector";
|
|
435
|
-
sourceElementId:
|
|
436
|
-
} |
|
|
478
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
479
|
+
} | {
|
|
480
|
+
name: "charts";
|
|
481
|
+
data: import("../charts").Spreadsheet;
|
|
482
|
+
rawText: string;
|
|
483
|
+
};
|
|
437
484
|
defaultSidebarDockedPreference: boolean;
|
|
438
485
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
439
486
|
selectedElementIds: Readonly<{
|
|
@@ -448,9 +495,9 @@ export declare const actionAddToLibrary: {
|
|
|
448
495
|
selectedElementsAreBeingDragged: boolean;
|
|
449
496
|
shouldCacheIgnoreZoom: boolean;
|
|
450
497
|
toast: {
|
|
451
|
-
message:
|
|
452
|
-
closable?: boolean
|
|
453
|
-
duration?: number
|
|
498
|
+
message: React.ReactNode;
|
|
499
|
+
closable?: boolean;
|
|
500
|
+
duration?: number;
|
|
454
501
|
} | null;
|
|
455
502
|
zenModeEnabled: boolean;
|
|
456
503
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -461,45 +508,18 @@ export declare const actionAddToLibrary: {
|
|
|
461
508
|
selectedGroupIds: {
|
|
462
509
|
[groupId: string]: boolean;
|
|
463
510
|
};
|
|
464
|
-
editingGroupId:
|
|
511
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
465
512
|
width: number;
|
|
466
513
|
height: number;
|
|
467
514
|
offsetTop: number;
|
|
468
515
|
offsetLeft: number;
|
|
469
|
-
fileHandle:
|
|
470
|
-
collaborators: Map<import("../types").SocketId,
|
|
471
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
472
|
-
button?: "up" | "down" | undefined;
|
|
473
|
-
selectedElementIds?: Readonly<{
|
|
474
|
-
[id: string]: true;
|
|
475
|
-
}> | undefined;
|
|
476
|
-
username?: string | null | undefined;
|
|
477
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
478
|
-
color?: {
|
|
479
|
-
background: string;
|
|
480
|
-
stroke: string;
|
|
481
|
-
} | undefined;
|
|
482
|
-
avatarUrl?: string | undefined;
|
|
483
|
-
id?: string | undefined;
|
|
484
|
-
socketId?: import("../types").SocketId | undefined;
|
|
485
|
-
isCurrentUser?: boolean | undefined;
|
|
486
|
-
isInCall?: boolean | undefined;
|
|
487
|
-
isSpeaking?: boolean | undefined;
|
|
488
|
-
isMuted?: boolean | undefined;
|
|
489
|
-
}>>;
|
|
516
|
+
fileHandle: FileSystemFileHandle | null;
|
|
517
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
490
518
|
stats: {
|
|
491
519
|
open: boolean;
|
|
492
520
|
panels: number;
|
|
493
521
|
};
|
|
494
|
-
|
|
495
|
-
pasteDialog: {
|
|
496
|
-
shown: false;
|
|
497
|
-
data: null;
|
|
498
|
-
} | {
|
|
499
|
-
shown: true;
|
|
500
|
-
data: import("../charts").Spreadsheet;
|
|
501
|
-
};
|
|
502
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
522
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
503
523
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
504
524
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
505
525
|
originSnapOffset: {
|
|
@@ -507,19 +527,25 @@ export declare const actionAddToLibrary: {
|
|
|
507
527
|
y: number;
|
|
508
528
|
} | null;
|
|
509
529
|
objectsSnapModeEnabled: boolean;
|
|
510
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
511
|
-
followedBy: Set<import("../types").SocketId>;
|
|
512
530
|
isCropping: boolean;
|
|
513
|
-
croppingElementId:
|
|
531
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
514
532
|
searchMatches: Readonly<{
|
|
515
|
-
focusedId:
|
|
533
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
516
534
|
matches: readonly import("../types").SearchMatch[];
|
|
517
535
|
}> | null;
|
|
518
536
|
activeLockedId: string | null;
|
|
519
537
|
lockedMultiSelections: {
|
|
520
538
|
[groupId: string]: true;
|
|
521
539
|
};
|
|
522
|
-
|
|
540
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
541
|
+
colorTopPicks: {
|
|
542
|
+
elementStroke: readonly string[] | null;
|
|
543
|
+
elementBackground: readonly string[] | null;
|
|
544
|
+
bucketFill: readonly string[] | null;
|
|
545
|
+
stickyNoteStroke: readonly string[] | null;
|
|
546
|
+
stickyNoteBackground: readonly string[] | null;
|
|
547
|
+
};
|
|
548
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
523
549
|
};
|
|
524
550
|
};
|
|
525
551
|
label: string;
|