@excalidraw/element 0.18.0-c141960 → 0.18.0-c1dbbdf
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 +2698 -954
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +18 -18
- 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 +17 -11
- package/dist/types/common/src/editorInterface.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +2 -1
- 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 +46 -38
- package/dist/types/element/src/Scene.d.ts +5 -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 +19 -12
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +4 -3
- 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/elbowArrow.d.ts +2 -0
- 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 -0
- package/dist/types/element/src/linearElementEditor.d.ts +6 -2
- package/dist/types/element/src/mutateElement.d.ts +5 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +0 -6
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +1 -1
- 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 +3 -23
- package/dist/types/element/src/typeChecks.d.ts +2 -4
- package/dist/types/element/src/types.d.ts +1 -1
- package/dist/types/element/src/utils.d.ts +8 -4
- package/dist/types/{common → element}/src/visualdebug.d.ts +20 -2
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +92 -153
- package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -105
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +383 -618
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +64 -105
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -52
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +106 -169
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +24 -49
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -106
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionExport.d.ts +126 -211
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionFrame.d.ts +221 -338
- package/dist/types/excalidraw/actions/actionGroup.d.ts +68 -117
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +134 -189
- package/dist/types/excalidraw/actions/actionLink.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionMenu.d.ts +23 -48
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionProperties.d.ts +79 -120
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +34 -59
- package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -51
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +22 -47
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionZindex.d.ts +0 -1
- package/dist/types/excalidraw/actions/index.d.ts +2 -0
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- 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 +1 -1
- package/dist/types/excalidraw/appState.d.ts +12 -10
- 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 +1 -1
- package/dist/types/excalidraw/components/App.d.ts +43 -44
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/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 -2
- 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 +1 -0
- 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/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/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/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/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/CodeMirrorEditor.d.ts +11 -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/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -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/mermaid-lang-lite.d.ts +2 -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/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.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/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 +22 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
- 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 +323 -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 +160 -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 +1 -2
- 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 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
- 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 +7 -2
- 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 +25 -14
- 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 +9 -3
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Theme } from "@excalidraw/element/types";
|
|
3
2
|
import "../components/ToolIcon.scss";
|
|
4
3
|
import type { AppState } from "../types";
|
|
5
4
|
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
6
|
-
keyTest?: ((event: KeyboardEvent |
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
7
6
|
};
|
|
8
7
|
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
9
|
-
keyTest?: ((event: KeyboardEvent |
|
|
8
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
10
9
|
};
|
|
11
10
|
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
12
|
-
keyTest?: ((event: KeyboardEvent |
|
|
11
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
13
12
|
};
|
|
14
13
|
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
15
|
-
keyTest?: ((event: KeyboardEvent |
|
|
14
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
16
15
|
};
|
|
17
16
|
export declare const actionSaveToActiveFile: {
|
|
18
17
|
name: "saveToActiveFile";
|
|
@@ -36,18 +35,23 @@ export declare const actionSaveToActiveFile: {
|
|
|
36
35
|
} | null;
|
|
37
36
|
showWelcomeScreen: boolean;
|
|
38
37
|
isLoading: boolean;
|
|
39
|
-
errorMessage:
|
|
38
|
+
errorMessage: React.ReactNode;
|
|
40
39
|
activeEmbeddable: {
|
|
41
40
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
42
|
-
state: "
|
|
41
|
+
state: "hover" | "active";
|
|
43
42
|
} | null;
|
|
44
43
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
45
44
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
45
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
47
46
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
47
|
isBindingEnabled: boolean;
|
|
48
|
+
bindingPreference: "enabled" | "disabled";
|
|
49
|
+
isMidpointSnappingEnabled: boolean;
|
|
49
50
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
50
|
-
suggestedBinding:
|
|
51
|
+
suggestedBinding: {
|
|
52
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
53
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
54
|
+
} | null;
|
|
51
55
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
56
|
frameRendering: {
|
|
53
57
|
enabled: boolean;
|
|
@@ -75,19 +79,19 @@ export declare const actionSaveToActiveFile: {
|
|
|
75
79
|
exportScale: number;
|
|
76
80
|
currentItemStrokeColor: string;
|
|
77
81
|
currentItemBackgroundColor: string;
|
|
78
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
82
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
79
83
|
currentItemStrokeWidth: number;
|
|
80
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
84
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
81
85
|
currentItemRoughness: number;
|
|
82
86
|
currentItemOpacity: number;
|
|
83
|
-
currentItemFontFamily:
|
|
87
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
84
88
|
currentItemFontSize: number;
|
|
85
|
-
currentItemTextAlign:
|
|
89
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
86
90
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
87
91
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
88
|
-
currentHoveredFontFamily:
|
|
92
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
89
93
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
90
|
-
currentItemArrowType: "
|
|
94
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
91
95
|
viewBackgroundColor: string;
|
|
92
96
|
scrollX: number;
|
|
93
97
|
scrollY: number;
|
|
@@ -96,28 +100,30 @@ export declare const actionSaveToActiveFile: {
|
|
|
96
100
|
name: string | null;
|
|
97
101
|
isResizing: boolean;
|
|
98
102
|
isRotating: boolean;
|
|
99
|
-
zoom:
|
|
100
|
-
value: import("../types").NormalizedZoomValue;
|
|
101
|
-
}>;
|
|
103
|
+
zoom: import("../types").Zoom;
|
|
102
104
|
openMenu: "canvas" | null;
|
|
103
|
-
openPopup: "
|
|
105
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
104
106
|
openSidebar: {
|
|
105
|
-
name:
|
|
106
|
-
tab?:
|
|
107
|
+
name: import("../types").SidebarName;
|
|
108
|
+
tab?: import("../types").SidebarTabName;
|
|
107
109
|
} | null;
|
|
108
|
-
openDialog: {
|
|
110
|
+
openDialog: null | {
|
|
109
111
|
name: "imageExport" | "help" | "jsonExport";
|
|
110
112
|
} | {
|
|
111
113
|
name: "ttd";
|
|
112
|
-
tab: "
|
|
114
|
+
tab: "text-to-diagram" | "mermaid";
|
|
113
115
|
} | {
|
|
114
116
|
name: "commandPalette";
|
|
115
117
|
} | {
|
|
116
118
|
name: "settings";
|
|
117
119
|
} | {
|
|
118
120
|
name: "elementLinkSelector";
|
|
119
|
-
sourceElementId:
|
|
120
|
-
} |
|
|
121
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
122
|
+
} | {
|
|
123
|
+
name: "charts";
|
|
124
|
+
data: import("../charts").Spreadsheet;
|
|
125
|
+
rawText: string;
|
|
126
|
+
};
|
|
121
127
|
defaultSidebarDockedPreference: boolean;
|
|
122
128
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
123
129
|
selectedElementIds: Readonly<{
|
|
@@ -140,43 +146,16 @@ export declare const actionSaveToActiveFile: {
|
|
|
140
146
|
selectedGroupIds: {
|
|
141
147
|
[groupId: string]: boolean;
|
|
142
148
|
};
|
|
143
|
-
editingGroupId:
|
|
149
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
144
150
|
width: number;
|
|
145
151
|
height: number;
|
|
146
152
|
offsetTop: number;
|
|
147
153
|
offsetLeft: number;
|
|
148
|
-
collaborators: Map<import("../types").SocketId,
|
|
149
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
150
|
-
button?: "up" | "down" | undefined;
|
|
151
|
-
selectedElementIds?: Readonly<{
|
|
152
|
-
[id: string]: true;
|
|
153
|
-
}> | undefined;
|
|
154
|
-
username?: string | null | undefined;
|
|
155
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
156
|
-
color?: {
|
|
157
|
-
background: string;
|
|
158
|
-
stroke: string;
|
|
159
|
-
} | undefined;
|
|
160
|
-
avatarUrl?: string | undefined;
|
|
161
|
-
id?: string | undefined;
|
|
162
|
-
socketId?: import("../types").SocketId | undefined;
|
|
163
|
-
isCurrentUser?: boolean | undefined;
|
|
164
|
-
isInCall?: boolean | undefined;
|
|
165
|
-
isSpeaking?: boolean | undefined;
|
|
166
|
-
isMuted?: boolean | undefined;
|
|
167
|
-
}>>;
|
|
154
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
168
155
|
stats: {
|
|
169
156
|
open: boolean;
|
|
170
157
|
panels: number;
|
|
171
158
|
};
|
|
172
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
173
|
-
pasteDialog: {
|
|
174
|
-
shown: false;
|
|
175
|
-
data: null;
|
|
176
|
-
} | {
|
|
177
|
-
shown: true;
|
|
178
|
-
data: import("../charts").Spreadsheet;
|
|
179
|
-
};
|
|
180
159
|
showHyperlinkPopup: false | "info" | "editor";
|
|
181
160
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
182
161
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -188,9 +167,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
188
167
|
userToFollow: import("../types").UserToFollow | null;
|
|
189
168
|
followedBy: Set<import("../types").SocketId>;
|
|
190
169
|
isCropping: boolean;
|
|
191
|
-
croppingElementId:
|
|
170
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
192
171
|
searchMatches: Readonly<{
|
|
193
|
-
focusedId:
|
|
172
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
194
173
|
matches: readonly import("../types").SearchMatch[];
|
|
195
174
|
}> | null;
|
|
196
175
|
activeLockedId: string | null;
|
|
@@ -230,18 +209,23 @@ export declare const actionSaveFileToDisk: {
|
|
|
230
209
|
} | null;
|
|
231
210
|
showWelcomeScreen: boolean;
|
|
232
211
|
isLoading: boolean;
|
|
233
|
-
errorMessage:
|
|
212
|
+
errorMessage: React.ReactNode;
|
|
234
213
|
activeEmbeddable: {
|
|
235
214
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
236
|
-
state: "
|
|
215
|
+
state: "hover" | "active";
|
|
237
216
|
} | null;
|
|
238
217
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
239
218
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
219
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
241
220
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
242
221
|
isBindingEnabled: boolean;
|
|
222
|
+
bindingPreference: "enabled" | "disabled";
|
|
223
|
+
isMidpointSnappingEnabled: boolean;
|
|
243
224
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
244
|
-
suggestedBinding:
|
|
225
|
+
suggestedBinding: {
|
|
226
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
227
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
228
|
+
} | null;
|
|
245
229
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
246
230
|
frameRendering: {
|
|
247
231
|
enabled: boolean;
|
|
@@ -269,19 +253,19 @@ export declare const actionSaveFileToDisk: {
|
|
|
269
253
|
exportScale: number;
|
|
270
254
|
currentItemStrokeColor: string;
|
|
271
255
|
currentItemBackgroundColor: string;
|
|
272
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
256
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
273
257
|
currentItemStrokeWidth: number;
|
|
274
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
258
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
275
259
|
currentItemRoughness: number;
|
|
276
260
|
currentItemOpacity: number;
|
|
277
|
-
currentItemFontFamily:
|
|
261
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
278
262
|
currentItemFontSize: number;
|
|
279
|
-
currentItemTextAlign:
|
|
263
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
280
264
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
281
265
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
282
|
-
currentHoveredFontFamily:
|
|
266
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
283
267
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
284
|
-
currentItemArrowType: "
|
|
268
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
285
269
|
viewBackgroundColor: string;
|
|
286
270
|
scrollX: number;
|
|
287
271
|
scrollY: number;
|
|
@@ -290,14 +274,12 @@ export declare const actionSaveFileToDisk: {
|
|
|
290
274
|
name: string | null;
|
|
291
275
|
isResizing: boolean;
|
|
292
276
|
isRotating: boolean;
|
|
293
|
-
zoom:
|
|
294
|
-
value: import("../types").NormalizedZoomValue;
|
|
295
|
-
}>;
|
|
277
|
+
zoom: import("../types").Zoom;
|
|
296
278
|
openMenu: "canvas" | null;
|
|
297
|
-
openPopup: "
|
|
279
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
298
280
|
openSidebar: {
|
|
299
|
-
name:
|
|
300
|
-
tab?:
|
|
281
|
+
name: import("../types").SidebarName;
|
|
282
|
+
tab?: import("../types").SidebarTabName;
|
|
301
283
|
} | null;
|
|
302
284
|
defaultSidebarDockedPreference: boolean;
|
|
303
285
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -321,43 +303,16 @@ export declare const actionSaveFileToDisk: {
|
|
|
321
303
|
selectedGroupIds: {
|
|
322
304
|
[groupId: string]: boolean;
|
|
323
305
|
};
|
|
324
|
-
editingGroupId:
|
|
306
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
325
307
|
width: number;
|
|
326
308
|
height: number;
|
|
327
309
|
offsetTop: number;
|
|
328
310
|
offsetLeft: number;
|
|
329
|
-
collaborators: Map<import("../types").SocketId,
|
|
330
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
331
|
-
button?: "up" | "down" | undefined;
|
|
332
|
-
selectedElementIds?: Readonly<{
|
|
333
|
-
[id: string]: true;
|
|
334
|
-
}> | undefined;
|
|
335
|
-
username?: string | null | undefined;
|
|
336
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
337
|
-
color?: {
|
|
338
|
-
background: string;
|
|
339
|
-
stroke: string;
|
|
340
|
-
} | undefined;
|
|
341
|
-
avatarUrl?: string | undefined;
|
|
342
|
-
id?: string | undefined;
|
|
343
|
-
socketId?: import("../types").SocketId | undefined;
|
|
344
|
-
isCurrentUser?: boolean | undefined;
|
|
345
|
-
isInCall?: boolean | undefined;
|
|
346
|
-
isSpeaking?: boolean | undefined;
|
|
347
|
-
isMuted?: boolean | undefined;
|
|
348
|
-
}>>;
|
|
311
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
349
312
|
stats: {
|
|
350
313
|
open: boolean;
|
|
351
314
|
panels: number;
|
|
352
315
|
};
|
|
353
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
354
|
-
pasteDialog: {
|
|
355
|
-
shown: false;
|
|
356
|
-
data: null;
|
|
357
|
-
} | {
|
|
358
|
-
shown: true;
|
|
359
|
-
data: import("../charts").Spreadsheet;
|
|
360
|
-
};
|
|
361
316
|
showHyperlinkPopup: false | "info" | "editor";
|
|
362
317
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
363
318
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -369,9 +324,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
369
324
|
userToFollow: import("../types").UserToFollow | null;
|
|
370
325
|
followedBy: Set<import("../types").SocketId>;
|
|
371
326
|
isCropping: boolean;
|
|
372
|
-
croppingElementId:
|
|
327
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
373
328
|
searchMatches: Readonly<{
|
|
374
|
-
focusedId:
|
|
329
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
375
330
|
matches: readonly import("../types").SearchMatch[];
|
|
376
331
|
}> | null;
|
|
377
332
|
activeLockedId: string | null;
|
|
@@ -400,6 +355,7 @@ export declare const actionLoadScene: {
|
|
|
400
355
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
401
356
|
appState: {
|
|
402
357
|
viewBackgroundColor: string;
|
|
358
|
+
theme: Theme;
|
|
403
359
|
frameRendering: {
|
|
404
360
|
enabled: boolean;
|
|
405
361
|
name: boolean;
|
|
@@ -407,34 +363,40 @@ export declare const actionLoadScene: {
|
|
|
407
363
|
clip: boolean;
|
|
408
364
|
};
|
|
409
365
|
name: string | null;
|
|
410
|
-
zoom:
|
|
411
|
-
value: import("../types").NormalizedZoomValue;
|
|
412
|
-
}>;
|
|
366
|
+
zoom: import("../types").Zoom;
|
|
413
367
|
scrollX: number;
|
|
414
368
|
scrollY: number;
|
|
415
369
|
viewModeEnabled: boolean;
|
|
416
|
-
openDialog: {
|
|
370
|
+
openDialog: null | {
|
|
417
371
|
name: "imageExport" | "help" | "jsonExport";
|
|
418
372
|
} | {
|
|
419
373
|
name: "ttd";
|
|
420
|
-
tab: "
|
|
374
|
+
tab: "text-to-diagram" | "mermaid";
|
|
421
375
|
} | {
|
|
422
376
|
name: "commandPalette";
|
|
423
377
|
} | {
|
|
424
378
|
name: "settings";
|
|
425
379
|
} | {
|
|
426
380
|
name: "elementLinkSelector";
|
|
427
|
-
sourceElementId:
|
|
428
|
-
} |
|
|
429
|
-
|
|
381
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
382
|
+
} | {
|
|
383
|
+
name: "charts";
|
|
384
|
+
data: import("../charts").Spreadsheet;
|
|
385
|
+
rawText: string;
|
|
386
|
+
};
|
|
387
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
430
388
|
selectedElementIds: Readonly<{
|
|
431
389
|
[id: string]: true;
|
|
432
390
|
}>;
|
|
433
391
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
434
|
-
|
|
392
|
+
activeTool: {
|
|
393
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
394
|
+
locked: boolean;
|
|
395
|
+
fromSelection: boolean;
|
|
396
|
+
} & import("../types").ActiveTool;
|
|
435
397
|
activeEmbeddable: {
|
|
436
398
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
437
|
-
state: "
|
|
399
|
+
state: "hover" | "active";
|
|
438
400
|
} | null;
|
|
439
401
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
440
402
|
selectedGroupIds: {
|
|
@@ -444,36 +406,21 @@ export declare const actionLoadScene: {
|
|
|
444
406
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
445
407
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
446
408
|
isBindingEnabled: boolean;
|
|
447
|
-
|
|
409
|
+
isMidpointSnappingEnabled: boolean;
|
|
410
|
+
suggestedBinding: {
|
|
411
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
412
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
413
|
+
} | null;
|
|
448
414
|
isRotating: boolean;
|
|
449
415
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
450
|
-
collaborators: Map<import("../types").SocketId,
|
|
451
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
452
|
-
button?: "up" | "down" | undefined;
|
|
453
|
-
selectedElementIds?: Readonly<{
|
|
454
|
-
[id: string]: true;
|
|
455
|
-
}> | undefined;
|
|
456
|
-
username?: string | null | undefined;
|
|
457
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
458
|
-
color?: {
|
|
459
|
-
background: string;
|
|
460
|
-
stroke: string;
|
|
461
|
-
} | undefined;
|
|
462
|
-
avatarUrl?: string | undefined;
|
|
463
|
-
id?: string | undefined;
|
|
464
|
-
socketId?: import("../types").SocketId | undefined;
|
|
465
|
-
isCurrentUser?: boolean | undefined;
|
|
466
|
-
isInCall?: boolean | undefined;
|
|
467
|
-
isSpeaking?: boolean | undefined;
|
|
468
|
-
isMuted?: boolean | undefined;
|
|
469
|
-
}>>;
|
|
416
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
470
417
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
471
418
|
zenModeEnabled: boolean;
|
|
472
419
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
473
420
|
isCropping: boolean;
|
|
474
|
-
croppingElementId:
|
|
421
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
475
422
|
searchMatches: Readonly<{
|
|
476
|
-
focusedId:
|
|
423
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
477
424
|
matches: readonly import("../types").SearchMatch[];
|
|
478
425
|
}> | null;
|
|
479
426
|
activeLockedId: string | null;
|
|
@@ -482,6 +429,7 @@ export declare const actionLoadScene: {
|
|
|
482
429
|
}>;
|
|
483
430
|
shouldCacheIgnoreZoom: boolean;
|
|
484
431
|
exportScale: number;
|
|
432
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
485
433
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
486
434
|
gridSize: number;
|
|
487
435
|
contextMenu: {
|
|
@@ -491,15 +439,11 @@ export declare const actionLoadScene: {
|
|
|
491
439
|
} | null;
|
|
492
440
|
showWelcomeScreen: boolean;
|
|
493
441
|
isLoading: boolean;
|
|
494
|
-
errorMessage:
|
|
442
|
+
errorMessage: React.ReactNode;
|
|
495
443
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
444
|
+
bindingPreference: "enabled" | "disabled";
|
|
496
445
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
497
446
|
editingFrame: string | null;
|
|
498
|
-
activeTool: {
|
|
499
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
500
|
-
locked: boolean;
|
|
501
|
-
fromSelection: boolean;
|
|
502
|
-
} & import("../types").ActiveTool;
|
|
503
447
|
preferredSelectionTool: {
|
|
504
448
|
type: "selection" | "lasso";
|
|
505
449
|
initialized: boolean;
|
|
@@ -511,27 +455,26 @@ export declare const actionLoadScene: {
|
|
|
511
455
|
exportWithDarkMode: boolean;
|
|
512
456
|
currentItemStrokeColor: string;
|
|
513
457
|
currentItemBackgroundColor: string;
|
|
514
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
458
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
515
459
|
currentItemStrokeWidth: number;
|
|
516
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
460
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
517
461
|
currentItemRoughness: number;
|
|
518
462
|
currentItemOpacity: number;
|
|
519
|
-
currentItemFontFamily:
|
|
463
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
520
464
|
currentItemFontSize: number;
|
|
521
|
-
currentItemTextAlign:
|
|
465
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
522
466
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
523
467
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
524
|
-
currentHoveredFontFamily:
|
|
468
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
525
469
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
526
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
527
470
|
cursorButton: "up" | "down";
|
|
528
471
|
scrolledOutside: boolean;
|
|
529
472
|
isResizing: boolean;
|
|
530
473
|
openMenu: "canvas" | null;
|
|
531
|
-
openPopup: "
|
|
474
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
532
475
|
openSidebar: {
|
|
533
|
-
name:
|
|
534
|
-
tab?:
|
|
476
|
+
name: import("../types").SidebarName;
|
|
477
|
+
tab?: import("../types").SidebarTabName;
|
|
535
478
|
} | null;
|
|
536
479
|
defaultSidebarDockedPreference: boolean;
|
|
537
480
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -541,8 +484,8 @@ export declare const actionLoadScene: {
|
|
|
541
484
|
selectedElementsAreBeingDragged: boolean;
|
|
542
485
|
toast: {
|
|
543
486
|
message: string;
|
|
544
|
-
closable?: boolean
|
|
545
|
-
duration?: number
|
|
487
|
+
closable?: boolean;
|
|
488
|
+
duration?: number;
|
|
546
489
|
} | null;
|
|
547
490
|
gridStep: number;
|
|
548
491
|
gridModeEnabled: boolean;
|
|
@@ -551,14 +494,6 @@ export declare const actionLoadScene: {
|
|
|
551
494
|
open: boolean;
|
|
552
495
|
panels: number;
|
|
553
496
|
};
|
|
554
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
555
|
-
pasteDialog: {
|
|
556
|
-
shown: false;
|
|
557
|
-
data: null;
|
|
558
|
-
} | {
|
|
559
|
-
shown: true;
|
|
560
|
-
data: import("../charts").Spreadsheet;
|
|
561
|
-
};
|
|
562
497
|
showHyperlinkPopup: false | "info" | "editor";
|
|
563
498
|
originSnapOffset: {
|
|
564
499
|
x: number;
|
|
@@ -586,15 +521,20 @@ export declare const actionLoadScene: {
|
|
|
586
521
|
isLoading: boolean;
|
|
587
522
|
activeEmbeddable: {
|
|
588
523
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
589
|
-
state: "
|
|
524
|
+
state: "hover" | "active";
|
|
590
525
|
} | null;
|
|
591
526
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
592
527
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
593
528
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
594
529
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
595
530
|
isBindingEnabled: boolean;
|
|
531
|
+
bindingPreference: "enabled" | "disabled";
|
|
532
|
+
isMidpointSnappingEnabled: boolean;
|
|
596
533
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
597
|
-
suggestedBinding:
|
|
534
|
+
suggestedBinding: {
|
|
535
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
536
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
537
|
+
} | null;
|
|
598
538
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
599
539
|
frameRendering: {
|
|
600
540
|
enabled: boolean;
|
|
@@ -622,19 +562,19 @@ export declare const actionLoadScene: {
|
|
|
622
562
|
exportScale: number;
|
|
623
563
|
currentItemStrokeColor: string;
|
|
624
564
|
currentItemBackgroundColor: string;
|
|
625
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
565
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
626
566
|
currentItemStrokeWidth: number;
|
|
627
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
567
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
628
568
|
currentItemRoughness: number;
|
|
629
569
|
currentItemOpacity: number;
|
|
630
|
-
currentItemFontFamily:
|
|
570
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
631
571
|
currentItemFontSize: number;
|
|
632
|
-
currentItemTextAlign:
|
|
572
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
633
573
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
634
574
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
635
|
-
currentHoveredFontFamily:
|
|
575
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
636
576
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
637
|
-
currentItemArrowType: "
|
|
577
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
638
578
|
viewBackgroundColor: string;
|
|
639
579
|
scrollX: number;
|
|
640
580
|
scrollY: number;
|
|
@@ -643,28 +583,30 @@ export declare const actionLoadScene: {
|
|
|
643
583
|
name: string | null;
|
|
644
584
|
isResizing: boolean;
|
|
645
585
|
isRotating: boolean;
|
|
646
|
-
zoom:
|
|
647
|
-
value: import("../types").NormalizedZoomValue;
|
|
648
|
-
}>;
|
|
586
|
+
zoom: import("../types").Zoom;
|
|
649
587
|
openMenu: "canvas" | null;
|
|
650
|
-
openPopup: "
|
|
588
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
651
589
|
openSidebar: {
|
|
652
|
-
name:
|
|
653
|
-
tab?:
|
|
590
|
+
name: import("../types").SidebarName;
|
|
591
|
+
tab?: import("../types").SidebarTabName;
|
|
654
592
|
} | null;
|
|
655
|
-
openDialog: {
|
|
593
|
+
openDialog: null | {
|
|
656
594
|
name: "imageExport" | "help" | "jsonExport";
|
|
657
595
|
} | {
|
|
658
596
|
name: "ttd";
|
|
659
|
-
tab: "
|
|
597
|
+
tab: "text-to-diagram" | "mermaid";
|
|
660
598
|
} | {
|
|
661
599
|
name: "commandPalette";
|
|
662
600
|
} | {
|
|
663
601
|
name: "settings";
|
|
664
602
|
} | {
|
|
665
603
|
name: "elementLinkSelector";
|
|
666
|
-
sourceElementId:
|
|
667
|
-
} |
|
|
604
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
605
|
+
} | {
|
|
606
|
+
name: "charts";
|
|
607
|
+
data: import("../charts").Spreadsheet;
|
|
608
|
+
rawText: string;
|
|
609
|
+
};
|
|
668
610
|
defaultSidebarDockedPreference: boolean;
|
|
669
611
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
670
612
|
selectedElementIds: Readonly<{
|
|
@@ -680,8 +622,8 @@ export declare const actionLoadScene: {
|
|
|
680
622
|
shouldCacheIgnoreZoom: boolean;
|
|
681
623
|
toast: {
|
|
682
624
|
message: string;
|
|
683
|
-
closable?: boolean
|
|
684
|
-
duration?: number
|
|
625
|
+
closable?: boolean;
|
|
626
|
+
duration?: number;
|
|
685
627
|
} | null;
|
|
686
628
|
zenModeEnabled: boolean;
|
|
687
629
|
theme: Theme;
|
|
@@ -692,44 +634,17 @@ export declare const actionLoadScene: {
|
|
|
692
634
|
selectedGroupIds: {
|
|
693
635
|
[groupId: string]: boolean;
|
|
694
636
|
};
|
|
695
|
-
editingGroupId:
|
|
637
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
696
638
|
width: number;
|
|
697
639
|
height: number;
|
|
698
640
|
offsetTop: number;
|
|
699
641
|
offsetLeft: number;
|
|
700
642
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
701
|
-
collaborators: Map<import("../types").SocketId,
|
|
702
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
703
|
-
button?: "up" | "down" | undefined;
|
|
704
|
-
selectedElementIds?: Readonly<{
|
|
705
|
-
[id: string]: true;
|
|
706
|
-
}> | undefined;
|
|
707
|
-
username?: string | null | undefined;
|
|
708
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
709
|
-
color?: {
|
|
710
|
-
background: string;
|
|
711
|
-
stroke: string;
|
|
712
|
-
} | undefined;
|
|
713
|
-
avatarUrl?: string | undefined;
|
|
714
|
-
id?: string | undefined;
|
|
715
|
-
socketId?: import("../types").SocketId | undefined;
|
|
716
|
-
isCurrentUser?: boolean | undefined;
|
|
717
|
-
isInCall?: boolean | undefined;
|
|
718
|
-
isSpeaking?: boolean | undefined;
|
|
719
|
-
isMuted?: boolean | undefined;
|
|
720
|
-
}>>;
|
|
643
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
721
644
|
stats: {
|
|
722
645
|
open: boolean;
|
|
723
646
|
panels: number;
|
|
724
647
|
};
|
|
725
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
726
|
-
pasteDialog: {
|
|
727
|
-
shown: false;
|
|
728
|
-
data: null;
|
|
729
|
-
} | {
|
|
730
|
-
shown: true;
|
|
731
|
-
data: import("../charts").Spreadsheet;
|
|
732
|
-
};
|
|
733
648
|
showHyperlinkPopup: false | "info" | "editor";
|
|
734
649
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
735
650
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -741,9 +656,9 @@ export declare const actionLoadScene: {
|
|
|
741
656
|
userToFollow: import("../types").UserToFollow | null;
|
|
742
657
|
followedBy: Set<import("../types").SocketId>;
|
|
743
658
|
isCropping: boolean;
|
|
744
|
-
croppingElementId:
|
|
659
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
745
660
|
searchMatches: Readonly<{
|
|
746
|
-
focusedId:
|
|
661
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
747
662
|
matches: readonly import("../types").SearchMatch[];
|
|
748
663
|
}> | null;
|
|
749
664
|
activeLockedId: string | null;
|
|
@@ -760,5 +675,5 @@ export declare const actionLoadScene: {
|
|
|
760
675
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
761
676
|
};
|
|
762
677
|
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
763
|
-
keyTest?: ((event: KeyboardEvent |
|
|
678
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
764
679
|
};
|