@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-a18b139
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-FB2NA5UG.js +4132 -0
- package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
- package/dist/dev/{chunk-53KHN5WM.js → chunk-MJMGTOVG.js} +2 -2
- package/dist/dev/{chunk-53KHN5WM.js.map → chunk-MJMGTOVG.js.map} +1 -1
- package/dist/dev/{chunk-3SN6HYVK.js → chunk-U3G3LY5D.js} +14433 -21847
- package/dist/dev/chunk-U3G3LY5D.js.map +7 -0
- package/dist/dev/{chunk-LMHBUWQS.js → chunk-X3RYHLJU.js} +2 -1
- package/dist/dev/chunk-X3RYHLJU.js.map +7 -0
- package/dist/dev/data/{image-V26YBSDB.js → image-Y366K5SN.js} +3 -3
- package/dist/dev/index.css +3031 -3034
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +30824 -23152
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-CKWC2GMK.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-6U3AYISY.js → chunk-IUH5AXLB.js} +1 -1
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/chunk-PUQLEN73.js +33 -0
- package/dist/prod/{chunk-G5N3DNGT.js → chunk-VQA74LVG.js} +1 -1
- package/dist/prod/data/image-WY2VMQLG.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -14
- package/dist/prod/locales/{en-B4ZKOASM.js → en-SBO6ZHT2.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 +9 -6
- package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
- package/dist/types/common/src/index.d.ts +11 -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}/utils.d.ts +13 -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 +15 -15
- 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 → 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 +7 -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/{excalidraw/element → element/src}/index.d.ts +0 -10
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +16 -16
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -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 -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/{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 +2 -2
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
- package/dist/types/element/src/zindex.d.ts +7 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +70 -67
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +52 -50
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +533 -344
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +149 -143
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +25 -24
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +70 -67
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +29 -28
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +51 -50
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +25 -34
- package/dist/types/excalidraw/actions/actionExport.d.ts +288 -279
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +39 -37
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +208 -204
- package/dist/types/excalidraw/actions/actionGroup.d.ts +49 -47
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionMenu.d.ts +72 -69
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +47 -45
- package/dist/types/excalidraw/actions/actionProperties.d.ts +300 -285
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +25 -24
- package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -26
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -24
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -24
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +48 -46
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +24 -24
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -25
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +25 -25
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/manager.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +30 -29
- package/dist/types/excalidraw/change.d.ts +3 -3
- 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 +34 -18
- 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/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/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 -4
- 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/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 +2 -2
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +15 -14
- 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 +2 -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/store.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +20 -15
- package/dist/types/excalidraw/visualdebug.d.ts +2 -2
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
- 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/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 +4 -2
- package/package.json +14 -2
- 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/shapes.d.ts +0 -85
- package/dist/types/excalidraw/zindex.d.ts +0 -6
- package/dist/dev/data/{image-V26YBSDB.js.map → image-Y366K5SN.js.map} +0 -0
- package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-CKWC2GMK.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 → common/src}/utility-types.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/{curve.d.ts → src/curve.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
- /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type
|
|
2
|
+
import { type SceneBounds } from "@excalidraw/element/bounds";
|
|
3
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
4
|
import type { AppState, Offsets } from "../types";
|
|
4
|
-
import type { SceneBounds } from "../element/bounds";
|
|
5
5
|
export declare const actionChangeViewBackgroundColor: {
|
|
6
6
|
name: "changeViewBackgroundColor";
|
|
7
7
|
label: string;
|
|
8
|
-
paletteName: string;
|
|
9
8
|
trackEvent: false;
|
|
10
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform: (_: readonly import("
|
|
10
|
+
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
12
11
|
appState: any;
|
|
13
12
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
14
13
|
};
|
|
@@ -19,17 +18,16 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
19
18
|
export declare const actionClearCanvas: {
|
|
20
19
|
name: "clearCanvas";
|
|
21
20
|
label: string;
|
|
22
|
-
paletteName: string;
|
|
23
21
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
trackEvent: {
|
|
25
23
|
category: "canvas";
|
|
26
24
|
};
|
|
27
25
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
28
|
-
perform: (elements: readonly import("
|
|
29
|
-
elements: import("
|
|
26
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
27
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
30
28
|
appState: {
|
|
31
29
|
files: {};
|
|
32
|
-
theme: import("
|
|
30
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
33
31
|
penMode: boolean;
|
|
34
32
|
penDetected: boolean;
|
|
35
33
|
exportBackground: boolean;
|
|
@@ -51,74 +49,22 @@ export declare const actionClearCanvas: {
|
|
|
51
49
|
activeTool: {
|
|
52
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
51
|
locked: boolean;
|
|
52
|
+
fromSelection: boolean;
|
|
54
53
|
} & import("../types").ActiveTool;
|
|
55
|
-
viewModeEnabled: boolean;
|
|
56
|
-
zenModeEnabled: boolean;
|
|
57
|
-
objectsSnapModeEnabled: boolean;
|
|
58
54
|
name: string | null;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
showWelcomeScreen: boolean;
|
|
66
|
-
isLoading: boolean;
|
|
67
|
-
errorMessage: import("react").ReactNode;
|
|
68
|
-
activeEmbeddable: {
|
|
69
|
-
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
70
|
-
state: "hover" | "active";
|
|
71
|
-
} | null;
|
|
72
|
-
newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
|
|
73
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
74
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
75
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
76
|
-
isBindingEnabled: boolean;
|
|
77
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
78
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
79
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
55
|
+
zoom: Readonly<{
|
|
56
|
+
value: import("../types").NormalizedZoomValue;
|
|
57
|
+
}>;
|
|
58
|
+
scrollX: number;
|
|
59
|
+
scrollY: number;
|
|
60
|
+
viewBackgroundColor: string;
|
|
80
61
|
frameRendering: {
|
|
81
62
|
enabled: boolean;
|
|
82
63
|
name: boolean;
|
|
83
64
|
outline: boolean;
|
|
84
65
|
clip: boolean;
|
|
85
66
|
};
|
|
86
|
-
|
|
87
|
-
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
88
|
-
editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
89
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
90
|
-
exportWithDarkMode: boolean;
|
|
91
|
-
exportScale: number;
|
|
92
|
-
currentItemStrokeColor: string;
|
|
93
|
-
currentItemBackgroundColor: string;
|
|
94
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
95
|
-
currentItemStrokeWidth: number;
|
|
96
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
97
|
-
currentItemRoughness: number;
|
|
98
|
-
currentItemOpacity: number;
|
|
99
|
-
currentItemFontFamily: number;
|
|
100
|
-
currentItemFontSize: number;
|
|
101
|
-
currentItemTextAlign: string;
|
|
102
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
103
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
104
|
-
currentHoveredFontFamily: number | null;
|
|
105
|
-
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
106
|
-
viewBackgroundColor: string;
|
|
107
|
-
scrollX: number;
|
|
108
|
-
scrollY: number;
|
|
109
|
-
cursorButton: "up" | "down";
|
|
110
|
-
scrolledOutside: boolean;
|
|
111
|
-
isResizing: boolean;
|
|
112
|
-
isRotating: boolean;
|
|
113
|
-
zoom: Readonly<{
|
|
114
|
-
value: import("../types").NormalizedZoomValue;
|
|
115
|
-
}>;
|
|
116
|
-
openMenu: "canvas" | "shape" | null;
|
|
117
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
118
|
-
openSidebar: {
|
|
119
|
-
name: string;
|
|
120
|
-
tab?: string | undefined;
|
|
121
|
-
} | null;
|
|
67
|
+
viewModeEnabled: boolean;
|
|
122
68
|
openDialog: {
|
|
123
69
|
name: "imageExport" | "help" | "jsonExport";
|
|
124
70
|
} | {
|
|
@@ -130,29 +76,27 @@ export declare const actionClearCanvas: {
|
|
|
130
76
|
name: "elementLinkSelector";
|
|
131
77
|
sourceElementId: string;
|
|
132
78
|
} | null;
|
|
133
|
-
|
|
134
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
79
|
+
editingGroupId: string | null;
|
|
135
80
|
selectedElementIds: Readonly<{
|
|
136
81
|
[id: string]: true;
|
|
137
82
|
}>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
selectedElementsAreBeingDragged: boolean;
|
|
145
|
-
shouldCacheIgnoreZoom: boolean;
|
|
146
|
-
toast: {
|
|
147
|
-
message: string;
|
|
148
|
-
closable?: boolean | undefined;
|
|
149
|
-
duration?: number | undefined;
|
|
83
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
84
|
+
pendingImageElementId: string | null;
|
|
85
|
+
activeEmbeddable: {
|
|
86
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
87
|
+
state: "hover" | "active";
|
|
150
88
|
} | null;
|
|
89
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
90
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
151
91
|
selectedGroupIds: {
|
|
152
92
|
[groupId: string]: boolean;
|
|
153
93
|
};
|
|
154
|
-
|
|
155
|
-
|
|
94
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
95
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
96
|
+
isBindingEnabled: boolean;
|
|
97
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
98
|
+
isRotating: boolean;
|
|
99
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
156
100
|
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
157
101
|
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
158
102
|
button?: "up" | "down" | undefined;
|
|
@@ -160,7 +104,7 @@ export declare const actionClearCanvas: {
|
|
|
160
104
|
[id: string]: true;
|
|
161
105
|
}> | undefined;
|
|
162
106
|
username?: string | null | undefined;
|
|
163
|
-
userState?: import("
|
|
107
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
164
108
|
color?: {
|
|
165
109
|
background: string;
|
|
166
110
|
stroke: string;
|
|
@@ -173,17 +117,9 @@ export declare const actionClearCanvas: {
|
|
|
173
117
|
isSpeaking?: boolean | undefined;
|
|
174
118
|
isMuted?: boolean | undefined;
|
|
175
119
|
}>>;
|
|
176
|
-
currentChartType: import("../element/types").ChartType;
|
|
177
|
-
pendingImageElementId: string | null;
|
|
178
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
179
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
180
120
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
y: number;
|
|
184
|
-
} | null;
|
|
185
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
186
|
-
followedBy: Set<import("../types").SocketId>;
|
|
121
|
+
zenModeEnabled: boolean;
|
|
122
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
187
123
|
isCropping: boolean;
|
|
188
124
|
croppingElementId: string | null;
|
|
189
125
|
searchMatches: readonly {
|
|
@@ -196,6 +132,69 @@ export declare const actionClearCanvas: {
|
|
|
196
132
|
height: number;
|
|
197
133
|
}[];
|
|
198
134
|
}[];
|
|
135
|
+
contextMenu: {
|
|
136
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
137
|
+
top: number;
|
|
138
|
+
left: number;
|
|
139
|
+
} | null;
|
|
140
|
+
showWelcomeScreen: boolean;
|
|
141
|
+
isLoading: boolean;
|
|
142
|
+
errorMessage: import("react").ReactNode;
|
|
143
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
144
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
145
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
146
|
+
editingFrame: string | null;
|
|
147
|
+
exportWithDarkMode: boolean;
|
|
148
|
+
exportScale: number;
|
|
149
|
+
currentItemStrokeColor: string;
|
|
150
|
+
currentItemBackgroundColor: string;
|
|
151
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
152
|
+
currentItemStrokeWidth: number;
|
|
153
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
154
|
+
currentItemRoughness: number;
|
|
155
|
+
currentItemOpacity: number;
|
|
156
|
+
currentItemFontFamily: number;
|
|
157
|
+
currentItemFontSize: number;
|
|
158
|
+
currentItemTextAlign: string;
|
|
159
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
160
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
161
|
+
currentHoveredFontFamily: number | null;
|
|
162
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
163
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
164
|
+
cursorButton: "up" | "down";
|
|
165
|
+
scrolledOutside: boolean;
|
|
166
|
+
isResizing: boolean;
|
|
167
|
+
openMenu: "canvas" | "shape" | null;
|
|
168
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
169
|
+
openSidebar: {
|
|
170
|
+
name: string;
|
|
171
|
+
tab?: string | undefined;
|
|
172
|
+
} | null;
|
|
173
|
+
defaultSidebarDockedPreference: boolean;
|
|
174
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
175
|
+
hoveredElementIds: Readonly<{
|
|
176
|
+
[id: string]: true;
|
|
177
|
+
}>;
|
|
178
|
+
previousSelectedElementIds: {
|
|
179
|
+
[id: string]: true;
|
|
180
|
+
};
|
|
181
|
+
selectedElementsAreBeingDragged: boolean;
|
|
182
|
+
shouldCacheIgnoreZoom: boolean;
|
|
183
|
+
toast: {
|
|
184
|
+
message: string;
|
|
185
|
+
closable?: boolean | undefined;
|
|
186
|
+
duration?: number | undefined;
|
|
187
|
+
} | null;
|
|
188
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
189
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
190
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
191
|
+
originSnapOffset: {
|
|
192
|
+
x: number;
|
|
193
|
+
y: number;
|
|
194
|
+
} | null;
|
|
195
|
+
objectsSnapModeEnabled: boolean;
|
|
196
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
197
|
+
followedBy: Set<import("../types").SocketId>;
|
|
199
198
|
};
|
|
200
199
|
captureUpdate: "IMMEDIATELY";
|
|
201
200
|
};
|
|
@@ -210,7 +209,7 @@ export declare const actionZoomIn: {
|
|
|
210
209
|
trackEvent: {
|
|
211
210
|
category: "canvas";
|
|
212
211
|
};
|
|
213
|
-
perform: (_elements: readonly import("
|
|
212
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
214
213
|
appState: {
|
|
215
214
|
userToFollow: null;
|
|
216
215
|
scrollX: number;
|
|
@@ -227,17 +226,17 @@ export declare const actionZoomIn: {
|
|
|
227
226
|
isLoading: boolean;
|
|
228
227
|
errorMessage: import("react").ReactNode;
|
|
229
228
|
activeEmbeddable: {
|
|
230
|
-
element: import("
|
|
229
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
231
230
|
state: "hover" | "active";
|
|
232
231
|
} | null;
|
|
233
|
-
newElement: import("
|
|
234
|
-
resizingElement: import("
|
|
235
|
-
multiElement: import("
|
|
236
|
-
selectionElement: import("
|
|
232
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
233
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
235
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
236
|
isBindingEnabled: boolean;
|
|
238
|
-
startBoundElement: import("
|
|
239
|
-
suggestedBindings: import("
|
|
240
|
-
frameToHighlight: import("
|
|
237
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
238
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
239
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
241
240
|
frameRendering: {
|
|
242
241
|
enabled: boolean;
|
|
243
242
|
name: boolean;
|
|
@@ -245,12 +244,13 @@ export declare const actionZoomIn: {
|
|
|
245
244
|
clip: boolean;
|
|
246
245
|
};
|
|
247
246
|
editingFrame: string | null;
|
|
248
|
-
elementsToHighlight: import("
|
|
249
|
-
editingTextElement: import("
|
|
250
|
-
editingLinearElement: import("
|
|
247
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
248
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
249
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
251
250
|
activeTool: {
|
|
252
251
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
253
252
|
locked: boolean;
|
|
253
|
+
fromSelection: boolean;
|
|
254
254
|
} & import("../types").ActiveTool;
|
|
255
255
|
penMode: boolean;
|
|
256
256
|
penDetected: boolean;
|
|
@@ -260,18 +260,18 @@ export declare const actionZoomIn: {
|
|
|
260
260
|
exportScale: number;
|
|
261
261
|
currentItemStrokeColor: string;
|
|
262
262
|
currentItemBackgroundColor: string;
|
|
263
|
-
currentItemFillStyle: import("
|
|
263
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
264
264
|
currentItemStrokeWidth: number;
|
|
265
|
-
currentItemStrokeStyle: import("
|
|
265
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
266
266
|
currentItemRoughness: number;
|
|
267
267
|
currentItemOpacity: number;
|
|
268
268
|
currentItemFontFamily: number;
|
|
269
269
|
currentItemFontSize: number;
|
|
270
270
|
currentItemTextAlign: string;
|
|
271
|
-
currentItemStartArrowhead: import("
|
|
272
|
-
currentItemEndArrowhead: import("
|
|
271
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
272
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
273
273
|
currentHoveredFontFamily: number | null;
|
|
274
|
-
currentItemRoundness: import("
|
|
274
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
275
275
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
276
276
|
viewBackgroundColor: string;
|
|
277
277
|
cursorButton: "up" | "down";
|
|
@@ -297,7 +297,7 @@ export declare const actionZoomIn: {
|
|
|
297
297
|
sourceElementId: string;
|
|
298
298
|
} | null;
|
|
299
299
|
defaultSidebarDockedPreference: boolean;
|
|
300
|
-
lastPointerDownWith: import("
|
|
300
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
301
301
|
selectedElementIds: Readonly<{
|
|
302
302
|
[id: string]: true;
|
|
303
303
|
}>;
|
|
@@ -315,7 +315,7 @@ export declare const actionZoomIn: {
|
|
|
315
315
|
duration?: number | undefined;
|
|
316
316
|
} | null;
|
|
317
317
|
zenModeEnabled: boolean;
|
|
318
|
-
theme: import("
|
|
318
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
319
319
|
gridSize: number;
|
|
320
320
|
gridStep: number;
|
|
321
321
|
gridModeEnabled: boolean;
|
|
@@ -336,7 +336,7 @@ export declare const actionZoomIn: {
|
|
|
336
336
|
[id: string]: true;
|
|
337
337
|
}> | undefined;
|
|
338
338
|
username?: string | null | undefined;
|
|
339
|
-
userState?: import("
|
|
339
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
340
340
|
color?: {
|
|
341
341
|
background: string;
|
|
342
342
|
stroke: string;
|
|
@@ -353,7 +353,7 @@ export declare const actionZoomIn: {
|
|
|
353
353
|
open: boolean;
|
|
354
354
|
panels: number;
|
|
355
355
|
};
|
|
356
|
-
currentChartType: import("
|
|
356
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
357
357
|
pasteDialog: {
|
|
358
358
|
shown: false;
|
|
359
359
|
data: null;
|
|
@@ -362,8 +362,8 @@ export declare const actionZoomIn: {
|
|
|
362
362
|
data: import("../charts").Spreadsheet;
|
|
363
363
|
};
|
|
364
364
|
pendingImageElementId: string | null;
|
|
365
|
-
showHyperlinkPopup: false | "
|
|
366
|
-
selectedLinearElement: import("
|
|
365
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
366
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
367
367
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
368
368
|
originSnapOffset: {
|
|
369
369
|
x: number;
|
|
@@ -399,7 +399,7 @@ export declare const actionZoomOut: {
|
|
|
399
399
|
trackEvent: {
|
|
400
400
|
category: "canvas";
|
|
401
401
|
};
|
|
402
|
-
perform: (_elements: readonly import("
|
|
402
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
403
403
|
appState: {
|
|
404
404
|
userToFollow: null;
|
|
405
405
|
scrollX: number;
|
|
@@ -416,17 +416,17 @@ export declare const actionZoomOut: {
|
|
|
416
416
|
isLoading: boolean;
|
|
417
417
|
errorMessage: import("react").ReactNode;
|
|
418
418
|
activeEmbeddable: {
|
|
419
|
-
element: import("
|
|
419
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
420
420
|
state: "hover" | "active";
|
|
421
421
|
} | null;
|
|
422
|
-
newElement: import("
|
|
423
|
-
resizingElement: import("
|
|
424
|
-
multiElement: import("
|
|
425
|
-
selectionElement: import("
|
|
422
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
423
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
424
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
425
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
426
426
|
isBindingEnabled: boolean;
|
|
427
|
-
startBoundElement: import("
|
|
428
|
-
suggestedBindings: import("
|
|
429
|
-
frameToHighlight: import("
|
|
427
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
428
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
429
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
430
430
|
frameRendering: {
|
|
431
431
|
enabled: boolean;
|
|
432
432
|
name: boolean;
|
|
@@ -434,12 +434,13 @@ export declare const actionZoomOut: {
|
|
|
434
434
|
clip: boolean;
|
|
435
435
|
};
|
|
436
436
|
editingFrame: string | null;
|
|
437
|
-
elementsToHighlight: import("
|
|
438
|
-
editingTextElement: import("
|
|
439
|
-
editingLinearElement: import("
|
|
437
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
438
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
439
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
440
440
|
activeTool: {
|
|
441
441
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
442
442
|
locked: boolean;
|
|
443
|
+
fromSelection: boolean;
|
|
443
444
|
} & import("../types").ActiveTool;
|
|
444
445
|
penMode: boolean;
|
|
445
446
|
penDetected: boolean;
|
|
@@ -449,18 +450,18 @@ export declare const actionZoomOut: {
|
|
|
449
450
|
exportScale: number;
|
|
450
451
|
currentItemStrokeColor: string;
|
|
451
452
|
currentItemBackgroundColor: string;
|
|
452
|
-
currentItemFillStyle: import("
|
|
453
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
453
454
|
currentItemStrokeWidth: number;
|
|
454
|
-
currentItemStrokeStyle: import("
|
|
455
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
455
456
|
currentItemRoughness: number;
|
|
456
457
|
currentItemOpacity: number;
|
|
457
458
|
currentItemFontFamily: number;
|
|
458
459
|
currentItemFontSize: number;
|
|
459
460
|
currentItemTextAlign: string;
|
|
460
|
-
currentItemStartArrowhead: import("
|
|
461
|
-
currentItemEndArrowhead: import("
|
|
461
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
462
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
462
463
|
currentHoveredFontFamily: number | null;
|
|
463
|
-
currentItemRoundness: import("
|
|
464
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
464
465
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
465
466
|
viewBackgroundColor: string;
|
|
466
467
|
cursorButton: "up" | "down";
|
|
@@ -486,7 +487,7 @@ export declare const actionZoomOut: {
|
|
|
486
487
|
sourceElementId: string;
|
|
487
488
|
} | null;
|
|
488
489
|
defaultSidebarDockedPreference: boolean;
|
|
489
|
-
lastPointerDownWith: import("
|
|
490
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
490
491
|
selectedElementIds: Readonly<{
|
|
491
492
|
[id: string]: true;
|
|
492
493
|
}>;
|
|
@@ -504,7 +505,7 @@ export declare const actionZoomOut: {
|
|
|
504
505
|
duration?: number | undefined;
|
|
505
506
|
} | null;
|
|
506
507
|
zenModeEnabled: boolean;
|
|
507
|
-
theme: import("
|
|
508
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
508
509
|
gridSize: number;
|
|
509
510
|
gridStep: number;
|
|
510
511
|
gridModeEnabled: boolean;
|
|
@@ -525,7 +526,7 @@ export declare const actionZoomOut: {
|
|
|
525
526
|
[id: string]: true;
|
|
526
527
|
}> | undefined;
|
|
527
528
|
username?: string | null | undefined;
|
|
528
|
-
userState?: import("
|
|
529
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
529
530
|
color?: {
|
|
530
531
|
background: string;
|
|
531
532
|
stroke: string;
|
|
@@ -542,7 +543,7 @@ export declare const actionZoomOut: {
|
|
|
542
543
|
open: boolean;
|
|
543
544
|
panels: number;
|
|
544
545
|
};
|
|
545
|
-
currentChartType: import("
|
|
546
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
546
547
|
pasteDialog: {
|
|
547
548
|
shown: false;
|
|
548
549
|
data: null;
|
|
@@ -551,8 +552,8 @@ export declare const actionZoomOut: {
|
|
|
551
552
|
data: import("../charts").Spreadsheet;
|
|
552
553
|
};
|
|
553
554
|
pendingImageElementId: string | null;
|
|
554
|
-
showHyperlinkPopup: false | "
|
|
555
|
-
selectedLinearElement: import("
|
|
555
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
556
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
556
557
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
557
558
|
originSnapOffset: {
|
|
558
559
|
x: number;
|
|
@@ -588,7 +589,7 @@ export declare const actionResetZoom: {
|
|
|
588
589
|
trackEvent: {
|
|
589
590
|
category: "canvas";
|
|
590
591
|
};
|
|
591
|
-
perform: (_elements: readonly import("
|
|
592
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
592
593
|
appState: {
|
|
593
594
|
userToFollow: null;
|
|
594
595
|
scrollX: number;
|
|
@@ -605,17 +606,17 @@ export declare const actionResetZoom: {
|
|
|
605
606
|
isLoading: boolean;
|
|
606
607
|
errorMessage: import("react").ReactNode;
|
|
607
608
|
activeEmbeddable: {
|
|
608
|
-
element: import("
|
|
609
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
609
610
|
state: "hover" | "active";
|
|
610
611
|
} | null;
|
|
611
|
-
newElement: import("
|
|
612
|
-
resizingElement: import("
|
|
613
|
-
multiElement: import("
|
|
614
|
-
selectionElement: import("
|
|
612
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
613
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
614
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
615
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
615
616
|
isBindingEnabled: boolean;
|
|
616
|
-
startBoundElement: import("
|
|
617
|
-
suggestedBindings: import("
|
|
618
|
-
frameToHighlight: import("
|
|
617
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
618
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
619
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
619
620
|
frameRendering: {
|
|
620
621
|
enabled: boolean;
|
|
621
622
|
name: boolean;
|
|
@@ -623,12 +624,13 @@ export declare const actionResetZoom: {
|
|
|
623
624
|
clip: boolean;
|
|
624
625
|
};
|
|
625
626
|
editingFrame: string | null;
|
|
626
|
-
elementsToHighlight: import("
|
|
627
|
-
editingTextElement: import("
|
|
628
|
-
editingLinearElement: import("
|
|
627
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
628
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
629
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
629
630
|
activeTool: {
|
|
630
631
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
631
632
|
locked: boolean;
|
|
633
|
+
fromSelection: boolean;
|
|
632
634
|
} & import("../types").ActiveTool;
|
|
633
635
|
penMode: boolean;
|
|
634
636
|
penDetected: boolean;
|
|
@@ -638,18 +640,18 @@ export declare const actionResetZoom: {
|
|
|
638
640
|
exportScale: number;
|
|
639
641
|
currentItemStrokeColor: string;
|
|
640
642
|
currentItemBackgroundColor: string;
|
|
641
|
-
currentItemFillStyle: import("
|
|
643
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
642
644
|
currentItemStrokeWidth: number;
|
|
643
|
-
currentItemStrokeStyle: import("
|
|
645
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
644
646
|
currentItemRoughness: number;
|
|
645
647
|
currentItemOpacity: number;
|
|
646
648
|
currentItemFontFamily: number;
|
|
647
649
|
currentItemFontSize: number;
|
|
648
650
|
currentItemTextAlign: string;
|
|
649
|
-
currentItemStartArrowhead: import("
|
|
650
|
-
currentItemEndArrowhead: import("
|
|
651
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
652
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
651
653
|
currentHoveredFontFamily: number | null;
|
|
652
|
-
currentItemRoundness: import("
|
|
654
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
653
655
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
654
656
|
viewBackgroundColor: string;
|
|
655
657
|
cursorButton: "up" | "down";
|
|
@@ -675,7 +677,7 @@ export declare const actionResetZoom: {
|
|
|
675
677
|
sourceElementId: string;
|
|
676
678
|
} | null;
|
|
677
679
|
defaultSidebarDockedPreference: boolean;
|
|
678
|
-
lastPointerDownWith: import("
|
|
680
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
679
681
|
selectedElementIds: Readonly<{
|
|
680
682
|
[id: string]: true;
|
|
681
683
|
}>;
|
|
@@ -693,7 +695,7 @@ export declare const actionResetZoom: {
|
|
|
693
695
|
duration?: number | undefined;
|
|
694
696
|
} | null;
|
|
695
697
|
zenModeEnabled: boolean;
|
|
696
|
-
theme: import("
|
|
698
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
697
699
|
gridSize: number;
|
|
698
700
|
gridStep: number;
|
|
699
701
|
gridModeEnabled: boolean;
|
|
@@ -714,7 +716,7 @@ export declare const actionResetZoom: {
|
|
|
714
716
|
[id: string]: true;
|
|
715
717
|
}> | undefined;
|
|
716
718
|
username?: string | null | undefined;
|
|
717
|
-
userState?: import("
|
|
719
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
718
720
|
color?: {
|
|
719
721
|
background: string;
|
|
720
722
|
stroke: string;
|
|
@@ -731,7 +733,7 @@ export declare const actionResetZoom: {
|
|
|
731
733
|
open: boolean;
|
|
732
734
|
panels: number;
|
|
733
735
|
};
|
|
734
|
-
currentChartType: import("
|
|
736
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
735
737
|
pasteDialog: {
|
|
736
738
|
shown: false;
|
|
737
739
|
data: null;
|
|
@@ -740,8 +742,8 @@ export declare const actionResetZoom: {
|
|
|
740
742
|
data: import("../charts").Spreadsheet;
|
|
741
743
|
};
|
|
742
744
|
pendingImageElementId: string | null;
|
|
743
|
-
showHyperlinkPopup: false | "
|
|
744
|
-
selectedLinearElement: import("
|
|
745
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
746
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
745
747
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
746
748
|
originSnapOffset: {
|
|
747
749
|
x: number;
|
|
@@ -800,17 +802,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
800
802
|
isLoading: boolean;
|
|
801
803
|
errorMessage: import("react").ReactNode;
|
|
802
804
|
activeEmbeddable: {
|
|
803
|
-
element: import("
|
|
805
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
804
806
|
state: "hover" | "active";
|
|
805
807
|
} | null;
|
|
806
|
-
newElement: import("
|
|
807
|
-
resizingElement: import("
|
|
808
|
-
multiElement: import("
|
|
809
|
-
selectionElement: import("
|
|
808
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
809
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
810
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
811
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
810
812
|
isBindingEnabled: boolean;
|
|
811
|
-
startBoundElement: import("
|
|
812
|
-
suggestedBindings: import("
|
|
813
|
-
frameToHighlight: import("
|
|
813
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
814
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
815
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
814
816
|
frameRendering: {
|
|
815
817
|
enabled: boolean;
|
|
816
818
|
name: boolean;
|
|
@@ -818,12 +820,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
818
820
|
clip: boolean;
|
|
819
821
|
};
|
|
820
822
|
editingFrame: string | null;
|
|
821
|
-
elementsToHighlight: import("
|
|
822
|
-
editingTextElement: import("
|
|
823
|
-
editingLinearElement: import("
|
|
823
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
824
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
825
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
824
826
|
activeTool: {
|
|
825
827
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
826
828
|
locked: boolean;
|
|
829
|
+
fromSelection: boolean;
|
|
827
830
|
} & import("../types").ActiveTool;
|
|
828
831
|
penMode: boolean;
|
|
829
832
|
penDetected: boolean;
|
|
@@ -833,18 +836,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
833
836
|
exportScale: number;
|
|
834
837
|
currentItemStrokeColor: string;
|
|
835
838
|
currentItemBackgroundColor: string;
|
|
836
|
-
currentItemFillStyle: import("
|
|
839
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
837
840
|
currentItemStrokeWidth: number;
|
|
838
|
-
currentItemStrokeStyle: import("
|
|
841
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
839
842
|
currentItemRoughness: number;
|
|
840
843
|
currentItemOpacity: number;
|
|
841
844
|
currentItemFontFamily: number;
|
|
842
845
|
currentItemFontSize: number;
|
|
843
846
|
currentItemTextAlign: string;
|
|
844
|
-
currentItemStartArrowhead: import("
|
|
845
|
-
currentItemEndArrowhead: import("
|
|
847
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
848
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
846
849
|
currentHoveredFontFamily: number | null;
|
|
847
|
-
currentItemRoundness: import("
|
|
850
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
848
851
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
849
852
|
viewBackgroundColor: string;
|
|
850
853
|
cursorButton: "up" | "down";
|
|
@@ -870,7 +873,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
870
873
|
sourceElementId: string;
|
|
871
874
|
} | null;
|
|
872
875
|
defaultSidebarDockedPreference: boolean;
|
|
873
|
-
lastPointerDownWith: import("
|
|
876
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
874
877
|
selectedElementIds: Readonly<{
|
|
875
878
|
[id: string]: true;
|
|
876
879
|
}>;
|
|
@@ -888,7 +891,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
888
891
|
duration?: number | undefined;
|
|
889
892
|
} | null;
|
|
890
893
|
zenModeEnabled: boolean;
|
|
891
|
-
theme: import("
|
|
894
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
892
895
|
gridSize: number;
|
|
893
896
|
gridStep: number;
|
|
894
897
|
gridModeEnabled: boolean;
|
|
@@ -909,7 +912,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
909
912
|
[id: string]: true;
|
|
910
913
|
}> | undefined;
|
|
911
914
|
username?: string | null | undefined;
|
|
912
|
-
userState?: import("
|
|
915
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
913
916
|
color?: {
|
|
914
917
|
background: string;
|
|
915
918
|
stroke: string;
|
|
@@ -926,7 +929,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
926
929
|
open: boolean;
|
|
927
930
|
panels: number;
|
|
928
931
|
};
|
|
929
|
-
currentChartType: import("
|
|
932
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
930
933
|
pasteDialog: {
|
|
931
934
|
shown: false;
|
|
932
935
|
data: null;
|
|
@@ -935,8 +938,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
935
938
|
data: import("../charts").Spreadsheet;
|
|
936
939
|
};
|
|
937
940
|
pendingImageElementId: string | null;
|
|
938
|
-
showHyperlinkPopup: false | "
|
|
939
|
-
selectedLinearElement: import("
|
|
941
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
942
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
940
943
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
941
944
|
originSnapOffset: {
|
|
942
945
|
x: number;
|
|
@@ -991,17 +994,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
991
994
|
isLoading: boolean;
|
|
992
995
|
errorMessage: import("react").ReactNode;
|
|
993
996
|
activeEmbeddable: {
|
|
994
|
-
element: import("
|
|
997
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
995
998
|
state: "hover" | "active";
|
|
996
999
|
} | null;
|
|
997
|
-
newElement: import("
|
|
998
|
-
resizingElement: import("
|
|
999
|
-
multiElement: import("
|
|
1000
|
-
selectionElement: import("
|
|
1000
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1001
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1002
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1003
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1001
1004
|
isBindingEnabled: boolean;
|
|
1002
|
-
startBoundElement: import("
|
|
1003
|
-
suggestedBindings: import("
|
|
1004
|
-
frameToHighlight: import("
|
|
1005
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1006
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1007
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1005
1008
|
frameRendering: {
|
|
1006
1009
|
enabled: boolean;
|
|
1007
1010
|
name: boolean;
|
|
@@ -1009,12 +1012,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1009
1012
|
clip: boolean;
|
|
1010
1013
|
};
|
|
1011
1014
|
editingFrame: string | null;
|
|
1012
|
-
elementsToHighlight: import("
|
|
1013
|
-
editingTextElement: import("
|
|
1014
|
-
editingLinearElement: import("
|
|
1015
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1016
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1017
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1015
1018
|
activeTool: {
|
|
1016
1019
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1017
1020
|
locked: boolean;
|
|
1021
|
+
fromSelection: boolean;
|
|
1018
1022
|
} & import("../types").ActiveTool;
|
|
1019
1023
|
penMode: boolean;
|
|
1020
1024
|
penDetected: boolean;
|
|
@@ -1024,18 +1028,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1024
1028
|
exportScale: number;
|
|
1025
1029
|
currentItemStrokeColor: string;
|
|
1026
1030
|
currentItemBackgroundColor: string;
|
|
1027
|
-
currentItemFillStyle: import("
|
|
1031
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1028
1032
|
currentItemStrokeWidth: number;
|
|
1029
|
-
currentItemStrokeStyle: import("
|
|
1033
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1030
1034
|
currentItemRoughness: number;
|
|
1031
1035
|
currentItemOpacity: number;
|
|
1032
1036
|
currentItemFontFamily: number;
|
|
1033
1037
|
currentItemFontSize: number;
|
|
1034
1038
|
currentItemTextAlign: string;
|
|
1035
|
-
currentItemStartArrowhead: import("
|
|
1036
|
-
currentItemEndArrowhead: import("
|
|
1039
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1040
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1037
1041
|
currentHoveredFontFamily: number | null;
|
|
1038
|
-
currentItemRoundness: import("
|
|
1042
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1039
1043
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1040
1044
|
viewBackgroundColor: string;
|
|
1041
1045
|
cursorButton: "up" | "down";
|
|
@@ -1061,7 +1065,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1061
1065
|
sourceElementId: string;
|
|
1062
1066
|
} | null;
|
|
1063
1067
|
defaultSidebarDockedPreference: boolean;
|
|
1064
|
-
lastPointerDownWith: import("
|
|
1068
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1065
1069
|
selectedElementIds: Readonly<{
|
|
1066
1070
|
[id: string]: true;
|
|
1067
1071
|
}>;
|
|
@@ -1079,7 +1083,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1079
1083
|
duration?: number | undefined;
|
|
1080
1084
|
} | null;
|
|
1081
1085
|
zenModeEnabled: boolean;
|
|
1082
|
-
theme: import("
|
|
1086
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1083
1087
|
gridSize: number;
|
|
1084
1088
|
gridStep: number;
|
|
1085
1089
|
gridModeEnabled: boolean;
|
|
@@ -1100,7 +1104,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1100
1104
|
[id: string]: true;
|
|
1101
1105
|
}> | undefined;
|
|
1102
1106
|
username?: string | null | undefined;
|
|
1103
|
-
userState?: import("
|
|
1107
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1104
1108
|
color?: {
|
|
1105
1109
|
background: string;
|
|
1106
1110
|
stroke: string;
|
|
@@ -1117,7 +1121,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1117
1121
|
open: boolean;
|
|
1118
1122
|
panels: number;
|
|
1119
1123
|
};
|
|
1120
|
-
currentChartType: import("
|
|
1124
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1121
1125
|
pasteDialog: {
|
|
1122
1126
|
shown: false;
|
|
1123
1127
|
data: null;
|
|
@@ -1126,8 +1130,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1126
1130
|
data: import("../charts").Spreadsheet;
|
|
1127
1131
|
};
|
|
1128
1132
|
pendingImageElementId: string | null;
|
|
1129
|
-
showHyperlinkPopup: false | "
|
|
1130
|
-
selectedLinearElement: import("
|
|
1133
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1134
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1131
1135
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1132
1136
|
originSnapOffset: {
|
|
1133
1137
|
x: number;
|
|
@@ -1158,7 +1162,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1158
1162
|
trackEvent: {
|
|
1159
1163
|
category: "canvas";
|
|
1160
1164
|
};
|
|
1161
|
-
perform: (elements: readonly import("
|
|
1165
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1162
1166
|
appState: {
|
|
1163
1167
|
scrollX: number;
|
|
1164
1168
|
scrollY: number;
|
|
@@ -1174,17 +1178,17 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1174
1178
|
isLoading: boolean;
|
|
1175
1179
|
errorMessage: import("react").ReactNode;
|
|
1176
1180
|
activeEmbeddable: {
|
|
1177
|
-
element: import("
|
|
1181
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1178
1182
|
state: "hover" | "active";
|
|
1179
1183
|
} | null;
|
|
1180
|
-
newElement: import("
|
|
1181
|
-
resizingElement: import("
|
|
1182
|
-
multiElement: import("
|
|
1183
|
-
selectionElement: import("
|
|
1184
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1185
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1186
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1187
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1184
1188
|
isBindingEnabled: boolean;
|
|
1185
|
-
startBoundElement: import("
|
|
1186
|
-
suggestedBindings: import("
|
|
1187
|
-
frameToHighlight: import("
|
|
1189
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1190
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1191
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1188
1192
|
frameRendering: {
|
|
1189
1193
|
enabled: boolean;
|
|
1190
1194
|
name: boolean;
|
|
@@ -1192,12 +1196,13 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1192
1196
|
clip: boolean;
|
|
1193
1197
|
};
|
|
1194
1198
|
editingFrame: string | null;
|
|
1195
|
-
elementsToHighlight: import("
|
|
1196
|
-
editingTextElement: import("
|
|
1197
|
-
editingLinearElement: import("
|
|
1199
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1200
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1201
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1198
1202
|
activeTool: {
|
|
1199
1203
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1200
1204
|
locked: boolean;
|
|
1205
|
+
fromSelection: boolean;
|
|
1201
1206
|
} & import("../types").ActiveTool;
|
|
1202
1207
|
penMode: boolean;
|
|
1203
1208
|
penDetected: boolean;
|
|
@@ -1207,18 +1212,18 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1207
1212
|
exportScale: number;
|
|
1208
1213
|
currentItemStrokeColor: string;
|
|
1209
1214
|
currentItemBackgroundColor: string;
|
|
1210
|
-
currentItemFillStyle: import("
|
|
1215
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1211
1216
|
currentItemStrokeWidth: number;
|
|
1212
|
-
currentItemStrokeStyle: import("
|
|
1217
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1213
1218
|
currentItemRoughness: number;
|
|
1214
1219
|
currentItemOpacity: number;
|
|
1215
1220
|
currentItemFontFamily: number;
|
|
1216
1221
|
currentItemFontSize: number;
|
|
1217
1222
|
currentItemTextAlign: string;
|
|
1218
|
-
currentItemStartArrowhead: import("
|
|
1219
|
-
currentItemEndArrowhead: import("
|
|
1223
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1224
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1220
1225
|
currentHoveredFontFamily: number | null;
|
|
1221
|
-
currentItemRoundness: import("
|
|
1226
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1222
1227
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1223
1228
|
viewBackgroundColor: string;
|
|
1224
1229
|
cursorButton: "up" | "down";
|
|
@@ -1244,7 +1249,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1244
1249
|
sourceElementId: string;
|
|
1245
1250
|
} | null;
|
|
1246
1251
|
defaultSidebarDockedPreference: boolean;
|
|
1247
|
-
lastPointerDownWith: import("
|
|
1252
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1248
1253
|
selectedElementIds: Readonly<{
|
|
1249
1254
|
[id: string]: true;
|
|
1250
1255
|
}>;
|
|
@@ -1262,7 +1267,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1262
1267
|
duration?: number | undefined;
|
|
1263
1268
|
} | null;
|
|
1264
1269
|
zenModeEnabled: boolean;
|
|
1265
|
-
theme: import("
|
|
1270
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1266
1271
|
gridSize: number;
|
|
1267
1272
|
gridStep: number;
|
|
1268
1273
|
gridModeEnabled: boolean;
|
|
@@ -1283,7 +1288,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1283
1288
|
[id: string]: true;
|
|
1284
1289
|
}> | undefined;
|
|
1285
1290
|
username?: string | null | undefined;
|
|
1286
|
-
userState?: import("
|
|
1291
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1287
1292
|
color?: {
|
|
1288
1293
|
background: string;
|
|
1289
1294
|
stroke: string;
|
|
@@ -1300,7 +1305,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1300
1305
|
open: boolean;
|
|
1301
1306
|
panels: number;
|
|
1302
1307
|
};
|
|
1303
|
-
currentChartType: import("
|
|
1308
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1304
1309
|
pasteDialog: {
|
|
1305
1310
|
shown: false;
|
|
1306
1311
|
data: null;
|
|
@@ -1309,8 +1314,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1309
1314
|
data: import("../charts").Spreadsheet;
|
|
1310
1315
|
};
|
|
1311
1316
|
pendingImageElementId: string | null;
|
|
1312
|
-
showHyperlinkPopup: false | "
|
|
1313
|
-
selectedLinearElement: import("
|
|
1317
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1318
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1314
1319
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1315
1320
|
originSnapOffset: {
|
|
1316
1321
|
x: number;
|
|
@@ -1345,7 +1350,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1345
1350
|
trackEvent: {
|
|
1346
1351
|
category: "canvas";
|
|
1347
1352
|
};
|
|
1348
|
-
perform: (elements: readonly import("
|
|
1353
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1349
1354
|
appState: {
|
|
1350
1355
|
scrollX: number;
|
|
1351
1356
|
scrollY: number;
|
|
@@ -1361,17 +1366,17 @@ export declare const actionZoomToFitSelection: {
|
|
|
1361
1366
|
isLoading: boolean;
|
|
1362
1367
|
errorMessage: import("react").ReactNode;
|
|
1363
1368
|
activeEmbeddable: {
|
|
1364
|
-
element: import("
|
|
1369
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1365
1370
|
state: "hover" | "active";
|
|
1366
1371
|
} | null;
|
|
1367
|
-
newElement: import("
|
|
1368
|
-
resizingElement: import("
|
|
1369
|
-
multiElement: import("
|
|
1370
|
-
selectionElement: import("
|
|
1372
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1373
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1374
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1375
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1371
1376
|
isBindingEnabled: boolean;
|
|
1372
|
-
startBoundElement: import("
|
|
1373
|
-
suggestedBindings: import("
|
|
1374
|
-
frameToHighlight: import("
|
|
1377
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1378
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1379
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1375
1380
|
frameRendering: {
|
|
1376
1381
|
enabled: boolean;
|
|
1377
1382
|
name: boolean;
|
|
@@ -1379,12 +1384,13 @@ export declare const actionZoomToFitSelection: {
|
|
|
1379
1384
|
clip: boolean;
|
|
1380
1385
|
};
|
|
1381
1386
|
editingFrame: string | null;
|
|
1382
|
-
elementsToHighlight: import("
|
|
1383
|
-
editingTextElement: import("
|
|
1384
|
-
editingLinearElement: import("
|
|
1387
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1388
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1389
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1385
1390
|
activeTool: {
|
|
1386
1391
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1387
1392
|
locked: boolean;
|
|
1393
|
+
fromSelection: boolean;
|
|
1388
1394
|
} & import("../types").ActiveTool;
|
|
1389
1395
|
penMode: boolean;
|
|
1390
1396
|
penDetected: boolean;
|
|
@@ -1394,18 +1400,18 @@ export declare const actionZoomToFitSelection: {
|
|
|
1394
1400
|
exportScale: number;
|
|
1395
1401
|
currentItemStrokeColor: string;
|
|
1396
1402
|
currentItemBackgroundColor: string;
|
|
1397
|
-
currentItemFillStyle: import("
|
|
1403
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1398
1404
|
currentItemStrokeWidth: number;
|
|
1399
|
-
currentItemStrokeStyle: import("
|
|
1405
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1400
1406
|
currentItemRoughness: number;
|
|
1401
1407
|
currentItemOpacity: number;
|
|
1402
1408
|
currentItemFontFamily: number;
|
|
1403
1409
|
currentItemFontSize: number;
|
|
1404
1410
|
currentItemTextAlign: string;
|
|
1405
|
-
currentItemStartArrowhead: import("
|
|
1406
|
-
currentItemEndArrowhead: import("
|
|
1411
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1412
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1407
1413
|
currentHoveredFontFamily: number | null;
|
|
1408
|
-
currentItemRoundness: import("
|
|
1414
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1409
1415
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1410
1416
|
viewBackgroundColor: string;
|
|
1411
1417
|
cursorButton: "up" | "down";
|
|
@@ -1431,7 +1437,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1431
1437
|
sourceElementId: string;
|
|
1432
1438
|
} | null;
|
|
1433
1439
|
defaultSidebarDockedPreference: boolean;
|
|
1434
|
-
lastPointerDownWith: import("
|
|
1440
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1435
1441
|
selectedElementIds: Readonly<{
|
|
1436
1442
|
[id: string]: true;
|
|
1437
1443
|
}>;
|
|
@@ -1449,7 +1455,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1449
1455
|
duration?: number | undefined;
|
|
1450
1456
|
} | null;
|
|
1451
1457
|
zenModeEnabled: boolean;
|
|
1452
|
-
theme: import("
|
|
1458
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1453
1459
|
gridSize: number;
|
|
1454
1460
|
gridStep: number;
|
|
1455
1461
|
gridModeEnabled: boolean;
|
|
@@ -1470,7 +1476,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1470
1476
|
[id: string]: true;
|
|
1471
1477
|
}> | undefined;
|
|
1472
1478
|
username?: string | null | undefined;
|
|
1473
|
-
userState?: import("
|
|
1479
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1474
1480
|
color?: {
|
|
1475
1481
|
background: string;
|
|
1476
1482
|
stroke: string;
|
|
@@ -1487,7 +1493,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1487
1493
|
open: boolean;
|
|
1488
1494
|
panels: number;
|
|
1489
1495
|
};
|
|
1490
|
-
currentChartType: import("
|
|
1496
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1491
1497
|
pasteDialog: {
|
|
1492
1498
|
shown: false;
|
|
1493
1499
|
data: null;
|
|
@@ -1496,8 +1502,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1496
1502
|
data: import("../charts").Spreadsheet;
|
|
1497
1503
|
};
|
|
1498
1504
|
pendingImageElementId: string | null;
|
|
1499
|
-
showHyperlinkPopup: false | "
|
|
1500
|
-
selectedLinearElement: import("
|
|
1505
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1506
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1501
1507
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1502
1508
|
originSnapOffset: {
|
|
1503
1509
|
x: number;
|
|
@@ -1533,7 +1539,7 @@ export declare const actionZoomToFit: {
|
|
|
1533
1539
|
trackEvent: {
|
|
1534
1540
|
category: "canvas";
|
|
1535
1541
|
};
|
|
1536
|
-
perform: (elements: readonly import("
|
|
1542
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1537
1543
|
appState: {
|
|
1538
1544
|
scrollX: number;
|
|
1539
1545
|
scrollY: number;
|
|
@@ -1549,17 +1555,17 @@ export declare const actionZoomToFit: {
|
|
|
1549
1555
|
isLoading: boolean;
|
|
1550
1556
|
errorMessage: import("react").ReactNode;
|
|
1551
1557
|
activeEmbeddable: {
|
|
1552
|
-
element: import("
|
|
1558
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1553
1559
|
state: "hover" | "active";
|
|
1554
1560
|
} | null;
|
|
1555
|
-
newElement: import("
|
|
1556
|
-
resizingElement: import("
|
|
1557
|
-
multiElement: import("
|
|
1558
|
-
selectionElement: import("
|
|
1561
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1562
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1563
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1564
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1559
1565
|
isBindingEnabled: boolean;
|
|
1560
|
-
startBoundElement: import("
|
|
1561
|
-
suggestedBindings: import("
|
|
1562
|
-
frameToHighlight: import("
|
|
1566
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1567
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1568
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1563
1569
|
frameRendering: {
|
|
1564
1570
|
enabled: boolean;
|
|
1565
1571
|
name: boolean;
|
|
@@ -1567,12 +1573,13 @@ export declare const actionZoomToFit: {
|
|
|
1567
1573
|
clip: boolean;
|
|
1568
1574
|
};
|
|
1569
1575
|
editingFrame: string | null;
|
|
1570
|
-
elementsToHighlight: import("
|
|
1571
|
-
editingTextElement: import("
|
|
1572
|
-
editingLinearElement: import("
|
|
1576
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1577
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1578
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1573
1579
|
activeTool: {
|
|
1574
1580
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1575
1581
|
locked: boolean;
|
|
1582
|
+
fromSelection: boolean;
|
|
1576
1583
|
} & import("../types").ActiveTool;
|
|
1577
1584
|
penMode: boolean;
|
|
1578
1585
|
penDetected: boolean;
|
|
@@ -1582,18 +1589,18 @@ export declare const actionZoomToFit: {
|
|
|
1582
1589
|
exportScale: number;
|
|
1583
1590
|
currentItemStrokeColor: string;
|
|
1584
1591
|
currentItemBackgroundColor: string;
|
|
1585
|
-
currentItemFillStyle: import("
|
|
1592
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1586
1593
|
currentItemStrokeWidth: number;
|
|
1587
|
-
currentItemStrokeStyle: import("
|
|
1594
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1588
1595
|
currentItemRoughness: number;
|
|
1589
1596
|
currentItemOpacity: number;
|
|
1590
1597
|
currentItemFontFamily: number;
|
|
1591
1598
|
currentItemFontSize: number;
|
|
1592
1599
|
currentItemTextAlign: string;
|
|
1593
|
-
currentItemStartArrowhead: import("
|
|
1594
|
-
currentItemEndArrowhead: import("
|
|
1600
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1601
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1595
1602
|
currentHoveredFontFamily: number | null;
|
|
1596
|
-
currentItemRoundness: import("
|
|
1603
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1597
1604
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1598
1605
|
viewBackgroundColor: string;
|
|
1599
1606
|
cursorButton: "up" | "down";
|
|
@@ -1619,7 +1626,7 @@ export declare const actionZoomToFit: {
|
|
|
1619
1626
|
sourceElementId: string;
|
|
1620
1627
|
} | null;
|
|
1621
1628
|
defaultSidebarDockedPreference: boolean;
|
|
1622
|
-
lastPointerDownWith: import("
|
|
1629
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1623
1630
|
selectedElementIds: Readonly<{
|
|
1624
1631
|
[id: string]: true;
|
|
1625
1632
|
}>;
|
|
@@ -1637,7 +1644,7 @@ export declare const actionZoomToFit: {
|
|
|
1637
1644
|
duration?: number | undefined;
|
|
1638
1645
|
} | null;
|
|
1639
1646
|
zenModeEnabled: boolean;
|
|
1640
|
-
theme: import("
|
|
1647
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1641
1648
|
gridSize: number;
|
|
1642
1649
|
gridStep: number;
|
|
1643
1650
|
gridModeEnabled: boolean;
|
|
@@ -1658,7 +1665,7 @@ export declare const actionZoomToFit: {
|
|
|
1658
1665
|
[id: string]: true;
|
|
1659
1666
|
}> | undefined;
|
|
1660
1667
|
username?: string | null | undefined;
|
|
1661
|
-
userState?: import("
|
|
1668
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1662
1669
|
color?: {
|
|
1663
1670
|
background: string;
|
|
1664
1671
|
stroke: string;
|
|
@@ -1675,7 +1682,7 @@ export declare const actionZoomToFit: {
|
|
|
1675
1682
|
open: boolean;
|
|
1676
1683
|
panels: number;
|
|
1677
1684
|
};
|
|
1678
|
-
currentChartType: import("
|
|
1685
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1679
1686
|
pasteDialog: {
|
|
1680
1687
|
shown: false;
|
|
1681
1688
|
data: null;
|
|
@@ -1684,8 +1691,8 @@ export declare const actionZoomToFit: {
|
|
|
1684
1691
|
data: import("../charts").Spreadsheet;
|
|
1685
1692
|
};
|
|
1686
1693
|
pendingImageElementId: string | null;
|
|
1687
|
-
showHyperlinkPopup: false | "
|
|
1688
|
-
selectedLinearElement: import("
|
|
1694
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1695
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1689
1696
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1690
1697
|
originSnapOffset: {
|
|
1691
1698
|
x: number;
|
|
@@ -1722,7 +1729,7 @@ export declare const actionToggleTheme: {
|
|
|
1722
1729
|
trackEvent: {
|
|
1723
1730
|
category: "canvas";
|
|
1724
1731
|
};
|
|
1725
|
-
perform: (_: readonly import("
|
|
1732
|
+
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1726
1733
|
appState: {
|
|
1727
1734
|
theme: any;
|
|
1728
1735
|
contextMenu: {
|
|
@@ -1734,17 +1741,17 @@ export declare const actionToggleTheme: {
|
|
|
1734
1741
|
isLoading: boolean;
|
|
1735
1742
|
errorMessage: import("react").ReactNode;
|
|
1736
1743
|
activeEmbeddable: {
|
|
1737
|
-
element: import("
|
|
1744
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1738
1745
|
state: "hover" | "active";
|
|
1739
1746
|
} | null;
|
|
1740
|
-
newElement: import("
|
|
1741
|
-
resizingElement: import("
|
|
1742
|
-
multiElement: import("
|
|
1743
|
-
selectionElement: import("
|
|
1747
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1748
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1749
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1750
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1744
1751
|
isBindingEnabled: boolean;
|
|
1745
|
-
startBoundElement: import("
|
|
1746
|
-
suggestedBindings: import("
|
|
1747
|
-
frameToHighlight: import("
|
|
1752
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1753
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1754
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1748
1755
|
frameRendering: {
|
|
1749
1756
|
enabled: boolean;
|
|
1750
1757
|
name: boolean;
|
|
@@ -1752,12 +1759,13 @@ export declare const actionToggleTheme: {
|
|
|
1752
1759
|
clip: boolean;
|
|
1753
1760
|
};
|
|
1754
1761
|
editingFrame: string | null;
|
|
1755
|
-
elementsToHighlight: import("
|
|
1756
|
-
editingTextElement: import("
|
|
1757
|
-
editingLinearElement: import("
|
|
1762
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1763
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1764
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1758
1765
|
activeTool: {
|
|
1759
1766
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1760
1767
|
locked: boolean;
|
|
1768
|
+
fromSelection: boolean;
|
|
1761
1769
|
} & import("../types").ActiveTool;
|
|
1762
1770
|
penMode: boolean;
|
|
1763
1771
|
penDetected: boolean;
|
|
@@ -1767,18 +1775,18 @@ export declare const actionToggleTheme: {
|
|
|
1767
1775
|
exportScale: number;
|
|
1768
1776
|
currentItemStrokeColor: string;
|
|
1769
1777
|
currentItemBackgroundColor: string;
|
|
1770
|
-
currentItemFillStyle: import("
|
|
1778
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1771
1779
|
currentItemStrokeWidth: number;
|
|
1772
|
-
currentItemStrokeStyle: import("
|
|
1780
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1773
1781
|
currentItemRoughness: number;
|
|
1774
1782
|
currentItemOpacity: number;
|
|
1775
1783
|
currentItemFontFamily: number;
|
|
1776
1784
|
currentItemFontSize: number;
|
|
1777
1785
|
currentItemTextAlign: string;
|
|
1778
|
-
currentItemStartArrowhead: import("
|
|
1779
|
-
currentItemEndArrowhead: import("
|
|
1786
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1787
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1780
1788
|
currentHoveredFontFamily: number | null;
|
|
1781
|
-
currentItemRoundness: import("
|
|
1789
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1782
1790
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1783
1791
|
viewBackgroundColor: string;
|
|
1784
1792
|
scrollX: number;
|
|
@@ -1809,7 +1817,7 @@ export declare const actionToggleTheme: {
|
|
|
1809
1817
|
sourceElementId: string;
|
|
1810
1818
|
} | null;
|
|
1811
1819
|
defaultSidebarDockedPreference: boolean;
|
|
1812
|
-
lastPointerDownWith: import("
|
|
1820
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1813
1821
|
selectedElementIds: Readonly<{
|
|
1814
1822
|
[id: string]: true;
|
|
1815
1823
|
}>;
|
|
@@ -1847,7 +1855,7 @@ export declare const actionToggleTheme: {
|
|
|
1847
1855
|
[id: string]: true;
|
|
1848
1856
|
}> | undefined;
|
|
1849
1857
|
username?: string | null | undefined;
|
|
1850
|
-
userState?: import("
|
|
1858
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1851
1859
|
color?: {
|
|
1852
1860
|
background: string;
|
|
1853
1861
|
stroke: string;
|
|
@@ -1864,7 +1872,7 @@ export declare const actionToggleTheme: {
|
|
|
1864
1872
|
open: boolean;
|
|
1865
1873
|
panels: number;
|
|
1866
1874
|
};
|
|
1867
|
-
currentChartType: import("
|
|
1875
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1868
1876
|
pasteDialog: {
|
|
1869
1877
|
shown: false;
|
|
1870
1878
|
data: null;
|
|
@@ -1873,8 +1881,8 @@ export declare const actionToggleTheme: {
|
|
|
1873
1881
|
data: import("../charts").Spreadsheet;
|
|
1874
1882
|
};
|
|
1875
1883
|
pendingImageElementId: string | null;
|
|
1876
|
-
showHyperlinkPopup: false | "
|
|
1877
|
-
selectedLinearElement: import("
|
|
1884
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1885
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1878
1886
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1879
1887
|
originSnapOffset: {
|
|
1880
1888
|
x: number;
|
|
@@ -1909,7 +1917,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1909
1917
|
trackEvent: {
|
|
1910
1918
|
category: "toolbar";
|
|
1911
1919
|
};
|
|
1912
|
-
perform: (elements: readonly import("
|
|
1920
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
1913
1921
|
appState: {
|
|
1914
1922
|
selectedElementIds: {};
|
|
1915
1923
|
selectedGroupIds: {};
|
|
@@ -1917,6 +1925,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1917
1925
|
activeTool: {
|
|
1918
1926
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1919
1927
|
locked: boolean;
|
|
1928
|
+
fromSelection: boolean;
|
|
1920
1929
|
} & import("../types").ActiveTool;
|
|
1921
1930
|
contextMenu: {
|
|
1922
1931
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1926,14 +1935,14 @@ export declare const actionToggleEraserTool: {
|
|
|
1926
1935
|
showWelcomeScreen: boolean;
|
|
1927
1936
|
isLoading: boolean;
|
|
1928
1937
|
errorMessage: import("react").ReactNode;
|
|
1929
|
-
newElement: import("
|
|
1930
|
-
resizingElement: import("
|
|
1931
|
-
multiElement: import("
|
|
1932
|
-
selectionElement: import("
|
|
1938
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1939
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1940
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1941
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1933
1942
|
isBindingEnabled: boolean;
|
|
1934
|
-
startBoundElement: import("
|
|
1935
|
-
suggestedBindings: import("
|
|
1936
|
-
frameToHighlight: import("
|
|
1943
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1944
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1945
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1937
1946
|
frameRendering: {
|
|
1938
1947
|
enabled: boolean;
|
|
1939
1948
|
name: boolean;
|
|
@@ -1941,9 +1950,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1941
1950
|
clip: boolean;
|
|
1942
1951
|
};
|
|
1943
1952
|
editingFrame: string | null;
|
|
1944
|
-
elementsToHighlight: import("
|
|
1945
|
-
editingTextElement: import("
|
|
1946
|
-
editingLinearElement: import("
|
|
1953
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1954
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1955
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1947
1956
|
penMode: boolean;
|
|
1948
1957
|
penDetected: boolean;
|
|
1949
1958
|
exportBackground: boolean;
|
|
@@ -1952,18 +1961,18 @@ export declare const actionToggleEraserTool: {
|
|
|
1952
1961
|
exportScale: number;
|
|
1953
1962
|
currentItemStrokeColor: string;
|
|
1954
1963
|
currentItemBackgroundColor: string;
|
|
1955
|
-
currentItemFillStyle: import("
|
|
1964
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1956
1965
|
currentItemStrokeWidth: number;
|
|
1957
|
-
currentItemStrokeStyle: import("
|
|
1966
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1958
1967
|
currentItemRoughness: number;
|
|
1959
1968
|
currentItemOpacity: number;
|
|
1960
1969
|
currentItemFontFamily: number;
|
|
1961
1970
|
currentItemFontSize: number;
|
|
1962
1971
|
currentItemTextAlign: string;
|
|
1963
|
-
currentItemStartArrowhead: import("
|
|
1964
|
-
currentItemEndArrowhead: import("
|
|
1972
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1973
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1965
1974
|
currentHoveredFontFamily: number | null;
|
|
1966
|
-
currentItemRoundness: import("
|
|
1975
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1967
1976
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1968
1977
|
viewBackgroundColor: string;
|
|
1969
1978
|
scrollX: number;
|
|
@@ -1994,7 +2003,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1994
2003
|
sourceElementId: string;
|
|
1995
2004
|
} | null;
|
|
1996
2005
|
defaultSidebarDockedPreference: boolean;
|
|
1997
|
-
lastPointerDownWith: import("
|
|
2006
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1998
2007
|
hoveredElementIds: Readonly<{
|
|
1999
2008
|
[id: string]: true;
|
|
2000
2009
|
}>;
|
|
@@ -2009,7 +2018,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2009
2018
|
duration?: number | undefined;
|
|
2010
2019
|
} | null;
|
|
2011
2020
|
zenModeEnabled: boolean;
|
|
2012
|
-
theme: import("
|
|
2021
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2013
2022
|
gridSize: number;
|
|
2014
2023
|
gridStep: number;
|
|
2015
2024
|
gridModeEnabled: boolean;
|
|
@@ -2027,7 +2036,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2027
2036
|
[id: string]: true;
|
|
2028
2037
|
}> | undefined;
|
|
2029
2038
|
username?: string | null | undefined;
|
|
2030
|
-
userState?: import("
|
|
2039
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2031
2040
|
color?: {
|
|
2032
2041
|
background: string;
|
|
2033
2042
|
stroke: string;
|
|
@@ -2044,7 +2053,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2044
2053
|
open: boolean;
|
|
2045
2054
|
panels: number;
|
|
2046
2055
|
};
|
|
2047
|
-
currentChartType: import("
|
|
2056
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2048
2057
|
pasteDialog: {
|
|
2049
2058
|
shown: false;
|
|
2050
2059
|
data: null;
|
|
@@ -2053,8 +2062,8 @@ export declare const actionToggleEraserTool: {
|
|
|
2053
2062
|
data: import("../charts").Spreadsheet;
|
|
2054
2063
|
};
|
|
2055
2064
|
pendingImageElementId: string | null;
|
|
2056
|
-
showHyperlinkPopup: false | "
|
|
2057
|
-
selectedLinearElement: import("
|
|
2065
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2066
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
2058
2067
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2059
2068
|
originSnapOffset: {
|
|
2060
2069
|
x: number;
|
|
@@ -2082,16 +2091,195 @@ export declare const actionToggleEraserTool: {
|
|
|
2082
2091
|
} & {
|
|
2083
2092
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
2084
2093
|
};
|
|
2094
|
+
export declare const actionToggleLassoTool: {
|
|
2095
|
+
name: "toggleLassoTool";
|
|
2096
|
+
label: string;
|
|
2097
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
2098
|
+
trackEvent: {
|
|
2099
|
+
category: "toolbar";
|
|
2100
|
+
};
|
|
2101
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2102
|
+
appState: {
|
|
2103
|
+
selectedElementIds: {};
|
|
2104
|
+
selectedGroupIds: {};
|
|
2105
|
+
activeEmbeddable: null;
|
|
2106
|
+
activeTool: {
|
|
2107
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
2108
|
+
locked: boolean;
|
|
2109
|
+
fromSelection: boolean;
|
|
2110
|
+
} & import("../types").ActiveTool;
|
|
2111
|
+
contextMenu: {
|
|
2112
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2113
|
+
top: number;
|
|
2114
|
+
left: number;
|
|
2115
|
+
} | null;
|
|
2116
|
+
showWelcomeScreen: boolean;
|
|
2117
|
+
isLoading: boolean;
|
|
2118
|
+
errorMessage: import("react").ReactNode;
|
|
2119
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2120
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2121
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2122
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2123
|
+
isBindingEnabled: boolean;
|
|
2124
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2125
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2126
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2127
|
+
frameRendering: {
|
|
2128
|
+
enabled: boolean;
|
|
2129
|
+
name: boolean;
|
|
2130
|
+
outline: boolean;
|
|
2131
|
+
clip: boolean;
|
|
2132
|
+
};
|
|
2133
|
+
editingFrame: string | null;
|
|
2134
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2135
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2136
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
2137
|
+
penMode: boolean;
|
|
2138
|
+
penDetected: boolean;
|
|
2139
|
+
exportBackground: boolean;
|
|
2140
|
+
exportEmbedScene: boolean;
|
|
2141
|
+
exportWithDarkMode: boolean;
|
|
2142
|
+
exportScale: number;
|
|
2143
|
+
currentItemStrokeColor: string;
|
|
2144
|
+
currentItemBackgroundColor: string;
|
|
2145
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2146
|
+
currentItemStrokeWidth: number;
|
|
2147
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2148
|
+
currentItemRoughness: number;
|
|
2149
|
+
currentItemOpacity: number;
|
|
2150
|
+
currentItemFontFamily: number;
|
|
2151
|
+
currentItemFontSize: number;
|
|
2152
|
+
currentItemTextAlign: string;
|
|
2153
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2154
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2155
|
+
currentHoveredFontFamily: number | null;
|
|
2156
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2157
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2158
|
+
viewBackgroundColor: string;
|
|
2159
|
+
scrollX: number;
|
|
2160
|
+
scrollY: number;
|
|
2161
|
+
cursorButton: "up" | "down";
|
|
2162
|
+
scrolledOutside: boolean;
|
|
2163
|
+
name: string | null;
|
|
2164
|
+
isResizing: boolean;
|
|
2165
|
+
isRotating: boolean;
|
|
2166
|
+
zoom: Readonly<{
|
|
2167
|
+
value: import("../types").NormalizedZoomValue;
|
|
2168
|
+
}>;
|
|
2169
|
+
openMenu: "canvas" | "shape" | null;
|
|
2170
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2171
|
+
openSidebar: {
|
|
2172
|
+
name: string;
|
|
2173
|
+
tab?: string | undefined;
|
|
2174
|
+
} | null;
|
|
2175
|
+
openDialog: {
|
|
2176
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
2177
|
+
} | {
|
|
2178
|
+
name: "ttd";
|
|
2179
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2180
|
+
} | {
|
|
2181
|
+
name: "commandPalette";
|
|
2182
|
+
} | {
|
|
2183
|
+
name: "elementLinkSelector";
|
|
2184
|
+
sourceElementId: string;
|
|
2185
|
+
} | null;
|
|
2186
|
+
defaultSidebarDockedPreference: boolean;
|
|
2187
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2188
|
+
hoveredElementIds: Readonly<{
|
|
2189
|
+
[id: string]: true;
|
|
2190
|
+
}>;
|
|
2191
|
+
previousSelectedElementIds: {
|
|
2192
|
+
[id: string]: true;
|
|
2193
|
+
};
|
|
2194
|
+
selectedElementsAreBeingDragged: boolean;
|
|
2195
|
+
shouldCacheIgnoreZoom: boolean;
|
|
2196
|
+
toast: {
|
|
2197
|
+
message: string;
|
|
2198
|
+
closable?: boolean | undefined;
|
|
2199
|
+
duration?: number | undefined;
|
|
2200
|
+
} | null;
|
|
2201
|
+
zenModeEnabled: boolean;
|
|
2202
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2203
|
+
gridSize: number;
|
|
2204
|
+
gridStep: number;
|
|
2205
|
+
gridModeEnabled: boolean;
|
|
2206
|
+
viewModeEnabled: boolean;
|
|
2207
|
+
editingGroupId: string | null;
|
|
2208
|
+
width: number;
|
|
2209
|
+
height: number;
|
|
2210
|
+
offsetTop: number;
|
|
2211
|
+
offsetLeft: number;
|
|
2212
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2213
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2214
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2215
|
+
button?: "up" | "down" | undefined;
|
|
2216
|
+
selectedElementIds?: Readonly<{
|
|
2217
|
+
[id: string]: true;
|
|
2218
|
+
}> | undefined;
|
|
2219
|
+
username?: string | null | undefined;
|
|
2220
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2221
|
+
color?: {
|
|
2222
|
+
background: string;
|
|
2223
|
+
stroke: string;
|
|
2224
|
+
} | undefined;
|
|
2225
|
+
avatarUrl?: string | undefined;
|
|
2226
|
+
id?: string | undefined;
|
|
2227
|
+
socketId?: import("../types").SocketId | undefined;
|
|
2228
|
+
isCurrentUser?: boolean | undefined;
|
|
2229
|
+
isInCall?: boolean | undefined;
|
|
2230
|
+
isSpeaking?: boolean | undefined;
|
|
2231
|
+
isMuted?: boolean | undefined;
|
|
2232
|
+
}>>;
|
|
2233
|
+
stats: {
|
|
2234
|
+
open: boolean;
|
|
2235
|
+
panels: number;
|
|
2236
|
+
};
|
|
2237
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2238
|
+
pasteDialog: {
|
|
2239
|
+
shown: false;
|
|
2240
|
+
data: null;
|
|
2241
|
+
} | {
|
|
2242
|
+
shown: true;
|
|
2243
|
+
data: import("../charts").Spreadsheet;
|
|
2244
|
+
};
|
|
2245
|
+
pendingImageElementId: string | null;
|
|
2246
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2247
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
2248
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
2249
|
+
originSnapOffset: {
|
|
2250
|
+
x: number;
|
|
2251
|
+
y: number;
|
|
2252
|
+
} | null;
|
|
2253
|
+
objectsSnapModeEnabled: boolean;
|
|
2254
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
2255
|
+
followedBy: Set<import("../types").SocketId>;
|
|
2256
|
+
isCropping: boolean;
|
|
2257
|
+
croppingElementId: string | null;
|
|
2258
|
+
searchMatches: readonly {
|
|
2259
|
+
id: string;
|
|
2260
|
+
focus: boolean;
|
|
2261
|
+
matchedLines: {
|
|
2262
|
+
offsetX: number;
|
|
2263
|
+
offsetY: number;
|
|
2264
|
+
width: number;
|
|
2265
|
+
height: number;
|
|
2266
|
+
}[];
|
|
2267
|
+
}[];
|
|
2268
|
+
};
|
|
2269
|
+
captureUpdate: "NEVER";
|
|
2270
|
+
};
|
|
2271
|
+
} & {
|
|
2272
|
+
keyTest?: undefined;
|
|
2273
|
+
};
|
|
2085
2274
|
export declare const actionToggleHandTool: {
|
|
2086
2275
|
name: "toggleHandTool";
|
|
2087
2276
|
label: string;
|
|
2088
|
-
paletteName: string;
|
|
2089
2277
|
trackEvent: {
|
|
2090
2278
|
category: "toolbar";
|
|
2091
2279
|
};
|
|
2092
2280
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
2093
2281
|
viewMode: false;
|
|
2094
|
-
perform: (elements: readonly import("
|
|
2282
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2095
2283
|
appState: {
|
|
2096
2284
|
selectedElementIds: {};
|
|
2097
2285
|
selectedGroupIds: {};
|
|
@@ -2099,6 +2287,7 @@ export declare const actionToggleHandTool: {
|
|
|
2099
2287
|
activeTool: {
|
|
2100
2288
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2101
2289
|
locked: boolean;
|
|
2290
|
+
fromSelection: boolean;
|
|
2102
2291
|
} & import("../types").ActiveTool;
|
|
2103
2292
|
contextMenu: {
|
|
2104
2293
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -2108,14 +2297,14 @@ export declare const actionToggleHandTool: {
|
|
|
2108
2297
|
showWelcomeScreen: boolean;
|
|
2109
2298
|
isLoading: boolean;
|
|
2110
2299
|
errorMessage: import("react").ReactNode;
|
|
2111
|
-
newElement: import("
|
|
2112
|
-
resizingElement: import("
|
|
2113
|
-
multiElement: import("
|
|
2114
|
-
selectionElement: import("
|
|
2300
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2301
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2302
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2303
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2115
2304
|
isBindingEnabled: boolean;
|
|
2116
|
-
startBoundElement: import("
|
|
2117
|
-
suggestedBindings: import("
|
|
2118
|
-
frameToHighlight: import("
|
|
2305
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2306
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2307
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2119
2308
|
frameRendering: {
|
|
2120
2309
|
enabled: boolean;
|
|
2121
2310
|
name: boolean;
|
|
@@ -2123,9 +2312,9 @@ export declare const actionToggleHandTool: {
|
|
|
2123
2312
|
clip: boolean;
|
|
2124
2313
|
};
|
|
2125
2314
|
editingFrame: string | null;
|
|
2126
|
-
elementsToHighlight: import("
|
|
2127
|
-
editingTextElement: import("
|
|
2128
|
-
editingLinearElement: import("
|
|
2315
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2316
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2317
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
2129
2318
|
penMode: boolean;
|
|
2130
2319
|
penDetected: boolean;
|
|
2131
2320
|
exportBackground: boolean;
|
|
@@ -2134,18 +2323,18 @@ export declare const actionToggleHandTool: {
|
|
|
2134
2323
|
exportScale: number;
|
|
2135
2324
|
currentItemStrokeColor: string;
|
|
2136
2325
|
currentItemBackgroundColor: string;
|
|
2137
|
-
currentItemFillStyle: import("
|
|
2326
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2138
2327
|
currentItemStrokeWidth: number;
|
|
2139
|
-
currentItemStrokeStyle: import("
|
|
2328
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2140
2329
|
currentItemRoughness: number;
|
|
2141
2330
|
currentItemOpacity: number;
|
|
2142
2331
|
currentItemFontFamily: number;
|
|
2143
2332
|
currentItemFontSize: number;
|
|
2144
2333
|
currentItemTextAlign: string;
|
|
2145
|
-
currentItemStartArrowhead: import("
|
|
2146
|
-
currentItemEndArrowhead: import("
|
|
2334
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2335
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2147
2336
|
currentHoveredFontFamily: number | null;
|
|
2148
|
-
currentItemRoundness: import("
|
|
2337
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2149
2338
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2150
2339
|
viewBackgroundColor: string;
|
|
2151
2340
|
scrollX: number;
|
|
@@ -2176,7 +2365,7 @@ export declare const actionToggleHandTool: {
|
|
|
2176
2365
|
sourceElementId: string;
|
|
2177
2366
|
} | null;
|
|
2178
2367
|
defaultSidebarDockedPreference: boolean;
|
|
2179
|
-
lastPointerDownWith: import("
|
|
2368
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2180
2369
|
hoveredElementIds: Readonly<{
|
|
2181
2370
|
[id: string]: true;
|
|
2182
2371
|
}>;
|
|
@@ -2191,7 +2380,7 @@ export declare const actionToggleHandTool: {
|
|
|
2191
2380
|
duration?: number | undefined;
|
|
2192
2381
|
} | null;
|
|
2193
2382
|
zenModeEnabled: boolean;
|
|
2194
|
-
theme: import("
|
|
2383
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2195
2384
|
gridSize: number;
|
|
2196
2385
|
gridStep: number;
|
|
2197
2386
|
gridModeEnabled: boolean;
|
|
@@ -2209,7 +2398,7 @@ export declare const actionToggleHandTool: {
|
|
|
2209
2398
|
[id: string]: true;
|
|
2210
2399
|
}> | undefined;
|
|
2211
2400
|
username?: string | null | undefined;
|
|
2212
|
-
userState?: import("
|
|
2401
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2213
2402
|
color?: {
|
|
2214
2403
|
background: string;
|
|
2215
2404
|
stroke: string;
|
|
@@ -2226,7 +2415,7 @@ export declare const actionToggleHandTool: {
|
|
|
2226
2415
|
open: boolean;
|
|
2227
2416
|
panels: number;
|
|
2228
2417
|
};
|
|
2229
|
-
currentChartType: import("
|
|
2418
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2230
2419
|
pasteDialog: {
|
|
2231
2420
|
shown: false;
|
|
2232
2421
|
data: null;
|
|
@@ -2235,8 +2424,8 @@ export declare const actionToggleHandTool: {
|
|
|
2235
2424
|
data: import("../charts").Spreadsheet;
|
|
2236
2425
|
};
|
|
2237
2426
|
pendingImageElementId: string | null;
|
|
2238
|
-
showHyperlinkPopup: false | "
|
|
2239
|
-
selectedLinearElement: import("
|
|
2427
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2428
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
2240
2429
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2241
2430
|
originSnapOffset: {
|
|
2242
2431
|
x: number;
|