@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-880dbb25e
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-CRKRRBMD.js +5677 -0
- package/dist/dev/chunk-CRKRRBMD.js.map +7 -0
- package/dist/dev/chunk-FB2NA5UG.js +4132 -0
- package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
- package/dist/dev/{chunk-LMHBUWQS.js → chunk-QF5FRM6O.js} +16 -5
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-V26YBSDB.js → image-IWGLHPIX.js} +3 -3
- package/dist/dev/index.css +3021 -2942
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +30933 -24345
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-SMAPCEOQ.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-HHV2PJKY.js +4 -0
- package/dist/prod/chunk-I4UNSFV6.js +12 -0
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/data/image-4SM4COIL.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-TYY6KWIJ.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 +29 -8
- 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 +22 -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 +19 -6
- 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} +80 -42
- 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 +57 -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/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -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 +236 -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 +97 -106
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +70 -76
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +627 -490
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +206 -222
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -37
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +102 -110
- 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 +37 -40
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +82 -90
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +34 -47
- package/dist/types/excalidraw/actions/actionExport.d.ts +351 -378
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +100 -65
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +252 -264
- package/dist/types/excalidraw/actions/actionGroup.d.ts +67 -73
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +561 -40
- package/dist/types/excalidraw/actions/actionLink.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionMenu.d.ts +98 -107
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +65 -71
- package/dist/types/excalidraw/actions/actionProperties.d.ts +469 -506
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionStyles.d.ts +36 -39
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -37
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -37
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -208
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -37
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -38
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -38
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- 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 +38 -28
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +7 -7
- package/dist/types/excalidraw/components/Actions.d.ts +3 -7
- package/dist/types/excalidraw/components/App.d.ts +46 -29
- 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 +9 -5
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +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 +1 -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 +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- 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/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 +3 -3
- 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 +1 -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 +1 -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 +5 -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 +62 -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 +4 -4
- 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 +3 -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/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 +45 -25
- 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} +1 -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 +25 -10
- 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-IWGLHPIX.js.map} +0 -0
- /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-SMAPCEOQ.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,14 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type
|
|
2
|
+
import { type SceneBounds } from "@excalidraw/element";
|
|
3
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
4
|
import type { AppState, Offsets } from "../types";
|
|
4
|
-
import type { SceneBounds } from "../element/bounds";
|
|
5
5
|
export declare const actionChangeViewBackgroundColor: {
|
|
6
6
|
name: "changeViewBackgroundColor";
|
|
7
7
|
label: string;
|
|
8
|
-
paletteName: string;
|
|
9
8
|
trackEvent: false;
|
|
10
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform: (_: readonly import("
|
|
10
|
+
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
12
11
|
appState: any;
|
|
13
12
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
14
13
|
};
|
|
@@ -19,17 +18,16 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
19
18
|
export declare const actionClearCanvas: {
|
|
20
19
|
name: "clearCanvas";
|
|
21
20
|
label: string;
|
|
22
|
-
paletteName: string;
|
|
23
21
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
trackEvent: {
|
|
25
23
|
category: "canvas";
|
|
26
24
|
};
|
|
27
25
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
28
|
-
perform: (elements: readonly import("
|
|
29
|
-
elements: import("
|
|
26
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
27
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
30
28
|
appState: {
|
|
31
29
|
files: {};
|
|
32
|
-
theme: import("
|
|
30
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
33
31
|
penMode: boolean;
|
|
34
32
|
penDetected: boolean;
|
|
35
33
|
exportBackground: boolean;
|
|
@@ -51,108 +49,52 @@ export declare const actionClearCanvas: {
|
|
|
51
49
|
activeTool: {
|
|
52
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
51
|
locked: boolean;
|
|
52
|
+
fromSelection: boolean;
|
|
54
53
|
} & import("../types").ActiveTool;
|
|
55
|
-
|
|
56
|
-
zenModeEnabled: boolean;
|
|
57
|
-
objectsSnapModeEnabled: boolean;
|
|
58
|
-
name: string | null;
|
|
59
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
60
|
-
contextMenu: {
|
|
61
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
62
|
-
top: number;
|
|
63
|
-
left: number;
|
|
64
|
-
} | null;
|
|
65
|
-
showWelcomeScreen: boolean;
|
|
66
|
-
isLoading: boolean;
|
|
67
|
-
errorMessage: import("react").ReactNode;
|
|
68
|
-
activeEmbeddable: {
|
|
69
|
-
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
70
|
-
state: "hover" | "active";
|
|
71
|
-
} | null;
|
|
72
|
-
newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
|
|
73
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
74
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
75
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
76
|
-
isBindingEnabled: boolean;
|
|
77
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
78
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
79
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
54
|
+
viewBackgroundColor: string;
|
|
80
55
|
frameRendering: {
|
|
81
56
|
enabled: boolean;
|
|
82
57
|
name: boolean;
|
|
83
58
|
outline: boolean;
|
|
84
59
|
clip: boolean;
|
|
85
60
|
};
|
|
86
|
-
|
|
87
|
-
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
88
|
-
editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
89
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
90
|
-
exportWithDarkMode: boolean;
|
|
91
|
-
exportScale: number;
|
|
92
|
-
currentItemStrokeColor: string;
|
|
93
|
-
currentItemBackgroundColor: string;
|
|
94
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
95
|
-
currentItemStrokeWidth: number;
|
|
96
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
97
|
-
currentItemRoughness: number;
|
|
98
|
-
currentItemOpacity: number;
|
|
99
|
-
currentItemFontFamily: number;
|
|
100
|
-
currentItemFontSize: number;
|
|
101
|
-
currentItemTextAlign: string;
|
|
102
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
103
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
104
|
-
currentHoveredFontFamily: number | null;
|
|
105
|
-
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
106
|
-
viewBackgroundColor: string;
|
|
107
|
-
scrollX: number;
|
|
108
|
-
scrollY: number;
|
|
109
|
-
cursorButton: "up" | "down";
|
|
110
|
-
scrolledOutside: boolean;
|
|
111
|
-
isResizing: boolean;
|
|
112
|
-
isRotating: boolean;
|
|
61
|
+
name: string | null;
|
|
113
62
|
zoom: Readonly<{
|
|
114
63
|
value: import("../types").NormalizedZoomValue;
|
|
115
64
|
}>;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
name: string;
|
|
120
|
-
tab?: string | undefined;
|
|
121
|
-
} | null;
|
|
65
|
+
scrollX: number;
|
|
66
|
+
scrollY: number;
|
|
67
|
+
viewModeEnabled: boolean;
|
|
122
68
|
openDialog: {
|
|
123
69
|
name: "imageExport" | "help" | "jsonExport";
|
|
124
70
|
} | {
|
|
125
71
|
name: "ttd";
|
|
126
|
-
tab: "text-to-diagram"
|
|
72
|
+
tab: "mermaid" | "text-to-diagram";
|
|
127
73
|
} | {
|
|
128
74
|
name: "commandPalette";
|
|
129
75
|
} | {
|
|
130
76
|
name: "elementLinkSelector";
|
|
131
77
|
sourceElementId: string;
|
|
132
78
|
} | null;
|
|
133
|
-
|
|
134
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
79
|
+
editingGroupId: string | null;
|
|
135
80
|
selectedElementIds: Readonly<{
|
|
136
81
|
[id: string]: true;
|
|
137
82
|
}>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
[id: string]: true;
|
|
143
|
-
};
|
|
144
|
-
selectedElementsAreBeingDragged: boolean;
|
|
145
|
-
shouldCacheIgnoreZoom: boolean;
|
|
146
|
-
toast: {
|
|
147
|
-
message: string;
|
|
148
|
-
closable?: boolean | undefined;
|
|
149
|
-
duration?: number | undefined;
|
|
83
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
84
|
+
activeEmbeddable: {
|
|
85
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
86
|
+
state: "active" | "hover";
|
|
150
87
|
} | null;
|
|
88
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
151
89
|
selectedGroupIds: {
|
|
152
90
|
[groupId: string]: boolean;
|
|
153
91
|
};
|
|
154
|
-
|
|
155
|
-
|
|
92
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
93
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
94
|
+
isBindingEnabled: boolean;
|
|
95
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
96
|
+
isRotating: boolean;
|
|
97
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
156
98
|
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
157
99
|
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
158
100
|
button?: "up" | "down" | undefined;
|
|
@@ -160,7 +102,7 @@ export declare const actionClearCanvas: {
|
|
|
160
102
|
[id: string]: true;
|
|
161
103
|
}> | undefined;
|
|
162
104
|
username?: string | null | undefined;
|
|
163
|
-
userState?: import("
|
|
105
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
164
106
|
color?: {
|
|
165
107
|
background: string;
|
|
166
108
|
stroke: string;
|
|
@@ -173,29 +115,82 @@ export declare const actionClearCanvas: {
|
|
|
173
115
|
isSpeaking?: boolean | undefined;
|
|
174
116
|
isMuted?: boolean | undefined;
|
|
175
117
|
}>>;
|
|
176
|
-
currentChartType: import("../element/types").ChartType;
|
|
177
|
-
pendingImageElementId: string | null;
|
|
178
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
179
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
180
118
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
119
|
+
zenModeEnabled: boolean;
|
|
120
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
121
|
+
isCropping: boolean;
|
|
122
|
+
croppingElementId: string | null;
|
|
123
|
+
searchMatches: Readonly<{
|
|
124
|
+
focusedId: string | null;
|
|
125
|
+
matches: readonly import("../types").SearchMatch[];
|
|
126
|
+
}> | null;
|
|
127
|
+
activeLockedId: string | null;
|
|
128
|
+
contextMenu: {
|
|
129
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
130
|
+
top: number;
|
|
131
|
+
left: number;
|
|
132
|
+
} | null;
|
|
133
|
+
showWelcomeScreen: boolean;
|
|
134
|
+
isLoading: boolean;
|
|
135
|
+
errorMessage: import("react").ReactNode;
|
|
136
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
137
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
138
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
139
|
+
editingFrame: string | null;
|
|
140
|
+
exportWithDarkMode: boolean;
|
|
141
|
+
exportScale: number;
|
|
142
|
+
currentItemStrokeColor: string;
|
|
143
|
+
currentItemBackgroundColor: string;
|
|
144
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
145
|
+
currentItemStrokeWidth: number;
|
|
146
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
147
|
+
currentItemRoughness: number;
|
|
148
|
+
currentItemOpacity: number;
|
|
149
|
+
currentItemFontFamily: number;
|
|
150
|
+
currentItemFontSize: number;
|
|
151
|
+
currentItemTextAlign: string;
|
|
152
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
153
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
154
|
+
currentHoveredFontFamily: number | null;
|
|
155
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
156
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
157
|
+
cursorButton: "up" | "down";
|
|
158
|
+
scrolledOutside: boolean;
|
|
159
|
+
isResizing: boolean;
|
|
160
|
+
openMenu: "canvas" | "shape" | null;
|
|
161
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
162
|
+
openSidebar: {
|
|
163
|
+
name: string;
|
|
164
|
+
tab?: string | undefined;
|
|
165
|
+
} | null;
|
|
166
|
+
defaultSidebarDockedPreference: boolean;
|
|
167
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
168
|
+
hoveredElementIds: Readonly<{
|
|
169
|
+
[id: string]: true;
|
|
170
|
+
}>;
|
|
171
|
+
previousSelectedElementIds: {
|
|
172
|
+
[id: string]: true;
|
|
173
|
+
};
|
|
174
|
+
selectedElementsAreBeingDragged: boolean;
|
|
175
|
+
shouldCacheIgnoreZoom: boolean;
|
|
176
|
+
toast: {
|
|
177
|
+
message: string;
|
|
178
|
+
closable?: boolean | undefined;
|
|
179
|
+
duration?: number | undefined;
|
|
180
|
+
} | null;
|
|
181
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
182
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
183
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
181
184
|
originSnapOffset: {
|
|
182
185
|
x: number;
|
|
183
186
|
y: number;
|
|
184
187
|
} | null;
|
|
188
|
+
objectsSnapModeEnabled: boolean;
|
|
185
189
|
userToFollow: import("../types").UserToFollow | null;
|
|
186
190
|
followedBy: Set<import("../types").SocketId>;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
id: string;
|
|
191
|
-
focus: boolean;
|
|
192
|
-
matchedLines: {
|
|
193
|
-
offsetX: number;
|
|
194
|
-
offsetY: number;
|
|
195
|
-
width: number;
|
|
196
|
-
height: number;
|
|
197
|
-
}[];
|
|
198
|
-
}[];
|
|
191
|
+
lockedMultiSelections: {
|
|
192
|
+
[groupId: string]: true;
|
|
193
|
+
};
|
|
199
194
|
};
|
|
200
195
|
captureUpdate: "IMMEDIATELY";
|
|
201
196
|
};
|
|
@@ -210,7 +205,7 @@ export declare const actionZoomIn: {
|
|
|
210
205
|
trackEvent: {
|
|
211
206
|
category: "canvas";
|
|
212
207
|
};
|
|
213
|
-
perform: (_elements: readonly import("
|
|
208
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
214
209
|
appState: {
|
|
215
210
|
userToFollow: null;
|
|
216
211
|
scrollX: number;
|
|
@@ -227,17 +222,17 @@ export declare const actionZoomIn: {
|
|
|
227
222
|
isLoading: boolean;
|
|
228
223
|
errorMessage: import("react").ReactNode;
|
|
229
224
|
activeEmbeddable: {
|
|
230
|
-
element: import("
|
|
231
|
-
state: "
|
|
225
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
226
|
+
state: "active" | "hover";
|
|
232
227
|
} | null;
|
|
233
|
-
newElement: import("
|
|
234
|
-
resizingElement: import("
|
|
235
|
-
multiElement: import("
|
|
236
|
-
selectionElement: import("
|
|
228
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
229
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
230
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
231
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
232
|
isBindingEnabled: boolean;
|
|
238
|
-
startBoundElement: import("
|
|
239
|
-
suggestedBindings: import("
|
|
240
|
-
frameToHighlight: import("
|
|
233
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
234
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
235
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
241
236
|
frameRendering: {
|
|
242
237
|
enabled: boolean;
|
|
243
238
|
name: boolean;
|
|
@@ -245,12 +240,12 @@ export declare const actionZoomIn: {
|
|
|
245
240
|
clip: boolean;
|
|
246
241
|
};
|
|
247
242
|
editingFrame: string | null;
|
|
248
|
-
elementsToHighlight: import("
|
|
249
|
-
editingTextElement: import("
|
|
250
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
243
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
244
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
251
245
|
activeTool: {
|
|
252
246
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
253
247
|
locked: boolean;
|
|
248
|
+
fromSelection: boolean;
|
|
254
249
|
} & import("../types").ActiveTool;
|
|
255
250
|
penMode: boolean;
|
|
256
251
|
penDetected: boolean;
|
|
@@ -260,18 +255,18 @@ export declare const actionZoomIn: {
|
|
|
260
255
|
exportScale: number;
|
|
261
256
|
currentItemStrokeColor: string;
|
|
262
257
|
currentItemBackgroundColor: string;
|
|
263
|
-
currentItemFillStyle: import("
|
|
258
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
264
259
|
currentItemStrokeWidth: number;
|
|
265
|
-
currentItemStrokeStyle: import("
|
|
260
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
266
261
|
currentItemRoughness: number;
|
|
267
262
|
currentItemOpacity: number;
|
|
268
263
|
currentItemFontFamily: number;
|
|
269
264
|
currentItemFontSize: number;
|
|
270
265
|
currentItemTextAlign: string;
|
|
271
|
-
currentItemStartArrowhead: import("
|
|
272
|
-
currentItemEndArrowhead: import("
|
|
266
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
267
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
273
268
|
currentHoveredFontFamily: number | null;
|
|
274
|
-
currentItemRoundness: import("
|
|
269
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
275
270
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
276
271
|
viewBackgroundColor: string;
|
|
277
272
|
cursorButton: "up" | "down";
|
|
@@ -289,7 +284,7 @@ export declare const actionZoomIn: {
|
|
|
289
284
|
name: "imageExport" | "help" | "jsonExport";
|
|
290
285
|
} | {
|
|
291
286
|
name: "ttd";
|
|
292
|
-
tab: "text-to-diagram"
|
|
287
|
+
tab: "mermaid" | "text-to-diagram";
|
|
293
288
|
} | {
|
|
294
289
|
name: "commandPalette";
|
|
295
290
|
} | {
|
|
@@ -297,7 +292,7 @@ export declare const actionZoomIn: {
|
|
|
297
292
|
sourceElementId: string;
|
|
298
293
|
} | null;
|
|
299
294
|
defaultSidebarDockedPreference: boolean;
|
|
300
|
-
lastPointerDownWith: import("
|
|
295
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
301
296
|
selectedElementIds: Readonly<{
|
|
302
297
|
[id: string]: true;
|
|
303
298
|
}>;
|
|
@@ -315,7 +310,7 @@ export declare const actionZoomIn: {
|
|
|
315
310
|
duration?: number | undefined;
|
|
316
311
|
} | null;
|
|
317
312
|
zenModeEnabled: boolean;
|
|
318
|
-
theme: import("
|
|
313
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
319
314
|
gridSize: number;
|
|
320
315
|
gridStep: number;
|
|
321
316
|
gridModeEnabled: boolean;
|
|
@@ -336,7 +331,7 @@ export declare const actionZoomIn: {
|
|
|
336
331
|
[id: string]: true;
|
|
337
332
|
}> | undefined;
|
|
338
333
|
username?: string | null | undefined;
|
|
339
|
-
userState?: import("
|
|
334
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
340
335
|
color?: {
|
|
341
336
|
background: string;
|
|
342
337
|
stroke: string;
|
|
@@ -353,7 +348,7 @@ export declare const actionZoomIn: {
|
|
|
353
348
|
open: boolean;
|
|
354
349
|
panels: number;
|
|
355
350
|
};
|
|
356
|
-
currentChartType: import("
|
|
351
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
357
352
|
pasteDialog: {
|
|
358
353
|
shown: false;
|
|
359
354
|
data: null;
|
|
@@ -361,9 +356,8 @@ export declare const actionZoomIn: {
|
|
|
361
356
|
shown: true;
|
|
362
357
|
data: import("../charts").Spreadsheet;
|
|
363
358
|
};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
359
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
360
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
367
361
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
368
362
|
originSnapOffset: {
|
|
369
363
|
x: number;
|
|
@@ -373,16 +367,14 @@ export declare const actionZoomIn: {
|
|
|
373
367
|
followedBy: Set<import("../types").SocketId>;
|
|
374
368
|
isCropping: boolean;
|
|
375
369
|
croppingElementId: string | null;
|
|
376
|
-
searchMatches:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}[];
|
|
385
|
-
}[];
|
|
370
|
+
searchMatches: Readonly<{
|
|
371
|
+
focusedId: string | null;
|
|
372
|
+
matches: readonly import("../types").SearchMatch[];
|
|
373
|
+
}> | null;
|
|
374
|
+
activeLockedId: string | null;
|
|
375
|
+
lockedMultiSelections: {
|
|
376
|
+
[groupId: string]: true;
|
|
377
|
+
};
|
|
386
378
|
};
|
|
387
379
|
captureUpdate: "EVENTUALLY";
|
|
388
380
|
};
|
|
@@ -399,7 +391,7 @@ export declare const actionZoomOut: {
|
|
|
399
391
|
trackEvent: {
|
|
400
392
|
category: "canvas";
|
|
401
393
|
};
|
|
402
|
-
perform: (_elements: readonly import("
|
|
394
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
403
395
|
appState: {
|
|
404
396
|
userToFollow: null;
|
|
405
397
|
scrollX: number;
|
|
@@ -416,17 +408,17 @@ export declare const actionZoomOut: {
|
|
|
416
408
|
isLoading: boolean;
|
|
417
409
|
errorMessage: import("react").ReactNode;
|
|
418
410
|
activeEmbeddable: {
|
|
419
|
-
element: import("
|
|
420
|
-
state: "
|
|
411
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
412
|
+
state: "active" | "hover";
|
|
421
413
|
} | null;
|
|
422
|
-
newElement: import("
|
|
423
|
-
resizingElement: import("
|
|
424
|
-
multiElement: import("
|
|
425
|
-
selectionElement: import("
|
|
414
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
415
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
416
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
417
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
426
418
|
isBindingEnabled: boolean;
|
|
427
|
-
startBoundElement: import("
|
|
428
|
-
suggestedBindings: import("
|
|
429
|
-
frameToHighlight: import("
|
|
419
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
420
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
421
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
430
422
|
frameRendering: {
|
|
431
423
|
enabled: boolean;
|
|
432
424
|
name: boolean;
|
|
@@ -434,12 +426,12 @@ export declare const actionZoomOut: {
|
|
|
434
426
|
clip: boolean;
|
|
435
427
|
};
|
|
436
428
|
editingFrame: string | null;
|
|
437
|
-
elementsToHighlight: import("
|
|
438
|
-
editingTextElement: import("
|
|
439
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
429
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
430
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
440
431
|
activeTool: {
|
|
441
432
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
442
433
|
locked: boolean;
|
|
434
|
+
fromSelection: boolean;
|
|
443
435
|
} & import("../types").ActiveTool;
|
|
444
436
|
penMode: boolean;
|
|
445
437
|
penDetected: boolean;
|
|
@@ -449,18 +441,18 @@ export declare const actionZoomOut: {
|
|
|
449
441
|
exportScale: number;
|
|
450
442
|
currentItemStrokeColor: string;
|
|
451
443
|
currentItemBackgroundColor: string;
|
|
452
|
-
currentItemFillStyle: import("
|
|
444
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
453
445
|
currentItemStrokeWidth: number;
|
|
454
|
-
currentItemStrokeStyle: import("
|
|
446
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
455
447
|
currentItemRoughness: number;
|
|
456
448
|
currentItemOpacity: number;
|
|
457
449
|
currentItemFontFamily: number;
|
|
458
450
|
currentItemFontSize: number;
|
|
459
451
|
currentItemTextAlign: string;
|
|
460
|
-
currentItemStartArrowhead: import("
|
|
461
|
-
currentItemEndArrowhead: import("
|
|
452
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
453
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
462
454
|
currentHoveredFontFamily: number | null;
|
|
463
|
-
currentItemRoundness: import("
|
|
455
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
464
456
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
465
457
|
viewBackgroundColor: string;
|
|
466
458
|
cursorButton: "up" | "down";
|
|
@@ -478,7 +470,7 @@ export declare const actionZoomOut: {
|
|
|
478
470
|
name: "imageExport" | "help" | "jsonExport";
|
|
479
471
|
} | {
|
|
480
472
|
name: "ttd";
|
|
481
|
-
tab: "text-to-diagram"
|
|
473
|
+
tab: "mermaid" | "text-to-diagram";
|
|
482
474
|
} | {
|
|
483
475
|
name: "commandPalette";
|
|
484
476
|
} | {
|
|
@@ -486,7 +478,7 @@ export declare const actionZoomOut: {
|
|
|
486
478
|
sourceElementId: string;
|
|
487
479
|
} | null;
|
|
488
480
|
defaultSidebarDockedPreference: boolean;
|
|
489
|
-
lastPointerDownWith: import("
|
|
481
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
490
482
|
selectedElementIds: Readonly<{
|
|
491
483
|
[id: string]: true;
|
|
492
484
|
}>;
|
|
@@ -504,7 +496,7 @@ export declare const actionZoomOut: {
|
|
|
504
496
|
duration?: number | undefined;
|
|
505
497
|
} | null;
|
|
506
498
|
zenModeEnabled: boolean;
|
|
507
|
-
theme: import("
|
|
499
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
508
500
|
gridSize: number;
|
|
509
501
|
gridStep: number;
|
|
510
502
|
gridModeEnabled: boolean;
|
|
@@ -525,7 +517,7 @@ export declare const actionZoomOut: {
|
|
|
525
517
|
[id: string]: true;
|
|
526
518
|
}> | undefined;
|
|
527
519
|
username?: string | null | undefined;
|
|
528
|
-
userState?: import("
|
|
520
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
529
521
|
color?: {
|
|
530
522
|
background: string;
|
|
531
523
|
stroke: string;
|
|
@@ -542,7 +534,7 @@ export declare const actionZoomOut: {
|
|
|
542
534
|
open: boolean;
|
|
543
535
|
panels: number;
|
|
544
536
|
};
|
|
545
|
-
currentChartType: import("
|
|
537
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
546
538
|
pasteDialog: {
|
|
547
539
|
shown: false;
|
|
548
540
|
data: null;
|
|
@@ -550,9 +542,8 @@ export declare const actionZoomOut: {
|
|
|
550
542
|
shown: true;
|
|
551
543
|
data: import("../charts").Spreadsheet;
|
|
552
544
|
};
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
545
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
546
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
556
547
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
557
548
|
originSnapOffset: {
|
|
558
549
|
x: number;
|
|
@@ -562,16 +553,14 @@ export declare const actionZoomOut: {
|
|
|
562
553
|
followedBy: Set<import("../types").SocketId>;
|
|
563
554
|
isCropping: boolean;
|
|
564
555
|
croppingElementId: string | null;
|
|
565
|
-
searchMatches:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}[];
|
|
574
|
-
}[];
|
|
556
|
+
searchMatches: Readonly<{
|
|
557
|
+
focusedId: string | null;
|
|
558
|
+
matches: readonly import("../types").SearchMatch[];
|
|
559
|
+
}> | null;
|
|
560
|
+
activeLockedId: string | null;
|
|
561
|
+
lockedMultiSelections: {
|
|
562
|
+
[groupId: string]: true;
|
|
563
|
+
};
|
|
575
564
|
};
|
|
576
565
|
captureUpdate: "EVENTUALLY";
|
|
577
566
|
};
|
|
@@ -588,7 +577,7 @@ export declare const actionResetZoom: {
|
|
|
588
577
|
trackEvent: {
|
|
589
578
|
category: "canvas";
|
|
590
579
|
};
|
|
591
|
-
perform: (_elements: readonly import("
|
|
580
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
592
581
|
appState: {
|
|
593
582
|
userToFollow: null;
|
|
594
583
|
scrollX: number;
|
|
@@ -605,17 +594,17 @@ export declare const actionResetZoom: {
|
|
|
605
594
|
isLoading: boolean;
|
|
606
595
|
errorMessage: import("react").ReactNode;
|
|
607
596
|
activeEmbeddable: {
|
|
608
|
-
element: import("
|
|
609
|
-
state: "
|
|
597
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
598
|
+
state: "active" | "hover";
|
|
610
599
|
} | null;
|
|
611
|
-
newElement: import("
|
|
612
|
-
resizingElement: import("
|
|
613
|
-
multiElement: import("
|
|
614
|
-
selectionElement: import("
|
|
600
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
601
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
602
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
603
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
615
604
|
isBindingEnabled: boolean;
|
|
616
|
-
startBoundElement: import("
|
|
617
|
-
suggestedBindings: import("
|
|
618
|
-
frameToHighlight: import("
|
|
605
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
606
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
607
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
619
608
|
frameRendering: {
|
|
620
609
|
enabled: boolean;
|
|
621
610
|
name: boolean;
|
|
@@ -623,12 +612,12 @@ export declare const actionResetZoom: {
|
|
|
623
612
|
clip: boolean;
|
|
624
613
|
};
|
|
625
614
|
editingFrame: string | null;
|
|
626
|
-
elementsToHighlight: import("
|
|
627
|
-
editingTextElement: import("
|
|
628
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
615
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
616
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
629
617
|
activeTool: {
|
|
630
618
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
631
619
|
locked: boolean;
|
|
620
|
+
fromSelection: boolean;
|
|
632
621
|
} & import("../types").ActiveTool;
|
|
633
622
|
penMode: boolean;
|
|
634
623
|
penDetected: boolean;
|
|
@@ -638,18 +627,18 @@ export declare const actionResetZoom: {
|
|
|
638
627
|
exportScale: number;
|
|
639
628
|
currentItemStrokeColor: string;
|
|
640
629
|
currentItemBackgroundColor: string;
|
|
641
|
-
currentItemFillStyle: import("
|
|
630
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
642
631
|
currentItemStrokeWidth: number;
|
|
643
|
-
currentItemStrokeStyle: import("
|
|
632
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
644
633
|
currentItemRoughness: number;
|
|
645
634
|
currentItemOpacity: number;
|
|
646
635
|
currentItemFontFamily: number;
|
|
647
636
|
currentItemFontSize: number;
|
|
648
637
|
currentItemTextAlign: string;
|
|
649
|
-
currentItemStartArrowhead: import("
|
|
650
|
-
currentItemEndArrowhead: import("
|
|
638
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
639
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
651
640
|
currentHoveredFontFamily: number | null;
|
|
652
|
-
currentItemRoundness: import("
|
|
641
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
653
642
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
654
643
|
viewBackgroundColor: string;
|
|
655
644
|
cursorButton: "up" | "down";
|
|
@@ -667,7 +656,7 @@ export declare const actionResetZoom: {
|
|
|
667
656
|
name: "imageExport" | "help" | "jsonExport";
|
|
668
657
|
} | {
|
|
669
658
|
name: "ttd";
|
|
670
|
-
tab: "text-to-diagram"
|
|
659
|
+
tab: "mermaid" | "text-to-diagram";
|
|
671
660
|
} | {
|
|
672
661
|
name: "commandPalette";
|
|
673
662
|
} | {
|
|
@@ -675,7 +664,7 @@ export declare const actionResetZoom: {
|
|
|
675
664
|
sourceElementId: string;
|
|
676
665
|
} | null;
|
|
677
666
|
defaultSidebarDockedPreference: boolean;
|
|
678
|
-
lastPointerDownWith: import("
|
|
667
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
679
668
|
selectedElementIds: Readonly<{
|
|
680
669
|
[id: string]: true;
|
|
681
670
|
}>;
|
|
@@ -693,7 +682,7 @@ export declare const actionResetZoom: {
|
|
|
693
682
|
duration?: number | undefined;
|
|
694
683
|
} | null;
|
|
695
684
|
zenModeEnabled: boolean;
|
|
696
|
-
theme: import("
|
|
685
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
697
686
|
gridSize: number;
|
|
698
687
|
gridStep: number;
|
|
699
688
|
gridModeEnabled: boolean;
|
|
@@ -714,7 +703,7 @@ export declare const actionResetZoom: {
|
|
|
714
703
|
[id: string]: true;
|
|
715
704
|
}> | undefined;
|
|
716
705
|
username?: string | null | undefined;
|
|
717
|
-
userState?: import("
|
|
706
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
718
707
|
color?: {
|
|
719
708
|
background: string;
|
|
720
709
|
stroke: string;
|
|
@@ -731,7 +720,7 @@ export declare const actionResetZoom: {
|
|
|
731
720
|
open: boolean;
|
|
732
721
|
panels: number;
|
|
733
722
|
};
|
|
734
|
-
currentChartType: import("
|
|
723
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
735
724
|
pasteDialog: {
|
|
736
725
|
shown: false;
|
|
737
726
|
data: null;
|
|
@@ -739,9 +728,8 @@ export declare const actionResetZoom: {
|
|
|
739
728
|
shown: true;
|
|
740
729
|
data: import("../charts").Spreadsheet;
|
|
741
730
|
};
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
731
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
732
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
745
733
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
746
734
|
originSnapOffset: {
|
|
747
735
|
x: number;
|
|
@@ -751,16 +739,14 @@ export declare const actionResetZoom: {
|
|
|
751
739
|
followedBy: Set<import("../types").SocketId>;
|
|
752
740
|
isCropping: boolean;
|
|
753
741
|
croppingElementId: string | null;
|
|
754
|
-
searchMatches:
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}[];
|
|
763
|
-
}[];
|
|
742
|
+
searchMatches: Readonly<{
|
|
743
|
+
focusedId: string | null;
|
|
744
|
+
matches: readonly import("../types").SearchMatch[];
|
|
745
|
+
}> | null;
|
|
746
|
+
activeLockedId: string | null;
|
|
747
|
+
lockedMultiSelections: {
|
|
748
|
+
[groupId: string]: true;
|
|
749
|
+
};
|
|
764
750
|
};
|
|
765
751
|
captureUpdate: "EVENTUALLY";
|
|
766
752
|
};
|
|
@@ -800,17 +786,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
800
786
|
isLoading: boolean;
|
|
801
787
|
errorMessage: import("react").ReactNode;
|
|
802
788
|
activeEmbeddable: {
|
|
803
|
-
element: import("
|
|
804
|
-
state: "
|
|
789
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
790
|
+
state: "active" | "hover";
|
|
805
791
|
} | null;
|
|
806
|
-
newElement: import("
|
|
807
|
-
resizingElement: import("
|
|
808
|
-
multiElement: import("
|
|
809
|
-
selectionElement: import("
|
|
792
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
793
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
794
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
795
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
810
796
|
isBindingEnabled: boolean;
|
|
811
|
-
startBoundElement: import("
|
|
812
|
-
suggestedBindings: import("
|
|
813
|
-
frameToHighlight: import("
|
|
797
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
798
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
799
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
814
800
|
frameRendering: {
|
|
815
801
|
enabled: boolean;
|
|
816
802
|
name: boolean;
|
|
@@ -818,12 +804,12 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
818
804
|
clip: boolean;
|
|
819
805
|
};
|
|
820
806
|
editingFrame: string | null;
|
|
821
|
-
elementsToHighlight: import("
|
|
822
|
-
editingTextElement: import("
|
|
823
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
807
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
808
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
824
809
|
activeTool: {
|
|
825
810
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
826
811
|
locked: boolean;
|
|
812
|
+
fromSelection: boolean;
|
|
827
813
|
} & import("../types").ActiveTool;
|
|
828
814
|
penMode: boolean;
|
|
829
815
|
penDetected: boolean;
|
|
@@ -833,18 +819,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
833
819
|
exportScale: number;
|
|
834
820
|
currentItemStrokeColor: string;
|
|
835
821
|
currentItemBackgroundColor: string;
|
|
836
|
-
currentItemFillStyle: import("
|
|
822
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
837
823
|
currentItemStrokeWidth: number;
|
|
838
|
-
currentItemStrokeStyle: import("
|
|
824
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
839
825
|
currentItemRoughness: number;
|
|
840
826
|
currentItemOpacity: number;
|
|
841
827
|
currentItemFontFamily: number;
|
|
842
828
|
currentItemFontSize: number;
|
|
843
829
|
currentItemTextAlign: string;
|
|
844
|
-
currentItemStartArrowhead: import("
|
|
845
|
-
currentItemEndArrowhead: import("
|
|
830
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
831
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
846
832
|
currentHoveredFontFamily: number | null;
|
|
847
|
-
currentItemRoundness: import("
|
|
833
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
848
834
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
849
835
|
viewBackgroundColor: string;
|
|
850
836
|
cursorButton: "up" | "down";
|
|
@@ -862,7 +848,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
862
848
|
name: "imageExport" | "help" | "jsonExport";
|
|
863
849
|
} | {
|
|
864
850
|
name: "ttd";
|
|
865
|
-
tab: "text-to-diagram"
|
|
851
|
+
tab: "mermaid" | "text-to-diagram";
|
|
866
852
|
} | {
|
|
867
853
|
name: "commandPalette";
|
|
868
854
|
} | {
|
|
@@ -870,7 +856,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
870
856
|
sourceElementId: string;
|
|
871
857
|
} | null;
|
|
872
858
|
defaultSidebarDockedPreference: boolean;
|
|
873
|
-
lastPointerDownWith: import("
|
|
859
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
874
860
|
selectedElementIds: Readonly<{
|
|
875
861
|
[id: string]: true;
|
|
876
862
|
}>;
|
|
@@ -888,7 +874,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
888
874
|
duration?: number | undefined;
|
|
889
875
|
} | null;
|
|
890
876
|
zenModeEnabled: boolean;
|
|
891
|
-
theme: import("
|
|
877
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
892
878
|
gridSize: number;
|
|
893
879
|
gridStep: number;
|
|
894
880
|
gridModeEnabled: boolean;
|
|
@@ -909,7 +895,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
909
895
|
[id: string]: true;
|
|
910
896
|
}> | undefined;
|
|
911
897
|
username?: string | null | undefined;
|
|
912
|
-
userState?: import("
|
|
898
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
913
899
|
color?: {
|
|
914
900
|
background: string;
|
|
915
901
|
stroke: string;
|
|
@@ -926,7 +912,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
926
912
|
open: boolean;
|
|
927
913
|
panels: number;
|
|
928
914
|
};
|
|
929
|
-
currentChartType: import("
|
|
915
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
930
916
|
pasteDialog: {
|
|
931
917
|
shown: false;
|
|
932
918
|
data: null;
|
|
@@ -934,9 +920,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
934
920
|
shown: true;
|
|
935
921
|
data: import("../charts").Spreadsheet;
|
|
936
922
|
};
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
923
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
924
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
940
925
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
941
926
|
originSnapOffset: {
|
|
942
927
|
x: number;
|
|
@@ -947,16 +932,14 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
947
932
|
followedBy: Set<import("../types").SocketId>;
|
|
948
933
|
isCropping: boolean;
|
|
949
934
|
croppingElementId: string | null;
|
|
950
|
-
searchMatches:
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
}[];
|
|
959
|
-
}[];
|
|
935
|
+
searchMatches: Readonly<{
|
|
936
|
+
focusedId: string | null;
|
|
937
|
+
matches: readonly import("../types").SearchMatch[];
|
|
938
|
+
}> | null;
|
|
939
|
+
activeLockedId: string | null;
|
|
940
|
+
lockedMultiSelections: {
|
|
941
|
+
[groupId: string]: true;
|
|
942
|
+
};
|
|
960
943
|
};
|
|
961
944
|
captureUpdate: "EVENTUALLY";
|
|
962
945
|
};
|
|
@@ -991,17 +974,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
991
974
|
isLoading: boolean;
|
|
992
975
|
errorMessage: import("react").ReactNode;
|
|
993
976
|
activeEmbeddable: {
|
|
994
|
-
element: import("
|
|
995
|
-
state: "
|
|
977
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
978
|
+
state: "active" | "hover";
|
|
996
979
|
} | null;
|
|
997
|
-
newElement: import("
|
|
998
|
-
resizingElement: import("
|
|
999
|
-
multiElement: import("
|
|
1000
|
-
selectionElement: import("
|
|
980
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
981
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
982
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
983
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1001
984
|
isBindingEnabled: boolean;
|
|
1002
|
-
startBoundElement: import("
|
|
1003
|
-
suggestedBindings: import("
|
|
1004
|
-
frameToHighlight: import("
|
|
985
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
986
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
987
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1005
988
|
frameRendering: {
|
|
1006
989
|
enabled: boolean;
|
|
1007
990
|
name: boolean;
|
|
@@ -1009,12 +992,12 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1009
992
|
clip: boolean;
|
|
1010
993
|
};
|
|
1011
994
|
editingFrame: string | null;
|
|
1012
|
-
elementsToHighlight: import("
|
|
1013
|
-
editingTextElement: import("
|
|
1014
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
995
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
996
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1015
997
|
activeTool: {
|
|
1016
998
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1017
999
|
locked: boolean;
|
|
1000
|
+
fromSelection: boolean;
|
|
1018
1001
|
} & import("../types").ActiveTool;
|
|
1019
1002
|
penMode: boolean;
|
|
1020
1003
|
penDetected: boolean;
|
|
@@ -1024,18 +1007,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1024
1007
|
exportScale: number;
|
|
1025
1008
|
currentItemStrokeColor: string;
|
|
1026
1009
|
currentItemBackgroundColor: string;
|
|
1027
|
-
currentItemFillStyle: import("
|
|
1010
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1028
1011
|
currentItemStrokeWidth: number;
|
|
1029
|
-
currentItemStrokeStyle: import("
|
|
1012
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1030
1013
|
currentItemRoughness: number;
|
|
1031
1014
|
currentItemOpacity: number;
|
|
1032
1015
|
currentItemFontFamily: number;
|
|
1033
1016
|
currentItemFontSize: number;
|
|
1034
1017
|
currentItemTextAlign: string;
|
|
1035
|
-
currentItemStartArrowhead: import("
|
|
1036
|
-
currentItemEndArrowhead: import("
|
|
1018
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1019
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1037
1020
|
currentHoveredFontFamily: number | null;
|
|
1038
|
-
currentItemRoundness: import("
|
|
1021
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1039
1022
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1040
1023
|
viewBackgroundColor: string;
|
|
1041
1024
|
cursorButton: "up" | "down";
|
|
@@ -1053,7 +1036,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1053
1036
|
name: "imageExport" | "help" | "jsonExport";
|
|
1054
1037
|
} | {
|
|
1055
1038
|
name: "ttd";
|
|
1056
|
-
tab: "text-to-diagram"
|
|
1039
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1057
1040
|
} | {
|
|
1058
1041
|
name: "commandPalette";
|
|
1059
1042
|
} | {
|
|
@@ -1061,7 +1044,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1061
1044
|
sourceElementId: string;
|
|
1062
1045
|
} | null;
|
|
1063
1046
|
defaultSidebarDockedPreference: boolean;
|
|
1064
|
-
lastPointerDownWith: import("
|
|
1047
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1065
1048
|
selectedElementIds: Readonly<{
|
|
1066
1049
|
[id: string]: true;
|
|
1067
1050
|
}>;
|
|
@@ -1079,7 +1062,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1079
1062
|
duration?: number | undefined;
|
|
1080
1063
|
} | null;
|
|
1081
1064
|
zenModeEnabled: boolean;
|
|
1082
|
-
theme: import("
|
|
1065
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1083
1066
|
gridSize: number;
|
|
1084
1067
|
gridStep: number;
|
|
1085
1068
|
gridModeEnabled: boolean;
|
|
@@ -1100,7 +1083,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1100
1083
|
[id: string]: true;
|
|
1101
1084
|
}> | undefined;
|
|
1102
1085
|
username?: string | null | undefined;
|
|
1103
|
-
userState?: import("
|
|
1086
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1104
1087
|
color?: {
|
|
1105
1088
|
background: string;
|
|
1106
1089
|
stroke: string;
|
|
@@ -1117,7 +1100,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1117
1100
|
open: boolean;
|
|
1118
1101
|
panels: number;
|
|
1119
1102
|
};
|
|
1120
|
-
currentChartType: import("
|
|
1103
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1121
1104
|
pasteDialog: {
|
|
1122
1105
|
shown: false;
|
|
1123
1106
|
data: null;
|
|
@@ -1125,9 +1108,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1125
1108
|
shown: true;
|
|
1126
1109
|
data: import("../charts").Spreadsheet;
|
|
1127
1110
|
};
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1111
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1112
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1131
1113
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1132
1114
|
originSnapOffset: {
|
|
1133
1115
|
x: number;
|
|
@@ -1138,16 +1120,14 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1138
1120
|
followedBy: Set<import("../types").SocketId>;
|
|
1139
1121
|
isCropping: boolean;
|
|
1140
1122
|
croppingElementId: string | null;
|
|
1141
|
-
searchMatches:
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}[];
|
|
1150
|
-
}[];
|
|
1123
|
+
searchMatches: Readonly<{
|
|
1124
|
+
focusedId: string | null;
|
|
1125
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1126
|
+
}> | null;
|
|
1127
|
+
activeLockedId: string | null;
|
|
1128
|
+
lockedMultiSelections: {
|
|
1129
|
+
[groupId: string]: true;
|
|
1130
|
+
};
|
|
1151
1131
|
};
|
|
1152
1132
|
captureUpdate: "EVENTUALLY";
|
|
1153
1133
|
};
|
|
@@ -1158,7 +1138,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1158
1138
|
trackEvent: {
|
|
1159
1139
|
category: "canvas";
|
|
1160
1140
|
};
|
|
1161
|
-
perform: (elements: readonly import("
|
|
1141
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1162
1142
|
appState: {
|
|
1163
1143
|
scrollX: number;
|
|
1164
1144
|
scrollY: number;
|
|
@@ -1174,17 +1154,17 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1174
1154
|
isLoading: boolean;
|
|
1175
1155
|
errorMessage: import("react").ReactNode;
|
|
1176
1156
|
activeEmbeddable: {
|
|
1177
|
-
element: import("
|
|
1178
|
-
state: "
|
|
1157
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1158
|
+
state: "active" | "hover";
|
|
1179
1159
|
} | null;
|
|
1180
|
-
newElement: import("
|
|
1181
|
-
resizingElement: import("
|
|
1182
|
-
multiElement: import("
|
|
1183
|
-
selectionElement: import("
|
|
1160
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1161
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1162
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1163
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1184
1164
|
isBindingEnabled: boolean;
|
|
1185
|
-
startBoundElement: import("
|
|
1186
|
-
suggestedBindings: import("
|
|
1187
|
-
frameToHighlight: import("
|
|
1165
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1166
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1167
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1188
1168
|
frameRendering: {
|
|
1189
1169
|
enabled: boolean;
|
|
1190
1170
|
name: boolean;
|
|
@@ -1192,12 +1172,12 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1192
1172
|
clip: boolean;
|
|
1193
1173
|
};
|
|
1194
1174
|
editingFrame: string | null;
|
|
1195
|
-
elementsToHighlight: import("
|
|
1196
|
-
editingTextElement: import("
|
|
1197
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1175
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1176
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1198
1177
|
activeTool: {
|
|
1199
1178
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1200
1179
|
locked: boolean;
|
|
1180
|
+
fromSelection: boolean;
|
|
1201
1181
|
} & import("../types").ActiveTool;
|
|
1202
1182
|
penMode: boolean;
|
|
1203
1183
|
penDetected: boolean;
|
|
@@ -1207,18 +1187,18 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1207
1187
|
exportScale: number;
|
|
1208
1188
|
currentItemStrokeColor: string;
|
|
1209
1189
|
currentItemBackgroundColor: string;
|
|
1210
|
-
currentItemFillStyle: import("
|
|
1190
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1211
1191
|
currentItemStrokeWidth: number;
|
|
1212
|
-
currentItemStrokeStyle: import("
|
|
1192
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1213
1193
|
currentItemRoughness: number;
|
|
1214
1194
|
currentItemOpacity: number;
|
|
1215
1195
|
currentItemFontFamily: number;
|
|
1216
1196
|
currentItemFontSize: number;
|
|
1217
1197
|
currentItemTextAlign: string;
|
|
1218
|
-
currentItemStartArrowhead: import("
|
|
1219
|
-
currentItemEndArrowhead: import("
|
|
1198
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1199
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1220
1200
|
currentHoveredFontFamily: number | null;
|
|
1221
|
-
currentItemRoundness: import("
|
|
1201
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1222
1202
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1223
1203
|
viewBackgroundColor: string;
|
|
1224
1204
|
cursorButton: "up" | "down";
|
|
@@ -1236,7 +1216,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1236
1216
|
name: "imageExport" | "help" | "jsonExport";
|
|
1237
1217
|
} | {
|
|
1238
1218
|
name: "ttd";
|
|
1239
|
-
tab: "text-to-diagram"
|
|
1219
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1240
1220
|
} | {
|
|
1241
1221
|
name: "commandPalette";
|
|
1242
1222
|
} | {
|
|
@@ -1244,7 +1224,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1244
1224
|
sourceElementId: string;
|
|
1245
1225
|
} | null;
|
|
1246
1226
|
defaultSidebarDockedPreference: boolean;
|
|
1247
|
-
lastPointerDownWith: import("
|
|
1227
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1248
1228
|
selectedElementIds: Readonly<{
|
|
1249
1229
|
[id: string]: true;
|
|
1250
1230
|
}>;
|
|
@@ -1262,7 +1242,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1262
1242
|
duration?: number | undefined;
|
|
1263
1243
|
} | null;
|
|
1264
1244
|
zenModeEnabled: boolean;
|
|
1265
|
-
theme: import("
|
|
1245
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1266
1246
|
gridSize: number;
|
|
1267
1247
|
gridStep: number;
|
|
1268
1248
|
gridModeEnabled: boolean;
|
|
@@ -1283,7 +1263,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1283
1263
|
[id: string]: true;
|
|
1284
1264
|
}> | undefined;
|
|
1285
1265
|
username?: string | null | undefined;
|
|
1286
|
-
userState?: import("
|
|
1266
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1287
1267
|
color?: {
|
|
1288
1268
|
background: string;
|
|
1289
1269
|
stroke: string;
|
|
@@ -1300,7 +1280,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1300
1280
|
open: boolean;
|
|
1301
1281
|
panels: number;
|
|
1302
1282
|
};
|
|
1303
|
-
currentChartType: import("
|
|
1283
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1304
1284
|
pasteDialog: {
|
|
1305
1285
|
shown: false;
|
|
1306
1286
|
data: null;
|
|
@@ -1308,9 +1288,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1308
1288
|
shown: true;
|
|
1309
1289
|
data: import("../charts").Spreadsheet;
|
|
1310
1290
|
};
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1291
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1292
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1314
1293
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1315
1294
|
originSnapOffset: {
|
|
1316
1295
|
x: number;
|
|
@@ -1321,16 +1300,14 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1321
1300
|
followedBy: Set<import("../types").SocketId>;
|
|
1322
1301
|
isCropping: boolean;
|
|
1323
1302
|
croppingElementId: string | null;
|
|
1324
|
-
searchMatches:
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
}[];
|
|
1333
|
-
}[];
|
|
1303
|
+
searchMatches: Readonly<{
|
|
1304
|
+
focusedId: string | null;
|
|
1305
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1306
|
+
}> | null;
|
|
1307
|
+
activeLockedId: string | null;
|
|
1308
|
+
lockedMultiSelections: {
|
|
1309
|
+
[groupId: string]: true;
|
|
1310
|
+
};
|
|
1334
1311
|
};
|
|
1335
1312
|
captureUpdate: "EVENTUALLY";
|
|
1336
1313
|
};
|
|
@@ -1345,7 +1322,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1345
1322
|
trackEvent: {
|
|
1346
1323
|
category: "canvas";
|
|
1347
1324
|
};
|
|
1348
|
-
perform: (elements: readonly import("
|
|
1325
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1349
1326
|
appState: {
|
|
1350
1327
|
scrollX: number;
|
|
1351
1328
|
scrollY: number;
|
|
@@ -1361,17 +1338,17 @@ export declare const actionZoomToFitSelection: {
|
|
|
1361
1338
|
isLoading: boolean;
|
|
1362
1339
|
errorMessage: import("react").ReactNode;
|
|
1363
1340
|
activeEmbeddable: {
|
|
1364
|
-
element: import("
|
|
1365
|
-
state: "
|
|
1341
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1342
|
+
state: "active" | "hover";
|
|
1366
1343
|
} | null;
|
|
1367
|
-
newElement: import("
|
|
1368
|
-
resizingElement: import("
|
|
1369
|
-
multiElement: import("
|
|
1370
|
-
selectionElement: import("
|
|
1344
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1345
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1346
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1347
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1371
1348
|
isBindingEnabled: boolean;
|
|
1372
|
-
startBoundElement: import("
|
|
1373
|
-
suggestedBindings: import("
|
|
1374
|
-
frameToHighlight: import("
|
|
1349
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1350
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1351
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1375
1352
|
frameRendering: {
|
|
1376
1353
|
enabled: boolean;
|
|
1377
1354
|
name: boolean;
|
|
@@ -1379,12 +1356,12 @@ export declare const actionZoomToFitSelection: {
|
|
|
1379
1356
|
clip: boolean;
|
|
1380
1357
|
};
|
|
1381
1358
|
editingFrame: string | null;
|
|
1382
|
-
elementsToHighlight: import("
|
|
1383
|
-
editingTextElement: import("
|
|
1384
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1359
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1360
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1385
1361
|
activeTool: {
|
|
1386
1362
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1387
1363
|
locked: boolean;
|
|
1364
|
+
fromSelection: boolean;
|
|
1388
1365
|
} & import("../types").ActiveTool;
|
|
1389
1366
|
penMode: boolean;
|
|
1390
1367
|
penDetected: boolean;
|
|
@@ -1394,18 +1371,18 @@ export declare const actionZoomToFitSelection: {
|
|
|
1394
1371
|
exportScale: number;
|
|
1395
1372
|
currentItemStrokeColor: string;
|
|
1396
1373
|
currentItemBackgroundColor: string;
|
|
1397
|
-
currentItemFillStyle: import("
|
|
1374
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1398
1375
|
currentItemStrokeWidth: number;
|
|
1399
|
-
currentItemStrokeStyle: import("
|
|
1376
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1400
1377
|
currentItemRoughness: number;
|
|
1401
1378
|
currentItemOpacity: number;
|
|
1402
1379
|
currentItemFontFamily: number;
|
|
1403
1380
|
currentItemFontSize: number;
|
|
1404
1381
|
currentItemTextAlign: string;
|
|
1405
|
-
currentItemStartArrowhead: import("
|
|
1406
|
-
currentItemEndArrowhead: import("
|
|
1382
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1383
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1407
1384
|
currentHoveredFontFamily: number | null;
|
|
1408
|
-
currentItemRoundness: import("
|
|
1385
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1409
1386
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1410
1387
|
viewBackgroundColor: string;
|
|
1411
1388
|
cursorButton: "up" | "down";
|
|
@@ -1423,7 +1400,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1423
1400
|
name: "imageExport" | "help" | "jsonExport";
|
|
1424
1401
|
} | {
|
|
1425
1402
|
name: "ttd";
|
|
1426
|
-
tab: "text-to-diagram"
|
|
1403
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1427
1404
|
} | {
|
|
1428
1405
|
name: "commandPalette";
|
|
1429
1406
|
} | {
|
|
@@ -1431,7 +1408,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1431
1408
|
sourceElementId: string;
|
|
1432
1409
|
} | null;
|
|
1433
1410
|
defaultSidebarDockedPreference: boolean;
|
|
1434
|
-
lastPointerDownWith: import("
|
|
1411
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1435
1412
|
selectedElementIds: Readonly<{
|
|
1436
1413
|
[id: string]: true;
|
|
1437
1414
|
}>;
|
|
@@ -1449,7 +1426,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1449
1426
|
duration?: number | undefined;
|
|
1450
1427
|
} | null;
|
|
1451
1428
|
zenModeEnabled: boolean;
|
|
1452
|
-
theme: import("
|
|
1429
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1453
1430
|
gridSize: number;
|
|
1454
1431
|
gridStep: number;
|
|
1455
1432
|
gridModeEnabled: boolean;
|
|
@@ -1470,7 +1447,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1470
1447
|
[id: string]: true;
|
|
1471
1448
|
}> | undefined;
|
|
1472
1449
|
username?: string | null | undefined;
|
|
1473
|
-
userState?: import("
|
|
1450
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1474
1451
|
color?: {
|
|
1475
1452
|
background: string;
|
|
1476
1453
|
stroke: string;
|
|
@@ -1487,7 +1464,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1487
1464
|
open: boolean;
|
|
1488
1465
|
panels: number;
|
|
1489
1466
|
};
|
|
1490
|
-
currentChartType: import("
|
|
1467
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1491
1468
|
pasteDialog: {
|
|
1492
1469
|
shown: false;
|
|
1493
1470
|
data: null;
|
|
@@ -1495,9 +1472,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1495
1472
|
shown: true;
|
|
1496
1473
|
data: import("../charts").Spreadsheet;
|
|
1497
1474
|
};
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1475
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1476
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1501
1477
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1502
1478
|
originSnapOffset: {
|
|
1503
1479
|
x: number;
|
|
@@ -1508,16 +1484,14 @@ export declare const actionZoomToFitSelection: {
|
|
|
1508
1484
|
followedBy: Set<import("../types").SocketId>;
|
|
1509
1485
|
isCropping: boolean;
|
|
1510
1486
|
croppingElementId: string | null;
|
|
1511
|
-
searchMatches:
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
}[];
|
|
1520
|
-
}[];
|
|
1487
|
+
searchMatches: Readonly<{
|
|
1488
|
+
focusedId: string | null;
|
|
1489
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1490
|
+
}> | null;
|
|
1491
|
+
activeLockedId: string | null;
|
|
1492
|
+
lockedMultiSelections: {
|
|
1493
|
+
[groupId: string]: true;
|
|
1494
|
+
};
|
|
1521
1495
|
};
|
|
1522
1496
|
captureUpdate: "EVENTUALLY";
|
|
1523
1497
|
};
|
|
@@ -1533,7 +1507,7 @@ export declare const actionZoomToFit: {
|
|
|
1533
1507
|
trackEvent: {
|
|
1534
1508
|
category: "canvas";
|
|
1535
1509
|
};
|
|
1536
|
-
perform: (elements: readonly import("
|
|
1510
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1537
1511
|
appState: {
|
|
1538
1512
|
scrollX: number;
|
|
1539
1513
|
scrollY: number;
|
|
@@ -1549,17 +1523,17 @@ export declare const actionZoomToFit: {
|
|
|
1549
1523
|
isLoading: boolean;
|
|
1550
1524
|
errorMessage: import("react").ReactNode;
|
|
1551
1525
|
activeEmbeddable: {
|
|
1552
|
-
element: import("
|
|
1553
|
-
state: "
|
|
1526
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1527
|
+
state: "active" | "hover";
|
|
1554
1528
|
} | null;
|
|
1555
|
-
newElement: import("
|
|
1556
|
-
resizingElement: import("
|
|
1557
|
-
multiElement: import("
|
|
1558
|
-
selectionElement: import("
|
|
1529
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1530
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1531
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1532
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1559
1533
|
isBindingEnabled: boolean;
|
|
1560
|
-
startBoundElement: import("
|
|
1561
|
-
suggestedBindings: import("
|
|
1562
|
-
frameToHighlight: import("
|
|
1534
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1535
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1536
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1563
1537
|
frameRendering: {
|
|
1564
1538
|
enabled: boolean;
|
|
1565
1539
|
name: boolean;
|
|
@@ -1567,12 +1541,12 @@ export declare const actionZoomToFit: {
|
|
|
1567
1541
|
clip: boolean;
|
|
1568
1542
|
};
|
|
1569
1543
|
editingFrame: string | null;
|
|
1570
|
-
elementsToHighlight: import("
|
|
1571
|
-
editingTextElement: import("
|
|
1572
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1544
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1545
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1573
1546
|
activeTool: {
|
|
1574
1547
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1575
1548
|
locked: boolean;
|
|
1549
|
+
fromSelection: boolean;
|
|
1576
1550
|
} & import("../types").ActiveTool;
|
|
1577
1551
|
penMode: boolean;
|
|
1578
1552
|
penDetected: boolean;
|
|
@@ -1582,18 +1556,18 @@ export declare const actionZoomToFit: {
|
|
|
1582
1556
|
exportScale: number;
|
|
1583
1557
|
currentItemStrokeColor: string;
|
|
1584
1558
|
currentItemBackgroundColor: string;
|
|
1585
|
-
currentItemFillStyle: import("
|
|
1559
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1586
1560
|
currentItemStrokeWidth: number;
|
|
1587
|
-
currentItemStrokeStyle: import("
|
|
1561
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1588
1562
|
currentItemRoughness: number;
|
|
1589
1563
|
currentItemOpacity: number;
|
|
1590
1564
|
currentItemFontFamily: number;
|
|
1591
1565
|
currentItemFontSize: number;
|
|
1592
1566
|
currentItemTextAlign: string;
|
|
1593
|
-
currentItemStartArrowhead: import("
|
|
1594
|
-
currentItemEndArrowhead: import("
|
|
1567
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1568
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1595
1569
|
currentHoveredFontFamily: number | null;
|
|
1596
|
-
currentItemRoundness: import("
|
|
1570
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1597
1571
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1598
1572
|
viewBackgroundColor: string;
|
|
1599
1573
|
cursorButton: "up" | "down";
|
|
@@ -1611,7 +1585,7 @@ export declare const actionZoomToFit: {
|
|
|
1611
1585
|
name: "imageExport" | "help" | "jsonExport";
|
|
1612
1586
|
} | {
|
|
1613
1587
|
name: "ttd";
|
|
1614
|
-
tab: "text-to-diagram"
|
|
1588
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1615
1589
|
} | {
|
|
1616
1590
|
name: "commandPalette";
|
|
1617
1591
|
} | {
|
|
@@ -1619,7 +1593,7 @@ export declare const actionZoomToFit: {
|
|
|
1619
1593
|
sourceElementId: string;
|
|
1620
1594
|
} | null;
|
|
1621
1595
|
defaultSidebarDockedPreference: boolean;
|
|
1622
|
-
lastPointerDownWith: import("
|
|
1596
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1623
1597
|
selectedElementIds: Readonly<{
|
|
1624
1598
|
[id: string]: true;
|
|
1625
1599
|
}>;
|
|
@@ -1637,7 +1611,7 @@ export declare const actionZoomToFit: {
|
|
|
1637
1611
|
duration?: number | undefined;
|
|
1638
1612
|
} | null;
|
|
1639
1613
|
zenModeEnabled: boolean;
|
|
1640
|
-
theme: import("
|
|
1614
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1641
1615
|
gridSize: number;
|
|
1642
1616
|
gridStep: number;
|
|
1643
1617
|
gridModeEnabled: boolean;
|
|
@@ -1658,7 +1632,7 @@ export declare const actionZoomToFit: {
|
|
|
1658
1632
|
[id: string]: true;
|
|
1659
1633
|
}> | undefined;
|
|
1660
1634
|
username?: string | null | undefined;
|
|
1661
|
-
userState?: import("
|
|
1635
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1662
1636
|
color?: {
|
|
1663
1637
|
background: string;
|
|
1664
1638
|
stroke: string;
|
|
@@ -1675,7 +1649,7 @@ export declare const actionZoomToFit: {
|
|
|
1675
1649
|
open: boolean;
|
|
1676
1650
|
panels: number;
|
|
1677
1651
|
};
|
|
1678
|
-
currentChartType: import("
|
|
1652
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1679
1653
|
pasteDialog: {
|
|
1680
1654
|
shown: false;
|
|
1681
1655
|
data: null;
|
|
@@ -1683,9 +1657,8 @@ export declare const actionZoomToFit: {
|
|
|
1683
1657
|
shown: true;
|
|
1684
1658
|
data: import("../charts").Spreadsheet;
|
|
1685
1659
|
};
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1660
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1661
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1689
1662
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1690
1663
|
originSnapOffset: {
|
|
1691
1664
|
x: number;
|
|
@@ -1696,16 +1669,14 @@ export declare const actionZoomToFit: {
|
|
|
1696
1669
|
followedBy: Set<import("../types").SocketId>;
|
|
1697
1670
|
isCropping: boolean;
|
|
1698
1671
|
croppingElementId: string | null;
|
|
1699
|
-
searchMatches:
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
}[];
|
|
1708
|
-
}[];
|
|
1672
|
+
searchMatches: Readonly<{
|
|
1673
|
+
focusedId: string | null;
|
|
1674
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1675
|
+
}> | null;
|
|
1676
|
+
activeLockedId: string | null;
|
|
1677
|
+
lockedMultiSelections: {
|
|
1678
|
+
[groupId: string]: true;
|
|
1679
|
+
};
|
|
1709
1680
|
};
|
|
1710
1681
|
captureUpdate: "EVENTUALLY";
|
|
1711
1682
|
};
|
|
@@ -1722,7 +1693,7 @@ export declare const actionToggleTheme: {
|
|
|
1722
1693
|
trackEvent: {
|
|
1723
1694
|
category: "canvas";
|
|
1724
1695
|
};
|
|
1725
|
-
perform: (_: readonly import("
|
|
1696
|
+
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1726
1697
|
appState: {
|
|
1727
1698
|
theme: any;
|
|
1728
1699
|
contextMenu: {
|
|
@@ -1734,17 +1705,17 @@ export declare const actionToggleTheme: {
|
|
|
1734
1705
|
isLoading: boolean;
|
|
1735
1706
|
errorMessage: import("react").ReactNode;
|
|
1736
1707
|
activeEmbeddable: {
|
|
1737
|
-
element: import("
|
|
1738
|
-
state: "
|
|
1708
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1709
|
+
state: "active" | "hover";
|
|
1739
1710
|
} | null;
|
|
1740
|
-
newElement: import("
|
|
1741
|
-
resizingElement: import("
|
|
1742
|
-
multiElement: import("
|
|
1743
|
-
selectionElement: import("
|
|
1711
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1712
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1713
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1714
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1744
1715
|
isBindingEnabled: boolean;
|
|
1745
|
-
startBoundElement: import("
|
|
1746
|
-
suggestedBindings: import("
|
|
1747
|
-
frameToHighlight: import("
|
|
1716
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1717
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1718
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1748
1719
|
frameRendering: {
|
|
1749
1720
|
enabled: boolean;
|
|
1750
1721
|
name: boolean;
|
|
@@ -1752,12 +1723,12 @@ export declare const actionToggleTheme: {
|
|
|
1752
1723
|
clip: boolean;
|
|
1753
1724
|
};
|
|
1754
1725
|
editingFrame: string | null;
|
|
1755
|
-
elementsToHighlight: import("
|
|
1756
|
-
editingTextElement: import("
|
|
1757
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1726
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1727
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1758
1728
|
activeTool: {
|
|
1759
1729
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1760
1730
|
locked: boolean;
|
|
1731
|
+
fromSelection: boolean;
|
|
1761
1732
|
} & import("../types").ActiveTool;
|
|
1762
1733
|
penMode: boolean;
|
|
1763
1734
|
penDetected: boolean;
|
|
@@ -1767,18 +1738,18 @@ export declare const actionToggleTheme: {
|
|
|
1767
1738
|
exportScale: number;
|
|
1768
1739
|
currentItemStrokeColor: string;
|
|
1769
1740
|
currentItemBackgroundColor: string;
|
|
1770
|
-
currentItemFillStyle: import("
|
|
1741
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1771
1742
|
currentItemStrokeWidth: number;
|
|
1772
|
-
currentItemStrokeStyle: import("
|
|
1743
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1773
1744
|
currentItemRoughness: number;
|
|
1774
1745
|
currentItemOpacity: number;
|
|
1775
1746
|
currentItemFontFamily: number;
|
|
1776
1747
|
currentItemFontSize: number;
|
|
1777
1748
|
currentItemTextAlign: string;
|
|
1778
|
-
currentItemStartArrowhead: import("
|
|
1779
|
-
currentItemEndArrowhead: import("
|
|
1749
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1750
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1780
1751
|
currentHoveredFontFamily: number | null;
|
|
1781
|
-
currentItemRoundness: import("
|
|
1752
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1782
1753
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1783
1754
|
viewBackgroundColor: string;
|
|
1784
1755
|
scrollX: number;
|
|
@@ -1801,7 +1772,7 @@ export declare const actionToggleTheme: {
|
|
|
1801
1772
|
name: "imageExport" | "help" | "jsonExport";
|
|
1802
1773
|
} | {
|
|
1803
1774
|
name: "ttd";
|
|
1804
|
-
tab: "text-to-diagram"
|
|
1775
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1805
1776
|
} | {
|
|
1806
1777
|
name: "commandPalette";
|
|
1807
1778
|
} | {
|
|
@@ -1809,7 +1780,7 @@ export declare const actionToggleTheme: {
|
|
|
1809
1780
|
sourceElementId: string;
|
|
1810
1781
|
} | null;
|
|
1811
1782
|
defaultSidebarDockedPreference: boolean;
|
|
1812
|
-
lastPointerDownWith: import("
|
|
1783
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1813
1784
|
selectedElementIds: Readonly<{
|
|
1814
1785
|
[id: string]: true;
|
|
1815
1786
|
}>;
|
|
@@ -1847,7 +1818,7 @@ export declare const actionToggleTheme: {
|
|
|
1847
1818
|
[id: string]: true;
|
|
1848
1819
|
}> | undefined;
|
|
1849
1820
|
username?: string | null | undefined;
|
|
1850
|
-
userState?: import("
|
|
1821
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1851
1822
|
color?: {
|
|
1852
1823
|
background: string;
|
|
1853
1824
|
stroke: string;
|
|
@@ -1864,7 +1835,7 @@ export declare const actionToggleTheme: {
|
|
|
1864
1835
|
open: boolean;
|
|
1865
1836
|
panels: number;
|
|
1866
1837
|
};
|
|
1867
|
-
currentChartType: import("
|
|
1838
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1868
1839
|
pasteDialog: {
|
|
1869
1840
|
shown: false;
|
|
1870
1841
|
data: null;
|
|
@@ -1872,9 +1843,8 @@ export declare const actionToggleTheme: {
|
|
|
1872
1843
|
shown: true;
|
|
1873
1844
|
data: import("../charts").Spreadsheet;
|
|
1874
1845
|
};
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1846
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1847
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1878
1848
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1879
1849
|
originSnapOffset: {
|
|
1880
1850
|
x: number;
|
|
@@ -1885,16 +1855,14 @@ export declare const actionToggleTheme: {
|
|
|
1885
1855
|
followedBy: Set<import("../types").SocketId>;
|
|
1886
1856
|
isCropping: boolean;
|
|
1887
1857
|
croppingElementId: string | null;
|
|
1888
|
-
searchMatches:
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
}[];
|
|
1897
|
-
}[];
|
|
1858
|
+
searchMatches: Readonly<{
|
|
1859
|
+
focusedId: string | null;
|
|
1860
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1861
|
+
}> | null;
|
|
1862
|
+
activeLockedId: string | null;
|
|
1863
|
+
lockedMultiSelections: {
|
|
1864
|
+
[groupId: string]: true;
|
|
1865
|
+
};
|
|
1898
1866
|
};
|
|
1899
1867
|
captureUpdate: "EVENTUALLY";
|
|
1900
1868
|
};
|
|
@@ -1909,7 +1877,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1909
1877
|
trackEvent: {
|
|
1910
1878
|
category: "toolbar";
|
|
1911
1879
|
};
|
|
1912
|
-
perform: (elements: readonly import("
|
|
1880
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
1913
1881
|
appState: {
|
|
1914
1882
|
selectedElementIds: {};
|
|
1915
1883
|
selectedGroupIds: {};
|
|
@@ -1917,6 +1885,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1917
1885
|
activeTool: {
|
|
1918
1886
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1919
1887
|
locked: boolean;
|
|
1888
|
+
fromSelection: boolean;
|
|
1920
1889
|
} & import("../types").ActiveTool;
|
|
1921
1890
|
contextMenu: {
|
|
1922
1891
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1926,14 +1895,14 @@ export declare const actionToggleEraserTool: {
|
|
|
1926
1895
|
showWelcomeScreen: boolean;
|
|
1927
1896
|
isLoading: boolean;
|
|
1928
1897
|
errorMessage: import("react").ReactNode;
|
|
1929
|
-
newElement: import("
|
|
1930
|
-
resizingElement: import("
|
|
1931
|
-
multiElement: import("
|
|
1932
|
-
selectionElement: import("
|
|
1898
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1899
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1900
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1901
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1933
1902
|
isBindingEnabled: boolean;
|
|
1934
|
-
startBoundElement: import("
|
|
1935
|
-
suggestedBindings: import("
|
|
1936
|
-
frameToHighlight: import("
|
|
1903
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1904
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1905
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1937
1906
|
frameRendering: {
|
|
1938
1907
|
enabled: boolean;
|
|
1939
1908
|
name: boolean;
|
|
@@ -1941,9 +1910,8 @@ export declare const actionToggleEraserTool: {
|
|
|
1941
1910
|
clip: boolean;
|
|
1942
1911
|
};
|
|
1943
1912
|
editingFrame: string | null;
|
|
1944
|
-
elementsToHighlight: import("
|
|
1945
|
-
editingTextElement: import("
|
|
1946
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1913
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1914
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1947
1915
|
penMode: boolean;
|
|
1948
1916
|
penDetected: boolean;
|
|
1949
1917
|
exportBackground: boolean;
|
|
@@ -1952,18 +1920,18 @@ export declare const actionToggleEraserTool: {
|
|
|
1952
1920
|
exportScale: number;
|
|
1953
1921
|
currentItemStrokeColor: string;
|
|
1954
1922
|
currentItemBackgroundColor: string;
|
|
1955
|
-
currentItemFillStyle: import("
|
|
1923
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1956
1924
|
currentItemStrokeWidth: number;
|
|
1957
|
-
currentItemStrokeStyle: import("
|
|
1925
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1958
1926
|
currentItemRoughness: number;
|
|
1959
1927
|
currentItemOpacity: number;
|
|
1960
1928
|
currentItemFontFamily: number;
|
|
1961
1929
|
currentItemFontSize: number;
|
|
1962
1930
|
currentItemTextAlign: string;
|
|
1963
|
-
currentItemStartArrowhead: import("
|
|
1964
|
-
currentItemEndArrowhead: import("
|
|
1931
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1932
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1965
1933
|
currentHoveredFontFamily: number | null;
|
|
1966
|
-
currentItemRoundness: import("
|
|
1934
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1967
1935
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1968
1936
|
viewBackgroundColor: string;
|
|
1969
1937
|
scrollX: number;
|
|
@@ -1986,7 +1954,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1986
1954
|
name: "imageExport" | "help" | "jsonExport";
|
|
1987
1955
|
} | {
|
|
1988
1956
|
name: "ttd";
|
|
1989
|
-
tab: "text-to-diagram"
|
|
1957
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1990
1958
|
} | {
|
|
1991
1959
|
name: "commandPalette";
|
|
1992
1960
|
} | {
|
|
@@ -1994,7 +1962,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1994
1962
|
sourceElementId: string;
|
|
1995
1963
|
} | null;
|
|
1996
1964
|
defaultSidebarDockedPreference: boolean;
|
|
1997
|
-
lastPointerDownWith: import("
|
|
1965
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1998
1966
|
hoveredElementIds: Readonly<{
|
|
1999
1967
|
[id: string]: true;
|
|
2000
1968
|
}>;
|
|
@@ -2009,7 +1977,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2009
1977
|
duration?: number | undefined;
|
|
2010
1978
|
} | null;
|
|
2011
1979
|
zenModeEnabled: boolean;
|
|
2012
|
-
theme: import("
|
|
1980
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2013
1981
|
gridSize: number;
|
|
2014
1982
|
gridStep: number;
|
|
2015
1983
|
gridModeEnabled: boolean;
|
|
@@ -2027,7 +1995,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2027
1995
|
[id: string]: true;
|
|
2028
1996
|
}> | undefined;
|
|
2029
1997
|
username?: string | null | undefined;
|
|
2030
|
-
userState?: import("
|
|
1998
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2031
1999
|
color?: {
|
|
2032
2000
|
background: string;
|
|
2033
2001
|
stroke: string;
|
|
@@ -2044,7 +2012,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2044
2012
|
open: boolean;
|
|
2045
2013
|
panels: number;
|
|
2046
2014
|
};
|
|
2047
|
-
currentChartType: import("
|
|
2015
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2048
2016
|
pasteDialog: {
|
|
2049
2017
|
shown: false;
|
|
2050
2018
|
data: null;
|
|
@@ -2052,9 +2020,8 @@ export declare const actionToggleEraserTool: {
|
|
|
2052
2020
|
shown: true;
|
|
2053
2021
|
data: import("../charts").Spreadsheet;
|
|
2054
2022
|
};
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2023
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2024
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2058
2025
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2059
2026
|
originSnapOffset: {
|
|
2060
2027
|
x: number;
|
|
@@ -2065,16 +2032,14 @@ export declare const actionToggleEraserTool: {
|
|
|
2065
2032
|
followedBy: Set<import("../types").SocketId>;
|
|
2066
2033
|
isCropping: boolean;
|
|
2067
2034
|
croppingElementId: string | null;
|
|
2068
|
-
searchMatches:
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
}[];
|
|
2077
|
-
}[];
|
|
2035
|
+
searchMatches: Readonly<{
|
|
2036
|
+
focusedId: string | null;
|
|
2037
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2038
|
+
}> | null;
|
|
2039
|
+
activeLockedId: string | null;
|
|
2040
|
+
lockedMultiSelections: {
|
|
2041
|
+
[groupId: string]: true;
|
|
2042
|
+
};
|
|
2078
2043
|
};
|
|
2079
2044
|
captureUpdate: "IMMEDIATELY";
|
|
2080
2045
|
};
|
|
@@ -2082,16 +2047,191 @@ export declare const actionToggleEraserTool: {
|
|
|
2082
2047
|
} & {
|
|
2083
2048
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
2084
2049
|
};
|
|
2050
|
+
export declare const actionToggleLassoTool: {
|
|
2051
|
+
name: "toggleLassoTool";
|
|
2052
|
+
label: string;
|
|
2053
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
2054
|
+
trackEvent: {
|
|
2055
|
+
category: "toolbar";
|
|
2056
|
+
};
|
|
2057
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2058
|
+
appState: {
|
|
2059
|
+
selectedElementIds: {};
|
|
2060
|
+
selectedGroupIds: {};
|
|
2061
|
+
activeEmbeddable: null;
|
|
2062
|
+
activeTool: {
|
|
2063
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
2064
|
+
locked: boolean;
|
|
2065
|
+
fromSelection: boolean;
|
|
2066
|
+
} & import("../types").ActiveTool;
|
|
2067
|
+
contextMenu: {
|
|
2068
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2069
|
+
top: number;
|
|
2070
|
+
left: number;
|
|
2071
|
+
} | null;
|
|
2072
|
+
showWelcomeScreen: boolean;
|
|
2073
|
+
isLoading: boolean;
|
|
2074
|
+
errorMessage: import("react").ReactNode;
|
|
2075
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2076
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2077
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2078
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2079
|
+
isBindingEnabled: boolean;
|
|
2080
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2081
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2082
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2083
|
+
frameRendering: {
|
|
2084
|
+
enabled: boolean;
|
|
2085
|
+
name: boolean;
|
|
2086
|
+
outline: boolean;
|
|
2087
|
+
clip: boolean;
|
|
2088
|
+
};
|
|
2089
|
+
editingFrame: string | null;
|
|
2090
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2091
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2092
|
+
penMode: boolean;
|
|
2093
|
+
penDetected: boolean;
|
|
2094
|
+
exportBackground: boolean;
|
|
2095
|
+
exportEmbedScene: boolean;
|
|
2096
|
+
exportWithDarkMode: boolean;
|
|
2097
|
+
exportScale: number;
|
|
2098
|
+
currentItemStrokeColor: string;
|
|
2099
|
+
currentItemBackgroundColor: string;
|
|
2100
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2101
|
+
currentItemStrokeWidth: number;
|
|
2102
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2103
|
+
currentItemRoughness: number;
|
|
2104
|
+
currentItemOpacity: number;
|
|
2105
|
+
currentItemFontFamily: number;
|
|
2106
|
+
currentItemFontSize: number;
|
|
2107
|
+
currentItemTextAlign: string;
|
|
2108
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2109
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2110
|
+
currentHoveredFontFamily: number | null;
|
|
2111
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2112
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2113
|
+
viewBackgroundColor: string;
|
|
2114
|
+
scrollX: number;
|
|
2115
|
+
scrollY: number;
|
|
2116
|
+
cursorButton: "up" | "down";
|
|
2117
|
+
scrolledOutside: boolean;
|
|
2118
|
+
name: string | null;
|
|
2119
|
+
isResizing: boolean;
|
|
2120
|
+
isRotating: boolean;
|
|
2121
|
+
zoom: Readonly<{
|
|
2122
|
+
value: import("../types").NormalizedZoomValue;
|
|
2123
|
+
}>;
|
|
2124
|
+
openMenu: "canvas" | "shape" | null;
|
|
2125
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2126
|
+
openSidebar: {
|
|
2127
|
+
name: string;
|
|
2128
|
+
tab?: string | undefined;
|
|
2129
|
+
} | null;
|
|
2130
|
+
openDialog: {
|
|
2131
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
2132
|
+
} | {
|
|
2133
|
+
name: "ttd";
|
|
2134
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2135
|
+
} | {
|
|
2136
|
+
name: "commandPalette";
|
|
2137
|
+
} | {
|
|
2138
|
+
name: "elementLinkSelector";
|
|
2139
|
+
sourceElementId: string;
|
|
2140
|
+
} | null;
|
|
2141
|
+
defaultSidebarDockedPreference: boolean;
|
|
2142
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2143
|
+
hoveredElementIds: Readonly<{
|
|
2144
|
+
[id: string]: true;
|
|
2145
|
+
}>;
|
|
2146
|
+
previousSelectedElementIds: {
|
|
2147
|
+
[id: string]: true;
|
|
2148
|
+
};
|
|
2149
|
+
selectedElementsAreBeingDragged: boolean;
|
|
2150
|
+
shouldCacheIgnoreZoom: boolean;
|
|
2151
|
+
toast: {
|
|
2152
|
+
message: string;
|
|
2153
|
+
closable?: boolean | undefined;
|
|
2154
|
+
duration?: number | undefined;
|
|
2155
|
+
} | null;
|
|
2156
|
+
zenModeEnabled: boolean;
|
|
2157
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2158
|
+
gridSize: number;
|
|
2159
|
+
gridStep: number;
|
|
2160
|
+
gridModeEnabled: boolean;
|
|
2161
|
+
viewModeEnabled: boolean;
|
|
2162
|
+
editingGroupId: string | null;
|
|
2163
|
+
width: number;
|
|
2164
|
+
height: number;
|
|
2165
|
+
offsetTop: number;
|
|
2166
|
+
offsetLeft: number;
|
|
2167
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2168
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2169
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2170
|
+
button?: "up" | "down" | undefined;
|
|
2171
|
+
selectedElementIds?: Readonly<{
|
|
2172
|
+
[id: string]: true;
|
|
2173
|
+
}> | undefined;
|
|
2174
|
+
username?: string | null | undefined;
|
|
2175
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2176
|
+
color?: {
|
|
2177
|
+
background: string;
|
|
2178
|
+
stroke: string;
|
|
2179
|
+
} | undefined;
|
|
2180
|
+
avatarUrl?: string | undefined;
|
|
2181
|
+
id?: string | undefined;
|
|
2182
|
+
socketId?: import("../types").SocketId | undefined;
|
|
2183
|
+
isCurrentUser?: boolean | undefined;
|
|
2184
|
+
isInCall?: boolean | undefined;
|
|
2185
|
+
isSpeaking?: boolean | undefined;
|
|
2186
|
+
isMuted?: boolean | undefined;
|
|
2187
|
+
}>>;
|
|
2188
|
+
stats: {
|
|
2189
|
+
open: boolean;
|
|
2190
|
+
panels: number;
|
|
2191
|
+
};
|
|
2192
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2193
|
+
pasteDialog: {
|
|
2194
|
+
shown: false;
|
|
2195
|
+
data: null;
|
|
2196
|
+
} | {
|
|
2197
|
+
shown: true;
|
|
2198
|
+
data: import("../charts").Spreadsheet;
|
|
2199
|
+
};
|
|
2200
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2201
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2202
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
2203
|
+
originSnapOffset: {
|
|
2204
|
+
x: number;
|
|
2205
|
+
y: number;
|
|
2206
|
+
} | null;
|
|
2207
|
+
objectsSnapModeEnabled: boolean;
|
|
2208
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
2209
|
+
followedBy: Set<import("../types").SocketId>;
|
|
2210
|
+
isCropping: boolean;
|
|
2211
|
+
croppingElementId: string | null;
|
|
2212
|
+
searchMatches: Readonly<{
|
|
2213
|
+
focusedId: string | null;
|
|
2214
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2215
|
+
}> | null;
|
|
2216
|
+
activeLockedId: string | null;
|
|
2217
|
+
lockedMultiSelections: {
|
|
2218
|
+
[groupId: string]: true;
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
captureUpdate: "NEVER";
|
|
2222
|
+
};
|
|
2223
|
+
} & {
|
|
2224
|
+
keyTest?: undefined;
|
|
2225
|
+
};
|
|
2085
2226
|
export declare const actionToggleHandTool: {
|
|
2086
2227
|
name: "toggleHandTool";
|
|
2087
2228
|
label: string;
|
|
2088
|
-
paletteName: string;
|
|
2089
2229
|
trackEvent: {
|
|
2090
2230
|
category: "toolbar";
|
|
2091
2231
|
};
|
|
2092
2232
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
2093
2233
|
viewMode: false;
|
|
2094
|
-
perform: (elements: readonly import("
|
|
2234
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2095
2235
|
appState: {
|
|
2096
2236
|
selectedElementIds: {};
|
|
2097
2237
|
selectedGroupIds: {};
|
|
@@ -2099,6 +2239,7 @@ export declare const actionToggleHandTool: {
|
|
|
2099
2239
|
activeTool: {
|
|
2100
2240
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2101
2241
|
locked: boolean;
|
|
2242
|
+
fromSelection: boolean;
|
|
2102
2243
|
} & import("../types").ActiveTool;
|
|
2103
2244
|
contextMenu: {
|
|
2104
2245
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -2108,14 +2249,14 @@ export declare const actionToggleHandTool: {
|
|
|
2108
2249
|
showWelcomeScreen: boolean;
|
|
2109
2250
|
isLoading: boolean;
|
|
2110
2251
|
errorMessage: import("react").ReactNode;
|
|
2111
|
-
newElement: import("
|
|
2112
|
-
resizingElement: import("
|
|
2113
|
-
multiElement: import("
|
|
2114
|
-
selectionElement: import("
|
|
2252
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2253
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2254
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2255
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2115
2256
|
isBindingEnabled: boolean;
|
|
2116
|
-
startBoundElement: import("
|
|
2117
|
-
suggestedBindings: import("
|
|
2118
|
-
frameToHighlight: import("
|
|
2257
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2258
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2259
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2119
2260
|
frameRendering: {
|
|
2120
2261
|
enabled: boolean;
|
|
2121
2262
|
name: boolean;
|
|
@@ -2123,9 +2264,8 @@ export declare const actionToggleHandTool: {
|
|
|
2123
2264
|
clip: boolean;
|
|
2124
2265
|
};
|
|
2125
2266
|
editingFrame: string | null;
|
|
2126
|
-
elementsToHighlight: import("
|
|
2127
|
-
editingTextElement: import("
|
|
2128
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2267
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2268
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2129
2269
|
penMode: boolean;
|
|
2130
2270
|
penDetected: boolean;
|
|
2131
2271
|
exportBackground: boolean;
|
|
@@ -2134,18 +2274,18 @@ export declare const actionToggleHandTool: {
|
|
|
2134
2274
|
exportScale: number;
|
|
2135
2275
|
currentItemStrokeColor: string;
|
|
2136
2276
|
currentItemBackgroundColor: string;
|
|
2137
|
-
currentItemFillStyle: import("
|
|
2277
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2138
2278
|
currentItemStrokeWidth: number;
|
|
2139
|
-
currentItemStrokeStyle: import("
|
|
2279
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2140
2280
|
currentItemRoughness: number;
|
|
2141
2281
|
currentItemOpacity: number;
|
|
2142
2282
|
currentItemFontFamily: number;
|
|
2143
2283
|
currentItemFontSize: number;
|
|
2144
2284
|
currentItemTextAlign: string;
|
|
2145
|
-
currentItemStartArrowhead: import("
|
|
2146
|
-
currentItemEndArrowhead: import("
|
|
2285
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2286
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2147
2287
|
currentHoveredFontFamily: number | null;
|
|
2148
|
-
currentItemRoundness: import("
|
|
2288
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2149
2289
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2150
2290
|
viewBackgroundColor: string;
|
|
2151
2291
|
scrollX: number;
|
|
@@ -2168,7 +2308,7 @@ export declare const actionToggleHandTool: {
|
|
|
2168
2308
|
name: "imageExport" | "help" | "jsonExport";
|
|
2169
2309
|
} | {
|
|
2170
2310
|
name: "ttd";
|
|
2171
|
-
tab: "text-to-diagram"
|
|
2311
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2172
2312
|
} | {
|
|
2173
2313
|
name: "commandPalette";
|
|
2174
2314
|
} | {
|
|
@@ -2176,7 +2316,7 @@ export declare const actionToggleHandTool: {
|
|
|
2176
2316
|
sourceElementId: string;
|
|
2177
2317
|
} | null;
|
|
2178
2318
|
defaultSidebarDockedPreference: boolean;
|
|
2179
|
-
lastPointerDownWith: import("
|
|
2319
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2180
2320
|
hoveredElementIds: Readonly<{
|
|
2181
2321
|
[id: string]: true;
|
|
2182
2322
|
}>;
|
|
@@ -2191,7 +2331,7 @@ export declare const actionToggleHandTool: {
|
|
|
2191
2331
|
duration?: number | undefined;
|
|
2192
2332
|
} | null;
|
|
2193
2333
|
zenModeEnabled: boolean;
|
|
2194
|
-
theme: import("
|
|
2334
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2195
2335
|
gridSize: number;
|
|
2196
2336
|
gridStep: number;
|
|
2197
2337
|
gridModeEnabled: boolean;
|
|
@@ -2209,7 +2349,7 @@ export declare const actionToggleHandTool: {
|
|
|
2209
2349
|
[id: string]: true;
|
|
2210
2350
|
}> | undefined;
|
|
2211
2351
|
username?: string | null | undefined;
|
|
2212
|
-
userState?: import("
|
|
2352
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2213
2353
|
color?: {
|
|
2214
2354
|
background: string;
|
|
2215
2355
|
stroke: string;
|
|
@@ -2226,7 +2366,7 @@ export declare const actionToggleHandTool: {
|
|
|
2226
2366
|
open: boolean;
|
|
2227
2367
|
panels: number;
|
|
2228
2368
|
};
|
|
2229
|
-
currentChartType: import("
|
|
2369
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2230
2370
|
pasteDialog: {
|
|
2231
2371
|
shown: false;
|
|
2232
2372
|
data: null;
|
|
@@ -2234,9 +2374,8 @@ export declare const actionToggleHandTool: {
|
|
|
2234
2374
|
shown: true;
|
|
2235
2375
|
data: import("../charts").Spreadsheet;
|
|
2236
2376
|
};
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2377
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2378
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2240
2379
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2241
2380
|
originSnapOffset: {
|
|
2242
2381
|
x: number;
|
|
@@ -2247,16 +2386,14 @@ export declare const actionToggleHandTool: {
|
|
|
2247
2386
|
followedBy: Set<import("../types").SocketId>;
|
|
2248
2387
|
isCropping: boolean;
|
|
2249
2388
|
croppingElementId: string | null;
|
|
2250
|
-
searchMatches:
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}[];
|
|
2259
|
-
}[];
|
|
2389
|
+
searchMatches: Readonly<{
|
|
2390
|
+
focusedId: string | null;
|
|
2391
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2392
|
+
}> | null;
|
|
2393
|
+
activeLockedId: string | null;
|
|
2394
|
+
lockedMultiSelections: {
|
|
2395
|
+
[groupId: string]: true;
|
|
2396
|
+
};
|
|
2260
2397
|
};
|
|
2261
2398
|
captureUpdate: "IMMEDIATELY";
|
|
2262
2399
|
};
|