@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-a5d6939
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-3SN6HYVK.js → chunk-GBJ7S76A.js} +15490 -22586
- package/dist/dev/chunk-GBJ7S76A.js.map +7 -0
- package/dist/dev/{chunk-53KHN5WM.js → chunk-GIMGG4AT.js} +2 -2
- package/dist/dev/{chunk-53KHN5WM.js.map → chunk-GIMGG4AT.js.map} +1 -1
- 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-JN3Y4CVN.js} +3 -3
- package/dist/dev/index.css +3031 -3034
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +30389 -22974
- 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-G5N3DNGT.js → chunk-GKI4RZ6C.js} +1 -1
- package/dist/prod/{chunk-6U3AYISY.js → chunk-IUH5AXLB.js} +1 -1
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/chunk-TVF64BAY.js +33 -0
- package/dist/prod/data/image-CZ2OEVDB.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +18 -15
- 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 +10 -12
- 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/{excalidraw → element/src}/align.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +7 -2
- 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 +3 -3
- package/dist/types/element/src/duplicate.d.ts +63 -0
- 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 +1 -1
- package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
- 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 +7 -7
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
- 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 +4 -4
- 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 -1
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
- 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/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +542 -353
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
- 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 +30 -29
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
- package/dist/types/excalidraw/actions/actionExport.d.ts +300 -291
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +212 -208
- package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
- package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
- 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 +32 -31
- 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 +38 -19
- 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 +2 -2
- 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 +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- 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 +3 -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 +2 -2
- 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 +2 -12
- 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/Scene.d.ts +5 -5
- 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 +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +4 -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 +18 -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/shapes.d.ts +0 -85
- package/dist/dev/data/{image-V26YBSDB.js.map → image-JN3Y4CVN.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}/elbowArrow.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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement } from "
|
|
2
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionSelectAllElementsInFrame: {
|
|
5
5
|
name: "selectAllElementsInFrame";
|
|
@@ -7,8 +7,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "canvas";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly import("
|
|
11
|
-
elements: readonly import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
selectedElementIds: Record<string, true>;
|
|
14
14
|
contextMenu: {
|
|
@@ -20,17 +20,17 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
|
-
element: import("
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
24
|
state: "hover" | "active";
|
|
25
25
|
} | null;
|
|
26
|
-
newElement: import("
|
|
27
|
-
resizingElement: import("
|
|
28
|
-
multiElement: import("
|
|
29
|
-
selectionElement: import("
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("
|
|
32
|
-
suggestedBindings: import("
|
|
33
|
-
frameToHighlight: import("
|
|
31
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
33
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
@@ -38,12 +38,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
38
38
|
clip: boolean;
|
|
39
39
|
};
|
|
40
40
|
editingFrame: string | null;
|
|
41
|
-
elementsToHighlight: import("
|
|
42
|
-
editingTextElement: import("
|
|
43
|
-
editingLinearElement: import("
|
|
41
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
48
49
|
penMode: boolean;
|
|
49
50
|
penDetected: boolean;
|
|
@@ -53,18 +54,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
53
54
|
exportScale: number;
|
|
54
55
|
currentItemStrokeColor: string;
|
|
55
56
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle: import("
|
|
57
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
57
58
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle: import("
|
|
59
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
59
60
|
currentItemRoughness: number;
|
|
60
61
|
currentItemOpacity: number;
|
|
61
62
|
currentItemFontFamily: number;
|
|
62
63
|
currentItemFontSize: number;
|
|
63
64
|
currentItemTextAlign: string;
|
|
64
|
-
currentItemStartArrowhead: import("
|
|
65
|
-
currentItemEndArrowhead: import("
|
|
65
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
67
|
currentHoveredFontFamily: number | null;
|
|
67
|
-
currentItemRoundness: import("
|
|
68
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
69
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
69
70
|
viewBackgroundColor: string;
|
|
70
71
|
scrollX: number;
|
|
@@ -77,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
77
78
|
zoom: Readonly<{
|
|
78
79
|
value: import("../types").NormalizedZoomValue;
|
|
79
80
|
}>;
|
|
80
|
-
openMenu: "
|
|
81
|
+
openMenu: "shape" | "canvas" | null;
|
|
81
82
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
83
|
openSidebar: {
|
|
83
84
|
name: string;
|
|
@@ -95,7 +96,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
95
96
|
sourceElementId: string;
|
|
96
97
|
} | null;
|
|
97
98
|
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("
|
|
99
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
100
|
hoveredElementIds: Readonly<{
|
|
100
101
|
[id: string]: true;
|
|
101
102
|
}>;
|
|
@@ -110,7 +111,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
110
111
|
duration?: number | undefined;
|
|
111
112
|
} | null;
|
|
112
113
|
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("
|
|
114
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
114
115
|
gridSize: number;
|
|
115
116
|
gridStep: number;
|
|
116
117
|
gridModeEnabled: boolean;
|
|
@@ -131,7 +132,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
131
132
|
[id: string]: true;
|
|
132
133
|
}> | undefined;
|
|
133
134
|
username?: string | null | undefined;
|
|
134
|
-
userState?: import("
|
|
135
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
136
|
color?: {
|
|
136
137
|
background: string;
|
|
137
138
|
stroke: string;
|
|
@@ -148,7 +149,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
148
149
|
open: boolean;
|
|
149
150
|
panels: number;
|
|
150
151
|
};
|
|
151
|
-
currentChartType: import("
|
|
152
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
153
|
pasteDialog: {
|
|
153
154
|
shown: false;
|
|
154
155
|
data: null;
|
|
@@ -157,8 +158,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
157
158
|
data: import("../charts").Spreadsheet;
|
|
158
159
|
};
|
|
159
160
|
pendingImageElementId: string | null;
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
161
|
-
selectedLinearElement: import("
|
|
161
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
162
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
162
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
164
|
originSnapOffset: {
|
|
164
165
|
x: number;
|
|
@@ -182,7 +183,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
182
183
|
};
|
|
183
184
|
captureUpdate: "IMMEDIATELY";
|
|
184
185
|
} | {
|
|
185
|
-
elements: readonly import("
|
|
186
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
186
187
|
appState: Readonly<AppState>;
|
|
187
188
|
captureUpdate: "EVENTUALLY";
|
|
188
189
|
};
|
|
@@ -196,8 +197,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
196
197
|
trackEvent: {
|
|
197
198
|
category: "history";
|
|
198
199
|
};
|
|
199
|
-
perform: (elements: readonly import("
|
|
200
|
-
elements: readonly import("
|
|
200
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
201
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
201
202
|
appState: {
|
|
202
203
|
selectedElementIds: {
|
|
203
204
|
[x: string]: true;
|
|
@@ -211,17 +212,17 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
211
212
|
isLoading: boolean;
|
|
212
213
|
errorMessage: import("react").ReactNode;
|
|
213
214
|
activeEmbeddable: {
|
|
214
|
-
element: import("
|
|
215
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
215
216
|
state: "hover" | "active";
|
|
216
217
|
} | null;
|
|
217
|
-
newElement: import("
|
|
218
|
-
resizingElement: import("
|
|
219
|
-
multiElement: import("
|
|
220
|
-
selectionElement: import("
|
|
218
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
219
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
220
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
221
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
221
222
|
isBindingEnabled: boolean;
|
|
222
|
-
startBoundElement: import("
|
|
223
|
-
suggestedBindings: import("
|
|
224
|
-
frameToHighlight: import("
|
|
223
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
224
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
225
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
225
226
|
frameRendering: {
|
|
226
227
|
enabled: boolean;
|
|
227
228
|
name: boolean;
|
|
@@ -229,12 +230,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
229
230
|
clip: boolean;
|
|
230
231
|
};
|
|
231
232
|
editingFrame: string | null;
|
|
232
|
-
elementsToHighlight: import("
|
|
233
|
-
editingTextElement: import("
|
|
234
|
-
editingLinearElement: import("
|
|
233
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
234
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
235
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
235
236
|
activeTool: {
|
|
236
237
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
237
238
|
locked: boolean;
|
|
239
|
+
fromSelection: boolean;
|
|
238
240
|
} & import("../types").ActiveTool;
|
|
239
241
|
penMode: boolean;
|
|
240
242
|
penDetected: boolean;
|
|
@@ -244,18 +246,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
244
246
|
exportScale: number;
|
|
245
247
|
currentItemStrokeColor: string;
|
|
246
248
|
currentItemBackgroundColor: string;
|
|
247
|
-
currentItemFillStyle: import("
|
|
249
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
248
250
|
currentItemStrokeWidth: number;
|
|
249
|
-
currentItemStrokeStyle: import("
|
|
251
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
250
252
|
currentItemRoughness: number;
|
|
251
253
|
currentItemOpacity: number;
|
|
252
254
|
currentItemFontFamily: number;
|
|
253
255
|
currentItemFontSize: number;
|
|
254
256
|
currentItemTextAlign: string;
|
|
255
|
-
currentItemStartArrowhead: import("
|
|
256
|
-
currentItemEndArrowhead: import("
|
|
257
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
258
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
257
259
|
currentHoveredFontFamily: number | null;
|
|
258
|
-
currentItemRoundness: import("
|
|
260
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
259
261
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
260
262
|
viewBackgroundColor: string;
|
|
261
263
|
scrollX: number;
|
|
@@ -268,7 +270,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
268
270
|
zoom: Readonly<{
|
|
269
271
|
value: import("../types").NormalizedZoomValue;
|
|
270
272
|
}>;
|
|
271
|
-
openMenu: "
|
|
273
|
+
openMenu: "shape" | "canvas" | null;
|
|
272
274
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
273
275
|
openSidebar: {
|
|
274
276
|
name: string;
|
|
@@ -286,7 +288,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
286
288
|
sourceElementId: string;
|
|
287
289
|
} | null;
|
|
288
290
|
defaultSidebarDockedPreference: boolean;
|
|
289
|
-
lastPointerDownWith: import("
|
|
291
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
290
292
|
hoveredElementIds: Readonly<{
|
|
291
293
|
[id: string]: true;
|
|
292
294
|
}>;
|
|
@@ -301,7 +303,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
301
303
|
duration?: number | undefined;
|
|
302
304
|
} | null;
|
|
303
305
|
zenModeEnabled: boolean;
|
|
304
|
-
theme: import("
|
|
306
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
305
307
|
gridSize: number;
|
|
306
308
|
gridStep: number;
|
|
307
309
|
gridModeEnabled: boolean;
|
|
@@ -322,7 +324,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
322
324
|
[id: string]: true;
|
|
323
325
|
}> | undefined;
|
|
324
326
|
username?: string | null | undefined;
|
|
325
|
-
userState?: import("
|
|
327
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
326
328
|
color?: {
|
|
327
329
|
background: string;
|
|
328
330
|
stroke: string;
|
|
@@ -339,7 +341,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
339
341
|
open: boolean;
|
|
340
342
|
panels: number;
|
|
341
343
|
};
|
|
342
|
-
currentChartType: import("
|
|
344
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
343
345
|
pasteDialog: {
|
|
344
346
|
shown: false;
|
|
345
347
|
data: null;
|
|
@@ -348,8 +350,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
348
350
|
data: import("../charts").Spreadsheet;
|
|
349
351
|
};
|
|
350
352
|
pendingImageElementId: string | null;
|
|
351
|
-
showHyperlinkPopup: false | "
|
|
352
|
-
selectedLinearElement: import("
|
|
353
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
354
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
353
355
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
354
356
|
originSnapOffset: {
|
|
355
357
|
x: number;
|
|
@@ -373,7 +375,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
373
375
|
};
|
|
374
376
|
captureUpdate: "IMMEDIATELY";
|
|
375
377
|
} | {
|
|
376
|
-
elements: readonly import("
|
|
378
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
377
379
|
appState: Readonly<AppState>;
|
|
378
380
|
captureUpdate: "EVENTUALLY";
|
|
379
381
|
};
|
|
@@ -388,8 +390,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
388
390
|
trackEvent: {
|
|
389
391
|
category: "canvas";
|
|
390
392
|
};
|
|
391
|
-
perform: (elements: readonly import("
|
|
392
|
-
elements: readonly import("
|
|
393
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
394
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
393
395
|
appState: {
|
|
394
396
|
frameRendering: {
|
|
395
397
|
enabled: boolean;
|
|
@@ -406,24 +408,25 @@ export declare const actionupdateFrameRendering: {
|
|
|
406
408
|
isLoading: boolean;
|
|
407
409
|
errorMessage: import("react").ReactNode;
|
|
408
410
|
activeEmbeddable: {
|
|
409
|
-
element: import("
|
|
411
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
410
412
|
state: "hover" | "active";
|
|
411
413
|
} | null;
|
|
412
|
-
newElement: import("
|
|
413
|
-
resizingElement: import("
|
|
414
|
-
multiElement: import("
|
|
415
|
-
selectionElement: import("
|
|
414
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
415
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
416
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
417
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
416
418
|
isBindingEnabled: boolean;
|
|
417
|
-
startBoundElement: import("
|
|
418
|
-
suggestedBindings: import("
|
|
419
|
-
frameToHighlight: import("
|
|
419
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
420
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
421
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
420
422
|
editingFrame: string | null;
|
|
421
|
-
elementsToHighlight: import("
|
|
422
|
-
editingTextElement: import("
|
|
423
|
-
editingLinearElement: import("
|
|
423
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
424
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
425
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
424
426
|
activeTool: {
|
|
425
427
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
426
428
|
locked: boolean;
|
|
429
|
+
fromSelection: boolean;
|
|
427
430
|
} & import("../types").ActiveTool;
|
|
428
431
|
penMode: boolean;
|
|
429
432
|
penDetected: boolean;
|
|
@@ -433,18 +436,18 @@ export declare const actionupdateFrameRendering: {
|
|
|
433
436
|
exportScale: number;
|
|
434
437
|
currentItemStrokeColor: string;
|
|
435
438
|
currentItemBackgroundColor: string;
|
|
436
|
-
currentItemFillStyle: import("
|
|
439
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
437
440
|
currentItemStrokeWidth: number;
|
|
438
|
-
currentItemStrokeStyle: import("
|
|
441
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
439
442
|
currentItemRoughness: number;
|
|
440
443
|
currentItemOpacity: number;
|
|
441
444
|
currentItemFontFamily: number;
|
|
442
445
|
currentItemFontSize: number;
|
|
443
446
|
currentItemTextAlign: string;
|
|
444
|
-
currentItemStartArrowhead: import("
|
|
445
|
-
currentItemEndArrowhead: import("
|
|
447
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
448
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
446
449
|
currentHoveredFontFamily: number | null;
|
|
447
|
-
currentItemRoundness: import("
|
|
450
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
448
451
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
449
452
|
viewBackgroundColor: string;
|
|
450
453
|
scrollX: number;
|
|
@@ -457,7 +460,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
457
460
|
zoom: Readonly<{
|
|
458
461
|
value: import("../types").NormalizedZoomValue;
|
|
459
462
|
}>;
|
|
460
|
-
openMenu: "
|
|
463
|
+
openMenu: "shape" | "canvas" | null;
|
|
461
464
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
462
465
|
openSidebar: {
|
|
463
466
|
name: string;
|
|
@@ -475,7 +478,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
475
478
|
sourceElementId: string;
|
|
476
479
|
} | null;
|
|
477
480
|
defaultSidebarDockedPreference: boolean;
|
|
478
|
-
lastPointerDownWith: import("
|
|
481
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
479
482
|
selectedElementIds: Readonly<{
|
|
480
483
|
[id: string]: true;
|
|
481
484
|
}>;
|
|
@@ -493,7 +496,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
493
496
|
duration?: number | undefined;
|
|
494
497
|
} | null;
|
|
495
498
|
zenModeEnabled: boolean;
|
|
496
|
-
theme: import("
|
|
499
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
497
500
|
gridSize: number;
|
|
498
501
|
gridStep: number;
|
|
499
502
|
gridModeEnabled: boolean;
|
|
@@ -514,7 +517,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
514
517
|
[id: string]: true;
|
|
515
518
|
}> | undefined;
|
|
516
519
|
username?: string | null | undefined;
|
|
517
|
-
userState?: import("
|
|
520
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
518
521
|
color?: {
|
|
519
522
|
background: string;
|
|
520
523
|
stroke: string;
|
|
@@ -531,7 +534,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
531
534
|
open: boolean;
|
|
532
535
|
panels: number;
|
|
533
536
|
};
|
|
534
|
-
currentChartType: import("
|
|
537
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
535
538
|
pasteDialog: {
|
|
536
539
|
shown: false;
|
|
537
540
|
data: null;
|
|
@@ -540,8 +543,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
540
543
|
data: import("../charts").Spreadsheet;
|
|
541
544
|
};
|
|
542
545
|
pendingImageElementId: string | null;
|
|
543
|
-
showHyperlinkPopup: false | "
|
|
544
|
-
selectedLinearElement: import("
|
|
546
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
547
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
545
548
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
546
549
|
originSnapOffset: {
|
|
547
550
|
x: number;
|
|
@@ -577,12 +580,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
577
580
|
};
|
|
578
581
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
579
582
|
viewMode: false;
|
|
580
|
-
perform: (elements: readonly import("
|
|
581
|
-
elements: readonly import("
|
|
583
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
584
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
582
585
|
appState: {
|
|
583
586
|
activeTool: {
|
|
584
587
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
585
588
|
locked: boolean;
|
|
589
|
+
fromSelection: boolean;
|
|
586
590
|
} & import("../types").ActiveTool;
|
|
587
591
|
contextMenu: {
|
|
588
592
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -593,17 +597,17 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
593
597
|
isLoading: boolean;
|
|
594
598
|
errorMessage: import("react").ReactNode;
|
|
595
599
|
activeEmbeddable: {
|
|
596
|
-
element: import("
|
|
600
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
597
601
|
state: "hover" | "active";
|
|
598
602
|
} | null;
|
|
599
|
-
newElement: import("
|
|
600
|
-
resizingElement: import("
|
|
601
|
-
multiElement: import("
|
|
602
|
-
selectionElement: import("
|
|
603
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
604
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
605
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
606
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
603
607
|
isBindingEnabled: boolean;
|
|
604
|
-
startBoundElement: import("
|
|
605
|
-
suggestedBindings: import("
|
|
606
|
-
frameToHighlight: import("
|
|
608
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
609
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
610
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
607
611
|
frameRendering: {
|
|
608
612
|
enabled: boolean;
|
|
609
613
|
name: boolean;
|
|
@@ -611,9 +615,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
611
615
|
clip: boolean;
|
|
612
616
|
};
|
|
613
617
|
editingFrame: string | null;
|
|
614
|
-
elementsToHighlight: import("
|
|
615
|
-
editingTextElement: import("
|
|
616
|
-
editingLinearElement: import("
|
|
618
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
619
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
620
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
617
621
|
penMode: boolean;
|
|
618
622
|
penDetected: boolean;
|
|
619
623
|
exportBackground: boolean;
|
|
@@ -622,18 +626,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
622
626
|
exportScale: number;
|
|
623
627
|
currentItemStrokeColor: string;
|
|
624
628
|
currentItemBackgroundColor: string;
|
|
625
|
-
currentItemFillStyle: import("
|
|
629
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
626
630
|
currentItemStrokeWidth: number;
|
|
627
|
-
currentItemStrokeStyle: import("
|
|
631
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
628
632
|
currentItemRoughness: number;
|
|
629
633
|
currentItemOpacity: number;
|
|
630
634
|
currentItemFontFamily: number;
|
|
631
635
|
currentItemFontSize: number;
|
|
632
636
|
currentItemTextAlign: string;
|
|
633
|
-
currentItemStartArrowhead: import("
|
|
634
|
-
currentItemEndArrowhead: import("
|
|
637
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
638
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
635
639
|
currentHoveredFontFamily: number | null;
|
|
636
|
-
currentItemRoundness: import("
|
|
640
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
637
641
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
638
642
|
viewBackgroundColor: string;
|
|
639
643
|
scrollX: number;
|
|
@@ -646,7 +650,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
646
650
|
zoom: Readonly<{
|
|
647
651
|
value: import("../types").NormalizedZoomValue;
|
|
648
652
|
}>;
|
|
649
|
-
openMenu: "
|
|
653
|
+
openMenu: "shape" | "canvas" | null;
|
|
650
654
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
651
655
|
openSidebar: {
|
|
652
656
|
name: string;
|
|
@@ -664,7 +668,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
664
668
|
sourceElementId: string;
|
|
665
669
|
} | null;
|
|
666
670
|
defaultSidebarDockedPreference: boolean;
|
|
667
|
-
lastPointerDownWith: import("
|
|
671
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
668
672
|
selectedElementIds: Readonly<{
|
|
669
673
|
[id: string]: true;
|
|
670
674
|
}>;
|
|
@@ -682,7 +686,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
682
686
|
duration?: number | undefined;
|
|
683
687
|
} | null;
|
|
684
688
|
zenModeEnabled: boolean;
|
|
685
|
-
theme: import("
|
|
689
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
686
690
|
gridSize: number;
|
|
687
691
|
gridStep: number;
|
|
688
692
|
gridModeEnabled: boolean;
|
|
@@ -703,7 +707,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
703
707
|
[id: string]: true;
|
|
704
708
|
}> | undefined;
|
|
705
709
|
username?: string | null | undefined;
|
|
706
|
-
userState?: import("
|
|
710
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
707
711
|
color?: {
|
|
708
712
|
background: string;
|
|
709
713
|
stroke: string;
|
|
@@ -720,7 +724,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
720
724
|
open: boolean;
|
|
721
725
|
panels: number;
|
|
722
726
|
};
|
|
723
|
-
currentChartType: import("
|
|
727
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
724
728
|
pasteDialog: {
|
|
725
729
|
shown: false;
|
|
726
730
|
data: null;
|
|
@@ -729,8 +733,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
729
733
|
data: import("../charts").Spreadsheet;
|
|
730
734
|
};
|
|
731
735
|
pendingImageElementId: string | null;
|
|
732
|
-
showHyperlinkPopup: false | "
|
|
733
|
-
selectedLinearElement: import("
|
|
736
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
737
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
734
738
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
735
739
|
originSnapOffset: {
|
|
736
740
|
x: number;
|
|
@@ -765,18 +769,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
765
769
|
category: "element";
|
|
766
770
|
};
|
|
767
771
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
768
|
-
perform: (elements: readonly import("
|
|
769
|
-
elements: (
|
|
772
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
773
|
+
elements: ((Readonly<{
|
|
770
774
|
id: string;
|
|
771
775
|
x: number;
|
|
772
776
|
y: number;
|
|
773
777
|
strokeColor: string;
|
|
774
778
|
backgroundColor: string;
|
|
775
|
-
fillStyle: import("
|
|
779
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
776
780
|
strokeWidth: number;
|
|
777
|
-
strokeStyle: import("
|
|
781
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
778
782
|
roundness: {
|
|
779
|
-
type: import("
|
|
783
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
780
784
|
value?: number | undefined;
|
|
781
785
|
} | null;
|
|
782
786
|
roughness: number;
|
|
@@ -787,7 +791,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
787
791
|
seed: number;
|
|
788
792
|
version: number;
|
|
789
793
|
versionNonce: number;
|
|
790
|
-
index: import("
|
|
794
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
791
795
|
isDeleted: boolean;
|
|
792
796
|
groupIds: readonly string[];
|
|
793
797
|
frameId: string | null;
|
|
@@ -800,20 +804,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
800
804
|
locked: boolean;
|
|
801
805
|
customData?: Record<string, any> | undefined;
|
|
802
806
|
}> & {
|
|
803
|
-
type: "
|
|
807
|
+
type: "rectangle";
|
|
804
808
|
} & {
|
|
805
|
-
index: import("
|
|
809
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
806
810
|
}) | (Readonly<{
|
|
807
811
|
id: string;
|
|
808
812
|
x: number;
|
|
809
813
|
y: number;
|
|
810
814
|
strokeColor: string;
|
|
811
815
|
backgroundColor: string;
|
|
812
|
-
fillStyle: import("
|
|
816
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
813
817
|
strokeWidth: number;
|
|
814
|
-
strokeStyle: import("
|
|
818
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
815
819
|
roundness: {
|
|
816
|
-
type: import("
|
|
820
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
817
821
|
value?: number | undefined;
|
|
818
822
|
} | null;
|
|
819
823
|
roughness: number;
|
|
@@ -824,7 +828,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
824
828
|
seed: number;
|
|
825
829
|
version: number;
|
|
826
830
|
versionNonce: number;
|
|
827
|
-
index: import("
|
|
831
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
828
832
|
isDeleted: boolean;
|
|
829
833
|
groupIds: readonly string[];
|
|
830
834
|
frameId: string | null;
|
|
@@ -837,20 +841,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
837
841
|
locked: boolean;
|
|
838
842
|
customData?: Record<string, any> | undefined;
|
|
839
843
|
}> & {
|
|
840
|
-
type: "
|
|
844
|
+
type: "diamond";
|
|
841
845
|
} & {
|
|
842
|
-
index: import("
|
|
846
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
843
847
|
}) | (Readonly<{
|
|
844
848
|
id: string;
|
|
845
849
|
x: number;
|
|
846
850
|
y: number;
|
|
847
851
|
strokeColor: string;
|
|
848
852
|
backgroundColor: string;
|
|
849
|
-
fillStyle: import("
|
|
853
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
850
854
|
strokeWidth: number;
|
|
851
|
-
strokeStyle: import("
|
|
855
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
852
856
|
roundness: {
|
|
853
|
-
type: import("
|
|
857
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
854
858
|
value?: number | undefined;
|
|
855
859
|
} | null;
|
|
856
860
|
roughness: number;
|
|
@@ -861,7 +865,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
861
865
|
seed: number;
|
|
862
866
|
version: number;
|
|
863
867
|
versionNonce: number;
|
|
864
|
-
index: import("
|
|
868
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
865
869
|
isDeleted: boolean;
|
|
866
870
|
groupIds: readonly string[];
|
|
867
871
|
frameId: string | null;
|
|
@@ -874,20 +878,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
874
878
|
locked: boolean;
|
|
875
879
|
customData?: Record<string, any> | undefined;
|
|
876
880
|
}> & {
|
|
877
|
-
type: "
|
|
881
|
+
type: "frame";
|
|
882
|
+
name: string | null;
|
|
878
883
|
} & {
|
|
879
|
-
index: import("
|
|
884
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
880
885
|
}) | (Readonly<{
|
|
881
886
|
id: string;
|
|
882
887
|
x: number;
|
|
883
888
|
y: number;
|
|
884
889
|
strokeColor: string;
|
|
885
890
|
backgroundColor: string;
|
|
886
|
-
fillStyle: import("
|
|
891
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
887
892
|
strokeWidth: number;
|
|
888
|
-
strokeStyle: import("
|
|
893
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
889
894
|
roundness: {
|
|
890
|
-
type: import("
|
|
895
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
891
896
|
value?: number | undefined;
|
|
892
897
|
} | null;
|
|
893
898
|
roughness: number;
|
|
@@ -898,7 +903,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
898
903
|
seed: number;
|
|
899
904
|
version: number;
|
|
900
905
|
versionNonce: number;
|
|
901
|
-
index: import("
|
|
906
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
902
907
|
isDeleted: boolean;
|
|
903
908
|
groupIds: readonly string[];
|
|
904
909
|
frameId: string | null;
|
|
@@ -911,20 +916,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
911
916
|
locked: boolean;
|
|
912
917
|
customData?: Record<string, any> | undefined;
|
|
913
918
|
}> & {
|
|
914
|
-
type: "
|
|
919
|
+
type: "magicframe";
|
|
920
|
+
name: string | null;
|
|
915
921
|
} & {
|
|
916
|
-
index: import("
|
|
922
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
917
923
|
}) | (Readonly<{
|
|
918
924
|
id: string;
|
|
919
925
|
x: number;
|
|
920
926
|
y: number;
|
|
921
927
|
strokeColor: string;
|
|
922
928
|
backgroundColor: string;
|
|
923
|
-
fillStyle: import("
|
|
929
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
924
930
|
strokeWidth: number;
|
|
925
|
-
strokeStyle: import("
|
|
931
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
926
932
|
roundness: {
|
|
927
|
-
type: import("
|
|
933
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
928
934
|
value?: number | undefined;
|
|
929
935
|
} | null;
|
|
930
936
|
roughness: number;
|
|
@@ -935,7 +941,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
935
941
|
seed: number;
|
|
936
942
|
version: number;
|
|
937
943
|
versionNonce: number;
|
|
938
|
-
index: import("
|
|
944
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
939
945
|
isDeleted: boolean;
|
|
940
946
|
groupIds: readonly string[];
|
|
941
947
|
frameId: string | null;
|
|
@@ -948,31 +954,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
948
954
|
locked: boolean;
|
|
949
955
|
customData?: Record<string, any> | undefined;
|
|
950
956
|
}> & Readonly<{
|
|
951
|
-
type: "
|
|
952
|
-
fontSize: number;
|
|
953
|
-
fontFamily: number;
|
|
954
|
-
text: string;
|
|
955
|
-
textAlign: string;
|
|
956
|
-
verticalAlign: string;
|
|
957
|
-
containerId: string | null;
|
|
958
|
-
originalText: string;
|
|
959
|
-
autoResize: boolean;
|
|
960
|
-
lineHeight: number & {
|
|
961
|
-
_brand: "unitlessLineHeight";
|
|
962
|
-
};
|
|
957
|
+
type: "embeddable";
|
|
963
958
|
}> & {
|
|
964
|
-
index: import("
|
|
959
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
965
960
|
}) | (Readonly<{
|
|
966
961
|
id: string;
|
|
967
962
|
x: number;
|
|
968
963
|
y: number;
|
|
969
964
|
strokeColor: string;
|
|
970
965
|
backgroundColor: string;
|
|
971
|
-
fillStyle: import("
|
|
966
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
972
967
|
strokeWidth: number;
|
|
973
|
-
strokeStyle: import("
|
|
968
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
974
969
|
roundness: {
|
|
975
|
-
type: import("
|
|
970
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
976
971
|
value?: number | undefined;
|
|
977
972
|
} | null;
|
|
978
973
|
roughness: number;
|
|
@@ -983,7 +978,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
983
978
|
seed: number;
|
|
984
979
|
version: number;
|
|
985
980
|
versionNonce: number;
|
|
986
|
-
index: import("
|
|
981
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
987
982
|
isDeleted: boolean;
|
|
988
983
|
groupIds: readonly string[];
|
|
989
984
|
frameId: string | null;
|
|
@@ -996,26 +991,24 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
996
991
|
locked: boolean;
|
|
997
992
|
customData?: Record<string, any> | undefined;
|
|
998
993
|
}> & Readonly<{
|
|
999
|
-
type: "
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
startArrowhead: import("../element/types").Arrowhead | null;
|
|
1005
|
-
endArrowhead: import("../element/types").Arrowhead | null;
|
|
994
|
+
type: "image";
|
|
995
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
996
|
+
status: "pending" | "saved" | "error";
|
|
997
|
+
scale: [number, number];
|
|
998
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1006
999
|
}> & {
|
|
1007
|
-
index: import("
|
|
1000
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1008
1001
|
}) | (Readonly<{
|
|
1009
1002
|
id: string;
|
|
1010
1003
|
x: number;
|
|
1011
1004
|
y: number;
|
|
1012
1005
|
strokeColor: string;
|
|
1013
1006
|
backgroundColor: string;
|
|
1014
|
-
fillStyle: import("
|
|
1007
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1015
1008
|
strokeWidth: number;
|
|
1016
|
-
strokeStyle: import("
|
|
1009
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1017
1010
|
roundness: {
|
|
1018
|
-
type: import("
|
|
1011
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1019
1012
|
value?: number | undefined;
|
|
1020
1013
|
} | null;
|
|
1021
1014
|
roughness: number;
|
|
@@ -1026,7 +1019,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1026
1019
|
seed: number;
|
|
1027
1020
|
version: number;
|
|
1028
1021
|
versionNonce: number;
|
|
1029
|
-
index: import("
|
|
1022
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1030
1023
|
isDeleted: boolean;
|
|
1031
1024
|
groupIds: readonly string[];
|
|
1032
1025
|
frameId: string | null;
|
|
@@ -1039,24 +1032,23 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1039
1032
|
locked: boolean;
|
|
1040
1033
|
customData?: Record<string, any> | undefined;
|
|
1041
1034
|
}> & Readonly<{
|
|
1042
|
-
type: "
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1035
|
+
type: "iframe";
|
|
1036
|
+
customData?: {
|
|
1037
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1038
|
+
} | undefined;
|
|
1047
1039
|
}> & {
|
|
1048
|
-
index: import("
|
|
1040
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1049
1041
|
}) | (Readonly<{
|
|
1050
1042
|
id: string;
|
|
1051
1043
|
x: number;
|
|
1052
1044
|
y: number;
|
|
1053
1045
|
strokeColor: string;
|
|
1054
1046
|
backgroundColor: string;
|
|
1055
|
-
fillStyle: import("
|
|
1047
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1056
1048
|
strokeWidth: number;
|
|
1057
|
-
strokeStyle: import("
|
|
1049
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1058
1050
|
roundness: {
|
|
1059
|
-
type: import("
|
|
1051
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1060
1052
|
value?: number | undefined;
|
|
1061
1053
|
} | null;
|
|
1062
1054
|
roughness: number;
|
|
@@ -1067,7 +1059,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1067
1059
|
seed: number;
|
|
1068
1060
|
version: number;
|
|
1069
1061
|
versionNonce: number;
|
|
1070
|
-
index: import("
|
|
1062
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1071
1063
|
isDeleted: boolean;
|
|
1072
1064
|
groupIds: readonly string[];
|
|
1073
1065
|
frameId: string | null;
|
|
@@ -1080,24 +1072,31 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1080
1072
|
locked: boolean;
|
|
1081
1073
|
customData?: Record<string, any> | undefined;
|
|
1082
1074
|
}> & Readonly<{
|
|
1083
|
-
type: "
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1075
|
+
type: "text";
|
|
1076
|
+
fontSize: number;
|
|
1077
|
+
fontFamily: number;
|
|
1078
|
+
text: string;
|
|
1079
|
+
textAlign: string;
|
|
1080
|
+
verticalAlign: string;
|
|
1081
|
+
containerId: string | null;
|
|
1082
|
+
originalText: string;
|
|
1083
|
+
autoResize: boolean;
|
|
1084
|
+
lineHeight: number & {
|
|
1085
|
+
_brand: "unitlessLineHeight";
|
|
1086
|
+
};
|
|
1088
1087
|
}> & {
|
|
1089
|
-
index: import("
|
|
1088
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1090
1089
|
}) | (Readonly<{
|
|
1091
1090
|
id: string;
|
|
1092
1091
|
x: number;
|
|
1093
1092
|
y: number;
|
|
1094
1093
|
strokeColor: string;
|
|
1095
1094
|
backgroundColor: string;
|
|
1096
|
-
fillStyle: import("
|
|
1095
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1097
1096
|
strokeWidth: number;
|
|
1098
|
-
strokeStyle: import("
|
|
1097
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1099
1098
|
roundness: {
|
|
1100
|
-
type: import("
|
|
1099
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1101
1100
|
value?: number | undefined;
|
|
1102
1101
|
} | null;
|
|
1103
1102
|
roughness: number;
|
|
@@ -1108,7 +1107,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1108
1107
|
seed: number;
|
|
1109
1108
|
version: number;
|
|
1110
1109
|
versionNonce: number;
|
|
1111
|
-
index: import("
|
|
1110
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1112
1111
|
isDeleted: boolean;
|
|
1113
1112
|
groupIds: readonly string[];
|
|
1114
1113
|
frameId: string | null;
|
|
@@ -1121,21 +1120,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1121
1120
|
locked: boolean;
|
|
1122
1121
|
customData?: Record<string, any> | undefined;
|
|
1123
1122
|
}> & {
|
|
1124
|
-
type: "
|
|
1125
|
-
name: string | null;
|
|
1123
|
+
type: "selection";
|
|
1126
1124
|
} & {
|
|
1127
|
-
index: import("
|
|
1125
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1128
1126
|
}) | (Readonly<{
|
|
1129
1127
|
id: string;
|
|
1130
1128
|
x: number;
|
|
1131
1129
|
y: number;
|
|
1132
1130
|
strokeColor: string;
|
|
1133
1131
|
backgroundColor: string;
|
|
1134
|
-
fillStyle: import("
|
|
1132
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1135
1133
|
strokeWidth: number;
|
|
1136
|
-
strokeStyle: import("
|
|
1134
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1137
1135
|
roundness: {
|
|
1138
|
-
type: import("
|
|
1136
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1139
1137
|
value?: number | undefined;
|
|
1140
1138
|
} | null;
|
|
1141
1139
|
roughness: number;
|
|
@@ -1146,7 +1144,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1146
1144
|
seed: number;
|
|
1147
1145
|
version: number;
|
|
1148
1146
|
versionNonce: number;
|
|
1149
|
-
index: import("
|
|
1147
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1150
1148
|
isDeleted: boolean;
|
|
1151
1149
|
groupIds: readonly string[];
|
|
1152
1150
|
frameId: string | null;
|
|
@@ -1159,21 +1157,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1159
1157
|
locked: boolean;
|
|
1160
1158
|
customData?: Record<string, any> | undefined;
|
|
1161
1159
|
}> & {
|
|
1162
|
-
type: "
|
|
1163
|
-
name: string | null;
|
|
1160
|
+
type: "ellipse";
|
|
1164
1161
|
} & {
|
|
1165
|
-
index: import("
|
|
1162
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1166
1163
|
}) | (Readonly<{
|
|
1167
1164
|
id: string;
|
|
1168
1165
|
x: number;
|
|
1169
1166
|
y: number;
|
|
1170
1167
|
strokeColor: string;
|
|
1171
1168
|
backgroundColor: string;
|
|
1172
|
-
fillStyle: import("
|
|
1169
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1173
1170
|
strokeWidth: number;
|
|
1174
|
-
strokeStyle: import("
|
|
1171
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1175
1172
|
roundness: {
|
|
1176
|
-
type: import("
|
|
1173
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1177
1174
|
value?: number | undefined;
|
|
1178
1175
|
} | null;
|
|
1179
1176
|
roughness: number;
|
|
@@ -1184,7 +1181,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1184
1181
|
seed: number;
|
|
1185
1182
|
version: number;
|
|
1186
1183
|
versionNonce: number;
|
|
1187
|
-
index: import("
|
|
1184
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1188
1185
|
isDeleted: boolean;
|
|
1189
1186
|
groupIds: readonly string[];
|
|
1190
1187
|
frameId: string | null;
|
|
@@ -1197,23 +1194,26 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1197
1194
|
locked: boolean;
|
|
1198
1195
|
customData?: Record<string, any> | undefined;
|
|
1199
1196
|
}> & Readonly<{
|
|
1200
|
-
type: "
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1197
|
+
type: "line" | "arrow";
|
|
1198
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1199
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1200
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1201
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1202
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1203
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1204
1204
|
}> & {
|
|
1205
|
-
index: import("
|
|
1205
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1206
1206
|
}) | (Readonly<{
|
|
1207
1207
|
id: string;
|
|
1208
1208
|
x: number;
|
|
1209
1209
|
y: number;
|
|
1210
1210
|
strokeColor: string;
|
|
1211
1211
|
backgroundColor: string;
|
|
1212
|
-
fillStyle: import("
|
|
1212
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1213
1213
|
strokeWidth: number;
|
|
1214
|
-
strokeStyle: import("
|
|
1214
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1215
1215
|
roundness: {
|
|
1216
|
-
type: import("
|
|
1216
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1217
1217
|
value?: number | undefined;
|
|
1218
1218
|
} | null;
|
|
1219
1219
|
roughness: number;
|
|
@@ -1224,7 +1224,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1224
1224
|
seed: number;
|
|
1225
1225
|
version: number;
|
|
1226
1226
|
versionNonce: number;
|
|
1227
|
-
index: import("
|
|
1227
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1228
1228
|
isDeleted: boolean;
|
|
1229
1229
|
groupIds: readonly string[];
|
|
1230
1230
|
frameId: string | null;
|
|
@@ -1237,10 +1237,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1237
1237
|
locked: boolean;
|
|
1238
1238
|
customData?: Record<string, any> | undefined;
|
|
1239
1239
|
}> & Readonly<{
|
|
1240
|
-
type: "
|
|
1240
|
+
type: "freedraw";
|
|
1241
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1242
|
+
pressures: readonly number[];
|
|
1243
|
+
simulatePressure: boolean;
|
|
1244
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1241
1245
|
}> & {
|
|
1242
|
-
index: import("
|
|
1243
|
-
}))[];
|
|
1246
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1247
|
+
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
1244
1248
|
appState: {
|
|
1245
1249
|
selectedElementIds: {
|
|
1246
1250
|
[x: string]: true;
|