@excalidraw/element 0.18.0-5fffc47 → 0.18.0-6135548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +3183 -1798
- 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 +15 -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 +47 -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 +78 -136
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +76 -876
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +95 -159
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +23 -45
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +28 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +207 -322
- package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +134 -194
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -46
- package/dist/types/excalidraw/actions/actionMenu.d.ts +21 -43
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -42
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +28 -48
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +7 -6
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +58 -58
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +12 -19
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +21 -12
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +321 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +159 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +6 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +22 -20
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +9 -3
|
@@ -1,608 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
errorMessage: any;
|
|
13
|
-
contextMenu: {
|
|
14
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
15
|
-
top: number;
|
|
16
|
-
left: number;
|
|
17
|
-
} | null;
|
|
18
|
-
showWelcomeScreen: boolean;
|
|
19
|
-
isLoading: boolean;
|
|
20
|
-
activeEmbeddable: {
|
|
21
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
-
state: "active" | "hover";
|
|
23
|
-
} | null;
|
|
24
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
27
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
-
isBindingEnabled: boolean;
|
|
29
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
|
-
frameRendering: {
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
name: boolean;
|
|
35
|
-
outline: boolean;
|
|
36
|
-
clip: boolean;
|
|
37
|
-
};
|
|
38
|
-
editingFrame: string | null;
|
|
39
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
activeTool: {
|
|
42
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
|
-
locked: boolean;
|
|
44
|
-
fromSelection: boolean;
|
|
45
|
-
} & import("../types").ActiveTool;
|
|
46
|
-
preferredSelectionTool: {
|
|
47
|
-
type: "selection" | "lasso";
|
|
48
|
-
initialized: boolean;
|
|
49
|
-
};
|
|
50
|
-
penMode: boolean;
|
|
51
|
-
penDetected: boolean;
|
|
52
|
-
exportBackground: boolean;
|
|
53
|
-
exportEmbedScene: boolean;
|
|
54
|
-
exportWithDarkMode: boolean;
|
|
55
|
-
exportScale: number;
|
|
56
|
-
currentItemStrokeColor: string;
|
|
57
|
-
currentItemBackgroundColor: string;
|
|
58
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
59
|
-
currentItemStrokeWidth: number;
|
|
60
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
61
|
-
currentItemRoughness: number;
|
|
62
|
-
currentItemOpacity: number;
|
|
63
|
-
currentItemFontFamily: number;
|
|
64
|
-
currentItemFontSize: number;
|
|
65
|
-
currentItemTextAlign: string;
|
|
66
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
67
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
-
currentHoveredFontFamily: number | null;
|
|
69
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
70
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
71
|
-
viewBackgroundColor: string;
|
|
72
|
-
scrollX: number;
|
|
73
|
-
scrollY: number;
|
|
74
|
-
cursorButton: "up" | "down";
|
|
75
|
-
scrolledOutside: boolean;
|
|
76
|
-
name: string | null;
|
|
77
|
-
isResizing: boolean;
|
|
78
|
-
isRotating: boolean;
|
|
79
|
-
zoom: Readonly<{
|
|
80
|
-
value: import("../types").NormalizedZoomValue;
|
|
81
|
-
}>;
|
|
82
|
-
openMenu: "canvas" | null;
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
|
-
openSidebar: {
|
|
85
|
-
name: string;
|
|
86
|
-
tab?: string | undefined;
|
|
87
|
-
} | null;
|
|
88
|
-
openDialog: {
|
|
89
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
90
|
-
} | {
|
|
91
|
-
name: "ttd";
|
|
92
|
-
tab: "mermaid" | "text-to-diagram";
|
|
93
|
-
} | {
|
|
94
|
-
name: "commandPalette";
|
|
95
|
-
} | {
|
|
96
|
-
name: "elementLinkSelector";
|
|
97
|
-
sourceElementId: string;
|
|
98
|
-
} | null;
|
|
99
|
-
defaultSidebarDockedPreference: boolean;
|
|
100
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
101
|
-
selectedElementIds: Readonly<{
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
}>;
|
|
104
|
-
hoveredElementIds: Readonly<{
|
|
105
|
-
[id: string]: true;
|
|
106
|
-
}>;
|
|
107
|
-
previousSelectedElementIds: {
|
|
108
|
-
[id: string]: true;
|
|
109
|
-
};
|
|
110
|
-
selectedElementsAreBeingDragged: boolean;
|
|
111
|
-
shouldCacheIgnoreZoom: boolean;
|
|
112
|
-
toast: {
|
|
113
|
-
message: string;
|
|
114
|
-
closable?: boolean | undefined;
|
|
115
|
-
duration?: number | undefined;
|
|
116
|
-
} | null;
|
|
117
|
-
zenModeEnabled: boolean;
|
|
118
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
119
|
-
gridSize: number;
|
|
120
|
-
gridStep: number;
|
|
121
|
-
gridModeEnabled: boolean;
|
|
122
|
-
viewModeEnabled: boolean;
|
|
123
|
-
selectedGroupIds: {
|
|
124
|
-
[groupId: string]: boolean;
|
|
125
|
-
};
|
|
126
|
-
editingGroupId: string | null;
|
|
127
|
-
width: number;
|
|
128
|
-
height: number;
|
|
129
|
-
offsetTop: number;
|
|
130
|
-
offsetLeft: number;
|
|
131
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
132
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
133
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
134
|
-
button?: "up" | "down" | undefined;
|
|
135
|
-
selectedElementIds?: Readonly<{
|
|
136
|
-
[id: string]: true;
|
|
137
|
-
}> | undefined;
|
|
138
|
-
username?: string | null | undefined;
|
|
139
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
140
|
-
color?: {
|
|
141
|
-
background: string;
|
|
142
|
-
stroke: string;
|
|
143
|
-
} | undefined;
|
|
144
|
-
avatarUrl?: string | undefined;
|
|
145
|
-
id?: string | undefined;
|
|
146
|
-
socketId?: import("../types").SocketId | undefined;
|
|
147
|
-
isCurrentUser?: boolean | undefined;
|
|
148
|
-
isInCall?: boolean | undefined;
|
|
149
|
-
isSpeaking?: boolean | undefined;
|
|
150
|
-
isMuted?: boolean | undefined;
|
|
151
|
-
}>>;
|
|
152
|
-
stats: {
|
|
153
|
-
open: boolean;
|
|
154
|
-
panels: number;
|
|
155
|
-
};
|
|
156
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
157
|
-
pasteDialog: {
|
|
158
|
-
shown: false;
|
|
159
|
-
data: null;
|
|
160
|
-
} | {
|
|
161
|
-
shown: true;
|
|
162
|
-
data: import("../charts").Spreadsheet;
|
|
163
|
-
};
|
|
164
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
165
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
|
-
originSnapOffset: {
|
|
168
|
-
x: number;
|
|
169
|
-
y: number;
|
|
170
|
-
} | null;
|
|
171
|
-
objectsSnapModeEnabled: boolean;
|
|
172
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
173
|
-
followedBy: Set<import("../types").SocketId>;
|
|
174
|
-
isCropping: boolean;
|
|
175
|
-
croppingElementId: string | null;
|
|
176
|
-
searchMatches: Readonly<{
|
|
177
|
-
focusedId: string | null;
|
|
178
|
-
matches: readonly import("../types").SearchMatch[];
|
|
179
|
-
}> | null;
|
|
180
|
-
activeLockedId: string | null;
|
|
181
|
-
lockedMultiSelections: {
|
|
182
|
-
[groupId: string]: true;
|
|
183
|
-
};
|
|
184
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
185
|
-
};
|
|
186
|
-
} | {
|
|
187
|
-
captureUpdate: "EVENTUALLY";
|
|
188
|
-
appState?: undefined;
|
|
189
|
-
}>;
|
|
190
|
-
keyTest: undefined;
|
|
191
|
-
} & {
|
|
192
|
-
keyTest?: undefined;
|
|
193
|
-
};
|
|
194
|
-
export declare const actionPaste: {
|
|
195
|
-
name: "paste";
|
|
196
|
-
label: string;
|
|
197
|
-
trackEvent: {
|
|
198
|
-
category: "element";
|
|
199
|
-
};
|
|
200
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
201
|
-
captureUpdate: "EVENTUALLY";
|
|
202
|
-
appState: {
|
|
203
|
-
errorMessage: string;
|
|
204
|
-
contextMenu: {
|
|
205
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
206
|
-
top: number;
|
|
207
|
-
left: number;
|
|
208
|
-
} | null;
|
|
209
|
-
showWelcomeScreen: boolean;
|
|
210
|
-
isLoading: boolean;
|
|
211
|
-
activeEmbeddable: {
|
|
212
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
213
|
-
state: "active" | "hover";
|
|
214
|
-
} | null;
|
|
215
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
216
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
217
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
218
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
219
|
-
isBindingEnabled: boolean;
|
|
220
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
221
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
222
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
223
|
-
frameRendering: {
|
|
224
|
-
enabled: boolean;
|
|
225
|
-
name: boolean;
|
|
226
|
-
outline: boolean;
|
|
227
|
-
clip: boolean;
|
|
228
|
-
};
|
|
229
|
-
editingFrame: string | null;
|
|
230
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
231
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
232
|
-
activeTool: {
|
|
233
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
234
|
-
locked: boolean;
|
|
235
|
-
fromSelection: boolean;
|
|
236
|
-
} & import("../types").ActiveTool;
|
|
237
|
-
preferredSelectionTool: {
|
|
238
|
-
type: "selection" | "lasso";
|
|
239
|
-
initialized: boolean;
|
|
240
|
-
};
|
|
241
|
-
penMode: boolean;
|
|
242
|
-
penDetected: boolean;
|
|
243
|
-
exportBackground: boolean;
|
|
244
|
-
exportEmbedScene: boolean;
|
|
245
|
-
exportWithDarkMode: boolean;
|
|
246
|
-
exportScale: number;
|
|
247
|
-
currentItemStrokeColor: string;
|
|
248
|
-
currentItemBackgroundColor: string;
|
|
249
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
250
|
-
currentItemStrokeWidth: number;
|
|
251
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
252
|
-
currentItemRoughness: number;
|
|
253
|
-
currentItemOpacity: number;
|
|
254
|
-
currentItemFontFamily: number;
|
|
255
|
-
currentItemFontSize: number;
|
|
256
|
-
currentItemTextAlign: string;
|
|
257
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
258
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
259
|
-
currentHoveredFontFamily: number | null;
|
|
260
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
261
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
262
|
-
viewBackgroundColor: string;
|
|
263
|
-
scrollX: number;
|
|
264
|
-
scrollY: number;
|
|
265
|
-
cursorButton: "up" | "down";
|
|
266
|
-
scrolledOutside: boolean;
|
|
267
|
-
name: string | null;
|
|
268
|
-
isResizing: boolean;
|
|
269
|
-
isRotating: boolean;
|
|
270
|
-
zoom: Readonly<{
|
|
271
|
-
value: import("../types").NormalizedZoomValue;
|
|
272
|
-
}>;
|
|
273
|
-
openMenu: "canvas" | null;
|
|
274
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
275
|
-
openSidebar: {
|
|
276
|
-
name: string;
|
|
277
|
-
tab?: string | undefined;
|
|
278
|
-
} | null;
|
|
279
|
-
openDialog: {
|
|
280
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
281
|
-
} | {
|
|
282
|
-
name: "ttd";
|
|
283
|
-
tab: "mermaid" | "text-to-diagram";
|
|
284
|
-
} | {
|
|
285
|
-
name: "commandPalette";
|
|
286
|
-
} | {
|
|
287
|
-
name: "elementLinkSelector";
|
|
288
|
-
sourceElementId: string;
|
|
289
|
-
} | null;
|
|
290
|
-
defaultSidebarDockedPreference: boolean;
|
|
291
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
292
|
-
selectedElementIds: Readonly<{
|
|
293
|
-
[id: string]: true;
|
|
294
|
-
}>;
|
|
295
|
-
hoveredElementIds: Readonly<{
|
|
296
|
-
[id: string]: true;
|
|
297
|
-
}>;
|
|
298
|
-
previousSelectedElementIds: {
|
|
299
|
-
[id: string]: true;
|
|
300
|
-
};
|
|
301
|
-
selectedElementsAreBeingDragged: boolean;
|
|
302
|
-
shouldCacheIgnoreZoom: boolean;
|
|
303
|
-
toast: {
|
|
304
|
-
message: string;
|
|
305
|
-
closable?: boolean | undefined;
|
|
306
|
-
duration?: number | undefined;
|
|
307
|
-
} | null;
|
|
308
|
-
zenModeEnabled: boolean;
|
|
309
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
310
|
-
gridSize: number;
|
|
311
|
-
gridStep: number;
|
|
312
|
-
gridModeEnabled: boolean;
|
|
313
|
-
viewModeEnabled: boolean;
|
|
314
|
-
selectedGroupIds: {
|
|
315
|
-
[groupId: string]: boolean;
|
|
316
|
-
};
|
|
317
|
-
editingGroupId: string | null;
|
|
318
|
-
width: number;
|
|
319
|
-
height: number;
|
|
320
|
-
offsetTop: number;
|
|
321
|
-
offsetLeft: number;
|
|
322
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
323
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
324
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
325
|
-
button?: "up" | "down" | undefined;
|
|
326
|
-
selectedElementIds?: Readonly<{
|
|
327
|
-
[id: string]: true;
|
|
328
|
-
}> | undefined;
|
|
329
|
-
username?: string | null | undefined;
|
|
330
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
331
|
-
color?: {
|
|
332
|
-
background: string;
|
|
333
|
-
stroke: string;
|
|
334
|
-
} | undefined;
|
|
335
|
-
avatarUrl?: string | undefined;
|
|
336
|
-
id?: string | undefined;
|
|
337
|
-
socketId?: import("../types").SocketId | undefined;
|
|
338
|
-
isCurrentUser?: boolean | undefined;
|
|
339
|
-
isInCall?: boolean | undefined;
|
|
340
|
-
isSpeaking?: boolean | undefined;
|
|
341
|
-
isMuted?: boolean | undefined;
|
|
342
|
-
}>>;
|
|
343
|
-
stats: {
|
|
344
|
-
open: boolean;
|
|
345
|
-
panels: number;
|
|
346
|
-
};
|
|
347
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
348
|
-
pasteDialog: {
|
|
349
|
-
shown: false;
|
|
350
|
-
data: null;
|
|
351
|
-
} | {
|
|
352
|
-
shown: true;
|
|
353
|
-
data: import("../charts").Spreadsheet;
|
|
354
|
-
};
|
|
355
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
356
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
357
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
358
|
-
originSnapOffset: {
|
|
359
|
-
x: number;
|
|
360
|
-
y: number;
|
|
361
|
-
} | null;
|
|
362
|
-
objectsSnapModeEnabled: boolean;
|
|
363
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
364
|
-
followedBy: Set<import("../types").SocketId>;
|
|
365
|
-
isCropping: boolean;
|
|
366
|
-
croppingElementId: string | null;
|
|
367
|
-
searchMatches: Readonly<{
|
|
368
|
-
focusedId: string | null;
|
|
369
|
-
matches: readonly import("../types").SearchMatch[];
|
|
370
|
-
}> | null;
|
|
371
|
-
activeLockedId: string | null;
|
|
372
|
-
lockedMultiSelections: {
|
|
373
|
-
[groupId: string]: true;
|
|
374
|
-
};
|
|
375
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
376
|
-
};
|
|
377
|
-
} | {
|
|
378
|
-
captureUpdate: "EVENTUALLY";
|
|
379
|
-
appState?: undefined;
|
|
380
|
-
}>;
|
|
381
|
-
keyTest: undefined;
|
|
382
|
-
} & {
|
|
383
|
-
keyTest?: undefined;
|
|
384
|
-
};
|
|
385
|
-
export declare const actionCut: {
|
|
386
|
-
name: "cut";
|
|
387
|
-
label: string;
|
|
388
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
389
|
-
trackEvent: {
|
|
390
|
-
category: "element";
|
|
391
|
-
};
|
|
392
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
393
|
-
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
394
|
-
appState: {
|
|
395
|
-
selectedLinearElement: null;
|
|
396
|
-
contextMenu: {
|
|
397
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
398
|
-
top: number;
|
|
399
|
-
left: number;
|
|
400
|
-
} | null;
|
|
401
|
-
showWelcomeScreen: boolean;
|
|
402
|
-
isLoading: boolean;
|
|
403
|
-
errorMessage: import("react").ReactNode;
|
|
404
|
-
activeEmbeddable: {
|
|
405
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
406
|
-
state: "active" | "hover";
|
|
407
|
-
} | null;
|
|
408
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
409
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
410
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
411
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
412
|
-
isBindingEnabled: boolean;
|
|
413
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
414
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
415
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
416
|
-
frameRendering: {
|
|
417
|
-
enabled: boolean;
|
|
418
|
-
name: boolean;
|
|
419
|
-
outline: boolean;
|
|
420
|
-
clip: boolean;
|
|
421
|
-
};
|
|
422
|
-
editingFrame: string | null;
|
|
423
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
424
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
425
|
-
activeTool: {
|
|
426
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
427
|
-
locked: boolean;
|
|
428
|
-
fromSelection: boolean;
|
|
429
|
-
} & import("../types").ActiveTool;
|
|
430
|
-
preferredSelectionTool: {
|
|
431
|
-
type: "selection" | "lasso";
|
|
432
|
-
initialized: boolean;
|
|
433
|
-
};
|
|
434
|
-
penMode: boolean;
|
|
435
|
-
penDetected: boolean;
|
|
436
|
-
exportBackground: boolean;
|
|
437
|
-
exportEmbedScene: boolean;
|
|
438
|
-
exportWithDarkMode: boolean;
|
|
439
|
-
exportScale: number;
|
|
440
|
-
currentItemStrokeColor: string;
|
|
441
|
-
currentItemBackgroundColor: string;
|
|
442
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
443
|
-
currentItemStrokeWidth: number;
|
|
444
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
445
|
-
currentItemRoughness: number;
|
|
446
|
-
currentItemOpacity: number;
|
|
447
|
-
currentItemFontFamily: number;
|
|
448
|
-
currentItemFontSize: number;
|
|
449
|
-
currentItemTextAlign: string;
|
|
450
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
451
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
452
|
-
currentHoveredFontFamily: number | null;
|
|
453
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
454
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
455
|
-
viewBackgroundColor: string;
|
|
456
|
-
scrollX: number;
|
|
457
|
-
scrollY: number;
|
|
458
|
-
cursorButton: "up" | "down";
|
|
459
|
-
scrolledOutside: boolean;
|
|
460
|
-
name: string | null;
|
|
461
|
-
isResizing: boolean;
|
|
462
|
-
isRotating: boolean;
|
|
463
|
-
zoom: Readonly<{
|
|
464
|
-
value: import("../types").NormalizedZoomValue;
|
|
465
|
-
}>;
|
|
466
|
-
openMenu: "canvas" | null;
|
|
467
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
468
|
-
openSidebar: {
|
|
469
|
-
name: string;
|
|
470
|
-
tab?: string | undefined;
|
|
471
|
-
} | null;
|
|
472
|
-
openDialog: {
|
|
473
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
474
|
-
} | {
|
|
475
|
-
name: "ttd";
|
|
476
|
-
tab: "mermaid" | "text-to-diagram";
|
|
477
|
-
} | {
|
|
478
|
-
name: "commandPalette";
|
|
479
|
-
} | {
|
|
480
|
-
name: "elementLinkSelector";
|
|
481
|
-
sourceElementId: string;
|
|
482
|
-
} | null;
|
|
483
|
-
defaultSidebarDockedPreference: boolean;
|
|
484
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
485
|
-
selectedElementIds: Readonly<{
|
|
486
|
-
[id: string]: true;
|
|
487
|
-
}>;
|
|
488
|
-
hoveredElementIds: Readonly<{
|
|
489
|
-
[id: string]: true;
|
|
490
|
-
}>;
|
|
491
|
-
previousSelectedElementIds: {
|
|
492
|
-
[id: string]: true;
|
|
493
|
-
};
|
|
494
|
-
selectedElementsAreBeingDragged: boolean;
|
|
495
|
-
shouldCacheIgnoreZoom: boolean;
|
|
496
|
-
toast: {
|
|
497
|
-
message: string;
|
|
498
|
-
closable?: boolean | undefined;
|
|
499
|
-
duration?: number | undefined;
|
|
500
|
-
} | null;
|
|
501
|
-
zenModeEnabled: boolean;
|
|
502
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
503
|
-
gridSize: number;
|
|
504
|
-
gridStep: number;
|
|
505
|
-
gridModeEnabled: boolean;
|
|
506
|
-
viewModeEnabled: boolean;
|
|
507
|
-
selectedGroupIds: {
|
|
508
|
-
[groupId: string]: boolean;
|
|
509
|
-
};
|
|
510
|
-
editingGroupId: string | null;
|
|
511
|
-
width: number;
|
|
512
|
-
height: number;
|
|
513
|
-
offsetTop: number;
|
|
514
|
-
offsetLeft: number;
|
|
515
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
516
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
517
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
518
|
-
button?: "up" | "down" | undefined;
|
|
519
|
-
selectedElementIds?: Readonly<{
|
|
520
|
-
[id: string]: true;
|
|
521
|
-
}> | undefined;
|
|
522
|
-
username?: string | null | undefined;
|
|
523
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
524
|
-
color?: {
|
|
525
|
-
background: string;
|
|
526
|
-
stroke: string;
|
|
527
|
-
} | undefined;
|
|
528
|
-
avatarUrl?: string | undefined;
|
|
529
|
-
id?: string | undefined;
|
|
530
|
-
socketId?: import("../types").SocketId | undefined;
|
|
531
|
-
isCurrentUser?: boolean | undefined;
|
|
532
|
-
isInCall?: boolean | undefined;
|
|
533
|
-
isSpeaking?: boolean | undefined;
|
|
534
|
-
isMuted?: boolean | undefined;
|
|
535
|
-
}>>;
|
|
536
|
-
stats: {
|
|
537
|
-
open: boolean;
|
|
538
|
-
panels: number;
|
|
539
|
-
};
|
|
540
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
541
|
-
pasteDialog: {
|
|
542
|
-
shown: false;
|
|
543
|
-
data: null;
|
|
544
|
-
} | {
|
|
545
|
-
shown: true;
|
|
546
|
-
data: import("../charts").Spreadsheet;
|
|
547
|
-
};
|
|
548
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
549
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
550
|
-
originSnapOffset: {
|
|
551
|
-
x: number;
|
|
552
|
-
y: number;
|
|
553
|
-
} | null;
|
|
554
|
-
objectsSnapModeEnabled: boolean;
|
|
555
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
556
|
-
followedBy: Set<import("../types").SocketId>;
|
|
557
|
-
isCropping: boolean;
|
|
558
|
-
croppingElementId: string | null;
|
|
559
|
-
searchMatches: Readonly<{
|
|
560
|
-
focusedId: string | null;
|
|
561
|
-
matches: readonly import("../types").SearchMatch[];
|
|
562
|
-
}> | null;
|
|
563
|
-
activeLockedId: string | null;
|
|
564
|
-
lockedMultiSelections: {
|
|
565
|
-
[groupId: string]: true;
|
|
566
|
-
};
|
|
567
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
568
|
-
};
|
|
569
|
-
captureUpdate: "IMMEDIATELY";
|
|
570
|
-
} | {
|
|
571
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1
|
+
export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
|
|
2
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
3
|
+
};
|
|
4
|
+
export declare const actionPaste: {
|
|
5
|
+
name: "paste";
|
|
6
|
+
label: string;
|
|
7
|
+
trackEvent: {
|
|
8
|
+
category: "element";
|
|
9
|
+
};
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
|
|
11
|
+
captureUpdate: "EVENTUALLY";
|
|
572
12
|
appState: {
|
|
573
|
-
|
|
574
|
-
selectedPointsIndices: number[];
|
|
575
|
-
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
576
|
-
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
577
|
-
elementId: string & {
|
|
578
|
-
_brand: "excalidrawLinearElementId";
|
|
579
|
-
};
|
|
580
|
-
pointerDownState: Readonly<{
|
|
581
|
-
prevSelectedPointsIndices: readonly number[] | null;
|
|
582
|
-
lastClickedPoint: number;
|
|
583
|
-
lastClickedIsEndPoint: boolean;
|
|
584
|
-
origin: Readonly<{
|
|
585
|
-
x: number;
|
|
586
|
-
y: number;
|
|
587
|
-
}> | null;
|
|
588
|
-
segmentMidpoint: {
|
|
589
|
-
value: import("../../math/src").GlobalPoint | null;
|
|
590
|
-
index: number | null;
|
|
591
|
-
added: boolean;
|
|
592
|
-
};
|
|
593
|
-
}>;
|
|
594
|
-
isDragging: boolean;
|
|
595
|
-
lastUncommittedPoint: import("../../math/src").LocalPoint | null;
|
|
596
|
-
pointerOffset: Readonly<{
|
|
597
|
-
x: number;
|
|
598
|
-
y: number;
|
|
599
|
-
}>;
|
|
600
|
-
hoverPointIndex: number;
|
|
601
|
-
segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
|
|
602
|
-
elbowed: boolean;
|
|
603
|
-
customLineAngle: number | null;
|
|
604
|
-
isEditing: boolean;
|
|
605
|
-
};
|
|
13
|
+
errorMessage: string;
|
|
606
14
|
contextMenu: {
|
|
607
15
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
608
16
|
top: number;
|
|
@@ -610,10 +18,9 @@ export declare const actionCut: {
|
|
|
610
18
|
} | null;
|
|
611
19
|
showWelcomeScreen: boolean;
|
|
612
20
|
isLoading: boolean;
|
|
613
|
-
errorMessage: import("react").ReactNode;
|
|
614
21
|
activeEmbeddable: {
|
|
615
22
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
616
|
-
state: "
|
|
23
|
+
state: "hover" | "active";
|
|
617
24
|
} | null;
|
|
618
25
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
619
26
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -621,7 +28,7 @@ export declare const actionCut: {
|
|
|
621
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
622
29
|
isBindingEnabled: boolean;
|
|
623
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
624
|
-
|
|
31
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
625
32
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
626
33
|
frameRendering: {
|
|
627
34
|
enabled: boolean;
|
|
@@ -649,19 +56,19 @@ export declare const actionCut: {
|
|
|
649
56
|
exportScale: number;
|
|
650
57
|
currentItemStrokeColor: string;
|
|
651
58
|
currentItemBackgroundColor: string;
|
|
652
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
59
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
653
60
|
currentItemStrokeWidth: number;
|
|
654
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
61
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
655
62
|
currentItemRoughness: number;
|
|
656
63
|
currentItemOpacity: number;
|
|
657
|
-
currentItemFontFamily:
|
|
64
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
658
65
|
currentItemFontSize: number;
|
|
659
|
-
currentItemTextAlign:
|
|
66
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
660
67
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
661
68
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
662
|
-
currentHoveredFontFamily:
|
|
69
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
663
70
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
664
|
-
currentItemArrowType: "
|
|
71
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
665
72
|
viewBackgroundColor: string;
|
|
666
73
|
scrollX: number;
|
|
667
74
|
scrollY: number;
|
|
@@ -670,26 +77,26 @@ export declare const actionCut: {
|
|
|
670
77
|
name: string | null;
|
|
671
78
|
isResizing: boolean;
|
|
672
79
|
isRotating: boolean;
|
|
673
|
-
zoom:
|
|
674
|
-
value: import("../types").NormalizedZoomValue;
|
|
675
|
-
}>;
|
|
80
|
+
zoom: import("../types").Zoom;
|
|
676
81
|
openMenu: "canvas" | null;
|
|
677
|
-
openPopup: "
|
|
82
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
678
83
|
openSidebar: {
|
|
679
|
-
name:
|
|
680
|
-
tab?:
|
|
84
|
+
name: import("../types").SidebarName;
|
|
85
|
+
tab?: import("../types").SidebarTabName;
|
|
681
86
|
} | null;
|
|
682
|
-
openDialog: {
|
|
87
|
+
openDialog: null | {
|
|
683
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
684
89
|
} | {
|
|
685
90
|
name: "ttd";
|
|
686
|
-
tab: "
|
|
91
|
+
tab: "text-to-diagram" | "mermaid";
|
|
687
92
|
} | {
|
|
688
93
|
name: "commandPalette";
|
|
94
|
+
} | {
|
|
95
|
+
name: "settings";
|
|
689
96
|
} | {
|
|
690
97
|
name: "elementLinkSelector";
|
|
691
|
-
sourceElementId:
|
|
692
|
-
}
|
|
98
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
99
|
+
};
|
|
693
100
|
defaultSidebarDockedPreference: boolean;
|
|
694
101
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
695
102
|
selectedElementIds: Readonly<{
|
|
@@ -705,8 +112,8 @@ export declare const actionCut: {
|
|
|
705
112
|
shouldCacheIgnoreZoom: boolean;
|
|
706
113
|
toast: {
|
|
707
114
|
message: string;
|
|
708
|
-
closable?: boolean
|
|
709
|
-
duration?: number
|
|
115
|
+
closable?: boolean;
|
|
116
|
+
duration?: number;
|
|
710
117
|
} | null;
|
|
711
118
|
zenModeEnabled: boolean;
|
|
712
119
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -717,32 +124,13 @@ export declare const actionCut: {
|
|
|
717
124
|
selectedGroupIds: {
|
|
718
125
|
[groupId: string]: boolean;
|
|
719
126
|
};
|
|
720
|
-
editingGroupId:
|
|
127
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
721
128
|
width: number;
|
|
722
129
|
height: number;
|
|
723
130
|
offsetTop: number;
|
|
724
131
|
offsetLeft: number;
|
|
725
132
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
726
|
-
collaborators: Map<import("../types").SocketId,
|
|
727
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
728
|
-
button?: "up" | "down" | undefined;
|
|
729
|
-
selectedElementIds?: Readonly<{
|
|
730
|
-
[id: string]: true;
|
|
731
|
-
}> | undefined;
|
|
732
|
-
username?: string | null | undefined;
|
|
733
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
734
|
-
color?: {
|
|
735
|
-
background: string;
|
|
736
|
-
stroke: string;
|
|
737
|
-
} | undefined;
|
|
738
|
-
avatarUrl?: string | undefined;
|
|
739
|
-
id?: string | undefined;
|
|
740
|
-
socketId?: import("../types").SocketId | undefined;
|
|
741
|
-
isCurrentUser?: boolean | undefined;
|
|
742
|
-
isInCall?: boolean | undefined;
|
|
743
|
-
isSpeaking?: boolean | undefined;
|
|
744
|
-
isMuted?: boolean | undefined;
|
|
745
|
-
}>>;
|
|
133
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
746
134
|
stats: {
|
|
747
135
|
open: boolean;
|
|
748
136
|
panels: number;
|
|
@@ -755,7 +143,8 @@ export declare const actionCut: {
|
|
|
755
143
|
shown: true;
|
|
756
144
|
data: import("../charts").Spreadsheet;
|
|
757
145
|
};
|
|
758
|
-
showHyperlinkPopup: false | "
|
|
146
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
147
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
759
148
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
760
149
|
originSnapOffset: {
|
|
761
150
|
x: number;
|
|
@@ -765,197 +154,27 @@ export declare const actionCut: {
|
|
|
765
154
|
userToFollow: import("../types").UserToFollow | null;
|
|
766
155
|
followedBy: Set<import("../types").SocketId>;
|
|
767
156
|
isCropping: boolean;
|
|
768
|
-
croppingElementId:
|
|
157
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
769
158
|
searchMatches: Readonly<{
|
|
770
|
-
focusedId:
|
|
159
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
771
160
|
matches: readonly import("../types").SearchMatch[];
|
|
772
161
|
}> | null;
|
|
773
162
|
activeLockedId: string | null;
|
|
774
163
|
lockedMultiSelections: {
|
|
775
164
|
[groupId: string]: true;
|
|
776
165
|
};
|
|
777
|
-
|
|
166
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
778
167
|
};
|
|
779
|
-
captureUpdate: "IMMEDIATELY";
|
|
780
168
|
} | {
|
|
781
|
-
|
|
782
|
-
appState
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
locked: boolean;
|
|
786
|
-
fromSelection: boolean;
|
|
787
|
-
} & import("../types").ActiveTool;
|
|
788
|
-
multiElement: null;
|
|
789
|
-
activeEmbeddable: null;
|
|
790
|
-
selectedLinearElement: null;
|
|
791
|
-
editingGroupId: string | null;
|
|
792
|
-
selectedElementIds: Readonly<{
|
|
793
|
-
[id: string]: true;
|
|
794
|
-
}>;
|
|
795
|
-
selectedGroupIds: {
|
|
796
|
-
[groupId: string]: boolean;
|
|
797
|
-
};
|
|
798
|
-
contextMenu: {
|
|
799
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
800
|
-
top: number;
|
|
801
|
-
left: number;
|
|
802
|
-
} | null;
|
|
803
|
-
showWelcomeScreen: boolean;
|
|
804
|
-
isLoading: boolean;
|
|
805
|
-
errorMessage: import("react").ReactNode;
|
|
806
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
807
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
808
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
809
|
-
isBindingEnabled: boolean;
|
|
810
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
811
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
812
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
813
|
-
frameRendering: {
|
|
814
|
-
enabled: boolean;
|
|
815
|
-
name: boolean;
|
|
816
|
-
outline: boolean;
|
|
817
|
-
clip: boolean;
|
|
818
|
-
};
|
|
819
|
-
editingFrame: string | null;
|
|
820
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
821
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
822
|
-
preferredSelectionTool: {
|
|
823
|
-
type: "selection" | "lasso";
|
|
824
|
-
initialized: boolean;
|
|
825
|
-
};
|
|
826
|
-
penMode: boolean;
|
|
827
|
-
penDetected: boolean;
|
|
828
|
-
exportBackground: boolean;
|
|
829
|
-
exportEmbedScene: boolean;
|
|
830
|
-
exportWithDarkMode: boolean;
|
|
831
|
-
exportScale: number;
|
|
832
|
-
currentItemStrokeColor: string;
|
|
833
|
-
currentItemBackgroundColor: string;
|
|
834
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
835
|
-
currentItemStrokeWidth: number;
|
|
836
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
837
|
-
currentItemRoughness: number;
|
|
838
|
-
currentItemOpacity: number;
|
|
839
|
-
currentItemFontFamily: number;
|
|
840
|
-
currentItemFontSize: number;
|
|
841
|
-
currentItemTextAlign: string;
|
|
842
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
843
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
844
|
-
currentHoveredFontFamily: number | null;
|
|
845
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
846
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
847
|
-
viewBackgroundColor: string;
|
|
848
|
-
scrollX: number;
|
|
849
|
-
scrollY: number;
|
|
850
|
-
cursorButton: "up" | "down";
|
|
851
|
-
scrolledOutside: boolean;
|
|
852
|
-
name: string | null;
|
|
853
|
-
isResizing: boolean;
|
|
854
|
-
isRotating: boolean;
|
|
855
|
-
zoom: Readonly<{
|
|
856
|
-
value: import("../types").NormalizedZoomValue;
|
|
857
|
-
}>;
|
|
858
|
-
openMenu: "canvas" | null;
|
|
859
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
860
|
-
openSidebar: {
|
|
861
|
-
name: string;
|
|
862
|
-
tab?: string | undefined;
|
|
863
|
-
} | null;
|
|
864
|
-
openDialog: {
|
|
865
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
866
|
-
} | {
|
|
867
|
-
name: "ttd";
|
|
868
|
-
tab: "mermaid" | "text-to-diagram";
|
|
869
|
-
} | {
|
|
870
|
-
name: "commandPalette";
|
|
871
|
-
} | {
|
|
872
|
-
name: "elementLinkSelector";
|
|
873
|
-
sourceElementId: string;
|
|
874
|
-
} | null;
|
|
875
|
-
defaultSidebarDockedPreference: boolean;
|
|
876
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
877
|
-
hoveredElementIds: Readonly<{
|
|
878
|
-
[id: string]: true;
|
|
879
|
-
}>;
|
|
880
|
-
previousSelectedElementIds: {
|
|
881
|
-
[id: string]: true;
|
|
882
|
-
};
|
|
883
|
-
selectedElementsAreBeingDragged: boolean;
|
|
884
|
-
shouldCacheIgnoreZoom: boolean;
|
|
885
|
-
toast: {
|
|
886
|
-
message: string;
|
|
887
|
-
closable?: boolean | undefined;
|
|
888
|
-
duration?: number | undefined;
|
|
889
|
-
} | null;
|
|
890
|
-
zenModeEnabled: boolean;
|
|
891
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
892
|
-
gridSize: number;
|
|
893
|
-
gridStep: number;
|
|
894
|
-
gridModeEnabled: boolean;
|
|
895
|
-
viewModeEnabled: boolean;
|
|
896
|
-
width: number;
|
|
897
|
-
height: number;
|
|
898
|
-
offsetTop: number;
|
|
899
|
-
offsetLeft: number;
|
|
900
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
901
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
902
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
903
|
-
button?: "up" | "down" | undefined;
|
|
904
|
-
selectedElementIds?: Readonly<{
|
|
905
|
-
[id: string]: true;
|
|
906
|
-
}> | undefined;
|
|
907
|
-
username?: string | null | undefined;
|
|
908
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
909
|
-
color?: {
|
|
910
|
-
background: string;
|
|
911
|
-
stroke: string;
|
|
912
|
-
} | undefined;
|
|
913
|
-
avatarUrl?: string | undefined;
|
|
914
|
-
id?: string | undefined;
|
|
915
|
-
socketId?: import("../types").SocketId | undefined;
|
|
916
|
-
isCurrentUser?: boolean | undefined;
|
|
917
|
-
isInCall?: boolean | undefined;
|
|
918
|
-
isSpeaking?: boolean | undefined;
|
|
919
|
-
isMuted?: boolean | undefined;
|
|
920
|
-
}>>;
|
|
921
|
-
stats: {
|
|
922
|
-
open: boolean;
|
|
923
|
-
panels: number;
|
|
924
|
-
};
|
|
925
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
926
|
-
pasteDialog: {
|
|
927
|
-
shown: false;
|
|
928
|
-
data: null;
|
|
929
|
-
} | {
|
|
930
|
-
shown: true;
|
|
931
|
-
data: import("../charts").Spreadsheet;
|
|
932
|
-
};
|
|
933
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
934
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
935
|
-
originSnapOffset: {
|
|
936
|
-
x: number;
|
|
937
|
-
y: number;
|
|
938
|
-
} | null;
|
|
939
|
-
objectsSnapModeEnabled: boolean;
|
|
940
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
941
|
-
followedBy: Set<import("../types").SocketId>;
|
|
942
|
-
isCropping: boolean;
|
|
943
|
-
croppingElementId: string | null;
|
|
944
|
-
searchMatches: Readonly<{
|
|
945
|
-
focusedId: string | null;
|
|
946
|
-
matches: readonly import("../types").SearchMatch[];
|
|
947
|
-
}> | null;
|
|
948
|
-
activeLockedId: string | null;
|
|
949
|
-
lockedMultiSelections: {
|
|
950
|
-
[groupId: string]: true;
|
|
951
|
-
};
|
|
952
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
953
|
-
};
|
|
954
|
-
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
955
|
-
};
|
|
956
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
169
|
+
captureUpdate: "EVENTUALLY";
|
|
170
|
+
appState?: undefined;
|
|
171
|
+
}>;
|
|
172
|
+
keyTest: undefined;
|
|
957
173
|
} & {
|
|
958
|
-
keyTest?:
|
|
174
|
+
keyTest?: undefined;
|
|
175
|
+
};
|
|
176
|
+
export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
|
|
177
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
959
178
|
};
|
|
960
179
|
export declare const actionCopyAsSvg: {
|
|
961
180
|
name: "copyAsSvg";
|
|
@@ -964,7 +183,7 @@ export declare const actionCopyAsSvg: {
|
|
|
964
183
|
trackEvent: {
|
|
965
184
|
category: "element";
|
|
966
185
|
};
|
|
967
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data:
|
|
186
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
968
187
|
captureUpdate: "EVENTUALLY";
|
|
969
188
|
appState?: undefined;
|
|
970
189
|
} | {
|
|
@@ -994,7 +213,7 @@ export declare const actionCopyAsPng: {
|
|
|
994
213
|
trackEvent: {
|
|
995
214
|
category: "element";
|
|
996
215
|
};
|
|
997
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data:
|
|
216
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
998
217
|
captureUpdate: "EVENTUALLY";
|
|
999
218
|
appState?: undefined;
|
|
1000
219
|
} | {
|
|
@@ -1009,7 +228,7 @@ export declare const actionCopyAsPng: {
|
|
|
1009
228
|
isLoading: boolean;
|
|
1010
229
|
activeEmbeddable: {
|
|
1011
230
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1012
|
-
state: "
|
|
231
|
+
state: "hover" | "active";
|
|
1013
232
|
} | null;
|
|
1014
233
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1015
234
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1017,7 +236,7 @@ export declare const actionCopyAsPng: {
|
|
|
1017
236
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1018
237
|
isBindingEnabled: boolean;
|
|
1019
238
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1020
|
-
|
|
239
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1021
240
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1022
241
|
frameRendering: {
|
|
1023
242
|
enabled: boolean;
|
|
@@ -1045,19 +264,19 @@ export declare const actionCopyAsPng: {
|
|
|
1045
264
|
exportScale: number;
|
|
1046
265
|
currentItemStrokeColor: string;
|
|
1047
266
|
currentItemBackgroundColor: string;
|
|
1048
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
267
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1049
268
|
currentItemStrokeWidth: number;
|
|
1050
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
269
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1051
270
|
currentItemRoughness: number;
|
|
1052
271
|
currentItemOpacity: number;
|
|
1053
|
-
currentItemFontFamily:
|
|
272
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1054
273
|
currentItemFontSize: number;
|
|
1055
|
-
currentItemTextAlign:
|
|
274
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1056
275
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1057
276
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1058
|
-
currentHoveredFontFamily:
|
|
277
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1059
278
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1060
|
-
currentItemArrowType: "
|
|
279
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1061
280
|
viewBackgroundColor: string;
|
|
1062
281
|
scrollX: number;
|
|
1063
282
|
scrollY: number;
|
|
@@ -1066,26 +285,26 @@ export declare const actionCopyAsPng: {
|
|
|
1066
285
|
name: string | null;
|
|
1067
286
|
isResizing: boolean;
|
|
1068
287
|
isRotating: boolean;
|
|
1069
|
-
zoom:
|
|
1070
|
-
value: import("../types").NormalizedZoomValue;
|
|
1071
|
-
}>;
|
|
288
|
+
zoom: import("../types").Zoom;
|
|
1072
289
|
openMenu: "canvas" | null;
|
|
1073
|
-
openPopup: "
|
|
290
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1074
291
|
openSidebar: {
|
|
1075
|
-
name:
|
|
1076
|
-
tab?:
|
|
292
|
+
name: import("../types").SidebarName;
|
|
293
|
+
tab?: import("../types").SidebarTabName;
|
|
1077
294
|
} | null;
|
|
1078
|
-
openDialog: {
|
|
295
|
+
openDialog: null | {
|
|
1079
296
|
name: "imageExport" | "help" | "jsonExport";
|
|
1080
297
|
} | {
|
|
1081
298
|
name: "ttd";
|
|
1082
|
-
tab: "
|
|
299
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1083
300
|
} | {
|
|
1084
301
|
name: "commandPalette";
|
|
302
|
+
} | {
|
|
303
|
+
name: "settings";
|
|
1085
304
|
} | {
|
|
1086
305
|
name: "elementLinkSelector";
|
|
1087
|
-
sourceElementId:
|
|
1088
|
-
}
|
|
306
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
307
|
+
};
|
|
1089
308
|
defaultSidebarDockedPreference: boolean;
|
|
1090
309
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1091
310
|
selectedElementIds: Readonly<{
|
|
@@ -1101,8 +320,8 @@ export declare const actionCopyAsPng: {
|
|
|
1101
320
|
shouldCacheIgnoreZoom: boolean;
|
|
1102
321
|
toast: {
|
|
1103
322
|
message: string;
|
|
1104
|
-
closable?: boolean
|
|
1105
|
-
duration?: number
|
|
323
|
+
closable?: boolean;
|
|
324
|
+
duration?: number;
|
|
1106
325
|
} | null;
|
|
1107
326
|
zenModeEnabled: boolean;
|
|
1108
327
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1113,32 +332,13 @@ export declare const actionCopyAsPng: {
|
|
|
1113
332
|
selectedGroupIds: {
|
|
1114
333
|
[groupId: string]: boolean;
|
|
1115
334
|
};
|
|
1116
|
-
editingGroupId:
|
|
335
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1117
336
|
width: number;
|
|
1118
337
|
height: number;
|
|
1119
338
|
offsetTop: number;
|
|
1120
339
|
offsetLeft: number;
|
|
1121
340
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1122
|
-
collaborators: Map<import("../types").SocketId,
|
|
1123
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1124
|
-
button?: "up" | "down" | undefined;
|
|
1125
|
-
selectedElementIds?: Readonly<{
|
|
1126
|
-
[id: string]: true;
|
|
1127
|
-
}> | undefined;
|
|
1128
|
-
username?: string | null | undefined;
|
|
1129
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1130
|
-
color?: {
|
|
1131
|
-
background: string;
|
|
1132
|
-
stroke: string;
|
|
1133
|
-
} | undefined;
|
|
1134
|
-
avatarUrl?: string | undefined;
|
|
1135
|
-
id?: string | undefined;
|
|
1136
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1137
|
-
isCurrentUser?: boolean | undefined;
|
|
1138
|
-
isInCall?: boolean | undefined;
|
|
1139
|
-
isSpeaking?: boolean | undefined;
|
|
1140
|
-
isMuted?: boolean | undefined;
|
|
1141
|
-
}>>;
|
|
341
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1142
342
|
stats: {
|
|
1143
343
|
open: boolean;
|
|
1144
344
|
panels: number;
|
|
@@ -1151,7 +351,7 @@ export declare const actionCopyAsPng: {
|
|
|
1151
351
|
shown: true;
|
|
1152
352
|
data: import("../charts").Spreadsheet;
|
|
1153
353
|
};
|
|
1154
|
-
showHyperlinkPopup: false | "
|
|
354
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1155
355
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1156
356
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1157
357
|
originSnapOffset: {
|
|
@@ -1162,16 +362,16 @@ export declare const actionCopyAsPng: {
|
|
|
1162
362
|
userToFollow: import("../types").UserToFollow | null;
|
|
1163
363
|
followedBy: Set<import("../types").SocketId>;
|
|
1164
364
|
isCropping: boolean;
|
|
1165
|
-
croppingElementId:
|
|
365
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1166
366
|
searchMatches: Readonly<{
|
|
1167
|
-
focusedId:
|
|
367
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1168
368
|
matches: readonly import("../types").SearchMatch[];
|
|
1169
369
|
}> | null;
|
|
1170
370
|
activeLockedId: string | null;
|
|
1171
371
|
lockedMultiSelections: {
|
|
1172
372
|
[groupId: string]: true;
|
|
1173
373
|
};
|
|
1174
|
-
|
|
374
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1175
375
|
};
|
|
1176
376
|
captureUpdate: "EVENTUALLY";
|
|
1177
377
|
}>;
|
|
@@ -1187,7 +387,7 @@ export declare const copyText: {
|
|
|
1187
387
|
trackEvent: {
|
|
1188
388
|
category: "element";
|
|
1189
389
|
};
|
|
1190
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
390
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1191
391
|
captureUpdate: "EVENTUALLY";
|
|
1192
392
|
};
|
|
1193
393
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|