@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 actionLink: {
|
|
3
2
|
name: "hyperlink";
|
|
4
|
-
label: (elements: readonly import("
|
|
3
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
5
4
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
perform: (elements: readonly import("
|
|
7
|
-
elements: readonly import("
|
|
5
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
6
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
8
7
|
appState: {
|
|
9
8
|
showHyperlinkPopup: "editor";
|
|
10
9
|
openMenu: null;
|
|
@@ -15,19 +14,19 @@ export declare const actionLink: {
|
|
|
15
14
|
} | null;
|
|
16
15
|
showWelcomeScreen: boolean;
|
|
17
16
|
isLoading: boolean;
|
|
18
|
-
errorMessage:
|
|
17
|
+
errorMessage: React.ReactNode;
|
|
19
18
|
activeEmbeddable: {
|
|
20
|
-
element: import("
|
|
21
|
-
state: "
|
|
19
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
20
|
+
state: "hover" | "active";
|
|
22
21
|
} | null;
|
|
23
|
-
newElement: import("
|
|
24
|
-
resizingElement: import("
|
|
25
|
-
multiElement: import("
|
|
26
|
-
selectionElement: import("
|
|
22
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
23
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
24
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
25
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
26
|
isBindingEnabled: boolean;
|
|
28
|
-
startBoundElement: import("
|
|
29
|
-
|
|
30
|
-
frameToHighlight: import("
|
|
27
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
28
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
30
|
frameRendering: {
|
|
32
31
|
enabled: boolean;
|
|
33
32
|
name: boolean;
|
|
@@ -35,8 +34,8 @@ export declare const actionLink: {
|
|
|
35
34
|
clip: boolean;
|
|
36
35
|
};
|
|
37
36
|
editingFrame: string | null;
|
|
38
|
-
elementsToHighlight: import("
|
|
39
|
-
editingTextElement: import("
|
|
37
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
38
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
39
|
activeTool: {
|
|
41
40
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
42
41
|
locked: boolean;
|
|
@@ -54,19 +53,19 @@ export declare const actionLink: {
|
|
|
54
53
|
exportScale: number;
|
|
55
54
|
currentItemStrokeColor: string;
|
|
56
55
|
currentItemBackgroundColor: string;
|
|
57
|
-
currentItemFillStyle: import("
|
|
56
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
58
57
|
currentItemStrokeWidth: number;
|
|
59
|
-
currentItemStrokeStyle: import("
|
|
58
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
60
59
|
currentItemRoughness: number;
|
|
61
60
|
currentItemOpacity: number;
|
|
62
|
-
currentItemFontFamily:
|
|
61
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
63
62
|
currentItemFontSize: number;
|
|
64
|
-
currentItemTextAlign:
|
|
65
|
-
currentItemStartArrowhead: import("
|
|
66
|
-
currentItemEndArrowhead: import("
|
|
67
|
-
currentHoveredFontFamily:
|
|
68
|
-
currentItemRoundness: import("
|
|
69
|
-
currentItemArrowType: "
|
|
63
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
64
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
65
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
67
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
70
69
|
viewBackgroundColor: string;
|
|
71
70
|
scrollX: number;
|
|
72
71
|
scrollY: number;
|
|
@@ -75,27 +74,27 @@ export declare const actionLink: {
|
|
|
75
74
|
name: string | null;
|
|
76
75
|
isResizing: boolean;
|
|
77
76
|
isRotating: boolean;
|
|
78
|
-
zoom:
|
|
79
|
-
|
|
80
|
-
}>;
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
77
|
+
zoom: import("../types").Zoom;
|
|
78
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
79
|
openSidebar: {
|
|
83
|
-
name:
|
|
84
|
-
tab?:
|
|
80
|
+
name: import("../types").SidebarName;
|
|
81
|
+
tab?: import("../types").SidebarTabName;
|
|
85
82
|
} | null;
|
|
86
|
-
openDialog: {
|
|
83
|
+
openDialog: null | {
|
|
87
84
|
name: "imageExport" | "help" | "jsonExport";
|
|
88
85
|
} | {
|
|
89
86
|
name: "ttd";
|
|
90
|
-
tab: "
|
|
87
|
+
tab: "text-to-diagram" | "mermaid";
|
|
91
88
|
} | {
|
|
92
89
|
name: "commandPalette";
|
|
90
|
+
} | {
|
|
91
|
+
name: "settings";
|
|
93
92
|
} | {
|
|
94
93
|
name: "elementLinkSelector";
|
|
95
|
-
sourceElementId:
|
|
96
|
-
}
|
|
94
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
95
|
+
};
|
|
97
96
|
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("
|
|
97
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
98
|
selectedElementIds: Readonly<{
|
|
100
99
|
[id: string]: true;
|
|
101
100
|
}>;
|
|
@@ -109,11 +108,11 @@ export declare const actionLink: {
|
|
|
109
108
|
shouldCacheIgnoreZoom: boolean;
|
|
110
109
|
toast: {
|
|
111
110
|
message: string;
|
|
112
|
-
closable?: boolean
|
|
113
|
-
duration?: number
|
|
111
|
+
closable?: boolean;
|
|
112
|
+
duration?: number;
|
|
114
113
|
} | null;
|
|
115
114
|
zenModeEnabled: boolean;
|
|
116
|
-
theme: import("
|
|
115
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
117
116
|
gridSize: number;
|
|
118
117
|
gridStep: number;
|
|
119
118
|
gridModeEnabled: boolean;
|
|
@@ -121,37 +120,18 @@ export declare const actionLink: {
|
|
|
121
120
|
selectedGroupIds: {
|
|
122
121
|
[groupId: string]: boolean;
|
|
123
122
|
};
|
|
124
|
-
editingGroupId:
|
|
123
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
125
124
|
width: number;
|
|
126
125
|
height: number;
|
|
127
126
|
offsetTop: number;
|
|
128
127
|
offsetLeft: number;
|
|
129
128
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
130
|
-
collaborators: Map<import("../types").SocketId,
|
|
131
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
132
|
-
button?: "up" | "down" | undefined;
|
|
133
|
-
selectedElementIds?: Readonly<{
|
|
134
|
-
[id: string]: true;
|
|
135
|
-
}> | undefined;
|
|
136
|
-
username?: string | null | undefined;
|
|
137
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
138
|
-
color?: {
|
|
139
|
-
background: string;
|
|
140
|
-
stroke: string;
|
|
141
|
-
} | undefined;
|
|
142
|
-
avatarUrl?: string | undefined;
|
|
143
|
-
id?: string | undefined;
|
|
144
|
-
socketId?: import("../types").SocketId | undefined;
|
|
145
|
-
isCurrentUser?: boolean | undefined;
|
|
146
|
-
isInCall?: boolean | undefined;
|
|
147
|
-
isSpeaking?: boolean | undefined;
|
|
148
|
-
isMuted?: boolean | undefined;
|
|
149
|
-
}>>;
|
|
129
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
150
130
|
stats: {
|
|
151
131
|
open: boolean;
|
|
152
132
|
panels: number;
|
|
153
133
|
};
|
|
154
|
-
currentChartType: import("
|
|
134
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
155
135
|
pasteDialog: {
|
|
156
136
|
shown: false;
|
|
157
137
|
data: null;
|
|
@@ -169,16 +149,16 @@ export declare const actionLink: {
|
|
|
169
149
|
userToFollow: import("../types").UserToFollow | null;
|
|
170
150
|
followedBy: Set<import("../types").SocketId>;
|
|
171
151
|
isCropping: boolean;
|
|
172
|
-
croppingElementId:
|
|
152
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
173
153
|
searchMatches: Readonly<{
|
|
174
|
-
focusedId:
|
|
154
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
175
155
|
matches: readonly import("../types").SearchMatch[];
|
|
176
156
|
}> | null;
|
|
177
157
|
activeLockedId: string | null;
|
|
178
158
|
lockedMultiSelections: {
|
|
179
159
|
[groupId: string]: true;
|
|
180
160
|
};
|
|
181
|
-
|
|
161
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
182
162
|
};
|
|
183
163
|
captureUpdate: "IMMEDIATELY";
|
|
184
164
|
};
|
|
@@ -187,7 +167,7 @@ export declare const actionLink: {
|
|
|
187
167
|
action: string;
|
|
188
168
|
};
|
|
189
169
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
190
|
-
predicate: (elements: readonly import("
|
|
170
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
191
171
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
192
172
|
} & {
|
|
193
173
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionShortcuts: {
|
|
3
2
|
name: "toggleShortcuts";
|
|
4
3
|
label: string;
|
|
@@ -8,7 +7,7 @@ export declare const actionShortcuts: {
|
|
|
8
7
|
category: "menu";
|
|
9
8
|
action: string;
|
|
10
9
|
};
|
|
11
|
-
perform: (_elements: readonly import("
|
|
10
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, { focusContainer }: import("../types").AppClassProperties) => {
|
|
12
11
|
appState: {
|
|
13
12
|
openDialog: {
|
|
14
13
|
name: "help";
|
|
@@ -22,19 +21,19 @@ export declare const actionShortcuts: {
|
|
|
22
21
|
} | null;
|
|
23
22
|
showWelcomeScreen: boolean;
|
|
24
23
|
isLoading: boolean;
|
|
25
|
-
errorMessage:
|
|
24
|
+
errorMessage: React.ReactNode;
|
|
26
25
|
activeEmbeddable: {
|
|
27
|
-
element: import("
|
|
28
|
-
state: "
|
|
26
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
+
state: "hover" | "active";
|
|
29
28
|
} | null;
|
|
30
|
-
newElement: import("
|
|
31
|
-
resizingElement: import("
|
|
32
|
-
multiElement: import("
|
|
33
|
-
selectionElement: import("
|
|
29
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
33
|
isBindingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("
|
|
36
|
-
|
|
37
|
-
frameToHighlight: import("
|
|
34
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
37
|
frameRendering: {
|
|
39
38
|
enabled: boolean;
|
|
40
39
|
name: boolean;
|
|
@@ -42,8 +41,8 @@ export declare const actionShortcuts: {
|
|
|
42
41
|
clip: boolean;
|
|
43
42
|
};
|
|
44
43
|
editingFrame: string | null;
|
|
45
|
-
elementsToHighlight: import("
|
|
46
|
-
editingTextElement: import("
|
|
44
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
46
|
activeTool: {
|
|
48
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
48
|
locked: boolean;
|
|
@@ -61,19 +60,19 @@ export declare const actionShortcuts: {
|
|
|
61
60
|
exportScale: number;
|
|
62
61
|
currentItemStrokeColor: string;
|
|
63
62
|
currentItemBackgroundColor: string;
|
|
64
|
-
currentItemFillStyle: import("
|
|
63
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
65
64
|
currentItemStrokeWidth: number;
|
|
66
|
-
currentItemStrokeStyle: import("
|
|
65
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
67
66
|
currentItemRoughness: number;
|
|
68
67
|
currentItemOpacity: number;
|
|
69
|
-
currentItemFontFamily:
|
|
68
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
70
69
|
currentItemFontSize: number;
|
|
71
|
-
currentItemTextAlign:
|
|
72
|
-
currentItemStartArrowhead: import("
|
|
73
|
-
currentItemEndArrowhead: import("
|
|
74
|
-
currentHoveredFontFamily:
|
|
75
|
-
currentItemRoundness: import("
|
|
76
|
-
currentItemArrowType: "
|
|
70
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
71
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
73
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
74
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
75
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
77
76
|
viewBackgroundColor: string;
|
|
78
77
|
scrollX: number;
|
|
79
78
|
scrollY: number;
|
|
@@ -82,15 +81,13 @@ export declare const actionShortcuts: {
|
|
|
82
81
|
name: string | null;
|
|
83
82
|
isResizing: boolean;
|
|
84
83
|
isRotating: boolean;
|
|
85
|
-
zoom:
|
|
86
|
-
value: import("../types").NormalizedZoomValue;
|
|
87
|
-
}>;
|
|
84
|
+
zoom: import("../types").Zoom;
|
|
88
85
|
openSidebar: {
|
|
89
|
-
name:
|
|
90
|
-
tab?:
|
|
86
|
+
name: import("../types").SidebarName;
|
|
87
|
+
tab?: import("../types").SidebarTabName;
|
|
91
88
|
} | null;
|
|
92
89
|
defaultSidebarDockedPreference: boolean;
|
|
93
|
-
lastPointerDownWith: import("
|
|
90
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
94
91
|
selectedElementIds: Readonly<{
|
|
95
92
|
[id: string]: true;
|
|
96
93
|
}>;
|
|
@@ -104,11 +101,11 @@ export declare const actionShortcuts: {
|
|
|
104
101
|
shouldCacheIgnoreZoom: boolean;
|
|
105
102
|
toast: {
|
|
106
103
|
message: string;
|
|
107
|
-
closable?: boolean
|
|
108
|
-
duration?: number
|
|
104
|
+
closable?: boolean;
|
|
105
|
+
duration?: number;
|
|
109
106
|
} | null;
|
|
110
107
|
zenModeEnabled: boolean;
|
|
111
|
-
theme: import("
|
|
108
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
112
109
|
gridSize: number;
|
|
113
110
|
gridStep: number;
|
|
114
111
|
gridModeEnabled: boolean;
|
|
@@ -116,37 +113,18 @@ export declare const actionShortcuts: {
|
|
|
116
113
|
selectedGroupIds: {
|
|
117
114
|
[groupId: string]: boolean;
|
|
118
115
|
};
|
|
119
|
-
editingGroupId:
|
|
116
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
120
117
|
width: number;
|
|
121
118
|
height: number;
|
|
122
119
|
offsetTop: number;
|
|
123
120
|
offsetLeft: number;
|
|
124
121
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
125
|
-
collaborators: Map<import("../types").SocketId,
|
|
126
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
127
|
-
button?: "up" | "down" | undefined;
|
|
128
|
-
selectedElementIds?: Readonly<{
|
|
129
|
-
[id: string]: true;
|
|
130
|
-
}> | undefined;
|
|
131
|
-
username?: string | null | undefined;
|
|
132
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
133
|
-
color?: {
|
|
134
|
-
background: string;
|
|
135
|
-
stroke: string;
|
|
136
|
-
} | undefined;
|
|
137
|
-
avatarUrl?: string | undefined;
|
|
138
|
-
id?: string | undefined;
|
|
139
|
-
socketId?: import("../types").SocketId | undefined;
|
|
140
|
-
isCurrentUser?: boolean | undefined;
|
|
141
|
-
isInCall?: boolean | undefined;
|
|
142
|
-
isSpeaking?: boolean | undefined;
|
|
143
|
-
isMuted?: boolean | undefined;
|
|
144
|
-
}>>;
|
|
122
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
145
123
|
stats: {
|
|
146
124
|
open: boolean;
|
|
147
125
|
panels: number;
|
|
148
126
|
};
|
|
149
|
-
currentChartType: import("
|
|
127
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
150
128
|
pasteDialog: {
|
|
151
129
|
shown: false;
|
|
152
130
|
data: null;
|
|
@@ -154,7 +132,7 @@ export declare const actionShortcuts: {
|
|
|
154
132
|
shown: true;
|
|
155
133
|
data: import("../charts").Spreadsheet;
|
|
156
134
|
};
|
|
157
|
-
showHyperlinkPopup: false | "
|
|
135
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
158
136
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
159
137
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
160
138
|
originSnapOffset: {
|
|
@@ -165,16 +143,16 @@ export declare const actionShortcuts: {
|
|
|
165
143
|
userToFollow: import("../types").UserToFollow | null;
|
|
166
144
|
followedBy: Set<import("../types").SocketId>;
|
|
167
145
|
isCropping: boolean;
|
|
168
|
-
croppingElementId:
|
|
146
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
169
147
|
searchMatches: Readonly<{
|
|
170
|
-
focusedId:
|
|
148
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
171
149
|
matches: readonly import("../types").SearchMatch[];
|
|
172
150
|
}> | null;
|
|
173
151
|
activeLockedId: string | null;
|
|
174
152
|
lockedMultiSelections: {
|
|
175
153
|
[groupId: string]: true;
|
|
176
154
|
};
|
|
177
|
-
|
|
155
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
178
156
|
};
|
|
179
157
|
captureUpdate: "EVENTUALLY";
|
|
180
158
|
};
|