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