@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-835eb8d
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-N4PQJPAH.js +5666 -0
- package/dist/dev/chunk-N4PQJPAH.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/data/{image-V26YBSDB.js → image-RT6RLBUE.js} +3 -3
- package/dist/dev/index.css +3573 -3309
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +31657 -23863
- 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-LS7FJGPW.js +86 -0
- package/dist/prod/chunk-SVEJI6WL.js +4 -0
- package/dist/prod/data/image-HPGPBQV2.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 +49 -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 +103 -109
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +74 -78
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +653 -502
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +218 -228
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +36 -38
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +108 -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 +39 -41
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +86 -92
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +36 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +369 -387
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +104 -67
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +260 -268
- package/dist/types/excalidraw/actions/actionGroup.d.ts +71 -75
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +564 -42
- package/dist/types/excalidraw/actions/actionLink.d.ts +37 -39
- package/dist/types/excalidraw/actions/actionMenu.d.ts +104 -110
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +69 -73
- package/dist/types/excalidraw/actions/actionProperties.d.ts +512 -525
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -39
- package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -40
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +36 -38
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +36 -38
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -209
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -39
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +36 -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 +39 -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 +10 -7
- package/dist/types/excalidraw/components/App.d.ts +51 -32
- 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 +11 -6
- 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 +4 -5
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -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/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 +3 -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 +3 -3
- 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 +3 -3
- 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 -1
- 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/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 +1 -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 +11 -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 +50 -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-RT6RLBUE.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
|
@@ -6,7 +6,7 @@ export declare const actionCopy: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
10
|
captureUpdate: "EVENTUALLY";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
@@ -18,17 +18,17 @@ export declare const actionCopy: {
|
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
activeEmbeddable: {
|
|
21
|
-
element: import("
|
|
22
|
-
state: "
|
|
21
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
state: "active" | "hover";
|
|
23
23
|
} | null;
|
|
24
|
-
newElement: import("
|
|
25
|
-
resizingElement: import("
|
|
26
|
-
multiElement: import("
|
|
27
|
-
selectionElement: import("
|
|
24
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
27
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
|
-
startBoundElement: import("
|
|
30
|
-
suggestedBindings: import("
|
|
31
|
-
frameToHighlight: import("
|
|
29
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
34
34
|
name: boolean;
|
|
@@ -36,12 +36,12 @@ export declare const actionCopy: {
|
|
|
36
36
|
clip: boolean;
|
|
37
37
|
};
|
|
38
38
|
editingFrame: string | null;
|
|
39
|
-
elementsToHighlight: import("
|
|
40
|
-
editingTextElement: import("
|
|
41
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
39
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
41
|
activeTool: {
|
|
43
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
43
|
locked: boolean;
|
|
44
|
+
fromSelection: boolean;
|
|
45
45
|
} & import("../types").ActiveTool;
|
|
46
46
|
penMode: boolean;
|
|
47
47
|
penDetected: boolean;
|
|
@@ -51,18 +51,18 @@ export declare const actionCopy: {
|
|
|
51
51
|
exportScale: number;
|
|
52
52
|
currentItemStrokeColor: string;
|
|
53
53
|
currentItemBackgroundColor: string;
|
|
54
|
-
currentItemFillStyle: import("
|
|
54
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
55
55
|
currentItemStrokeWidth: number;
|
|
56
|
-
currentItemStrokeStyle: import("
|
|
56
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
57
57
|
currentItemRoughness: number;
|
|
58
58
|
currentItemOpacity: number;
|
|
59
59
|
currentItemFontFamily: number;
|
|
60
60
|
currentItemFontSize: number;
|
|
61
61
|
currentItemTextAlign: string;
|
|
62
|
-
currentItemStartArrowhead: import("
|
|
63
|
-
currentItemEndArrowhead: import("
|
|
62
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
63
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
64
|
currentHoveredFontFamily: number | null;
|
|
65
|
-
currentItemRoundness: import("
|
|
65
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
66
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
67
67
|
viewBackgroundColor: string;
|
|
68
68
|
scrollX: number;
|
|
@@ -76,7 +76,7 @@ export declare const actionCopy: {
|
|
|
76
76
|
value: import("../types").NormalizedZoomValue;
|
|
77
77
|
}>;
|
|
78
78
|
openMenu: "canvas" | "shape" | null;
|
|
79
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
80
80
|
openSidebar: {
|
|
81
81
|
name: string;
|
|
82
82
|
tab?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const actionCopy: {
|
|
|
85
85
|
name: "imageExport" | "help" | "jsonExport";
|
|
86
86
|
} | {
|
|
87
87
|
name: "ttd";
|
|
88
|
-
tab: "text-to-diagram"
|
|
88
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
89
|
} | {
|
|
90
90
|
name: "commandPalette";
|
|
91
91
|
} | {
|
|
@@ -93,7 +93,7 @@ export declare const actionCopy: {
|
|
|
93
93
|
sourceElementId: string;
|
|
94
94
|
} | null;
|
|
95
95
|
defaultSidebarDockedPreference: boolean;
|
|
96
|
-
lastPointerDownWith: import("
|
|
96
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
97
97
|
selectedElementIds: Readonly<{
|
|
98
98
|
[id: string]: true;
|
|
99
99
|
}>;
|
|
@@ -111,7 +111,7 @@ export declare const actionCopy: {
|
|
|
111
111
|
duration?: number | undefined;
|
|
112
112
|
} | null;
|
|
113
113
|
zenModeEnabled: boolean;
|
|
114
|
-
theme: import("
|
|
114
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
115
115
|
gridSize: number;
|
|
116
116
|
gridStep: number;
|
|
117
117
|
gridModeEnabled: boolean;
|
|
@@ -132,7 +132,7 @@ export declare const actionCopy: {
|
|
|
132
132
|
[id: string]: true;
|
|
133
133
|
}> | undefined;
|
|
134
134
|
username?: string | null | undefined;
|
|
135
|
-
userState?: import("
|
|
135
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
136
136
|
color?: {
|
|
137
137
|
background: string;
|
|
138
138
|
stroke: string;
|
|
@@ -149,7 +149,7 @@ export declare const actionCopy: {
|
|
|
149
149
|
open: boolean;
|
|
150
150
|
panels: number;
|
|
151
151
|
};
|
|
152
|
-
currentChartType: import("
|
|
152
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
153
153
|
pasteDialog: {
|
|
154
154
|
shown: false;
|
|
155
155
|
data: null;
|
|
@@ -157,9 +157,8 @@ export declare const actionCopy: {
|
|
|
157
157
|
shown: true;
|
|
158
158
|
data: import("../charts").Spreadsheet;
|
|
159
159
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
160
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
161
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
163
|
originSnapOffset: {
|
|
165
164
|
x: number;
|
|
@@ -170,16 +169,15 @@ export declare const actionCopy: {
|
|
|
170
169
|
followedBy: Set<import("../types").SocketId>;
|
|
171
170
|
isCropping: boolean;
|
|
172
171
|
croppingElementId: string | null;
|
|
173
|
-
searchMatches:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}[];
|
|
172
|
+
searchMatches: Readonly<{
|
|
173
|
+
focusedId: string | null;
|
|
174
|
+
matches: readonly import("../types").SearchMatch[];
|
|
175
|
+
}> | null;
|
|
176
|
+
activeLockedId: string | null;
|
|
177
|
+
lockedMultiSelections: {
|
|
178
|
+
[groupId: string]: true;
|
|
179
|
+
};
|
|
180
|
+
stylesPanelMode: "compact" | "full";
|
|
183
181
|
};
|
|
184
182
|
} | {
|
|
185
183
|
captureUpdate: "EVENTUALLY";
|
|
@@ -195,7 +193,7 @@ export declare const actionPaste: {
|
|
|
195
193
|
trackEvent: {
|
|
196
194
|
category: "element";
|
|
197
195
|
};
|
|
198
|
-
perform: (elements: readonly import("
|
|
196
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
199
197
|
captureUpdate: "EVENTUALLY";
|
|
200
198
|
appState: {
|
|
201
199
|
errorMessage: string;
|
|
@@ -207,17 +205,17 @@ export declare const actionPaste: {
|
|
|
207
205
|
showWelcomeScreen: boolean;
|
|
208
206
|
isLoading: boolean;
|
|
209
207
|
activeEmbeddable: {
|
|
210
|
-
element: import("
|
|
211
|
-
state: "
|
|
208
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
209
|
+
state: "active" | "hover";
|
|
212
210
|
} | null;
|
|
213
|
-
newElement: import("
|
|
214
|
-
resizingElement: import("
|
|
215
|
-
multiElement: import("
|
|
216
|
-
selectionElement: import("
|
|
211
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
212
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
213
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
214
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
217
215
|
isBindingEnabled: boolean;
|
|
218
|
-
startBoundElement: import("
|
|
219
|
-
suggestedBindings: import("
|
|
220
|
-
frameToHighlight: import("
|
|
216
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
217
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
218
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
221
219
|
frameRendering: {
|
|
222
220
|
enabled: boolean;
|
|
223
221
|
name: boolean;
|
|
@@ -225,12 +223,12 @@ export declare const actionPaste: {
|
|
|
225
223
|
clip: boolean;
|
|
226
224
|
};
|
|
227
225
|
editingFrame: string | null;
|
|
228
|
-
elementsToHighlight: import("
|
|
229
|
-
editingTextElement: import("
|
|
230
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
226
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
227
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
231
228
|
activeTool: {
|
|
232
229
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
230
|
locked: boolean;
|
|
231
|
+
fromSelection: boolean;
|
|
234
232
|
} & import("../types").ActiveTool;
|
|
235
233
|
penMode: boolean;
|
|
236
234
|
penDetected: boolean;
|
|
@@ -240,18 +238,18 @@ export declare const actionPaste: {
|
|
|
240
238
|
exportScale: number;
|
|
241
239
|
currentItemStrokeColor: string;
|
|
242
240
|
currentItemBackgroundColor: string;
|
|
243
|
-
currentItemFillStyle: import("
|
|
241
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
244
242
|
currentItemStrokeWidth: number;
|
|
245
|
-
currentItemStrokeStyle: import("
|
|
243
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
246
244
|
currentItemRoughness: number;
|
|
247
245
|
currentItemOpacity: number;
|
|
248
246
|
currentItemFontFamily: number;
|
|
249
247
|
currentItemFontSize: number;
|
|
250
248
|
currentItemTextAlign: string;
|
|
251
|
-
currentItemStartArrowhead: import("
|
|
252
|
-
currentItemEndArrowhead: import("
|
|
249
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
250
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
253
251
|
currentHoveredFontFamily: number | null;
|
|
254
|
-
currentItemRoundness: import("
|
|
252
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
255
253
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
256
254
|
viewBackgroundColor: string;
|
|
257
255
|
scrollX: number;
|
|
@@ -265,7 +263,7 @@ export declare const actionPaste: {
|
|
|
265
263
|
value: import("../types").NormalizedZoomValue;
|
|
266
264
|
}>;
|
|
267
265
|
openMenu: "canvas" | "shape" | null;
|
|
268
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
266
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
269
267
|
openSidebar: {
|
|
270
268
|
name: string;
|
|
271
269
|
tab?: string | undefined;
|
|
@@ -274,7 +272,7 @@ export declare const actionPaste: {
|
|
|
274
272
|
name: "imageExport" | "help" | "jsonExport";
|
|
275
273
|
} | {
|
|
276
274
|
name: "ttd";
|
|
277
|
-
tab: "text-to-diagram"
|
|
275
|
+
tab: "mermaid" | "text-to-diagram";
|
|
278
276
|
} | {
|
|
279
277
|
name: "commandPalette";
|
|
280
278
|
} | {
|
|
@@ -282,7 +280,7 @@ export declare const actionPaste: {
|
|
|
282
280
|
sourceElementId: string;
|
|
283
281
|
} | null;
|
|
284
282
|
defaultSidebarDockedPreference: boolean;
|
|
285
|
-
lastPointerDownWith: import("
|
|
283
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
286
284
|
selectedElementIds: Readonly<{
|
|
287
285
|
[id: string]: true;
|
|
288
286
|
}>;
|
|
@@ -300,7 +298,7 @@ export declare const actionPaste: {
|
|
|
300
298
|
duration?: number | undefined;
|
|
301
299
|
} | null;
|
|
302
300
|
zenModeEnabled: boolean;
|
|
303
|
-
theme: import("
|
|
301
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
304
302
|
gridSize: number;
|
|
305
303
|
gridStep: number;
|
|
306
304
|
gridModeEnabled: boolean;
|
|
@@ -321,7 +319,7 @@ export declare const actionPaste: {
|
|
|
321
319
|
[id: string]: true;
|
|
322
320
|
}> | undefined;
|
|
323
321
|
username?: string | null | undefined;
|
|
324
|
-
userState?: import("
|
|
322
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
325
323
|
color?: {
|
|
326
324
|
background: string;
|
|
327
325
|
stroke: string;
|
|
@@ -338,7 +336,7 @@ export declare const actionPaste: {
|
|
|
338
336
|
open: boolean;
|
|
339
337
|
panels: number;
|
|
340
338
|
};
|
|
341
|
-
currentChartType: import("
|
|
339
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
342
340
|
pasteDialog: {
|
|
343
341
|
shown: false;
|
|
344
342
|
data: null;
|
|
@@ -346,9 +344,8 @@ export declare const actionPaste: {
|
|
|
346
344
|
shown: true;
|
|
347
345
|
data: import("../charts").Spreadsheet;
|
|
348
346
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
347
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
348
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
352
349
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
353
350
|
originSnapOffset: {
|
|
354
351
|
x: number;
|
|
@@ -359,16 +356,15 @@ export declare const actionPaste: {
|
|
|
359
356
|
followedBy: Set<import("../types").SocketId>;
|
|
360
357
|
isCropping: boolean;
|
|
361
358
|
croppingElementId: string | null;
|
|
362
|
-
searchMatches:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}[];
|
|
359
|
+
searchMatches: Readonly<{
|
|
360
|
+
focusedId: string | null;
|
|
361
|
+
matches: readonly import("../types").SearchMatch[];
|
|
362
|
+
}> | null;
|
|
363
|
+
activeLockedId: string | null;
|
|
364
|
+
lockedMultiSelections: {
|
|
365
|
+
[groupId: string]: true;
|
|
366
|
+
};
|
|
367
|
+
stylesPanelMode: "compact" | "full";
|
|
372
368
|
};
|
|
373
369
|
} | {
|
|
374
370
|
captureUpdate: "EVENTUALLY";
|
|
@@ -385,10 +381,10 @@ export declare const actionCut: {
|
|
|
385
381
|
trackEvent: {
|
|
386
382
|
category: "element";
|
|
387
383
|
};
|
|
388
|
-
perform: (elements: readonly import("
|
|
389
|
-
elements: import("
|
|
384
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
385
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
390
386
|
appState: {
|
|
391
|
-
|
|
387
|
+
selectedLinearElement: null;
|
|
392
388
|
contextMenu: {
|
|
393
389
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
394
390
|
top: number;
|
|
@@ -398,17 +394,17 @@ export declare const actionCut: {
|
|
|
398
394
|
isLoading: boolean;
|
|
399
395
|
errorMessage: import("react").ReactNode;
|
|
400
396
|
activeEmbeddable: {
|
|
401
|
-
element: import("
|
|
402
|
-
state: "
|
|
397
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
398
|
+
state: "active" | "hover";
|
|
403
399
|
} | null;
|
|
404
|
-
newElement: import("
|
|
405
|
-
resizingElement: import("
|
|
406
|
-
multiElement: import("
|
|
407
|
-
selectionElement: import("
|
|
400
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
401
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
402
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
403
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
408
404
|
isBindingEnabled: boolean;
|
|
409
|
-
startBoundElement: import("
|
|
410
|
-
suggestedBindings: import("
|
|
411
|
-
frameToHighlight: import("
|
|
405
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
406
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
407
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
412
408
|
frameRendering: {
|
|
413
409
|
enabled: boolean;
|
|
414
410
|
name: boolean;
|
|
@@ -416,11 +412,12 @@ export declare const actionCut: {
|
|
|
416
412
|
clip: boolean;
|
|
417
413
|
};
|
|
418
414
|
editingFrame: string | null;
|
|
419
|
-
elementsToHighlight: import("
|
|
420
|
-
editingTextElement: import("
|
|
415
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
416
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
421
417
|
activeTool: {
|
|
422
418
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
423
419
|
locked: boolean;
|
|
420
|
+
fromSelection: boolean;
|
|
424
421
|
} & import("../types").ActiveTool;
|
|
425
422
|
penMode: boolean;
|
|
426
423
|
penDetected: boolean;
|
|
@@ -430,18 +427,18 @@ export declare const actionCut: {
|
|
|
430
427
|
exportScale: number;
|
|
431
428
|
currentItemStrokeColor: string;
|
|
432
429
|
currentItemBackgroundColor: string;
|
|
433
|
-
currentItemFillStyle: import("
|
|
430
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
434
431
|
currentItemStrokeWidth: number;
|
|
435
|
-
currentItemStrokeStyle: import("
|
|
432
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
436
433
|
currentItemRoughness: number;
|
|
437
434
|
currentItemOpacity: number;
|
|
438
435
|
currentItemFontFamily: number;
|
|
439
436
|
currentItemFontSize: number;
|
|
440
437
|
currentItemTextAlign: string;
|
|
441
|
-
currentItemStartArrowhead: import("
|
|
442
|
-
currentItemEndArrowhead: import("
|
|
438
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
439
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
443
440
|
currentHoveredFontFamily: number | null;
|
|
444
|
-
currentItemRoundness: import("
|
|
441
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
445
442
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
446
443
|
viewBackgroundColor: string;
|
|
447
444
|
scrollX: number;
|
|
@@ -455,7 +452,7 @@ export declare const actionCut: {
|
|
|
455
452
|
value: import("../types").NormalizedZoomValue;
|
|
456
453
|
}>;
|
|
457
454
|
openMenu: "canvas" | "shape" | null;
|
|
458
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
455
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
459
456
|
openSidebar: {
|
|
460
457
|
name: string;
|
|
461
458
|
tab?: string | undefined;
|
|
@@ -464,7 +461,7 @@ export declare const actionCut: {
|
|
|
464
461
|
name: "imageExport" | "help" | "jsonExport";
|
|
465
462
|
} | {
|
|
466
463
|
name: "ttd";
|
|
467
|
-
tab: "text-to-diagram"
|
|
464
|
+
tab: "mermaid" | "text-to-diagram";
|
|
468
465
|
} | {
|
|
469
466
|
name: "commandPalette";
|
|
470
467
|
} | {
|
|
@@ -472,7 +469,7 @@ export declare const actionCut: {
|
|
|
472
469
|
sourceElementId: string;
|
|
473
470
|
} | null;
|
|
474
471
|
defaultSidebarDockedPreference: boolean;
|
|
475
|
-
lastPointerDownWith: import("
|
|
472
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
476
473
|
selectedElementIds: Readonly<{
|
|
477
474
|
[id: string]: true;
|
|
478
475
|
}>;
|
|
@@ -490,7 +487,7 @@ export declare const actionCut: {
|
|
|
490
487
|
duration?: number | undefined;
|
|
491
488
|
} | null;
|
|
492
489
|
zenModeEnabled: boolean;
|
|
493
|
-
theme: import("
|
|
490
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
494
491
|
gridSize: number;
|
|
495
492
|
gridStep: number;
|
|
496
493
|
gridModeEnabled: boolean;
|
|
@@ -511,7 +508,7 @@ export declare const actionCut: {
|
|
|
511
508
|
[id: string]: true;
|
|
512
509
|
}> | undefined;
|
|
513
510
|
username?: string | null | undefined;
|
|
514
|
-
userState?: import("
|
|
511
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
515
512
|
color?: {
|
|
516
513
|
background: string;
|
|
517
514
|
stroke: string;
|
|
@@ -528,7 +525,7 @@ export declare const actionCut: {
|
|
|
528
525
|
open: boolean;
|
|
529
526
|
panels: number;
|
|
530
527
|
};
|
|
531
|
-
currentChartType: import("
|
|
528
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
532
529
|
pasteDialog: {
|
|
533
530
|
shown: false;
|
|
534
531
|
data: null;
|
|
@@ -536,9 +533,7 @@ export declare const actionCut: {
|
|
|
536
533
|
shown: true;
|
|
537
534
|
data: import("../charts").Spreadsheet;
|
|
538
535
|
};
|
|
539
|
-
|
|
540
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
541
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
536
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
542
537
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
543
538
|
originSnapOffset: {
|
|
544
539
|
x: number;
|
|
@@ -549,25 +544,24 @@ export declare const actionCut: {
|
|
|
549
544
|
followedBy: Set<import("../types").SocketId>;
|
|
550
545
|
isCropping: boolean;
|
|
551
546
|
croppingElementId: string | null;
|
|
552
|
-
searchMatches:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}[];
|
|
547
|
+
searchMatches: Readonly<{
|
|
548
|
+
focusedId: string | null;
|
|
549
|
+
matches: readonly import("../types").SearchMatch[];
|
|
550
|
+
}> | null;
|
|
551
|
+
activeLockedId: string | null;
|
|
552
|
+
lockedMultiSelections: {
|
|
553
|
+
[groupId: string]: true;
|
|
554
|
+
};
|
|
555
|
+
stylesPanelMode: "compact" | "full";
|
|
562
556
|
};
|
|
563
557
|
captureUpdate: "IMMEDIATELY";
|
|
564
558
|
} | {
|
|
565
|
-
elements: readonly import("
|
|
559
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
566
560
|
appState: {
|
|
567
|
-
|
|
561
|
+
selectedLinearElement: {
|
|
568
562
|
selectedPointsIndices: number[];
|
|
569
|
-
startBindingElement: import("
|
|
570
|
-
endBindingElement: import("
|
|
563
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
564
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
571
565
|
elementId: string & {
|
|
572
566
|
_brand: "excalidrawLinearElementId";
|
|
573
567
|
};
|
|
@@ -594,6 +588,8 @@ export declare const actionCut: {
|
|
|
594
588
|
hoverPointIndex: number;
|
|
595
589
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
596
590
|
elbowed: boolean;
|
|
591
|
+
customLineAngle: number | null;
|
|
592
|
+
isEditing: boolean;
|
|
597
593
|
};
|
|
598
594
|
contextMenu: {
|
|
599
595
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -604,17 +600,17 @@ export declare const actionCut: {
|
|
|
604
600
|
isLoading: boolean;
|
|
605
601
|
errorMessage: import("react").ReactNode;
|
|
606
602
|
activeEmbeddable: {
|
|
607
|
-
element: import("
|
|
608
|
-
state: "
|
|
603
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
604
|
+
state: "active" | "hover";
|
|
609
605
|
} | null;
|
|
610
|
-
newElement: import("
|
|
611
|
-
resizingElement: import("
|
|
612
|
-
multiElement: import("
|
|
613
|
-
selectionElement: import("
|
|
606
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
607
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
608
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
609
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
614
610
|
isBindingEnabled: boolean;
|
|
615
|
-
startBoundElement: import("
|
|
616
|
-
suggestedBindings: import("
|
|
617
|
-
frameToHighlight: import("
|
|
611
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
612
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
613
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
618
614
|
frameRendering: {
|
|
619
615
|
enabled: boolean;
|
|
620
616
|
name: boolean;
|
|
@@ -622,11 +618,12 @@ export declare const actionCut: {
|
|
|
622
618
|
clip: boolean;
|
|
623
619
|
};
|
|
624
620
|
editingFrame: string | null;
|
|
625
|
-
elementsToHighlight: import("
|
|
626
|
-
editingTextElement: import("
|
|
621
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
622
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
627
623
|
activeTool: {
|
|
628
624
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
629
625
|
locked: boolean;
|
|
626
|
+
fromSelection: boolean;
|
|
630
627
|
} & import("../types").ActiveTool;
|
|
631
628
|
penMode: boolean;
|
|
632
629
|
penDetected: boolean;
|
|
@@ -636,18 +633,18 @@ export declare const actionCut: {
|
|
|
636
633
|
exportScale: number;
|
|
637
634
|
currentItemStrokeColor: string;
|
|
638
635
|
currentItemBackgroundColor: string;
|
|
639
|
-
currentItemFillStyle: import("
|
|
636
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
640
637
|
currentItemStrokeWidth: number;
|
|
641
|
-
currentItemStrokeStyle: import("
|
|
638
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
642
639
|
currentItemRoughness: number;
|
|
643
640
|
currentItemOpacity: number;
|
|
644
641
|
currentItemFontFamily: number;
|
|
645
642
|
currentItemFontSize: number;
|
|
646
643
|
currentItemTextAlign: string;
|
|
647
|
-
currentItemStartArrowhead: import("
|
|
648
|
-
currentItemEndArrowhead: import("
|
|
644
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
645
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
649
646
|
currentHoveredFontFamily: number | null;
|
|
650
|
-
currentItemRoundness: import("
|
|
647
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
651
648
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
652
649
|
viewBackgroundColor: string;
|
|
653
650
|
scrollX: number;
|
|
@@ -661,7 +658,7 @@ export declare const actionCut: {
|
|
|
661
658
|
value: import("../types").NormalizedZoomValue;
|
|
662
659
|
}>;
|
|
663
660
|
openMenu: "canvas" | "shape" | null;
|
|
664
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
661
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
665
662
|
openSidebar: {
|
|
666
663
|
name: string;
|
|
667
664
|
tab?: string | undefined;
|
|
@@ -670,7 +667,7 @@ export declare const actionCut: {
|
|
|
670
667
|
name: "imageExport" | "help" | "jsonExport";
|
|
671
668
|
} | {
|
|
672
669
|
name: "ttd";
|
|
673
|
-
tab: "text-to-diagram"
|
|
670
|
+
tab: "mermaid" | "text-to-diagram";
|
|
674
671
|
} | {
|
|
675
672
|
name: "commandPalette";
|
|
676
673
|
} | {
|
|
@@ -678,7 +675,7 @@ export declare const actionCut: {
|
|
|
678
675
|
sourceElementId: string;
|
|
679
676
|
} | null;
|
|
680
677
|
defaultSidebarDockedPreference: boolean;
|
|
681
|
-
lastPointerDownWith: import("
|
|
678
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
682
679
|
selectedElementIds: Readonly<{
|
|
683
680
|
[id: string]: true;
|
|
684
681
|
}>;
|
|
@@ -696,7 +693,7 @@ export declare const actionCut: {
|
|
|
696
693
|
duration?: number | undefined;
|
|
697
694
|
} | null;
|
|
698
695
|
zenModeEnabled: boolean;
|
|
699
|
-
theme: import("
|
|
696
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
700
697
|
gridSize: number;
|
|
701
698
|
gridStep: number;
|
|
702
699
|
gridModeEnabled: boolean;
|
|
@@ -717,7 +714,7 @@ export declare const actionCut: {
|
|
|
717
714
|
[id: string]: true;
|
|
718
715
|
}> | undefined;
|
|
719
716
|
username?: string | null | undefined;
|
|
720
|
-
userState?: import("
|
|
717
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
721
718
|
color?: {
|
|
722
719
|
background: string;
|
|
723
720
|
stroke: string;
|
|
@@ -734,7 +731,7 @@ export declare const actionCut: {
|
|
|
734
731
|
open: boolean;
|
|
735
732
|
panels: number;
|
|
736
733
|
};
|
|
737
|
-
currentChartType: import("
|
|
734
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
738
735
|
pasteDialog: {
|
|
739
736
|
shown: false;
|
|
740
737
|
data: null;
|
|
@@ -742,9 +739,7 @@ export declare const actionCut: {
|
|
|
742
739
|
shown: true;
|
|
743
740
|
data: import("../charts").Spreadsheet;
|
|
744
741
|
};
|
|
745
|
-
|
|
746
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
747
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
742
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
748
743
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
749
744
|
originSnapOffset: {
|
|
750
745
|
x: number;
|
|
@@ -755,34 +750,35 @@ export declare const actionCut: {
|
|
|
755
750
|
followedBy: Set<import("../types").SocketId>;
|
|
756
751
|
isCropping: boolean;
|
|
757
752
|
croppingElementId: string | null;
|
|
758
|
-
searchMatches:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}[];
|
|
753
|
+
searchMatches: Readonly<{
|
|
754
|
+
focusedId: string | null;
|
|
755
|
+
matches: readonly import("../types").SearchMatch[];
|
|
756
|
+
}> | null;
|
|
757
|
+
activeLockedId: string | null;
|
|
758
|
+
lockedMultiSelections: {
|
|
759
|
+
[groupId: string]: true;
|
|
760
|
+
};
|
|
761
|
+
stylesPanelMode: "compact" | "full";
|
|
768
762
|
};
|
|
769
763
|
captureUpdate: "IMMEDIATELY";
|
|
770
764
|
} | {
|
|
771
|
-
elements: import("
|
|
765
|
+
elements: import("@excalidraw/element/types").ExcalidrawElement[];
|
|
772
766
|
appState: {
|
|
773
767
|
activeTool: {
|
|
774
768
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
775
769
|
locked: boolean;
|
|
770
|
+
fromSelection: boolean;
|
|
776
771
|
} & import("../types").ActiveTool;
|
|
777
772
|
multiElement: null;
|
|
778
773
|
activeEmbeddable: null;
|
|
774
|
+
selectedLinearElement: null;
|
|
775
|
+
editingGroupId: string | null;
|
|
779
776
|
selectedElementIds: Readonly<{
|
|
780
777
|
[id: string]: true;
|
|
781
778
|
}>;
|
|
782
779
|
selectedGroupIds: {
|
|
783
780
|
[groupId: string]: boolean;
|
|
784
781
|
};
|
|
785
|
-
editingGroupId: string | null;
|
|
786
782
|
contextMenu: {
|
|
787
783
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
788
784
|
top: number;
|
|
@@ -791,13 +787,13 @@ export declare const actionCut: {
|
|
|
791
787
|
showWelcomeScreen: boolean;
|
|
792
788
|
isLoading: boolean;
|
|
793
789
|
errorMessage: import("react").ReactNode;
|
|
794
|
-
newElement: import("
|
|
795
|
-
resizingElement: import("
|
|
796
|
-
selectionElement: import("
|
|
790
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
791
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
792
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
797
793
|
isBindingEnabled: boolean;
|
|
798
|
-
startBoundElement: import("
|
|
799
|
-
suggestedBindings: import("
|
|
800
|
-
frameToHighlight: import("
|
|
794
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
795
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
796
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
801
797
|
frameRendering: {
|
|
802
798
|
enabled: boolean;
|
|
803
799
|
name: boolean;
|
|
@@ -805,9 +801,8 @@ export declare const actionCut: {
|
|
|
805
801
|
clip: boolean;
|
|
806
802
|
};
|
|
807
803
|
editingFrame: string | null;
|
|
808
|
-
elementsToHighlight: import("
|
|
809
|
-
editingTextElement: import("
|
|
810
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
804
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
805
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
811
806
|
penMode: boolean;
|
|
812
807
|
penDetected: boolean;
|
|
813
808
|
exportBackground: boolean;
|
|
@@ -816,18 +811,18 @@ export declare const actionCut: {
|
|
|
816
811
|
exportScale: number;
|
|
817
812
|
currentItemStrokeColor: string;
|
|
818
813
|
currentItemBackgroundColor: string;
|
|
819
|
-
currentItemFillStyle: import("
|
|
814
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
820
815
|
currentItemStrokeWidth: number;
|
|
821
|
-
currentItemStrokeStyle: import("
|
|
816
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
822
817
|
currentItemRoughness: number;
|
|
823
818
|
currentItemOpacity: number;
|
|
824
819
|
currentItemFontFamily: number;
|
|
825
820
|
currentItemFontSize: number;
|
|
826
821
|
currentItemTextAlign: string;
|
|
827
|
-
currentItemStartArrowhead: import("
|
|
828
|
-
currentItemEndArrowhead: import("
|
|
822
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
823
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
829
824
|
currentHoveredFontFamily: number | null;
|
|
830
|
-
currentItemRoundness: import("
|
|
825
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
831
826
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
832
827
|
viewBackgroundColor: string;
|
|
833
828
|
scrollX: number;
|
|
@@ -841,7 +836,7 @@ export declare const actionCut: {
|
|
|
841
836
|
value: import("../types").NormalizedZoomValue;
|
|
842
837
|
}>;
|
|
843
838
|
openMenu: "canvas" | "shape" | null;
|
|
844
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
839
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
845
840
|
openSidebar: {
|
|
846
841
|
name: string;
|
|
847
842
|
tab?: string | undefined;
|
|
@@ -850,7 +845,7 @@ export declare const actionCut: {
|
|
|
850
845
|
name: "imageExport" | "help" | "jsonExport";
|
|
851
846
|
} | {
|
|
852
847
|
name: "ttd";
|
|
853
|
-
tab: "text-to-diagram"
|
|
848
|
+
tab: "mermaid" | "text-to-diagram";
|
|
854
849
|
} | {
|
|
855
850
|
name: "commandPalette";
|
|
856
851
|
} | {
|
|
@@ -858,7 +853,7 @@ export declare const actionCut: {
|
|
|
858
853
|
sourceElementId: string;
|
|
859
854
|
} | null;
|
|
860
855
|
defaultSidebarDockedPreference: boolean;
|
|
861
|
-
lastPointerDownWith: import("
|
|
856
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
862
857
|
hoveredElementIds: Readonly<{
|
|
863
858
|
[id: string]: true;
|
|
864
859
|
}>;
|
|
@@ -873,7 +868,7 @@ export declare const actionCut: {
|
|
|
873
868
|
duration?: number | undefined;
|
|
874
869
|
} | null;
|
|
875
870
|
zenModeEnabled: boolean;
|
|
876
|
-
theme: import("
|
|
871
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
877
872
|
gridSize: number;
|
|
878
873
|
gridStep: number;
|
|
879
874
|
gridModeEnabled: boolean;
|
|
@@ -890,7 +885,7 @@ export declare const actionCut: {
|
|
|
890
885
|
[id: string]: true;
|
|
891
886
|
}> | undefined;
|
|
892
887
|
username?: string | null | undefined;
|
|
893
|
-
userState?: import("
|
|
888
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
894
889
|
color?: {
|
|
895
890
|
background: string;
|
|
896
891
|
stroke: string;
|
|
@@ -907,7 +902,7 @@ export declare const actionCut: {
|
|
|
907
902
|
open: boolean;
|
|
908
903
|
panels: number;
|
|
909
904
|
};
|
|
910
|
-
currentChartType: import("
|
|
905
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
911
906
|
pasteDialog: {
|
|
912
907
|
shown: false;
|
|
913
908
|
data: null;
|
|
@@ -915,9 +910,7 @@ export declare const actionCut: {
|
|
|
915
910
|
shown: true;
|
|
916
911
|
data: import("../charts").Spreadsheet;
|
|
917
912
|
};
|
|
918
|
-
|
|
919
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
920
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
913
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
921
914
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
922
915
|
originSnapOffset: {
|
|
923
916
|
x: number;
|
|
@@ -928,16 +921,15 @@ export declare const actionCut: {
|
|
|
928
921
|
followedBy: Set<import("../types").SocketId>;
|
|
929
922
|
isCropping: boolean;
|
|
930
923
|
croppingElementId: string | null;
|
|
931
|
-
searchMatches:
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}[];
|
|
924
|
+
searchMatches: Readonly<{
|
|
925
|
+
focusedId: string | null;
|
|
926
|
+
matches: readonly import("../types").SearchMatch[];
|
|
927
|
+
}> | null;
|
|
928
|
+
activeLockedId: string | null;
|
|
929
|
+
lockedMultiSelections: {
|
|
930
|
+
[groupId: string]: true;
|
|
931
|
+
};
|
|
932
|
+
stylesPanelMode: "compact" | "full";
|
|
941
933
|
};
|
|
942
934
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
943
935
|
};
|
|
@@ -952,7 +944,7 @@ export declare const actionCopyAsSvg: {
|
|
|
952
944
|
trackEvent: {
|
|
953
945
|
category: "element";
|
|
954
946
|
};
|
|
955
|
-
perform: (elements: readonly import("
|
|
947
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
956
948
|
captureUpdate: "EVENTUALLY";
|
|
957
949
|
appState?: undefined;
|
|
958
950
|
} | {
|
|
@@ -970,7 +962,7 @@ export declare const actionCopyAsSvg: {
|
|
|
970
962
|
};
|
|
971
963
|
captureUpdate: "EVENTUALLY";
|
|
972
964
|
}>;
|
|
973
|
-
predicate: (elements: readonly import("
|
|
965
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
974
966
|
keywords: string[];
|
|
975
967
|
} & {
|
|
976
968
|
keyTest?: undefined;
|
|
@@ -982,7 +974,7 @@ export declare const actionCopyAsPng: {
|
|
|
982
974
|
trackEvent: {
|
|
983
975
|
category: "element";
|
|
984
976
|
};
|
|
985
|
-
perform: (elements: readonly import("
|
|
977
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
986
978
|
captureUpdate: "EVENTUALLY";
|
|
987
979
|
appState?: undefined;
|
|
988
980
|
} | {
|
|
@@ -996,17 +988,17 @@ export declare const actionCopyAsPng: {
|
|
|
996
988
|
showWelcomeScreen: boolean;
|
|
997
989
|
isLoading: boolean;
|
|
998
990
|
activeEmbeddable: {
|
|
999
|
-
element: import("
|
|
1000
|
-
state: "
|
|
991
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
992
|
+
state: "active" | "hover";
|
|
1001
993
|
} | null;
|
|
1002
|
-
newElement: import("
|
|
1003
|
-
resizingElement: import("
|
|
1004
|
-
multiElement: import("
|
|
1005
|
-
selectionElement: import("
|
|
994
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
995
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
996
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
997
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1006
998
|
isBindingEnabled: boolean;
|
|
1007
|
-
startBoundElement: import("
|
|
1008
|
-
suggestedBindings: import("
|
|
1009
|
-
frameToHighlight: import("
|
|
999
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1000
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1001
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1010
1002
|
frameRendering: {
|
|
1011
1003
|
enabled: boolean;
|
|
1012
1004
|
name: boolean;
|
|
@@ -1014,12 +1006,12 @@ export declare const actionCopyAsPng: {
|
|
|
1014
1006
|
clip: boolean;
|
|
1015
1007
|
};
|
|
1016
1008
|
editingFrame: string | null;
|
|
1017
|
-
elementsToHighlight: import("
|
|
1018
|
-
editingTextElement: import("
|
|
1019
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1009
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1010
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1020
1011
|
activeTool: {
|
|
1021
1012
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1022
1013
|
locked: boolean;
|
|
1014
|
+
fromSelection: boolean;
|
|
1023
1015
|
} & import("../types").ActiveTool;
|
|
1024
1016
|
penMode: boolean;
|
|
1025
1017
|
penDetected: boolean;
|
|
@@ -1029,18 +1021,18 @@ export declare const actionCopyAsPng: {
|
|
|
1029
1021
|
exportScale: number;
|
|
1030
1022
|
currentItemStrokeColor: string;
|
|
1031
1023
|
currentItemBackgroundColor: string;
|
|
1032
|
-
currentItemFillStyle: import("
|
|
1024
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1033
1025
|
currentItemStrokeWidth: number;
|
|
1034
|
-
currentItemStrokeStyle: import("
|
|
1026
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1035
1027
|
currentItemRoughness: number;
|
|
1036
1028
|
currentItemOpacity: number;
|
|
1037
1029
|
currentItemFontFamily: number;
|
|
1038
1030
|
currentItemFontSize: number;
|
|
1039
1031
|
currentItemTextAlign: string;
|
|
1040
|
-
currentItemStartArrowhead: import("
|
|
1041
|
-
currentItemEndArrowhead: import("
|
|
1032
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1033
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1042
1034
|
currentHoveredFontFamily: number | null;
|
|
1043
|
-
currentItemRoundness: import("
|
|
1035
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1044
1036
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1045
1037
|
viewBackgroundColor: string;
|
|
1046
1038
|
scrollX: number;
|
|
@@ -1054,7 +1046,7 @@ export declare const actionCopyAsPng: {
|
|
|
1054
1046
|
value: import("../types").NormalizedZoomValue;
|
|
1055
1047
|
}>;
|
|
1056
1048
|
openMenu: "canvas" | "shape" | null;
|
|
1057
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1049
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1058
1050
|
openSidebar: {
|
|
1059
1051
|
name: string;
|
|
1060
1052
|
tab?: string | undefined;
|
|
@@ -1063,7 +1055,7 @@ export declare const actionCopyAsPng: {
|
|
|
1063
1055
|
name: "imageExport" | "help" | "jsonExport";
|
|
1064
1056
|
} | {
|
|
1065
1057
|
name: "ttd";
|
|
1066
|
-
tab: "text-to-diagram"
|
|
1058
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1067
1059
|
} | {
|
|
1068
1060
|
name: "commandPalette";
|
|
1069
1061
|
} | {
|
|
@@ -1071,7 +1063,7 @@ export declare const actionCopyAsPng: {
|
|
|
1071
1063
|
sourceElementId: string;
|
|
1072
1064
|
} | null;
|
|
1073
1065
|
defaultSidebarDockedPreference: boolean;
|
|
1074
|
-
lastPointerDownWith: import("
|
|
1066
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1075
1067
|
selectedElementIds: Readonly<{
|
|
1076
1068
|
[id: string]: true;
|
|
1077
1069
|
}>;
|
|
@@ -1089,7 +1081,7 @@ export declare const actionCopyAsPng: {
|
|
|
1089
1081
|
duration?: number | undefined;
|
|
1090
1082
|
} | null;
|
|
1091
1083
|
zenModeEnabled: boolean;
|
|
1092
|
-
theme: import("
|
|
1084
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1093
1085
|
gridSize: number;
|
|
1094
1086
|
gridStep: number;
|
|
1095
1087
|
gridModeEnabled: boolean;
|
|
@@ -1110,7 +1102,7 @@ export declare const actionCopyAsPng: {
|
|
|
1110
1102
|
[id: string]: true;
|
|
1111
1103
|
}> | undefined;
|
|
1112
1104
|
username?: string | null | undefined;
|
|
1113
|
-
userState?: import("
|
|
1105
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1114
1106
|
color?: {
|
|
1115
1107
|
background: string;
|
|
1116
1108
|
stroke: string;
|
|
@@ -1127,7 +1119,7 @@ export declare const actionCopyAsPng: {
|
|
|
1127
1119
|
open: boolean;
|
|
1128
1120
|
panels: number;
|
|
1129
1121
|
};
|
|
1130
|
-
currentChartType: import("
|
|
1122
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1131
1123
|
pasteDialog: {
|
|
1132
1124
|
shown: false;
|
|
1133
1125
|
data: null;
|
|
@@ -1135,9 +1127,8 @@ export declare const actionCopyAsPng: {
|
|
|
1135
1127
|
shown: true;
|
|
1136
1128
|
data: import("../charts").Spreadsheet;
|
|
1137
1129
|
};
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1130
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1131
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1141
1132
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1142
1133
|
originSnapOffset: {
|
|
1143
1134
|
x: number;
|
|
@@ -1148,20 +1139,19 @@ export declare const actionCopyAsPng: {
|
|
|
1148
1139
|
followedBy: Set<import("../types").SocketId>;
|
|
1149
1140
|
isCropping: boolean;
|
|
1150
1141
|
croppingElementId: string | null;
|
|
1151
|
-
searchMatches:
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}[];
|
|
1142
|
+
searchMatches: Readonly<{
|
|
1143
|
+
focusedId: string | null;
|
|
1144
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1145
|
+
}> | null;
|
|
1146
|
+
activeLockedId: string | null;
|
|
1147
|
+
lockedMultiSelections: {
|
|
1148
|
+
[groupId: string]: true;
|
|
1149
|
+
};
|
|
1150
|
+
stylesPanelMode: "compact" | "full";
|
|
1161
1151
|
};
|
|
1162
1152
|
captureUpdate: "EVENTUALLY";
|
|
1163
1153
|
}>;
|
|
1164
|
-
predicate: (elements: readonly import("
|
|
1154
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1165
1155
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1166
1156
|
keywords: string[];
|
|
1167
1157
|
} & {
|
|
@@ -1173,10 +1163,10 @@ export declare const copyText: {
|
|
|
1173
1163
|
trackEvent: {
|
|
1174
1164
|
category: "element";
|
|
1175
1165
|
};
|
|
1176
|
-
perform: (elements: readonly import("
|
|
1166
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1177
1167
|
captureUpdate: "EVENTUALLY";
|
|
1178
1168
|
};
|
|
1179
|
-
predicate: (elements: readonly import("
|
|
1169
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1180
1170
|
keywords: string[];
|
|
1181
1171
|
} & {
|
|
1182
1172
|
keyTest?: undefined;
|