@excalidraw/common 0.18.0-5fffc47 → 0.18.0-6135548
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/dist/dev/index.js +1299 -256
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +16 -28
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +48 -36
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/binding.d.ts +58 -44
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +6 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +7 -3
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +16 -20
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +5 -2
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +123 -181
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +93 -893
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +95 -159
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +42 -64
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +232 -347
- package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +159 -219
- package/dist/types/excalidraw/actions/actionLink.d.ts +45 -65
- package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -58
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +36 -58
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -63
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +15 -14
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +58 -58
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +12 -19
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +21 -12
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +321 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +159 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +6 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +22 -20
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +7 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
3
|
export declare const actionSelectAllElementsInFrame: {
|
|
@@ -7,7 +6,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
7
6
|
trackEvent: {
|
|
8
7
|
category: "canvas";
|
|
9
8
|
};
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
10
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
11
|
appState: {
|
|
13
12
|
selectedElementIds: Record<string, true>;
|
|
@@ -18,10 +17,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
18
17
|
} | null;
|
|
19
18
|
showWelcomeScreen: boolean;
|
|
20
19
|
isLoading: boolean;
|
|
21
|
-
errorMessage:
|
|
20
|
+
errorMessage: React.ReactNode;
|
|
22
21
|
activeEmbeddable: {
|
|
23
22
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
-
state: "
|
|
23
|
+
state: "hover" | "active";
|
|
25
24
|
} | null;
|
|
26
25
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
26
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -29,7 +28,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
29
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
29
|
isBindingEnabled: boolean;
|
|
31
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
|
|
31
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
32
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
33
|
frameRendering: {
|
|
35
34
|
enabled: boolean;
|
|
@@ -57,19 +56,19 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
57
56
|
exportScale: number;
|
|
58
57
|
currentItemStrokeColor: string;
|
|
59
58
|
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle:
|
|
59
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
61
60
|
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle:
|
|
61
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
63
62
|
currentItemRoughness: number;
|
|
64
63
|
currentItemOpacity: number;
|
|
65
|
-
currentItemFontFamily:
|
|
64
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
66
65
|
currentItemFontSize: number;
|
|
67
|
-
currentItemTextAlign:
|
|
66
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
68
67
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
68
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
-
currentHoveredFontFamily:
|
|
69
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
71
70
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
|
-
currentItemArrowType: "
|
|
71
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
73
72
|
viewBackgroundColor: string;
|
|
74
73
|
scrollX: number;
|
|
75
74
|
scrollY: number;
|
|
@@ -78,26 +77,26 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
77
|
name: string | null;
|
|
79
78
|
isResizing: boolean;
|
|
80
79
|
isRotating: boolean;
|
|
81
|
-
zoom:
|
|
82
|
-
value: import("../types").NormalizedZoomValue;
|
|
83
|
-
}>;
|
|
80
|
+
zoom: import("../types").Zoom;
|
|
84
81
|
openMenu: "canvas" | null;
|
|
85
|
-
openPopup: "
|
|
82
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
86
83
|
openSidebar: {
|
|
87
|
-
name:
|
|
88
|
-
tab?:
|
|
84
|
+
name: import("../types").SidebarName;
|
|
85
|
+
tab?: import("../types").SidebarTabName;
|
|
89
86
|
} | null;
|
|
90
|
-
openDialog: {
|
|
87
|
+
openDialog: null | {
|
|
91
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
92
89
|
} | {
|
|
93
90
|
name: "ttd";
|
|
94
|
-
tab: "
|
|
91
|
+
tab: "text-to-diagram" | "mermaid";
|
|
95
92
|
} | {
|
|
96
93
|
name: "commandPalette";
|
|
94
|
+
} | {
|
|
95
|
+
name: "settings";
|
|
97
96
|
} | {
|
|
98
97
|
name: "elementLinkSelector";
|
|
99
|
-
sourceElementId:
|
|
100
|
-
}
|
|
98
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
99
|
+
};
|
|
101
100
|
defaultSidebarDockedPreference: boolean;
|
|
102
101
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
103
102
|
hoveredElementIds: Readonly<{
|
|
@@ -110,8 +109,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
110
109
|
shouldCacheIgnoreZoom: boolean;
|
|
111
110
|
toast: {
|
|
112
111
|
message: string;
|
|
113
|
-
closable?: boolean
|
|
114
|
-
duration?: number
|
|
112
|
+
closable?: boolean;
|
|
113
|
+
duration?: number;
|
|
115
114
|
} | null;
|
|
116
115
|
zenModeEnabled: boolean;
|
|
117
116
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -122,32 +121,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
122
121
|
selectedGroupIds: {
|
|
123
122
|
[groupId: string]: boolean;
|
|
124
123
|
};
|
|
125
|
-
editingGroupId:
|
|
124
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
126
125
|
width: number;
|
|
127
126
|
height: number;
|
|
128
127
|
offsetTop: number;
|
|
129
128
|
offsetLeft: number;
|
|
130
129
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
131
|
-
collaborators: Map<import("../types").SocketId,
|
|
132
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
133
|
-
button?: "up" | "down" | undefined;
|
|
134
|
-
selectedElementIds?: Readonly<{
|
|
135
|
-
[id: string]: true;
|
|
136
|
-
}> | undefined;
|
|
137
|
-
username?: string | null | undefined;
|
|
138
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
139
|
-
color?: {
|
|
140
|
-
background: string;
|
|
141
|
-
stroke: string;
|
|
142
|
-
} | undefined;
|
|
143
|
-
avatarUrl?: string | undefined;
|
|
144
|
-
id?: string | undefined;
|
|
145
|
-
socketId?: import("../types").SocketId | undefined;
|
|
146
|
-
isCurrentUser?: boolean | undefined;
|
|
147
|
-
isInCall?: boolean | undefined;
|
|
148
|
-
isSpeaking?: boolean | undefined;
|
|
149
|
-
isMuted?: boolean | undefined;
|
|
150
|
-
}>>;
|
|
130
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
151
131
|
stats: {
|
|
152
132
|
open: boolean;
|
|
153
133
|
panels: number;
|
|
@@ -160,7 +140,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
160
140
|
shown: true;
|
|
161
141
|
data: import("../charts").Spreadsheet;
|
|
162
142
|
};
|
|
163
|
-
showHyperlinkPopup: false | "
|
|
143
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
164
144
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
165
145
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
146
|
originSnapOffset: {
|
|
@@ -171,16 +151,16 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
171
151
|
userToFollow: import("../types").UserToFollow | null;
|
|
172
152
|
followedBy: Set<import("../types").SocketId>;
|
|
173
153
|
isCropping: boolean;
|
|
174
|
-
croppingElementId:
|
|
154
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
175
155
|
searchMatches: Readonly<{
|
|
176
|
-
focusedId:
|
|
156
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
177
157
|
matches: readonly import("../types").SearchMatch[];
|
|
178
158
|
}> | null;
|
|
179
159
|
activeLockedId: string | null;
|
|
180
160
|
lockedMultiSelections: {
|
|
181
161
|
[groupId: string]: true;
|
|
182
162
|
};
|
|
183
|
-
|
|
163
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
164
|
};
|
|
185
165
|
captureUpdate: "IMMEDIATELY";
|
|
186
166
|
} | {
|
|
@@ -198,7 +178,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
198
178
|
trackEvent: {
|
|
199
179
|
category: "history";
|
|
200
180
|
};
|
|
201
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
181
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
202
182
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
203
183
|
appState: {
|
|
204
184
|
selectedElementIds: {
|
|
@@ -211,10 +191,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
211
191
|
} | null;
|
|
212
192
|
showWelcomeScreen: boolean;
|
|
213
193
|
isLoading: boolean;
|
|
214
|
-
errorMessage:
|
|
194
|
+
errorMessage: React.ReactNode;
|
|
215
195
|
activeEmbeddable: {
|
|
216
196
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
217
|
-
state: "
|
|
197
|
+
state: "hover" | "active";
|
|
218
198
|
} | null;
|
|
219
199
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
220
200
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -222,7 +202,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
222
202
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
203
|
isBindingEnabled: boolean;
|
|
224
204
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
225
|
-
|
|
205
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
226
206
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
227
207
|
frameRendering: {
|
|
228
208
|
enabled: boolean;
|
|
@@ -250,19 +230,19 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
250
230
|
exportScale: number;
|
|
251
231
|
currentItemStrokeColor: string;
|
|
252
232
|
currentItemBackgroundColor: string;
|
|
253
|
-
currentItemFillStyle:
|
|
233
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
254
234
|
currentItemStrokeWidth: number;
|
|
255
|
-
currentItemStrokeStyle:
|
|
235
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
256
236
|
currentItemRoughness: number;
|
|
257
237
|
currentItemOpacity: number;
|
|
258
|
-
currentItemFontFamily:
|
|
238
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
259
239
|
currentItemFontSize: number;
|
|
260
|
-
currentItemTextAlign:
|
|
240
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
261
241
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
262
242
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
263
|
-
currentHoveredFontFamily:
|
|
243
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
264
244
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
265
|
-
currentItemArrowType: "
|
|
245
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
266
246
|
viewBackgroundColor: string;
|
|
267
247
|
scrollX: number;
|
|
268
248
|
scrollY: number;
|
|
@@ -271,26 +251,26 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
271
251
|
name: string | null;
|
|
272
252
|
isResizing: boolean;
|
|
273
253
|
isRotating: boolean;
|
|
274
|
-
zoom:
|
|
275
|
-
value: import("../types").NormalizedZoomValue;
|
|
276
|
-
}>;
|
|
254
|
+
zoom: import("../types").Zoom;
|
|
277
255
|
openMenu: "canvas" | null;
|
|
278
|
-
openPopup: "
|
|
256
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
279
257
|
openSidebar: {
|
|
280
|
-
name:
|
|
281
|
-
tab?:
|
|
258
|
+
name: import("../types").SidebarName;
|
|
259
|
+
tab?: import("../types").SidebarTabName;
|
|
282
260
|
} | null;
|
|
283
|
-
openDialog: {
|
|
261
|
+
openDialog: null | {
|
|
284
262
|
name: "imageExport" | "help" | "jsonExport";
|
|
285
263
|
} | {
|
|
286
264
|
name: "ttd";
|
|
287
|
-
tab: "
|
|
265
|
+
tab: "text-to-diagram" | "mermaid";
|
|
288
266
|
} | {
|
|
289
267
|
name: "commandPalette";
|
|
268
|
+
} | {
|
|
269
|
+
name: "settings";
|
|
290
270
|
} | {
|
|
291
271
|
name: "elementLinkSelector";
|
|
292
|
-
sourceElementId:
|
|
293
|
-
}
|
|
272
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
273
|
+
};
|
|
294
274
|
defaultSidebarDockedPreference: boolean;
|
|
295
275
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
296
276
|
hoveredElementIds: Readonly<{
|
|
@@ -303,8 +283,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
303
283
|
shouldCacheIgnoreZoom: boolean;
|
|
304
284
|
toast: {
|
|
305
285
|
message: string;
|
|
306
|
-
closable?: boolean
|
|
307
|
-
duration?: number
|
|
286
|
+
closable?: boolean;
|
|
287
|
+
duration?: number;
|
|
308
288
|
} | null;
|
|
309
289
|
zenModeEnabled: boolean;
|
|
310
290
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -315,32 +295,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
315
295
|
selectedGroupIds: {
|
|
316
296
|
[groupId: string]: boolean;
|
|
317
297
|
};
|
|
318
|
-
editingGroupId:
|
|
298
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
319
299
|
width: number;
|
|
320
300
|
height: number;
|
|
321
301
|
offsetTop: number;
|
|
322
302
|
offsetLeft: number;
|
|
323
303
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
324
|
-
collaborators: Map<import("../types").SocketId,
|
|
325
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
326
|
-
button?: "up" | "down" | undefined;
|
|
327
|
-
selectedElementIds?: Readonly<{
|
|
328
|
-
[id: string]: true;
|
|
329
|
-
}> | undefined;
|
|
330
|
-
username?: string | null | undefined;
|
|
331
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
332
|
-
color?: {
|
|
333
|
-
background: string;
|
|
334
|
-
stroke: string;
|
|
335
|
-
} | undefined;
|
|
336
|
-
avatarUrl?: string | undefined;
|
|
337
|
-
id?: string | undefined;
|
|
338
|
-
socketId?: import("../types").SocketId | undefined;
|
|
339
|
-
isCurrentUser?: boolean | undefined;
|
|
340
|
-
isInCall?: boolean | undefined;
|
|
341
|
-
isSpeaking?: boolean | undefined;
|
|
342
|
-
isMuted?: boolean | undefined;
|
|
343
|
-
}>>;
|
|
304
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
344
305
|
stats: {
|
|
345
306
|
open: boolean;
|
|
346
307
|
panels: number;
|
|
@@ -353,7 +314,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
353
314
|
shown: true;
|
|
354
315
|
data: import("../charts").Spreadsheet;
|
|
355
316
|
};
|
|
356
|
-
showHyperlinkPopup: false | "
|
|
317
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
357
318
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
358
319
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
359
320
|
originSnapOffset: {
|
|
@@ -364,16 +325,16 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
364
325
|
userToFollow: import("../types").UserToFollow | null;
|
|
365
326
|
followedBy: Set<import("../types").SocketId>;
|
|
366
327
|
isCropping: boolean;
|
|
367
|
-
croppingElementId:
|
|
328
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
368
329
|
searchMatches: Readonly<{
|
|
369
|
-
focusedId:
|
|
330
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
370
331
|
matches: readonly import("../types").SearchMatch[];
|
|
371
332
|
}> | null;
|
|
372
333
|
activeLockedId: string | null;
|
|
373
334
|
lockedMultiSelections: {
|
|
374
335
|
[groupId: string]: true;
|
|
375
336
|
};
|
|
376
|
-
|
|
337
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
377
338
|
};
|
|
378
339
|
captureUpdate: "IMMEDIATELY";
|
|
379
340
|
} | {
|
|
@@ -408,10 +369,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
408
369
|
} | null;
|
|
409
370
|
showWelcomeScreen: boolean;
|
|
410
371
|
isLoading: boolean;
|
|
411
|
-
errorMessage:
|
|
372
|
+
errorMessage: React.ReactNode;
|
|
412
373
|
activeEmbeddable: {
|
|
413
374
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
414
|
-
state: "
|
|
375
|
+
state: "hover" | "active";
|
|
415
376
|
} | null;
|
|
416
377
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
417
378
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -419,7 +380,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
419
380
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
420
381
|
isBindingEnabled: boolean;
|
|
421
382
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
422
|
-
|
|
383
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
423
384
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
424
385
|
editingFrame: string | null;
|
|
425
386
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
@@ -441,19 +402,19 @@ export declare const actionupdateFrameRendering: {
|
|
|
441
402
|
exportScale: number;
|
|
442
403
|
currentItemStrokeColor: string;
|
|
443
404
|
currentItemBackgroundColor: string;
|
|
444
|
-
currentItemFillStyle:
|
|
405
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
445
406
|
currentItemStrokeWidth: number;
|
|
446
|
-
currentItemStrokeStyle:
|
|
407
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
447
408
|
currentItemRoughness: number;
|
|
448
409
|
currentItemOpacity: number;
|
|
449
|
-
currentItemFontFamily:
|
|
410
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
450
411
|
currentItemFontSize: number;
|
|
451
|
-
currentItemTextAlign:
|
|
412
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
452
413
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
453
414
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
454
|
-
currentHoveredFontFamily:
|
|
415
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
455
416
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
456
|
-
currentItemArrowType: "
|
|
417
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
457
418
|
viewBackgroundColor: string;
|
|
458
419
|
scrollX: number;
|
|
459
420
|
scrollY: number;
|
|
@@ -462,26 +423,26 @@ export declare const actionupdateFrameRendering: {
|
|
|
462
423
|
name: string | null;
|
|
463
424
|
isResizing: boolean;
|
|
464
425
|
isRotating: boolean;
|
|
465
|
-
zoom:
|
|
466
|
-
value: import("../types").NormalizedZoomValue;
|
|
467
|
-
}>;
|
|
426
|
+
zoom: import("../types").Zoom;
|
|
468
427
|
openMenu: "canvas" | null;
|
|
469
|
-
openPopup: "
|
|
428
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
470
429
|
openSidebar: {
|
|
471
|
-
name:
|
|
472
|
-
tab?:
|
|
430
|
+
name: import("../types").SidebarName;
|
|
431
|
+
tab?: import("../types").SidebarTabName;
|
|
473
432
|
} | null;
|
|
474
|
-
openDialog: {
|
|
433
|
+
openDialog: null | {
|
|
475
434
|
name: "imageExport" | "help" | "jsonExport";
|
|
476
435
|
} | {
|
|
477
436
|
name: "ttd";
|
|
478
|
-
tab: "
|
|
437
|
+
tab: "text-to-diagram" | "mermaid";
|
|
479
438
|
} | {
|
|
480
439
|
name: "commandPalette";
|
|
440
|
+
} | {
|
|
441
|
+
name: "settings";
|
|
481
442
|
} | {
|
|
482
443
|
name: "elementLinkSelector";
|
|
483
|
-
sourceElementId:
|
|
484
|
-
}
|
|
444
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
445
|
+
};
|
|
485
446
|
defaultSidebarDockedPreference: boolean;
|
|
486
447
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
487
448
|
selectedElementIds: Readonly<{
|
|
@@ -497,8 +458,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
497
458
|
shouldCacheIgnoreZoom: boolean;
|
|
498
459
|
toast: {
|
|
499
460
|
message: string;
|
|
500
|
-
closable?: boolean
|
|
501
|
-
duration?: number
|
|
461
|
+
closable?: boolean;
|
|
462
|
+
duration?: number;
|
|
502
463
|
} | null;
|
|
503
464
|
zenModeEnabled: boolean;
|
|
504
465
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -509,32 +470,13 @@ export declare const actionupdateFrameRendering: {
|
|
|
509
470
|
selectedGroupIds: {
|
|
510
471
|
[groupId: string]: boolean;
|
|
511
472
|
};
|
|
512
|
-
editingGroupId:
|
|
473
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
513
474
|
width: number;
|
|
514
475
|
height: number;
|
|
515
476
|
offsetTop: number;
|
|
516
477
|
offsetLeft: number;
|
|
517
478
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
518
|
-
collaborators: Map<import("../types").SocketId,
|
|
519
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
520
|
-
button?: "up" | "down" | undefined;
|
|
521
|
-
selectedElementIds?: Readonly<{
|
|
522
|
-
[id: string]: true;
|
|
523
|
-
}> | undefined;
|
|
524
|
-
username?: string | null | undefined;
|
|
525
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
526
|
-
color?: {
|
|
527
|
-
background: string;
|
|
528
|
-
stroke: string;
|
|
529
|
-
} | undefined;
|
|
530
|
-
avatarUrl?: string | undefined;
|
|
531
|
-
id?: string | undefined;
|
|
532
|
-
socketId?: import("../types").SocketId | undefined;
|
|
533
|
-
isCurrentUser?: boolean | undefined;
|
|
534
|
-
isInCall?: boolean | undefined;
|
|
535
|
-
isSpeaking?: boolean | undefined;
|
|
536
|
-
isMuted?: boolean | undefined;
|
|
537
|
-
}>>;
|
|
479
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
538
480
|
stats: {
|
|
539
481
|
open: boolean;
|
|
540
482
|
panels: number;
|
|
@@ -547,7 +489,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
547
489
|
shown: true;
|
|
548
490
|
data: import("../charts").Spreadsheet;
|
|
549
491
|
};
|
|
550
|
-
showHyperlinkPopup: false | "
|
|
492
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
551
493
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
552
494
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
553
495
|
originSnapOffset: {
|
|
@@ -558,16 +500,16 @@ export declare const actionupdateFrameRendering: {
|
|
|
558
500
|
userToFollow: import("../types").UserToFollow | null;
|
|
559
501
|
followedBy: Set<import("../types").SocketId>;
|
|
560
502
|
isCropping: boolean;
|
|
561
|
-
croppingElementId:
|
|
503
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
562
504
|
searchMatches: Readonly<{
|
|
563
|
-
focusedId:
|
|
505
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
564
506
|
matches: readonly import("../types").SearchMatch[];
|
|
565
507
|
}> | null;
|
|
566
508
|
activeLockedId: string | null;
|
|
567
509
|
lockedMultiSelections: {
|
|
568
510
|
[groupId: string]: true;
|
|
569
511
|
};
|
|
570
|
-
|
|
512
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
571
513
|
};
|
|
572
514
|
captureUpdate: "EVENTUALLY";
|
|
573
515
|
};
|
|
@@ -583,7 +525,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
583
525
|
};
|
|
584
526
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
585
527
|
viewMode: false;
|
|
586
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
528
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
587
529
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
588
530
|
appState: {
|
|
589
531
|
activeTool: {
|
|
@@ -598,10 +540,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
598
540
|
} | null;
|
|
599
541
|
showWelcomeScreen: boolean;
|
|
600
542
|
isLoading: boolean;
|
|
601
|
-
errorMessage:
|
|
543
|
+
errorMessage: React.ReactNode;
|
|
602
544
|
activeEmbeddable: {
|
|
603
545
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
604
|
-
state: "
|
|
546
|
+
state: "hover" | "active";
|
|
605
547
|
} | null;
|
|
606
548
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
607
549
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -609,7 +551,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
609
551
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
610
552
|
isBindingEnabled: boolean;
|
|
611
553
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
612
|
-
|
|
554
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
613
555
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
614
556
|
frameRendering: {
|
|
615
557
|
enabled: boolean;
|
|
@@ -632,19 +574,19 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
632
574
|
exportScale: number;
|
|
633
575
|
currentItemStrokeColor: string;
|
|
634
576
|
currentItemBackgroundColor: string;
|
|
635
|
-
currentItemFillStyle:
|
|
577
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
636
578
|
currentItemStrokeWidth: number;
|
|
637
|
-
currentItemStrokeStyle:
|
|
579
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
638
580
|
currentItemRoughness: number;
|
|
639
581
|
currentItemOpacity: number;
|
|
640
|
-
currentItemFontFamily:
|
|
582
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
641
583
|
currentItemFontSize: number;
|
|
642
|
-
currentItemTextAlign:
|
|
584
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
643
585
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
644
586
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
645
|
-
currentHoveredFontFamily:
|
|
587
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
646
588
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
647
|
-
currentItemArrowType: "
|
|
589
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
648
590
|
viewBackgroundColor: string;
|
|
649
591
|
scrollX: number;
|
|
650
592
|
scrollY: number;
|
|
@@ -653,26 +595,26 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
653
595
|
name: string | null;
|
|
654
596
|
isResizing: boolean;
|
|
655
597
|
isRotating: boolean;
|
|
656
|
-
zoom:
|
|
657
|
-
value: import("../types").NormalizedZoomValue;
|
|
658
|
-
}>;
|
|
598
|
+
zoom: import("../types").Zoom;
|
|
659
599
|
openMenu: "canvas" | null;
|
|
660
|
-
openPopup: "
|
|
600
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
661
601
|
openSidebar: {
|
|
662
|
-
name:
|
|
663
|
-
tab?:
|
|
602
|
+
name: import("../types").SidebarName;
|
|
603
|
+
tab?: import("../types").SidebarTabName;
|
|
664
604
|
} | null;
|
|
665
|
-
openDialog: {
|
|
605
|
+
openDialog: null | {
|
|
666
606
|
name: "imageExport" | "help" | "jsonExport";
|
|
667
607
|
} | {
|
|
668
608
|
name: "ttd";
|
|
669
|
-
tab: "
|
|
609
|
+
tab: "text-to-diagram" | "mermaid";
|
|
670
610
|
} | {
|
|
671
611
|
name: "commandPalette";
|
|
612
|
+
} | {
|
|
613
|
+
name: "settings";
|
|
672
614
|
} | {
|
|
673
615
|
name: "elementLinkSelector";
|
|
674
|
-
sourceElementId:
|
|
675
|
-
}
|
|
616
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
617
|
+
};
|
|
676
618
|
defaultSidebarDockedPreference: boolean;
|
|
677
619
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
678
620
|
selectedElementIds: Readonly<{
|
|
@@ -688,8 +630,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
688
630
|
shouldCacheIgnoreZoom: boolean;
|
|
689
631
|
toast: {
|
|
690
632
|
message: string;
|
|
691
|
-
closable?: boolean
|
|
692
|
-
duration?: number
|
|
633
|
+
closable?: boolean;
|
|
634
|
+
duration?: number;
|
|
693
635
|
} | null;
|
|
694
636
|
zenModeEnabled: boolean;
|
|
695
637
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -700,32 +642,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
700
642
|
selectedGroupIds: {
|
|
701
643
|
[groupId: string]: boolean;
|
|
702
644
|
};
|
|
703
|
-
editingGroupId:
|
|
645
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
704
646
|
width: number;
|
|
705
647
|
height: number;
|
|
706
648
|
offsetTop: number;
|
|
707
649
|
offsetLeft: number;
|
|
708
650
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
709
|
-
collaborators: Map<import("../types").SocketId,
|
|
710
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
711
|
-
button?: "up" | "down" | undefined;
|
|
712
|
-
selectedElementIds?: Readonly<{
|
|
713
|
-
[id: string]: true;
|
|
714
|
-
}> | undefined;
|
|
715
|
-
username?: string | null | undefined;
|
|
716
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
717
|
-
color?: {
|
|
718
|
-
background: string;
|
|
719
|
-
stroke: string;
|
|
720
|
-
} | undefined;
|
|
721
|
-
avatarUrl?: string | undefined;
|
|
722
|
-
id?: string | undefined;
|
|
723
|
-
socketId?: import("../types").SocketId | undefined;
|
|
724
|
-
isCurrentUser?: boolean | undefined;
|
|
725
|
-
isInCall?: boolean | undefined;
|
|
726
|
-
isSpeaking?: boolean | undefined;
|
|
727
|
-
isMuted?: boolean | undefined;
|
|
728
|
-
}>>;
|
|
651
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
729
652
|
stats: {
|
|
730
653
|
open: boolean;
|
|
731
654
|
panels: number;
|
|
@@ -738,7 +661,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
738
661
|
shown: true;
|
|
739
662
|
data: import("../charts").Spreadsheet;
|
|
740
663
|
};
|
|
741
|
-
showHyperlinkPopup: false | "
|
|
664
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
742
665
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
743
666
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
744
667
|
originSnapOffset: {
|
|
@@ -749,16 +672,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
749
672
|
userToFollow: import("../types").UserToFollow | null;
|
|
750
673
|
followedBy: Set<import("../types").SocketId>;
|
|
751
674
|
isCropping: boolean;
|
|
752
|
-
croppingElementId:
|
|
675
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
753
676
|
searchMatches: Readonly<{
|
|
754
|
-
focusedId:
|
|
677
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
755
678
|
matches: readonly import("../types").SearchMatch[];
|
|
756
679
|
}> | null;
|
|
757
680
|
activeLockedId: string | null;
|
|
758
681
|
lockedMultiSelections: {
|
|
759
682
|
[groupId: string]: true;
|
|
760
683
|
};
|
|
761
|
-
|
|
684
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
762
685
|
};
|
|
763
686
|
captureUpdate: "EVENTUALLY";
|
|
764
687
|
};
|
|
@@ -773,7 +696,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
773
696
|
category: "element";
|
|
774
697
|
};
|
|
775
698
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
776
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
699
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
777
700
|
elements: ((Readonly<{
|
|
778
701
|
id: string;
|
|
779
702
|
x: number;
|
|
@@ -783,43 +706,34 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
783
706
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
784
707
|
strokeWidth: number;
|
|
785
708
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
786
|
-
roundness: {
|
|
709
|
+
roundness: null | {
|
|
787
710
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
788
|
-
value?: number
|
|
789
|
-
}
|
|
711
|
+
value?: number;
|
|
712
|
+
};
|
|
790
713
|
roughness: number;
|
|
791
714
|
opacity: number;
|
|
792
715
|
width: number;
|
|
793
716
|
height: number;
|
|
794
|
-
angle: import("
|
|
717
|
+
angle: import("@excalidraw/math").Radians;
|
|
795
718
|
seed: number;
|
|
796
719
|
version: number;
|
|
797
720
|
versionNonce: number;
|
|
798
721
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
799
722
|
isDeleted: boolean;
|
|
800
|
-
groupIds: readonly
|
|
723
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
801
724
|
frameId: string | null;
|
|
802
|
-
boundElements: readonly
|
|
803
|
-
id: string;
|
|
804
|
-
type: "text" | "arrow";
|
|
805
|
-
}>[] | null;
|
|
725
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
806
726
|
updated: number;
|
|
807
727
|
link: string | null;
|
|
808
728
|
locked: boolean;
|
|
809
|
-
customData?: Record<string, any
|
|
729
|
+
customData?: Record<string, any>;
|
|
810
730
|
}> & Readonly<{
|
|
811
|
-
type: "
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
containerId: string | null;
|
|
818
|
-
originalText: string;
|
|
819
|
-
autoResize: boolean;
|
|
820
|
-
lineHeight: number & {
|
|
821
|
-
_brand: "unitlessLineHeight";
|
|
822
|
-
};
|
|
731
|
+
type: "line" | "arrow";
|
|
732
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
733
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
734
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
735
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
736
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
823
737
|
}> & {
|
|
824
738
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
825
739
|
}) | (Readonly<{
|
|
@@ -831,32 +745,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
831
745
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
832
746
|
strokeWidth: number;
|
|
833
747
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
834
|
-
roundness: {
|
|
748
|
+
roundness: null | {
|
|
835
749
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
836
|
-
value?: number
|
|
837
|
-
}
|
|
750
|
+
value?: number;
|
|
751
|
+
};
|
|
838
752
|
roughness: number;
|
|
839
753
|
opacity: number;
|
|
840
754
|
width: number;
|
|
841
755
|
height: number;
|
|
842
|
-
angle: import("
|
|
756
|
+
angle: import("@excalidraw/math").Radians;
|
|
843
757
|
seed: number;
|
|
844
758
|
version: number;
|
|
845
759
|
versionNonce: number;
|
|
846
760
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
847
761
|
isDeleted: boolean;
|
|
848
|
-
groupIds: readonly
|
|
762
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
849
763
|
frameId: string | null;
|
|
850
|
-
boundElements: readonly
|
|
851
|
-
id: string;
|
|
852
|
-
type: "text" | "arrow";
|
|
853
|
-
}>[] | null;
|
|
764
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
854
765
|
updated: number;
|
|
855
766
|
link: string | null;
|
|
856
767
|
locked: boolean;
|
|
857
|
-
customData?: Record<string, any
|
|
768
|
+
customData?: Record<string, any>;
|
|
858
769
|
}> & {
|
|
859
|
-
type: "
|
|
770
|
+
type: "selection";
|
|
860
771
|
} & {
|
|
861
772
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
862
773
|
}) | (Readonly<{
|
|
@@ -868,32 +779,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
868
779
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
869
780
|
strokeWidth: number;
|
|
870
781
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
871
|
-
roundness: {
|
|
782
|
+
roundness: null | {
|
|
872
783
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
873
|
-
value?: number
|
|
874
|
-
}
|
|
784
|
+
value?: number;
|
|
785
|
+
};
|
|
875
786
|
roughness: number;
|
|
876
787
|
opacity: number;
|
|
877
788
|
width: number;
|
|
878
789
|
height: number;
|
|
879
|
-
angle: import("
|
|
790
|
+
angle: import("@excalidraw/math").Radians;
|
|
880
791
|
seed: number;
|
|
881
792
|
version: number;
|
|
882
793
|
versionNonce: number;
|
|
883
794
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
884
795
|
isDeleted: boolean;
|
|
885
|
-
groupIds: readonly
|
|
796
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
886
797
|
frameId: string | null;
|
|
887
|
-
boundElements: readonly
|
|
888
|
-
id: string;
|
|
889
|
-
type: "text" | "arrow";
|
|
890
|
-
}>[] | null;
|
|
798
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
891
799
|
updated: number;
|
|
892
800
|
link: string | null;
|
|
893
801
|
locked: boolean;
|
|
894
|
-
customData?: Record<string, any
|
|
802
|
+
customData?: Record<string, any>;
|
|
895
803
|
}> & {
|
|
896
|
-
type: "
|
|
804
|
+
type: "rectangle";
|
|
897
805
|
} & {
|
|
898
806
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
899
807
|
}) | (Readonly<{
|
|
@@ -905,33 +813,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
905
813
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
906
814
|
strokeWidth: number;
|
|
907
815
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
908
|
-
roundness: {
|
|
816
|
+
roundness: null | {
|
|
909
817
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
910
|
-
value?: number
|
|
911
|
-
}
|
|
818
|
+
value?: number;
|
|
819
|
+
};
|
|
912
820
|
roughness: number;
|
|
913
821
|
opacity: number;
|
|
914
822
|
width: number;
|
|
915
823
|
height: number;
|
|
916
|
-
angle: import("
|
|
824
|
+
angle: import("@excalidraw/math").Radians;
|
|
917
825
|
seed: number;
|
|
918
826
|
version: number;
|
|
919
827
|
versionNonce: number;
|
|
920
828
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
921
829
|
isDeleted: boolean;
|
|
922
|
-
groupIds: readonly
|
|
830
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
923
831
|
frameId: string | null;
|
|
924
|
-
boundElements: readonly
|
|
925
|
-
id: string;
|
|
926
|
-
type: "text" | "arrow";
|
|
927
|
-
}>[] | null;
|
|
832
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
928
833
|
updated: number;
|
|
929
834
|
link: string | null;
|
|
930
835
|
locked: boolean;
|
|
931
|
-
customData?: Record<string, any
|
|
836
|
+
customData?: Record<string, any>;
|
|
932
837
|
}> & {
|
|
933
|
-
type: "
|
|
934
|
-
name: string | null;
|
|
838
|
+
type: "diamond";
|
|
935
839
|
} & {
|
|
936
840
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
937
841
|
}) | (Readonly<{
|
|
@@ -943,33 +847,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
943
847
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
944
848
|
strokeWidth: number;
|
|
945
849
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
946
|
-
roundness: {
|
|
850
|
+
roundness: null | {
|
|
947
851
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
948
|
-
value?: number
|
|
949
|
-
}
|
|
852
|
+
value?: number;
|
|
853
|
+
};
|
|
950
854
|
roughness: number;
|
|
951
855
|
opacity: number;
|
|
952
856
|
width: number;
|
|
953
857
|
height: number;
|
|
954
|
-
angle: import("
|
|
858
|
+
angle: import("@excalidraw/math").Radians;
|
|
955
859
|
seed: number;
|
|
956
860
|
version: number;
|
|
957
861
|
versionNonce: number;
|
|
958
862
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
959
863
|
isDeleted: boolean;
|
|
960
|
-
groupIds: readonly
|
|
864
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
961
865
|
frameId: string | null;
|
|
962
|
-
boundElements: readonly
|
|
963
|
-
id: string;
|
|
964
|
-
type: "text" | "arrow";
|
|
965
|
-
}>[] | null;
|
|
866
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
966
867
|
updated: number;
|
|
967
868
|
link: string | null;
|
|
968
869
|
locked: boolean;
|
|
969
|
-
customData?: Record<string, any
|
|
870
|
+
customData?: Record<string, any>;
|
|
970
871
|
}> & {
|
|
971
|
-
type: "
|
|
972
|
-
name: string | null;
|
|
872
|
+
type: "ellipse";
|
|
973
873
|
} & {
|
|
974
874
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
975
875
|
}) | (Readonly<{
|
|
@@ -981,30 +881,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
981
881
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
982
882
|
strokeWidth: number;
|
|
983
883
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
984
|
-
roundness: {
|
|
884
|
+
roundness: null | {
|
|
985
885
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
986
|
-
value?: number
|
|
987
|
-
}
|
|
886
|
+
value?: number;
|
|
887
|
+
};
|
|
988
888
|
roughness: number;
|
|
989
889
|
opacity: number;
|
|
990
890
|
width: number;
|
|
991
891
|
height: number;
|
|
992
|
-
angle: import("
|
|
892
|
+
angle: import("@excalidraw/math").Radians;
|
|
993
893
|
seed: number;
|
|
994
894
|
version: number;
|
|
995
895
|
versionNonce: number;
|
|
996
896
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
997
897
|
isDeleted: boolean;
|
|
998
|
-
groupIds: readonly
|
|
898
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
999
899
|
frameId: string | null;
|
|
1000
|
-
boundElements: readonly
|
|
1001
|
-
id: string;
|
|
1002
|
-
type: "text" | "arrow";
|
|
1003
|
-
}>[] | null;
|
|
900
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1004
901
|
updated: number;
|
|
1005
902
|
link: string | null;
|
|
1006
903
|
locked: boolean;
|
|
1007
|
-
customData?: Record<string, any
|
|
904
|
+
customData?: Record<string, any>;
|
|
1008
905
|
}> & Readonly<{
|
|
1009
906
|
type: "embeddable";
|
|
1010
907
|
}> & {
|
|
@@ -1018,36 +915,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1018
915
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1019
916
|
strokeWidth: number;
|
|
1020
917
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1021
|
-
roundness: {
|
|
918
|
+
roundness: null | {
|
|
1022
919
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1023
|
-
value?: number
|
|
1024
|
-
}
|
|
920
|
+
value?: number;
|
|
921
|
+
};
|
|
1025
922
|
roughness: number;
|
|
1026
923
|
opacity: number;
|
|
1027
924
|
width: number;
|
|
1028
925
|
height: number;
|
|
1029
|
-
angle: import("
|
|
926
|
+
angle: import("@excalidraw/math").Radians;
|
|
1030
927
|
seed: number;
|
|
1031
928
|
version: number;
|
|
1032
929
|
versionNonce: number;
|
|
1033
930
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1034
931
|
isDeleted: boolean;
|
|
1035
|
-
groupIds: readonly
|
|
932
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1036
933
|
frameId: string | null;
|
|
1037
|
-
boundElements: readonly
|
|
1038
|
-
id: string;
|
|
1039
|
-
type: "text" | "arrow";
|
|
1040
|
-
}>[] | null;
|
|
934
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1041
935
|
updated: number;
|
|
1042
936
|
link: string | null;
|
|
1043
937
|
locked: boolean;
|
|
1044
|
-
customData?: Record<string, any
|
|
938
|
+
customData?: Record<string, any>;
|
|
1045
939
|
}> & Readonly<{
|
|
1046
|
-
type: "
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
940
|
+
type: "iframe";
|
|
941
|
+
customData?: {
|
|
942
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
943
|
+
};
|
|
1051
944
|
}> & {
|
|
1052
945
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1053
946
|
}) | (Readonly<{
|
|
@@ -1059,35 +952,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1059
952
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1060
953
|
strokeWidth: number;
|
|
1061
954
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1062
|
-
roundness: {
|
|
955
|
+
roundness: null | {
|
|
1063
956
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1064
|
-
value?: number
|
|
1065
|
-
}
|
|
957
|
+
value?: number;
|
|
958
|
+
};
|
|
1066
959
|
roughness: number;
|
|
1067
960
|
opacity: number;
|
|
1068
961
|
width: number;
|
|
1069
962
|
height: number;
|
|
1070
|
-
angle: import("
|
|
963
|
+
angle: import("@excalidraw/math").Radians;
|
|
1071
964
|
seed: number;
|
|
1072
965
|
version: number;
|
|
1073
966
|
versionNonce: number;
|
|
1074
967
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1075
968
|
isDeleted: boolean;
|
|
1076
|
-
groupIds: readonly
|
|
969
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1077
970
|
frameId: string | null;
|
|
1078
|
-
boundElements: readonly
|
|
1079
|
-
id: string;
|
|
1080
|
-
type: "text" | "arrow";
|
|
1081
|
-
}>[] | null;
|
|
971
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1082
972
|
updated: number;
|
|
1083
973
|
link: string | null;
|
|
1084
974
|
locked: boolean;
|
|
1085
|
-
customData?: Record<string, any
|
|
975
|
+
customData?: Record<string, any>;
|
|
1086
976
|
}> & Readonly<{
|
|
1087
|
-
type: "
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
977
|
+
type: "image";
|
|
978
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
979
|
+
status: "pending" | "saved" | "error";
|
|
980
|
+
scale: [number, number];
|
|
981
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1091
982
|
}> & {
|
|
1092
983
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1093
984
|
}) | (Readonly<{
|
|
@@ -1099,32 +990,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1099
990
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1100
991
|
strokeWidth: number;
|
|
1101
992
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1102
|
-
roundness: {
|
|
993
|
+
roundness: null | {
|
|
1103
994
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1104
|
-
value?: number
|
|
1105
|
-
}
|
|
995
|
+
value?: number;
|
|
996
|
+
};
|
|
1106
997
|
roughness: number;
|
|
1107
998
|
opacity: number;
|
|
1108
999
|
width: number;
|
|
1109
1000
|
height: number;
|
|
1110
|
-
angle: import("
|
|
1001
|
+
angle: import("@excalidraw/math").Radians;
|
|
1111
1002
|
seed: number;
|
|
1112
1003
|
version: number;
|
|
1113
1004
|
versionNonce: number;
|
|
1114
1005
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1115
1006
|
isDeleted: boolean;
|
|
1116
|
-
groupIds: readonly
|
|
1007
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1117
1008
|
frameId: string | null;
|
|
1118
|
-
boundElements: readonly
|
|
1119
|
-
id: string;
|
|
1120
|
-
type: "text" | "arrow";
|
|
1121
|
-
}>[] | null;
|
|
1009
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1122
1010
|
updated: number;
|
|
1123
1011
|
link: string | null;
|
|
1124
1012
|
locked: boolean;
|
|
1125
|
-
customData?: Record<string, any
|
|
1013
|
+
customData?: Record<string, any>;
|
|
1126
1014
|
}> & {
|
|
1127
|
-
type: "
|
|
1015
|
+
type: "frame";
|
|
1016
|
+
name: string | null;
|
|
1128
1017
|
} & {
|
|
1129
1018
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1130
1019
|
}) | (Readonly<{
|
|
@@ -1136,32 +1025,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1136
1025
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1137
1026
|
strokeWidth: number;
|
|
1138
1027
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1139
|
-
roundness: {
|
|
1028
|
+
roundness: null | {
|
|
1140
1029
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1141
|
-
value?: number
|
|
1142
|
-
}
|
|
1030
|
+
value?: number;
|
|
1031
|
+
};
|
|
1143
1032
|
roughness: number;
|
|
1144
1033
|
opacity: number;
|
|
1145
1034
|
width: number;
|
|
1146
1035
|
height: number;
|
|
1147
|
-
angle: import("
|
|
1036
|
+
angle: import("@excalidraw/math").Radians;
|
|
1148
1037
|
seed: number;
|
|
1149
1038
|
version: number;
|
|
1150
1039
|
versionNonce: number;
|
|
1151
1040
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1152
1041
|
isDeleted: boolean;
|
|
1153
|
-
groupIds: readonly
|
|
1042
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1154
1043
|
frameId: string | null;
|
|
1155
|
-
boundElements: readonly
|
|
1156
|
-
id: string;
|
|
1157
|
-
type: "text" | "arrow";
|
|
1158
|
-
}>[] | null;
|
|
1044
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1159
1045
|
updated: number;
|
|
1160
1046
|
link: string | null;
|
|
1161
1047
|
locked: boolean;
|
|
1162
|
-
customData?: Record<string, any
|
|
1048
|
+
customData?: Record<string, any>;
|
|
1163
1049
|
}> & {
|
|
1164
|
-
type: "
|
|
1050
|
+
type: "magicframe";
|
|
1051
|
+
name: string | null;
|
|
1165
1052
|
} & {
|
|
1166
1053
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1167
1054
|
}) | (Readonly<{
|
|
@@ -1173,38 +1060,40 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1173
1060
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1174
1061
|
strokeWidth: number;
|
|
1175
1062
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1176
|
-
roundness: {
|
|
1063
|
+
roundness: null | {
|
|
1177
1064
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1178
|
-
value?: number
|
|
1179
|
-
}
|
|
1065
|
+
value?: number;
|
|
1066
|
+
};
|
|
1180
1067
|
roughness: number;
|
|
1181
1068
|
opacity: number;
|
|
1182
1069
|
width: number;
|
|
1183
1070
|
height: number;
|
|
1184
|
-
angle: import("
|
|
1071
|
+
angle: import("@excalidraw/math").Radians;
|
|
1185
1072
|
seed: number;
|
|
1186
1073
|
version: number;
|
|
1187
1074
|
versionNonce: number;
|
|
1188
1075
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1189
1076
|
isDeleted: boolean;
|
|
1190
|
-
groupIds: readonly
|
|
1077
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1191
1078
|
frameId: string | null;
|
|
1192
|
-
boundElements: readonly
|
|
1193
|
-
id: string;
|
|
1194
|
-
type: "text" | "arrow";
|
|
1195
|
-
}>[] | null;
|
|
1079
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1196
1080
|
updated: number;
|
|
1197
1081
|
link: string | null;
|
|
1198
1082
|
locked: boolean;
|
|
1199
|
-
customData?: Record<string, any
|
|
1083
|
+
customData?: Record<string, any>;
|
|
1200
1084
|
}> & Readonly<{
|
|
1201
|
-
type: "
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1085
|
+
type: "text";
|
|
1086
|
+
fontSize: number;
|
|
1087
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1088
|
+
text: string;
|
|
1089
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1090
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1091
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1092
|
+
originalText: string;
|
|
1093
|
+
autoResize: boolean;
|
|
1094
|
+
lineHeight: number & {
|
|
1095
|
+
_brand: "unitlessLineHeight";
|
|
1096
|
+
};
|
|
1208
1097
|
}> & {
|
|
1209
1098
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1210
1099
|
}) | (Readonly<{
|
|
@@ -1216,36 +1105,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1216
1105
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1217
1106
|
strokeWidth: number;
|
|
1218
1107
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1219
|
-
roundness: {
|
|
1108
|
+
roundness: null | {
|
|
1220
1109
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1221
|
-
value?: number
|
|
1222
|
-
}
|
|
1110
|
+
value?: number;
|
|
1111
|
+
};
|
|
1223
1112
|
roughness: number;
|
|
1224
1113
|
opacity: number;
|
|
1225
1114
|
width: number;
|
|
1226
1115
|
height: number;
|
|
1227
|
-
angle: import("
|
|
1116
|
+
angle: import("@excalidraw/math").Radians;
|
|
1228
1117
|
seed: number;
|
|
1229
1118
|
version: number;
|
|
1230
1119
|
versionNonce: number;
|
|
1231
1120
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1232
1121
|
isDeleted: boolean;
|
|
1233
|
-
groupIds: readonly
|
|
1122
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1234
1123
|
frameId: string | null;
|
|
1235
|
-
boundElements: readonly
|
|
1236
|
-
id: string;
|
|
1237
|
-
type: "text" | "arrow";
|
|
1238
|
-
}>[] | null;
|
|
1124
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1239
1125
|
updated: number;
|
|
1240
1126
|
link: string | null;
|
|
1241
1127
|
locked: boolean;
|
|
1242
|
-
customData?: Record<string, any
|
|
1128
|
+
customData?: Record<string, any>;
|
|
1243
1129
|
}> & Readonly<{
|
|
1244
1130
|
type: "freedraw";
|
|
1245
|
-
points: readonly import("
|
|
1131
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1246
1132
|
pressures: readonly number[];
|
|
1247
1133
|
simulatePressure: boolean;
|
|
1248
|
-
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
1249
1134
|
}> & {
|
|
1250
1135
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1251
1136
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|