@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-8608d7b
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/CHANGELOG.md +11 -11
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/chunk-FB2NA5UG.js +4132 -0
- package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
- package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
- package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
- package/dist/dev/chunk-YMRX7R7U.js +5671 -0
- package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
- package/dist/dev/data/{image-V26YBSDB.js → image-L23D26XS.js} +3 -3
- package/dist/dev/index.css +3945 -3493
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +33090 -24527
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-V3NQTBPG.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +2 -2
- package/dist/dev/subset-worker.chunk.js +2 -2
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/chunk-GF46JCB3.js +12 -0
- package/dist/prod/chunk-HT4FKTIQ.js +4 -0
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/data/image-NWF7UX55.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +27 -16
- package/dist/prod/locales/{en-B4ZKOASM.js → en-LQE6K457.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/dist/types/{excalidraw → common/src}/constants.d.ts +52 -12
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
- package/dist/types/common/src/index.d.ts +12 -0
- package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/dist/types/common/src/promise-pool.d.ts +6 -0
- package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
- package/dist/types/{excalidraw → common/src}/utils.d.ts +25 -11
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +19 -18
- package/dist/types/element/src/align.d.ts +8 -0
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +20 -7
- package/dist/types/element/src/collision.d.ts +32 -0
- package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +78 -41
- package/dist/types/element/src/distance.d.ts +3 -0
- package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
- package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
- package/dist/types/element/src/duplicate.d.ts +63 -0
- package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +10 -0
- package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
- package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +12 -3
- package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
- package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -5
- package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/dist/types/element/src/index.d.ts +58 -0
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
- package/dist/types/element/src/mutateElement.d.ts +21 -0
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +6 -3
- package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -6
- package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
- package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
- package/dist/types/element/src/store.d.ts +237 -0
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
- package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
- package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
- package/dist/types/element/src/utils.d.ts +31 -0
- package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +115 -109
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -78
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +705 -502
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +242 -228
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +40 -38
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +120 -113
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +43 -41
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +94 -92
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +40 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +405 -387
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +112 -67
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +276 -268
- package/dist/types/excalidraw/actions/actionGroup.d.ts +79 -75
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +568 -42
- package/dist/types/excalidraw/actions/actionLink.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionMenu.d.ts +116 -110
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +77 -73
- package/dist/types/excalidraw/actions/actionProperties.d.ts +571 -524
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionStyles.d.ts +42 -40
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +40 -38
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +40 -38
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +39 -209
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +39 -38
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +40 -39
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +40 -39
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +2 -1
- package/dist/types/excalidraw/actions/manager.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +6 -5
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +42 -28
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +71 -8
- package/dist/types/excalidraw/components/Actions.d.ts +19 -9
- package/dist/types/excalidraw/components/App.d.ts +58 -34
- package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +10 -5
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +6 -5
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +4 -4
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -3
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +2 -1
- package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +4 -2
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/Island.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -4
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/dist/types/excalidraw/components/Stack.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/TextField.d.ts +2 -1
- package/dist/types/excalidraw/components/Toast.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/UserList.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +5 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
- package/dist/types/excalidraw/components/icons.d.ts +10 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/dist/types/excalidraw/components/shapes.d.ts +190 -0
- package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +7 -11
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +2 -2
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/data/library.d.ts +3 -3
- package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/transform.d.ts +4 -4
- package/dist/types/excalidraw/data/types.d.ts +6 -3
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/eraser/index.d.ts +12 -0
- package/dist/types/excalidraw/errors.d.ts +0 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
- package/dist/types/excalidraw/history.d.ts +31 -23
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +18 -16
- package/dist/types/excalidraw/laser-trails.d.ts +1 -1
- package/dist/types/excalidraw/lasso/index.d.ts +16 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
- package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +6 -4
- package/dist/types/excalidraw/snapping.d.ts +5 -6
- package/dist/types/excalidraw/types.d.ts +55 -26
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
- package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +74 -0
- package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
- package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
- package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
- package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
- package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
- package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
- package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
- package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
- package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/history.ts +148 -109
- package/package.json +26 -11
- package/dist/dev/chunk-3SN6HYVK.js +0 -25695
- package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
- package/dist/dev/chunk-53KHN5WM.js +0 -7
- package/dist/dev/chunk-53KHN5WM.js.map +0 -7
- package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
- package/dist/dev/chunk-OKSO7T74.js +0 -4132
- package/dist/dev/chunk-OKSO7T74.js.map +0 -7
- package/dist/prod/chunk-36CXSE6H.js +0 -34
- package/dist/prod/chunk-6U3AYISY.js +0 -12
- package/dist/prod/chunk-EIO257PC.js +0 -86
- package/dist/prod/chunk-G5N3DNGT.js +0 -7
- package/dist/prod/data/image-N4WCURRR.js +0 -1
- package/dist/types/excalidraw/align.d.ts +0 -7
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/element/collision.d.ts +0 -26
- package/dist/types/excalidraw/element/distance.d.ts +0 -3
- package/dist/types/excalidraw/element/index.d.ts +0 -26
- package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
- package/dist/types/excalidraw/element/utils.d.ts +0 -21
- package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
- package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
- package/dist/types/excalidraw/shapes.d.ts +0 -85
- package/dist/types/excalidraw/store.d.ts +0 -129
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/math/curve.d.ts +0 -40
- package/dist/types/utils/collision.d.ts +0 -9
- /package/dist/dev/data/{image-V26YBSDB.js.map → image-L23D26XS.js.map} +0 -0
- /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
- /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
2
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
3
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
4
|
-
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
5
5
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
6
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[],
|
|
6
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
7
7
|
export declare const actionChangeStrokeColor: {
|
|
8
8
|
name: "changeStrokeColor";
|
|
9
9
|
label: string;
|
|
10
10
|
trackEvent: false;
|
|
11
|
-
perform: (elements: readonly import("
|
|
12
|
-
PanelComponent: ({ elements, appState, updateData,
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
12
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
} & {
|
|
14
14
|
keyTest?: undefined;
|
|
15
15
|
};
|
|
@@ -17,8 +17,16 @@ export declare const actionChangeBackgroundColor: {
|
|
|
17
17
|
name: "changeBackgroundColor";
|
|
18
18
|
label: string;
|
|
19
19
|
trackEvent: false;
|
|
20
|
-
perform: (elements: readonly import("
|
|
21
|
-
|
|
20
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
21
|
+
appState: any;
|
|
22
|
+
captureUpdate: "EVENTUALLY";
|
|
23
|
+
elements?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
elements: ExcalidrawElement[];
|
|
26
|
+
appState: any;
|
|
27
|
+
captureUpdate: "IMMEDIATELY";
|
|
28
|
+
};
|
|
29
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
30
|
} & {
|
|
23
31
|
keyTest?: undefined;
|
|
24
32
|
};
|
|
@@ -26,7 +34,7 @@ export declare const actionChangeFillStyle: {
|
|
|
26
34
|
name: "changeFillStyle";
|
|
27
35
|
label: string;
|
|
28
36
|
trackEvent: false;
|
|
29
|
-
perform: (elements: readonly import("
|
|
37
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
30
38
|
elements: ExcalidrawElement[];
|
|
31
39
|
appState: {
|
|
32
40
|
currentItemFillStyle: any;
|
|
@@ -39,17 +47,17 @@ export declare const actionChangeFillStyle: {
|
|
|
39
47
|
isLoading: boolean;
|
|
40
48
|
errorMessage: import("react").ReactNode;
|
|
41
49
|
activeEmbeddable: {
|
|
42
|
-
element: import("
|
|
43
|
-
state: "
|
|
50
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
51
|
+
state: "active" | "hover";
|
|
44
52
|
} | null;
|
|
45
|
-
newElement: import("
|
|
46
|
-
resizingElement: import("
|
|
47
|
-
multiElement: import("
|
|
48
|
-
selectionElement: import("
|
|
53
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
54
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
55
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
56
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
57
|
isBindingEnabled: boolean;
|
|
50
|
-
startBoundElement: import("
|
|
51
|
-
suggestedBindings: import("
|
|
52
|
-
frameToHighlight: import("
|
|
58
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
59
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
60
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
53
61
|
frameRendering: {
|
|
54
62
|
enabled: boolean;
|
|
55
63
|
name: boolean;
|
|
@@ -57,13 +65,17 @@ export declare const actionChangeFillStyle: {
|
|
|
57
65
|
clip: boolean;
|
|
58
66
|
};
|
|
59
67
|
editingFrame: string | null;
|
|
60
|
-
elementsToHighlight: import("
|
|
61
|
-
editingTextElement: import("
|
|
62
|
-
editingLinearElement: LinearElementEditor | null;
|
|
68
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
69
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
63
70
|
activeTool: {
|
|
64
71
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
65
72
|
locked: boolean;
|
|
73
|
+
fromSelection: boolean;
|
|
66
74
|
} & import("../types").ActiveTool;
|
|
75
|
+
preferredSelectionTool: {
|
|
76
|
+
type: "selection" | "lasso";
|
|
77
|
+
initialized: boolean;
|
|
78
|
+
};
|
|
67
79
|
penMode: boolean;
|
|
68
80
|
penDetected: boolean;
|
|
69
81
|
exportBackground: boolean;
|
|
@@ -73,7 +85,7 @@ export declare const actionChangeFillStyle: {
|
|
|
73
85
|
currentItemStrokeColor: string;
|
|
74
86
|
currentItemBackgroundColor: string;
|
|
75
87
|
currentItemStrokeWidth: number;
|
|
76
|
-
currentItemStrokeStyle: import("
|
|
88
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
77
89
|
currentItemRoughness: number;
|
|
78
90
|
currentItemOpacity: number;
|
|
79
91
|
currentItemFontFamily: number;
|
|
@@ -82,7 +94,7 @@ export declare const actionChangeFillStyle: {
|
|
|
82
94
|
currentItemStartArrowhead: Arrowhead | null;
|
|
83
95
|
currentItemEndArrowhead: Arrowhead | null;
|
|
84
96
|
currentHoveredFontFamily: number | null;
|
|
85
|
-
currentItemRoundness: import("
|
|
97
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
86
98
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
87
99
|
viewBackgroundColor: string;
|
|
88
100
|
scrollX: number;
|
|
@@ -96,7 +108,7 @@ export declare const actionChangeFillStyle: {
|
|
|
96
108
|
value: import("../types").NormalizedZoomValue;
|
|
97
109
|
}>;
|
|
98
110
|
openMenu: "canvas" | "shape" | null;
|
|
99
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
111
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
100
112
|
openSidebar: {
|
|
101
113
|
name: string;
|
|
102
114
|
tab?: string | undefined;
|
|
@@ -105,7 +117,7 @@ export declare const actionChangeFillStyle: {
|
|
|
105
117
|
name: "imageExport" | "help" | "jsonExport";
|
|
106
118
|
} | {
|
|
107
119
|
name: "ttd";
|
|
108
|
-
tab: "text-to-diagram"
|
|
120
|
+
tab: "mermaid" | "text-to-diagram";
|
|
109
121
|
} | {
|
|
110
122
|
name: "commandPalette";
|
|
111
123
|
} | {
|
|
@@ -113,7 +125,7 @@ export declare const actionChangeFillStyle: {
|
|
|
113
125
|
sourceElementId: string;
|
|
114
126
|
} | null;
|
|
115
127
|
defaultSidebarDockedPreference: boolean;
|
|
116
|
-
lastPointerDownWith: import("
|
|
128
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
117
129
|
selectedElementIds: Readonly<{
|
|
118
130
|
[id: string]: true;
|
|
119
131
|
}>;
|
|
@@ -131,7 +143,7 @@ export declare const actionChangeFillStyle: {
|
|
|
131
143
|
duration?: number | undefined;
|
|
132
144
|
} | null;
|
|
133
145
|
zenModeEnabled: boolean;
|
|
134
|
-
theme: import("
|
|
146
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
135
147
|
gridSize: number;
|
|
136
148
|
gridStep: number;
|
|
137
149
|
gridModeEnabled: boolean;
|
|
@@ -152,7 +164,7 @@ export declare const actionChangeFillStyle: {
|
|
|
152
164
|
[id: string]: true;
|
|
153
165
|
}> | undefined;
|
|
154
166
|
username?: string | null | undefined;
|
|
155
|
-
userState?: import("
|
|
167
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
156
168
|
color?: {
|
|
157
169
|
background: string;
|
|
158
170
|
stroke: string;
|
|
@@ -169,7 +181,7 @@ export declare const actionChangeFillStyle: {
|
|
|
169
181
|
open: boolean;
|
|
170
182
|
panels: number;
|
|
171
183
|
};
|
|
172
|
-
currentChartType: import("
|
|
184
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
173
185
|
pasteDialog: {
|
|
174
186
|
shown: false;
|
|
175
187
|
data: null;
|
|
@@ -177,8 +189,7 @@ export declare const actionChangeFillStyle: {
|
|
|
177
189
|
shown: true;
|
|
178
190
|
data: import("../charts").Spreadsheet;
|
|
179
191
|
};
|
|
180
|
-
|
|
181
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
192
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
182
193
|
selectedLinearElement: LinearElementEditor | null;
|
|
183
194
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
184
195
|
originSnapOffset: {
|
|
@@ -190,20 +201,19 @@ export declare const actionChangeFillStyle: {
|
|
|
190
201
|
followedBy: Set<import("../types").SocketId>;
|
|
191
202
|
isCropping: boolean;
|
|
192
203
|
croppingElementId: string | null;
|
|
193
|
-
searchMatches:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}[];
|
|
204
|
+
searchMatches: Readonly<{
|
|
205
|
+
focusedId: string | null;
|
|
206
|
+
matches: readonly import("../types").SearchMatch[];
|
|
207
|
+
}> | null;
|
|
208
|
+
activeLockedId: string | null;
|
|
209
|
+
lockedMultiSelections: {
|
|
210
|
+
[groupId: string]: true;
|
|
211
|
+
};
|
|
212
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
203
213
|
};
|
|
204
214
|
captureUpdate: "IMMEDIATELY";
|
|
205
215
|
};
|
|
206
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
216
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
207
217
|
} & {
|
|
208
218
|
keyTest?: undefined;
|
|
209
219
|
};
|
|
@@ -211,7 +221,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
211
221
|
name: "changeStrokeWidth";
|
|
212
222
|
label: string;
|
|
213
223
|
trackEvent: false;
|
|
214
|
-
perform: (elements: readonly import("
|
|
224
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
215
225
|
elements: ExcalidrawElement[];
|
|
216
226
|
appState: {
|
|
217
227
|
currentItemStrokeWidth: any;
|
|
@@ -224,17 +234,17 @@ export declare const actionChangeStrokeWidth: {
|
|
|
224
234
|
isLoading: boolean;
|
|
225
235
|
errorMessage: import("react").ReactNode;
|
|
226
236
|
activeEmbeddable: {
|
|
227
|
-
element: import("
|
|
228
|
-
state: "
|
|
237
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
238
|
+
state: "active" | "hover";
|
|
229
239
|
} | null;
|
|
230
|
-
newElement: import("
|
|
231
|
-
resizingElement: import("
|
|
232
|
-
multiElement: import("
|
|
233
|
-
selectionElement: import("
|
|
240
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
241
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
242
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
243
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
244
|
isBindingEnabled: boolean;
|
|
235
|
-
startBoundElement: import("
|
|
236
|
-
suggestedBindings: import("
|
|
237
|
-
frameToHighlight: import("
|
|
245
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
246
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
247
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
238
248
|
frameRendering: {
|
|
239
249
|
enabled: boolean;
|
|
240
250
|
name: boolean;
|
|
@@ -242,13 +252,17 @@ export declare const actionChangeStrokeWidth: {
|
|
|
242
252
|
clip: boolean;
|
|
243
253
|
};
|
|
244
254
|
editingFrame: string | null;
|
|
245
|
-
elementsToHighlight: import("
|
|
246
|
-
editingTextElement: import("
|
|
247
|
-
editingLinearElement: LinearElementEditor | null;
|
|
255
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
256
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
248
257
|
activeTool: {
|
|
249
258
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
250
259
|
locked: boolean;
|
|
260
|
+
fromSelection: boolean;
|
|
251
261
|
} & import("../types").ActiveTool;
|
|
262
|
+
preferredSelectionTool: {
|
|
263
|
+
type: "selection" | "lasso";
|
|
264
|
+
initialized: boolean;
|
|
265
|
+
};
|
|
252
266
|
penMode: boolean;
|
|
253
267
|
penDetected: boolean;
|
|
254
268
|
exportBackground: boolean;
|
|
@@ -257,8 +271,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
257
271
|
exportScale: number;
|
|
258
272
|
currentItemStrokeColor: string;
|
|
259
273
|
currentItemBackgroundColor: string;
|
|
260
|
-
currentItemFillStyle: import("
|
|
261
|
-
currentItemStrokeStyle: import("
|
|
274
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
275
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
262
276
|
currentItemRoughness: number;
|
|
263
277
|
currentItemOpacity: number;
|
|
264
278
|
currentItemFontFamily: number;
|
|
@@ -267,7 +281,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
267
281
|
currentItemStartArrowhead: Arrowhead | null;
|
|
268
282
|
currentItemEndArrowhead: Arrowhead | null;
|
|
269
283
|
currentHoveredFontFamily: number | null;
|
|
270
|
-
currentItemRoundness: import("
|
|
284
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
271
285
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
272
286
|
viewBackgroundColor: string;
|
|
273
287
|
scrollX: number;
|
|
@@ -281,7 +295,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
281
295
|
value: import("../types").NormalizedZoomValue;
|
|
282
296
|
}>;
|
|
283
297
|
openMenu: "canvas" | "shape" | null;
|
|
284
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
298
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
285
299
|
openSidebar: {
|
|
286
300
|
name: string;
|
|
287
301
|
tab?: string | undefined;
|
|
@@ -290,7 +304,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
290
304
|
name: "imageExport" | "help" | "jsonExport";
|
|
291
305
|
} | {
|
|
292
306
|
name: "ttd";
|
|
293
|
-
tab: "text-to-diagram"
|
|
307
|
+
tab: "mermaid" | "text-to-diagram";
|
|
294
308
|
} | {
|
|
295
309
|
name: "commandPalette";
|
|
296
310
|
} | {
|
|
@@ -298,7 +312,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
298
312
|
sourceElementId: string;
|
|
299
313
|
} | null;
|
|
300
314
|
defaultSidebarDockedPreference: boolean;
|
|
301
|
-
lastPointerDownWith: import("
|
|
315
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
302
316
|
selectedElementIds: Readonly<{
|
|
303
317
|
[id: string]: true;
|
|
304
318
|
}>;
|
|
@@ -316,7 +330,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
316
330
|
duration?: number | undefined;
|
|
317
331
|
} | null;
|
|
318
332
|
zenModeEnabled: boolean;
|
|
319
|
-
theme: import("
|
|
333
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
320
334
|
gridSize: number;
|
|
321
335
|
gridStep: number;
|
|
322
336
|
gridModeEnabled: boolean;
|
|
@@ -337,7 +351,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
337
351
|
[id: string]: true;
|
|
338
352
|
}> | undefined;
|
|
339
353
|
username?: string | null | undefined;
|
|
340
|
-
userState?: import("
|
|
354
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
341
355
|
color?: {
|
|
342
356
|
background: string;
|
|
343
357
|
stroke: string;
|
|
@@ -354,7 +368,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
354
368
|
open: boolean;
|
|
355
369
|
panels: number;
|
|
356
370
|
};
|
|
357
|
-
currentChartType: import("
|
|
371
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
358
372
|
pasteDialog: {
|
|
359
373
|
shown: false;
|
|
360
374
|
data: null;
|
|
@@ -362,8 +376,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
362
376
|
shown: true;
|
|
363
377
|
data: import("../charts").Spreadsheet;
|
|
364
378
|
};
|
|
365
|
-
|
|
366
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
379
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
367
380
|
selectedLinearElement: LinearElementEditor | null;
|
|
368
381
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
369
382
|
originSnapOffset: {
|
|
@@ -375,20 +388,19 @@ export declare const actionChangeStrokeWidth: {
|
|
|
375
388
|
followedBy: Set<import("../types").SocketId>;
|
|
376
389
|
isCropping: boolean;
|
|
377
390
|
croppingElementId: string | null;
|
|
378
|
-
searchMatches:
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}[];
|
|
391
|
+
searchMatches: Readonly<{
|
|
392
|
+
focusedId: string | null;
|
|
393
|
+
matches: readonly import("../types").SearchMatch[];
|
|
394
|
+
}> | null;
|
|
395
|
+
activeLockedId: string | null;
|
|
396
|
+
lockedMultiSelections: {
|
|
397
|
+
[groupId: string]: true;
|
|
398
|
+
};
|
|
399
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
388
400
|
};
|
|
389
401
|
captureUpdate: "IMMEDIATELY";
|
|
390
402
|
};
|
|
391
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
403
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
392
404
|
} & {
|
|
393
405
|
keyTest?: undefined;
|
|
394
406
|
};
|
|
@@ -396,7 +408,7 @@ export declare const actionChangeSloppiness: {
|
|
|
396
408
|
name: "changeSloppiness";
|
|
397
409
|
label: string;
|
|
398
410
|
trackEvent: false;
|
|
399
|
-
perform: (elements: readonly import("
|
|
411
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
400
412
|
elements: ExcalidrawElement[];
|
|
401
413
|
appState: {
|
|
402
414
|
currentItemRoughness: any;
|
|
@@ -409,17 +421,17 @@ export declare const actionChangeSloppiness: {
|
|
|
409
421
|
isLoading: boolean;
|
|
410
422
|
errorMessage: import("react").ReactNode;
|
|
411
423
|
activeEmbeddable: {
|
|
412
|
-
element: import("
|
|
413
|
-
state: "
|
|
424
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
425
|
+
state: "active" | "hover";
|
|
414
426
|
} | null;
|
|
415
|
-
newElement: import("
|
|
416
|
-
resizingElement: import("
|
|
417
|
-
multiElement: import("
|
|
418
|
-
selectionElement: import("
|
|
427
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
428
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
429
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
430
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
419
431
|
isBindingEnabled: boolean;
|
|
420
|
-
startBoundElement: import("
|
|
421
|
-
suggestedBindings: import("
|
|
422
|
-
frameToHighlight: import("
|
|
432
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
433
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
434
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
423
435
|
frameRendering: {
|
|
424
436
|
enabled: boolean;
|
|
425
437
|
name: boolean;
|
|
@@ -427,13 +439,17 @@ export declare const actionChangeSloppiness: {
|
|
|
427
439
|
clip: boolean;
|
|
428
440
|
};
|
|
429
441
|
editingFrame: string | null;
|
|
430
|
-
elementsToHighlight: import("
|
|
431
|
-
editingTextElement: import("
|
|
432
|
-
editingLinearElement: LinearElementEditor | null;
|
|
442
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
443
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
433
444
|
activeTool: {
|
|
434
445
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
435
446
|
locked: boolean;
|
|
447
|
+
fromSelection: boolean;
|
|
436
448
|
} & import("../types").ActiveTool;
|
|
449
|
+
preferredSelectionTool: {
|
|
450
|
+
type: "selection" | "lasso";
|
|
451
|
+
initialized: boolean;
|
|
452
|
+
};
|
|
437
453
|
penMode: boolean;
|
|
438
454
|
penDetected: boolean;
|
|
439
455
|
exportBackground: boolean;
|
|
@@ -442,9 +458,9 @@ export declare const actionChangeSloppiness: {
|
|
|
442
458
|
exportScale: number;
|
|
443
459
|
currentItemStrokeColor: string;
|
|
444
460
|
currentItemBackgroundColor: string;
|
|
445
|
-
currentItemFillStyle: import("
|
|
461
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
446
462
|
currentItemStrokeWidth: number;
|
|
447
|
-
currentItemStrokeStyle: import("
|
|
463
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
448
464
|
currentItemOpacity: number;
|
|
449
465
|
currentItemFontFamily: number;
|
|
450
466
|
currentItemFontSize: number;
|
|
@@ -452,7 +468,7 @@ export declare const actionChangeSloppiness: {
|
|
|
452
468
|
currentItemStartArrowhead: Arrowhead | null;
|
|
453
469
|
currentItemEndArrowhead: Arrowhead | null;
|
|
454
470
|
currentHoveredFontFamily: number | null;
|
|
455
|
-
currentItemRoundness: import("
|
|
471
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
456
472
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
457
473
|
viewBackgroundColor: string;
|
|
458
474
|
scrollX: number;
|
|
@@ -466,7 +482,7 @@ export declare const actionChangeSloppiness: {
|
|
|
466
482
|
value: import("../types").NormalizedZoomValue;
|
|
467
483
|
}>;
|
|
468
484
|
openMenu: "canvas" | "shape" | null;
|
|
469
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
485
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
470
486
|
openSidebar: {
|
|
471
487
|
name: string;
|
|
472
488
|
tab?: string | undefined;
|
|
@@ -475,7 +491,7 @@ export declare const actionChangeSloppiness: {
|
|
|
475
491
|
name: "imageExport" | "help" | "jsonExport";
|
|
476
492
|
} | {
|
|
477
493
|
name: "ttd";
|
|
478
|
-
tab: "text-to-diagram"
|
|
494
|
+
tab: "mermaid" | "text-to-diagram";
|
|
479
495
|
} | {
|
|
480
496
|
name: "commandPalette";
|
|
481
497
|
} | {
|
|
@@ -483,7 +499,7 @@ export declare const actionChangeSloppiness: {
|
|
|
483
499
|
sourceElementId: string;
|
|
484
500
|
} | null;
|
|
485
501
|
defaultSidebarDockedPreference: boolean;
|
|
486
|
-
lastPointerDownWith: import("
|
|
502
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
487
503
|
selectedElementIds: Readonly<{
|
|
488
504
|
[id: string]: true;
|
|
489
505
|
}>;
|
|
@@ -501,7 +517,7 @@ export declare const actionChangeSloppiness: {
|
|
|
501
517
|
duration?: number | undefined;
|
|
502
518
|
} | null;
|
|
503
519
|
zenModeEnabled: boolean;
|
|
504
|
-
theme: import("
|
|
520
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
505
521
|
gridSize: number;
|
|
506
522
|
gridStep: number;
|
|
507
523
|
gridModeEnabled: boolean;
|
|
@@ -522,7 +538,7 @@ export declare const actionChangeSloppiness: {
|
|
|
522
538
|
[id: string]: true;
|
|
523
539
|
}> | undefined;
|
|
524
540
|
username?: string | null | undefined;
|
|
525
|
-
userState?: import("
|
|
541
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
526
542
|
color?: {
|
|
527
543
|
background: string;
|
|
528
544
|
stroke: string;
|
|
@@ -539,7 +555,7 @@ export declare const actionChangeSloppiness: {
|
|
|
539
555
|
open: boolean;
|
|
540
556
|
panels: number;
|
|
541
557
|
};
|
|
542
|
-
currentChartType: import("
|
|
558
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
543
559
|
pasteDialog: {
|
|
544
560
|
shown: false;
|
|
545
561
|
data: null;
|
|
@@ -547,8 +563,7 @@ export declare const actionChangeSloppiness: {
|
|
|
547
563
|
shown: true;
|
|
548
564
|
data: import("../charts").Spreadsheet;
|
|
549
565
|
};
|
|
550
|
-
|
|
551
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
566
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
552
567
|
selectedLinearElement: LinearElementEditor | null;
|
|
553
568
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
554
569
|
originSnapOffset: {
|
|
@@ -560,20 +575,19 @@ export declare const actionChangeSloppiness: {
|
|
|
560
575
|
followedBy: Set<import("../types").SocketId>;
|
|
561
576
|
isCropping: boolean;
|
|
562
577
|
croppingElementId: string | null;
|
|
563
|
-
searchMatches:
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}[];
|
|
578
|
+
searchMatches: Readonly<{
|
|
579
|
+
focusedId: string | null;
|
|
580
|
+
matches: readonly import("../types").SearchMatch[];
|
|
581
|
+
}> | null;
|
|
582
|
+
activeLockedId: string | null;
|
|
583
|
+
lockedMultiSelections: {
|
|
584
|
+
[groupId: string]: true;
|
|
585
|
+
};
|
|
586
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
573
587
|
};
|
|
574
588
|
captureUpdate: "IMMEDIATELY";
|
|
575
589
|
};
|
|
576
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
590
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
577
591
|
} & {
|
|
578
592
|
keyTest?: undefined;
|
|
579
593
|
};
|
|
@@ -581,7 +595,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
581
595
|
name: "changeStrokeStyle";
|
|
582
596
|
label: string;
|
|
583
597
|
trackEvent: false;
|
|
584
|
-
perform: (elements: readonly import("
|
|
598
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
585
599
|
elements: ExcalidrawElement[];
|
|
586
600
|
appState: {
|
|
587
601
|
currentItemStrokeStyle: any;
|
|
@@ -594,17 +608,17 @@ export declare const actionChangeStrokeStyle: {
|
|
|
594
608
|
isLoading: boolean;
|
|
595
609
|
errorMessage: import("react").ReactNode;
|
|
596
610
|
activeEmbeddable: {
|
|
597
|
-
element: import("
|
|
598
|
-
state: "
|
|
611
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
612
|
+
state: "active" | "hover";
|
|
599
613
|
} | null;
|
|
600
|
-
newElement: import("
|
|
601
|
-
resizingElement: import("
|
|
602
|
-
multiElement: import("
|
|
603
|
-
selectionElement: import("
|
|
614
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
615
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
616
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
617
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
604
618
|
isBindingEnabled: boolean;
|
|
605
|
-
startBoundElement: import("
|
|
606
|
-
suggestedBindings: import("
|
|
607
|
-
frameToHighlight: import("
|
|
619
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
620
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
621
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
608
622
|
frameRendering: {
|
|
609
623
|
enabled: boolean;
|
|
610
624
|
name: boolean;
|
|
@@ -612,13 +626,17 @@ export declare const actionChangeStrokeStyle: {
|
|
|
612
626
|
clip: boolean;
|
|
613
627
|
};
|
|
614
628
|
editingFrame: string | null;
|
|
615
|
-
elementsToHighlight: import("
|
|
616
|
-
editingTextElement: import("
|
|
617
|
-
editingLinearElement: LinearElementEditor | null;
|
|
629
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
630
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
618
631
|
activeTool: {
|
|
619
632
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
620
633
|
locked: boolean;
|
|
634
|
+
fromSelection: boolean;
|
|
621
635
|
} & import("../types").ActiveTool;
|
|
636
|
+
preferredSelectionTool: {
|
|
637
|
+
type: "selection" | "lasso";
|
|
638
|
+
initialized: boolean;
|
|
639
|
+
};
|
|
622
640
|
penMode: boolean;
|
|
623
641
|
penDetected: boolean;
|
|
624
642
|
exportBackground: boolean;
|
|
@@ -627,7 +645,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
627
645
|
exportScale: number;
|
|
628
646
|
currentItemStrokeColor: string;
|
|
629
647
|
currentItemBackgroundColor: string;
|
|
630
|
-
currentItemFillStyle: import("
|
|
648
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
631
649
|
currentItemStrokeWidth: number;
|
|
632
650
|
currentItemRoughness: number;
|
|
633
651
|
currentItemOpacity: number;
|
|
@@ -637,7 +655,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
637
655
|
currentItemStartArrowhead: Arrowhead | null;
|
|
638
656
|
currentItemEndArrowhead: Arrowhead | null;
|
|
639
657
|
currentHoveredFontFamily: number | null;
|
|
640
|
-
currentItemRoundness: import("
|
|
658
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
641
659
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
642
660
|
viewBackgroundColor: string;
|
|
643
661
|
scrollX: number;
|
|
@@ -651,7 +669,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
651
669
|
value: import("../types").NormalizedZoomValue;
|
|
652
670
|
}>;
|
|
653
671
|
openMenu: "canvas" | "shape" | null;
|
|
654
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
672
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
655
673
|
openSidebar: {
|
|
656
674
|
name: string;
|
|
657
675
|
tab?: string | undefined;
|
|
@@ -660,7 +678,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
660
678
|
name: "imageExport" | "help" | "jsonExport";
|
|
661
679
|
} | {
|
|
662
680
|
name: "ttd";
|
|
663
|
-
tab: "text-to-diagram"
|
|
681
|
+
tab: "mermaid" | "text-to-diagram";
|
|
664
682
|
} | {
|
|
665
683
|
name: "commandPalette";
|
|
666
684
|
} | {
|
|
@@ -668,7 +686,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
668
686
|
sourceElementId: string;
|
|
669
687
|
} | null;
|
|
670
688
|
defaultSidebarDockedPreference: boolean;
|
|
671
|
-
lastPointerDownWith: import("
|
|
689
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
672
690
|
selectedElementIds: Readonly<{
|
|
673
691
|
[id: string]: true;
|
|
674
692
|
}>;
|
|
@@ -686,7 +704,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
686
704
|
duration?: number | undefined;
|
|
687
705
|
} | null;
|
|
688
706
|
zenModeEnabled: boolean;
|
|
689
|
-
theme: import("
|
|
707
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
690
708
|
gridSize: number;
|
|
691
709
|
gridStep: number;
|
|
692
710
|
gridModeEnabled: boolean;
|
|
@@ -707,7 +725,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
707
725
|
[id: string]: true;
|
|
708
726
|
}> | undefined;
|
|
709
727
|
username?: string | null | undefined;
|
|
710
|
-
userState?: import("
|
|
728
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
711
729
|
color?: {
|
|
712
730
|
background: string;
|
|
713
731
|
stroke: string;
|
|
@@ -724,7 +742,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
724
742
|
open: boolean;
|
|
725
743
|
panels: number;
|
|
726
744
|
};
|
|
727
|
-
currentChartType: import("
|
|
745
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
728
746
|
pasteDialog: {
|
|
729
747
|
shown: false;
|
|
730
748
|
data: null;
|
|
@@ -732,8 +750,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
732
750
|
shown: true;
|
|
733
751
|
data: import("../charts").Spreadsheet;
|
|
734
752
|
};
|
|
735
|
-
|
|
736
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
753
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
737
754
|
selectedLinearElement: LinearElementEditor | null;
|
|
738
755
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
739
756
|
originSnapOffset: {
|
|
@@ -745,20 +762,19 @@ export declare const actionChangeStrokeStyle: {
|
|
|
745
762
|
followedBy: Set<import("../types").SocketId>;
|
|
746
763
|
isCropping: boolean;
|
|
747
764
|
croppingElementId: string | null;
|
|
748
|
-
searchMatches:
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
}[];
|
|
765
|
+
searchMatches: Readonly<{
|
|
766
|
+
focusedId: string | null;
|
|
767
|
+
matches: readonly import("../types").SearchMatch[];
|
|
768
|
+
}> | null;
|
|
769
|
+
activeLockedId: string | null;
|
|
770
|
+
lockedMultiSelections: {
|
|
771
|
+
[groupId: string]: true;
|
|
772
|
+
};
|
|
773
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
758
774
|
};
|
|
759
775
|
captureUpdate: "IMMEDIATELY";
|
|
760
776
|
};
|
|
761
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
777
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
762
778
|
} & {
|
|
763
779
|
keyTest?: undefined;
|
|
764
780
|
};
|
|
@@ -766,7 +782,7 @@ export declare const actionChangeOpacity: {
|
|
|
766
782
|
name: "changeOpacity";
|
|
767
783
|
label: string;
|
|
768
784
|
trackEvent: false;
|
|
769
|
-
perform: (elements: readonly import("
|
|
785
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
770
786
|
elements: ExcalidrawElement[];
|
|
771
787
|
appState: {
|
|
772
788
|
currentItemOpacity: any;
|
|
@@ -779,17 +795,17 @@ export declare const actionChangeOpacity: {
|
|
|
779
795
|
isLoading: boolean;
|
|
780
796
|
errorMessage: import("react").ReactNode;
|
|
781
797
|
activeEmbeddable: {
|
|
782
|
-
element: import("
|
|
783
|
-
state: "
|
|
798
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
799
|
+
state: "active" | "hover";
|
|
784
800
|
} | null;
|
|
785
|
-
newElement: import("
|
|
786
|
-
resizingElement: import("
|
|
787
|
-
multiElement: import("
|
|
788
|
-
selectionElement: import("
|
|
801
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
802
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
803
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
804
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
789
805
|
isBindingEnabled: boolean;
|
|
790
|
-
startBoundElement: import("
|
|
791
|
-
suggestedBindings: import("
|
|
792
|
-
frameToHighlight: import("
|
|
806
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
807
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
808
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
793
809
|
frameRendering: {
|
|
794
810
|
enabled: boolean;
|
|
795
811
|
name: boolean;
|
|
@@ -797,13 +813,17 @@ export declare const actionChangeOpacity: {
|
|
|
797
813
|
clip: boolean;
|
|
798
814
|
};
|
|
799
815
|
editingFrame: string | null;
|
|
800
|
-
elementsToHighlight: import("
|
|
801
|
-
editingTextElement: import("
|
|
802
|
-
editingLinearElement: LinearElementEditor | null;
|
|
816
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
817
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
803
818
|
activeTool: {
|
|
804
819
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
805
820
|
locked: boolean;
|
|
821
|
+
fromSelection: boolean;
|
|
806
822
|
} & import("../types").ActiveTool;
|
|
823
|
+
preferredSelectionTool: {
|
|
824
|
+
type: "selection" | "lasso";
|
|
825
|
+
initialized: boolean;
|
|
826
|
+
};
|
|
807
827
|
penMode: boolean;
|
|
808
828
|
penDetected: boolean;
|
|
809
829
|
exportBackground: boolean;
|
|
@@ -812,9 +832,9 @@ export declare const actionChangeOpacity: {
|
|
|
812
832
|
exportScale: number;
|
|
813
833
|
currentItemStrokeColor: string;
|
|
814
834
|
currentItemBackgroundColor: string;
|
|
815
|
-
currentItemFillStyle: import("
|
|
835
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
816
836
|
currentItemStrokeWidth: number;
|
|
817
|
-
currentItemStrokeStyle: import("
|
|
837
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
818
838
|
currentItemRoughness: number;
|
|
819
839
|
currentItemFontFamily: number;
|
|
820
840
|
currentItemFontSize: number;
|
|
@@ -822,7 +842,7 @@ export declare const actionChangeOpacity: {
|
|
|
822
842
|
currentItemStartArrowhead: Arrowhead | null;
|
|
823
843
|
currentItemEndArrowhead: Arrowhead | null;
|
|
824
844
|
currentHoveredFontFamily: number | null;
|
|
825
|
-
currentItemRoundness: import("
|
|
845
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
826
846
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
827
847
|
viewBackgroundColor: string;
|
|
828
848
|
scrollX: number;
|
|
@@ -836,7 +856,7 @@ export declare const actionChangeOpacity: {
|
|
|
836
856
|
value: import("../types").NormalizedZoomValue;
|
|
837
857
|
}>;
|
|
838
858
|
openMenu: "canvas" | "shape" | null;
|
|
839
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
859
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
840
860
|
openSidebar: {
|
|
841
861
|
name: string;
|
|
842
862
|
tab?: string | undefined;
|
|
@@ -845,7 +865,7 @@ export declare const actionChangeOpacity: {
|
|
|
845
865
|
name: "imageExport" | "help" | "jsonExport";
|
|
846
866
|
} | {
|
|
847
867
|
name: "ttd";
|
|
848
|
-
tab: "text-to-diagram"
|
|
868
|
+
tab: "mermaid" | "text-to-diagram";
|
|
849
869
|
} | {
|
|
850
870
|
name: "commandPalette";
|
|
851
871
|
} | {
|
|
@@ -853,7 +873,7 @@ export declare const actionChangeOpacity: {
|
|
|
853
873
|
sourceElementId: string;
|
|
854
874
|
} | null;
|
|
855
875
|
defaultSidebarDockedPreference: boolean;
|
|
856
|
-
lastPointerDownWith: import("
|
|
876
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
857
877
|
selectedElementIds: Readonly<{
|
|
858
878
|
[id: string]: true;
|
|
859
879
|
}>;
|
|
@@ -871,7 +891,7 @@ export declare const actionChangeOpacity: {
|
|
|
871
891
|
duration?: number | undefined;
|
|
872
892
|
} | null;
|
|
873
893
|
zenModeEnabled: boolean;
|
|
874
|
-
theme: import("
|
|
894
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
875
895
|
gridSize: number;
|
|
876
896
|
gridStep: number;
|
|
877
897
|
gridModeEnabled: boolean;
|
|
@@ -892,7 +912,7 @@ export declare const actionChangeOpacity: {
|
|
|
892
912
|
[id: string]: true;
|
|
893
913
|
}> | undefined;
|
|
894
914
|
username?: string | null | undefined;
|
|
895
|
-
userState?: import("
|
|
915
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
896
916
|
color?: {
|
|
897
917
|
background: string;
|
|
898
918
|
stroke: string;
|
|
@@ -909,7 +929,7 @@ export declare const actionChangeOpacity: {
|
|
|
909
929
|
open: boolean;
|
|
910
930
|
panels: number;
|
|
911
931
|
};
|
|
912
|
-
currentChartType: import("
|
|
932
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
913
933
|
pasteDialog: {
|
|
914
934
|
shown: false;
|
|
915
935
|
data: null;
|
|
@@ -917,8 +937,7 @@ export declare const actionChangeOpacity: {
|
|
|
917
937
|
shown: true;
|
|
918
938
|
data: import("../charts").Spreadsheet;
|
|
919
939
|
};
|
|
920
|
-
|
|
921
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
940
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
922
941
|
selectedLinearElement: LinearElementEditor | null;
|
|
923
942
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
924
943
|
originSnapOffset: {
|
|
@@ -930,20 +949,19 @@ export declare const actionChangeOpacity: {
|
|
|
930
949
|
followedBy: Set<import("../types").SocketId>;
|
|
931
950
|
isCropping: boolean;
|
|
932
951
|
croppingElementId: string | null;
|
|
933
|
-
searchMatches:
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}[];
|
|
952
|
+
searchMatches: Readonly<{
|
|
953
|
+
focusedId: string | null;
|
|
954
|
+
matches: readonly import("../types").SearchMatch[];
|
|
955
|
+
}> | null;
|
|
956
|
+
activeLockedId: string | null;
|
|
957
|
+
lockedMultiSelections: {
|
|
958
|
+
[groupId: string]: true;
|
|
959
|
+
};
|
|
960
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
943
961
|
};
|
|
944
962
|
captureUpdate: "IMMEDIATELY";
|
|
945
963
|
};
|
|
946
|
-
PanelComponent: ({
|
|
964
|
+
PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
947
965
|
} & {
|
|
948
966
|
keyTest?: undefined;
|
|
949
967
|
};
|
|
@@ -951,7 +969,7 @@ export declare const actionChangeFontSize: {
|
|
|
951
969
|
name: "changeFontSize";
|
|
952
970
|
label: string;
|
|
953
971
|
trackEvent: false;
|
|
954
|
-
perform: (elements: readonly import("
|
|
972
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
955
973
|
elements: ExcalidrawElement[];
|
|
956
974
|
appState: {
|
|
957
975
|
currentItemFontSize: number;
|
|
@@ -964,17 +982,17 @@ export declare const actionChangeFontSize: {
|
|
|
964
982
|
isLoading: boolean;
|
|
965
983
|
errorMessage: import("react").ReactNode;
|
|
966
984
|
activeEmbeddable: {
|
|
967
|
-
element: import("
|
|
968
|
-
state: "
|
|
985
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
986
|
+
state: "active" | "hover";
|
|
969
987
|
} | null;
|
|
970
|
-
newElement: import("
|
|
971
|
-
resizingElement: import("
|
|
972
|
-
multiElement: import("
|
|
973
|
-
selectionElement: import("
|
|
988
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
989
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
990
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
991
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
974
992
|
isBindingEnabled: boolean;
|
|
975
|
-
startBoundElement: import("
|
|
976
|
-
suggestedBindings: import("
|
|
977
|
-
frameToHighlight: import("
|
|
993
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
994
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
995
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
978
996
|
frameRendering: {
|
|
979
997
|
enabled: boolean;
|
|
980
998
|
name: boolean;
|
|
@@ -982,13 +1000,17 @@ export declare const actionChangeFontSize: {
|
|
|
982
1000
|
clip: boolean;
|
|
983
1001
|
};
|
|
984
1002
|
editingFrame: string | null;
|
|
985
|
-
elementsToHighlight: import("
|
|
986
|
-
editingTextElement: import("
|
|
987
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1003
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1004
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
988
1005
|
activeTool: {
|
|
989
1006
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
990
1007
|
locked: boolean;
|
|
1008
|
+
fromSelection: boolean;
|
|
991
1009
|
} & import("../types").ActiveTool;
|
|
1010
|
+
preferredSelectionTool: {
|
|
1011
|
+
type: "selection" | "lasso";
|
|
1012
|
+
initialized: boolean;
|
|
1013
|
+
};
|
|
992
1014
|
penMode: boolean;
|
|
993
1015
|
penDetected: boolean;
|
|
994
1016
|
exportBackground: boolean;
|
|
@@ -997,9 +1019,9 @@ export declare const actionChangeFontSize: {
|
|
|
997
1019
|
exportScale: number;
|
|
998
1020
|
currentItemStrokeColor: string;
|
|
999
1021
|
currentItemBackgroundColor: string;
|
|
1000
|
-
currentItemFillStyle: import("
|
|
1022
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1001
1023
|
currentItemStrokeWidth: number;
|
|
1002
|
-
currentItemStrokeStyle: import("
|
|
1024
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1003
1025
|
currentItemRoughness: number;
|
|
1004
1026
|
currentItemOpacity: number;
|
|
1005
1027
|
currentItemFontFamily: number;
|
|
@@ -1007,7 +1029,7 @@ export declare const actionChangeFontSize: {
|
|
|
1007
1029
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1008
1030
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1009
1031
|
currentHoveredFontFamily: number | null;
|
|
1010
|
-
currentItemRoundness: import("
|
|
1032
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1011
1033
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1012
1034
|
viewBackgroundColor: string;
|
|
1013
1035
|
scrollX: number;
|
|
@@ -1021,7 +1043,7 @@ export declare const actionChangeFontSize: {
|
|
|
1021
1043
|
value: import("../types").NormalizedZoomValue;
|
|
1022
1044
|
}>;
|
|
1023
1045
|
openMenu: "canvas" | "shape" | null;
|
|
1024
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1046
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1025
1047
|
openSidebar: {
|
|
1026
1048
|
name: string;
|
|
1027
1049
|
tab?: string | undefined;
|
|
@@ -1030,7 +1052,7 @@ export declare const actionChangeFontSize: {
|
|
|
1030
1052
|
name: "imageExport" | "help" | "jsonExport";
|
|
1031
1053
|
} | {
|
|
1032
1054
|
name: "ttd";
|
|
1033
|
-
tab: "text-to-diagram"
|
|
1055
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1034
1056
|
} | {
|
|
1035
1057
|
name: "commandPalette";
|
|
1036
1058
|
} | {
|
|
@@ -1038,7 +1060,7 @@ export declare const actionChangeFontSize: {
|
|
|
1038
1060
|
sourceElementId: string;
|
|
1039
1061
|
} | null;
|
|
1040
1062
|
defaultSidebarDockedPreference: boolean;
|
|
1041
|
-
lastPointerDownWith: import("
|
|
1063
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1042
1064
|
selectedElementIds: Readonly<{
|
|
1043
1065
|
[id: string]: true;
|
|
1044
1066
|
}>;
|
|
@@ -1056,7 +1078,7 @@ export declare const actionChangeFontSize: {
|
|
|
1056
1078
|
duration?: number | undefined;
|
|
1057
1079
|
} | null;
|
|
1058
1080
|
zenModeEnabled: boolean;
|
|
1059
|
-
theme: import("
|
|
1081
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1060
1082
|
gridSize: number;
|
|
1061
1083
|
gridStep: number;
|
|
1062
1084
|
gridModeEnabled: boolean;
|
|
@@ -1077,7 +1099,7 @@ export declare const actionChangeFontSize: {
|
|
|
1077
1099
|
[id: string]: true;
|
|
1078
1100
|
}> | undefined;
|
|
1079
1101
|
username?: string | null | undefined;
|
|
1080
|
-
userState?: import("
|
|
1102
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1081
1103
|
color?: {
|
|
1082
1104
|
background: string;
|
|
1083
1105
|
stroke: string;
|
|
@@ -1094,7 +1116,7 @@ export declare const actionChangeFontSize: {
|
|
|
1094
1116
|
open: boolean;
|
|
1095
1117
|
panels: number;
|
|
1096
1118
|
};
|
|
1097
|
-
currentChartType: import("
|
|
1119
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1098
1120
|
pasteDialog: {
|
|
1099
1121
|
shown: false;
|
|
1100
1122
|
data: null;
|
|
@@ -1102,8 +1124,7 @@ export declare const actionChangeFontSize: {
|
|
|
1102
1124
|
shown: true;
|
|
1103
1125
|
data: import("../charts").Spreadsheet;
|
|
1104
1126
|
};
|
|
1105
|
-
|
|
1106
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1127
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1107
1128
|
selectedLinearElement: LinearElementEditor | null;
|
|
1108
1129
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1109
1130
|
originSnapOffset: {
|
|
@@ -1115,20 +1136,19 @@ export declare const actionChangeFontSize: {
|
|
|
1115
1136
|
followedBy: Set<import("../types").SocketId>;
|
|
1116
1137
|
isCropping: boolean;
|
|
1117
1138
|
croppingElementId: string | null;
|
|
1118
|
-
searchMatches:
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}[];
|
|
1139
|
+
searchMatches: Readonly<{
|
|
1140
|
+
focusedId: string | null;
|
|
1141
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1142
|
+
}> | null;
|
|
1143
|
+
activeLockedId: string | null;
|
|
1144
|
+
lockedMultiSelections: {
|
|
1145
|
+
[groupId: string]: true;
|
|
1146
|
+
};
|
|
1147
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1128
1148
|
};
|
|
1129
1149
|
captureUpdate: "IMMEDIATELY";
|
|
1130
1150
|
};
|
|
1131
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1151
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1132
1152
|
} & {
|
|
1133
1153
|
keyTest?: undefined;
|
|
1134
1154
|
};
|
|
@@ -1137,7 +1157,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1137
1157
|
label: string;
|
|
1138
1158
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1139
1159
|
trackEvent: false;
|
|
1140
|
-
perform: (elements: readonly import("
|
|
1160
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1141
1161
|
elements: ExcalidrawElement[];
|
|
1142
1162
|
appState: {
|
|
1143
1163
|
currentItemFontSize: number;
|
|
@@ -1150,17 +1170,17 @@ export declare const actionDecreaseFontSize: {
|
|
|
1150
1170
|
isLoading: boolean;
|
|
1151
1171
|
errorMessage: import("react").ReactNode;
|
|
1152
1172
|
activeEmbeddable: {
|
|
1153
|
-
element: import("
|
|
1154
|
-
state: "
|
|
1173
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1174
|
+
state: "active" | "hover";
|
|
1155
1175
|
} | null;
|
|
1156
|
-
newElement: import("
|
|
1157
|
-
resizingElement: import("
|
|
1158
|
-
multiElement: import("
|
|
1159
|
-
selectionElement: import("
|
|
1176
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1177
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1178
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1179
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1160
1180
|
isBindingEnabled: boolean;
|
|
1161
|
-
startBoundElement: import("
|
|
1162
|
-
suggestedBindings: import("
|
|
1163
|
-
frameToHighlight: import("
|
|
1181
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1182
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1183
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1164
1184
|
frameRendering: {
|
|
1165
1185
|
enabled: boolean;
|
|
1166
1186
|
name: boolean;
|
|
@@ -1168,13 +1188,17 @@ export declare const actionDecreaseFontSize: {
|
|
|
1168
1188
|
clip: boolean;
|
|
1169
1189
|
};
|
|
1170
1190
|
editingFrame: string | null;
|
|
1171
|
-
elementsToHighlight: import("
|
|
1172
|
-
editingTextElement: import("
|
|
1173
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1191
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1192
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1174
1193
|
activeTool: {
|
|
1175
1194
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1176
1195
|
locked: boolean;
|
|
1196
|
+
fromSelection: boolean;
|
|
1177
1197
|
} & import("../types").ActiveTool;
|
|
1198
|
+
preferredSelectionTool: {
|
|
1199
|
+
type: "selection" | "lasso";
|
|
1200
|
+
initialized: boolean;
|
|
1201
|
+
};
|
|
1178
1202
|
penMode: boolean;
|
|
1179
1203
|
penDetected: boolean;
|
|
1180
1204
|
exportBackground: boolean;
|
|
@@ -1183,9 +1207,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1183
1207
|
exportScale: number;
|
|
1184
1208
|
currentItemStrokeColor: string;
|
|
1185
1209
|
currentItemBackgroundColor: string;
|
|
1186
|
-
currentItemFillStyle: import("
|
|
1210
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1187
1211
|
currentItemStrokeWidth: number;
|
|
1188
|
-
currentItemStrokeStyle: import("
|
|
1212
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1189
1213
|
currentItemRoughness: number;
|
|
1190
1214
|
currentItemOpacity: number;
|
|
1191
1215
|
currentItemFontFamily: number;
|
|
@@ -1193,7 +1217,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1193
1217
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1194
1218
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1195
1219
|
currentHoveredFontFamily: number | null;
|
|
1196
|
-
currentItemRoundness: import("
|
|
1220
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1197
1221
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1198
1222
|
viewBackgroundColor: string;
|
|
1199
1223
|
scrollX: number;
|
|
@@ -1207,7 +1231,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1207
1231
|
value: import("../types").NormalizedZoomValue;
|
|
1208
1232
|
}>;
|
|
1209
1233
|
openMenu: "canvas" | "shape" | null;
|
|
1210
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1234
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1211
1235
|
openSidebar: {
|
|
1212
1236
|
name: string;
|
|
1213
1237
|
tab?: string | undefined;
|
|
@@ -1216,7 +1240,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1216
1240
|
name: "imageExport" | "help" | "jsonExport";
|
|
1217
1241
|
} | {
|
|
1218
1242
|
name: "ttd";
|
|
1219
|
-
tab: "text-to-diagram"
|
|
1243
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1220
1244
|
} | {
|
|
1221
1245
|
name: "commandPalette";
|
|
1222
1246
|
} | {
|
|
@@ -1224,7 +1248,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1224
1248
|
sourceElementId: string;
|
|
1225
1249
|
} | null;
|
|
1226
1250
|
defaultSidebarDockedPreference: boolean;
|
|
1227
|
-
lastPointerDownWith: import("
|
|
1251
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1228
1252
|
selectedElementIds: Readonly<{
|
|
1229
1253
|
[id: string]: true;
|
|
1230
1254
|
}>;
|
|
@@ -1242,7 +1266,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1242
1266
|
duration?: number | undefined;
|
|
1243
1267
|
} | null;
|
|
1244
1268
|
zenModeEnabled: boolean;
|
|
1245
|
-
theme: import("
|
|
1269
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1246
1270
|
gridSize: number;
|
|
1247
1271
|
gridStep: number;
|
|
1248
1272
|
gridModeEnabled: boolean;
|
|
@@ -1263,7 +1287,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1263
1287
|
[id: string]: true;
|
|
1264
1288
|
}> | undefined;
|
|
1265
1289
|
username?: string | null | undefined;
|
|
1266
|
-
userState?: import("
|
|
1290
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1267
1291
|
color?: {
|
|
1268
1292
|
background: string;
|
|
1269
1293
|
stroke: string;
|
|
@@ -1280,7 +1304,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1280
1304
|
open: boolean;
|
|
1281
1305
|
panels: number;
|
|
1282
1306
|
};
|
|
1283
|
-
currentChartType: import("
|
|
1307
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1284
1308
|
pasteDialog: {
|
|
1285
1309
|
shown: false;
|
|
1286
1310
|
data: null;
|
|
@@ -1288,8 +1312,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1288
1312
|
shown: true;
|
|
1289
1313
|
data: import("../charts").Spreadsheet;
|
|
1290
1314
|
};
|
|
1291
|
-
|
|
1292
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1315
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1293
1316
|
selectedLinearElement: LinearElementEditor | null;
|
|
1294
1317
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1295
1318
|
originSnapOffset: {
|
|
@@ -1301,16 +1324,15 @@ export declare const actionDecreaseFontSize: {
|
|
|
1301
1324
|
followedBy: Set<import("../types").SocketId>;
|
|
1302
1325
|
isCropping: boolean;
|
|
1303
1326
|
croppingElementId: string | null;
|
|
1304
|
-
searchMatches:
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}[];
|
|
1327
|
+
searchMatches: Readonly<{
|
|
1328
|
+
focusedId: string | null;
|
|
1329
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1330
|
+
}> | null;
|
|
1331
|
+
activeLockedId: string | null;
|
|
1332
|
+
lockedMultiSelections: {
|
|
1333
|
+
[groupId: string]: true;
|
|
1334
|
+
};
|
|
1335
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1314
1336
|
};
|
|
1315
1337
|
captureUpdate: "IMMEDIATELY";
|
|
1316
1338
|
};
|
|
@@ -1323,7 +1345,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1323
1345
|
label: string;
|
|
1324
1346
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1325
1347
|
trackEvent: false;
|
|
1326
|
-
perform: (elements: readonly import("
|
|
1348
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1327
1349
|
elements: ExcalidrawElement[];
|
|
1328
1350
|
appState: {
|
|
1329
1351
|
currentItemFontSize: number;
|
|
@@ -1336,17 +1358,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1336
1358
|
isLoading: boolean;
|
|
1337
1359
|
errorMessage: import("react").ReactNode;
|
|
1338
1360
|
activeEmbeddable: {
|
|
1339
|
-
element: import("
|
|
1340
|
-
state: "
|
|
1361
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1362
|
+
state: "active" | "hover";
|
|
1341
1363
|
} | null;
|
|
1342
|
-
newElement: import("
|
|
1343
|
-
resizingElement: import("
|
|
1344
|
-
multiElement: import("
|
|
1345
|
-
selectionElement: import("
|
|
1364
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1365
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1366
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1367
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1346
1368
|
isBindingEnabled: boolean;
|
|
1347
|
-
startBoundElement: import("
|
|
1348
|
-
suggestedBindings: import("
|
|
1349
|
-
frameToHighlight: import("
|
|
1369
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1370
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1371
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1350
1372
|
frameRendering: {
|
|
1351
1373
|
enabled: boolean;
|
|
1352
1374
|
name: boolean;
|
|
@@ -1354,13 +1376,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1354
1376
|
clip: boolean;
|
|
1355
1377
|
};
|
|
1356
1378
|
editingFrame: string | null;
|
|
1357
|
-
elementsToHighlight: import("
|
|
1358
|
-
editingTextElement: import("
|
|
1359
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1379
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1380
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1360
1381
|
activeTool: {
|
|
1361
1382
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1362
1383
|
locked: boolean;
|
|
1384
|
+
fromSelection: boolean;
|
|
1363
1385
|
} & import("../types").ActiveTool;
|
|
1386
|
+
preferredSelectionTool: {
|
|
1387
|
+
type: "selection" | "lasso";
|
|
1388
|
+
initialized: boolean;
|
|
1389
|
+
};
|
|
1364
1390
|
penMode: boolean;
|
|
1365
1391
|
penDetected: boolean;
|
|
1366
1392
|
exportBackground: boolean;
|
|
@@ -1369,9 +1395,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1369
1395
|
exportScale: number;
|
|
1370
1396
|
currentItemStrokeColor: string;
|
|
1371
1397
|
currentItemBackgroundColor: string;
|
|
1372
|
-
currentItemFillStyle: import("
|
|
1398
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1373
1399
|
currentItemStrokeWidth: number;
|
|
1374
|
-
currentItemStrokeStyle: import("
|
|
1400
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1375
1401
|
currentItemRoughness: number;
|
|
1376
1402
|
currentItemOpacity: number;
|
|
1377
1403
|
currentItemFontFamily: number;
|
|
@@ -1379,7 +1405,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1379
1405
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1380
1406
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1381
1407
|
currentHoveredFontFamily: number | null;
|
|
1382
|
-
currentItemRoundness: import("
|
|
1408
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1383
1409
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1384
1410
|
viewBackgroundColor: string;
|
|
1385
1411
|
scrollX: number;
|
|
@@ -1393,7 +1419,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1393
1419
|
value: import("../types").NormalizedZoomValue;
|
|
1394
1420
|
}>;
|
|
1395
1421
|
openMenu: "canvas" | "shape" | null;
|
|
1396
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1422
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1397
1423
|
openSidebar: {
|
|
1398
1424
|
name: string;
|
|
1399
1425
|
tab?: string | undefined;
|
|
@@ -1402,7 +1428,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1402
1428
|
name: "imageExport" | "help" | "jsonExport";
|
|
1403
1429
|
} | {
|
|
1404
1430
|
name: "ttd";
|
|
1405
|
-
tab: "text-to-diagram"
|
|
1431
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1406
1432
|
} | {
|
|
1407
1433
|
name: "commandPalette";
|
|
1408
1434
|
} | {
|
|
@@ -1410,7 +1436,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1410
1436
|
sourceElementId: string;
|
|
1411
1437
|
} | null;
|
|
1412
1438
|
defaultSidebarDockedPreference: boolean;
|
|
1413
|
-
lastPointerDownWith: import("
|
|
1439
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1414
1440
|
selectedElementIds: Readonly<{
|
|
1415
1441
|
[id: string]: true;
|
|
1416
1442
|
}>;
|
|
@@ -1428,7 +1454,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1428
1454
|
duration?: number | undefined;
|
|
1429
1455
|
} | null;
|
|
1430
1456
|
zenModeEnabled: boolean;
|
|
1431
|
-
theme: import("
|
|
1457
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1432
1458
|
gridSize: number;
|
|
1433
1459
|
gridStep: number;
|
|
1434
1460
|
gridModeEnabled: boolean;
|
|
@@ -1449,7 +1475,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1449
1475
|
[id: string]: true;
|
|
1450
1476
|
}> | undefined;
|
|
1451
1477
|
username?: string | null | undefined;
|
|
1452
|
-
userState?: import("
|
|
1478
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1453
1479
|
color?: {
|
|
1454
1480
|
background: string;
|
|
1455
1481
|
stroke: string;
|
|
@@ -1466,7 +1492,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1466
1492
|
open: boolean;
|
|
1467
1493
|
panels: number;
|
|
1468
1494
|
};
|
|
1469
|
-
currentChartType: import("
|
|
1495
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1470
1496
|
pasteDialog: {
|
|
1471
1497
|
shown: false;
|
|
1472
1498
|
data: null;
|
|
@@ -1474,8 +1500,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1474
1500
|
shown: true;
|
|
1475
1501
|
data: import("../charts").Spreadsheet;
|
|
1476
1502
|
};
|
|
1477
|
-
|
|
1478
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1503
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1479
1504
|
selectedLinearElement: LinearElementEditor | null;
|
|
1480
1505
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1481
1506
|
originSnapOffset: {
|
|
@@ -1487,16 +1512,15 @@ export declare const actionIncreaseFontSize: {
|
|
|
1487
1512
|
followedBy: Set<import("../types").SocketId>;
|
|
1488
1513
|
isCropping: boolean;
|
|
1489
1514
|
croppingElementId: string | null;
|
|
1490
|
-
searchMatches:
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
}[];
|
|
1515
|
+
searchMatches: Readonly<{
|
|
1516
|
+
focusedId: string | null;
|
|
1517
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1518
|
+
}> | null;
|
|
1519
|
+
activeLockedId: string | null;
|
|
1520
|
+
lockedMultiSelections: {
|
|
1521
|
+
[groupId: string]: true;
|
|
1522
|
+
};
|
|
1523
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1500
1524
|
};
|
|
1501
1525
|
captureUpdate: "IMMEDIATELY";
|
|
1502
1526
|
};
|
|
@@ -1508,11 +1532,11 @@ export declare const actionChangeFontFamily: {
|
|
|
1508
1532
|
name: "changeFontFamily";
|
|
1509
1533
|
label: string;
|
|
1510
1534
|
trackEvent: false;
|
|
1511
|
-
perform: (elements: readonly import("
|
|
1535
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1512
1536
|
appState: {
|
|
1513
1537
|
currentItemFontFamily: number;
|
|
1514
1538
|
currentHoveredFontFamily: number | null;
|
|
1515
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1539
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1516
1540
|
contextMenu: {
|
|
1517
1541
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1518
1542
|
top: number;
|
|
@@ -1522,17 +1546,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1522
1546
|
isLoading: boolean;
|
|
1523
1547
|
errorMessage: import("react").ReactNode;
|
|
1524
1548
|
activeEmbeddable: {
|
|
1525
|
-
element: import("
|
|
1526
|
-
state: "
|
|
1549
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1550
|
+
state: "active" | "hover";
|
|
1527
1551
|
} | null;
|
|
1528
|
-
newElement: import("
|
|
1529
|
-
resizingElement: import("
|
|
1530
|
-
multiElement: import("
|
|
1531
|
-
selectionElement: import("
|
|
1552
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1553
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1554
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1555
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1532
1556
|
isBindingEnabled: boolean;
|
|
1533
|
-
startBoundElement: import("
|
|
1534
|
-
suggestedBindings: import("
|
|
1535
|
-
frameToHighlight: import("
|
|
1557
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1558
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1559
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1536
1560
|
frameRendering: {
|
|
1537
1561
|
enabled: boolean;
|
|
1538
1562
|
name: boolean;
|
|
@@ -1540,13 +1564,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1540
1564
|
clip: boolean;
|
|
1541
1565
|
};
|
|
1542
1566
|
editingFrame: string | null;
|
|
1543
|
-
elementsToHighlight: import("
|
|
1544
|
-
editingTextElement: import("
|
|
1545
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1567
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1568
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1546
1569
|
activeTool: {
|
|
1547
1570
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1548
1571
|
locked: boolean;
|
|
1572
|
+
fromSelection: boolean;
|
|
1549
1573
|
} & import("../types").ActiveTool;
|
|
1574
|
+
preferredSelectionTool: {
|
|
1575
|
+
type: "selection" | "lasso";
|
|
1576
|
+
initialized: boolean;
|
|
1577
|
+
};
|
|
1550
1578
|
penMode: boolean;
|
|
1551
1579
|
penDetected: boolean;
|
|
1552
1580
|
exportBackground: boolean;
|
|
@@ -1555,16 +1583,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1555
1583
|
exportScale: number;
|
|
1556
1584
|
currentItemStrokeColor: string;
|
|
1557
1585
|
currentItemBackgroundColor: string;
|
|
1558
|
-
currentItemFillStyle: import("
|
|
1586
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1559
1587
|
currentItemStrokeWidth: number;
|
|
1560
|
-
currentItemStrokeStyle: import("
|
|
1588
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1561
1589
|
currentItemRoughness: number;
|
|
1562
1590
|
currentItemOpacity: number;
|
|
1563
1591
|
currentItemFontSize: number;
|
|
1564
1592
|
currentItemTextAlign: string;
|
|
1565
1593
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1566
1594
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1567
|
-
currentItemRoundness: import("
|
|
1595
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1568
1596
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1569
1597
|
viewBackgroundColor: string;
|
|
1570
1598
|
scrollX: number;
|
|
@@ -1586,7 +1614,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1586
1614
|
name: "imageExport" | "help" | "jsonExport";
|
|
1587
1615
|
} | {
|
|
1588
1616
|
name: "ttd";
|
|
1589
|
-
tab: "text-to-diagram"
|
|
1617
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1590
1618
|
} | {
|
|
1591
1619
|
name: "commandPalette";
|
|
1592
1620
|
} | {
|
|
@@ -1594,7 +1622,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1594
1622
|
sourceElementId: string;
|
|
1595
1623
|
} | null;
|
|
1596
1624
|
defaultSidebarDockedPreference: boolean;
|
|
1597
|
-
lastPointerDownWith: import("
|
|
1625
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1598
1626
|
selectedElementIds: Readonly<{
|
|
1599
1627
|
[id: string]: true;
|
|
1600
1628
|
}>;
|
|
@@ -1612,7 +1640,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1612
1640
|
duration?: number | undefined;
|
|
1613
1641
|
} | null;
|
|
1614
1642
|
zenModeEnabled: boolean;
|
|
1615
|
-
theme: import("
|
|
1643
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1616
1644
|
gridSize: number;
|
|
1617
1645
|
gridStep: number;
|
|
1618
1646
|
gridModeEnabled: boolean;
|
|
@@ -1633,7 +1661,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1633
1661
|
[id: string]: true;
|
|
1634
1662
|
}> | undefined;
|
|
1635
1663
|
username?: string | null | undefined;
|
|
1636
|
-
userState?: import("
|
|
1664
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1637
1665
|
color?: {
|
|
1638
1666
|
background: string;
|
|
1639
1667
|
stroke: string;
|
|
@@ -1650,7 +1678,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1650
1678
|
open: boolean;
|
|
1651
1679
|
panels: number;
|
|
1652
1680
|
};
|
|
1653
|
-
currentChartType: import("
|
|
1681
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1654
1682
|
pasteDialog: {
|
|
1655
1683
|
shown: false;
|
|
1656
1684
|
data: null;
|
|
@@ -1658,8 +1686,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1658
1686
|
shown: true;
|
|
1659
1687
|
data: import("../charts").Spreadsheet;
|
|
1660
1688
|
};
|
|
1661
|
-
|
|
1662
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1689
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1663
1690
|
selectedLinearElement: LinearElementEditor | null;
|
|
1664
1691
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1665
1692
|
originSnapOffset: {
|
|
@@ -1671,16 +1698,15 @@ export declare const actionChangeFontFamily: {
|
|
|
1671
1698
|
followedBy: Set<import("../types").SocketId>;
|
|
1672
1699
|
isCropping: boolean;
|
|
1673
1700
|
croppingElementId: string | null;
|
|
1674
|
-
searchMatches:
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
}[];
|
|
1701
|
+
searchMatches: Readonly<{
|
|
1702
|
+
focusedId: string | null;
|
|
1703
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1704
|
+
}> | null;
|
|
1705
|
+
activeLockedId: string | null;
|
|
1706
|
+
lockedMultiSelections: {
|
|
1707
|
+
[groupId: string]: true;
|
|
1708
|
+
};
|
|
1709
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1684
1710
|
};
|
|
1685
1711
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1686
1712
|
} | {
|
|
@@ -1688,7 +1714,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1688
1714
|
appState: {
|
|
1689
1715
|
currentItemFontFamily: number;
|
|
1690
1716
|
currentHoveredFontFamily: number | null;
|
|
1691
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1717
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1692
1718
|
contextMenu: {
|
|
1693
1719
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1694
1720
|
top: number;
|
|
@@ -1698,17 +1724,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1698
1724
|
isLoading: boolean;
|
|
1699
1725
|
errorMessage: import("react").ReactNode;
|
|
1700
1726
|
activeEmbeddable: {
|
|
1701
|
-
element: import("
|
|
1702
|
-
state: "
|
|
1727
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1728
|
+
state: "active" | "hover";
|
|
1703
1729
|
} | null;
|
|
1704
|
-
newElement: import("
|
|
1705
|
-
resizingElement: import("
|
|
1706
|
-
multiElement: import("
|
|
1707
|
-
selectionElement: import("
|
|
1730
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1731
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1732
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1733
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1708
1734
|
isBindingEnabled: boolean;
|
|
1709
|
-
startBoundElement: import("
|
|
1710
|
-
suggestedBindings: import("
|
|
1711
|
-
frameToHighlight: import("
|
|
1735
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1736
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1737
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1712
1738
|
frameRendering: {
|
|
1713
1739
|
enabled: boolean;
|
|
1714
1740
|
name: boolean;
|
|
@@ -1716,13 +1742,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1716
1742
|
clip: boolean;
|
|
1717
1743
|
};
|
|
1718
1744
|
editingFrame: string | null;
|
|
1719
|
-
elementsToHighlight: import("
|
|
1720
|
-
editingTextElement: import("
|
|
1721
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1745
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1746
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1722
1747
|
activeTool: {
|
|
1723
1748
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1724
1749
|
locked: boolean;
|
|
1750
|
+
fromSelection: boolean;
|
|
1725
1751
|
} & import("../types").ActiveTool;
|
|
1752
|
+
preferredSelectionTool: {
|
|
1753
|
+
type: "selection" | "lasso";
|
|
1754
|
+
initialized: boolean;
|
|
1755
|
+
};
|
|
1726
1756
|
penMode: boolean;
|
|
1727
1757
|
penDetected: boolean;
|
|
1728
1758
|
exportBackground: boolean;
|
|
@@ -1731,16 +1761,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1731
1761
|
exportScale: number;
|
|
1732
1762
|
currentItemStrokeColor: string;
|
|
1733
1763
|
currentItemBackgroundColor: string;
|
|
1734
|
-
currentItemFillStyle: import("
|
|
1764
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1735
1765
|
currentItemStrokeWidth: number;
|
|
1736
|
-
currentItemStrokeStyle: import("
|
|
1766
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1737
1767
|
currentItemRoughness: number;
|
|
1738
1768
|
currentItemOpacity: number;
|
|
1739
1769
|
currentItemFontSize: number;
|
|
1740
1770
|
currentItemTextAlign: string;
|
|
1741
1771
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1742
1772
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1743
|
-
currentItemRoundness: import("
|
|
1773
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1744
1774
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1745
1775
|
viewBackgroundColor: string;
|
|
1746
1776
|
scrollX: number;
|
|
@@ -1762,7 +1792,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1762
1792
|
name: "imageExport" | "help" | "jsonExport";
|
|
1763
1793
|
} | {
|
|
1764
1794
|
name: "ttd";
|
|
1765
|
-
tab: "text-to-diagram"
|
|
1795
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1766
1796
|
} | {
|
|
1767
1797
|
name: "commandPalette";
|
|
1768
1798
|
} | {
|
|
@@ -1770,7 +1800,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1770
1800
|
sourceElementId: string;
|
|
1771
1801
|
} | null;
|
|
1772
1802
|
defaultSidebarDockedPreference: boolean;
|
|
1773
|
-
lastPointerDownWith: import("
|
|
1803
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1774
1804
|
selectedElementIds: Readonly<{
|
|
1775
1805
|
[id: string]: true;
|
|
1776
1806
|
}>;
|
|
@@ -1788,7 +1818,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1788
1818
|
duration?: number | undefined;
|
|
1789
1819
|
} | null;
|
|
1790
1820
|
zenModeEnabled: boolean;
|
|
1791
|
-
theme: import("
|
|
1821
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1792
1822
|
gridSize: number;
|
|
1793
1823
|
gridStep: number;
|
|
1794
1824
|
gridModeEnabled: boolean;
|
|
@@ -1809,7 +1839,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1809
1839
|
[id: string]: true;
|
|
1810
1840
|
}> | undefined;
|
|
1811
1841
|
username?: string | null | undefined;
|
|
1812
|
-
userState?: import("
|
|
1842
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1813
1843
|
color?: {
|
|
1814
1844
|
background: string;
|
|
1815
1845
|
stroke: string;
|
|
@@ -1826,7 +1856,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1826
1856
|
open: boolean;
|
|
1827
1857
|
panels: number;
|
|
1828
1858
|
};
|
|
1829
|
-
currentChartType: import("
|
|
1859
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1830
1860
|
pasteDialog: {
|
|
1831
1861
|
shown: false;
|
|
1832
1862
|
data: null;
|
|
@@ -1834,8 +1864,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1834
1864
|
shown: true;
|
|
1835
1865
|
data: import("../charts").Spreadsheet;
|
|
1836
1866
|
};
|
|
1837
|
-
|
|
1838
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1867
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1839
1868
|
selectedLinearElement: LinearElementEditor | null;
|
|
1840
1869
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1841
1870
|
originSnapOffset: {
|
|
@@ -1847,16 +1876,15 @@ export declare const actionChangeFontFamily: {
|
|
|
1847
1876
|
followedBy: Set<import("../types").SocketId>;
|
|
1848
1877
|
isCropping: boolean;
|
|
1849
1878
|
croppingElementId: string | null;
|
|
1850
|
-
searchMatches:
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
}[];
|
|
1879
|
+
searchMatches: Readonly<{
|
|
1880
|
+
focusedId: string | null;
|
|
1881
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1882
|
+
}> | null;
|
|
1883
|
+
activeLockedId: string | null;
|
|
1884
|
+
lockedMultiSelections: {
|
|
1885
|
+
[groupId: string]: true;
|
|
1886
|
+
};
|
|
1887
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1860
1888
|
};
|
|
1861
1889
|
captureUpdate: "NEVER";
|
|
1862
1890
|
};
|
|
@@ -1868,7 +1896,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1868
1896
|
name: "changeTextAlign";
|
|
1869
1897
|
label: string;
|
|
1870
1898
|
trackEvent: false;
|
|
1871
|
-
perform: (elements: readonly import("
|
|
1899
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1872
1900
|
elements: ExcalidrawElement[];
|
|
1873
1901
|
appState: {
|
|
1874
1902
|
currentItemTextAlign: any;
|
|
@@ -1881,17 +1909,17 @@ export declare const actionChangeTextAlign: {
|
|
|
1881
1909
|
isLoading: boolean;
|
|
1882
1910
|
errorMessage: import("react").ReactNode;
|
|
1883
1911
|
activeEmbeddable: {
|
|
1884
|
-
element: import("
|
|
1885
|
-
state: "
|
|
1912
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1913
|
+
state: "active" | "hover";
|
|
1886
1914
|
} | null;
|
|
1887
|
-
newElement: import("
|
|
1888
|
-
resizingElement: import("
|
|
1889
|
-
multiElement: import("
|
|
1890
|
-
selectionElement: import("
|
|
1915
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1916
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1917
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1918
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1891
1919
|
isBindingEnabled: boolean;
|
|
1892
|
-
startBoundElement: import("
|
|
1893
|
-
suggestedBindings: import("
|
|
1894
|
-
frameToHighlight: import("
|
|
1920
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1921
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1922
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1895
1923
|
frameRendering: {
|
|
1896
1924
|
enabled: boolean;
|
|
1897
1925
|
name: boolean;
|
|
@@ -1899,13 +1927,17 @@ export declare const actionChangeTextAlign: {
|
|
|
1899
1927
|
clip: boolean;
|
|
1900
1928
|
};
|
|
1901
1929
|
editingFrame: string | null;
|
|
1902
|
-
elementsToHighlight: import("
|
|
1903
|
-
editingTextElement: import("
|
|
1904
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1930
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1931
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1905
1932
|
activeTool: {
|
|
1906
1933
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1907
1934
|
locked: boolean;
|
|
1935
|
+
fromSelection: boolean;
|
|
1908
1936
|
} & import("../types").ActiveTool;
|
|
1937
|
+
preferredSelectionTool: {
|
|
1938
|
+
type: "selection" | "lasso";
|
|
1939
|
+
initialized: boolean;
|
|
1940
|
+
};
|
|
1909
1941
|
penMode: boolean;
|
|
1910
1942
|
penDetected: boolean;
|
|
1911
1943
|
exportBackground: boolean;
|
|
@@ -1914,9 +1946,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1914
1946
|
exportScale: number;
|
|
1915
1947
|
currentItemStrokeColor: string;
|
|
1916
1948
|
currentItemBackgroundColor: string;
|
|
1917
|
-
currentItemFillStyle: import("
|
|
1949
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1918
1950
|
currentItemStrokeWidth: number;
|
|
1919
|
-
currentItemStrokeStyle: import("
|
|
1951
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1920
1952
|
currentItemRoughness: number;
|
|
1921
1953
|
currentItemOpacity: number;
|
|
1922
1954
|
currentItemFontFamily: number;
|
|
@@ -1924,7 +1956,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1924
1956
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1925
1957
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1926
1958
|
currentHoveredFontFamily: number | null;
|
|
1927
|
-
currentItemRoundness: import("
|
|
1959
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1928
1960
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1929
1961
|
viewBackgroundColor: string;
|
|
1930
1962
|
scrollX: number;
|
|
@@ -1938,7 +1970,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1938
1970
|
value: import("../types").NormalizedZoomValue;
|
|
1939
1971
|
}>;
|
|
1940
1972
|
openMenu: "canvas" | "shape" | null;
|
|
1941
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1973
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1942
1974
|
openSidebar: {
|
|
1943
1975
|
name: string;
|
|
1944
1976
|
tab?: string | undefined;
|
|
@@ -1947,7 +1979,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1947
1979
|
name: "imageExport" | "help" | "jsonExport";
|
|
1948
1980
|
} | {
|
|
1949
1981
|
name: "ttd";
|
|
1950
|
-
tab: "text-to-diagram"
|
|
1982
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1951
1983
|
} | {
|
|
1952
1984
|
name: "commandPalette";
|
|
1953
1985
|
} | {
|
|
@@ -1955,7 +1987,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1955
1987
|
sourceElementId: string;
|
|
1956
1988
|
} | null;
|
|
1957
1989
|
defaultSidebarDockedPreference: boolean;
|
|
1958
|
-
lastPointerDownWith: import("
|
|
1990
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1959
1991
|
selectedElementIds: Readonly<{
|
|
1960
1992
|
[id: string]: true;
|
|
1961
1993
|
}>;
|
|
@@ -1973,7 +2005,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1973
2005
|
duration?: number | undefined;
|
|
1974
2006
|
} | null;
|
|
1975
2007
|
zenModeEnabled: boolean;
|
|
1976
|
-
theme: import("
|
|
2008
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1977
2009
|
gridSize: number;
|
|
1978
2010
|
gridStep: number;
|
|
1979
2011
|
gridModeEnabled: boolean;
|
|
@@ -1994,7 +2026,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1994
2026
|
[id: string]: true;
|
|
1995
2027
|
}> | undefined;
|
|
1996
2028
|
username?: string | null | undefined;
|
|
1997
|
-
userState?: import("
|
|
2029
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1998
2030
|
color?: {
|
|
1999
2031
|
background: string;
|
|
2000
2032
|
stroke: string;
|
|
@@ -2011,7 +2043,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2011
2043
|
open: boolean;
|
|
2012
2044
|
panels: number;
|
|
2013
2045
|
};
|
|
2014
|
-
currentChartType: import("
|
|
2046
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2015
2047
|
pasteDialog: {
|
|
2016
2048
|
shown: false;
|
|
2017
2049
|
data: null;
|
|
@@ -2019,8 +2051,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2019
2051
|
shown: true;
|
|
2020
2052
|
data: import("../charts").Spreadsheet;
|
|
2021
2053
|
};
|
|
2022
|
-
|
|
2023
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
2054
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2024
2055
|
selectedLinearElement: LinearElementEditor | null;
|
|
2025
2056
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2026
2057
|
originSnapOffset: {
|
|
@@ -2032,20 +2063,19 @@ export declare const actionChangeTextAlign: {
|
|
|
2032
2063
|
followedBy: Set<import("../types").SocketId>;
|
|
2033
2064
|
isCropping: boolean;
|
|
2034
2065
|
croppingElementId: string | null;
|
|
2035
|
-
searchMatches:
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
}[];
|
|
2066
|
+
searchMatches: Readonly<{
|
|
2067
|
+
focusedId: string | null;
|
|
2068
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2069
|
+
}> | null;
|
|
2070
|
+
activeLockedId: string | null;
|
|
2071
|
+
lockedMultiSelections: {
|
|
2072
|
+
[groupId: string]: true;
|
|
2073
|
+
};
|
|
2074
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2045
2075
|
};
|
|
2046
2076
|
captureUpdate: "IMMEDIATELY";
|
|
2047
2077
|
};
|
|
2048
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2078
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2049
2079
|
} & {
|
|
2050
2080
|
keyTest?: undefined;
|
|
2051
2081
|
};
|
|
@@ -2055,7 +2085,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2055
2085
|
trackEvent: {
|
|
2056
2086
|
category: "element";
|
|
2057
2087
|
};
|
|
2058
|
-
perform: (elements: readonly import("
|
|
2088
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2059
2089
|
elements: ExcalidrawElement[];
|
|
2060
2090
|
appState: {
|
|
2061
2091
|
contextMenu: {
|
|
@@ -2067,17 +2097,17 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2067
2097
|
isLoading: boolean;
|
|
2068
2098
|
errorMessage: import("react").ReactNode;
|
|
2069
2099
|
activeEmbeddable: {
|
|
2070
|
-
element: import("
|
|
2071
|
-
state: "
|
|
2100
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2101
|
+
state: "active" | "hover";
|
|
2072
2102
|
} | null;
|
|
2073
|
-
newElement: import("
|
|
2074
|
-
resizingElement: import("
|
|
2075
|
-
multiElement: import("
|
|
2076
|
-
selectionElement: import("
|
|
2103
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2104
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2105
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2106
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2077
2107
|
isBindingEnabled: boolean;
|
|
2078
|
-
startBoundElement: import("
|
|
2079
|
-
suggestedBindings: import("
|
|
2080
|
-
frameToHighlight: import("
|
|
2108
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2109
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2110
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2081
2111
|
frameRendering: {
|
|
2082
2112
|
enabled: boolean;
|
|
2083
2113
|
name: boolean;
|
|
@@ -2085,13 +2115,17 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2085
2115
|
clip: boolean;
|
|
2086
2116
|
};
|
|
2087
2117
|
editingFrame: string | null;
|
|
2088
|
-
elementsToHighlight: import("
|
|
2089
|
-
editingTextElement: import("
|
|
2090
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2118
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2119
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2091
2120
|
activeTool: {
|
|
2092
2121
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2093
2122
|
locked: boolean;
|
|
2123
|
+
fromSelection: boolean;
|
|
2094
2124
|
} & import("../types").ActiveTool;
|
|
2125
|
+
preferredSelectionTool: {
|
|
2126
|
+
type: "selection" | "lasso";
|
|
2127
|
+
initialized: boolean;
|
|
2128
|
+
};
|
|
2095
2129
|
penMode: boolean;
|
|
2096
2130
|
penDetected: boolean;
|
|
2097
2131
|
exportBackground: boolean;
|
|
@@ -2100,9 +2134,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2100
2134
|
exportScale: number;
|
|
2101
2135
|
currentItemStrokeColor: string;
|
|
2102
2136
|
currentItemBackgroundColor: string;
|
|
2103
|
-
currentItemFillStyle: import("
|
|
2137
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2104
2138
|
currentItemStrokeWidth: number;
|
|
2105
|
-
currentItemStrokeStyle: import("
|
|
2139
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2106
2140
|
currentItemRoughness: number;
|
|
2107
2141
|
currentItemOpacity: number;
|
|
2108
2142
|
currentItemFontFamily: number;
|
|
@@ -2111,7 +2145,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2111
2145
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2112
2146
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2113
2147
|
currentHoveredFontFamily: number | null;
|
|
2114
|
-
currentItemRoundness: import("
|
|
2148
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2115
2149
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2116
2150
|
viewBackgroundColor: string;
|
|
2117
2151
|
scrollX: number;
|
|
@@ -2125,7 +2159,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2125
2159
|
value: import("../types").NormalizedZoomValue;
|
|
2126
2160
|
}>;
|
|
2127
2161
|
openMenu: "canvas" | "shape" | null;
|
|
2128
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2162
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2129
2163
|
openSidebar: {
|
|
2130
2164
|
name: string;
|
|
2131
2165
|
tab?: string | undefined;
|
|
@@ -2134,7 +2168,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2134
2168
|
name: "imageExport" | "help" | "jsonExport";
|
|
2135
2169
|
} | {
|
|
2136
2170
|
name: "ttd";
|
|
2137
|
-
tab: "text-to-diagram"
|
|
2171
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2138
2172
|
} | {
|
|
2139
2173
|
name: "commandPalette";
|
|
2140
2174
|
} | {
|
|
@@ -2142,7 +2176,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2142
2176
|
sourceElementId: string;
|
|
2143
2177
|
} | null;
|
|
2144
2178
|
defaultSidebarDockedPreference: boolean;
|
|
2145
|
-
lastPointerDownWith: import("
|
|
2179
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2146
2180
|
selectedElementIds: Readonly<{
|
|
2147
2181
|
[id: string]: true;
|
|
2148
2182
|
}>;
|
|
@@ -2160,7 +2194,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2160
2194
|
duration?: number | undefined;
|
|
2161
2195
|
} | null;
|
|
2162
2196
|
zenModeEnabled: boolean;
|
|
2163
|
-
theme: import("
|
|
2197
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2164
2198
|
gridSize: number;
|
|
2165
2199
|
gridStep: number;
|
|
2166
2200
|
gridModeEnabled: boolean;
|
|
@@ -2181,7 +2215,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2181
2215
|
[id: string]: true;
|
|
2182
2216
|
}> | undefined;
|
|
2183
2217
|
username?: string | null | undefined;
|
|
2184
|
-
userState?: import("
|
|
2218
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2185
2219
|
color?: {
|
|
2186
2220
|
background: string;
|
|
2187
2221
|
stroke: string;
|
|
@@ -2198,7 +2232,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2198
2232
|
open: boolean;
|
|
2199
2233
|
panels: number;
|
|
2200
2234
|
};
|
|
2201
|
-
currentChartType: import("
|
|
2235
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2202
2236
|
pasteDialog: {
|
|
2203
2237
|
shown: false;
|
|
2204
2238
|
data: null;
|
|
@@ -2206,8 +2240,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2206
2240
|
shown: true;
|
|
2207
2241
|
data: import("../charts").Spreadsheet;
|
|
2208
2242
|
};
|
|
2209
|
-
|
|
2210
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
2243
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2211
2244
|
selectedLinearElement: LinearElementEditor | null;
|
|
2212
2245
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2213
2246
|
originSnapOffset: {
|
|
@@ -2219,20 +2252,19 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2219
2252
|
followedBy: Set<import("../types").SocketId>;
|
|
2220
2253
|
isCropping: boolean;
|
|
2221
2254
|
croppingElementId: string | null;
|
|
2222
|
-
searchMatches:
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
}[];
|
|
2255
|
+
searchMatches: Readonly<{
|
|
2256
|
+
focusedId: string | null;
|
|
2257
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2258
|
+
}> | null;
|
|
2259
|
+
activeLockedId: string | null;
|
|
2260
|
+
lockedMultiSelections: {
|
|
2261
|
+
[groupId: string]: true;
|
|
2262
|
+
};
|
|
2263
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2232
2264
|
};
|
|
2233
2265
|
captureUpdate: "IMMEDIATELY";
|
|
2234
2266
|
};
|
|
2235
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2267
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2236
2268
|
} & {
|
|
2237
2269
|
keyTest?: undefined;
|
|
2238
2270
|
};
|
|
@@ -2240,7 +2272,7 @@ export declare const actionChangeRoundness: {
|
|
|
2240
2272
|
name: "changeRoundness";
|
|
2241
2273
|
label: string;
|
|
2242
2274
|
trackEvent: false;
|
|
2243
|
-
perform: (elements: readonly import("
|
|
2275
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2244
2276
|
elements: ExcalidrawElement[];
|
|
2245
2277
|
appState: {
|
|
2246
2278
|
currentItemRoundness: any;
|
|
@@ -2253,17 +2285,17 @@ export declare const actionChangeRoundness: {
|
|
|
2253
2285
|
isLoading: boolean;
|
|
2254
2286
|
errorMessage: import("react").ReactNode;
|
|
2255
2287
|
activeEmbeddable: {
|
|
2256
|
-
element: import("
|
|
2257
|
-
state: "
|
|
2288
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2289
|
+
state: "active" | "hover";
|
|
2258
2290
|
} | null;
|
|
2259
|
-
newElement: import("
|
|
2260
|
-
resizingElement: import("
|
|
2261
|
-
multiElement: import("
|
|
2262
|
-
selectionElement: import("
|
|
2291
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2292
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2293
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2294
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2263
2295
|
isBindingEnabled: boolean;
|
|
2264
|
-
startBoundElement: import("
|
|
2265
|
-
suggestedBindings: import("
|
|
2266
|
-
frameToHighlight: import("
|
|
2296
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2297
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2298
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2267
2299
|
frameRendering: {
|
|
2268
2300
|
enabled: boolean;
|
|
2269
2301
|
name: boolean;
|
|
@@ -2271,13 +2303,17 @@ export declare const actionChangeRoundness: {
|
|
|
2271
2303
|
clip: boolean;
|
|
2272
2304
|
};
|
|
2273
2305
|
editingFrame: string | null;
|
|
2274
|
-
elementsToHighlight: import("
|
|
2275
|
-
editingTextElement: import("
|
|
2276
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2306
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2307
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2277
2308
|
activeTool: {
|
|
2278
2309
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2279
2310
|
locked: boolean;
|
|
2311
|
+
fromSelection: boolean;
|
|
2280
2312
|
} & import("../types").ActiveTool;
|
|
2313
|
+
preferredSelectionTool: {
|
|
2314
|
+
type: "selection" | "lasso";
|
|
2315
|
+
initialized: boolean;
|
|
2316
|
+
};
|
|
2281
2317
|
penMode: boolean;
|
|
2282
2318
|
penDetected: boolean;
|
|
2283
2319
|
exportBackground: boolean;
|
|
@@ -2286,9 +2322,9 @@ export declare const actionChangeRoundness: {
|
|
|
2286
2322
|
exportScale: number;
|
|
2287
2323
|
currentItemStrokeColor: string;
|
|
2288
2324
|
currentItemBackgroundColor: string;
|
|
2289
|
-
currentItemFillStyle: import("
|
|
2325
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2290
2326
|
currentItemStrokeWidth: number;
|
|
2291
|
-
currentItemStrokeStyle: import("
|
|
2327
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2292
2328
|
currentItemRoughness: number;
|
|
2293
2329
|
currentItemOpacity: number;
|
|
2294
2330
|
currentItemFontFamily: number;
|
|
@@ -2310,7 +2346,7 @@ export declare const actionChangeRoundness: {
|
|
|
2310
2346
|
value: import("../types").NormalizedZoomValue;
|
|
2311
2347
|
}>;
|
|
2312
2348
|
openMenu: "canvas" | "shape" | null;
|
|
2313
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2349
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2314
2350
|
openSidebar: {
|
|
2315
2351
|
name: string;
|
|
2316
2352
|
tab?: string | undefined;
|
|
@@ -2319,7 +2355,7 @@ export declare const actionChangeRoundness: {
|
|
|
2319
2355
|
name: "imageExport" | "help" | "jsonExport";
|
|
2320
2356
|
} | {
|
|
2321
2357
|
name: "ttd";
|
|
2322
|
-
tab: "text-to-diagram"
|
|
2358
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2323
2359
|
} | {
|
|
2324
2360
|
name: "commandPalette";
|
|
2325
2361
|
} | {
|
|
@@ -2327,7 +2363,7 @@ export declare const actionChangeRoundness: {
|
|
|
2327
2363
|
sourceElementId: string;
|
|
2328
2364
|
} | null;
|
|
2329
2365
|
defaultSidebarDockedPreference: boolean;
|
|
2330
|
-
lastPointerDownWith: import("
|
|
2366
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2331
2367
|
selectedElementIds: Readonly<{
|
|
2332
2368
|
[id: string]: true;
|
|
2333
2369
|
}>;
|
|
@@ -2345,7 +2381,7 @@ export declare const actionChangeRoundness: {
|
|
|
2345
2381
|
duration?: number | undefined;
|
|
2346
2382
|
} | null;
|
|
2347
2383
|
zenModeEnabled: boolean;
|
|
2348
|
-
theme: import("
|
|
2384
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2349
2385
|
gridSize: number;
|
|
2350
2386
|
gridStep: number;
|
|
2351
2387
|
gridModeEnabled: boolean;
|
|
@@ -2366,7 +2402,7 @@ export declare const actionChangeRoundness: {
|
|
|
2366
2402
|
[id: string]: true;
|
|
2367
2403
|
}> | undefined;
|
|
2368
2404
|
username?: string | null | undefined;
|
|
2369
|
-
userState?: import("
|
|
2405
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2370
2406
|
color?: {
|
|
2371
2407
|
background: string;
|
|
2372
2408
|
stroke: string;
|
|
@@ -2383,7 +2419,7 @@ export declare const actionChangeRoundness: {
|
|
|
2383
2419
|
open: boolean;
|
|
2384
2420
|
panels: number;
|
|
2385
2421
|
};
|
|
2386
|
-
currentChartType: import("
|
|
2422
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2387
2423
|
pasteDialog: {
|
|
2388
2424
|
shown: false;
|
|
2389
2425
|
data: null;
|
|
@@ -2391,8 +2427,7 @@ export declare const actionChangeRoundness: {
|
|
|
2391
2427
|
shown: true;
|
|
2392
2428
|
data: import("../charts").Spreadsheet;
|
|
2393
2429
|
};
|
|
2394
|
-
|
|
2395
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
2430
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2396
2431
|
selectedLinearElement: LinearElementEditor | null;
|
|
2397
2432
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2398
2433
|
originSnapOffset: {
|
|
@@ -2404,20 +2439,19 @@ export declare const actionChangeRoundness: {
|
|
|
2404
2439
|
followedBy: Set<import("../types").SocketId>;
|
|
2405
2440
|
isCropping: boolean;
|
|
2406
2441
|
croppingElementId: string | null;
|
|
2407
|
-
searchMatches:
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
}[];
|
|
2442
|
+
searchMatches: Readonly<{
|
|
2443
|
+
focusedId: string | null;
|
|
2444
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2445
|
+
}> | null;
|
|
2446
|
+
activeLockedId: string | null;
|
|
2447
|
+
lockedMultiSelections: {
|
|
2448
|
+
[groupId: string]: true;
|
|
2449
|
+
};
|
|
2450
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2417
2451
|
};
|
|
2418
2452
|
captureUpdate: "IMMEDIATELY";
|
|
2419
2453
|
};
|
|
2420
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2454
|
+
PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2421
2455
|
} & {
|
|
2422
2456
|
keyTest?: undefined;
|
|
2423
2457
|
};
|
|
@@ -2425,7 +2459,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2425
2459
|
name: "changeArrowhead";
|
|
2426
2460
|
label: string;
|
|
2427
2461
|
trackEvent: false;
|
|
2428
|
-
perform: (elements: readonly import("
|
|
2462
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2429
2463
|
position: "start" | "end";
|
|
2430
2464
|
type: Arrowhead;
|
|
2431
2465
|
}) => {
|
|
@@ -2440,17 +2474,17 @@ export declare const actionChangeArrowhead: {
|
|
|
2440
2474
|
isLoading: boolean;
|
|
2441
2475
|
errorMessage: import("react").ReactNode;
|
|
2442
2476
|
activeEmbeddable: {
|
|
2443
|
-
element: import("
|
|
2444
|
-
state: "
|
|
2477
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2478
|
+
state: "active" | "hover";
|
|
2445
2479
|
} | null;
|
|
2446
|
-
newElement: import("
|
|
2447
|
-
resizingElement: import("
|
|
2448
|
-
multiElement: import("
|
|
2449
|
-
selectionElement: import("
|
|
2480
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2481
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2482
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2483
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2450
2484
|
isBindingEnabled: boolean;
|
|
2451
|
-
startBoundElement: import("
|
|
2452
|
-
suggestedBindings: import("
|
|
2453
|
-
frameToHighlight: import("
|
|
2485
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2486
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2487
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2454
2488
|
frameRendering: {
|
|
2455
2489
|
enabled: boolean;
|
|
2456
2490
|
name: boolean;
|
|
@@ -2458,13 +2492,17 @@ export declare const actionChangeArrowhead: {
|
|
|
2458
2492
|
clip: boolean;
|
|
2459
2493
|
};
|
|
2460
2494
|
editingFrame: string | null;
|
|
2461
|
-
elementsToHighlight: import("
|
|
2462
|
-
editingTextElement: import("
|
|
2463
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2495
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2496
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2464
2497
|
activeTool: {
|
|
2465
2498
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2466
2499
|
locked: boolean;
|
|
2500
|
+
fromSelection: boolean;
|
|
2467
2501
|
} & import("../types").ActiveTool;
|
|
2502
|
+
preferredSelectionTool: {
|
|
2503
|
+
type: "selection" | "lasso";
|
|
2504
|
+
initialized: boolean;
|
|
2505
|
+
};
|
|
2468
2506
|
penMode: boolean;
|
|
2469
2507
|
penDetected: boolean;
|
|
2470
2508
|
exportBackground: boolean;
|
|
@@ -2473,9 +2511,9 @@ export declare const actionChangeArrowhead: {
|
|
|
2473
2511
|
exportScale: number;
|
|
2474
2512
|
currentItemStrokeColor: string;
|
|
2475
2513
|
currentItemBackgroundColor: string;
|
|
2476
|
-
currentItemFillStyle: import("
|
|
2514
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2477
2515
|
currentItemStrokeWidth: number;
|
|
2478
|
-
currentItemStrokeStyle: import("
|
|
2516
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2479
2517
|
currentItemRoughness: number;
|
|
2480
2518
|
currentItemOpacity: number;
|
|
2481
2519
|
currentItemFontFamily: number;
|
|
@@ -2484,7 +2522,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2484
2522
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2485
2523
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2486
2524
|
currentHoveredFontFamily: number | null;
|
|
2487
|
-
currentItemRoundness: import("
|
|
2525
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2488
2526
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2489
2527
|
viewBackgroundColor: string;
|
|
2490
2528
|
scrollX: number;
|
|
@@ -2498,7 +2536,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2498
2536
|
value: import("../types").NormalizedZoomValue;
|
|
2499
2537
|
}>;
|
|
2500
2538
|
openMenu: "canvas" | "shape" | null;
|
|
2501
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2539
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2502
2540
|
openSidebar: {
|
|
2503
2541
|
name: string;
|
|
2504
2542
|
tab?: string | undefined;
|
|
@@ -2507,7 +2545,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2507
2545
|
name: "imageExport" | "help" | "jsonExport";
|
|
2508
2546
|
} | {
|
|
2509
2547
|
name: "ttd";
|
|
2510
|
-
tab: "text-to-diagram"
|
|
2548
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2511
2549
|
} | {
|
|
2512
2550
|
name: "commandPalette";
|
|
2513
2551
|
} | {
|
|
@@ -2515,7 +2553,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2515
2553
|
sourceElementId: string;
|
|
2516
2554
|
} | null;
|
|
2517
2555
|
defaultSidebarDockedPreference: boolean;
|
|
2518
|
-
lastPointerDownWith: import("
|
|
2556
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2519
2557
|
selectedElementIds: Readonly<{
|
|
2520
2558
|
[id: string]: true;
|
|
2521
2559
|
}>;
|
|
@@ -2533,7 +2571,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2533
2571
|
duration?: number | undefined;
|
|
2534
2572
|
} | null;
|
|
2535
2573
|
zenModeEnabled: boolean;
|
|
2536
|
-
theme: import("
|
|
2574
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2537
2575
|
gridSize: number;
|
|
2538
2576
|
gridStep: number;
|
|
2539
2577
|
gridModeEnabled: boolean;
|
|
@@ -2554,7 +2592,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2554
2592
|
[id: string]: true;
|
|
2555
2593
|
}> | undefined;
|
|
2556
2594
|
username?: string | null | undefined;
|
|
2557
|
-
userState?: import("
|
|
2595
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2558
2596
|
color?: {
|
|
2559
2597
|
background: string;
|
|
2560
2598
|
stroke: string;
|
|
@@ -2571,7 +2609,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2571
2609
|
open: boolean;
|
|
2572
2610
|
panels: number;
|
|
2573
2611
|
};
|
|
2574
|
-
currentChartType: import("
|
|
2612
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2575
2613
|
pasteDialog: {
|
|
2576
2614
|
shown: false;
|
|
2577
2615
|
data: null;
|
|
@@ -2579,8 +2617,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2579
2617
|
shown: true;
|
|
2580
2618
|
data: import("../charts").Spreadsheet;
|
|
2581
2619
|
};
|
|
2582
|
-
|
|
2583
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
2620
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2584
2621
|
selectedLinearElement: LinearElementEditor | null;
|
|
2585
2622
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2586
2623
|
originSnapOffset: {
|
|
@@ -2592,20 +2629,28 @@ export declare const actionChangeArrowhead: {
|
|
|
2592
2629
|
followedBy: Set<import("../types").SocketId>;
|
|
2593
2630
|
isCropping: boolean;
|
|
2594
2631
|
croppingElementId: string | null;
|
|
2595
|
-
searchMatches:
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
}[];
|
|
2632
|
+
searchMatches: Readonly<{
|
|
2633
|
+
focusedId: string | null;
|
|
2634
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2635
|
+
}> | null;
|
|
2636
|
+
activeLockedId: string | null;
|
|
2637
|
+
lockedMultiSelections: {
|
|
2638
|
+
[groupId: string]: true;
|
|
2639
|
+
};
|
|
2640
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2605
2641
|
};
|
|
2606
2642
|
captureUpdate: "IMMEDIATELY";
|
|
2607
2643
|
};
|
|
2608
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2644
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2645
|
+
} & {
|
|
2646
|
+
keyTest?: undefined;
|
|
2647
|
+
};
|
|
2648
|
+
export declare const actionChangeArrowProperties: {
|
|
2649
|
+
name: "changeArrowProperties";
|
|
2650
|
+
label: string;
|
|
2651
|
+
trackEvent: false;
|
|
2652
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
|
|
2653
|
+
PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2609
2654
|
} & {
|
|
2610
2655
|
keyTest?: undefined;
|
|
2611
2656
|
};
|
|
@@ -2613,7 +2658,7 @@ export declare const actionChangeArrowType: {
|
|
|
2613
2658
|
name: "changeArrowType";
|
|
2614
2659
|
label: string;
|
|
2615
2660
|
trackEvent: false;
|
|
2616
|
-
perform: (elements: readonly import("
|
|
2661
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2617
2662
|
elements: ExcalidrawElement[];
|
|
2618
2663
|
appState: {
|
|
2619
2664
|
currentItemArrowType: any;
|
|
@@ -2626,17 +2671,17 @@ export declare const actionChangeArrowType: {
|
|
|
2626
2671
|
isLoading: boolean;
|
|
2627
2672
|
errorMessage: import("react").ReactNode;
|
|
2628
2673
|
activeEmbeddable: {
|
|
2629
|
-
element: import("
|
|
2630
|
-
state: "
|
|
2674
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2675
|
+
state: "active" | "hover";
|
|
2631
2676
|
} | null;
|
|
2632
|
-
newElement: import("
|
|
2633
|
-
resizingElement: import("
|
|
2634
|
-
multiElement: import("
|
|
2635
|
-
selectionElement: import("
|
|
2677
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2678
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2679
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2680
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2636
2681
|
isBindingEnabled: boolean;
|
|
2637
|
-
startBoundElement: import("
|
|
2638
|
-
suggestedBindings: import("
|
|
2639
|
-
frameToHighlight: import("
|
|
2682
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2683
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2684
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2640
2685
|
frameRendering: {
|
|
2641
2686
|
enabled: boolean;
|
|
2642
2687
|
name: boolean;
|
|
@@ -2644,13 +2689,17 @@ export declare const actionChangeArrowType: {
|
|
|
2644
2689
|
clip: boolean;
|
|
2645
2690
|
};
|
|
2646
2691
|
editingFrame: string | null;
|
|
2647
|
-
elementsToHighlight: import("
|
|
2648
|
-
editingTextElement: import("
|
|
2649
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2692
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2693
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2650
2694
|
activeTool: {
|
|
2651
2695
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2652
2696
|
locked: boolean;
|
|
2697
|
+
fromSelection: boolean;
|
|
2653
2698
|
} & import("../types").ActiveTool;
|
|
2699
|
+
preferredSelectionTool: {
|
|
2700
|
+
type: "selection" | "lasso";
|
|
2701
|
+
initialized: boolean;
|
|
2702
|
+
};
|
|
2654
2703
|
penMode: boolean;
|
|
2655
2704
|
penDetected: boolean;
|
|
2656
2705
|
exportBackground: boolean;
|
|
@@ -2659,9 +2708,9 @@ export declare const actionChangeArrowType: {
|
|
|
2659
2708
|
exportScale: number;
|
|
2660
2709
|
currentItemStrokeColor: string;
|
|
2661
2710
|
currentItemBackgroundColor: string;
|
|
2662
|
-
currentItemFillStyle: import("
|
|
2711
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2663
2712
|
currentItemStrokeWidth: number;
|
|
2664
|
-
currentItemStrokeStyle: import("
|
|
2713
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2665
2714
|
currentItemRoughness: number;
|
|
2666
2715
|
currentItemOpacity: number;
|
|
2667
2716
|
currentItemFontFamily: number;
|
|
@@ -2670,7 +2719,7 @@ export declare const actionChangeArrowType: {
|
|
|
2670
2719
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2671
2720
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2672
2721
|
currentHoveredFontFamily: number | null;
|
|
2673
|
-
currentItemRoundness: import("
|
|
2722
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2674
2723
|
viewBackgroundColor: string;
|
|
2675
2724
|
scrollX: number;
|
|
2676
2725
|
scrollY: number;
|
|
@@ -2683,7 +2732,7 @@ export declare const actionChangeArrowType: {
|
|
|
2683
2732
|
value: import("../types").NormalizedZoomValue;
|
|
2684
2733
|
}>;
|
|
2685
2734
|
openMenu: "canvas" | "shape" | null;
|
|
2686
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2735
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2687
2736
|
openSidebar: {
|
|
2688
2737
|
name: string;
|
|
2689
2738
|
tab?: string | undefined;
|
|
@@ -2692,7 +2741,7 @@ export declare const actionChangeArrowType: {
|
|
|
2692
2741
|
name: "imageExport" | "help" | "jsonExport";
|
|
2693
2742
|
} | {
|
|
2694
2743
|
name: "ttd";
|
|
2695
|
-
tab: "text-to-diagram"
|
|
2744
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2696
2745
|
} | {
|
|
2697
2746
|
name: "commandPalette";
|
|
2698
2747
|
} | {
|
|
@@ -2700,7 +2749,7 @@ export declare const actionChangeArrowType: {
|
|
|
2700
2749
|
sourceElementId: string;
|
|
2701
2750
|
} | null;
|
|
2702
2751
|
defaultSidebarDockedPreference: boolean;
|
|
2703
|
-
lastPointerDownWith: import("
|
|
2752
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2704
2753
|
selectedElementIds: Readonly<{
|
|
2705
2754
|
[id: string]: true;
|
|
2706
2755
|
}>;
|
|
@@ -2718,7 +2767,7 @@ export declare const actionChangeArrowType: {
|
|
|
2718
2767
|
duration?: number | undefined;
|
|
2719
2768
|
} | null;
|
|
2720
2769
|
zenModeEnabled: boolean;
|
|
2721
|
-
theme: import("
|
|
2770
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2722
2771
|
gridSize: number;
|
|
2723
2772
|
gridStep: number;
|
|
2724
2773
|
gridModeEnabled: boolean;
|
|
@@ -2739,7 +2788,7 @@ export declare const actionChangeArrowType: {
|
|
|
2739
2788
|
[id: string]: true;
|
|
2740
2789
|
}> | undefined;
|
|
2741
2790
|
username?: string | null | undefined;
|
|
2742
|
-
userState?: import("
|
|
2791
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2743
2792
|
color?: {
|
|
2744
2793
|
background: string;
|
|
2745
2794
|
stroke: string;
|
|
@@ -2756,7 +2805,7 @@ export declare const actionChangeArrowType: {
|
|
|
2756
2805
|
open: boolean;
|
|
2757
2806
|
panels: number;
|
|
2758
2807
|
};
|
|
2759
|
-
currentChartType: import("
|
|
2808
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2760
2809
|
pasteDialog: {
|
|
2761
2810
|
shown: false;
|
|
2762
2811
|
data: null;
|
|
@@ -2764,8 +2813,7 @@ export declare const actionChangeArrowType: {
|
|
|
2764
2813
|
shown: true;
|
|
2765
2814
|
data: import("../charts").Spreadsheet;
|
|
2766
2815
|
};
|
|
2767
|
-
|
|
2768
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
2816
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2769
2817
|
selectedLinearElement: LinearElementEditor | null;
|
|
2770
2818
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2771
2819
|
originSnapOffset: {
|
|
@@ -2777,20 +2825,19 @@ export declare const actionChangeArrowType: {
|
|
|
2777
2825
|
followedBy: Set<import("../types").SocketId>;
|
|
2778
2826
|
isCropping: boolean;
|
|
2779
2827
|
croppingElementId: string | null;
|
|
2780
|
-
searchMatches:
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
}[];
|
|
2828
|
+
searchMatches: Readonly<{
|
|
2829
|
+
focusedId: string | null;
|
|
2830
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2831
|
+
}> | null;
|
|
2832
|
+
activeLockedId: string | null;
|
|
2833
|
+
lockedMultiSelections: {
|
|
2834
|
+
[groupId: string]: true;
|
|
2835
|
+
};
|
|
2836
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
2790
2837
|
};
|
|
2791
2838
|
captureUpdate: "IMMEDIATELY";
|
|
2792
2839
|
};
|
|
2793
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2840
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2794
2841
|
} & {
|
|
2795
2842
|
keyTest?: undefined;
|
|
2796
2843
|
};
|