@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758
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 +3 -3
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +19 -27
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +50 -39
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +66 -46
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/distribute.d.ts +2 -1
- 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 +3 -3
- package/dist/types/element/src/linearElementEditor.d.ts +18 -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 +8 -12
- package/dist/types/element/src/utils.d.ts +8 -3
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +141 -202
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +71 -112
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +424 -858
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +105 -907
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +115 -180
- 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 +44 -71
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +70 -111
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionExport.d.ts +153 -1166
- 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 +221 -340
- package/dist/types/excalidraw/actions/actionGroup.d.ts +74 -123
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +126 -185
- package/dist/types/excalidraw/actions/actionLink.d.ts +51 -72
- package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -65
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +131 -2576
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -62
- package/dist/types/excalidraw/actions/actionStyles.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -65
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +49 -70
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +50 -71
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +50 -71
- 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/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +20 -20
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +11 -35
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +68 -60
- 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 +2 -4
- 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/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -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 +23 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -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 +12 -29
- 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/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -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 +95 -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 +48 -38
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- 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/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- 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 +27 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/shapes.d.ts +74 -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 +319 -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 +158 -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 +8 -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 +34 -29
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/point.d.ts +6 -1
- 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/math/src/types.d.ts +25 -1
- 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 +2 -2
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -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,22 @@ 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
|
-
|
|
29
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
+
suggestedBinding: {
|
|
31
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
32
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
33
|
+
} | null;
|
|
34
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
35
|
frameRendering: {
|
|
34
36
|
enabled: boolean;
|
|
35
37
|
name: boolean;
|
|
@@ -37,8 +39,8 @@ export declare const actionAddToLibrary: {
|
|
|
37
39
|
clip: boolean;
|
|
38
40
|
};
|
|
39
41
|
editingFrame: string | null;
|
|
40
|
-
elementsToHighlight: import("
|
|
41
|
-
editingTextElement: import("
|
|
42
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
44
|
activeTool: {
|
|
43
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
46
|
locked: boolean;
|
|
@@ -56,19 +58,19 @@ export declare const actionAddToLibrary: {
|
|
|
56
58
|
exportScale: number;
|
|
57
59
|
currentItemStrokeColor: string;
|
|
58
60
|
currentItemBackgroundColor: string;
|
|
59
|
-
currentItemFillStyle: import("
|
|
61
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
60
62
|
currentItemStrokeWidth: number;
|
|
61
|
-
currentItemStrokeStyle: import("
|
|
63
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
62
64
|
currentItemRoughness: number;
|
|
63
65
|
currentItemOpacity: number;
|
|
64
|
-
currentItemFontFamily:
|
|
66
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
65
67
|
currentItemFontSize: number;
|
|
66
|
-
currentItemTextAlign:
|
|
67
|
-
currentItemStartArrowhead: import("
|
|
68
|
-
currentItemEndArrowhead: import("
|
|
69
|
-
currentHoveredFontFamily:
|
|
70
|
-
currentItemRoundness: import("
|
|
71
|
-
currentItemArrowType: "
|
|
68
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
69
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
71
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
72
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
73
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
72
74
|
viewBackgroundColor: string;
|
|
73
75
|
scrollX: number;
|
|
74
76
|
scrollY: number;
|
|
@@ -77,28 +79,32 @@ export declare const actionAddToLibrary: {
|
|
|
77
79
|
name: string | null;
|
|
78
80
|
isResizing: boolean;
|
|
79
81
|
isRotating: boolean;
|
|
80
|
-
zoom:
|
|
81
|
-
value: import("../types").NormalizedZoomValue;
|
|
82
|
-
}>;
|
|
82
|
+
zoom: import("../types").Zoom;
|
|
83
83
|
openMenu: "canvas" | null;
|
|
84
|
-
openPopup: "
|
|
84
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
85
85
|
openSidebar: {
|
|
86
|
-
name:
|
|
87
|
-
tab?:
|
|
86
|
+
name: import("../types").SidebarName;
|
|
87
|
+
tab?: import("../types").SidebarTabName;
|
|
88
88
|
} | null;
|
|
89
|
-
openDialog: {
|
|
89
|
+
openDialog: null | {
|
|
90
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
91
91
|
} | {
|
|
92
92
|
name: "ttd";
|
|
93
|
-
tab: "
|
|
93
|
+
tab: "text-to-diagram" | "mermaid";
|
|
94
94
|
} | {
|
|
95
95
|
name: "commandPalette";
|
|
96
|
+
} | {
|
|
97
|
+
name: "settings";
|
|
96
98
|
} | {
|
|
97
99
|
name: "elementLinkSelector";
|
|
98
|
-
sourceElementId:
|
|
99
|
-
} |
|
|
100
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
101
|
+
} | {
|
|
102
|
+
name: "charts";
|
|
103
|
+
data: import("../charts").Spreadsheet;
|
|
104
|
+
rawText: string;
|
|
105
|
+
};
|
|
100
106
|
defaultSidebarDockedPreference: boolean;
|
|
101
|
-
lastPointerDownWith: import("
|
|
107
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
102
108
|
selectedElementIds: Readonly<{
|
|
103
109
|
[id: string]: true;
|
|
104
110
|
}>;
|
|
@@ -111,7 +117,7 @@ export declare const actionAddToLibrary: {
|
|
|
111
117
|
selectedElementsAreBeingDragged: boolean;
|
|
112
118
|
shouldCacheIgnoreZoom: boolean;
|
|
113
119
|
zenModeEnabled: boolean;
|
|
114
|
-
theme: import("
|
|
120
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
115
121
|
gridSize: number;
|
|
116
122
|
gridStep: number;
|
|
117
123
|
gridModeEnabled: boolean;
|
|
@@ -119,45 +125,18 @@ export declare const actionAddToLibrary: {
|
|
|
119
125
|
selectedGroupIds: {
|
|
120
126
|
[groupId: string]: boolean;
|
|
121
127
|
};
|
|
122
|
-
editingGroupId:
|
|
128
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
123
129
|
width: number;
|
|
124
130
|
height: number;
|
|
125
131
|
offsetTop: number;
|
|
126
132
|
offsetLeft: number;
|
|
127
133
|
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
|
-
}>>;
|
|
134
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
148
135
|
stats: {
|
|
149
136
|
open: boolean;
|
|
150
137
|
panels: number;
|
|
151
138
|
};
|
|
152
|
-
|
|
153
|
-
pasteDialog: {
|
|
154
|
-
shown: false;
|
|
155
|
-
data: null;
|
|
156
|
-
} | {
|
|
157
|
-
shown: true;
|
|
158
|
-
data: import("../charts").Spreadsheet;
|
|
159
|
-
};
|
|
160
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
139
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
140
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
141
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
142
|
originSnapOffset: {
|
|
@@ -168,16 +147,16 @@ export declare const actionAddToLibrary: {
|
|
|
168
147
|
userToFollow: import("../types").UserToFollow | null;
|
|
169
148
|
followedBy: Set<import("../types").SocketId>;
|
|
170
149
|
isCropping: boolean;
|
|
171
|
-
croppingElementId:
|
|
150
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
151
|
searchMatches: Readonly<{
|
|
173
|
-
focusedId:
|
|
152
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
174
153
|
matches: readonly import("../types").SearchMatch[];
|
|
175
154
|
}> | null;
|
|
176
155
|
activeLockedId: string | null;
|
|
177
156
|
lockedMultiSelections: {
|
|
178
157
|
[groupId: string]: true;
|
|
179
158
|
};
|
|
180
|
-
|
|
159
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
181
160
|
};
|
|
182
161
|
} | {
|
|
183
162
|
captureUpdate: "EVENTUALLY";
|
|
@@ -191,17 +170,20 @@ export declare const actionAddToLibrary: {
|
|
|
191
170
|
showWelcomeScreen: boolean;
|
|
192
171
|
isLoading: boolean;
|
|
193
172
|
activeEmbeddable: {
|
|
194
|
-
element: import("
|
|
195
|
-
state: "
|
|
173
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
174
|
+
state: "hover" | "active";
|
|
196
175
|
} | null;
|
|
197
|
-
newElement: import("
|
|
198
|
-
resizingElement: import("
|
|
199
|
-
multiElement: import("
|
|
200
|
-
selectionElement: import("
|
|
176
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
177
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
178
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
179
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
201
180
|
isBindingEnabled: boolean;
|
|
202
|
-
startBoundElement: import("
|
|
203
|
-
|
|
204
|
-
|
|
181
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
182
|
+
suggestedBinding: {
|
|
183
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
184
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
185
|
+
} | null;
|
|
186
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
205
187
|
frameRendering: {
|
|
206
188
|
enabled: boolean;
|
|
207
189
|
name: boolean;
|
|
@@ -209,8 +191,8 @@ export declare const actionAddToLibrary: {
|
|
|
209
191
|
clip: boolean;
|
|
210
192
|
};
|
|
211
193
|
editingFrame: string | null;
|
|
212
|
-
elementsToHighlight: import("
|
|
213
|
-
editingTextElement: import("
|
|
194
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
195
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
214
196
|
activeTool: {
|
|
215
197
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
216
198
|
locked: boolean;
|
|
@@ -228,19 +210,19 @@ export declare const actionAddToLibrary: {
|
|
|
228
210
|
exportScale: number;
|
|
229
211
|
currentItemStrokeColor: string;
|
|
230
212
|
currentItemBackgroundColor: string;
|
|
231
|
-
currentItemFillStyle: import("
|
|
213
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
232
214
|
currentItemStrokeWidth: number;
|
|
233
|
-
currentItemStrokeStyle: import("
|
|
215
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
234
216
|
currentItemRoughness: number;
|
|
235
217
|
currentItemOpacity: number;
|
|
236
|
-
currentItemFontFamily:
|
|
218
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
237
219
|
currentItemFontSize: number;
|
|
238
|
-
currentItemTextAlign:
|
|
239
|
-
currentItemStartArrowhead: import("
|
|
240
|
-
currentItemEndArrowhead: import("
|
|
241
|
-
currentHoveredFontFamily:
|
|
242
|
-
currentItemRoundness: import("
|
|
243
|
-
currentItemArrowType: "
|
|
220
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
221
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
222
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
223
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
224
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
225
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
244
226
|
viewBackgroundColor: string;
|
|
245
227
|
scrollX: number;
|
|
246
228
|
scrollY: number;
|
|
@@ -249,28 +231,32 @@ export declare const actionAddToLibrary: {
|
|
|
249
231
|
name: string | null;
|
|
250
232
|
isResizing: boolean;
|
|
251
233
|
isRotating: boolean;
|
|
252
|
-
zoom:
|
|
253
|
-
value: import("../types").NormalizedZoomValue;
|
|
254
|
-
}>;
|
|
234
|
+
zoom: import("../types").Zoom;
|
|
255
235
|
openMenu: "canvas" | null;
|
|
256
|
-
openPopup: "
|
|
236
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
257
237
|
openSidebar: {
|
|
258
|
-
name:
|
|
259
|
-
tab?:
|
|
238
|
+
name: import("../types").SidebarName;
|
|
239
|
+
tab?: import("../types").SidebarTabName;
|
|
260
240
|
} | null;
|
|
261
|
-
openDialog: {
|
|
241
|
+
openDialog: null | {
|
|
262
242
|
name: "imageExport" | "help" | "jsonExport";
|
|
263
243
|
} | {
|
|
264
244
|
name: "ttd";
|
|
265
|
-
tab: "
|
|
245
|
+
tab: "text-to-diagram" | "mermaid";
|
|
266
246
|
} | {
|
|
267
247
|
name: "commandPalette";
|
|
248
|
+
} | {
|
|
249
|
+
name: "settings";
|
|
268
250
|
} | {
|
|
269
251
|
name: "elementLinkSelector";
|
|
270
|
-
sourceElementId:
|
|
271
|
-
} |
|
|
252
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
253
|
+
} | {
|
|
254
|
+
name: "charts";
|
|
255
|
+
data: import("../charts").Spreadsheet;
|
|
256
|
+
rawText: string;
|
|
257
|
+
};
|
|
272
258
|
defaultSidebarDockedPreference: boolean;
|
|
273
|
-
lastPointerDownWith: import("
|
|
259
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
274
260
|
selectedElementIds: Readonly<{
|
|
275
261
|
[id: string]: true;
|
|
276
262
|
}>;
|
|
@@ -284,11 +270,11 @@ export declare const actionAddToLibrary: {
|
|
|
284
270
|
shouldCacheIgnoreZoom: boolean;
|
|
285
271
|
toast: {
|
|
286
272
|
message: string;
|
|
287
|
-
closable?: boolean
|
|
288
|
-
duration?: number
|
|
273
|
+
closable?: boolean;
|
|
274
|
+
duration?: number;
|
|
289
275
|
} | null;
|
|
290
276
|
zenModeEnabled: boolean;
|
|
291
|
-
theme: import("
|
|
277
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
292
278
|
gridSize: number;
|
|
293
279
|
gridStep: number;
|
|
294
280
|
gridModeEnabled: boolean;
|
|
@@ -296,45 +282,18 @@ export declare const actionAddToLibrary: {
|
|
|
296
282
|
selectedGroupIds: {
|
|
297
283
|
[groupId: string]: boolean;
|
|
298
284
|
};
|
|
299
|
-
editingGroupId:
|
|
285
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
300
286
|
width: number;
|
|
301
287
|
height: number;
|
|
302
288
|
offsetTop: number;
|
|
303
289
|
offsetLeft: number;
|
|
304
290
|
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
|
-
}>>;
|
|
291
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
325
292
|
stats: {
|
|
326
293
|
open: boolean;
|
|
327
294
|
panels: number;
|
|
328
295
|
};
|
|
329
|
-
|
|
330
|
-
pasteDialog: {
|
|
331
|
-
shown: false;
|
|
332
|
-
data: null;
|
|
333
|
-
} | {
|
|
334
|
-
shown: true;
|
|
335
|
-
data: import("../charts").Spreadsheet;
|
|
336
|
-
};
|
|
337
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
296
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
338
297
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
339
298
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
340
299
|
originSnapOffset: {
|
|
@@ -345,16 +304,16 @@ export declare const actionAddToLibrary: {
|
|
|
345
304
|
userToFollow: import("../types").UserToFollow | null;
|
|
346
305
|
followedBy: Set<import("../types").SocketId>;
|
|
347
306
|
isCropping: boolean;
|
|
348
|
-
croppingElementId:
|
|
307
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
349
308
|
searchMatches: Readonly<{
|
|
350
|
-
focusedId:
|
|
309
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
351
310
|
matches: readonly import("../types").SearchMatch[];
|
|
352
311
|
}> | null;
|
|
353
312
|
activeLockedId: string | null;
|
|
354
313
|
lockedMultiSelections: {
|
|
355
314
|
[groupId: string]: true;
|
|
356
315
|
};
|
|
357
|
-
|
|
316
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
358
317
|
};
|
|
359
318
|
}> | {
|
|
360
319
|
captureUpdate: "EVENTUALLY";
|
|
@@ -368,17 +327,20 @@ export declare const actionAddToLibrary: {
|
|
|
368
327
|
showWelcomeScreen: boolean;
|
|
369
328
|
isLoading: boolean;
|
|
370
329
|
activeEmbeddable: {
|
|
371
|
-
element: import("
|
|
372
|
-
state: "
|
|
330
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
331
|
+
state: "hover" | "active";
|
|
373
332
|
} | null;
|
|
374
|
-
newElement: import("
|
|
375
|
-
resizingElement: import("
|
|
376
|
-
multiElement: import("
|
|
377
|
-
selectionElement: import("
|
|
333
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
334
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
335
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
336
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
378
337
|
isBindingEnabled: boolean;
|
|
379
|
-
startBoundElement: import("
|
|
380
|
-
|
|
381
|
-
|
|
338
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
339
|
+
suggestedBinding: {
|
|
340
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
341
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
342
|
+
} | null;
|
|
343
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
382
344
|
frameRendering: {
|
|
383
345
|
enabled: boolean;
|
|
384
346
|
name: boolean;
|
|
@@ -386,8 +348,8 @@ export declare const actionAddToLibrary: {
|
|
|
386
348
|
clip: boolean;
|
|
387
349
|
};
|
|
388
350
|
editingFrame: string | null;
|
|
389
|
-
elementsToHighlight: import("
|
|
390
|
-
editingTextElement: import("
|
|
351
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
352
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
391
353
|
activeTool: {
|
|
392
354
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
393
355
|
locked: boolean;
|
|
@@ -405,19 +367,19 @@ export declare const actionAddToLibrary: {
|
|
|
405
367
|
exportScale: number;
|
|
406
368
|
currentItemStrokeColor: string;
|
|
407
369
|
currentItemBackgroundColor: string;
|
|
408
|
-
currentItemFillStyle: import("
|
|
370
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
409
371
|
currentItemStrokeWidth: number;
|
|
410
|
-
currentItemStrokeStyle: import("
|
|
372
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
411
373
|
currentItemRoughness: number;
|
|
412
374
|
currentItemOpacity: number;
|
|
413
|
-
currentItemFontFamily:
|
|
375
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
414
376
|
currentItemFontSize: number;
|
|
415
|
-
currentItemTextAlign:
|
|
416
|
-
currentItemStartArrowhead: import("
|
|
417
|
-
currentItemEndArrowhead: import("
|
|
418
|
-
currentHoveredFontFamily:
|
|
419
|
-
currentItemRoundness: import("
|
|
420
|
-
currentItemArrowType: "
|
|
377
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
378
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
379
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
380
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
381
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
382
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
421
383
|
viewBackgroundColor: string;
|
|
422
384
|
scrollX: number;
|
|
423
385
|
scrollY: number;
|
|
@@ -426,28 +388,32 @@ export declare const actionAddToLibrary: {
|
|
|
426
388
|
name: string | null;
|
|
427
389
|
isResizing: boolean;
|
|
428
390
|
isRotating: boolean;
|
|
429
|
-
zoom:
|
|
430
|
-
value: import("../types").NormalizedZoomValue;
|
|
431
|
-
}>;
|
|
391
|
+
zoom: import("../types").Zoom;
|
|
432
392
|
openMenu: "canvas" | null;
|
|
433
|
-
openPopup: "
|
|
393
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
434
394
|
openSidebar: {
|
|
435
|
-
name:
|
|
436
|
-
tab?:
|
|
395
|
+
name: import("../types").SidebarName;
|
|
396
|
+
tab?: import("../types").SidebarTabName;
|
|
437
397
|
} | null;
|
|
438
|
-
openDialog: {
|
|
398
|
+
openDialog: null | {
|
|
439
399
|
name: "imageExport" | "help" | "jsonExport";
|
|
440
400
|
} | {
|
|
441
401
|
name: "ttd";
|
|
442
|
-
tab: "
|
|
402
|
+
tab: "text-to-diagram" | "mermaid";
|
|
443
403
|
} | {
|
|
444
404
|
name: "commandPalette";
|
|
405
|
+
} | {
|
|
406
|
+
name: "settings";
|
|
445
407
|
} | {
|
|
446
408
|
name: "elementLinkSelector";
|
|
447
|
-
sourceElementId:
|
|
448
|
-
} |
|
|
409
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
410
|
+
} | {
|
|
411
|
+
name: "charts";
|
|
412
|
+
data: import("../charts").Spreadsheet;
|
|
413
|
+
rawText: string;
|
|
414
|
+
};
|
|
449
415
|
defaultSidebarDockedPreference: boolean;
|
|
450
|
-
lastPointerDownWith: import("
|
|
416
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
451
417
|
selectedElementIds: Readonly<{
|
|
452
418
|
[id: string]: true;
|
|
453
419
|
}>;
|
|
@@ -461,11 +427,11 @@ export declare const actionAddToLibrary: {
|
|
|
461
427
|
shouldCacheIgnoreZoom: boolean;
|
|
462
428
|
toast: {
|
|
463
429
|
message: string;
|
|
464
|
-
closable?: boolean
|
|
465
|
-
duration?: number
|
|
430
|
+
closable?: boolean;
|
|
431
|
+
duration?: number;
|
|
466
432
|
} | null;
|
|
467
433
|
zenModeEnabled: boolean;
|
|
468
|
-
theme: import("
|
|
434
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
469
435
|
gridSize: number;
|
|
470
436
|
gridStep: number;
|
|
471
437
|
gridModeEnabled: boolean;
|
|
@@ -473,45 +439,18 @@ export declare const actionAddToLibrary: {
|
|
|
473
439
|
selectedGroupIds: {
|
|
474
440
|
[groupId: string]: boolean;
|
|
475
441
|
};
|
|
476
|
-
editingGroupId:
|
|
442
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
477
443
|
width: number;
|
|
478
444
|
height: number;
|
|
479
445
|
offsetTop: number;
|
|
480
446
|
offsetLeft: number;
|
|
481
447
|
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
|
-
}>>;
|
|
448
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
502
449
|
stats: {
|
|
503
450
|
open: boolean;
|
|
504
451
|
panels: number;
|
|
505
452
|
};
|
|
506
|
-
|
|
507
|
-
pasteDialog: {
|
|
508
|
-
shown: false;
|
|
509
|
-
data: null;
|
|
510
|
-
} | {
|
|
511
|
-
shown: true;
|
|
512
|
-
data: import("../charts").Spreadsheet;
|
|
513
|
-
};
|
|
514
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
453
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
515
454
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
516
455
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
517
456
|
originSnapOffset: {
|
|
@@ -522,16 +461,16 @@ export declare const actionAddToLibrary: {
|
|
|
522
461
|
userToFollow: import("../types").UserToFollow | null;
|
|
523
462
|
followedBy: Set<import("../types").SocketId>;
|
|
524
463
|
isCropping: boolean;
|
|
525
|
-
croppingElementId:
|
|
464
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
526
465
|
searchMatches: Readonly<{
|
|
527
|
-
focusedId:
|
|
466
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
528
467
|
matches: readonly import("../types").SearchMatch[];
|
|
529
468
|
}> | null;
|
|
530
469
|
activeLockedId: string | null;
|
|
531
470
|
lockedMultiSelections: {
|
|
532
471
|
[groupId: string]: true;
|
|
533
472
|
};
|
|
534
|
-
|
|
473
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
535
474
|
};
|
|
536
475
|
};
|
|
537
476
|
label: string;
|