@excalidraw/common 0.18.0-5fffc47 → 0.18.0-6135548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +1299 -256
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +16 -28
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +48 -36
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/binding.d.ts +58 -44
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +6 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +7 -3
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +16 -20
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +5 -2
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +123 -181
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +93 -893
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +95 -159
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +42 -64
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +232 -347
- package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +159 -219
- package/dist/types/excalidraw/actions/actionLink.d.ts +45 -65
- package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -58
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +36 -58
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -63
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +44 -64
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +15 -14
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +58 -58
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +12 -19
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +21 -12
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +321 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +159 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +6 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +22 -20
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +7 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionAddToLibrary: {
|
|
3
2
|
name: "addToLibrary";
|
|
4
3
|
trackEvent: {
|
|
5
4
|
category: "element";
|
|
6
5
|
};
|
|
7
|
-
perform: (elements: readonly import("
|
|
6
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
8
7
|
captureUpdate: "EVENTUALLY";
|
|
9
8
|
appState: {
|
|
10
9
|
toast: {
|
|
@@ -17,19 +16,19 @@ export declare const actionAddToLibrary: {
|
|
|
17
16
|
} | null;
|
|
18
17
|
showWelcomeScreen: boolean;
|
|
19
18
|
isLoading: boolean;
|
|
20
|
-
errorMessage:
|
|
19
|
+
errorMessage: React.ReactNode;
|
|
21
20
|
activeEmbeddable: {
|
|
22
|
-
element: import("
|
|
23
|
-
state: "
|
|
21
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
state: "hover" | "active";
|
|
24
23
|
} | null;
|
|
25
|
-
newElement: import("
|
|
26
|
-
resizingElement: import("
|
|
27
|
-
multiElement: import("
|
|
28
|
-
selectionElement: import("
|
|
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;
|
|
29
28
|
isBindingEnabled: boolean;
|
|
30
|
-
startBoundElement: import("
|
|
31
|
-
|
|
32
|
-
frameToHighlight: import("
|
|
29
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
32
|
frameRendering: {
|
|
34
33
|
enabled: boolean;
|
|
35
34
|
name: boolean;
|
|
@@ -37,8 +36,8 @@ export declare const actionAddToLibrary: {
|
|
|
37
36
|
clip: boolean;
|
|
38
37
|
};
|
|
39
38
|
editingFrame: string | null;
|
|
40
|
-
elementsToHighlight: import("
|
|
41
|
-
editingTextElement: import("
|
|
39
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
41
|
activeTool: {
|
|
43
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
43
|
locked: boolean;
|
|
@@ -56,19 +55,19 @@ export declare const actionAddToLibrary: {
|
|
|
56
55
|
exportScale: number;
|
|
57
56
|
currentItemStrokeColor: string;
|
|
58
57
|
currentItemBackgroundColor: string;
|
|
59
|
-
currentItemFillStyle: import("
|
|
58
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
60
59
|
currentItemStrokeWidth: number;
|
|
61
|
-
currentItemStrokeStyle: import("
|
|
60
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
62
61
|
currentItemRoughness: number;
|
|
63
62
|
currentItemOpacity: number;
|
|
64
|
-
currentItemFontFamily:
|
|
63
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
65
64
|
currentItemFontSize: number;
|
|
66
|
-
currentItemTextAlign:
|
|
67
|
-
currentItemStartArrowhead: import("
|
|
68
|
-
currentItemEndArrowhead: import("
|
|
69
|
-
currentHoveredFontFamily:
|
|
70
|
-
currentItemRoundness: import("
|
|
71
|
-
currentItemArrowType: "
|
|
65
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
66
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
67
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
69
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
70
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
72
71
|
viewBackgroundColor: string;
|
|
73
72
|
scrollX: number;
|
|
74
73
|
scrollY: number;
|
|
@@ -77,28 +76,28 @@ export declare const actionAddToLibrary: {
|
|
|
77
76
|
name: string | null;
|
|
78
77
|
isResizing: boolean;
|
|
79
78
|
isRotating: boolean;
|
|
80
|
-
zoom:
|
|
81
|
-
value: import("../types").NormalizedZoomValue;
|
|
82
|
-
}>;
|
|
79
|
+
zoom: import("../types").Zoom;
|
|
83
80
|
openMenu: "canvas" | null;
|
|
84
|
-
openPopup: "
|
|
81
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
85
82
|
openSidebar: {
|
|
86
|
-
name:
|
|
87
|
-
tab?:
|
|
83
|
+
name: import("../types").SidebarName;
|
|
84
|
+
tab?: import("../types").SidebarTabName;
|
|
88
85
|
} | null;
|
|
89
|
-
openDialog: {
|
|
86
|
+
openDialog: null | {
|
|
90
87
|
name: "imageExport" | "help" | "jsonExport";
|
|
91
88
|
} | {
|
|
92
89
|
name: "ttd";
|
|
93
|
-
tab: "
|
|
90
|
+
tab: "text-to-diagram" | "mermaid";
|
|
94
91
|
} | {
|
|
95
92
|
name: "commandPalette";
|
|
93
|
+
} | {
|
|
94
|
+
name: "settings";
|
|
96
95
|
} | {
|
|
97
96
|
name: "elementLinkSelector";
|
|
98
|
-
sourceElementId:
|
|
99
|
-
}
|
|
97
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
98
|
+
};
|
|
100
99
|
defaultSidebarDockedPreference: boolean;
|
|
101
|
-
lastPointerDownWith: import("
|
|
100
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
102
101
|
selectedElementIds: Readonly<{
|
|
103
102
|
[id: string]: true;
|
|
104
103
|
}>;
|
|
@@ -111,7 +110,7 @@ export declare const actionAddToLibrary: {
|
|
|
111
110
|
selectedElementsAreBeingDragged: boolean;
|
|
112
111
|
shouldCacheIgnoreZoom: boolean;
|
|
113
112
|
zenModeEnabled: boolean;
|
|
114
|
-
theme: import("
|
|
113
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
115
114
|
gridSize: number;
|
|
116
115
|
gridStep: number;
|
|
117
116
|
gridModeEnabled: boolean;
|
|
@@ -119,37 +118,18 @@ export declare const actionAddToLibrary: {
|
|
|
119
118
|
selectedGroupIds: {
|
|
120
119
|
[groupId: string]: boolean;
|
|
121
120
|
};
|
|
122
|
-
editingGroupId:
|
|
121
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
123
122
|
width: number;
|
|
124
123
|
height: number;
|
|
125
124
|
offsetTop: number;
|
|
126
125
|
offsetLeft: number;
|
|
127
126
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
128
|
-
collaborators: Map<import("../types").SocketId,
|
|
129
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
130
|
-
button?: "up" | "down" | undefined;
|
|
131
|
-
selectedElementIds?: Readonly<{
|
|
132
|
-
[id: string]: true;
|
|
133
|
-
}> | undefined;
|
|
134
|
-
username?: string | null | undefined;
|
|
135
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
136
|
-
color?: {
|
|
137
|
-
background: string;
|
|
138
|
-
stroke: string;
|
|
139
|
-
} | undefined;
|
|
140
|
-
avatarUrl?: string | undefined;
|
|
141
|
-
id?: string | undefined;
|
|
142
|
-
socketId?: import("../types").SocketId | undefined;
|
|
143
|
-
isCurrentUser?: boolean | undefined;
|
|
144
|
-
isInCall?: boolean | undefined;
|
|
145
|
-
isSpeaking?: boolean | undefined;
|
|
146
|
-
isMuted?: boolean | undefined;
|
|
147
|
-
}>>;
|
|
127
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
148
128
|
stats: {
|
|
149
129
|
open: boolean;
|
|
150
130
|
panels: number;
|
|
151
131
|
};
|
|
152
|
-
currentChartType: import("
|
|
132
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
153
133
|
pasteDialog: {
|
|
154
134
|
shown: false;
|
|
155
135
|
data: null;
|
|
@@ -157,7 +137,7 @@ export declare const actionAddToLibrary: {
|
|
|
157
137
|
shown: true;
|
|
158
138
|
data: import("../charts").Spreadsheet;
|
|
159
139
|
};
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
140
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
141
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
142
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
143
|
originSnapOffset: {
|
|
@@ -168,16 +148,16 @@ export declare const actionAddToLibrary: {
|
|
|
168
148
|
userToFollow: import("../types").UserToFollow | null;
|
|
169
149
|
followedBy: Set<import("../types").SocketId>;
|
|
170
150
|
isCropping: boolean;
|
|
171
|
-
croppingElementId:
|
|
151
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
152
|
searchMatches: Readonly<{
|
|
173
|
-
focusedId:
|
|
153
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
174
154
|
matches: readonly import("../types").SearchMatch[];
|
|
175
155
|
}> | null;
|
|
176
156
|
activeLockedId: string | null;
|
|
177
157
|
lockedMultiSelections: {
|
|
178
158
|
[groupId: string]: true;
|
|
179
159
|
};
|
|
180
|
-
|
|
160
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
181
161
|
};
|
|
182
162
|
} | {
|
|
183
163
|
captureUpdate: "EVENTUALLY";
|
|
@@ -191,17 +171,17 @@ export declare const actionAddToLibrary: {
|
|
|
191
171
|
showWelcomeScreen: boolean;
|
|
192
172
|
isLoading: boolean;
|
|
193
173
|
activeEmbeddable: {
|
|
194
|
-
element: import("
|
|
195
|
-
state: "
|
|
174
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
175
|
+
state: "hover" | "active";
|
|
196
176
|
} | null;
|
|
197
|
-
newElement: import("
|
|
198
|
-
resizingElement: import("
|
|
199
|
-
multiElement: import("
|
|
200
|
-
selectionElement: import("
|
|
177
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
178
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
179
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
180
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
201
181
|
isBindingEnabled: boolean;
|
|
202
|
-
startBoundElement: import("
|
|
203
|
-
|
|
204
|
-
frameToHighlight: import("
|
|
182
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
183
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
184
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
205
185
|
frameRendering: {
|
|
206
186
|
enabled: boolean;
|
|
207
187
|
name: boolean;
|
|
@@ -209,8 +189,8 @@ export declare const actionAddToLibrary: {
|
|
|
209
189
|
clip: boolean;
|
|
210
190
|
};
|
|
211
191
|
editingFrame: string | null;
|
|
212
|
-
elementsToHighlight: import("
|
|
213
|
-
editingTextElement: import("
|
|
192
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
193
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
214
194
|
activeTool: {
|
|
215
195
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
216
196
|
locked: boolean;
|
|
@@ -228,19 +208,19 @@ export declare const actionAddToLibrary: {
|
|
|
228
208
|
exportScale: number;
|
|
229
209
|
currentItemStrokeColor: string;
|
|
230
210
|
currentItemBackgroundColor: string;
|
|
231
|
-
currentItemFillStyle: import("
|
|
211
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
232
212
|
currentItemStrokeWidth: number;
|
|
233
|
-
currentItemStrokeStyle: import("
|
|
213
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
234
214
|
currentItemRoughness: number;
|
|
235
215
|
currentItemOpacity: number;
|
|
236
|
-
currentItemFontFamily:
|
|
216
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
237
217
|
currentItemFontSize: number;
|
|
238
|
-
currentItemTextAlign:
|
|
239
|
-
currentItemStartArrowhead: import("
|
|
240
|
-
currentItemEndArrowhead: import("
|
|
241
|
-
currentHoveredFontFamily:
|
|
242
|
-
currentItemRoundness: import("
|
|
243
|
-
currentItemArrowType: "
|
|
218
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
219
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
220
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
221
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
222
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
223
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
244
224
|
viewBackgroundColor: string;
|
|
245
225
|
scrollX: number;
|
|
246
226
|
scrollY: number;
|
|
@@ -249,28 +229,28 @@ export declare const actionAddToLibrary: {
|
|
|
249
229
|
name: string | null;
|
|
250
230
|
isResizing: boolean;
|
|
251
231
|
isRotating: boolean;
|
|
252
|
-
zoom:
|
|
253
|
-
value: import("../types").NormalizedZoomValue;
|
|
254
|
-
}>;
|
|
232
|
+
zoom: import("../types").Zoom;
|
|
255
233
|
openMenu: "canvas" | null;
|
|
256
|
-
openPopup: "
|
|
234
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
257
235
|
openSidebar: {
|
|
258
|
-
name:
|
|
259
|
-
tab?:
|
|
236
|
+
name: import("../types").SidebarName;
|
|
237
|
+
tab?: import("../types").SidebarTabName;
|
|
260
238
|
} | null;
|
|
261
|
-
openDialog: {
|
|
239
|
+
openDialog: null | {
|
|
262
240
|
name: "imageExport" | "help" | "jsonExport";
|
|
263
241
|
} | {
|
|
264
242
|
name: "ttd";
|
|
265
|
-
tab: "
|
|
243
|
+
tab: "text-to-diagram" | "mermaid";
|
|
266
244
|
} | {
|
|
267
245
|
name: "commandPalette";
|
|
246
|
+
} | {
|
|
247
|
+
name: "settings";
|
|
268
248
|
} | {
|
|
269
249
|
name: "elementLinkSelector";
|
|
270
|
-
sourceElementId:
|
|
271
|
-
}
|
|
250
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
251
|
+
};
|
|
272
252
|
defaultSidebarDockedPreference: boolean;
|
|
273
|
-
lastPointerDownWith: import("
|
|
253
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
274
254
|
selectedElementIds: Readonly<{
|
|
275
255
|
[id: string]: true;
|
|
276
256
|
}>;
|
|
@@ -284,11 +264,11 @@ export declare const actionAddToLibrary: {
|
|
|
284
264
|
shouldCacheIgnoreZoom: boolean;
|
|
285
265
|
toast: {
|
|
286
266
|
message: string;
|
|
287
|
-
closable?: boolean
|
|
288
|
-
duration?: number
|
|
267
|
+
closable?: boolean;
|
|
268
|
+
duration?: number;
|
|
289
269
|
} | null;
|
|
290
270
|
zenModeEnabled: boolean;
|
|
291
|
-
theme: import("
|
|
271
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
292
272
|
gridSize: number;
|
|
293
273
|
gridStep: number;
|
|
294
274
|
gridModeEnabled: boolean;
|
|
@@ -296,37 +276,18 @@ export declare const actionAddToLibrary: {
|
|
|
296
276
|
selectedGroupIds: {
|
|
297
277
|
[groupId: string]: boolean;
|
|
298
278
|
};
|
|
299
|
-
editingGroupId:
|
|
279
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
300
280
|
width: number;
|
|
301
281
|
height: number;
|
|
302
282
|
offsetTop: number;
|
|
303
283
|
offsetLeft: number;
|
|
304
284
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
305
|
-
collaborators: Map<import("../types").SocketId,
|
|
306
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
307
|
-
button?: "up" | "down" | undefined;
|
|
308
|
-
selectedElementIds?: Readonly<{
|
|
309
|
-
[id: string]: true;
|
|
310
|
-
}> | undefined;
|
|
311
|
-
username?: string | null | undefined;
|
|
312
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
313
|
-
color?: {
|
|
314
|
-
background: string;
|
|
315
|
-
stroke: string;
|
|
316
|
-
} | undefined;
|
|
317
|
-
avatarUrl?: string | undefined;
|
|
318
|
-
id?: string | undefined;
|
|
319
|
-
socketId?: import("../types").SocketId | undefined;
|
|
320
|
-
isCurrentUser?: boolean | undefined;
|
|
321
|
-
isInCall?: boolean | undefined;
|
|
322
|
-
isSpeaking?: boolean | undefined;
|
|
323
|
-
isMuted?: boolean | undefined;
|
|
324
|
-
}>>;
|
|
285
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
325
286
|
stats: {
|
|
326
287
|
open: boolean;
|
|
327
288
|
panels: number;
|
|
328
289
|
};
|
|
329
|
-
currentChartType: import("
|
|
290
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
330
291
|
pasteDialog: {
|
|
331
292
|
shown: false;
|
|
332
293
|
data: null;
|
|
@@ -334,7 +295,7 @@ export declare const actionAddToLibrary: {
|
|
|
334
295
|
shown: true;
|
|
335
296
|
data: import("../charts").Spreadsheet;
|
|
336
297
|
};
|
|
337
|
-
showHyperlinkPopup: false | "
|
|
298
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
338
299
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
339
300
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
340
301
|
originSnapOffset: {
|
|
@@ -345,16 +306,16 @@ export declare const actionAddToLibrary: {
|
|
|
345
306
|
userToFollow: import("../types").UserToFollow | null;
|
|
346
307
|
followedBy: Set<import("../types").SocketId>;
|
|
347
308
|
isCropping: boolean;
|
|
348
|
-
croppingElementId:
|
|
309
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
349
310
|
searchMatches: Readonly<{
|
|
350
|
-
focusedId:
|
|
311
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
351
312
|
matches: readonly import("../types").SearchMatch[];
|
|
352
313
|
}> | null;
|
|
353
314
|
activeLockedId: string | null;
|
|
354
315
|
lockedMultiSelections: {
|
|
355
316
|
[groupId: string]: true;
|
|
356
317
|
};
|
|
357
|
-
|
|
318
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
358
319
|
};
|
|
359
320
|
}> | {
|
|
360
321
|
captureUpdate: "EVENTUALLY";
|
|
@@ -368,17 +329,17 @@ export declare const actionAddToLibrary: {
|
|
|
368
329
|
showWelcomeScreen: boolean;
|
|
369
330
|
isLoading: boolean;
|
|
370
331
|
activeEmbeddable: {
|
|
371
|
-
element: import("
|
|
372
|
-
state: "
|
|
332
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
333
|
+
state: "hover" | "active";
|
|
373
334
|
} | null;
|
|
374
|
-
newElement: import("
|
|
375
|
-
resizingElement: import("
|
|
376
|
-
multiElement: import("
|
|
377
|
-
selectionElement: import("
|
|
335
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
336
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
337
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
338
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
378
339
|
isBindingEnabled: boolean;
|
|
379
|
-
startBoundElement: import("
|
|
380
|
-
|
|
381
|
-
frameToHighlight: import("
|
|
340
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
341
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
342
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
382
343
|
frameRendering: {
|
|
383
344
|
enabled: boolean;
|
|
384
345
|
name: boolean;
|
|
@@ -386,8 +347,8 @@ export declare const actionAddToLibrary: {
|
|
|
386
347
|
clip: boolean;
|
|
387
348
|
};
|
|
388
349
|
editingFrame: string | null;
|
|
389
|
-
elementsToHighlight: import("
|
|
390
|
-
editingTextElement: import("
|
|
350
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
351
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
391
352
|
activeTool: {
|
|
392
353
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
393
354
|
locked: boolean;
|
|
@@ -405,19 +366,19 @@ export declare const actionAddToLibrary: {
|
|
|
405
366
|
exportScale: number;
|
|
406
367
|
currentItemStrokeColor: string;
|
|
407
368
|
currentItemBackgroundColor: string;
|
|
408
|
-
currentItemFillStyle: import("
|
|
369
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
409
370
|
currentItemStrokeWidth: number;
|
|
410
|
-
currentItemStrokeStyle: import("
|
|
371
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
411
372
|
currentItemRoughness: number;
|
|
412
373
|
currentItemOpacity: number;
|
|
413
|
-
currentItemFontFamily:
|
|
374
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
414
375
|
currentItemFontSize: number;
|
|
415
|
-
currentItemTextAlign:
|
|
416
|
-
currentItemStartArrowhead: import("
|
|
417
|
-
currentItemEndArrowhead: import("
|
|
418
|
-
currentHoveredFontFamily:
|
|
419
|
-
currentItemRoundness: import("
|
|
420
|
-
currentItemArrowType: "
|
|
376
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
377
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
378
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
379
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
380
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
381
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
421
382
|
viewBackgroundColor: string;
|
|
422
383
|
scrollX: number;
|
|
423
384
|
scrollY: number;
|
|
@@ -426,28 +387,28 @@ export declare const actionAddToLibrary: {
|
|
|
426
387
|
name: string | null;
|
|
427
388
|
isResizing: boolean;
|
|
428
389
|
isRotating: boolean;
|
|
429
|
-
zoom:
|
|
430
|
-
value: import("../types").NormalizedZoomValue;
|
|
431
|
-
}>;
|
|
390
|
+
zoom: import("../types").Zoom;
|
|
432
391
|
openMenu: "canvas" | null;
|
|
433
|
-
openPopup: "
|
|
392
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
434
393
|
openSidebar: {
|
|
435
|
-
name:
|
|
436
|
-
tab?:
|
|
394
|
+
name: import("../types").SidebarName;
|
|
395
|
+
tab?: import("../types").SidebarTabName;
|
|
437
396
|
} | null;
|
|
438
|
-
openDialog: {
|
|
397
|
+
openDialog: null | {
|
|
439
398
|
name: "imageExport" | "help" | "jsonExport";
|
|
440
399
|
} | {
|
|
441
400
|
name: "ttd";
|
|
442
|
-
tab: "
|
|
401
|
+
tab: "text-to-diagram" | "mermaid";
|
|
443
402
|
} | {
|
|
444
403
|
name: "commandPalette";
|
|
404
|
+
} | {
|
|
405
|
+
name: "settings";
|
|
445
406
|
} | {
|
|
446
407
|
name: "elementLinkSelector";
|
|
447
|
-
sourceElementId:
|
|
448
|
-
}
|
|
408
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
409
|
+
};
|
|
449
410
|
defaultSidebarDockedPreference: boolean;
|
|
450
|
-
lastPointerDownWith: import("
|
|
411
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
451
412
|
selectedElementIds: Readonly<{
|
|
452
413
|
[id: string]: true;
|
|
453
414
|
}>;
|
|
@@ -461,11 +422,11 @@ export declare const actionAddToLibrary: {
|
|
|
461
422
|
shouldCacheIgnoreZoom: boolean;
|
|
462
423
|
toast: {
|
|
463
424
|
message: string;
|
|
464
|
-
closable?: boolean
|
|
465
|
-
duration?: number
|
|
425
|
+
closable?: boolean;
|
|
426
|
+
duration?: number;
|
|
466
427
|
} | null;
|
|
467
428
|
zenModeEnabled: boolean;
|
|
468
|
-
theme: import("
|
|
429
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
469
430
|
gridSize: number;
|
|
470
431
|
gridStep: number;
|
|
471
432
|
gridModeEnabled: boolean;
|
|
@@ -473,37 +434,18 @@ export declare const actionAddToLibrary: {
|
|
|
473
434
|
selectedGroupIds: {
|
|
474
435
|
[groupId: string]: boolean;
|
|
475
436
|
};
|
|
476
|
-
editingGroupId:
|
|
437
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
477
438
|
width: number;
|
|
478
439
|
height: number;
|
|
479
440
|
offsetTop: number;
|
|
480
441
|
offsetLeft: number;
|
|
481
442
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
482
|
-
collaborators: Map<import("../types").SocketId,
|
|
483
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
484
|
-
button?: "up" | "down" | undefined;
|
|
485
|
-
selectedElementIds?: Readonly<{
|
|
486
|
-
[id: string]: true;
|
|
487
|
-
}> | undefined;
|
|
488
|
-
username?: string | null | undefined;
|
|
489
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
490
|
-
color?: {
|
|
491
|
-
background: string;
|
|
492
|
-
stroke: string;
|
|
493
|
-
} | undefined;
|
|
494
|
-
avatarUrl?: string | undefined;
|
|
495
|
-
id?: string | undefined;
|
|
496
|
-
socketId?: import("../types").SocketId | undefined;
|
|
497
|
-
isCurrentUser?: boolean | undefined;
|
|
498
|
-
isInCall?: boolean | undefined;
|
|
499
|
-
isSpeaking?: boolean | undefined;
|
|
500
|
-
isMuted?: boolean | undefined;
|
|
501
|
-
}>>;
|
|
443
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
502
444
|
stats: {
|
|
503
445
|
open: boolean;
|
|
504
446
|
panels: number;
|
|
505
447
|
};
|
|
506
|
-
currentChartType: import("
|
|
448
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
507
449
|
pasteDialog: {
|
|
508
450
|
shown: false;
|
|
509
451
|
data: null;
|
|
@@ -511,7 +453,7 @@ export declare const actionAddToLibrary: {
|
|
|
511
453
|
shown: true;
|
|
512
454
|
data: import("../charts").Spreadsheet;
|
|
513
455
|
};
|
|
514
|
-
showHyperlinkPopup: false | "
|
|
456
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
515
457
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
516
458
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
517
459
|
originSnapOffset: {
|
|
@@ -522,16 +464,16 @@ export declare const actionAddToLibrary: {
|
|
|
522
464
|
userToFollow: import("../types").UserToFollow | null;
|
|
523
465
|
followedBy: Set<import("../types").SocketId>;
|
|
524
466
|
isCropping: boolean;
|
|
525
|
-
croppingElementId:
|
|
467
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
526
468
|
searchMatches: Readonly<{
|
|
527
|
-
focusedId:
|
|
469
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
528
470
|
matches: readonly import("../types").SearchMatch[];
|
|
529
471
|
}> | null;
|
|
530
472
|
activeLockedId: string | null;
|
|
531
473
|
lockedMultiSelections: {
|
|
532
474
|
[groupId: string]: true;
|
|
533
475
|
};
|
|
534
|
-
|
|
476
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
535
477
|
};
|
|
536
478
|
};
|
|
537
479
|
label: string;
|