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