@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement } from "
|
|
2
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionSelectAllElementsInFrame: {
|
|
5
5
|
name: "selectAllElementsInFrame";
|
|
@@ -7,8 +7,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "canvas";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly import("
|
|
11
|
-
elements: readonly import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
selectedElementIds: Record<string, true>;
|
|
14
14
|
contextMenu: {
|
|
@@ -20,17 +20,17 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
|
-
element: import("
|
|
24
|
-
state: "
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
+
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
|
-
newElement: import("
|
|
27
|
-
resizingElement: import("
|
|
28
|
-
multiElement: import("
|
|
29
|
-
selectionElement: import("
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("
|
|
32
|
-
suggestedBindings: import("
|
|
33
|
-
frameToHighlight: import("
|
|
31
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
33
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
@@ -38,12 +38,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
38
38
|
clip: boolean;
|
|
39
39
|
};
|
|
40
40
|
editingFrame: string | null;
|
|
41
|
-
elementsToHighlight: import("
|
|
42
|
-
editingTextElement: import("
|
|
43
|
-
editingLinearElement: import("
|
|
41
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
48
49
|
penMode: boolean;
|
|
49
50
|
penDetected: boolean;
|
|
@@ -53,18 +54,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
53
54
|
exportScale: number;
|
|
54
55
|
currentItemStrokeColor: string;
|
|
55
56
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle: import("
|
|
57
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
57
58
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle: import("
|
|
59
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
59
60
|
currentItemRoughness: number;
|
|
60
61
|
currentItemOpacity: number;
|
|
61
62
|
currentItemFontFamily: number;
|
|
62
63
|
currentItemFontSize: number;
|
|
63
64
|
currentItemTextAlign: string;
|
|
64
|
-
currentItemStartArrowhead: import("
|
|
65
|
-
currentItemEndArrowhead: import("
|
|
65
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
67
|
currentHoveredFontFamily: number | null;
|
|
67
|
-
currentItemRoundness: import("
|
|
68
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
69
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
69
70
|
viewBackgroundColor: string;
|
|
70
71
|
scrollX: number;
|
|
@@ -87,7 +88,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
87
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
88
89
|
} | {
|
|
89
90
|
name: "ttd";
|
|
90
|
-
tab: "text-to-diagram"
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
91
92
|
} | {
|
|
92
93
|
name: "commandPalette";
|
|
93
94
|
} | {
|
|
@@ -95,7 +96,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
95
96
|
sourceElementId: string;
|
|
96
97
|
} | null;
|
|
97
98
|
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("
|
|
99
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
100
|
hoveredElementIds: Readonly<{
|
|
100
101
|
[id: string]: true;
|
|
101
102
|
}>;
|
|
@@ -110,7 +111,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
110
111
|
duration?: number | undefined;
|
|
111
112
|
} | null;
|
|
112
113
|
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("
|
|
114
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
114
115
|
gridSize: number;
|
|
115
116
|
gridStep: number;
|
|
116
117
|
gridModeEnabled: boolean;
|
|
@@ -131,7 +132,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
131
132
|
[id: string]: true;
|
|
132
133
|
}> | undefined;
|
|
133
134
|
username?: string | null | undefined;
|
|
134
|
-
userState?: import("
|
|
135
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
136
|
color?: {
|
|
136
137
|
background: string;
|
|
137
138
|
stroke: string;
|
|
@@ -148,7 +149,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
148
149
|
open: boolean;
|
|
149
150
|
panels: number;
|
|
150
151
|
};
|
|
151
|
-
currentChartType: import("
|
|
152
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
153
|
pasteDialog: {
|
|
153
154
|
shown: false;
|
|
154
155
|
data: null;
|
|
@@ -157,8 +158,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
157
158
|
data: import("../charts").Spreadsheet;
|
|
158
159
|
};
|
|
159
160
|
pendingImageElementId: string | null;
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
161
|
-
selectedLinearElement: import("
|
|
161
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
162
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
162
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
164
|
originSnapOffset: {
|
|
164
165
|
x: number;
|
|
@@ -169,20 +170,14 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
169
170
|
followedBy: Set<import("../types").SocketId>;
|
|
170
171
|
isCropping: boolean;
|
|
171
172
|
croppingElementId: string | null;
|
|
172
|
-
searchMatches:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
offsetX: number;
|
|
177
|
-
offsetY: number;
|
|
178
|
-
width: number;
|
|
179
|
-
height: number;
|
|
180
|
-
}[];
|
|
181
|
-
}[];
|
|
173
|
+
searchMatches: Readonly<{
|
|
174
|
+
focusedId: string | null;
|
|
175
|
+
matches: readonly import("../types").SearchMatch[];
|
|
176
|
+
}> | null;
|
|
182
177
|
};
|
|
183
178
|
captureUpdate: "IMMEDIATELY";
|
|
184
179
|
} | {
|
|
185
|
-
elements: readonly import("
|
|
180
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
186
181
|
appState: Readonly<AppState>;
|
|
187
182
|
captureUpdate: "EVENTUALLY";
|
|
188
183
|
};
|
|
@@ -196,8 +191,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
196
191
|
trackEvent: {
|
|
197
192
|
category: "history";
|
|
198
193
|
};
|
|
199
|
-
perform: (elements: readonly import("
|
|
200
|
-
elements: readonly import("
|
|
194
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
195
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
201
196
|
appState: {
|
|
202
197
|
selectedElementIds: {
|
|
203
198
|
[x: string]: true;
|
|
@@ -211,17 +206,17 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
211
206
|
isLoading: boolean;
|
|
212
207
|
errorMessage: import("react").ReactNode;
|
|
213
208
|
activeEmbeddable: {
|
|
214
|
-
element: import("
|
|
215
|
-
state: "
|
|
209
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
210
|
+
state: "active" | "hover";
|
|
216
211
|
} | null;
|
|
217
|
-
newElement: import("
|
|
218
|
-
resizingElement: import("
|
|
219
|
-
multiElement: import("
|
|
220
|
-
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;
|
|
221
216
|
isBindingEnabled: boolean;
|
|
222
|
-
startBoundElement: import("
|
|
223
|
-
suggestedBindings: import("
|
|
224
|
-
frameToHighlight: import("
|
|
217
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
218
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
219
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
225
220
|
frameRendering: {
|
|
226
221
|
enabled: boolean;
|
|
227
222
|
name: boolean;
|
|
@@ -229,12 +224,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
229
224
|
clip: boolean;
|
|
230
225
|
};
|
|
231
226
|
editingFrame: string | null;
|
|
232
|
-
elementsToHighlight: import("
|
|
233
|
-
editingTextElement: import("
|
|
234
|
-
editingLinearElement: import("
|
|
227
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
228
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
229
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
235
230
|
activeTool: {
|
|
236
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
237
232
|
locked: boolean;
|
|
233
|
+
fromSelection: boolean;
|
|
238
234
|
} & import("../types").ActiveTool;
|
|
239
235
|
penMode: boolean;
|
|
240
236
|
penDetected: boolean;
|
|
@@ -244,18 +240,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
244
240
|
exportScale: number;
|
|
245
241
|
currentItemStrokeColor: string;
|
|
246
242
|
currentItemBackgroundColor: string;
|
|
247
|
-
currentItemFillStyle: import("
|
|
243
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
248
244
|
currentItemStrokeWidth: number;
|
|
249
|
-
currentItemStrokeStyle: import("
|
|
245
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
250
246
|
currentItemRoughness: number;
|
|
251
247
|
currentItemOpacity: number;
|
|
252
248
|
currentItemFontFamily: number;
|
|
253
249
|
currentItemFontSize: number;
|
|
254
250
|
currentItemTextAlign: string;
|
|
255
|
-
currentItemStartArrowhead: import("
|
|
256
|
-
currentItemEndArrowhead: import("
|
|
251
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
252
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
257
253
|
currentHoveredFontFamily: number | null;
|
|
258
|
-
currentItemRoundness: import("
|
|
254
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
259
255
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
260
256
|
viewBackgroundColor: string;
|
|
261
257
|
scrollX: number;
|
|
@@ -278,7 +274,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
278
274
|
name: "imageExport" | "help" | "jsonExport";
|
|
279
275
|
} | {
|
|
280
276
|
name: "ttd";
|
|
281
|
-
tab: "text-to-diagram"
|
|
277
|
+
tab: "mermaid" | "text-to-diagram";
|
|
282
278
|
} | {
|
|
283
279
|
name: "commandPalette";
|
|
284
280
|
} | {
|
|
@@ -286,7 +282,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
286
282
|
sourceElementId: string;
|
|
287
283
|
} | null;
|
|
288
284
|
defaultSidebarDockedPreference: boolean;
|
|
289
|
-
lastPointerDownWith: import("
|
|
285
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
290
286
|
hoveredElementIds: Readonly<{
|
|
291
287
|
[id: string]: true;
|
|
292
288
|
}>;
|
|
@@ -301,7 +297,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
301
297
|
duration?: number | undefined;
|
|
302
298
|
} | null;
|
|
303
299
|
zenModeEnabled: boolean;
|
|
304
|
-
theme: import("
|
|
300
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
305
301
|
gridSize: number;
|
|
306
302
|
gridStep: number;
|
|
307
303
|
gridModeEnabled: boolean;
|
|
@@ -322,7 +318,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
322
318
|
[id: string]: true;
|
|
323
319
|
}> | undefined;
|
|
324
320
|
username?: string | null | undefined;
|
|
325
|
-
userState?: import("
|
|
321
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
326
322
|
color?: {
|
|
327
323
|
background: string;
|
|
328
324
|
stroke: string;
|
|
@@ -339,7 +335,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
339
335
|
open: boolean;
|
|
340
336
|
panels: number;
|
|
341
337
|
};
|
|
342
|
-
currentChartType: import("
|
|
338
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
343
339
|
pasteDialog: {
|
|
344
340
|
shown: false;
|
|
345
341
|
data: null;
|
|
@@ -348,8 +344,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
348
344
|
data: import("../charts").Spreadsheet;
|
|
349
345
|
};
|
|
350
346
|
pendingImageElementId: string | null;
|
|
351
|
-
showHyperlinkPopup: false | "
|
|
352
|
-
selectedLinearElement: import("
|
|
347
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
348
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
353
349
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
354
350
|
originSnapOffset: {
|
|
355
351
|
x: number;
|
|
@@ -360,20 +356,14 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
360
356
|
followedBy: Set<import("../types").SocketId>;
|
|
361
357
|
isCropping: boolean;
|
|
362
358
|
croppingElementId: string | null;
|
|
363
|
-
searchMatches:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
offsetX: number;
|
|
368
|
-
offsetY: number;
|
|
369
|
-
width: number;
|
|
370
|
-
height: number;
|
|
371
|
-
}[];
|
|
372
|
-
}[];
|
|
359
|
+
searchMatches: Readonly<{
|
|
360
|
+
focusedId: string | null;
|
|
361
|
+
matches: readonly import("../types").SearchMatch[];
|
|
362
|
+
}> | null;
|
|
373
363
|
};
|
|
374
364
|
captureUpdate: "IMMEDIATELY";
|
|
375
365
|
} | {
|
|
376
|
-
elements: readonly import("
|
|
366
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
377
367
|
appState: Readonly<AppState>;
|
|
378
368
|
captureUpdate: "EVENTUALLY";
|
|
379
369
|
};
|
|
@@ -388,8 +378,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
388
378
|
trackEvent: {
|
|
389
379
|
category: "canvas";
|
|
390
380
|
};
|
|
391
|
-
perform: (elements: readonly import("
|
|
392
|
-
elements: readonly import("
|
|
381
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
382
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
393
383
|
appState: {
|
|
394
384
|
frameRendering: {
|
|
395
385
|
enabled: boolean;
|
|
@@ -406,24 +396,25 @@ export declare const actionupdateFrameRendering: {
|
|
|
406
396
|
isLoading: boolean;
|
|
407
397
|
errorMessage: import("react").ReactNode;
|
|
408
398
|
activeEmbeddable: {
|
|
409
|
-
element: import("
|
|
410
|
-
state: "
|
|
399
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
400
|
+
state: "active" | "hover";
|
|
411
401
|
} | null;
|
|
412
|
-
newElement: import("
|
|
413
|
-
resizingElement: import("
|
|
414
|
-
multiElement: import("
|
|
415
|
-
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;
|
|
416
406
|
isBindingEnabled: boolean;
|
|
417
|
-
startBoundElement: import("
|
|
418
|
-
suggestedBindings: import("
|
|
419
|
-
frameToHighlight: import("
|
|
407
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
408
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
409
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
420
410
|
editingFrame: string | null;
|
|
421
|
-
elementsToHighlight: import("
|
|
422
|
-
editingTextElement: import("
|
|
423
|
-
editingLinearElement: import("
|
|
411
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
412
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
413
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
424
414
|
activeTool: {
|
|
425
415
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
426
416
|
locked: boolean;
|
|
417
|
+
fromSelection: boolean;
|
|
427
418
|
} & import("../types").ActiveTool;
|
|
428
419
|
penMode: boolean;
|
|
429
420
|
penDetected: boolean;
|
|
@@ -433,18 +424,18 @@ export declare const actionupdateFrameRendering: {
|
|
|
433
424
|
exportScale: number;
|
|
434
425
|
currentItemStrokeColor: string;
|
|
435
426
|
currentItemBackgroundColor: string;
|
|
436
|
-
currentItemFillStyle: import("
|
|
427
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
437
428
|
currentItemStrokeWidth: number;
|
|
438
|
-
currentItemStrokeStyle: import("
|
|
429
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
439
430
|
currentItemRoughness: number;
|
|
440
431
|
currentItemOpacity: number;
|
|
441
432
|
currentItemFontFamily: number;
|
|
442
433
|
currentItemFontSize: number;
|
|
443
434
|
currentItemTextAlign: string;
|
|
444
|
-
currentItemStartArrowhead: import("
|
|
445
|
-
currentItemEndArrowhead: import("
|
|
435
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
436
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
446
437
|
currentHoveredFontFamily: number | null;
|
|
447
|
-
currentItemRoundness: import("
|
|
438
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
448
439
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
449
440
|
viewBackgroundColor: string;
|
|
450
441
|
scrollX: number;
|
|
@@ -467,7 +458,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
467
458
|
name: "imageExport" | "help" | "jsonExport";
|
|
468
459
|
} | {
|
|
469
460
|
name: "ttd";
|
|
470
|
-
tab: "text-to-diagram"
|
|
461
|
+
tab: "mermaid" | "text-to-diagram";
|
|
471
462
|
} | {
|
|
472
463
|
name: "commandPalette";
|
|
473
464
|
} | {
|
|
@@ -475,7 +466,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
475
466
|
sourceElementId: string;
|
|
476
467
|
} | null;
|
|
477
468
|
defaultSidebarDockedPreference: boolean;
|
|
478
|
-
lastPointerDownWith: import("
|
|
469
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
479
470
|
selectedElementIds: Readonly<{
|
|
480
471
|
[id: string]: true;
|
|
481
472
|
}>;
|
|
@@ -493,7 +484,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
493
484
|
duration?: number | undefined;
|
|
494
485
|
} | null;
|
|
495
486
|
zenModeEnabled: boolean;
|
|
496
|
-
theme: import("
|
|
487
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
497
488
|
gridSize: number;
|
|
498
489
|
gridStep: number;
|
|
499
490
|
gridModeEnabled: boolean;
|
|
@@ -514,7 +505,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
514
505
|
[id: string]: true;
|
|
515
506
|
}> | undefined;
|
|
516
507
|
username?: string | null | undefined;
|
|
517
|
-
userState?: import("
|
|
508
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
518
509
|
color?: {
|
|
519
510
|
background: string;
|
|
520
511
|
stroke: string;
|
|
@@ -531,7 +522,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
531
522
|
open: boolean;
|
|
532
523
|
panels: number;
|
|
533
524
|
};
|
|
534
|
-
currentChartType: import("
|
|
525
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
535
526
|
pasteDialog: {
|
|
536
527
|
shown: false;
|
|
537
528
|
data: null;
|
|
@@ -540,8 +531,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
540
531
|
data: import("../charts").Spreadsheet;
|
|
541
532
|
};
|
|
542
533
|
pendingImageElementId: string | null;
|
|
543
|
-
showHyperlinkPopup: false | "
|
|
544
|
-
selectedLinearElement: import("
|
|
534
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
535
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
545
536
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
546
537
|
originSnapOffset: {
|
|
547
538
|
x: number;
|
|
@@ -552,16 +543,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
552
543
|
followedBy: Set<import("../types").SocketId>;
|
|
553
544
|
isCropping: boolean;
|
|
554
545
|
croppingElementId: string | null;
|
|
555
|
-
searchMatches:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
offsetX: number;
|
|
560
|
-
offsetY: number;
|
|
561
|
-
width: number;
|
|
562
|
-
height: number;
|
|
563
|
-
}[];
|
|
564
|
-
}[];
|
|
546
|
+
searchMatches: Readonly<{
|
|
547
|
+
focusedId: string | null;
|
|
548
|
+
matches: readonly import("../types").SearchMatch[];
|
|
549
|
+
}> | null;
|
|
565
550
|
};
|
|
566
551
|
captureUpdate: "EVENTUALLY";
|
|
567
552
|
};
|
|
@@ -577,12 +562,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
577
562
|
};
|
|
578
563
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
579
564
|
viewMode: false;
|
|
580
|
-
perform: (elements: readonly import("
|
|
581
|
-
elements: readonly import("
|
|
565
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
566
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
582
567
|
appState: {
|
|
583
568
|
activeTool: {
|
|
584
569
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
585
570
|
locked: boolean;
|
|
571
|
+
fromSelection: boolean;
|
|
586
572
|
} & import("../types").ActiveTool;
|
|
587
573
|
contextMenu: {
|
|
588
574
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -593,17 +579,17 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
593
579
|
isLoading: boolean;
|
|
594
580
|
errorMessage: import("react").ReactNode;
|
|
595
581
|
activeEmbeddable: {
|
|
596
|
-
element: import("
|
|
597
|
-
state: "
|
|
582
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
583
|
+
state: "active" | "hover";
|
|
598
584
|
} | null;
|
|
599
|
-
newElement: import("
|
|
600
|
-
resizingElement: import("
|
|
601
|
-
multiElement: import("
|
|
602
|
-
selectionElement: import("
|
|
585
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
586
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
587
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
588
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
603
589
|
isBindingEnabled: boolean;
|
|
604
|
-
startBoundElement: import("
|
|
605
|
-
suggestedBindings: import("
|
|
606
|
-
frameToHighlight: import("
|
|
590
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
591
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
592
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
607
593
|
frameRendering: {
|
|
608
594
|
enabled: boolean;
|
|
609
595
|
name: boolean;
|
|
@@ -611,9 +597,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
611
597
|
clip: boolean;
|
|
612
598
|
};
|
|
613
599
|
editingFrame: string | null;
|
|
614
|
-
elementsToHighlight: import("
|
|
615
|
-
editingTextElement: import("
|
|
616
|
-
editingLinearElement: import("
|
|
600
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
601
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
602
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
617
603
|
penMode: boolean;
|
|
618
604
|
penDetected: boolean;
|
|
619
605
|
exportBackground: boolean;
|
|
@@ -622,18 +608,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
622
608
|
exportScale: number;
|
|
623
609
|
currentItemStrokeColor: string;
|
|
624
610
|
currentItemBackgroundColor: string;
|
|
625
|
-
currentItemFillStyle: import("
|
|
611
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
626
612
|
currentItemStrokeWidth: number;
|
|
627
|
-
currentItemStrokeStyle: import("
|
|
613
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
628
614
|
currentItemRoughness: number;
|
|
629
615
|
currentItemOpacity: number;
|
|
630
616
|
currentItemFontFamily: number;
|
|
631
617
|
currentItemFontSize: number;
|
|
632
618
|
currentItemTextAlign: string;
|
|
633
|
-
currentItemStartArrowhead: import("
|
|
634
|
-
currentItemEndArrowhead: import("
|
|
619
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
620
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
635
621
|
currentHoveredFontFamily: number | null;
|
|
636
|
-
currentItemRoundness: import("
|
|
622
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
637
623
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
638
624
|
viewBackgroundColor: string;
|
|
639
625
|
scrollX: number;
|
|
@@ -656,7 +642,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
656
642
|
name: "imageExport" | "help" | "jsonExport";
|
|
657
643
|
} | {
|
|
658
644
|
name: "ttd";
|
|
659
|
-
tab: "text-to-diagram"
|
|
645
|
+
tab: "mermaid" | "text-to-diagram";
|
|
660
646
|
} | {
|
|
661
647
|
name: "commandPalette";
|
|
662
648
|
} | {
|
|
@@ -664,7 +650,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
664
650
|
sourceElementId: string;
|
|
665
651
|
} | null;
|
|
666
652
|
defaultSidebarDockedPreference: boolean;
|
|
667
|
-
lastPointerDownWith: import("
|
|
653
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
668
654
|
selectedElementIds: Readonly<{
|
|
669
655
|
[id: string]: true;
|
|
670
656
|
}>;
|
|
@@ -682,7 +668,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
682
668
|
duration?: number | undefined;
|
|
683
669
|
} | null;
|
|
684
670
|
zenModeEnabled: boolean;
|
|
685
|
-
theme: import("
|
|
671
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
686
672
|
gridSize: number;
|
|
687
673
|
gridStep: number;
|
|
688
674
|
gridModeEnabled: boolean;
|
|
@@ -703,7 +689,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
703
689
|
[id: string]: true;
|
|
704
690
|
}> | undefined;
|
|
705
691
|
username?: string | null | undefined;
|
|
706
|
-
userState?: import("
|
|
692
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
707
693
|
color?: {
|
|
708
694
|
background: string;
|
|
709
695
|
stroke: string;
|
|
@@ -720,7 +706,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
720
706
|
open: boolean;
|
|
721
707
|
panels: number;
|
|
722
708
|
};
|
|
723
|
-
currentChartType: import("
|
|
709
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
724
710
|
pasteDialog: {
|
|
725
711
|
shown: false;
|
|
726
712
|
data: null;
|
|
@@ -729,8 +715,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
729
715
|
data: import("../charts").Spreadsheet;
|
|
730
716
|
};
|
|
731
717
|
pendingImageElementId: string | null;
|
|
732
|
-
showHyperlinkPopup: false | "
|
|
733
|
-
selectedLinearElement: import("
|
|
718
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
719
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
734
720
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
735
721
|
originSnapOffset: {
|
|
736
722
|
x: number;
|
|
@@ -741,22 +727,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
741
727
|
followedBy: Set<import("../types").SocketId>;
|
|
742
728
|
isCropping: boolean;
|
|
743
729
|
croppingElementId: string | null;
|
|
744
|
-
searchMatches:
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
offsetX: number;
|
|
749
|
-
offsetY: number;
|
|
750
|
-
width: number;
|
|
751
|
-
height: number;
|
|
752
|
-
}[];
|
|
753
|
-
}[];
|
|
730
|
+
searchMatches: Readonly<{
|
|
731
|
+
focusedId: string | null;
|
|
732
|
+
matches: readonly import("../types").SearchMatch[];
|
|
733
|
+
}> | null;
|
|
754
734
|
};
|
|
755
735
|
captureUpdate: "EVENTUALLY";
|
|
756
736
|
};
|
|
757
|
-
keyTest: (event:
|
|
737
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
758
738
|
} & {
|
|
759
|
-
keyTest?: ((event:
|
|
739
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
760
740
|
};
|
|
761
741
|
export declare const actionWrapSelectionInFrame: {
|
|
762
742
|
name: "wrapSelectionInFrame";
|
|
@@ -765,18 +745,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
765
745
|
category: "element";
|
|
766
746
|
};
|
|
767
747
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
768
|
-
perform: (elements: readonly import("
|
|
769
|
-
elements: (
|
|
748
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
749
|
+
elements: ((Readonly<{
|
|
770
750
|
id: string;
|
|
771
751
|
x: number;
|
|
772
752
|
y: number;
|
|
773
753
|
strokeColor: string;
|
|
774
754
|
backgroundColor: string;
|
|
775
|
-
fillStyle: import("
|
|
755
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
776
756
|
strokeWidth: number;
|
|
777
|
-
strokeStyle: import("
|
|
757
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
778
758
|
roundness: {
|
|
779
|
-
type: import("
|
|
759
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
780
760
|
value?: number | undefined;
|
|
781
761
|
} | null;
|
|
782
762
|
roughness: number;
|
|
@@ -787,7 +767,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
787
767
|
seed: number;
|
|
788
768
|
version: number;
|
|
789
769
|
versionNonce: number;
|
|
790
|
-
index: import("
|
|
770
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
791
771
|
isDeleted: boolean;
|
|
792
772
|
groupIds: readonly string[];
|
|
793
773
|
frameId: string | null;
|
|
@@ -800,20 +780,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
800
780
|
locked: boolean;
|
|
801
781
|
customData?: Record<string, any> | undefined;
|
|
802
782
|
}> & {
|
|
803
|
-
type: "
|
|
783
|
+
type: "rectangle";
|
|
804
784
|
} & {
|
|
805
|
-
index: import("
|
|
785
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
806
786
|
}) | (Readonly<{
|
|
807
787
|
id: string;
|
|
808
788
|
x: number;
|
|
809
789
|
y: number;
|
|
810
790
|
strokeColor: string;
|
|
811
791
|
backgroundColor: string;
|
|
812
|
-
fillStyle: import("
|
|
792
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
813
793
|
strokeWidth: number;
|
|
814
|
-
strokeStyle: import("
|
|
794
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
815
795
|
roundness: {
|
|
816
|
-
type: import("
|
|
796
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
817
797
|
value?: number | undefined;
|
|
818
798
|
} | null;
|
|
819
799
|
roughness: number;
|
|
@@ -824,7 +804,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
824
804
|
seed: number;
|
|
825
805
|
version: number;
|
|
826
806
|
versionNonce: number;
|
|
827
|
-
index: import("
|
|
807
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
828
808
|
isDeleted: boolean;
|
|
829
809
|
groupIds: readonly string[];
|
|
830
810
|
frameId: string | null;
|
|
@@ -837,20 +817,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
837
817
|
locked: boolean;
|
|
838
818
|
customData?: Record<string, any> | undefined;
|
|
839
819
|
}> & {
|
|
840
|
-
type: "
|
|
820
|
+
type: "diamond";
|
|
841
821
|
} & {
|
|
842
|
-
index: import("
|
|
822
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
843
823
|
}) | (Readonly<{
|
|
844
824
|
id: string;
|
|
845
825
|
x: number;
|
|
846
826
|
y: number;
|
|
847
827
|
strokeColor: string;
|
|
848
828
|
backgroundColor: string;
|
|
849
|
-
fillStyle: import("
|
|
829
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
850
830
|
strokeWidth: number;
|
|
851
|
-
strokeStyle: import("
|
|
831
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
852
832
|
roundness: {
|
|
853
|
-
type: import("
|
|
833
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
854
834
|
value?: number | undefined;
|
|
855
835
|
} | null;
|
|
856
836
|
roughness: number;
|
|
@@ -861,7 +841,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
861
841
|
seed: number;
|
|
862
842
|
version: number;
|
|
863
843
|
versionNonce: number;
|
|
864
|
-
index: import("
|
|
844
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
865
845
|
isDeleted: boolean;
|
|
866
846
|
groupIds: readonly string[];
|
|
867
847
|
frameId: string | null;
|
|
@@ -874,20 +854,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
874
854
|
locked: boolean;
|
|
875
855
|
customData?: Record<string, any> | undefined;
|
|
876
856
|
}> & {
|
|
877
|
-
type: "
|
|
857
|
+
type: "frame";
|
|
858
|
+
name: string | null;
|
|
878
859
|
} & {
|
|
879
|
-
index: import("
|
|
860
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
880
861
|
}) | (Readonly<{
|
|
881
862
|
id: string;
|
|
882
863
|
x: number;
|
|
883
864
|
y: number;
|
|
884
865
|
strokeColor: string;
|
|
885
866
|
backgroundColor: string;
|
|
886
|
-
fillStyle: import("
|
|
867
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
887
868
|
strokeWidth: number;
|
|
888
|
-
strokeStyle: import("
|
|
869
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
889
870
|
roundness: {
|
|
890
|
-
type: import("
|
|
871
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
891
872
|
value?: number | undefined;
|
|
892
873
|
} | null;
|
|
893
874
|
roughness: number;
|
|
@@ -898,7 +879,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
898
879
|
seed: number;
|
|
899
880
|
version: number;
|
|
900
881
|
versionNonce: number;
|
|
901
|
-
index: import("
|
|
882
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
902
883
|
isDeleted: boolean;
|
|
903
884
|
groupIds: readonly string[];
|
|
904
885
|
frameId: string | null;
|
|
@@ -911,20 +892,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
911
892
|
locked: boolean;
|
|
912
893
|
customData?: Record<string, any> | undefined;
|
|
913
894
|
}> & {
|
|
914
|
-
type: "
|
|
895
|
+
type: "magicframe";
|
|
896
|
+
name: string | null;
|
|
915
897
|
} & {
|
|
916
|
-
index: import("
|
|
898
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
917
899
|
}) | (Readonly<{
|
|
918
900
|
id: string;
|
|
919
901
|
x: number;
|
|
920
902
|
y: number;
|
|
921
903
|
strokeColor: string;
|
|
922
904
|
backgroundColor: string;
|
|
923
|
-
fillStyle: import("
|
|
905
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
924
906
|
strokeWidth: number;
|
|
925
|
-
strokeStyle: import("
|
|
907
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
926
908
|
roundness: {
|
|
927
|
-
type: import("
|
|
909
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
928
910
|
value?: number | undefined;
|
|
929
911
|
} | null;
|
|
930
912
|
roughness: number;
|
|
@@ -935,7 +917,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
935
917
|
seed: number;
|
|
936
918
|
version: number;
|
|
937
919
|
versionNonce: number;
|
|
938
|
-
index: import("
|
|
920
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
939
921
|
isDeleted: boolean;
|
|
940
922
|
groupIds: readonly string[];
|
|
941
923
|
frameId: string | null;
|
|
@@ -948,31 +930,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
948
930
|
locked: boolean;
|
|
949
931
|
customData?: Record<string, any> | undefined;
|
|
950
932
|
}> & Readonly<{
|
|
951
|
-
type: "
|
|
952
|
-
fontSize: number;
|
|
953
|
-
fontFamily: number;
|
|
954
|
-
text: string;
|
|
955
|
-
textAlign: string;
|
|
956
|
-
verticalAlign: string;
|
|
957
|
-
containerId: string | null;
|
|
958
|
-
originalText: string;
|
|
959
|
-
autoResize: boolean;
|
|
960
|
-
lineHeight: number & {
|
|
961
|
-
_brand: "unitlessLineHeight";
|
|
962
|
-
};
|
|
933
|
+
type: "embeddable";
|
|
963
934
|
}> & {
|
|
964
|
-
index: import("
|
|
935
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
965
936
|
}) | (Readonly<{
|
|
966
937
|
id: string;
|
|
967
938
|
x: number;
|
|
968
939
|
y: number;
|
|
969
940
|
strokeColor: string;
|
|
970
941
|
backgroundColor: string;
|
|
971
|
-
fillStyle: import("
|
|
942
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
972
943
|
strokeWidth: number;
|
|
973
|
-
strokeStyle: import("
|
|
944
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
974
945
|
roundness: {
|
|
975
|
-
type: import("
|
|
946
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
976
947
|
value?: number | undefined;
|
|
977
948
|
} | null;
|
|
978
949
|
roughness: number;
|
|
@@ -983,7 +954,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
983
954
|
seed: number;
|
|
984
955
|
version: number;
|
|
985
956
|
versionNonce: number;
|
|
986
|
-
index: import("
|
|
957
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
987
958
|
isDeleted: boolean;
|
|
988
959
|
groupIds: readonly string[];
|
|
989
960
|
frameId: string | null;
|
|
@@ -996,26 +967,24 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
996
967
|
locked: boolean;
|
|
997
968
|
customData?: Record<string, any> | undefined;
|
|
998
969
|
}> & Readonly<{
|
|
999
|
-
type: "
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
startArrowhead: import("../element/types").Arrowhead | null;
|
|
1005
|
-
endArrowhead: import("../element/types").Arrowhead | null;
|
|
970
|
+
type: "image";
|
|
971
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
972
|
+
status: "pending" | "saved" | "error";
|
|
973
|
+
scale: [number, number];
|
|
974
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1006
975
|
}> & {
|
|
1007
|
-
index: import("
|
|
976
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1008
977
|
}) | (Readonly<{
|
|
1009
978
|
id: string;
|
|
1010
979
|
x: number;
|
|
1011
980
|
y: number;
|
|
1012
981
|
strokeColor: string;
|
|
1013
982
|
backgroundColor: string;
|
|
1014
|
-
fillStyle: import("
|
|
983
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1015
984
|
strokeWidth: number;
|
|
1016
|
-
strokeStyle: import("
|
|
985
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1017
986
|
roundness: {
|
|
1018
|
-
type: import("
|
|
987
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1019
988
|
value?: number | undefined;
|
|
1020
989
|
} | null;
|
|
1021
990
|
roughness: number;
|
|
@@ -1026,7 +995,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1026
995
|
seed: number;
|
|
1027
996
|
version: number;
|
|
1028
997
|
versionNonce: number;
|
|
1029
|
-
index: import("
|
|
998
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1030
999
|
isDeleted: boolean;
|
|
1031
1000
|
groupIds: readonly string[];
|
|
1032
1001
|
frameId: string | null;
|
|
@@ -1039,24 +1008,23 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1039
1008
|
locked: boolean;
|
|
1040
1009
|
customData?: Record<string, any> | undefined;
|
|
1041
1010
|
}> & Readonly<{
|
|
1042
|
-
type: "
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1011
|
+
type: "iframe";
|
|
1012
|
+
customData?: {
|
|
1013
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1014
|
+
} | undefined;
|
|
1047
1015
|
}> & {
|
|
1048
|
-
index: import("
|
|
1016
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1049
1017
|
}) | (Readonly<{
|
|
1050
1018
|
id: string;
|
|
1051
1019
|
x: number;
|
|
1052
1020
|
y: number;
|
|
1053
1021
|
strokeColor: string;
|
|
1054
1022
|
backgroundColor: string;
|
|
1055
|
-
fillStyle: import("
|
|
1023
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1056
1024
|
strokeWidth: number;
|
|
1057
|
-
strokeStyle: import("
|
|
1025
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1058
1026
|
roundness: {
|
|
1059
|
-
type: import("
|
|
1027
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1060
1028
|
value?: number | undefined;
|
|
1061
1029
|
} | null;
|
|
1062
1030
|
roughness: number;
|
|
@@ -1067,7 +1035,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1067
1035
|
seed: number;
|
|
1068
1036
|
version: number;
|
|
1069
1037
|
versionNonce: number;
|
|
1070
|
-
index: import("
|
|
1038
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1071
1039
|
isDeleted: boolean;
|
|
1072
1040
|
groupIds: readonly string[];
|
|
1073
1041
|
frameId: string | null;
|
|
@@ -1080,24 +1048,31 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1080
1048
|
locked: boolean;
|
|
1081
1049
|
customData?: Record<string, any> | undefined;
|
|
1082
1050
|
}> & Readonly<{
|
|
1083
|
-
type: "
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1051
|
+
type: "text";
|
|
1052
|
+
fontSize: number;
|
|
1053
|
+
fontFamily: number;
|
|
1054
|
+
text: string;
|
|
1055
|
+
textAlign: string;
|
|
1056
|
+
verticalAlign: string;
|
|
1057
|
+
containerId: string | null;
|
|
1058
|
+
originalText: string;
|
|
1059
|
+
autoResize: boolean;
|
|
1060
|
+
lineHeight: number & {
|
|
1061
|
+
_brand: "unitlessLineHeight";
|
|
1062
|
+
};
|
|
1088
1063
|
}> & {
|
|
1089
|
-
index: import("
|
|
1064
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1090
1065
|
}) | (Readonly<{
|
|
1091
1066
|
id: string;
|
|
1092
1067
|
x: number;
|
|
1093
1068
|
y: number;
|
|
1094
1069
|
strokeColor: string;
|
|
1095
1070
|
backgroundColor: string;
|
|
1096
|
-
fillStyle: import("
|
|
1071
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1097
1072
|
strokeWidth: number;
|
|
1098
|
-
strokeStyle: import("
|
|
1073
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1099
1074
|
roundness: {
|
|
1100
|
-
type: import("
|
|
1075
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1101
1076
|
value?: number | undefined;
|
|
1102
1077
|
} | null;
|
|
1103
1078
|
roughness: number;
|
|
@@ -1108,7 +1083,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1108
1083
|
seed: number;
|
|
1109
1084
|
version: number;
|
|
1110
1085
|
versionNonce: number;
|
|
1111
|
-
index: import("
|
|
1086
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1112
1087
|
isDeleted: boolean;
|
|
1113
1088
|
groupIds: readonly string[];
|
|
1114
1089
|
frameId: string | null;
|
|
@@ -1121,21 +1096,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1121
1096
|
locked: boolean;
|
|
1122
1097
|
customData?: Record<string, any> | undefined;
|
|
1123
1098
|
}> & {
|
|
1124
|
-
type: "
|
|
1125
|
-
name: string | null;
|
|
1099
|
+
type: "selection";
|
|
1126
1100
|
} & {
|
|
1127
|
-
index: import("
|
|
1101
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1128
1102
|
}) | (Readonly<{
|
|
1129
1103
|
id: string;
|
|
1130
1104
|
x: number;
|
|
1131
1105
|
y: number;
|
|
1132
1106
|
strokeColor: string;
|
|
1133
1107
|
backgroundColor: string;
|
|
1134
|
-
fillStyle: import("
|
|
1108
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1135
1109
|
strokeWidth: number;
|
|
1136
|
-
strokeStyle: import("
|
|
1110
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1137
1111
|
roundness: {
|
|
1138
|
-
type: import("
|
|
1112
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1139
1113
|
value?: number | undefined;
|
|
1140
1114
|
} | null;
|
|
1141
1115
|
roughness: number;
|
|
@@ -1146,7 +1120,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1146
1120
|
seed: number;
|
|
1147
1121
|
version: number;
|
|
1148
1122
|
versionNonce: number;
|
|
1149
|
-
index: import("
|
|
1123
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1150
1124
|
isDeleted: boolean;
|
|
1151
1125
|
groupIds: readonly string[];
|
|
1152
1126
|
frameId: string | null;
|
|
@@ -1159,21 +1133,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1159
1133
|
locked: boolean;
|
|
1160
1134
|
customData?: Record<string, any> | undefined;
|
|
1161
1135
|
}> & {
|
|
1162
|
-
type: "
|
|
1163
|
-
name: string | null;
|
|
1136
|
+
type: "ellipse";
|
|
1164
1137
|
} & {
|
|
1165
|
-
index: import("
|
|
1138
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1166
1139
|
}) | (Readonly<{
|
|
1167
1140
|
id: string;
|
|
1168
1141
|
x: number;
|
|
1169
1142
|
y: number;
|
|
1170
1143
|
strokeColor: string;
|
|
1171
1144
|
backgroundColor: string;
|
|
1172
|
-
fillStyle: import("
|
|
1145
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1173
1146
|
strokeWidth: number;
|
|
1174
|
-
strokeStyle: import("
|
|
1147
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1175
1148
|
roundness: {
|
|
1176
|
-
type: import("
|
|
1149
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1177
1150
|
value?: number | undefined;
|
|
1178
1151
|
} | null;
|
|
1179
1152
|
roughness: number;
|
|
@@ -1184,7 +1157,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1184
1157
|
seed: number;
|
|
1185
1158
|
version: number;
|
|
1186
1159
|
versionNonce: number;
|
|
1187
|
-
index: import("
|
|
1160
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1188
1161
|
isDeleted: boolean;
|
|
1189
1162
|
groupIds: readonly string[];
|
|
1190
1163
|
frameId: string | null;
|
|
@@ -1197,23 +1170,26 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1197
1170
|
locked: boolean;
|
|
1198
1171
|
customData?: Record<string, any> | undefined;
|
|
1199
1172
|
}> & Readonly<{
|
|
1200
|
-
type: "
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1173
|
+
type: "line" | "arrow";
|
|
1174
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1175
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1176
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1177
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1178
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1179
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1204
1180
|
}> & {
|
|
1205
|
-
index: import("
|
|
1181
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1206
1182
|
}) | (Readonly<{
|
|
1207
1183
|
id: string;
|
|
1208
1184
|
x: number;
|
|
1209
1185
|
y: number;
|
|
1210
1186
|
strokeColor: string;
|
|
1211
1187
|
backgroundColor: string;
|
|
1212
|
-
fillStyle: import("
|
|
1188
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1213
1189
|
strokeWidth: number;
|
|
1214
|
-
strokeStyle: import("
|
|
1190
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1215
1191
|
roundness: {
|
|
1216
|
-
type: import("
|
|
1192
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1217
1193
|
value?: number | undefined;
|
|
1218
1194
|
} | null;
|
|
1219
1195
|
roughness: number;
|
|
@@ -1224,7 +1200,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1224
1200
|
seed: number;
|
|
1225
1201
|
version: number;
|
|
1226
1202
|
versionNonce: number;
|
|
1227
|
-
index: import("
|
|
1203
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1228
1204
|
isDeleted: boolean;
|
|
1229
1205
|
groupIds: readonly string[];
|
|
1230
1206
|
frameId: string | null;
|
|
@@ -1237,10 +1213,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1237
1213
|
locked: boolean;
|
|
1238
1214
|
customData?: Record<string, any> | undefined;
|
|
1239
1215
|
}> & Readonly<{
|
|
1240
|
-
type: "
|
|
1216
|
+
type: "freedraw";
|
|
1217
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1218
|
+
pressures: readonly number[];
|
|
1219
|
+
simulatePressure: boolean;
|
|
1220
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1241
1221
|
}> & {
|
|
1242
|
-
index: import("
|
|
1243
|
-
}))[];
|
|
1222
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1223
|
+
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
1244
1224
|
appState: {
|
|
1245
1225
|
selectedElementIds: {
|
|
1246
1226
|
[x: string]: true;
|