@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-a30e1b2
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-LMHBUWQS.js → chunk-CARD3WJZ.js} +10 -4
- package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
- package/dist/dev/{chunk-3SN6HYVK.js → chunk-ETWEPOFC.js} +15663 -22657
- package/dist/dev/chunk-ETWEPOFC.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-53KHN5WM.js → chunk-RS23HYC4.js} +2 -2
- package/dist/dev/{chunk-53KHN5WM.js.map → chunk-RS23HYC4.js.map} +1 -1
- package/dist/dev/data/{image-V26YBSDB.js → image-AYLHSOBV.js} +3 -3
- package/dist/dev/index.css +3093 -3055
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +32056 -23232
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-E3O5XSXJ.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-6BSJPDKJ.js +33 -0
- package/dist/prod/{chunk-6U3AYISY.js → chunk-FGHASORR.js} +4 -4
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/{chunk-G5N3DNGT.js → chunk-SBKTMZM7.js} +1 -1
- package/dist/prod/data/image-VAYKYPXV.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +19 -15
- package/dist/prod/locales/{en-B4ZKOASM.js → en-44IKVKYT.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 +11 -6
- 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 -12
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +12 -15
- package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
- package/dist/types/element/src/align.d.ts +7 -0
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +24 -16
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
- package/dist/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
- package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +41 -36
- package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
- 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 +5 -2
- package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
- package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -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 +16 -0
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +16 -20
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -44
- package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
- package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +6 -6
- package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
- package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
- package/dist/types/element/src/shapes.d.ts +23 -0
- package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -2
- package/dist/types/element/src/store.d.ts +227 -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 +5 -2
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +9 -2
- package/dist/types/element/src/zindex.d.ts +7 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -103
- package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -74
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +608 -497
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +188 -218
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -36
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +89 -104
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -9
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -39
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -76
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +31 -46
- package/dist/types/excalidraw/actions/actionExport.d.ts +342 -387
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +52 -62
- package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionFrame.d.ts +234 -254
- package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -75
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +32 -37
- package/dist/types/excalidraw/actions/actionLink.d.ts +34 -39
- package/dist/types/excalidraw/actions/actionMenu.d.ts +91 -106
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +59 -69
- package/dist/types/excalidraw/actions/actionProperties.d.ts +396 -471
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -38
- package/dist/types/excalidraw/actions/actionStyles.d.ts +37 -42
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -38
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -38
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +32 -209
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -38
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -39
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -39
- package/dist/types/excalidraw/actions/actionZindex.d.ts +16 -16
- 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 +5 -5
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +34 -33
- 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 -3
- package/dist/types/excalidraw/components/App.d.ts +38 -20
- package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- 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 +49 -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/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/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 +3 -3
- 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/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 +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -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 +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +1 -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 +14 -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 +15 -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 +16 -15
- package/dist/types/excalidraw/laser-trails.d.ts +1 -1
- package/dist/types/excalidraw/lasso/index.d.ts +15 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
- package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
- 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 +31 -18
- package/dist/types/excalidraw/visualdebug.d.ts +2 -2
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
- package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -0
- package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
- package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -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} +4 -0
- package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
- 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 +70 -94
- package/package.json +16 -4
- package/dist/dev/chunk-3SN6HYVK.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-EIO257PC.js +0 -86
- package/dist/prod/data/image-N4WCURRR.js +0 -1
- package/dist/types/excalidraw/align.d.ts +0 -7
- package/dist/types/excalidraw/element/index.d.ts +0 -26
- package/dist/types/excalidraw/shapes.d.ts +0 -85
- package/dist/types/excalidraw/store.d.ts +0 -129
- package/dist/types/excalidraw/zindex.d.ts +0 -6
- package/dist/dev/data/{image-V26YBSDB.js.map → image-AYLHSOBV.js.map} +0 -0
- package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-E3O5XSXJ.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}/cropElement.d.ts +0 -0
- package/dist/types/{excalidraw/element → element/src}/distance.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/{excalidraw/element → element/src}/utils.d.ts +1 -1
- /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
- /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/dist/types/math/{index.d.ts → src/index.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/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
- /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ export declare const actionCopy: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
10
|
captureUpdate: "EVENTUALLY";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
@@ -18,17 +18,17 @@ export declare const actionCopy: {
|
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
activeEmbeddable: {
|
|
21
|
-
element: import("
|
|
22
|
-
state: "
|
|
21
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
state: "active" | "hover";
|
|
23
23
|
} | null;
|
|
24
|
-
newElement: import("
|
|
25
|
-
resizingElement: import("
|
|
26
|
-
multiElement: import("
|
|
27
|
-
selectionElement: import("
|
|
24
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
27
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
|
-
startBoundElement: import("
|
|
30
|
-
suggestedBindings: import("
|
|
31
|
-
frameToHighlight: import("
|
|
29
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
31
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
34
34
|
name: boolean;
|
|
@@ -36,12 +36,13 @@ export declare const actionCopy: {
|
|
|
36
36
|
clip: boolean;
|
|
37
37
|
};
|
|
38
38
|
editingFrame: string | null;
|
|
39
|
-
elementsToHighlight: import("
|
|
40
|
-
editingTextElement: import("
|
|
41
|
-
editingLinearElement: import("
|
|
39
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
+
fromSelection: boolean;
|
|
45
46
|
} & import("../types").ActiveTool;
|
|
46
47
|
penMode: boolean;
|
|
47
48
|
penDetected: boolean;
|
|
@@ -51,18 +52,18 @@ export declare const actionCopy: {
|
|
|
51
52
|
exportScale: number;
|
|
52
53
|
currentItemStrokeColor: string;
|
|
53
54
|
currentItemBackgroundColor: string;
|
|
54
|
-
currentItemFillStyle: import("
|
|
55
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
55
56
|
currentItemStrokeWidth: number;
|
|
56
|
-
currentItemStrokeStyle: import("
|
|
57
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
57
58
|
currentItemRoughness: number;
|
|
58
59
|
currentItemOpacity: number;
|
|
59
60
|
currentItemFontFamily: number;
|
|
60
61
|
currentItemFontSize: number;
|
|
61
62
|
currentItemTextAlign: string;
|
|
62
|
-
currentItemStartArrowhead: import("
|
|
63
|
-
currentItemEndArrowhead: import("
|
|
63
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
65
|
currentHoveredFontFamily: number | null;
|
|
65
|
-
currentItemRoundness: import("
|
|
66
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
67
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
67
68
|
viewBackgroundColor: string;
|
|
68
69
|
scrollX: number;
|
|
@@ -85,7 +86,7 @@ export declare const actionCopy: {
|
|
|
85
86
|
name: "imageExport" | "help" | "jsonExport";
|
|
86
87
|
} | {
|
|
87
88
|
name: "ttd";
|
|
88
|
-
tab: "text-to-diagram"
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
90
|
} | {
|
|
90
91
|
name: "commandPalette";
|
|
91
92
|
} | {
|
|
@@ -93,7 +94,7 @@ export declare const actionCopy: {
|
|
|
93
94
|
sourceElementId: string;
|
|
94
95
|
} | null;
|
|
95
96
|
defaultSidebarDockedPreference: boolean;
|
|
96
|
-
lastPointerDownWith: import("
|
|
97
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
97
98
|
selectedElementIds: Readonly<{
|
|
98
99
|
[id: string]: true;
|
|
99
100
|
}>;
|
|
@@ -111,7 +112,7 @@ export declare const actionCopy: {
|
|
|
111
112
|
duration?: number | undefined;
|
|
112
113
|
} | null;
|
|
113
114
|
zenModeEnabled: boolean;
|
|
114
|
-
theme: import("
|
|
115
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
115
116
|
gridSize: number;
|
|
116
117
|
gridStep: number;
|
|
117
118
|
gridModeEnabled: boolean;
|
|
@@ -132,7 +133,7 @@ export declare const actionCopy: {
|
|
|
132
133
|
[id: string]: true;
|
|
133
134
|
}> | undefined;
|
|
134
135
|
username?: string | null | undefined;
|
|
135
|
-
userState?: import("
|
|
136
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
136
137
|
color?: {
|
|
137
138
|
background: string;
|
|
138
139
|
stroke: string;
|
|
@@ -149,7 +150,7 @@ export declare const actionCopy: {
|
|
|
149
150
|
open: boolean;
|
|
150
151
|
panels: number;
|
|
151
152
|
};
|
|
152
|
-
currentChartType: import("
|
|
153
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
153
154
|
pasteDialog: {
|
|
154
155
|
shown: false;
|
|
155
156
|
data: null;
|
|
@@ -158,8 +159,8 @@ export declare const actionCopy: {
|
|
|
158
159
|
data: import("../charts").Spreadsheet;
|
|
159
160
|
};
|
|
160
161
|
pendingImageElementId: string | null;
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
162
|
-
selectedLinearElement: import("
|
|
162
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
163
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
165
|
originSnapOffset: {
|
|
165
166
|
x: number;
|
|
@@ -170,16 +171,10 @@ export declare const actionCopy: {
|
|
|
170
171
|
followedBy: Set<import("../types").SocketId>;
|
|
171
172
|
isCropping: boolean;
|
|
172
173
|
croppingElementId: string | null;
|
|
173
|
-
searchMatches:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
offsetX: number;
|
|
178
|
-
offsetY: number;
|
|
179
|
-
width: number;
|
|
180
|
-
height: number;
|
|
181
|
-
}[];
|
|
182
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
183
178
|
};
|
|
184
179
|
} | {
|
|
185
180
|
captureUpdate: "EVENTUALLY";
|
|
@@ -195,7 +190,7 @@ export declare const actionPaste: {
|
|
|
195
190
|
trackEvent: {
|
|
196
191
|
category: "element";
|
|
197
192
|
};
|
|
198
|
-
perform: (elements: readonly import("
|
|
193
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
199
194
|
captureUpdate: "EVENTUALLY";
|
|
200
195
|
appState: {
|
|
201
196
|
errorMessage: string;
|
|
@@ -207,17 +202,17 @@ export declare const actionPaste: {
|
|
|
207
202
|
showWelcomeScreen: boolean;
|
|
208
203
|
isLoading: boolean;
|
|
209
204
|
activeEmbeddable: {
|
|
210
|
-
element: import("
|
|
211
|
-
state: "
|
|
205
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
206
|
+
state: "active" | "hover";
|
|
212
207
|
} | null;
|
|
213
|
-
newElement: import("
|
|
214
|
-
resizingElement: import("
|
|
215
|
-
multiElement: import("
|
|
216
|
-
selectionElement: import("
|
|
208
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
209
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
210
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
211
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
217
212
|
isBindingEnabled: boolean;
|
|
218
|
-
startBoundElement: import("
|
|
219
|
-
suggestedBindings: import("
|
|
220
|
-
frameToHighlight: import("
|
|
213
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
214
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
215
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
221
216
|
frameRendering: {
|
|
222
217
|
enabled: boolean;
|
|
223
218
|
name: boolean;
|
|
@@ -225,12 +220,13 @@ export declare const actionPaste: {
|
|
|
225
220
|
clip: boolean;
|
|
226
221
|
};
|
|
227
222
|
editingFrame: string | null;
|
|
228
|
-
elementsToHighlight: import("
|
|
229
|
-
editingTextElement: import("
|
|
230
|
-
editingLinearElement: import("
|
|
223
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
224
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
225
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
231
226
|
activeTool: {
|
|
232
227
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
228
|
locked: boolean;
|
|
229
|
+
fromSelection: boolean;
|
|
234
230
|
} & import("../types").ActiveTool;
|
|
235
231
|
penMode: boolean;
|
|
236
232
|
penDetected: boolean;
|
|
@@ -240,18 +236,18 @@ export declare const actionPaste: {
|
|
|
240
236
|
exportScale: number;
|
|
241
237
|
currentItemStrokeColor: string;
|
|
242
238
|
currentItemBackgroundColor: string;
|
|
243
|
-
currentItemFillStyle: import("
|
|
239
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
244
240
|
currentItemStrokeWidth: number;
|
|
245
|
-
currentItemStrokeStyle: import("
|
|
241
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
246
242
|
currentItemRoughness: number;
|
|
247
243
|
currentItemOpacity: number;
|
|
248
244
|
currentItemFontFamily: number;
|
|
249
245
|
currentItemFontSize: number;
|
|
250
246
|
currentItemTextAlign: string;
|
|
251
|
-
currentItemStartArrowhead: import("
|
|
252
|
-
currentItemEndArrowhead: import("
|
|
247
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
248
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
253
249
|
currentHoveredFontFamily: number | null;
|
|
254
|
-
currentItemRoundness: import("
|
|
250
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
255
251
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
256
252
|
viewBackgroundColor: string;
|
|
257
253
|
scrollX: number;
|
|
@@ -274,7 +270,7 @@ export declare const actionPaste: {
|
|
|
274
270
|
name: "imageExport" | "help" | "jsonExport";
|
|
275
271
|
} | {
|
|
276
272
|
name: "ttd";
|
|
277
|
-
tab: "text-to-diagram"
|
|
273
|
+
tab: "mermaid" | "text-to-diagram";
|
|
278
274
|
} | {
|
|
279
275
|
name: "commandPalette";
|
|
280
276
|
} | {
|
|
@@ -282,7 +278,7 @@ export declare const actionPaste: {
|
|
|
282
278
|
sourceElementId: string;
|
|
283
279
|
} | null;
|
|
284
280
|
defaultSidebarDockedPreference: boolean;
|
|
285
|
-
lastPointerDownWith: import("
|
|
281
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
286
282
|
selectedElementIds: Readonly<{
|
|
287
283
|
[id: string]: true;
|
|
288
284
|
}>;
|
|
@@ -300,7 +296,7 @@ export declare const actionPaste: {
|
|
|
300
296
|
duration?: number | undefined;
|
|
301
297
|
} | null;
|
|
302
298
|
zenModeEnabled: boolean;
|
|
303
|
-
theme: import("
|
|
299
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
304
300
|
gridSize: number;
|
|
305
301
|
gridStep: number;
|
|
306
302
|
gridModeEnabled: boolean;
|
|
@@ -321,7 +317,7 @@ export declare const actionPaste: {
|
|
|
321
317
|
[id: string]: true;
|
|
322
318
|
}> | undefined;
|
|
323
319
|
username?: string | null | undefined;
|
|
324
|
-
userState?: import("
|
|
320
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
325
321
|
color?: {
|
|
326
322
|
background: string;
|
|
327
323
|
stroke: string;
|
|
@@ -338,7 +334,7 @@ export declare const actionPaste: {
|
|
|
338
334
|
open: boolean;
|
|
339
335
|
panels: number;
|
|
340
336
|
};
|
|
341
|
-
currentChartType: import("
|
|
337
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
342
338
|
pasteDialog: {
|
|
343
339
|
shown: false;
|
|
344
340
|
data: null;
|
|
@@ -347,8 +343,8 @@ export declare const actionPaste: {
|
|
|
347
343
|
data: import("../charts").Spreadsheet;
|
|
348
344
|
};
|
|
349
345
|
pendingImageElementId: string | null;
|
|
350
|
-
showHyperlinkPopup: false | "
|
|
351
|
-
selectedLinearElement: import("
|
|
346
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
347
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
352
348
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
353
349
|
originSnapOffset: {
|
|
354
350
|
x: number;
|
|
@@ -359,16 +355,10 @@ export declare const actionPaste: {
|
|
|
359
355
|
followedBy: Set<import("../types").SocketId>;
|
|
360
356
|
isCropping: boolean;
|
|
361
357
|
croppingElementId: string | null;
|
|
362
|
-
searchMatches:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
offsetX: number;
|
|
367
|
-
offsetY: number;
|
|
368
|
-
width: number;
|
|
369
|
-
height: number;
|
|
370
|
-
}[];
|
|
371
|
-
}[];
|
|
358
|
+
searchMatches: Readonly<{
|
|
359
|
+
focusedId: string | null;
|
|
360
|
+
matches: readonly import("../types").SearchMatch[];
|
|
361
|
+
}> | null;
|
|
372
362
|
};
|
|
373
363
|
} | {
|
|
374
364
|
captureUpdate: "EVENTUALLY";
|
|
@@ -385,8 +375,8 @@ export declare const actionCut: {
|
|
|
385
375
|
trackEvent: {
|
|
386
376
|
category: "element";
|
|
387
377
|
};
|
|
388
|
-
perform: (elements: readonly import("
|
|
389
|
-
elements: import("
|
|
378
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
379
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
390
380
|
appState: {
|
|
391
381
|
editingLinearElement: null;
|
|
392
382
|
contextMenu: {
|
|
@@ -398,17 +388,17 @@ export declare const actionCut: {
|
|
|
398
388
|
isLoading: boolean;
|
|
399
389
|
errorMessage: import("react").ReactNode;
|
|
400
390
|
activeEmbeddable: {
|
|
401
|
-
element: import("
|
|
402
|
-
state: "
|
|
391
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
392
|
+
state: "active" | "hover";
|
|
403
393
|
} | null;
|
|
404
|
-
newElement: import("
|
|
405
|
-
resizingElement: import("
|
|
406
|
-
multiElement: import("
|
|
407
|
-
selectionElement: import("
|
|
394
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
395
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
396
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
397
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
408
398
|
isBindingEnabled: boolean;
|
|
409
|
-
startBoundElement: import("
|
|
410
|
-
suggestedBindings: import("
|
|
411
|
-
frameToHighlight: import("
|
|
399
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
400
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
401
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
412
402
|
frameRendering: {
|
|
413
403
|
enabled: boolean;
|
|
414
404
|
name: boolean;
|
|
@@ -416,11 +406,12 @@ export declare const actionCut: {
|
|
|
416
406
|
clip: boolean;
|
|
417
407
|
};
|
|
418
408
|
editingFrame: string | null;
|
|
419
|
-
elementsToHighlight: import("
|
|
420
|
-
editingTextElement: import("
|
|
409
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
410
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
421
411
|
activeTool: {
|
|
422
412
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
423
413
|
locked: boolean;
|
|
414
|
+
fromSelection: boolean;
|
|
424
415
|
} & import("../types").ActiveTool;
|
|
425
416
|
penMode: boolean;
|
|
426
417
|
penDetected: boolean;
|
|
@@ -430,18 +421,18 @@ export declare const actionCut: {
|
|
|
430
421
|
exportScale: number;
|
|
431
422
|
currentItemStrokeColor: string;
|
|
432
423
|
currentItemBackgroundColor: string;
|
|
433
|
-
currentItemFillStyle: import("
|
|
424
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
434
425
|
currentItemStrokeWidth: number;
|
|
435
|
-
currentItemStrokeStyle: import("
|
|
426
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
436
427
|
currentItemRoughness: number;
|
|
437
428
|
currentItemOpacity: number;
|
|
438
429
|
currentItemFontFamily: number;
|
|
439
430
|
currentItemFontSize: number;
|
|
440
431
|
currentItemTextAlign: string;
|
|
441
|
-
currentItemStartArrowhead: import("
|
|
442
|
-
currentItemEndArrowhead: import("
|
|
432
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
433
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
443
434
|
currentHoveredFontFamily: number | null;
|
|
444
|
-
currentItemRoundness: import("
|
|
435
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
445
436
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
446
437
|
viewBackgroundColor: string;
|
|
447
438
|
scrollX: number;
|
|
@@ -464,7 +455,7 @@ export declare const actionCut: {
|
|
|
464
455
|
name: "imageExport" | "help" | "jsonExport";
|
|
465
456
|
} | {
|
|
466
457
|
name: "ttd";
|
|
467
|
-
tab: "text-to-diagram"
|
|
458
|
+
tab: "mermaid" | "text-to-diagram";
|
|
468
459
|
} | {
|
|
469
460
|
name: "commandPalette";
|
|
470
461
|
} | {
|
|
@@ -472,7 +463,7 @@ export declare const actionCut: {
|
|
|
472
463
|
sourceElementId: string;
|
|
473
464
|
} | null;
|
|
474
465
|
defaultSidebarDockedPreference: boolean;
|
|
475
|
-
lastPointerDownWith: import("
|
|
466
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
476
467
|
selectedElementIds: Readonly<{
|
|
477
468
|
[id: string]: true;
|
|
478
469
|
}>;
|
|
@@ -490,7 +481,7 @@ export declare const actionCut: {
|
|
|
490
481
|
duration?: number | undefined;
|
|
491
482
|
} | null;
|
|
492
483
|
zenModeEnabled: boolean;
|
|
493
|
-
theme: import("
|
|
484
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
494
485
|
gridSize: number;
|
|
495
486
|
gridStep: number;
|
|
496
487
|
gridModeEnabled: boolean;
|
|
@@ -511,7 +502,7 @@ export declare const actionCut: {
|
|
|
511
502
|
[id: string]: true;
|
|
512
503
|
}> | undefined;
|
|
513
504
|
username?: string | null | undefined;
|
|
514
|
-
userState?: import("
|
|
505
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
515
506
|
color?: {
|
|
516
507
|
background: string;
|
|
517
508
|
stroke: string;
|
|
@@ -528,7 +519,7 @@ export declare const actionCut: {
|
|
|
528
519
|
open: boolean;
|
|
529
520
|
panels: number;
|
|
530
521
|
};
|
|
531
|
-
currentChartType: import("
|
|
522
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
532
523
|
pasteDialog: {
|
|
533
524
|
shown: false;
|
|
534
525
|
data: null;
|
|
@@ -537,8 +528,8 @@ export declare const actionCut: {
|
|
|
537
528
|
data: import("../charts").Spreadsheet;
|
|
538
529
|
};
|
|
539
530
|
pendingImageElementId: string | null;
|
|
540
|
-
showHyperlinkPopup: false | "
|
|
541
|
-
selectedLinearElement: import("
|
|
531
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
532
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
542
533
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
543
534
|
originSnapOffset: {
|
|
544
535
|
x: number;
|
|
@@ -549,25 +540,19 @@ export declare const actionCut: {
|
|
|
549
540
|
followedBy: Set<import("../types").SocketId>;
|
|
550
541
|
isCropping: boolean;
|
|
551
542
|
croppingElementId: string | null;
|
|
552
|
-
searchMatches:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
offsetX: number;
|
|
557
|
-
offsetY: number;
|
|
558
|
-
width: number;
|
|
559
|
-
height: number;
|
|
560
|
-
}[];
|
|
561
|
-
}[];
|
|
543
|
+
searchMatches: Readonly<{
|
|
544
|
+
focusedId: string | null;
|
|
545
|
+
matches: readonly import("../types").SearchMatch[];
|
|
546
|
+
}> | null;
|
|
562
547
|
};
|
|
563
548
|
captureUpdate: "IMMEDIATELY";
|
|
564
549
|
} | {
|
|
565
|
-
elements: readonly import("
|
|
550
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
566
551
|
appState: {
|
|
567
552
|
editingLinearElement: {
|
|
568
553
|
selectedPointsIndices: number[];
|
|
569
|
-
startBindingElement: import("
|
|
570
|
-
endBindingElement: import("
|
|
554
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
555
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
571
556
|
elementId: string & {
|
|
572
557
|
_brand: "excalidrawLinearElementId";
|
|
573
558
|
};
|
|
@@ -604,17 +589,17 @@ export declare const actionCut: {
|
|
|
604
589
|
isLoading: boolean;
|
|
605
590
|
errorMessage: import("react").ReactNode;
|
|
606
591
|
activeEmbeddable: {
|
|
607
|
-
element: import("
|
|
608
|
-
state: "
|
|
592
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
593
|
+
state: "active" | "hover";
|
|
609
594
|
} | null;
|
|
610
|
-
newElement: import("
|
|
611
|
-
resizingElement: import("
|
|
612
|
-
multiElement: import("
|
|
613
|
-
selectionElement: import("
|
|
595
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
596
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
597
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
598
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
614
599
|
isBindingEnabled: boolean;
|
|
615
|
-
startBoundElement: import("
|
|
616
|
-
suggestedBindings: import("
|
|
617
|
-
frameToHighlight: import("
|
|
600
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
601
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
602
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
618
603
|
frameRendering: {
|
|
619
604
|
enabled: boolean;
|
|
620
605
|
name: boolean;
|
|
@@ -622,11 +607,12 @@ export declare const actionCut: {
|
|
|
622
607
|
clip: boolean;
|
|
623
608
|
};
|
|
624
609
|
editingFrame: string | null;
|
|
625
|
-
elementsToHighlight: import("
|
|
626
|
-
editingTextElement: import("
|
|
610
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
611
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
627
612
|
activeTool: {
|
|
628
613
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
629
614
|
locked: boolean;
|
|
615
|
+
fromSelection: boolean;
|
|
630
616
|
} & import("../types").ActiveTool;
|
|
631
617
|
penMode: boolean;
|
|
632
618
|
penDetected: boolean;
|
|
@@ -636,18 +622,18 @@ export declare const actionCut: {
|
|
|
636
622
|
exportScale: number;
|
|
637
623
|
currentItemStrokeColor: string;
|
|
638
624
|
currentItemBackgroundColor: string;
|
|
639
|
-
currentItemFillStyle: import("
|
|
625
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
640
626
|
currentItemStrokeWidth: number;
|
|
641
|
-
currentItemStrokeStyle: import("
|
|
627
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
642
628
|
currentItemRoughness: number;
|
|
643
629
|
currentItemOpacity: number;
|
|
644
630
|
currentItemFontFamily: number;
|
|
645
631
|
currentItemFontSize: number;
|
|
646
632
|
currentItemTextAlign: string;
|
|
647
|
-
currentItemStartArrowhead: import("
|
|
648
|
-
currentItemEndArrowhead: import("
|
|
633
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
634
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
649
635
|
currentHoveredFontFamily: number | null;
|
|
650
|
-
currentItemRoundness: import("
|
|
636
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
651
637
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
652
638
|
viewBackgroundColor: string;
|
|
653
639
|
scrollX: number;
|
|
@@ -670,7 +656,7 @@ export declare const actionCut: {
|
|
|
670
656
|
name: "imageExport" | "help" | "jsonExport";
|
|
671
657
|
} | {
|
|
672
658
|
name: "ttd";
|
|
673
|
-
tab: "text-to-diagram"
|
|
659
|
+
tab: "mermaid" | "text-to-diagram";
|
|
674
660
|
} | {
|
|
675
661
|
name: "commandPalette";
|
|
676
662
|
} | {
|
|
@@ -678,7 +664,7 @@ export declare const actionCut: {
|
|
|
678
664
|
sourceElementId: string;
|
|
679
665
|
} | null;
|
|
680
666
|
defaultSidebarDockedPreference: boolean;
|
|
681
|
-
lastPointerDownWith: import("
|
|
667
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
682
668
|
selectedElementIds: Readonly<{
|
|
683
669
|
[id: string]: true;
|
|
684
670
|
}>;
|
|
@@ -696,7 +682,7 @@ export declare const actionCut: {
|
|
|
696
682
|
duration?: number | undefined;
|
|
697
683
|
} | null;
|
|
698
684
|
zenModeEnabled: boolean;
|
|
699
|
-
theme: import("
|
|
685
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
700
686
|
gridSize: number;
|
|
701
687
|
gridStep: number;
|
|
702
688
|
gridModeEnabled: boolean;
|
|
@@ -717,7 +703,7 @@ export declare const actionCut: {
|
|
|
717
703
|
[id: string]: true;
|
|
718
704
|
}> | undefined;
|
|
719
705
|
username?: string | null | undefined;
|
|
720
|
-
userState?: import("
|
|
706
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
721
707
|
color?: {
|
|
722
708
|
background: string;
|
|
723
709
|
stroke: string;
|
|
@@ -734,7 +720,7 @@ export declare const actionCut: {
|
|
|
734
720
|
open: boolean;
|
|
735
721
|
panels: number;
|
|
736
722
|
};
|
|
737
|
-
currentChartType: import("
|
|
723
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
738
724
|
pasteDialog: {
|
|
739
725
|
shown: false;
|
|
740
726
|
data: null;
|
|
@@ -743,8 +729,8 @@ export declare const actionCut: {
|
|
|
743
729
|
data: import("../charts").Spreadsheet;
|
|
744
730
|
};
|
|
745
731
|
pendingImageElementId: string | null;
|
|
746
|
-
showHyperlinkPopup: false | "
|
|
747
|
-
selectedLinearElement: import("
|
|
732
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
733
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
748
734
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
749
735
|
originSnapOffset: {
|
|
750
736
|
x: number;
|
|
@@ -755,34 +741,30 @@ export declare const actionCut: {
|
|
|
755
741
|
followedBy: Set<import("../types").SocketId>;
|
|
756
742
|
isCropping: boolean;
|
|
757
743
|
croppingElementId: string | null;
|
|
758
|
-
searchMatches:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
offsetX: number;
|
|
763
|
-
offsetY: number;
|
|
764
|
-
width: number;
|
|
765
|
-
height: number;
|
|
766
|
-
}[];
|
|
767
|
-
}[];
|
|
744
|
+
searchMatches: Readonly<{
|
|
745
|
+
focusedId: string | null;
|
|
746
|
+
matches: readonly import("../types").SearchMatch[];
|
|
747
|
+
}> | null;
|
|
768
748
|
};
|
|
769
749
|
captureUpdate: "IMMEDIATELY";
|
|
770
750
|
} | {
|
|
771
|
-
elements: import("
|
|
751
|
+
elements: import("@excalidraw/element/types").ExcalidrawElement[];
|
|
772
752
|
appState: {
|
|
773
753
|
activeTool: {
|
|
774
754
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
775
755
|
locked: boolean;
|
|
756
|
+
fromSelection: boolean;
|
|
776
757
|
} & import("../types").ActiveTool;
|
|
777
758
|
multiElement: null;
|
|
778
759
|
activeEmbeddable: null;
|
|
760
|
+
selectedLinearElement: null;
|
|
761
|
+
editingGroupId: string | null;
|
|
779
762
|
selectedElementIds: Readonly<{
|
|
780
763
|
[id: string]: true;
|
|
781
764
|
}>;
|
|
782
765
|
selectedGroupIds: {
|
|
783
766
|
[groupId: string]: boolean;
|
|
784
767
|
};
|
|
785
|
-
editingGroupId: string | null;
|
|
786
768
|
contextMenu: {
|
|
787
769
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
788
770
|
top: number;
|
|
@@ -791,13 +773,13 @@ export declare const actionCut: {
|
|
|
791
773
|
showWelcomeScreen: boolean;
|
|
792
774
|
isLoading: boolean;
|
|
793
775
|
errorMessage: import("react").ReactNode;
|
|
794
|
-
newElement: import("
|
|
795
|
-
resizingElement: import("
|
|
796
|
-
selectionElement: import("
|
|
776
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
777
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
778
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
797
779
|
isBindingEnabled: boolean;
|
|
798
|
-
startBoundElement: import("
|
|
799
|
-
suggestedBindings: import("
|
|
800
|
-
frameToHighlight: import("
|
|
780
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
781
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
782
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
801
783
|
frameRendering: {
|
|
802
784
|
enabled: boolean;
|
|
803
785
|
name: boolean;
|
|
@@ -805,9 +787,9 @@ export declare const actionCut: {
|
|
|
805
787
|
clip: boolean;
|
|
806
788
|
};
|
|
807
789
|
editingFrame: string | null;
|
|
808
|
-
elementsToHighlight: import("
|
|
809
|
-
editingTextElement: import("
|
|
810
|
-
editingLinearElement: import("
|
|
790
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
791
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
792
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
811
793
|
penMode: boolean;
|
|
812
794
|
penDetected: boolean;
|
|
813
795
|
exportBackground: boolean;
|
|
@@ -816,18 +798,18 @@ export declare const actionCut: {
|
|
|
816
798
|
exportScale: number;
|
|
817
799
|
currentItemStrokeColor: string;
|
|
818
800
|
currentItemBackgroundColor: string;
|
|
819
|
-
currentItemFillStyle: import("
|
|
801
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
820
802
|
currentItemStrokeWidth: number;
|
|
821
|
-
currentItemStrokeStyle: import("
|
|
803
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
822
804
|
currentItemRoughness: number;
|
|
823
805
|
currentItemOpacity: number;
|
|
824
806
|
currentItemFontFamily: number;
|
|
825
807
|
currentItemFontSize: number;
|
|
826
808
|
currentItemTextAlign: string;
|
|
827
|
-
currentItemStartArrowhead: import("
|
|
828
|
-
currentItemEndArrowhead: import("
|
|
809
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
810
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
829
811
|
currentHoveredFontFamily: number | null;
|
|
830
|
-
currentItemRoundness: import("
|
|
812
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
831
813
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
832
814
|
viewBackgroundColor: string;
|
|
833
815
|
scrollX: number;
|
|
@@ -850,7 +832,7 @@ export declare const actionCut: {
|
|
|
850
832
|
name: "imageExport" | "help" | "jsonExport";
|
|
851
833
|
} | {
|
|
852
834
|
name: "ttd";
|
|
853
|
-
tab: "text-to-diagram"
|
|
835
|
+
tab: "mermaid" | "text-to-diagram";
|
|
854
836
|
} | {
|
|
855
837
|
name: "commandPalette";
|
|
856
838
|
} | {
|
|
@@ -858,7 +840,7 @@ export declare const actionCut: {
|
|
|
858
840
|
sourceElementId: string;
|
|
859
841
|
} | null;
|
|
860
842
|
defaultSidebarDockedPreference: boolean;
|
|
861
|
-
lastPointerDownWith: import("
|
|
843
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
862
844
|
hoveredElementIds: Readonly<{
|
|
863
845
|
[id: string]: true;
|
|
864
846
|
}>;
|
|
@@ -873,7 +855,7 @@ export declare const actionCut: {
|
|
|
873
855
|
duration?: number | undefined;
|
|
874
856
|
} | null;
|
|
875
857
|
zenModeEnabled: boolean;
|
|
876
|
-
theme: import("
|
|
858
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
877
859
|
gridSize: number;
|
|
878
860
|
gridStep: number;
|
|
879
861
|
gridModeEnabled: boolean;
|
|
@@ -890,7 +872,7 @@ export declare const actionCut: {
|
|
|
890
872
|
[id: string]: true;
|
|
891
873
|
}> | undefined;
|
|
892
874
|
username?: string | null | undefined;
|
|
893
|
-
userState?: import("
|
|
875
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
894
876
|
color?: {
|
|
895
877
|
background: string;
|
|
896
878
|
stroke: string;
|
|
@@ -907,7 +889,7 @@ export declare const actionCut: {
|
|
|
907
889
|
open: boolean;
|
|
908
890
|
panels: number;
|
|
909
891
|
};
|
|
910
|
-
currentChartType: import("
|
|
892
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
911
893
|
pasteDialog: {
|
|
912
894
|
shown: false;
|
|
913
895
|
data: null;
|
|
@@ -916,8 +898,7 @@ export declare const actionCut: {
|
|
|
916
898
|
data: import("../charts").Spreadsheet;
|
|
917
899
|
};
|
|
918
900
|
pendingImageElementId: string | null;
|
|
919
|
-
showHyperlinkPopup: false | "
|
|
920
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
901
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
921
902
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
922
903
|
originSnapOffset: {
|
|
923
904
|
x: number;
|
|
@@ -928,22 +909,16 @@ export declare const actionCut: {
|
|
|
928
909
|
followedBy: Set<import("../types").SocketId>;
|
|
929
910
|
isCropping: boolean;
|
|
930
911
|
croppingElementId: string | null;
|
|
931
|
-
searchMatches:
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
offsetX: number;
|
|
936
|
-
offsetY: number;
|
|
937
|
-
width: number;
|
|
938
|
-
height: number;
|
|
939
|
-
}[];
|
|
940
|
-
}[];
|
|
912
|
+
searchMatches: Readonly<{
|
|
913
|
+
focusedId: string | null;
|
|
914
|
+
matches: readonly import("../types").SearchMatch[];
|
|
915
|
+
}> | null;
|
|
941
916
|
};
|
|
942
917
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
943
918
|
};
|
|
944
|
-
keyTest: (event:
|
|
919
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
945
920
|
} & {
|
|
946
|
-
keyTest?: ((event:
|
|
921
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
947
922
|
};
|
|
948
923
|
export declare const actionCopyAsSvg: {
|
|
949
924
|
name: "copyAsSvg";
|
|
@@ -952,7 +927,7 @@ export declare const actionCopyAsSvg: {
|
|
|
952
927
|
trackEvent: {
|
|
953
928
|
category: "element";
|
|
954
929
|
};
|
|
955
|
-
perform: (elements: readonly import("
|
|
930
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
956
931
|
captureUpdate: "EVENTUALLY";
|
|
957
932
|
appState?: undefined;
|
|
958
933
|
} | {
|
|
@@ -970,7 +945,7 @@ export declare const actionCopyAsSvg: {
|
|
|
970
945
|
};
|
|
971
946
|
captureUpdate: "EVENTUALLY";
|
|
972
947
|
}>;
|
|
973
|
-
predicate: (elements: readonly import("
|
|
948
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
974
949
|
keywords: string[];
|
|
975
950
|
} & {
|
|
976
951
|
keyTest?: undefined;
|
|
@@ -982,7 +957,7 @@ export declare const actionCopyAsPng: {
|
|
|
982
957
|
trackEvent: {
|
|
983
958
|
category: "element";
|
|
984
959
|
};
|
|
985
|
-
perform: (elements: readonly import("
|
|
960
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
986
961
|
captureUpdate: "EVENTUALLY";
|
|
987
962
|
appState?: undefined;
|
|
988
963
|
} | {
|
|
@@ -996,17 +971,17 @@ export declare const actionCopyAsPng: {
|
|
|
996
971
|
showWelcomeScreen: boolean;
|
|
997
972
|
isLoading: boolean;
|
|
998
973
|
activeEmbeddable: {
|
|
999
|
-
element: import("
|
|
1000
|
-
state: "
|
|
974
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
975
|
+
state: "active" | "hover";
|
|
1001
976
|
} | null;
|
|
1002
|
-
newElement: import("
|
|
1003
|
-
resizingElement: import("
|
|
1004
|
-
multiElement: import("
|
|
1005
|
-
selectionElement: import("
|
|
977
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
978
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
979
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
980
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1006
981
|
isBindingEnabled: boolean;
|
|
1007
|
-
startBoundElement: import("
|
|
1008
|
-
suggestedBindings: import("
|
|
1009
|
-
frameToHighlight: import("
|
|
982
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
983
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
984
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1010
985
|
frameRendering: {
|
|
1011
986
|
enabled: boolean;
|
|
1012
987
|
name: boolean;
|
|
@@ -1014,12 +989,13 @@ export declare const actionCopyAsPng: {
|
|
|
1014
989
|
clip: boolean;
|
|
1015
990
|
};
|
|
1016
991
|
editingFrame: string | null;
|
|
1017
|
-
elementsToHighlight: import("
|
|
1018
|
-
editingTextElement: import("
|
|
1019
|
-
editingLinearElement: import("
|
|
992
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
993
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
994
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1020
995
|
activeTool: {
|
|
1021
996
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1022
997
|
locked: boolean;
|
|
998
|
+
fromSelection: boolean;
|
|
1023
999
|
} & import("../types").ActiveTool;
|
|
1024
1000
|
penMode: boolean;
|
|
1025
1001
|
penDetected: boolean;
|
|
@@ -1029,18 +1005,18 @@ export declare const actionCopyAsPng: {
|
|
|
1029
1005
|
exportScale: number;
|
|
1030
1006
|
currentItemStrokeColor: string;
|
|
1031
1007
|
currentItemBackgroundColor: string;
|
|
1032
|
-
currentItemFillStyle: import("
|
|
1008
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1033
1009
|
currentItemStrokeWidth: number;
|
|
1034
|
-
currentItemStrokeStyle: import("
|
|
1010
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1035
1011
|
currentItemRoughness: number;
|
|
1036
1012
|
currentItemOpacity: number;
|
|
1037
1013
|
currentItemFontFamily: number;
|
|
1038
1014
|
currentItemFontSize: number;
|
|
1039
1015
|
currentItemTextAlign: string;
|
|
1040
|
-
currentItemStartArrowhead: import("
|
|
1041
|
-
currentItemEndArrowhead: import("
|
|
1016
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1017
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1042
1018
|
currentHoveredFontFamily: number | null;
|
|
1043
|
-
currentItemRoundness: import("
|
|
1019
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1044
1020
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1045
1021
|
viewBackgroundColor: string;
|
|
1046
1022
|
scrollX: number;
|
|
@@ -1063,7 +1039,7 @@ export declare const actionCopyAsPng: {
|
|
|
1063
1039
|
name: "imageExport" | "help" | "jsonExport";
|
|
1064
1040
|
} | {
|
|
1065
1041
|
name: "ttd";
|
|
1066
|
-
tab: "text-to-diagram"
|
|
1042
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1067
1043
|
} | {
|
|
1068
1044
|
name: "commandPalette";
|
|
1069
1045
|
} | {
|
|
@@ -1071,7 +1047,7 @@ export declare const actionCopyAsPng: {
|
|
|
1071
1047
|
sourceElementId: string;
|
|
1072
1048
|
} | null;
|
|
1073
1049
|
defaultSidebarDockedPreference: boolean;
|
|
1074
|
-
lastPointerDownWith: import("
|
|
1050
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1075
1051
|
selectedElementIds: Readonly<{
|
|
1076
1052
|
[id: string]: true;
|
|
1077
1053
|
}>;
|
|
@@ -1089,7 +1065,7 @@ export declare const actionCopyAsPng: {
|
|
|
1089
1065
|
duration?: number | undefined;
|
|
1090
1066
|
} | null;
|
|
1091
1067
|
zenModeEnabled: boolean;
|
|
1092
|
-
theme: import("
|
|
1068
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1093
1069
|
gridSize: number;
|
|
1094
1070
|
gridStep: number;
|
|
1095
1071
|
gridModeEnabled: boolean;
|
|
@@ -1110,7 +1086,7 @@ export declare const actionCopyAsPng: {
|
|
|
1110
1086
|
[id: string]: true;
|
|
1111
1087
|
}> | undefined;
|
|
1112
1088
|
username?: string | null | undefined;
|
|
1113
|
-
userState?: import("
|
|
1089
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1114
1090
|
color?: {
|
|
1115
1091
|
background: string;
|
|
1116
1092
|
stroke: string;
|
|
@@ -1127,7 +1103,7 @@ export declare const actionCopyAsPng: {
|
|
|
1127
1103
|
open: boolean;
|
|
1128
1104
|
panels: number;
|
|
1129
1105
|
};
|
|
1130
|
-
currentChartType: import("
|
|
1106
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1131
1107
|
pasteDialog: {
|
|
1132
1108
|
shown: false;
|
|
1133
1109
|
data: null;
|
|
@@ -1136,8 +1112,8 @@ export declare const actionCopyAsPng: {
|
|
|
1136
1112
|
data: import("../charts").Spreadsheet;
|
|
1137
1113
|
};
|
|
1138
1114
|
pendingImageElementId: string | null;
|
|
1139
|
-
showHyperlinkPopup: false | "
|
|
1140
|
-
selectedLinearElement: import("
|
|
1115
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1116
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1141
1117
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1142
1118
|
originSnapOffset: {
|
|
1143
1119
|
x: number;
|
|
@@ -1148,24 +1124,18 @@ export declare const actionCopyAsPng: {
|
|
|
1148
1124
|
followedBy: Set<import("../types").SocketId>;
|
|
1149
1125
|
isCropping: boolean;
|
|
1150
1126
|
croppingElementId: string | null;
|
|
1151
|
-
searchMatches:
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
offsetX: number;
|
|
1156
|
-
offsetY: number;
|
|
1157
|
-
width: number;
|
|
1158
|
-
height: number;
|
|
1159
|
-
}[];
|
|
1160
|
-
}[];
|
|
1127
|
+
searchMatches: Readonly<{
|
|
1128
|
+
focusedId: string | null;
|
|
1129
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1130
|
+
}> | null;
|
|
1161
1131
|
};
|
|
1162
1132
|
captureUpdate: "EVENTUALLY";
|
|
1163
1133
|
}>;
|
|
1164
|
-
predicate: (elements: readonly import("
|
|
1165
|
-
keyTest: (event:
|
|
1134
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1135
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1166
1136
|
keywords: string[];
|
|
1167
1137
|
} & {
|
|
1168
|
-
keyTest?: ((event:
|
|
1138
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1169
1139
|
};
|
|
1170
1140
|
export declare const copyText: {
|
|
1171
1141
|
name: "copyText";
|
|
@@ -1173,10 +1143,10 @@ export declare const copyText: {
|
|
|
1173
1143
|
trackEvent: {
|
|
1174
1144
|
category: "element";
|
|
1175
1145
|
};
|
|
1176
|
-
perform: (elements: readonly import("
|
|
1146
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1177
1147
|
captureUpdate: "EVENTUALLY";
|
|
1178
1148
|
};
|
|
1179
|
-
predicate: (elements: readonly import("
|
|
1149
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1180
1150
|
keywords: string[];
|
|
1181
1151
|
} & {
|
|
1182
1152
|
keyTest?: undefined;
|