@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-864353b
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-7YMZV3TY.js} +15 -4
- package/dist/dev/chunk-7YMZV3TY.js.map +7 -0
- package/dist/dev/chunk-BBNNHA7I.js +7 -0
- package/dist/dev/chunk-BBNNHA7I.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-3SN6HYVK.js → chunk-LL55DS44.js} +19504 -21522
- package/dist/dev/chunk-LL55DS44.js.map +7 -0
- package/dist/dev/data/{image-V26YBSDB.js → image-OFYK7EOY.js} +3 -3
- package/dist/dev/index.css +3098 -3023
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +27238 -22881
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-KIY5SGI3.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-F44EGBV2.js +33 -0
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/{chunk-6U3AYISY.js → chunk-OUULIERA.js} +4 -4
- package/dist/prod/chunk-UH6Q3EIV.js +7 -0
- package/dist/prod/data/image-CUOH64HE.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +20 -16
- package/dist/prod/locales/{en-B4ZKOASM.js → en-GCLCIHXH.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 +18 -7
- 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 +24 -11
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +14 -17
- 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 +59 -0
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +22 -33
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
- 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 +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 -7
- package/dist/types/element/src/shapes.d.ts +27 -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 +227 -0
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
- package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +3 -3
- package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +17 -3
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +16 -3
- package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +91 -94
- package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +66 -68
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +576 -413
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +195 -200
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +32 -33
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +93 -95
- 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 +36 -37
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +78 -82
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +32 -43
- package/dist/types/excalidraw/actions/actionExport.d.ts +295 -304
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +95 -57
- package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionFrame.d.ts +203 -207
- package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -67
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +526 -34
- package/dist/types/excalidraw/actions/actionLink.d.ts +36 -37
- package/dist/types/excalidraw/actions/actionMenu.d.ts +95 -98
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +61 -63
- package/dist/types/excalidraw/actions/actionProperties.d.ts +428 -435
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -34
- package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -39
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -35
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -35
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -207
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -35
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -36
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -36
- 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 +6 -5
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +33 -23
- 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 +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/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 +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/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 +3 -3
- 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 +16 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
- 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 +39 -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/{angle.d.ts → src/angle.d.ts} +2 -0
- package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -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/{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-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-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/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/dev/data/{image-V26YBSDB.js.map → image-OFYK7EOY.js.map} +0 -0
- package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-KIY5SGI3.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/{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("
|
|
21
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
22
|
state: "hover" | "active";
|
|
23
23
|
} | null;
|
|
24
|
-
newElement: import("
|
|
25
|
-
resizingElement: import("
|
|
26
|
-
multiElement: import("
|
|
27
|
-
selectionElement: import("
|
|
24
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
27
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
|
-
startBoundElement: import("
|
|
30
|
-
suggestedBindings: import("
|
|
31
|
-
frameToHighlight: import("
|
|
29
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
34
34
|
name: boolean;
|
|
@@ -36,12 +36,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 | 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;
|
|
@@ -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;
|
|
@@ -159,7 +160,7 @@ export declare const actionCopy: {
|
|
|
159
160
|
};
|
|
160
161
|
pendingImageElementId: string | null;
|
|
161
162
|
showHyperlinkPopup: false | "info" | "editor";
|
|
162
|
-
selectedLinearElement: import("
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
165
|
originSnapOffset: {
|
|
165
166
|
x: number;
|
|
@@ -170,16 +171,14 @@ 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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}[];
|
|
182
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
178
|
+
activeLockedId: string | null;
|
|
179
|
+
lockedMultiSelections: {
|
|
180
|
+
[groupId: string]: true;
|
|
181
|
+
};
|
|
183
182
|
};
|
|
184
183
|
} | {
|
|
185
184
|
captureUpdate: "EVENTUALLY";
|
|
@@ -195,7 +194,7 @@ export declare const actionPaste: {
|
|
|
195
194
|
trackEvent: {
|
|
196
195
|
category: "element";
|
|
197
196
|
};
|
|
198
|
-
perform: (elements: readonly import("
|
|
197
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
199
198
|
captureUpdate: "EVENTUALLY";
|
|
200
199
|
appState: {
|
|
201
200
|
errorMessage: string;
|
|
@@ -207,17 +206,17 @@ export declare const actionPaste: {
|
|
|
207
206
|
showWelcomeScreen: boolean;
|
|
208
207
|
isLoading: boolean;
|
|
209
208
|
activeEmbeddable: {
|
|
210
|
-
element: import("
|
|
209
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
211
210
|
state: "hover" | "active";
|
|
212
211
|
} | null;
|
|
213
|
-
newElement: import("
|
|
214
|
-
resizingElement: import("
|
|
215
|
-
multiElement: import("
|
|
216
|
-
selectionElement: import("
|
|
212
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
213
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
214
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
215
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
217
216
|
isBindingEnabled: boolean;
|
|
218
|
-
startBoundElement: import("
|
|
219
|
-
suggestedBindings: import("
|
|
220
|
-
frameToHighlight: import("
|
|
217
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
218
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
219
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
221
220
|
frameRendering: {
|
|
222
221
|
enabled: boolean;
|
|
223
222
|
name: boolean;
|
|
@@ -225,12 +224,13 @@ export declare const actionPaste: {
|
|
|
225
224
|
clip: boolean;
|
|
226
225
|
};
|
|
227
226
|
editingFrame: string | null;
|
|
228
|
-
elementsToHighlight: import("
|
|
229
|
-
editingTextElement: import("
|
|
230
|
-
editingLinearElement: import("
|
|
227
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
228
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
229
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
231
230
|
activeTool: {
|
|
232
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
232
|
locked: boolean;
|
|
233
|
+
fromSelection: boolean;
|
|
234
234
|
} & import("../types").ActiveTool;
|
|
235
235
|
penMode: boolean;
|
|
236
236
|
penDetected: boolean;
|
|
@@ -240,18 +240,18 @@ export declare const actionPaste: {
|
|
|
240
240
|
exportScale: number;
|
|
241
241
|
currentItemStrokeColor: string;
|
|
242
242
|
currentItemBackgroundColor: string;
|
|
243
|
-
currentItemFillStyle: import("
|
|
243
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
244
244
|
currentItemStrokeWidth: number;
|
|
245
|
-
currentItemStrokeStyle: import("
|
|
245
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
246
246
|
currentItemRoughness: number;
|
|
247
247
|
currentItemOpacity: number;
|
|
248
248
|
currentItemFontFamily: number;
|
|
249
249
|
currentItemFontSize: number;
|
|
250
250
|
currentItemTextAlign: string;
|
|
251
|
-
currentItemStartArrowhead: import("
|
|
252
|
-
currentItemEndArrowhead: import("
|
|
251
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
252
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
253
253
|
currentHoveredFontFamily: number | null;
|
|
254
|
-
currentItemRoundness: import("
|
|
254
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
255
255
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
256
256
|
viewBackgroundColor: string;
|
|
257
257
|
scrollX: number;
|
|
@@ -282,7 +282,7 @@ export declare const actionPaste: {
|
|
|
282
282
|
sourceElementId: string;
|
|
283
283
|
} | null;
|
|
284
284
|
defaultSidebarDockedPreference: boolean;
|
|
285
|
-
lastPointerDownWith: import("
|
|
285
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
286
286
|
selectedElementIds: Readonly<{
|
|
287
287
|
[id: string]: true;
|
|
288
288
|
}>;
|
|
@@ -300,7 +300,7 @@ export declare const actionPaste: {
|
|
|
300
300
|
duration?: number | undefined;
|
|
301
301
|
} | null;
|
|
302
302
|
zenModeEnabled: boolean;
|
|
303
|
-
theme: import("
|
|
303
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
304
304
|
gridSize: number;
|
|
305
305
|
gridStep: number;
|
|
306
306
|
gridModeEnabled: boolean;
|
|
@@ -321,7 +321,7 @@ export declare const actionPaste: {
|
|
|
321
321
|
[id: string]: true;
|
|
322
322
|
}> | undefined;
|
|
323
323
|
username?: string | null | undefined;
|
|
324
|
-
userState?: import("
|
|
324
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
325
325
|
color?: {
|
|
326
326
|
background: string;
|
|
327
327
|
stroke: string;
|
|
@@ -338,7 +338,7 @@ export declare const actionPaste: {
|
|
|
338
338
|
open: boolean;
|
|
339
339
|
panels: number;
|
|
340
340
|
};
|
|
341
|
-
currentChartType: import("
|
|
341
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
342
342
|
pasteDialog: {
|
|
343
343
|
shown: false;
|
|
344
344
|
data: null;
|
|
@@ -348,7 +348,7 @@ export declare const actionPaste: {
|
|
|
348
348
|
};
|
|
349
349
|
pendingImageElementId: string | null;
|
|
350
350
|
showHyperlinkPopup: false | "info" | "editor";
|
|
351
|
-
selectedLinearElement: import("
|
|
351
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
352
352
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
353
353
|
originSnapOffset: {
|
|
354
354
|
x: number;
|
|
@@ -359,16 +359,14 @@ export declare const actionPaste: {
|
|
|
359
359
|
followedBy: Set<import("../types").SocketId>;
|
|
360
360
|
isCropping: boolean;
|
|
361
361
|
croppingElementId: string | null;
|
|
362
|
-
searchMatches:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}[];
|
|
371
|
-
}[];
|
|
362
|
+
searchMatches: Readonly<{
|
|
363
|
+
focusedId: string | null;
|
|
364
|
+
matches: readonly import("../types").SearchMatch[];
|
|
365
|
+
}> | null;
|
|
366
|
+
activeLockedId: string | null;
|
|
367
|
+
lockedMultiSelections: {
|
|
368
|
+
[groupId: string]: true;
|
|
369
|
+
};
|
|
372
370
|
};
|
|
373
371
|
} | {
|
|
374
372
|
captureUpdate: "EVENTUALLY";
|
|
@@ -385,8 +383,8 @@ export declare const actionCut: {
|
|
|
385
383
|
trackEvent: {
|
|
386
384
|
category: "element";
|
|
387
385
|
};
|
|
388
|
-
perform: (elements: readonly import("
|
|
389
|
-
elements: import("
|
|
386
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
387
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
390
388
|
appState: {
|
|
391
389
|
editingLinearElement: null;
|
|
392
390
|
contextMenu: {
|
|
@@ -398,17 +396,17 @@ export declare const actionCut: {
|
|
|
398
396
|
isLoading: boolean;
|
|
399
397
|
errorMessage: import("react").ReactNode;
|
|
400
398
|
activeEmbeddable: {
|
|
401
|
-
element: import("
|
|
399
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
402
400
|
state: "hover" | "active";
|
|
403
401
|
} | null;
|
|
404
|
-
newElement: import("
|
|
405
|
-
resizingElement: import("
|
|
406
|
-
multiElement: import("
|
|
407
|
-
selectionElement: import("
|
|
402
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
403
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
404
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
405
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
408
406
|
isBindingEnabled: boolean;
|
|
409
|
-
startBoundElement: import("
|
|
410
|
-
suggestedBindings: import("
|
|
411
|
-
frameToHighlight: import("
|
|
407
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
408
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
409
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
412
410
|
frameRendering: {
|
|
413
411
|
enabled: boolean;
|
|
414
412
|
name: boolean;
|
|
@@ -416,11 +414,12 @@ export declare const actionCut: {
|
|
|
416
414
|
clip: boolean;
|
|
417
415
|
};
|
|
418
416
|
editingFrame: string | null;
|
|
419
|
-
elementsToHighlight: import("
|
|
420
|
-
editingTextElement: import("
|
|
417
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
418
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
421
419
|
activeTool: {
|
|
422
420
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
423
421
|
locked: boolean;
|
|
422
|
+
fromSelection: boolean;
|
|
424
423
|
} & import("../types").ActiveTool;
|
|
425
424
|
penMode: boolean;
|
|
426
425
|
penDetected: boolean;
|
|
@@ -430,18 +429,18 @@ export declare const actionCut: {
|
|
|
430
429
|
exportScale: number;
|
|
431
430
|
currentItemStrokeColor: string;
|
|
432
431
|
currentItemBackgroundColor: string;
|
|
433
|
-
currentItemFillStyle: import("
|
|
432
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
434
433
|
currentItemStrokeWidth: number;
|
|
435
|
-
currentItemStrokeStyle: import("
|
|
434
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
436
435
|
currentItemRoughness: number;
|
|
437
436
|
currentItemOpacity: number;
|
|
438
437
|
currentItemFontFamily: number;
|
|
439
438
|
currentItemFontSize: number;
|
|
440
439
|
currentItemTextAlign: string;
|
|
441
|
-
currentItemStartArrowhead: import("
|
|
442
|
-
currentItemEndArrowhead: import("
|
|
440
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
441
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
443
442
|
currentHoveredFontFamily: number | null;
|
|
444
|
-
currentItemRoundness: import("
|
|
443
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
445
444
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
446
445
|
viewBackgroundColor: string;
|
|
447
446
|
scrollX: number;
|
|
@@ -472,7 +471,7 @@ export declare const actionCut: {
|
|
|
472
471
|
sourceElementId: string;
|
|
473
472
|
} | null;
|
|
474
473
|
defaultSidebarDockedPreference: boolean;
|
|
475
|
-
lastPointerDownWith: import("
|
|
474
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
476
475
|
selectedElementIds: Readonly<{
|
|
477
476
|
[id: string]: true;
|
|
478
477
|
}>;
|
|
@@ -490,7 +489,7 @@ export declare const actionCut: {
|
|
|
490
489
|
duration?: number | undefined;
|
|
491
490
|
} | null;
|
|
492
491
|
zenModeEnabled: boolean;
|
|
493
|
-
theme: import("
|
|
492
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
494
493
|
gridSize: number;
|
|
495
494
|
gridStep: number;
|
|
496
495
|
gridModeEnabled: boolean;
|
|
@@ -511,7 +510,7 @@ export declare const actionCut: {
|
|
|
511
510
|
[id: string]: true;
|
|
512
511
|
}> | undefined;
|
|
513
512
|
username?: string | null | undefined;
|
|
514
|
-
userState?: import("
|
|
513
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
515
514
|
color?: {
|
|
516
515
|
background: string;
|
|
517
516
|
stroke: string;
|
|
@@ -528,7 +527,7 @@ export declare const actionCut: {
|
|
|
528
527
|
open: boolean;
|
|
529
528
|
panels: number;
|
|
530
529
|
};
|
|
531
|
-
currentChartType: import("
|
|
530
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
532
531
|
pasteDialog: {
|
|
533
532
|
shown: false;
|
|
534
533
|
data: null;
|
|
@@ -538,7 +537,7 @@ export declare const actionCut: {
|
|
|
538
537
|
};
|
|
539
538
|
pendingImageElementId: string | null;
|
|
540
539
|
showHyperlinkPopup: false | "info" | "editor";
|
|
541
|
-
selectedLinearElement: import("
|
|
540
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
542
541
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
543
542
|
originSnapOffset: {
|
|
544
543
|
x: number;
|
|
@@ -549,25 +548,23 @@ export declare const actionCut: {
|
|
|
549
548
|
followedBy: Set<import("../types").SocketId>;
|
|
550
549
|
isCropping: boolean;
|
|
551
550
|
croppingElementId: string | null;
|
|
552
|
-
searchMatches:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}[];
|
|
561
|
-
}[];
|
|
551
|
+
searchMatches: Readonly<{
|
|
552
|
+
focusedId: string | null;
|
|
553
|
+
matches: readonly import("../types").SearchMatch[];
|
|
554
|
+
}> | null;
|
|
555
|
+
activeLockedId: string | null;
|
|
556
|
+
lockedMultiSelections: {
|
|
557
|
+
[groupId: string]: true;
|
|
558
|
+
};
|
|
562
559
|
};
|
|
563
560
|
captureUpdate: "IMMEDIATELY";
|
|
564
561
|
} | {
|
|
565
|
-
elements: readonly import("
|
|
562
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
566
563
|
appState: {
|
|
567
564
|
editingLinearElement: {
|
|
568
565
|
selectedPointsIndices: number[];
|
|
569
|
-
startBindingElement: import("
|
|
570
|
-
endBindingElement: import("
|
|
566
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
567
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
571
568
|
elementId: string & {
|
|
572
569
|
_brand: "excalidrawLinearElementId";
|
|
573
570
|
};
|
|
@@ -594,6 +591,7 @@ export declare const actionCut: {
|
|
|
594
591
|
hoverPointIndex: number;
|
|
595
592
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
596
593
|
elbowed: boolean;
|
|
594
|
+
customLineAngle: number | null;
|
|
597
595
|
};
|
|
598
596
|
contextMenu: {
|
|
599
597
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -604,17 +602,17 @@ export declare const actionCut: {
|
|
|
604
602
|
isLoading: boolean;
|
|
605
603
|
errorMessage: import("react").ReactNode;
|
|
606
604
|
activeEmbeddable: {
|
|
607
|
-
element: import("
|
|
605
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
608
606
|
state: "hover" | "active";
|
|
609
607
|
} | null;
|
|
610
|
-
newElement: import("
|
|
611
|
-
resizingElement: import("
|
|
612
|
-
multiElement: import("
|
|
613
|
-
selectionElement: import("
|
|
608
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
609
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
610
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
611
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
614
612
|
isBindingEnabled: boolean;
|
|
615
|
-
startBoundElement: import("
|
|
616
|
-
suggestedBindings: import("
|
|
617
|
-
frameToHighlight: import("
|
|
613
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
614
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
615
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
618
616
|
frameRendering: {
|
|
619
617
|
enabled: boolean;
|
|
620
618
|
name: boolean;
|
|
@@ -622,11 +620,12 @@ export declare const actionCut: {
|
|
|
622
620
|
clip: boolean;
|
|
623
621
|
};
|
|
624
622
|
editingFrame: string | null;
|
|
625
|
-
elementsToHighlight: import("
|
|
626
|
-
editingTextElement: import("
|
|
623
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
624
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
627
625
|
activeTool: {
|
|
628
626
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
629
627
|
locked: boolean;
|
|
628
|
+
fromSelection: boolean;
|
|
630
629
|
} & import("../types").ActiveTool;
|
|
631
630
|
penMode: boolean;
|
|
632
631
|
penDetected: boolean;
|
|
@@ -636,18 +635,18 @@ export declare const actionCut: {
|
|
|
636
635
|
exportScale: number;
|
|
637
636
|
currentItemStrokeColor: string;
|
|
638
637
|
currentItemBackgroundColor: string;
|
|
639
|
-
currentItemFillStyle: import("
|
|
638
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
640
639
|
currentItemStrokeWidth: number;
|
|
641
|
-
currentItemStrokeStyle: import("
|
|
640
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
642
641
|
currentItemRoughness: number;
|
|
643
642
|
currentItemOpacity: number;
|
|
644
643
|
currentItemFontFamily: number;
|
|
645
644
|
currentItemFontSize: number;
|
|
646
645
|
currentItemTextAlign: string;
|
|
647
|
-
currentItemStartArrowhead: import("
|
|
648
|
-
currentItemEndArrowhead: import("
|
|
646
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
647
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
649
648
|
currentHoveredFontFamily: number | null;
|
|
650
|
-
currentItemRoundness: import("
|
|
649
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
651
650
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
652
651
|
viewBackgroundColor: string;
|
|
653
652
|
scrollX: number;
|
|
@@ -678,7 +677,7 @@ export declare const actionCut: {
|
|
|
678
677
|
sourceElementId: string;
|
|
679
678
|
} | null;
|
|
680
679
|
defaultSidebarDockedPreference: boolean;
|
|
681
|
-
lastPointerDownWith: import("
|
|
680
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
682
681
|
selectedElementIds: Readonly<{
|
|
683
682
|
[id: string]: true;
|
|
684
683
|
}>;
|
|
@@ -696,7 +695,7 @@ export declare const actionCut: {
|
|
|
696
695
|
duration?: number | undefined;
|
|
697
696
|
} | null;
|
|
698
697
|
zenModeEnabled: boolean;
|
|
699
|
-
theme: import("
|
|
698
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
700
699
|
gridSize: number;
|
|
701
700
|
gridStep: number;
|
|
702
701
|
gridModeEnabled: boolean;
|
|
@@ -717,7 +716,7 @@ export declare const actionCut: {
|
|
|
717
716
|
[id: string]: true;
|
|
718
717
|
}> | undefined;
|
|
719
718
|
username?: string | null | undefined;
|
|
720
|
-
userState?: import("
|
|
719
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
721
720
|
color?: {
|
|
722
721
|
background: string;
|
|
723
722
|
stroke: string;
|
|
@@ -734,7 +733,7 @@ export declare const actionCut: {
|
|
|
734
733
|
open: boolean;
|
|
735
734
|
panels: number;
|
|
736
735
|
};
|
|
737
|
-
currentChartType: import("
|
|
736
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
738
737
|
pasteDialog: {
|
|
739
738
|
shown: false;
|
|
740
739
|
data: null;
|
|
@@ -744,7 +743,7 @@ export declare const actionCut: {
|
|
|
744
743
|
};
|
|
745
744
|
pendingImageElementId: string | null;
|
|
746
745
|
showHyperlinkPopup: false | "info" | "editor";
|
|
747
|
-
selectedLinearElement: import("
|
|
746
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
748
747
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
749
748
|
originSnapOffset: {
|
|
750
749
|
x: number;
|
|
@@ -755,27 +754,27 @@ export declare const actionCut: {
|
|
|
755
754
|
followedBy: Set<import("../types").SocketId>;
|
|
756
755
|
isCropping: boolean;
|
|
757
756
|
croppingElementId: string | null;
|
|
758
|
-
searchMatches:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}[];
|
|
767
|
-
}[];
|
|
757
|
+
searchMatches: Readonly<{
|
|
758
|
+
focusedId: string | null;
|
|
759
|
+
matches: readonly import("../types").SearchMatch[];
|
|
760
|
+
}> | null;
|
|
761
|
+
activeLockedId: string | null;
|
|
762
|
+
lockedMultiSelections: {
|
|
763
|
+
[groupId: string]: true;
|
|
764
|
+
};
|
|
768
765
|
};
|
|
769
766
|
captureUpdate: "IMMEDIATELY";
|
|
770
767
|
} | {
|
|
771
|
-
elements: import("
|
|
768
|
+
elements: import("@excalidraw/element/types").ExcalidrawElement[];
|
|
772
769
|
appState: {
|
|
773
770
|
activeTool: {
|
|
774
771
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
775
772
|
locked: boolean;
|
|
773
|
+
fromSelection: boolean;
|
|
776
774
|
} & import("../types").ActiveTool;
|
|
777
775
|
multiElement: null;
|
|
778
776
|
activeEmbeddable: null;
|
|
777
|
+
selectedLinearElement: null;
|
|
779
778
|
selectedElementIds: Readonly<{
|
|
780
779
|
[id: string]: true;
|
|
781
780
|
}>;
|
|
@@ -791,13 +790,13 @@ export declare const actionCut: {
|
|
|
791
790
|
showWelcomeScreen: boolean;
|
|
792
791
|
isLoading: boolean;
|
|
793
792
|
errorMessage: import("react").ReactNode;
|
|
794
|
-
newElement: import("
|
|
795
|
-
resizingElement: import("
|
|
796
|
-
selectionElement: import("
|
|
793
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
794
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
795
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
797
796
|
isBindingEnabled: boolean;
|
|
798
|
-
startBoundElement: import("
|
|
799
|
-
suggestedBindings: import("
|
|
800
|
-
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;
|
|
801
800
|
frameRendering: {
|
|
802
801
|
enabled: boolean;
|
|
803
802
|
name: boolean;
|
|
@@ -805,9 +804,9 @@ export declare const actionCut: {
|
|
|
805
804
|
clip: boolean;
|
|
806
805
|
};
|
|
807
806
|
editingFrame: string | null;
|
|
808
|
-
elementsToHighlight: import("
|
|
809
|
-
editingTextElement: import("
|
|
810
|
-
editingLinearElement: import("
|
|
807
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
808
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
809
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
811
810
|
penMode: boolean;
|
|
812
811
|
penDetected: boolean;
|
|
813
812
|
exportBackground: boolean;
|
|
@@ -816,18 +815,18 @@ export declare const actionCut: {
|
|
|
816
815
|
exportScale: number;
|
|
817
816
|
currentItemStrokeColor: string;
|
|
818
817
|
currentItemBackgroundColor: string;
|
|
819
|
-
currentItemFillStyle: import("
|
|
818
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
820
819
|
currentItemStrokeWidth: number;
|
|
821
|
-
currentItemStrokeStyle: import("
|
|
820
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
822
821
|
currentItemRoughness: number;
|
|
823
822
|
currentItemOpacity: number;
|
|
824
823
|
currentItemFontFamily: number;
|
|
825
824
|
currentItemFontSize: number;
|
|
826
825
|
currentItemTextAlign: string;
|
|
827
|
-
currentItemStartArrowhead: import("
|
|
828
|
-
currentItemEndArrowhead: import("
|
|
826
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
827
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
829
828
|
currentHoveredFontFamily: number | null;
|
|
830
|
-
currentItemRoundness: import("
|
|
829
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
831
830
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
832
831
|
viewBackgroundColor: string;
|
|
833
832
|
scrollX: number;
|
|
@@ -858,7 +857,7 @@ export declare const actionCut: {
|
|
|
858
857
|
sourceElementId: string;
|
|
859
858
|
} | null;
|
|
860
859
|
defaultSidebarDockedPreference: boolean;
|
|
861
|
-
lastPointerDownWith: import("
|
|
860
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
862
861
|
hoveredElementIds: Readonly<{
|
|
863
862
|
[id: string]: true;
|
|
864
863
|
}>;
|
|
@@ -873,7 +872,7 @@ export declare const actionCut: {
|
|
|
873
872
|
duration?: number | undefined;
|
|
874
873
|
} | null;
|
|
875
874
|
zenModeEnabled: boolean;
|
|
876
|
-
theme: import("
|
|
875
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
877
876
|
gridSize: number;
|
|
878
877
|
gridStep: number;
|
|
879
878
|
gridModeEnabled: boolean;
|
|
@@ -890,7 +889,7 @@ export declare const actionCut: {
|
|
|
890
889
|
[id: string]: true;
|
|
891
890
|
}> | undefined;
|
|
892
891
|
username?: string | null | undefined;
|
|
893
|
-
userState?: import("
|
|
892
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
894
893
|
color?: {
|
|
895
894
|
background: string;
|
|
896
895
|
stroke: string;
|
|
@@ -907,7 +906,7 @@ export declare const actionCut: {
|
|
|
907
906
|
open: boolean;
|
|
908
907
|
panels: number;
|
|
909
908
|
};
|
|
910
|
-
currentChartType: import("
|
|
909
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
911
910
|
pasteDialog: {
|
|
912
911
|
shown: false;
|
|
913
912
|
data: null;
|
|
@@ -917,7 +916,6 @@ export declare const actionCut: {
|
|
|
917
916
|
};
|
|
918
917
|
pendingImageElementId: string | null;
|
|
919
918
|
showHyperlinkPopup: false | "info" | "editor";
|
|
920
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
921
919
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
922
920
|
originSnapOffset: {
|
|
923
921
|
x: number;
|
|
@@ -928,22 +926,20 @@ export declare const actionCut: {
|
|
|
928
926
|
followedBy: Set<import("../types").SocketId>;
|
|
929
927
|
isCropping: boolean;
|
|
930
928
|
croppingElementId: string | null;
|
|
931
|
-
searchMatches:
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
}[];
|
|
940
|
-
}[];
|
|
929
|
+
searchMatches: Readonly<{
|
|
930
|
+
focusedId: string | null;
|
|
931
|
+
matches: readonly import("../types").SearchMatch[];
|
|
932
|
+
}> | null;
|
|
933
|
+
activeLockedId: string | null;
|
|
934
|
+
lockedMultiSelections: {
|
|
935
|
+
[groupId: string]: true;
|
|
936
|
+
};
|
|
941
937
|
};
|
|
942
938
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
943
939
|
};
|
|
944
|
-
keyTest: (event:
|
|
940
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
945
941
|
} & {
|
|
946
|
-
keyTest?: ((event:
|
|
942
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
947
943
|
};
|
|
948
944
|
export declare const actionCopyAsSvg: {
|
|
949
945
|
name: "copyAsSvg";
|
|
@@ -952,7 +948,7 @@ export declare const actionCopyAsSvg: {
|
|
|
952
948
|
trackEvent: {
|
|
953
949
|
category: "element";
|
|
954
950
|
};
|
|
955
|
-
perform: (elements: readonly import("
|
|
951
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
956
952
|
captureUpdate: "EVENTUALLY";
|
|
957
953
|
appState?: undefined;
|
|
958
954
|
} | {
|
|
@@ -970,7 +966,7 @@ export declare const actionCopyAsSvg: {
|
|
|
970
966
|
};
|
|
971
967
|
captureUpdate: "EVENTUALLY";
|
|
972
968
|
}>;
|
|
973
|
-
predicate: (elements: readonly import("
|
|
969
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
974
970
|
keywords: string[];
|
|
975
971
|
} & {
|
|
976
972
|
keyTest?: undefined;
|
|
@@ -982,7 +978,7 @@ export declare const actionCopyAsPng: {
|
|
|
982
978
|
trackEvent: {
|
|
983
979
|
category: "element";
|
|
984
980
|
};
|
|
985
|
-
perform: (elements: readonly import("
|
|
981
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
986
982
|
captureUpdate: "EVENTUALLY";
|
|
987
983
|
appState?: undefined;
|
|
988
984
|
} | {
|
|
@@ -996,17 +992,17 @@ export declare const actionCopyAsPng: {
|
|
|
996
992
|
showWelcomeScreen: boolean;
|
|
997
993
|
isLoading: boolean;
|
|
998
994
|
activeEmbeddable: {
|
|
999
|
-
element: import("
|
|
995
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1000
996
|
state: "hover" | "active";
|
|
1001
997
|
} | null;
|
|
1002
|
-
newElement: import("
|
|
1003
|
-
resizingElement: import("
|
|
1004
|
-
multiElement: import("
|
|
1005
|
-
selectionElement: import("
|
|
998
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
999
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1000
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1001
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1006
1002
|
isBindingEnabled: boolean;
|
|
1007
|
-
startBoundElement: import("
|
|
1008
|
-
suggestedBindings: import("
|
|
1009
|
-
frameToHighlight: import("
|
|
1003
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1004
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1005
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1010
1006
|
frameRendering: {
|
|
1011
1007
|
enabled: boolean;
|
|
1012
1008
|
name: boolean;
|
|
@@ -1014,12 +1010,13 @@ export declare const actionCopyAsPng: {
|
|
|
1014
1010
|
clip: boolean;
|
|
1015
1011
|
};
|
|
1016
1012
|
editingFrame: string | null;
|
|
1017
|
-
elementsToHighlight: import("
|
|
1018
|
-
editingTextElement: import("
|
|
1019
|
-
editingLinearElement: import("
|
|
1013
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1014
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1015
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1020
1016
|
activeTool: {
|
|
1021
1017
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1022
1018
|
locked: boolean;
|
|
1019
|
+
fromSelection: boolean;
|
|
1023
1020
|
} & import("../types").ActiveTool;
|
|
1024
1021
|
penMode: boolean;
|
|
1025
1022
|
penDetected: boolean;
|
|
@@ -1029,18 +1026,18 @@ export declare const actionCopyAsPng: {
|
|
|
1029
1026
|
exportScale: number;
|
|
1030
1027
|
currentItemStrokeColor: string;
|
|
1031
1028
|
currentItemBackgroundColor: string;
|
|
1032
|
-
currentItemFillStyle: import("
|
|
1029
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1033
1030
|
currentItemStrokeWidth: number;
|
|
1034
|
-
currentItemStrokeStyle: import("
|
|
1031
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1035
1032
|
currentItemRoughness: number;
|
|
1036
1033
|
currentItemOpacity: number;
|
|
1037
1034
|
currentItemFontFamily: number;
|
|
1038
1035
|
currentItemFontSize: number;
|
|
1039
1036
|
currentItemTextAlign: string;
|
|
1040
|
-
currentItemStartArrowhead: import("
|
|
1041
|
-
currentItemEndArrowhead: import("
|
|
1037
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1038
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1042
1039
|
currentHoveredFontFamily: number | null;
|
|
1043
|
-
currentItemRoundness: import("
|
|
1040
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1044
1041
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1045
1042
|
viewBackgroundColor: string;
|
|
1046
1043
|
scrollX: number;
|
|
@@ -1071,7 +1068,7 @@ export declare const actionCopyAsPng: {
|
|
|
1071
1068
|
sourceElementId: string;
|
|
1072
1069
|
} | null;
|
|
1073
1070
|
defaultSidebarDockedPreference: boolean;
|
|
1074
|
-
lastPointerDownWith: import("
|
|
1071
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1075
1072
|
selectedElementIds: Readonly<{
|
|
1076
1073
|
[id: string]: true;
|
|
1077
1074
|
}>;
|
|
@@ -1089,7 +1086,7 @@ export declare const actionCopyAsPng: {
|
|
|
1089
1086
|
duration?: number | undefined;
|
|
1090
1087
|
} | null;
|
|
1091
1088
|
zenModeEnabled: boolean;
|
|
1092
|
-
theme: import("
|
|
1089
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1093
1090
|
gridSize: number;
|
|
1094
1091
|
gridStep: number;
|
|
1095
1092
|
gridModeEnabled: boolean;
|
|
@@ -1110,7 +1107,7 @@ export declare const actionCopyAsPng: {
|
|
|
1110
1107
|
[id: string]: true;
|
|
1111
1108
|
}> | undefined;
|
|
1112
1109
|
username?: string | null | undefined;
|
|
1113
|
-
userState?: import("
|
|
1110
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1114
1111
|
color?: {
|
|
1115
1112
|
background: string;
|
|
1116
1113
|
stroke: string;
|
|
@@ -1127,7 +1124,7 @@ export declare const actionCopyAsPng: {
|
|
|
1127
1124
|
open: boolean;
|
|
1128
1125
|
panels: number;
|
|
1129
1126
|
};
|
|
1130
|
-
currentChartType: import("
|
|
1127
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1131
1128
|
pasteDialog: {
|
|
1132
1129
|
shown: false;
|
|
1133
1130
|
data: null;
|
|
@@ -1137,7 +1134,7 @@ export declare const actionCopyAsPng: {
|
|
|
1137
1134
|
};
|
|
1138
1135
|
pendingImageElementId: string | null;
|
|
1139
1136
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1140
|
-
selectedLinearElement: import("
|
|
1137
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1141
1138
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1142
1139
|
originSnapOffset: {
|
|
1143
1140
|
x: number;
|
|
@@ -1148,24 +1145,22 @@ export declare const actionCopyAsPng: {
|
|
|
1148
1145
|
followedBy: Set<import("../types").SocketId>;
|
|
1149
1146
|
isCropping: boolean;
|
|
1150
1147
|
croppingElementId: string | null;
|
|
1151
|
-
searchMatches:
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}[];
|
|
1160
|
-
}[];
|
|
1148
|
+
searchMatches: Readonly<{
|
|
1149
|
+
focusedId: string | null;
|
|
1150
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1151
|
+
}> | null;
|
|
1152
|
+
activeLockedId: string | null;
|
|
1153
|
+
lockedMultiSelections: {
|
|
1154
|
+
[groupId: string]: true;
|
|
1155
|
+
};
|
|
1161
1156
|
};
|
|
1162
1157
|
captureUpdate: "EVENTUALLY";
|
|
1163
1158
|
}>;
|
|
1164
|
-
predicate: (elements: readonly import("
|
|
1165
|
-
keyTest: (event:
|
|
1159
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1160
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1166
1161
|
keywords: string[];
|
|
1167
1162
|
} & {
|
|
1168
|
-
keyTest?: ((event:
|
|
1163
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1169
1164
|
};
|
|
1170
1165
|
export declare const copyText: {
|
|
1171
1166
|
name: "copyText";
|
|
@@ -1173,10 +1168,10 @@ export declare const copyText: {
|
|
|
1173
1168
|
trackEvent: {
|
|
1174
1169
|
category: "element";
|
|
1175
1170
|
};
|
|
1176
|
-
perform: (elements: readonly import("
|
|
1171
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1177
1172
|
captureUpdate: "EVENTUALLY";
|
|
1178
1173
|
};
|
|
1179
|
-
predicate: (elements: readonly import("
|
|
1174
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1180
1175
|
keywords: string[];
|
|
1181
1176
|
} & {
|
|
1182
1177
|
keyTest?: undefined;
|