@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-9fbeaed
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 +349 -160
- 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/colors.d.ts +24 -2
- package/dist/types/common/src/constants.d.ts +72 -7
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +6 -0
- 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/utils.d.ts +16 -50
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +9 -5
- package/dist/types/element/src/align.d.ts +5 -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 +99 -17
- package/dist/types/element/src/bounds.d.ts +32 -9
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +20 -3
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +6 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +7 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +30 -11
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +10 -1
- package/dist/types/element/src/linearElementEditor.d.ts +36 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +11 -13
- package/dist/types/element/src/shape.d.ts +30 -2
- 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 +191 -0
- package/dist/types/element/src/textElement.d.ts +23 -11
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +28 -1
- package/dist/types/element/src/transform.d.ts +31 -8
- package/dist/types/element/src/typeChecks.d.ts +29 -27
- package/dist/types/element/src/types.d.ts +48 -9
- package/dist/types/element/src/utils.d.ts +19 -6
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +128 -53
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +87 -213
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +371 -1027
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +43 -18
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -513
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +183 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +39 -18
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +87 -37
- package/dist/types/excalidraw/actions/actionExport.d.ts +140 -364
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +157 -684
- package/dist/types/excalidraw/actions/actionGroup.d.ts +102 -52
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +100 -21
- package/dist/types/excalidraw/actions/actionLink.d.ts +44 -19
- package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -18
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -56
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -23
- package/dist/types/excalidraw/actions/actionStyles.d.ts +44 -18
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +58 -32
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +47 -23
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +196 -0
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -19
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +43 -23
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +44 -19
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -20
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +44 -19
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +7 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +44 -17
- package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +8 -0
- package/dist/types/excalidraw/clipboard.d.ts +6 -7
- package/dist/types/excalidraw/components/Actions.d.ts +26 -13
- 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.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +376 -112
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +197 -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 +133 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +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 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- 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/fontTopPicksDnD.d.ts +12 -0
- 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/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/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- 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/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- 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/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/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- 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/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +3 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +18 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- 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/Tooltip.d.ts +26 -2
- 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/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 +6 -2
- 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 +30 -16
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- 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/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +31 -10
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +27 -3
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
- 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 +119 -70
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +9 -10
- package/dist/types/excalidraw/data/json.d.ts +68 -35
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- 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/useTextEditorFocus.d.ts +5 -5
- 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/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +702 -44
- package/dist/types/excalidraw/viewport.d.ts +303 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
- 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 +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +2 -2
- 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 -15
- 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 -10
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
- 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 -11
- 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 -84
- 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 -46
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- 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/export.d.ts +0 -35
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
5
5
|
label: string;
|
|
6
|
-
icon: (appState:
|
|
6
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
|
-
appState: Readonly<AppState>;
|
|
10
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
|
|
11
|
+
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: readonly OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "EVENTUALLY";
|
|
14
14
|
} | {
|
|
15
15
|
appState: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
16
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
17
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
18
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
19
19
|
contextMenu: {
|
|
20
20
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
21
21
|
top: number;
|
|
@@ -33,8 +33,26 @@ export declare const actionGroup: {
|
|
|
33
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
|
+
bindingPreference: "enabled" | "disabled";
|
|
38
|
+
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
inputDevice: import("../types").InputDevice;
|
|
41
|
+
suggestedBinding: {
|
|
42
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
43
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
44
|
+
} | null;
|
|
45
|
+
textToolHover: {
|
|
46
|
+
type: "text";
|
|
47
|
+
elementId: ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "container";
|
|
50
|
+
elementId: ExcalidrawElement["id"];
|
|
51
|
+
} | {
|
|
52
|
+
type: "arrow";
|
|
53
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
54
|
+
anchor: "start" | "end" | "label";
|
|
55
|
+
} | null;
|
|
38
56
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
57
|
frameRendering: {
|
|
40
58
|
enabled: boolean;
|
|
@@ -42,9 +60,9 @@ export declare const actionGroup: {
|
|
|
42
60
|
outline: boolean;
|
|
43
61
|
clip: boolean;
|
|
44
62
|
};
|
|
45
|
-
editingFrame:
|
|
46
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
47
|
-
editingTextElement:
|
|
63
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
64
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
65
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
48
66
|
activeTool: {
|
|
49
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
68
|
locked: boolean;
|
|
@@ -61,11 +79,14 @@ export declare const actionGroup: {
|
|
|
61
79
|
exportWithDarkMode: boolean;
|
|
62
80
|
exportScale: number;
|
|
63
81
|
currentItemStrokeColor: string;
|
|
82
|
+
currentItemStickynoteStrokeColor: string;
|
|
83
|
+
currentItemStickynoteBackgroundColor: string;
|
|
64
84
|
currentItemBackgroundColor: string;
|
|
65
85
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
66
|
-
|
|
86
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
67
87
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
68
88
|
currentItemRoughness: number;
|
|
89
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
69
90
|
currentItemOpacity: number;
|
|
70
91
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
71
92
|
currentItemFontSize: number;
|
|
@@ -78,6 +99,7 @@ export declare const actionGroup: {
|
|
|
78
99
|
viewBackgroundColor: string;
|
|
79
100
|
scrollX: number;
|
|
80
101
|
scrollY: number;
|
|
102
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
81
103
|
cursorButton: "up" | "down";
|
|
82
104
|
scrolledOutside: boolean;
|
|
83
105
|
name: string | null;
|
|
@@ -102,6 +124,10 @@ export declare const actionGroup: {
|
|
|
102
124
|
} | {
|
|
103
125
|
name: "elementLinkSelector";
|
|
104
126
|
sourceElementId: ExcalidrawElement["id"];
|
|
127
|
+
} | {
|
|
128
|
+
name: "charts";
|
|
129
|
+
data: import("../charts").Spreadsheet;
|
|
130
|
+
rawText: string;
|
|
105
131
|
};
|
|
106
132
|
defaultSidebarDockedPreference: boolean;
|
|
107
133
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -114,11 +140,12 @@ export declare const actionGroup: {
|
|
|
114
140
|
selectedElementsAreBeingDragged: boolean;
|
|
115
141
|
shouldCacheIgnoreZoom: boolean;
|
|
116
142
|
toast: {
|
|
117
|
-
message:
|
|
143
|
+
message: React.ReactNode;
|
|
118
144
|
closable?: boolean;
|
|
119
145
|
duration?: number;
|
|
120
146
|
} | null;
|
|
121
147
|
zenModeEnabled: boolean;
|
|
148
|
+
minimapEnabled: boolean;
|
|
122
149
|
theme: import("@excalidraw/element/types").Theme;
|
|
123
150
|
gridSize: number;
|
|
124
151
|
gridStep: number;
|
|
@@ -128,20 +155,12 @@ export declare const actionGroup: {
|
|
|
128
155
|
height: number;
|
|
129
156
|
offsetTop: number;
|
|
130
157
|
offsetLeft: number;
|
|
131
|
-
fileHandle:
|
|
158
|
+
fileHandle: FileSystemFileHandle | null;
|
|
132
159
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
133
160
|
stats: {
|
|
134
161
|
open: boolean;
|
|
135
162
|
panels: number;
|
|
136
163
|
};
|
|
137
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
138
|
-
pasteDialog: {
|
|
139
|
-
shown: false;
|
|
140
|
-
data: null;
|
|
141
|
-
} | {
|
|
142
|
-
shown: true;
|
|
143
|
-
data: import("../charts").Spreadsheet;
|
|
144
|
-
};
|
|
145
164
|
showHyperlinkPopup: false | "info" | "editor";
|
|
146
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
147
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -150,8 +169,6 @@ export declare const actionGroup: {
|
|
|
150
169
|
y: number;
|
|
151
170
|
} | null;
|
|
152
171
|
objectsSnapModeEnabled: boolean;
|
|
153
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
154
|
-
followedBy: Set<import("../types").SocketId>;
|
|
155
172
|
isCropping: boolean;
|
|
156
173
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
157
174
|
searchMatches: Readonly<{
|
|
@@ -163,11 +180,19 @@ export declare const actionGroup: {
|
|
|
163
180
|
[groupId: string]: true;
|
|
164
181
|
};
|
|
165
182
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
183
|
+
colorTopPicks: {
|
|
184
|
+
elementStroke: readonly string[] | null;
|
|
185
|
+
elementBackground: readonly string[] | null;
|
|
186
|
+
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
189
|
+
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
166
191
|
};
|
|
167
192
|
elements: OrderedExcalidrawElement[];
|
|
168
193
|
captureUpdate: "IMMEDIATELY";
|
|
169
194
|
};
|
|
170
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
195
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
171
196
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
172
197
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
173
198
|
} & {
|
|
@@ -176,19 +201,19 @@ export declare const actionGroup: {
|
|
|
176
201
|
export declare const actionUngroup: {
|
|
177
202
|
name: "ungroup";
|
|
178
203
|
label: string;
|
|
179
|
-
icon: (appState:
|
|
204
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
180
205
|
trackEvent: {
|
|
181
206
|
category: "element";
|
|
182
207
|
};
|
|
183
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
184
|
-
appState: Readonly<AppState>;
|
|
208
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
209
|
+
appState: Readonly<import("../types").AppState>;
|
|
185
210
|
elements: readonly OrderedExcalidrawElement[];
|
|
186
211
|
captureUpdate: "EVENTUALLY";
|
|
187
212
|
} | {
|
|
188
213
|
appState: {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
214
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
215
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
216
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
192
217
|
contextMenu: {
|
|
193
218
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
194
219
|
top: number;
|
|
@@ -206,8 +231,26 @@ export declare const actionUngroup: {
|
|
|
206
231
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
207
232
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
208
233
|
isBindingEnabled: boolean;
|
|
209
|
-
|
|
210
|
-
|
|
234
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
235
|
+
bindingPreference: "enabled" | "disabled";
|
|
236
|
+
isMidpointSnappingEnabled: boolean;
|
|
237
|
+
showHints: boolean;
|
|
238
|
+
inputDevice: import("../types").InputDevice;
|
|
239
|
+
suggestedBinding: {
|
|
240
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
241
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
242
|
+
} | null;
|
|
243
|
+
textToolHover: {
|
|
244
|
+
type: "text";
|
|
245
|
+
elementId: ExcalidrawElement["id"];
|
|
246
|
+
} | {
|
|
247
|
+
type: "container";
|
|
248
|
+
elementId: ExcalidrawElement["id"];
|
|
249
|
+
} | {
|
|
250
|
+
type: "arrow";
|
|
251
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
252
|
+
anchor: "start" | "end" | "label";
|
|
253
|
+
} | null;
|
|
211
254
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
212
255
|
frameRendering: {
|
|
213
256
|
enabled: boolean;
|
|
@@ -215,9 +258,9 @@ export declare const actionUngroup: {
|
|
|
215
258
|
outline: boolean;
|
|
216
259
|
clip: boolean;
|
|
217
260
|
};
|
|
218
|
-
editingFrame:
|
|
219
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
220
|
-
editingTextElement:
|
|
261
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
262
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
263
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
221
264
|
activeTool: {
|
|
222
265
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
223
266
|
locked: boolean;
|
|
@@ -234,11 +277,14 @@ export declare const actionUngroup: {
|
|
|
234
277
|
exportWithDarkMode: boolean;
|
|
235
278
|
exportScale: number;
|
|
236
279
|
currentItemStrokeColor: string;
|
|
280
|
+
currentItemStickynoteStrokeColor: string;
|
|
281
|
+
currentItemStickynoteBackgroundColor: string;
|
|
237
282
|
currentItemBackgroundColor: string;
|
|
238
283
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
239
|
-
|
|
284
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
240
285
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
241
286
|
currentItemRoughness: number;
|
|
287
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
242
288
|
currentItemOpacity: number;
|
|
243
289
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
244
290
|
currentItemFontSize: number;
|
|
@@ -251,6 +297,7 @@ export declare const actionUngroup: {
|
|
|
251
297
|
viewBackgroundColor: string;
|
|
252
298
|
scrollX: number;
|
|
253
299
|
scrollY: number;
|
|
300
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
254
301
|
cursorButton: "up" | "down";
|
|
255
302
|
scrolledOutside: boolean;
|
|
256
303
|
name: string | null;
|
|
@@ -275,6 +322,10 @@ export declare const actionUngroup: {
|
|
|
275
322
|
} | {
|
|
276
323
|
name: "elementLinkSelector";
|
|
277
324
|
sourceElementId: ExcalidrawElement["id"];
|
|
325
|
+
} | {
|
|
326
|
+
name: "charts";
|
|
327
|
+
data: import("../charts").Spreadsheet;
|
|
328
|
+
rawText: string;
|
|
278
329
|
};
|
|
279
330
|
defaultSidebarDockedPreference: boolean;
|
|
280
331
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -287,11 +338,12 @@ export declare const actionUngroup: {
|
|
|
287
338
|
selectedElementsAreBeingDragged: boolean;
|
|
288
339
|
shouldCacheIgnoreZoom: boolean;
|
|
289
340
|
toast: {
|
|
290
|
-
message:
|
|
341
|
+
message: React.ReactNode;
|
|
291
342
|
closable?: boolean;
|
|
292
343
|
duration?: number;
|
|
293
344
|
} | null;
|
|
294
345
|
zenModeEnabled: boolean;
|
|
346
|
+
minimapEnabled: boolean;
|
|
295
347
|
theme: import("@excalidraw/element/types").Theme;
|
|
296
348
|
gridSize: number;
|
|
297
349
|
gridStep: number;
|
|
@@ -301,20 +353,12 @@ export declare const actionUngroup: {
|
|
|
301
353
|
height: number;
|
|
302
354
|
offsetTop: number;
|
|
303
355
|
offsetLeft: number;
|
|
304
|
-
fileHandle:
|
|
356
|
+
fileHandle: FileSystemFileHandle | null;
|
|
305
357
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
306
358
|
stats: {
|
|
307
359
|
open: boolean;
|
|
308
360
|
panels: number;
|
|
309
361
|
};
|
|
310
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
311
|
-
pasteDialog: {
|
|
312
|
-
shown: false;
|
|
313
|
-
data: null;
|
|
314
|
-
} | {
|
|
315
|
-
shown: true;
|
|
316
|
-
data: import("../charts").Spreadsheet;
|
|
317
|
-
};
|
|
318
362
|
showHyperlinkPopup: false | "info" | "editor";
|
|
319
363
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
320
364
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -323,8 +367,6 @@ export declare const actionUngroup: {
|
|
|
323
367
|
y: number;
|
|
324
368
|
} | null;
|
|
325
369
|
objectsSnapModeEnabled: boolean;
|
|
326
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
327
|
-
followedBy: Set<import("../types").SocketId>;
|
|
328
370
|
isCropping: boolean;
|
|
329
371
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
330
372
|
searchMatches: Readonly<{
|
|
@@ -336,12 +378,20 @@ export declare const actionUngroup: {
|
|
|
336
378
|
[groupId: string]: true;
|
|
337
379
|
};
|
|
338
380
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
381
|
+
colorTopPicks: {
|
|
382
|
+
elementStroke: readonly string[] | null;
|
|
383
|
+
elementBackground: readonly string[] | null;
|
|
384
|
+
bucketFill: readonly string[] | null;
|
|
385
|
+
stickyNoteStroke: readonly string[] | null;
|
|
386
|
+
stickyNoteBackground: readonly string[] | null;
|
|
387
|
+
};
|
|
388
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
339
389
|
};
|
|
340
390
|
elements: OrderedExcalidrawElement[];
|
|
341
391
|
captureUpdate: "IMMEDIATELY";
|
|
342
392
|
};
|
|
343
393
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
344
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
394
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
345
395
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
346
396
|
} & {
|
|
347
397
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
5
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
27
27
|
};
|
|
28
28
|
arrowStartIsInside: boolean;
|
|
29
29
|
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
30
|
+
arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
30
31
|
}>;
|
|
31
32
|
isDragging: boolean;
|
|
32
33
|
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
@@ -37,6 +38,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
37
38
|
}>;
|
|
38
39
|
hoverPointIndex: number;
|
|
39
40
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
41
|
+
hoveredFocusPointBinding: "start" | "end" | null;
|
|
42
|
+
draggedFocusPointBinding: "start" | "end" | null;
|
|
40
43
|
elbowed: boolean;
|
|
41
44
|
customLineAngle: number | null;
|
|
42
45
|
pointerDownState: never;
|
|
@@ -58,8 +61,26 @@ export declare const actionToggleLinearEditor: {
|
|
|
58
61
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
59
62
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
63
|
isBindingEnabled: boolean;
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
65
|
+
bindingPreference: "enabled" | "disabled";
|
|
66
|
+
isMidpointSnappingEnabled: boolean;
|
|
67
|
+
showHints: boolean;
|
|
68
|
+
inputDevice: import("../types").InputDevice;
|
|
69
|
+
suggestedBinding: {
|
|
70
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
71
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
72
|
+
} | null;
|
|
73
|
+
textToolHover: {
|
|
74
|
+
type: "text";
|
|
75
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
76
|
+
} | {
|
|
77
|
+
type: "container";
|
|
78
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
79
|
+
} | {
|
|
80
|
+
type: "arrow";
|
|
81
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
82
|
+
anchor: "start" | "end" | "label";
|
|
83
|
+
} | null;
|
|
63
84
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
85
|
frameRendering: {
|
|
65
86
|
enabled: boolean;
|
|
@@ -67,9 +88,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
67
88
|
outline: boolean;
|
|
68
89
|
clip: boolean;
|
|
69
90
|
};
|
|
70
|
-
editingFrame:
|
|
71
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
72
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
91
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
92
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
93
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
73
94
|
activeTool: {
|
|
74
95
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
96
|
locked: boolean;
|
|
@@ -86,11 +107,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
86
107
|
exportWithDarkMode: boolean;
|
|
87
108
|
exportScale: number;
|
|
88
109
|
currentItemStrokeColor: string;
|
|
110
|
+
currentItemStickynoteStrokeColor: string;
|
|
111
|
+
currentItemStickynoteBackgroundColor: string;
|
|
89
112
|
currentItemBackgroundColor: string;
|
|
90
113
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
91
|
-
|
|
114
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
92
115
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
93
116
|
currentItemRoughness: number;
|
|
117
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
94
118
|
currentItemOpacity: number;
|
|
95
119
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
96
120
|
currentItemFontSize: number;
|
|
@@ -103,6 +127,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
103
127
|
viewBackgroundColor: string;
|
|
104
128
|
scrollX: number;
|
|
105
129
|
scrollY: number;
|
|
130
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
106
131
|
cursorButton: "up" | "down";
|
|
107
132
|
scrolledOutside: boolean;
|
|
108
133
|
name: string | null;
|
|
@@ -127,6 +152,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
127
152
|
} | {
|
|
128
153
|
name: "elementLinkSelector";
|
|
129
154
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
155
|
+
} | {
|
|
156
|
+
name: "charts";
|
|
157
|
+
data: import("../charts").Spreadsheet;
|
|
158
|
+
rawText: string;
|
|
130
159
|
};
|
|
131
160
|
defaultSidebarDockedPreference: boolean;
|
|
132
161
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -142,11 +171,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
142
171
|
selectedElementsAreBeingDragged: boolean;
|
|
143
172
|
shouldCacheIgnoreZoom: boolean;
|
|
144
173
|
toast: {
|
|
145
|
-
message:
|
|
174
|
+
message: React.ReactNode;
|
|
146
175
|
closable?: boolean;
|
|
147
176
|
duration?: number;
|
|
148
177
|
} | null;
|
|
149
178
|
zenModeEnabled: boolean;
|
|
179
|
+
minimapEnabled: boolean;
|
|
150
180
|
theme: import("@excalidraw/element/types").Theme;
|
|
151
181
|
gridSize: number;
|
|
152
182
|
gridStep: number;
|
|
@@ -160,20 +190,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
160
190
|
height: number;
|
|
161
191
|
offsetTop: number;
|
|
162
192
|
offsetLeft: number;
|
|
163
|
-
fileHandle:
|
|
193
|
+
fileHandle: FileSystemFileHandle | null;
|
|
164
194
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
165
195
|
stats: {
|
|
166
196
|
open: boolean;
|
|
167
197
|
panels: number;
|
|
168
198
|
};
|
|
169
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
170
|
-
pasteDialog: {
|
|
171
|
-
shown: false;
|
|
172
|
-
data: null;
|
|
173
|
-
} | {
|
|
174
|
-
shown: true;
|
|
175
|
-
data: import("../charts").Spreadsheet;
|
|
176
|
-
};
|
|
177
199
|
showHyperlinkPopup: false | "info" | "editor";
|
|
178
200
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
179
201
|
originSnapOffset: {
|
|
@@ -181,8 +203,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
181
203
|
y: number;
|
|
182
204
|
} | null;
|
|
183
205
|
objectsSnapModeEnabled: boolean;
|
|
184
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
185
|
-
followedBy: Set<import("../types").SocketId>;
|
|
186
206
|
isCropping: boolean;
|
|
187
207
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
188
208
|
searchMatches: Readonly<{
|
|
@@ -194,6 +214,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
194
214
|
[groupId: string]: true;
|
|
195
215
|
};
|
|
196
216
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
217
|
+
colorTopPicks: {
|
|
218
|
+
elementStroke: readonly string[] | null;
|
|
219
|
+
elementBackground: readonly string[] | null;
|
|
220
|
+
bucketFill: readonly string[] | null;
|
|
221
|
+
stickyNoteStroke: readonly string[] | null;
|
|
222
|
+
stickyNoteBackground: readonly string[] | null;
|
|
223
|
+
};
|
|
224
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
197
225
|
};
|
|
198
226
|
captureUpdate: "IMMEDIATELY";
|
|
199
227
|
};
|
|
@@ -206,7 +234,7 @@ export declare const actionTogglePolygon: {
|
|
|
206
234
|
category: string;
|
|
207
235
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
208
236
|
keywords: string[];
|
|
209
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
237
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
210
238
|
trackEvent: {
|
|
211
239
|
category: "element";
|
|
212
240
|
};
|
|
@@ -239,6 +267,7 @@ export declare const actionTogglePolygon: {
|
|
|
239
267
|
frameId: string | null;
|
|
240
268
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
241
269
|
updated: number;
|
|
270
|
+
created: number | null;
|
|
242
271
|
link: string | null;
|
|
243
272
|
locked: boolean;
|
|
244
273
|
customData?: Record<string, any>;
|
|
@@ -278,6 +307,7 @@ export declare const actionTogglePolygon: {
|
|
|
278
307
|
frameId: string | null;
|
|
279
308
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
280
309
|
updated: number;
|
|
310
|
+
created: number | null;
|
|
281
311
|
link: string | null;
|
|
282
312
|
locked: boolean;
|
|
283
313
|
customData?: Record<string, any>;
|
|
@@ -312,6 +342,7 @@ export declare const actionTogglePolygon: {
|
|
|
312
342
|
frameId: string | null;
|
|
313
343
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
314
344
|
updated: number;
|
|
345
|
+
created: number | null;
|
|
315
346
|
link: string | null;
|
|
316
347
|
locked: boolean;
|
|
317
348
|
customData?: Record<string, any>;
|
|
@@ -346,6 +377,43 @@ export declare const actionTogglePolygon: {
|
|
|
346
377
|
frameId: string | null;
|
|
347
378
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
348
379
|
updated: number;
|
|
380
|
+
created: number | null;
|
|
381
|
+
link: string | null;
|
|
382
|
+
locked: boolean;
|
|
383
|
+
customData?: Record<string, any>;
|
|
384
|
+
}> & Readonly<{
|
|
385
|
+
type: "stickynote";
|
|
386
|
+
baseHeight: number;
|
|
387
|
+
}> & {
|
|
388
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
389
|
+
}) | (Readonly<{
|
|
390
|
+
id: string;
|
|
391
|
+
x: number;
|
|
392
|
+
y: number;
|
|
393
|
+
strokeColor: string;
|
|
394
|
+
backgroundColor: string;
|
|
395
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
396
|
+
strokeWidth: number;
|
|
397
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
398
|
+
roundness: null | {
|
|
399
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
400
|
+
value?: number;
|
|
401
|
+
};
|
|
402
|
+
roughness: number;
|
|
403
|
+
opacity: number;
|
|
404
|
+
width: number;
|
|
405
|
+
height: number;
|
|
406
|
+
angle: import("@excalidraw/math").Radians;
|
|
407
|
+
seed: number;
|
|
408
|
+
version: number;
|
|
409
|
+
versionNonce: number;
|
|
410
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
411
|
+
isDeleted: boolean;
|
|
412
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
413
|
+
frameId: string | null;
|
|
414
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
415
|
+
updated: number;
|
|
416
|
+
created: number | null;
|
|
349
417
|
link: string | null;
|
|
350
418
|
locked: boolean;
|
|
351
419
|
customData?: Record<string, any>;
|
|
@@ -380,6 +448,7 @@ export declare const actionTogglePolygon: {
|
|
|
380
448
|
frameId: string | null;
|
|
381
449
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
382
450
|
updated: number;
|
|
451
|
+
created: number | null;
|
|
383
452
|
link: string | null;
|
|
384
453
|
locked: boolean;
|
|
385
454
|
customData?: Record<string, any>;
|
|
@@ -414,6 +483,7 @@ export declare const actionTogglePolygon: {
|
|
|
414
483
|
frameId: string | null;
|
|
415
484
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
416
485
|
updated: number;
|
|
486
|
+
created: number | null;
|
|
417
487
|
link: string | null;
|
|
418
488
|
locked: boolean;
|
|
419
489
|
customData?: Record<string, any>;
|
|
@@ -448,6 +518,7 @@ export declare const actionTogglePolygon: {
|
|
|
448
518
|
frameId: string | null;
|
|
449
519
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
450
520
|
updated: number;
|
|
521
|
+
created: number | null;
|
|
451
522
|
link: string | null;
|
|
452
523
|
locked: boolean;
|
|
453
524
|
customData?: Record<string, any>;
|
|
@@ -485,6 +556,7 @@ export declare const actionTogglePolygon: {
|
|
|
485
556
|
frameId: string | null;
|
|
486
557
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
487
558
|
updated: number;
|
|
559
|
+
created: number | null;
|
|
488
560
|
link: string | null;
|
|
489
561
|
locked: boolean;
|
|
490
562
|
customData?: Record<string, any>;
|
|
@@ -523,6 +595,7 @@ export declare const actionTogglePolygon: {
|
|
|
523
595
|
frameId: string | null;
|
|
524
596
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
525
597
|
updated: number;
|
|
598
|
+
created: number | null;
|
|
526
599
|
link: string | null;
|
|
527
600
|
locked: boolean;
|
|
528
601
|
customData?: Record<string, any>;
|
|
@@ -558,6 +631,7 @@ export declare const actionTogglePolygon: {
|
|
|
558
631
|
frameId: string | null;
|
|
559
632
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
560
633
|
updated: number;
|
|
634
|
+
created: number | null;
|
|
561
635
|
link: string | null;
|
|
562
636
|
locked: boolean;
|
|
563
637
|
customData?: Record<string, any>;
|
|
@@ -593,6 +667,7 @@ export declare const actionTogglePolygon: {
|
|
|
593
667
|
frameId: string | null;
|
|
594
668
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
595
669
|
updated: number;
|
|
670
|
+
created: number | null;
|
|
596
671
|
link: string | null;
|
|
597
672
|
locked: boolean;
|
|
598
673
|
customData?: Record<string, any>;
|
|
@@ -600,15 +675,17 @@ export declare const actionTogglePolygon: {
|
|
|
600
675
|
type: "text";
|
|
601
676
|
fontSize: number;
|
|
602
677
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
678
|
+
baseFontSize: number | null;
|
|
603
679
|
text: string;
|
|
604
680
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
605
681
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
606
|
-
containerId: import("@excalidraw/element/types").
|
|
682
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
607
683
|
originalText: string;
|
|
608
684
|
autoResize: boolean;
|
|
609
685
|
lineHeight: number & {
|
|
610
686
|
_brand: "unitlessLineHeight";
|
|
611
687
|
};
|
|
688
|
+
labelPosition?: number | null;
|
|
612
689
|
}> & {
|
|
613
690
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
614
691
|
}) | (Readonly<{
|
|
@@ -638,6 +715,7 @@ export declare const actionTogglePolygon: {
|
|
|
638
715
|
frameId: string | null;
|
|
639
716
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
640
717
|
updated: number;
|
|
718
|
+
created: number | null;
|
|
641
719
|
link: string | null;
|
|
642
720
|
locked: boolean;
|
|
643
721
|
customData?: Record<string, any>;
|
|
@@ -646,6 +724,7 @@ export declare const actionTogglePolygon: {
|
|
|
646
724
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
647
725
|
pressures: readonly number[];
|
|
648
726
|
simulatePressure: boolean;
|
|
727
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
649
728
|
}> & {
|
|
650
729
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
651
730
|
}))[];
|