@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Theme } from "
|
|
2
|
+
import type { Theme } from "@excalidraw/element/types";
|
|
3
3
|
import "../components/ToolIcon.scss";
|
|
4
4
|
export declare const actionChangeProjectName: {
|
|
5
5
|
name: "changeProjectName";
|
|
6
6
|
label: string;
|
|
7
7
|
trackEvent: false;
|
|
8
|
-
perform: (_elements: readonly import("
|
|
8
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
9
9
|
appState: {
|
|
10
10
|
name: any;
|
|
11
11
|
contextMenu: {
|
|
@@ -17,17 +17,17 @@ export declare const actionChangeProjectName: {
|
|
|
17
17
|
isLoading: boolean;
|
|
18
18
|
errorMessage: import("react").ReactNode;
|
|
19
19
|
activeEmbeddable: {
|
|
20
|
-
element: import("
|
|
21
|
-
state: "
|
|
20
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
21
|
+
state: "active" | "hover";
|
|
22
22
|
} | null;
|
|
23
|
-
newElement: import("
|
|
24
|
-
resizingElement: import("
|
|
25
|
-
multiElement: import("
|
|
26
|
-
selectionElement: import("
|
|
23
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
24
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
26
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
27
|
isBindingEnabled: boolean;
|
|
28
|
-
startBoundElement: import("
|
|
29
|
-
suggestedBindings: import("
|
|
30
|
-
frameToHighlight: import("
|
|
28
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
30
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
name: boolean;
|
|
@@ -35,12 +35,12 @@ export declare const actionChangeProjectName: {
|
|
|
35
35
|
clip: boolean;
|
|
36
36
|
};
|
|
37
37
|
editingFrame: string | null;
|
|
38
|
-
elementsToHighlight: import("
|
|
39
|
-
editingTextElement: import("
|
|
40
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
38
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
40
|
activeTool: {
|
|
42
41
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
42
|
locked: boolean;
|
|
43
|
+
fromSelection: boolean;
|
|
44
44
|
} & import("../types").ActiveTool;
|
|
45
45
|
penMode: boolean;
|
|
46
46
|
penDetected: boolean;
|
|
@@ -50,18 +50,18 @@ export declare const actionChangeProjectName: {
|
|
|
50
50
|
exportScale: number;
|
|
51
51
|
currentItemStrokeColor: string;
|
|
52
52
|
currentItemBackgroundColor: string;
|
|
53
|
-
currentItemFillStyle: import("
|
|
53
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
54
54
|
currentItemStrokeWidth: number;
|
|
55
|
-
currentItemStrokeStyle: import("
|
|
55
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
56
56
|
currentItemRoughness: number;
|
|
57
57
|
currentItemOpacity: number;
|
|
58
58
|
currentItemFontFamily: number;
|
|
59
59
|
currentItemFontSize: number;
|
|
60
60
|
currentItemTextAlign: string;
|
|
61
|
-
currentItemStartArrowhead: import("
|
|
62
|
-
currentItemEndArrowhead: import("
|
|
61
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
62
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
63
63
|
currentHoveredFontFamily: number | null;
|
|
64
|
-
currentItemRoundness: import("
|
|
64
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
65
65
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
66
66
|
viewBackgroundColor: string;
|
|
67
67
|
scrollX: number;
|
|
@@ -74,7 +74,7 @@ export declare const actionChangeProjectName: {
|
|
|
74
74
|
value: import("../types").NormalizedZoomValue;
|
|
75
75
|
}>;
|
|
76
76
|
openMenu: "canvas" | "shape" | null;
|
|
77
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
77
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
78
78
|
openSidebar: {
|
|
79
79
|
name: string;
|
|
80
80
|
tab?: string | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const actionChangeProjectName: {
|
|
|
83
83
|
name: "imageExport" | "help" | "jsonExport";
|
|
84
84
|
} | {
|
|
85
85
|
name: "ttd";
|
|
86
|
-
tab: "text-to-diagram"
|
|
86
|
+
tab: "mermaid" | "text-to-diagram";
|
|
87
87
|
} | {
|
|
88
88
|
name: "commandPalette";
|
|
89
89
|
} | {
|
|
@@ -91,7 +91,7 @@ export declare const actionChangeProjectName: {
|
|
|
91
91
|
sourceElementId: string;
|
|
92
92
|
} | null;
|
|
93
93
|
defaultSidebarDockedPreference: boolean;
|
|
94
|
-
lastPointerDownWith: import("
|
|
94
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
95
95
|
selectedElementIds: Readonly<{
|
|
96
96
|
[id: string]: true;
|
|
97
97
|
}>;
|
|
@@ -130,7 +130,7 @@ export declare const actionChangeProjectName: {
|
|
|
130
130
|
[id: string]: true;
|
|
131
131
|
}> | undefined;
|
|
132
132
|
username?: string | null | undefined;
|
|
133
|
-
userState?: import("
|
|
133
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
134
134
|
color?: {
|
|
135
135
|
background: string;
|
|
136
136
|
stroke: string;
|
|
@@ -147,7 +147,7 @@ export declare const actionChangeProjectName: {
|
|
|
147
147
|
open: boolean;
|
|
148
148
|
panels: number;
|
|
149
149
|
};
|
|
150
|
-
currentChartType: import("
|
|
150
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
151
151
|
pasteDialog: {
|
|
152
152
|
shown: false;
|
|
153
153
|
data: null;
|
|
@@ -155,9 +155,8 @@ export declare const actionChangeProjectName: {
|
|
|
155
155
|
shown: true;
|
|
156
156
|
data: import("../charts").Spreadsheet;
|
|
157
157
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
158
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
159
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
161
160
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
162
161
|
originSnapOffset: {
|
|
163
162
|
x: number;
|
|
@@ -168,16 +167,15 @@ export declare const actionChangeProjectName: {
|
|
|
168
167
|
followedBy: Set<import("../types").SocketId>;
|
|
169
168
|
isCropping: boolean;
|
|
170
169
|
croppingElementId: string | null;
|
|
171
|
-
searchMatches:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}[];
|
|
170
|
+
searchMatches: Readonly<{
|
|
171
|
+
focusedId: string | null;
|
|
172
|
+
matches: readonly import("../types").SearchMatch[];
|
|
173
|
+
}> | null;
|
|
174
|
+
activeLockedId: string | null;
|
|
175
|
+
lockedMultiSelections: {
|
|
176
|
+
[groupId: string]: true;
|
|
177
|
+
};
|
|
178
|
+
stylesPanelMode: "compact" | "full";
|
|
181
179
|
};
|
|
182
180
|
captureUpdate: "EVENTUALLY";
|
|
183
181
|
};
|
|
@@ -192,7 +190,7 @@ export declare const actionChangeExportScale: {
|
|
|
192
190
|
category: "export";
|
|
193
191
|
action: string;
|
|
194
192
|
};
|
|
195
|
-
perform: (_elements: readonly import("
|
|
193
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
196
194
|
appState: {
|
|
197
195
|
exportScale: any;
|
|
198
196
|
contextMenu: {
|
|
@@ -204,17 +202,17 @@ export declare const actionChangeExportScale: {
|
|
|
204
202
|
isLoading: boolean;
|
|
205
203
|
errorMessage: import("react").ReactNode;
|
|
206
204
|
activeEmbeddable: {
|
|
207
|
-
element: import("
|
|
208
|
-
state: "
|
|
205
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
206
|
+
state: "active" | "hover";
|
|
209
207
|
} | null;
|
|
210
|
-
newElement: import("
|
|
211
|
-
resizingElement: import("
|
|
212
|
-
multiElement: import("
|
|
213
|
-
selectionElement: import("
|
|
208
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
209
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
210
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
211
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
214
212
|
isBindingEnabled: boolean;
|
|
215
|
-
startBoundElement: import("
|
|
216
|
-
suggestedBindings: import("
|
|
217
|
-
frameToHighlight: import("
|
|
213
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
214
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
215
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
218
216
|
frameRendering: {
|
|
219
217
|
enabled: boolean;
|
|
220
218
|
name: boolean;
|
|
@@ -222,12 +220,12 @@ export declare const actionChangeExportScale: {
|
|
|
222
220
|
clip: boolean;
|
|
223
221
|
};
|
|
224
222
|
editingFrame: string | null;
|
|
225
|
-
elementsToHighlight: import("
|
|
226
|
-
editingTextElement: import("
|
|
227
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
223
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
224
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
228
225
|
activeTool: {
|
|
229
226
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
230
227
|
locked: boolean;
|
|
228
|
+
fromSelection: boolean;
|
|
231
229
|
} & import("../types").ActiveTool;
|
|
232
230
|
penMode: boolean;
|
|
233
231
|
penDetected: boolean;
|
|
@@ -236,18 +234,18 @@ export declare const actionChangeExportScale: {
|
|
|
236
234
|
exportWithDarkMode: boolean;
|
|
237
235
|
currentItemStrokeColor: string;
|
|
238
236
|
currentItemBackgroundColor: string;
|
|
239
|
-
currentItemFillStyle: import("
|
|
237
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
240
238
|
currentItemStrokeWidth: number;
|
|
241
|
-
currentItemStrokeStyle: import("
|
|
239
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
242
240
|
currentItemRoughness: number;
|
|
243
241
|
currentItemOpacity: number;
|
|
244
242
|
currentItemFontFamily: number;
|
|
245
243
|
currentItemFontSize: number;
|
|
246
244
|
currentItemTextAlign: string;
|
|
247
|
-
currentItemStartArrowhead: import("
|
|
248
|
-
currentItemEndArrowhead: import("
|
|
245
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
246
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
249
247
|
currentHoveredFontFamily: number | null;
|
|
250
|
-
currentItemRoundness: import("
|
|
248
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
251
249
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
252
250
|
viewBackgroundColor: string;
|
|
253
251
|
scrollX: number;
|
|
@@ -261,7 +259,7 @@ export declare const actionChangeExportScale: {
|
|
|
261
259
|
value: import("../types").NormalizedZoomValue;
|
|
262
260
|
}>;
|
|
263
261
|
openMenu: "canvas" | "shape" | null;
|
|
264
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
262
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
265
263
|
openSidebar: {
|
|
266
264
|
name: string;
|
|
267
265
|
tab?: string | undefined;
|
|
@@ -270,7 +268,7 @@ export declare const actionChangeExportScale: {
|
|
|
270
268
|
name: "imageExport" | "help" | "jsonExport";
|
|
271
269
|
} | {
|
|
272
270
|
name: "ttd";
|
|
273
|
-
tab: "text-to-diagram"
|
|
271
|
+
tab: "mermaid" | "text-to-diagram";
|
|
274
272
|
} | {
|
|
275
273
|
name: "commandPalette";
|
|
276
274
|
} | {
|
|
@@ -278,7 +276,7 @@ export declare const actionChangeExportScale: {
|
|
|
278
276
|
sourceElementId: string;
|
|
279
277
|
} | null;
|
|
280
278
|
defaultSidebarDockedPreference: boolean;
|
|
281
|
-
lastPointerDownWith: import("
|
|
279
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
282
280
|
selectedElementIds: Readonly<{
|
|
283
281
|
[id: string]: true;
|
|
284
282
|
}>;
|
|
@@ -317,7 +315,7 @@ export declare const actionChangeExportScale: {
|
|
|
317
315
|
[id: string]: true;
|
|
318
316
|
}> | undefined;
|
|
319
317
|
username?: string | null | undefined;
|
|
320
|
-
userState?: import("
|
|
318
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
321
319
|
color?: {
|
|
322
320
|
background: string;
|
|
323
321
|
stroke: string;
|
|
@@ -334,7 +332,7 @@ export declare const actionChangeExportScale: {
|
|
|
334
332
|
open: boolean;
|
|
335
333
|
panels: number;
|
|
336
334
|
};
|
|
337
|
-
currentChartType: import("
|
|
335
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
338
336
|
pasteDialog: {
|
|
339
337
|
shown: false;
|
|
340
338
|
data: null;
|
|
@@ -342,9 +340,8 @@ export declare const actionChangeExportScale: {
|
|
|
342
340
|
shown: true;
|
|
343
341
|
data: import("../charts").Spreadsheet;
|
|
344
342
|
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
343
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
344
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
348
345
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
349
346
|
originSnapOffset: {
|
|
350
347
|
x: number;
|
|
@@ -355,16 +352,15 @@ export declare const actionChangeExportScale: {
|
|
|
355
352
|
followedBy: Set<import("../types").SocketId>;
|
|
356
353
|
isCropping: boolean;
|
|
357
354
|
croppingElementId: string | null;
|
|
358
|
-
searchMatches:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}[];
|
|
355
|
+
searchMatches: Readonly<{
|
|
356
|
+
focusedId: string | null;
|
|
357
|
+
matches: readonly import("../types").SearchMatch[];
|
|
358
|
+
}> | null;
|
|
359
|
+
activeLockedId: string | null;
|
|
360
|
+
lockedMultiSelections: {
|
|
361
|
+
[groupId: string]: true;
|
|
362
|
+
};
|
|
363
|
+
stylesPanelMode: "compact" | "full";
|
|
368
364
|
};
|
|
369
365
|
captureUpdate: "EVENTUALLY";
|
|
370
366
|
};
|
|
@@ -379,7 +375,7 @@ export declare const actionChangeExportBackground: {
|
|
|
379
375
|
category: "export";
|
|
380
376
|
action: string;
|
|
381
377
|
};
|
|
382
|
-
perform: (_elements: readonly import("
|
|
378
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
383
379
|
appState: {
|
|
384
380
|
exportBackground: any;
|
|
385
381
|
contextMenu: {
|
|
@@ -391,17 +387,17 @@ export declare const actionChangeExportBackground: {
|
|
|
391
387
|
isLoading: boolean;
|
|
392
388
|
errorMessage: import("react").ReactNode;
|
|
393
389
|
activeEmbeddable: {
|
|
394
|
-
element: import("
|
|
395
|
-
state: "
|
|
390
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
391
|
+
state: "active" | "hover";
|
|
396
392
|
} | null;
|
|
397
|
-
newElement: import("
|
|
398
|
-
resizingElement: import("
|
|
399
|
-
multiElement: import("
|
|
400
|
-
selectionElement: import("
|
|
393
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
394
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
395
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
396
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
401
397
|
isBindingEnabled: boolean;
|
|
402
|
-
startBoundElement: import("
|
|
403
|
-
suggestedBindings: import("
|
|
404
|
-
frameToHighlight: import("
|
|
398
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
399
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
400
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
405
401
|
frameRendering: {
|
|
406
402
|
enabled: boolean;
|
|
407
403
|
name: boolean;
|
|
@@ -409,12 +405,12 @@ export declare const actionChangeExportBackground: {
|
|
|
409
405
|
clip: boolean;
|
|
410
406
|
};
|
|
411
407
|
editingFrame: string | null;
|
|
412
|
-
elementsToHighlight: import("
|
|
413
|
-
editingTextElement: import("
|
|
414
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
408
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
409
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
415
410
|
activeTool: {
|
|
416
411
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
417
412
|
locked: boolean;
|
|
413
|
+
fromSelection: boolean;
|
|
418
414
|
} & import("../types").ActiveTool;
|
|
419
415
|
penMode: boolean;
|
|
420
416
|
penDetected: boolean;
|
|
@@ -423,18 +419,18 @@ export declare const actionChangeExportBackground: {
|
|
|
423
419
|
exportScale: number;
|
|
424
420
|
currentItemStrokeColor: string;
|
|
425
421
|
currentItemBackgroundColor: string;
|
|
426
|
-
currentItemFillStyle: import("
|
|
422
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
427
423
|
currentItemStrokeWidth: number;
|
|
428
|
-
currentItemStrokeStyle: import("
|
|
424
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
429
425
|
currentItemRoughness: number;
|
|
430
426
|
currentItemOpacity: number;
|
|
431
427
|
currentItemFontFamily: number;
|
|
432
428
|
currentItemFontSize: number;
|
|
433
429
|
currentItemTextAlign: string;
|
|
434
|
-
currentItemStartArrowhead: import("
|
|
435
|
-
currentItemEndArrowhead: import("
|
|
430
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
431
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
436
432
|
currentHoveredFontFamily: number | null;
|
|
437
|
-
currentItemRoundness: import("
|
|
433
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
438
434
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
439
435
|
viewBackgroundColor: string;
|
|
440
436
|
scrollX: number;
|
|
@@ -448,7 +444,7 @@ export declare const actionChangeExportBackground: {
|
|
|
448
444
|
value: import("../types").NormalizedZoomValue;
|
|
449
445
|
}>;
|
|
450
446
|
openMenu: "canvas" | "shape" | null;
|
|
451
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
447
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
452
448
|
openSidebar: {
|
|
453
449
|
name: string;
|
|
454
450
|
tab?: string | undefined;
|
|
@@ -457,7 +453,7 @@ export declare const actionChangeExportBackground: {
|
|
|
457
453
|
name: "imageExport" | "help" | "jsonExport";
|
|
458
454
|
} | {
|
|
459
455
|
name: "ttd";
|
|
460
|
-
tab: "text-to-diagram"
|
|
456
|
+
tab: "mermaid" | "text-to-diagram";
|
|
461
457
|
} | {
|
|
462
458
|
name: "commandPalette";
|
|
463
459
|
} | {
|
|
@@ -465,7 +461,7 @@ export declare const actionChangeExportBackground: {
|
|
|
465
461
|
sourceElementId: string;
|
|
466
462
|
} | null;
|
|
467
463
|
defaultSidebarDockedPreference: boolean;
|
|
468
|
-
lastPointerDownWith: import("
|
|
464
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
469
465
|
selectedElementIds: Readonly<{
|
|
470
466
|
[id: string]: true;
|
|
471
467
|
}>;
|
|
@@ -504,7 +500,7 @@ export declare const actionChangeExportBackground: {
|
|
|
504
500
|
[id: string]: true;
|
|
505
501
|
}> | undefined;
|
|
506
502
|
username?: string | null | undefined;
|
|
507
|
-
userState?: import("
|
|
503
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
508
504
|
color?: {
|
|
509
505
|
background: string;
|
|
510
506
|
stroke: string;
|
|
@@ -521,7 +517,7 @@ export declare const actionChangeExportBackground: {
|
|
|
521
517
|
open: boolean;
|
|
522
518
|
panels: number;
|
|
523
519
|
};
|
|
524
|
-
currentChartType: import("
|
|
520
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
525
521
|
pasteDialog: {
|
|
526
522
|
shown: false;
|
|
527
523
|
data: null;
|
|
@@ -529,9 +525,8 @@ export declare const actionChangeExportBackground: {
|
|
|
529
525
|
shown: true;
|
|
530
526
|
data: import("../charts").Spreadsheet;
|
|
531
527
|
};
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
528
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
529
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
535
530
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
536
531
|
originSnapOffset: {
|
|
537
532
|
x: number;
|
|
@@ -542,16 +537,15 @@ export declare const actionChangeExportBackground: {
|
|
|
542
537
|
followedBy: Set<import("../types").SocketId>;
|
|
543
538
|
isCropping: boolean;
|
|
544
539
|
croppingElementId: string | null;
|
|
545
|
-
searchMatches:
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}[];
|
|
540
|
+
searchMatches: Readonly<{
|
|
541
|
+
focusedId: string | null;
|
|
542
|
+
matches: readonly import("../types").SearchMatch[];
|
|
543
|
+
}> | null;
|
|
544
|
+
activeLockedId: string | null;
|
|
545
|
+
lockedMultiSelections: {
|
|
546
|
+
[groupId: string]: true;
|
|
547
|
+
};
|
|
548
|
+
stylesPanelMode: "compact" | "full";
|
|
555
549
|
};
|
|
556
550
|
captureUpdate: "EVENTUALLY";
|
|
557
551
|
};
|
|
@@ -566,7 +560,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
566
560
|
category: "export";
|
|
567
561
|
action: string;
|
|
568
562
|
};
|
|
569
|
-
perform: (_elements: readonly import("
|
|
563
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
570
564
|
appState: {
|
|
571
565
|
exportEmbedScene: any;
|
|
572
566
|
contextMenu: {
|
|
@@ -578,17 +572,17 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
578
572
|
isLoading: boolean;
|
|
579
573
|
errorMessage: import("react").ReactNode;
|
|
580
574
|
activeEmbeddable: {
|
|
581
|
-
element: import("
|
|
582
|
-
state: "
|
|
575
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
576
|
+
state: "active" | "hover";
|
|
583
577
|
} | null;
|
|
584
|
-
newElement: import("
|
|
585
|
-
resizingElement: import("
|
|
586
|
-
multiElement: import("
|
|
587
|
-
selectionElement: import("
|
|
578
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
579
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
580
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
581
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
588
582
|
isBindingEnabled: boolean;
|
|
589
|
-
startBoundElement: import("
|
|
590
|
-
suggestedBindings: import("
|
|
591
|
-
frameToHighlight: import("
|
|
583
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
584
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
585
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
592
586
|
frameRendering: {
|
|
593
587
|
enabled: boolean;
|
|
594
588
|
name: boolean;
|
|
@@ -596,12 +590,12 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
596
590
|
clip: boolean;
|
|
597
591
|
};
|
|
598
592
|
editingFrame: string | null;
|
|
599
|
-
elementsToHighlight: import("
|
|
600
|
-
editingTextElement: import("
|
|
601
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
593
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
594
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
602
595
|
activeTool: {
|
|
603
596
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
604
597
|
locked: boolean;
|
|
598
|
+
fromSelection: boolean;
|
|
605
599
|
} & import("../types").ActiveTool;
|
|
606
600
|
penMode: boolean;
|
|
607
601
|
penDetected: boolean;
|
|
@@ -610,18 +604,18 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
610
604
|
exportScale: number;
|
|
611
605
|
currentItemStrokeColor: string;
|
|
612
606
|
currentItemBackgroundColor: string;
|
|
613
|
-
currentItemFillStyle: import("
|
|
607
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
614
608
|
currentItemStrokeWidth: number;
|
|
615
|
-
currentItemStrokeStyle: import("
|
|
609
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
616
610
|
currentItemRoughness: number;
|
|
617
611
|
currentItemOpacity: number;
|
|
618
612
|
currentItemFontFamily: number;
|
|
619
613
|
currentItemFontSize: number;
|
|
620
614
|
currentItemTextAlign: string;
|
|
621
|
-
currentItemStartArrowhead: import("
|
|
622
|
-
currentItemEndArrowhead: import("
|
|
615
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
616
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
623
617
|
currentHoveredFontFamily: number | null;
|
|
624
|
-
currentItemRoundness: import("
|
|
618
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
625
619
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
626
620
|
viewBackgroundColor: string;
|
|
627
621
|
scrollX: number;
|
|
@@ -635,7 +629,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
635
629
|
value: import("../types").NormalizedZoomValue;
|
|
636
630
|
}>;
|
|
637
631
|
openMenu: "canvas" | "shape" | null;
|
|
638
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
632
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
639
633
|
openSidebar: {
|
|
640
634
|
name: string;
|
|
641
635
|
tab?: string | undefined;
|
|
@@ -644,7 +638,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
644
638
|
name: "imageExport" | "help" | "jsonExport";
|
|
645
639
|
} | {
|
|
646
640
|
name: "ttd";
|
|
647
|
-
tab: "text-to-diagram"
|
|
641
|
+
tab: "mermaid" | "text-to-diagram";
|
|
648
642
|
} | {
|
|
649
643
|
name: "commandPalette";
|
|
650
644
|
} | {
|
|
@@ -652,7 +646,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
652
646
|
sourceElementId: string;
|
|
653
647
|
} | null;
|
|
654
648
|
defaultSidebarDockedPreference: boolean;
|
|
655
|
-
lastPointerDownWith: import("
|
|
649
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
656
650
|
selectedElementIds: Readonly<{
|
|
657
651
|
[id: string]: true;
|
|
658
652
|
}>;
|
|
@@ -691,7 +685,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
691
685
|
[id: string]: true;
|
|
692
686
|
}> | undefined;
|
|
693
687
|
username?: string | null | undefined;
|
|
694
|
-
userState?: import("
|
|
688
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
695
689
|
color?: {
|
|
696
690
|
background: string;
|
|
697
691
|
stroke: string;
|
|
@@ -708,7 +702,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
708
702
|
open: boolean;
|
|
709
703
|
panels: number;
|
|
710
704
|
};
|
|
711
|
-
currentChartType: import("
|
|
705
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
712
706
|
pasteDialog: {
|
|
713
707
|
shown: false;
|
|
714
708
|
data: null;
|
|
@@ -716,9 +710,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
716
710
|
shown: true;
|
|
717
711
|
data: import("../charts").Spreadsheet;
|
|
718
712
|
};
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
713
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
714
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
722
715
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
723
716
|
originSnapOffset: {
|
|
724
717
|
x: number;
|
|
@@ -729,16 +722,15 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
729
722
|
followedBy: Set<import("../types").SocketId>;
|
|
730
723
|
isCropping: boolean;
|
|
731
724
|
croppingElementId: string | null;
|
|
732
|
-
searchMatches:
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}[];
|
|
725
|
+
searchMatches: Readonly<{
|
|
726
|
+
focusedId: string | null;
|
|
727
|
+
matches: readonly import("../types").SearchMatch[];
|
|
728
|
+
}> | null;
|
|
729
|
+
activeLockedId: string | null;
|
|
730
|
+
lockedMultiSelections: {
|
|
731
|
+
[groupId: string]: true;
|
|
732
|
+
};
|
|
733
|
+
stylesPanelMode: "compact" | "full";
|
|
742
734
|
};
|
|
743
735
|
captureUpdate: "EVENTUALLY";
|
|
744
736
|
};
|
|
@@ -753,8 +745,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
753
745
|
trackEvent: {
|
|
754
746
|
category: "export";
|
|
755
747
|
};
|
|
756
|
-
predicate: (elements: readonly import("
|
|
757
|
-
perform: (elements: readonly import("
|
|
748
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
749
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
758
750
|
captureUpdate: "EVENTUALLY";
|
|
759
751
|
appState: {
|
|
760
752
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -770,17 +762,17 @@ export declare const actionSaveToActiveFile: {
|
|
|
770
762
|
isLoading: boolean;
|
|
771
763
|
errorMessage: import("react").ReactNode;
|
|
772
764
|
activeEmbeddable: {
|
|
773
|
-
element: import("
|
|
774
|
-
state: "
|
|
765
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
766
|
+
state: "active" | "hover";
|
|
775
767
|
} | null;
|
|
776
|
-
newElement: import("
|
|
777
|
-
resizingElement: import("
|
|
778
|
-
multiElement: import("
|
|
779
|
-
selectionElement: import("
|
|
768
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
769
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
770
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
771
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
780
772
|
isBindingEnabled: boolean;
|
|
781
|
-
startBoundElement: import("
|
|
782
|
-
suggestedBindings: import("
|
|
783
|
-
frameToHighlight: import("
|
|
773
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
774
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
775
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
784
776
|
frameRendering: {
|
|
785
777
|
enabled: boolean;
|
|
786
778
|
name: boolean;
|
|
@@ -788,12 +780,12 @@ export declare const actionSaveToActiveFile: {
|
|
|
788
780
|
clip: boolean;
|
|
789
781
|
};
|
|
790
782
|
editingFrame: string | null;
|
|
791
|
-
elementsToHighlight: import("
|
|
792
|
-
editingTextElement: import("
|
|
793
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
783
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
784
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
794
785
|
activeTool: {
|
|
795
786
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
796
787
|
locked: boolean;
|
|
788
|
+
fromSelection: boolean;
|
|
797
789
|
} & import("../types").ActiveTool;
|
|
798
790
|
penMode: boolean;
|
|
799
791
|
penDetected: boolean;
|
|
@@ -803,18 +795,18 @@ export declare const actionSaveToActiveFile: {
|
|
|
803
795
|
exportScale: number;
|
|
804
796
|
currentItemStrokeColor: string;
|
|
805
797
|
currentItemBackgroundColor: string;
|
|
806
|
-
currentItemFillStyle: import("
|
|
798
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
807
799
|
currentItemStrokeWidth: number;
|
|
808
|
-
currentItemStrokeStyle: import("
|
|
800
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
809
801
|
currentItemRoughness: number;
|
|
810
802
|
currentItemOpacity: number;
|
|
811
803
|
currentItemFontFamily: number;
|
|
812
804
|
currentItemFontSize: number;
|
|
813
805
|
currentItemTextAlign: string;
|
|
814
|
-
currentItemStartArrowhead: import("
|
|
815
|
-
currentItemEndArrowhead: import("
|
|
806
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
807
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
816
808
|
currentHoveredFontFamily: number | null;
|
|
817
|
-
currentItemRoundness: import("
|
|
809
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
818
810
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
819
811
|
viewBackgroundColor: string;
|
|
820
812
|
scrollX: number;
|
|
@@ -828,7 +820,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
828
820
|
value: import("../types").NormalizedZoomValue;
|
|
829
821
|
}>;
|
|
830
822
|
openMenu: "canvas" | "shape" | null;
|
|
831
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
823
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
832
824
|
openSidebar: {
|
|
833
825
|
name: string;
|
|
834
826
|
tab?: string | undefined;
|
|
@@ -837,7 +829,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
837
829
|
name: "imageExport" | "help" | "jsonExport";
|
|
838
830
|
} | {
|
|
839
831
|
name: "ttd";
|
|
840
|
-
tab: "text-to-diagram"
|
|
832
|
+
tab: "mermaid" | "text-to-diagram";
|
|
841
833
|
} | {
|
|
842
834
|
name: "commandPalette";
|
|
843
835
|
} | {
|
|
@@ -845,7 +837,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
845
837
|
sourceElementId: string;
|
|
846
838
|
} | null;
|
|
847
839
|
defaultSidebarDockedPreference: boolean;
|
|
848
|
-
lastPointerDownWith: import("
|
|
840
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
849
841
|
selectedElementIds: Readonly<{
|
|
850
842
|
[id: string]: true;
|
|
851
843
|
}>;
|
|
@@ -878,7 +870,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
878
870
|
[id: string]: true;
|
|
879
871
|
}> | undefined;
|
|
880
872
|
username?: string | null | undefined;
|
|
881
|
-
userState?: import("
|
|
873
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
882
874
|
color?: {
|
|
883
875
|
background: string;
|
|
884
876
|
stroke: string;
|
|
@@ -895,7 +887,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
895
887
|
open: boolean;
|
|
896
888
|
panels: number;
|
|
897
889
|
};
|
|
898
|
-
currentChartType: import("
|
|
890
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
899
891
|
pasteDialog: {
|
|
900
892
|
shown: false;
|
|
901
893
|
data: null;
|
|
@@ -903,9 +895,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
903
895
|
shown: true;
|
|
904
896
|
data: import("../charts").Spreadsheet;
|
|
905
897
|
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
898
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
899
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
909
900
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
910
901
|
originSnapOffset: {
|
|
911
902
|
x: number;
|
|
@@ -916,16 +907,15 @@ export declare const actionSaveToActiveFile: {
|
|
|
916
907
|
followedBy: Set<import("../types").SocketId>;
|
|
917
908
|
isCropping: boolean;
|
|
918
909
|
croppingElementId: string | null;
|
|
919
|
-
searchMatches:
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}[];
|
|
910
|
+
searchMatches: Readonly<{
|
|
911
|
+
focusedId: string | null;
|
|
912
|
+
matches: readonly import("../types").SearchMatch[];
|
|
913
|
+
}> | null;
|
|
914
|
+
activeLockedId: string | null;
|
|
915
|
+
lockedMultiSelections: {
|
|
916
|
+
[groupId: string]: true;
|
|
917
|
+
};
|
|
918
|
+
stylesPanelMode: "compact" | "full";
|
|
929
919
|
};
|
|
930
920
|
} | {
|
|
931
921
|
captureUpdate: "EVENTUALLY";
|
|
@@ -943,7 +933,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
943
933
|
trackEvent: {
|
|
944
934
|
category: "export";
|
|
945
935
|
};
|
|
946
|
-
perform: (elements: readonly import("
|
|
936
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
947
937
|
captureUpdate: "EVENTUALLY";
|
|
948
938
|
appState: {
|
|
949
939
|
openDialog: null;
|
|
@@ -960,17 +950,17 @@ export declare const actionSaveFileToDisk: {
|
|
|
960
950
|
isLoading: boolean;
|
|
961
951
|
errorMessage: import("react").ReactNode;
|
|
962
952
|
activeEmbeddable: {
|
|
963
|
-
element: import("
|
|
964
|
-
state: "
|
|
953
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
954
|
+
state: "active" | "hover";
|
|
965
955
|
} | null;
|
|
966
|
-
newElement: import("
|
|
967
|
-
resizingElement: import("
|
|
968
|
-
multiElement: import("
|
|
969
|
-
selectionElement: import("
|
|
956
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
957
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
958
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
959
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
970
960
|
isBindingEnabled: boolean;
|
|
971
|
-
startBoundElement: import("
|
|
972
|
-
suggestedBindings: import("
|
|
973
|
-
frameToHighlight: import("
|
|
961
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
962
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
963
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
974
964
|
frameRendering: {
|
|
975
965
|
enabled: boolean;
|
|
976
966
|
name: boolean;
|
|
@@ -978,12 +968,12 @@ export declare const actionSaveFileToDisk: {
|
|
|
978
968
|
clip: boolean;
|
|
979
969
|
};
|
|
980
970
|
editingFrame: string | null;
|
|
981
|
-
elementsToHighlight: import("
|
|
982
|
-
editingTextElement: import("
|
|
983
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
971
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
972
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
984
973
|
activeTool: {
|
|
985
974
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
986
975
|
locked: boolean;
|
|
976
|
+
fromSelection: boolean;
|
|
987
977
|
} & import("../types").ActiveTool;
|
|
988
978
|
penMode: boolean;
|
|
989
979
|
penDetected: boolean;
|
|
@@ -993,18 +983,18 @@ export declare const actionSaveFileToDisk: {
|
|
|
993
983
|
exportScale: number;
|
|
994
984
|
currentItemStrokeColor: string;
|
|
995
985
|
currentItemBackgroundColor: string;
|
|
996
|
-
currentItemFillStyle: import("
|
|
986
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
997
987
|
currentItemStrokeWidth: number;
|
|
998
|
-
currentItemStrokeStyle: import("
|
|
988
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
999
989
|
currentItemRoughness: number;
|
|
1000
990
|
currentItemOpacity: number;
|
|
1001
991
|
currentItemFontFamily: number;
|
|
1002
992
|
currentItemFontSize: number;
|
|
1003
993
|
currentItemTextAlign: string;
|
|
1004
|
-
currentItemStartArrowhead: import("
|
|
1005
|
-
currentItemEndArrowhead: import("
|
|
994
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
995
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1006
996
|
currentHoveredFontFamily: number | null;
|
|
1007
|
-
currentItemRoundness: import("
|
|
997
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1008
998
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1009
999
|
viewBackgroundColor: string;
|
|
1010
1000
|
scrollX: number;
|
|
@@ -1018,13 +1008,13 @@ export declare const actionSaveFileToDisk: {
|
|
|
1018
1008
|
value: import("../types").NormalizedZoomValue;
|
|
1019
1009
|
}>;
|
|
1020
1010
|
openMenu: "canvas" | "shape" | null;
|
|
1021
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1011
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1022
1012
|
openSidebar: {
|
|
1023
1013
|
name: string;
|
|
1024
1014
|
tab?: string | undefined;
|
|
1025
1015
|
} | null;
|
|
1026
1016
|
defaultSidebarDockedPreference: boolean;
|
|
1027
|
-
lastPointerDownWith: import("
|
|
1017
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1028
1018
|
selectedElementIds: Readonly<{
|
|
1029
1019
|
[id: string]: true;
|
|
1030
1020
|
}>;
|
|
@@ -1057,7 +1047,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1057
1047
|
[id: string]: true;
|
|
1058
1048
|
}> | undefined;
|
|
1059
1049
|
username?: string | null | undefined;
|
|
1060
|
-
userState?: import("
|
|
1050
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1061
1051
|
color?: {
|
|
1062
1052
|
background: string;
|
|
1063
1053
|
stroke: string;
|
|
@@ -1074,7 +1064,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1074
1064
|
open: boolean;
|
|
1075
1065
|
panels: number;
|
|
1076
1066
|
};
|
|
1077
|
-
currentChartType: import("
|
|
1067
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1078
1068
|
pasteDialog: {
|
|
1079
1069
|
shown: false;
|
|
1080
1070
|
data: null;
|
|
@@ -1082,9 +1072,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1082
1072
|
shown: true;
|
|
1083
1073
|
data: import("../charts").Spreadsheet;
|
|
1084
1074
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1075
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1076
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1088
1077
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1089
1078
|
originSnapOffset: {
|
|
1090
1079
|
x: number;
|
|
@@ -1095,16 +1084,15 @@ export declare const actionSaveFileToDisk: {
|
|
|
1095
1084
|
followedBy: Set<import("../types").SocketId>;
|
|
1096
1085
|
isCropping: boolean;
|
|
1097
1086
|
croppingElementId: string | null;
|
|
1098
|
-
searchMatches:
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
}[];
|
|
1087
|
+
searchMatches: Readonly<{
|
|
1088
|
+
focusedId: string | null;
|
|
1089
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1090
|
+
}> | null;
|
|
1091
|
+
activeLockedId: string | null;
|
|
1092
|
+
lockedMultiSelections: {
|
|
1093
|
+
[groupId: string]: true;
|
|
1094
|
+
};
|
|
1095
|
+
stylesPanelMode: "compact" | "full";
|
|
1108
1096
|
};
|
|
1109
1097
|
} | {
|
|
1110
1098
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1121,17 +1109,85 @@ export declare const actionLoadScene: {
|
|
|
1121
1109
|
trackEvent: {
|
|
1122
1110
|
category: "export";
|
|
1123
1111
|
};
|
|
1124
|
-
predicate: (elements: readonly import("
|
|
1125
|
-
perform: (elements: readonly import("
|
|
1126
|
-
elements: import("
|
|
1112
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1113
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1114
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1127
1115
|
appState: {
|
|
1116
|
+
viewBackgroundColor: string;
|
|
1117
|
+
frameRendering: {
|
|
1118
|
+
enabled: boolean;
|
|
1119
|
+
name: boolean;
|
|
1120
|
+
outline: boolean;
|
|
1121
|
+
clip: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
name: string | null;
|
|
1124
|
+
zoom: Readonly<{
|
|
1125
|
+
value: import("../types").NormalizedZoomValue;
|
|
1126
|
+
}>;
|
|
1127
|
+
scrollX: number;
|
|
1128
|
+
scrollY: number;
|
|
1128
1129
|
viewModeEnabled: boolean;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1130
|
+
openDialog: {
|
|
1131
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1132
|
+
} | {
|
|
1133
|
+
name: "ttd";
|
|
1134
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1135
|
+
} | {
|
|
1136
|
+
name: "commandPalette";
|
|
1137
|
+
} | {
|
|
1138
|
+
name: "elementLinkSelector";
|
|
1139
|
+
sourceElementId: string;
|
|
1140
|
+
} | null;
|
|
1141
|
+
editingGroupId: string | null;
|
|
1142
|
+
selectedElementIds: Readonly<{
|
|
1143
|
+
[id: string]: true;
|
|
1144
|
+
}>;
|
|
1145
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1132
1146
|
theme: Theme;
|
|
1133
|
-
|
|
1134
|
-
|
|
1147
|
+
activeEmbeddable: {
|
|
1148
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1149
|
+
state: "active" | "hover";
|
|
1150
|
+
} | null;
|
|
1151
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1152
|
+
selectedGroupIds: {
|
|
1153
|
+
[groupId: string]: boolean;
|
|
1154
|
+
};
|
|
1155
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1156
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1157
|
+
isBindingEnabled: boolean;
|
|
1158
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1159
|
+
isRotating: boolean;
|
|
1160
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1161
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1162
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1163
|
+
button?: "up" | "down" | undefined;
|
|
1164
|
+
selectedElementIds?: Readonly<{
|
|
1165
|
+
[id: string]: true;
|
|
1166
|
+
}> | undefined;
|
|
1167
|
+
username?: string | null | undefined;
|
|
1168
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1169
|
+
color?: {
|
|
1170
|
+
background: string;
|
|
1171
|
+
stroke: string;
|
|
1172
|
+
} | undefined;
|
|
1173
|
+
avatarUrl?: string | undefined;
|
|
1174
|
+
id?: string | undefined;
|
|
1175
|
+
socketId?: import("../types").SocketId | undefined;
|
|
1176
|
+
isCurrentUser?: boolean | undefined;
|
|
1177
|
+
isInCall?: boolean | undefined;
|
|
1178
|
+
isSpeaking?: boolean | undefined;
|
|
1179
|
+
isMuted?: boolean | undefined;
|
|
1180
|
+
}>>;
|
|
1181
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1182
|
+
zenModeEnabled: boolean;
|
|
1183
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1184
|
+
isCropping: boolean;
|
|
1185
|
+
croppingElementId: string | null;
|
|
1186
|
+
searchMatches: Readonly<{
|
|
1187
|
+
focusedId: string | null;
|
|
1188
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1189
|
+
}> | null;
|
|
1190
|
+
activeLockedId: string | null;
|
|
1135
1191
|
contextMenu: {
|
|
1136
1192
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1137
1193
|
top: number;
|
|
@@ -1140,31 +1196,14 @@ export declare const actionLoadScene: {
|
|
|
1140
1196
|
showWelcomeScreen: boolean;
|
|
1141
1197
|
isLoading: boolean;
|
|
1142
1198
|
errorMessage: import("react").ReactNode;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
} | null;
|
|
1147
|
-
newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
|
|
1148
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1149
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
1150
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1151
|
-
isBindingEnabled: boolean;
|
|
1152
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1153
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1154
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1155
|
-
frameRendering: {
|
|
1156
|
-
enabled: boolean;
|
|
1157
|
-
name: boolean;
|
|
1158
|
-
outline: boolean;
|
|
1159
|
-
clip: boolean;
|
|
1160
|
-
};
|
|
1199
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1200
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1201
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1161
1202
|
editingFrame: string | null;
|
|
1162
|
-
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
1163
|
-
editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1164
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1165
1203
|
activeTool: {
|
|
1166
1204
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1167
1205
|
locked: boolean;
|
|
1206
|
+
fromSelection: boolean;
|
|
1168
1207
|
} & import("../types").ActiveTool;
|
|
1169
1208
|
penMode: boolean;
|
|
1170
1209
|
penDetected: boolean;
|
|
@@ -1174,50 +1213,30 @@ export declare const actionLoadScene: {
|
|
|
1174
1213
|
exportScale: number;
|
|
1175
1214
|
currentItemStrokeColor: string;
|
|
1176
1215
|
currentItemBackgroundColor: string;
|
|
1177
|
-
currentItemFillStyle: import("
|
|
1216
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1178
1217
|
currentItemStrokeWidth: number;
|
|
1179
|
-
currentItemStrokeStyle: import("
|
|
1218
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1180
1219
|
currentItemRoughness: number;
|
|
1181
1220
|
currentItemOpacity: number;
|
|
1182
1221
|
currentItemFontFamily: number;
|
|
1183
1222
|
currentItemFontSize: number;
|
|
1184
1223
|
currentItemTextAlign: string;
|
|
1185
|
-
currentItemStartArrowhead: import("
|
|
1186
|
-
currentItemEndArrowhead: import("
|
|
1224
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1225
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1187
1226
|
currentHoveredFontFamily: number | null;
|
|
1188
|
-
currentItemRoundness: import("
|
|
1189
|
-
|
|
1190
|
-
scrollX: number;
|
|
1191
|
-
scrollY: number;
|
|
1227
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1228
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1192
1229
|
cursorButton: "up" | "down";
|
|
1193
1230
|
scrolledOutside: boolean;
|
|
1194
1231
|
isResizing: boolean;
|
|
1195
|
-
isRotating: boolean;
|
|
1196
|
-
zoom: Readonly<{
|
|
1197
|
-
value: import("../types").NormalizedZoomValue;
|
|
1198
|
-
}>;
|
|
1199
1232
|
openMenu: "canvas" | "shape" | null;
|
|
1200
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1233
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1201
1234
|
openSidebar: {
|
|
1202
1235
|
name: string;
|
|
1203
1236
|
tab?: string | undefined;
|
|
1204
1237
|
} | null;
|
|
1205
|
-
openDialog: {
|
|
1206
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1207
|
-
} | {
|
|
1208
|
-
name: "ttd";
|
|
1209
|
-
tab: "text-to-diagram" | "mermaid";
|
|
1210
|
-
} | {
|
|
1211
|
-
name: "commandPalette";
|
|
1212
|
-
} | {
|
|
1213
|
-
name: "elementLinkSelector";
|
|
1214
|
-
sourceElementId: string;
|
|
1215
|
-
} | null;
|
|
1216
1238
|
defaultSidebarDockedPreference: boolean;
|
|
1217
|
-
lastPointerDownWith: import("
|
|
1218
|
-
selectedElementIds: Readonly<{
|
|
1219
|
-
[id: string]: true;
|
|
1220
|
-
}>;
|
|
1239
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1221
1240
|
hoveredElementIds: Readonly<{
|
|
1222
1241
|
[id: string]: true;
|
|
1223
1242
|
}>;
|
|
@@ -1233,36 +1252,13 @@ export declare const actionLoadScene: {
|
|
|
1233
1252
|
} | null;
|
|
1234
1253
|
gridSize: number;
|
|
1235
1254
|
gridStep: number;
|
|
1236
|
-
|
|
1237
|
-
[groupId: string]: boolean;
|
|
1238
|
-
};
|
|
1239
|
-
editingGroupId: string | null;
|
|
1255
|
+
gridModeEnabled: boolean;
|
|
1240
1256
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1241
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1242
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1243
|
-
button?: "up" | "down" | undefined;
|
|
1244
|
-
selectedElementIds?: Readonly<{
|
|
1245
|
-
[id: string]: true;
|
|
1246
|
-
}> | undefined;
|
|
1247
|
-
username?: string | null | undefined;
|
|
1248
|
-
userState?: import("../constants").UserIdleState | undefined;
|
|
1249
|
-
color?: {
|
|
1250
|
-
background: string;
|
|
1251
|
-
stroke: string;
|
|
1252
|
-
} | undefined;
|
|
1253
|
-
avatarUrl?: string | undefined;
|
|
1254
|
-
id?: string | undefined;
|
|
1255
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1256
|
-
isCurrentUser?: boolean | undefined;
|
|
1257
|
-
isInCall?: boolean | undefined;
|
|
1258
|
-
isSpeaking?: boolean | undefined;
|
|
1259
|
-
isMuted?: boolean | undefined;
|
|
1260
|
-
}>>;
|
|
1261
1257
|
stats: {
|
|
1262
1258
|
open: boolean;
|
|
1263
1259
|
panels: number;
|
|
1264
1260
|
};
|
|
1265
|
-
currentChartType: import("
|
|
1261
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1266
1262
|
pasteDialog: {
|
|
1267
1263
|
shown: false;
|
|
1268
1264
|
data: null;
|
|
@@ -1270,33 +1266,23 @@ export declare const actionLoadScene: {
|
|
|
1270
1266
|
shown: true;
|
|
1271
1267
|
data: import("../charts").Spreadsheet;
|
|
1272
1268
|
};
|
|
1273
|
-
|
|
1274
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1275
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1276
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1269
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1277
1270
|
originSnapOffset: {
|
|
1278
1271
|
x: number;
|
|
1279
1272
|
y: number;
|
|
1280
1273
|
} | null;
|
|
1274
|
+
objectsSnapModeEnabled: boolean;
|
|
1281
1275
|
userToFollow: import("../types").UserToFollow | null;
|
|
1282
1276
|
followedBy: Set<import("../types").SocketId>;
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
focus: boolean;
|
|
1288
|
-
matchedLines: {
|
|
1289
|
-
offsetX: number;
|
|
1290
|
-
offsetY: number;
|
|
1291
|
-
width: number;
|
|
1292
|
-
height: number;
|
|
1293
|
-
}[];
|
|
1294
|
-
}[];
|
|
1277
|
+
lockedMultiSelections: {
|
|
1278
|
+
[groupId: string]: true;
|
|
1279
|
+
};
|
|
1280
|
+
stylesPanelMode: "compact" | "full";
|
|
1295
1281
|
};
|
|
1296
1282
|
files: import("../types").BinaryFiles;
|
|
1297
1283
|
captureUpdate: "IMMEDIATELY";
|
|
1298
1284
|
} | {
|
|
1299
|
-
elements: readonly import("
|
|
1285
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1300
1286
|
appState: {
|
|
1301
1287
|
errorMessage: any;
|
|
1302
1288
|
contextMenu: {
|
|
@@ -1307,17 +1293,17 @@ export declare const actionLoadScene: {
|
|
|
1307
1293
|
showWelcomeScreen: boolean;
|
|
1308
1294
|
isLoading: boolean;
|
|
1309
1295
|
activeEmbeddable: {
|
|
1310
|
-
element: import("
|
|
1311
|
-
state: "
|
|
1296
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1297
|
+
state: "active" | "hover";
|
|
1312
1298
|
} | null;
|
|
1313
|
-
newElement: import("
|
|
1314
|
-
resizingElement: import("
|
|
1315
|
-
multiElement: import("
|
|
1316
|
-
selectionElement: import("
|
|
1299
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1300
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1301
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1302
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1317
1303
|
isBindingEnabled: boolean;
|
|
1318
|
-
startBoundElement: import("
|
|
1319
|
-
suggestedBindings: import("
|
|
1320
|
-
frameToHighlight: import("
|
|
1304
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1305
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1306
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1321
1307
|
frameRendering: {
|
|
1322
1308
|
enabled: boolean;
|
|
1323
1309
|
name: boolean;
|
|
@@ -1325,12 +1311,12 @@ export declare const actionLoadScene: {
|
|
|
1325
1311
|
clip: boolean;
|
|
1326
1312
|
};
|
|
1327
1313
|
editingFrame: string | null;
|
|
1328
|
-
elementsToHighlight: import("
|
|
1329
|
-
editingTextElement: import("
|
|
1330
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1314
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1315
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1331
1316
|
activeTool: {
|
|
1332
1317
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1333
1318
|
locked: boolean;
|
|
1319
|
+
fromSelection: boolean;
|
|
1334
1320
|
} & import("../types").ActiveTool;
|
|
1335
1321
|
penMode: boolean;
|
|
1336
1322
|
penDetected: boolean;
|
|
@@ -1340,18 +1326,18 @@ export declare const actionLoadScene: {
|
|
|
1340
1326
|
exportScale: number;
|
|
1341
1327
|
currentItemStrokeColor: string;
|
|
1342
1328
|
currentItemBackgroundColor: string;
|
|
1343
|
-
currentItemFillStyle: import("
|
|
1329
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1344
1330
|
currentItemStrokeWidth: number;
|
|
1345
|
-
currentItemStrokeStyle: import("
|
|
1331
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1346
1332
|
currentItemRoughness: number;
|
|
1347
1333
|
currentItemOpacity: number;
|
|
1348
1334
|
currentItemFontFamily: number;
|
|
1349
1335
|
currentItemFontSize: number;
|
|
1350
1336
|
currentItemTextAlign: string;
|
|
1351
|
-
currentItemStartArrowhead: import("
|
|
1352
|
-
currentItemEndArrowhead: import("
|
|
1337
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1338
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1353
1339
|
currentHoveredFontFamily: number | null;
|
|
1354
|
-
currentItemRoundness: import("
|
|
1340
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1355
1341
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1356
1342
|
viewBackgroundColor: string;
|
|
1357
1343
|
scrollX: number;
|
|
@@ -1365,7 +1351,7 @@ export declare const actionLoadScene: {
|
|
|
1365
1351
|
value: import("../types").NormalizedZoomValue;
|
|
1366
1352
|
}>;
|
|
1367
1353
|
openMenu: "canvas" | "shape" | null;
|
|
1368
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1354
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1369
1355
|
openSidebar: {
|
|
1370
1356
|
name: string;
|
|
1371
1357
|
tab?: string | undefined;
|
|
@@ -1374,7 +1360,7 @@ export declare const actionLoadScene: {
|
|
|
1374
1360
|
name: "imageExport" | "help" | "jsonExport";
|
|
1375
1361
|
} | {
|
|
1376
1362
|
name: "ttd";
|
|
1377
|
-
tab: "text-to-diagram"
|
|
1363
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1378
1364
|
} | {
|
|
1379
1365
|
name: "commandPalette";
|
|
1380
1366
|
} | {
|
|
@@ -1382,7 +1368,7 @@ export declare const actionLoadScene: {
|
|
|
1382
1368
|
sourceElementId: string;
|
|
1383
1369
|
} | null;
|
|
1384
1370
|
defaultSidebarDockedPreference: boolean;
|
|
1385
|
-
lastPointerDownWith: import("
|
|
1371
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1386
1372
|
selectedElementIds: Readonly<{
|
|
1387
1373
|
[id: string]: true;
|
|
1388
1374
|
}>;
|
|
@@ -1421,7 +1407,7 @@ export declare const actionLoadScene: {
|
|
|
1421
1407
|
[id: string]: true;
|
|
1422
1408
|
}> | undefined;
|
|
1423
1409
|
username?: string | null | undefined;
|
|
1424
|
-
userState?: import("
|
|
1410
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1425
1411
|
color?: {
|
|
1426
1412
|
background: string;
|
|
1427
1413
|
stroke: string;
|
|
@@ -1438,7 +1424,7 @@ export declare const actionLoadScene: {
|
|
|
1438
1424
|
open: boolean;
|
|
1439
1425
|
panels: number;
|
|
1440
1426
|
};
|
|
1441
|
-
currentChartType: import("
|
|
1427
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1442
1428
|
pasteDialog: {
|
|
1443
1429
|
shown: false;
|
|
1444
1430
|
data: null;
|
|
@@ -1446,9 +1432,8 @@ export declare const actionLoadScene: {
|
|
|
1446
1432
|
shown: true;
|
|
1447
1433
|
data: import("../charts").Spreadsheet;
|
|
1448
1434
|
};
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1435
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1436
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1452
1437
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1453
1438
|
originSnapOffset: {
|
|
1454
1439
|
x: number;
|
|
@@ -1459,16 +1444,15 @@ export declare const actionLoadScene: {
|
|
|
1459
1444
|
followedBy: Set<import("../types").SocketId>;
|
|
1460
1445
|
isCropping: boolean;
|
|
1461
1446
|
croppingElementId: string | null;
|
|
1462
|
-
searchMatches:
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}[];
|
|
1447
|
+
searchMatches: Readonly<{
|
|
1448
|
+
focusedId: string | null;
|
|
1449
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1450
|
+
}> | null;
|
|
1451
|
+
activeLockedId: string | null;
|
|
1452
|
+
lockedMultiSelections: {
|
|
1453
|
+
[groupId: string]: true;
|
|
1454
|
+
};
|
|
1455
|
+
stylesPanelMode: "compact" | "full";
|
|
1472
1456
|
};
|
|
1473
1457
|
files: import("../types").BinaryFiles;
|
|
1474
1458
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1484,7 +1468,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1484
1468
|
category: "export";
|
|
1485
1469
|
action: string;
|
|
1486
1470
|
};
|
|
1487
|
-
perform: (_elements: readonly import("
|
|
1471
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
1488
1472
|
appState: {
|
|
1489
1473
|
exportWithDarkMode: any;
|
|
1490
1474
|
contextMenu: {
|
|
@@ -1496,17 +1480,17 @@ export declare const actionExportWithDarkMode: {
|
|
|
1496
1480
|
isLoading: boolean;
|
|
1497
1481
|
errorMessage: import("react").ReactNode;
|
|
1498
1482
|
activeEmbeddable: {
|
|
1499
|
-
element: import("
|
|
1500
|
-
state: "
|
|
1483
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1484
|
+
state: "active" | "hover";
|
|
1501
1485
|
} | null;
|
|
1502
|
-
newElement: import("
|
|
1503
|
-
resizingElement: import("
|
|
1504
|
-
multiElement: import("
|
|
1505
|
-
selectionElement: import("
|
|
1486
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1487
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1488
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1489
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1506
1490
|
isBindingEnabled: boolean;
|
|
1507
|
-
startBoundElement: import("
|
|
1508
|
-
suggestedBindings: import("
|
|
1509
|
-
frameToHighlight: import("
|
|
1491
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1492
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1493
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1510
1494
|
frameRendering: {
|
|
1511
1495
|
enabled: boolean;
|
|
1512
1496
|
name: boolean;
|
|
@@ -1514,12 +1498,12 @@ export declare const actionExportWithDarkMode: {
|
|
|
1514
1498
|
clip: boolean;
|
|
1515
1499
|
};
|
|
1516
1500
|
editingFrame: string | null;
|
|
1517
|
-
elementsToHighlight: import("
|
|
1518
|
-
editingTextElement: import("
|
|
1519
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1501
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1502
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1520
1503
|
activeTool: {
|
|
1521
1504
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1522
1505
|
locked: boolean;
|
|
1506
|
+
fromSelection: boolean;
|
|
1523
1507
|
} & import("../types").ActiveTool;
|
|
1524
1508
|
penMode: boolean;
|
|
1525
1509
|
penDetected: boolean;
|
|
@@ -1528,18 +1512,18 @@ export declare const actionExportWithDarkMode: {
|
|
|
1528
1512
|
exportScale: number;
|
|
1529
1513
|
currentItemStrokeColor: string;
|
|
1530
1514
|
currentItemBackgroundColor: string;
|
|
1531
|
-
currentItemFillStyle: import("
|
|
1515
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1532
1516
|
currentItemStrokeWidth: number;
|
|
1533
|
-
currentItemStrokeStyle: import("
|
|
1517
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1534
1518
|
currentItemRoughness: number;
|
|
1535
1519
|
currentItemOpacity: number;
|
|
1536
1520
|
currentItemFontFamily: number;
|
|
1537
1521
|
currentItemFontSize: number;
|
|
1538
1522
|
currentItemTextAlign: string;
|
|
1539
|
-
currentItemStartArrowhead: import("
|
|
1540
|
-
currentItemEndArrowhead: import("
|
|
1523
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1524
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1541
1525
|
currentHoveredFontFamily: number | null;
|
|
1542
|
-
currentItemRoundness: import("
|
|
1526
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1543
1527
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1544
1528
|
viewBackgroundColor: string;
|
|
1545
1529
|
scrollX: number;
|
|
@@ -1553,7 +1537,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1553
1537
|
value: import("../types").NormalizedZoomValue;
|
|
1554
1538
|
}>;
|
|
1555
1539
|
openMenu: "canvas" | "shape" | null;
|
|
1556
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1540
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1557
1541
|
openSidebar: {
|
|
1558
1542
|
name: string;
|
|
1559
1543
|
tab?: string | undefined;
|
|
@@ -1562,7 +1546,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1562
1546
|
name: "imageExport" | "help" | "jsonExport";
|
|
1563
1547
|
} | {
|
|
1564
1548
|
name: "ttd";
|
|
1565
|
-
tab: "text-to-diagram"
|
|
1549
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1566
1550
|
} | {
|
|
1567
1551
|
name: "commandPalette";
|
|
1568
1552
|
} | {
|
|
@@ -1570,7 +1554,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1570
1554
|
sourceElementId: string;
|
|
1571
1555
|
} | null;
|
|
1572
1556
|
defaultSidebarDockedPreference: boolean;
|
|
1573
|
-
lastPointerDownWith: import("
|
|
1557
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1574
1558
|
selectedElementIds: Readonly<{
|
|
1575
1559
|
[id: string]: true;
|
|
1576
1560
|
}>;
|
|
@@ -1609,7 +1593,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1609
1593
|
[id: string]: true;
|
|
1610
1594
|
}> | undefined;
|
|
1611
1595
|
username?: string | null | undefined;
|
|
1612
|
-
userState?: import("
|
|
1596
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1613
1597
|
color?: {
|
|
1614
1598
|
background: string;
|
|
1615
1599
|
stroke: string;
|
|
@@ -1626,7 +1610,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1626
1610
|
open: boolean;
|
|
1627
1611
|
panels: number;
|
|
1628
1612
|
};
|
|
1629
|
-
currentChartType: import("
|
|
1613
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1630
1614
|
pasteDialog: {
|
|
1631
1615
|
shown: false;
|
|
1632
1616
|
data: null;
|
|
@@ -1634,9 +1618,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
1634
1618
|
shown: true;
|
|
1635
1619
|
data: import("../charts").Spreadsheet;
|
|
1636
1620
|
};
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1621
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1622
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1640
1623
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1641
1624
|
originSnapOffset: {
|
|
1642
1625
|
x: number;
|
|
@@ -1647,16 +1630,15 @@ export declare const actionExportWithDarkMode: {
|
|
|
1647
1630
|
followedBy: Set<import("../types").SocketId>;
|
|
1648
1631
|
isCropping: boolean;
|
|
1649
1632
|
croppingElementId: string | null;
|
|
1650
|
-
searchMatches:
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
}[];
|
|
1633
|
+
searchMatches: Readonly<{
|
|
1634
|
+
focusedId: string | null;
|
|
1635
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1636
|
+
}> | null;
|
|
1637
|
+
activeLockedId: string | null;
|
|
1638
|
+
lockedMultiSelections: {
|
|
1639
|
+
[groupId: string]: true;
|
|
1640
|
+
};
|
|
1641
|
+
stylesPanelMode: "compact" | "full";
|
|
1660
1642
|
};
|
|
1661
1643
|
captureUpdate: "EVENTUALLY";
|
|
1662
1644
|
};
|