@excalidraw/math 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 +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 +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/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +138 -199
- 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 +101 -142
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -52
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +100 -163
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +45 -70
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -106
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +49 -70
- 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 +207 -324
- package/dist/types/excalidraw/actions/actionGroup.d.ts +68 -117
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +114 -169
- package/dist/types/excalidraw/actions/actionLink.d.ts +51 -72
- package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -64
- 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/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +49 -70
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +49 -70
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +39 -64
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +48 -69
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +49 -70
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +49 -70
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- 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 +20 -18
- 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 +2 -2
- package/dist/types/common/src/visualdebug.d.ts +0 -41
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionCopyElementLink: {
|
|
3
2
|
name: "copyElementLink";
|
|
4
3
|
label: string;
|
|
@@ -6,7 +5,7 @@ export declare const actionCopyElementLink: {
|
|
|
6
5
|
trackEvent: {
|
|
7
6
|
category: "element";
|
|
8
7
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
10
9
|
appState: {
|
|
11
10
|
toast: {
|
|
12
11
|
message: string;
|
|
@@ -18,11 +17,11 @@ export declare const actionCopyElementLink: {
|
|
|
18
17
|
app?: undefined;
|
|
19
18
|
} | {
|
|
20
19
|
appState: Readonly<import("../types").AppState>;
|
|
21
|
-
elements: readonly import("
|
|
20
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
22
21
|
app: import("../types").AppClassProperties;
|
|
23
22
|
captureUpdate: "EVENTUALLY";
|
|
24
23
|
}>;
|
|
25
|
-
predicate: (elements: readonly import("
|
|
24
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
26
25
|
} & {
|
|
27
26
|
keyTest?: undefined;
|
|
28
27
|
};
|
|
@@ -30,8 +29,8 @@ export declare const actionLinkToElement: {
|
|
|
30
29
|
name: "linkToElement";
|
|
31
30
|
label: string;
|
|
32
31
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
perform: (elements: readonly import("
|
|
34
|
-
elements: readonly import("
|
|
32
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
33
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
35
34
|
appState: Readonly<import("../types").AppState>;
|
|
36
35
|
app: import("../types").AppClassProperties;
|
|
37
36
|
captureUpdate: "EVENTUALLY";
|
|
@@ -48,19 +47,24 @@ export declare const actionLinkToElement: {
|
|
|
48
47
|
} | null;
|
|
49
48
|
showWelcomeScreen: boolean;
|
|
50
49
|
isLoading: boolean;
|
|
51
|
-
errorMessage:
|
|
50
|
+
errorMessage: React.ReactNode;
|
|
52
51
|
activeEmbeddable: {
|
|
53
|
-
element: import("
|
|
54
|
-
state: "
|
|
52
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
53
|
+
state: "hover" | "active";
|
|
55
54
|
} | null;
|
|
56
|
-
newElement: import("
|
|
57
|
-
resizingElement: import("
|
|
58
|
-
multiElement: import("
|
|
59
|
-
selectionElement: import("
|
|
55
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
56
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
57
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
59
|
isBindingEnabled: boolean;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
bindingPreference: "enabled" | "disabled";
|
|
61
|
+
isMidpointSnappingEnabled: boolean;
|
|
62
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
63
|
+
suggestedBinding: {
|
|
64
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
65
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
66
|
+
} | null;
|
|
67
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
68
|
frameRendering: {
|
|
65
69
|
enabled: boolean;
|
|
66
70
|
name: boolean;
|
|
@@ -68,8 +72,8 @@ export declare const actionLinkToElement: {
|
|
|
68
72
|
clip: boolean;
|
|
69
73
|
};
|
|
70
74
|
editingFrame: string | null;
|
|
71
|
-
elementsToHighlight: import("
|
|
72
|
-
editingTextElement: import("
|
|
75
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
76
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
73
77
|
activeTool: {
|
|
74
78
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
79
|
locked: boolean;
|
|
@@ -87,19 +91,19 @@ export declare const actionLinkToElement: {
|
|
|
87
91
|
exportScale: number;
|
|
88
92
|
currentItemStrokeColor: string;
|
|
89
93
|
currentItemBackgroundColor: string;
|
|
90
|
-
currentItemFillStyle: import("
|
|
94
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
91
95
|
currentItemStrokeWidth: number;
|
|
92
|
-
currentItemStrokeStyle: import("
|
|
96
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
93
97
|
currentItemRoughness: number;
|
|
94
98
|
currentItemOpacity: number;
|
|
95
|
-
currentItemFontFamily:
|
|
99
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
96
100
|
currentItemFontSize: number;
|
|
97
|
-
currentItemTextAlign:
|
|
98
|
-
currentItemStartArrowhead: import("
|
|
99
|
-
currentItemEndArrowhead: import("
|
|
100
|
-
currentHoveredFontFamily:
|
|
101
|
-
currentItemRoundness: import("
|
|
102
|
-
currentItemArrowType: "
|
|
101
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
102
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
103
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
104
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
105
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
106
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
103
107
|
viewBackgroundColor: string;
|
|
104
108
|
scrollX: number;
|
|
105
109
|
scrollY: number;
|
|
@@ -108,17 +112,15 @@ export declare const actionLinkToElement: {
|
|
|
108
112
|
name: string | null;
|
|
109
113
|
isResizing: boolean;
|
|
110
114
|
isRotating: boolean;
|
|
111
|
-
zoom:
|
|
112
|
-
value: import("../types").NormalizedZoomValue;
|
|
113
|
-
}>;
|
|
115
|
+
zoom: import("../types").Zoom;
|
|
114
116
|
openMenu: "canvas" | null;
|
|
115
|
-
openPopup: "
|
|
117
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
116
118
|
openSidebar: {
|
|
117
|
-
name:
|
|
118
|
-
tab?:
|
|
119
|
+
name: import("../types").SidebarName;
|
|
120
|
+
tab?: import("../types").SidebarTabName;
|
|
119
121
|
} | null;
|
|
120
122
|
defaultSidebarDockedPreference: boolean;
|
|
121
|
-
lastPointerDownWith: import("
|
|
123
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
122
124
|
selectedElementIds: Readonly<{
|
|
123
125
|
[id: string]: true;
|
|
124
126
|
}>;
|
|
@@ -132,11 +134,11 @@ export declare const actionLinkToElement: {
|
|
|
132
134
|
shouldCacheIgnoreZoom: boolean;
|
|
133
135
|
toast: {
|
|
134
136
|
message: string;
|
|
135
|
-
closable?: boolean
|
|
136
|
-
duration?: number
|
|
137
|
+
closable?: boolean;
|
|
138
|
+
duration?: number;
|
|
137
139
|
} | null;
|
|
138
140
|
zenModeEnabled: boolean;
|
|
139
|
-
theme: import("
|
|
141
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
140
142
|
gridSize: number;
|
|
141
143
|
gridStep: number;
|
|
142
144
|
gridModeEnabled: boolean;
|
|
@@ -144,44 +146,17 @@ export declare const actionLinkToElement: {
|
|
|
144
146
|
selectedGroupIds: {
|
|
145
147
|
[groupId: string]: boolean;
|
|
146
148
|
};
|
|
147
|
-
editingGroupId:
|
|
149
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
148
150
|
width: number;
|
|
149
151
|
height: number;
|
|
150
152
|
offsetTop: number;
|
|
151
153
|
offsetLeft: number;
|
|
152
154
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
153
|
-
collaborators: Map<import("../types").SocketId,
|
|
154
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
155
|
-
button?: "up" | "down" | undefined;
|
|
156
|
-
selectedElementIds?: Readonly<{
|
|
157
|
-
[id: string]: true;
|
|
158
|
-
}> | undefined;
|
|
159
|
-
username?: string | null | undefined;
|
|
160
|
-
userState?: import("..").UserIdleState | undefined;
|
|
161
|
-
color?: {
|
|
162
|
-
background: string;
|
|
163
|
-
stroke: string;
|
|
164
|
-
} | undefined;
|
|
165
|
-
avatarUrl?: string | undefined;
|
|
166
|
-
id?: string | undefined;
|
|
167
|
-
socketId?: import("../types").SocketId | undefined;
|
|
168
|
-
isCurrentUser?: boolean | undefined;
|
|
169
|
-
isInCall?: boolean | undefined;
|
|
170
|
-
isSpeaking?: boolean | undefined;
|
|
171
|
-
isMuted?: boolean | undefined;
|
|
172
|
-
}>>;
|
|
155
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
173
156
|
stats: {
|
|
174
157
|
open: boolean;
|
|
175
158
|
panels: number;
|
|
176
159
|
};
|
|
177
|
-
currentChartType: import("../../element/src/types").ChartType;
|
|
178
|
-
pasteDialog: {
|
|
179
|
-
shown: false;
|
|
180
|
-
data: null;
|
|
181
|
-
} | {
|
|
182
|
-
shown: true;
|
|
183
|
-
data: import("../charts").Spreadsheet;
|
|
184
|
-
};
|
|
185
160
|
showHyperlinkPopup: false | "info" | "editor";
|
|
186
161
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
187
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -193,22 +168,22 @@ export declare const actionLinkToElement: {
|
|
|
193
168
|
userToFollow: import("../types").UserToFollow | null;
|
|
194
169
|
followedBy: Set<import("../types").SocketId>;
|
|
195
170
|
isCropping: boolean;
|
|
196
|
-
croppingElementId:
|
|
171
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
197
172
|
searchMatches: Readonly<{
|
|
198
|
-
focusedId:
|
|
173
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
199
174
|
matches: readonly import("../types").SearchMatch[];
|
|
200
175
|
}> | null;
|
|
201
176
|
activeLockedId: string | null;
|
|
202
177
|
lockedMultiSelections: {
|
|
203
178
|
[groupId: string]: true;
|
|
204
179
|
};
|
|
205
|
-
bindMode: import("
|
|
180
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
206
181
|
};
|
|
207
182
|
captureUpdate: "IMMEDIATELY";
|
|
208
183
|
elements?: undefined;
|
|
209
184
|
app?: undefined;
|
|
210
185
|
};
|
|
211
|
-
predicate: (elements: readonly import("
|
|
186
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
212
187
|
trackEvent: false;
|
|
213
188
|
} & {
|
|
214
189
|
keyTest?: undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import type { AppState } from "../types";
|
|
4
3
|
export declare const actionToggleElementLock: {
|
|
@@ -20,7 +19,7 @@ export declare const actionToggleElementLock: {
|
|
|
20
19
|
};
|
|
21
20
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
22
21
|
lockedMultiSelections: {
|
|
23
|
-
[
|
|
22
|
+
[groupId: string]: true;
|
|
24
23
|
};
|
|
25
24
|
activeLockedId: string | null;
|
|
26
25
|
contextMenu: {
|
|
@@ -30,18 +29,23 @@ export declare const actionToggleElementLock: {
|
|
|
30
29
|
} | null;
|
|
31
30
|
showWelcomeScreen: boolean;
|
|
32
31
|
isLoading: boolean;
|
|
33
|
-
errorMessage:
|
|
32
|
+
errorMessage: React.ReactNode;
|
|
34
33
|
activeEmbeddable: {
|
|
35
34
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
36
|
-
state: "
|
|
35
|
+
state: "hover" | "active";
|
|
37
36
|
} | null;
|
|
38
37
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
39
38
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
41
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
41
|
isBindingEnabled: boolean;
|
|
42
|
+
bindingPreference: "enabled" | "disabled";
|
|
43
|
+
isMidpointSnappingEnabled: boolean;
|
|
43
44
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
44
|
-
suggestedBinding:
|
|
45
|
+
suggestedBinding: {
|
|
46
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
|
+
} | null;
|
|
45
49
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
46
50
|
frameRendering: {
|
|
47
51
|
enabled: boolean;
|
|
@@ -69,19 +73,19 @@ export declare const actionToggleElementLock: {
|
|
|
69
73
|
exportScale: number;
|
|
70
74
|
currentItemStrokeColor: string;
|
|
71
75
|
currentItemBackgroundColor: string;
|
|
72
|
-
currentItemFillStyle:
|
|
76
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
73
77
|
currentItemStrokeWidth: number;
|
|
74
|
-
currentItemStrokeStyle:
|
|
78
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
75
79
|
currentItemRoughness: number;
|
|
76
80
|
currentItemOpacity: number;
|
|
77
|
-
currentItemFontFamily:
|
|
81
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
78
82
|
currentItemFontSize: number;
|
|
79
|
-
currentItemTextAlign:
|
|
83
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
80
84
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
81
85
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
82
|
-
currentHoveredFontFamily:
|
|
86
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
83
87
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
84
|
-
currentItemArrowType: "
|
|
88
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
85
89
|
viewBackgroundColor: string;
|
|
86
90
|
scrollX: number;
|
|
87
91
|
scrollY: number;
|
|
@@ -90,28 +94,30 @@ export declare const actionToggleElementLock: {
|
|
|
90
94
|
name: string | null;
|
|
91
95
|
isResizing: boolean;
|
|
92
96
|
isRotating: boolean;
|
|
93
|
-
zoom:
|
|
94
|
-
value: import("../types").NormalizedZoomValue;
|
|
95
|
-
}>;
|
|
97
|
+
zoom: import("../types").Zoom;
|
|
96
98
|
openMenu: "canvas" | null;
|
|
97
|
-
openPopup: "
|
|
99
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
98
100
|
openSidebar: {
|
|
99
|
-
name:
|
|
100
|
-
tab?:
|
|
101
|
+
name: import("../types").SidebarName;
|
|
102
|
+
tab?: import("../types").SidebarTabName;
|
|
101
103
|
} | null;
|
|
102
|
-
openDialog: {
|
|
104
|
+
openDialog: null | {
|
|
103
105
|
name: "imageExport" | "help" | "jsonExport";
|
|
104
106
|
} | {
|
|
105
107
|
name: "ttd";
|
|
106
|
-
tab: "
|
|
108
|
+
tab: "text-to-diagram" | "mermaid";
|
|
107
109
|
} | {
|
|
108
110
|
name: "commandPalette";
|
|
109
111
|
} | {
|
|
110
112
|
name: "settings";
|
|
111
113
|
} | {
|
|
112
114
|
name: "elementLinkSelector";
|
|
113
|
-
sourceElementId:
|
|
114
|
-
} |
|
|
115
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
116
|
+
} | {
|
|
117
|
+
name: "charts";
|
|
118
|
+
data: import("../charts").Spreadsheet;
|
|
119
|
+
rawText: string;
|
|
120
|
+
};
|
|
115
121
|
defaultSidebarDockedPreference: boolean;
|
|
116
122
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
117
123
|
hoveredElementIds: Readonly<{
|
|
@@ -124,8 +130,8 @@ export declare const actionToggleElementLock: {
|
|
|
124
130
|
shouldCacheIgnoreZoom: boolean;
|
|
125
131
|
toast: {
|
|
126
132
|
message: string;
|
|
127
|
-
closable?: boolean
|
|
128
|
-
duration?: number
|
|
133
|
+
closable?: boolean;
|
|
134
|
+
duration?: number;
|
|
129
135
|
} | null;
|
|
130
136
|
zenModeEnabled: boolean;
|
|
131
137
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -133,44 +139,17 @@ export declare const actionToggleElementLock: {
|
|
|
133
139
|
gridStep: number;
|
|
134
140
|
gridModeEnabled: boolean;
|
|
135
141
|
viewModeEnabled: boolean;
|
|
136
|
-
editingGroupId:
|
|
142
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
137
143
|
width: number;
|
|
138
144
|
height: number;
|
|
139
145
|
offsetTop: number;
|
|
140
146
|
offsetLeft: number;
|
|
141
147
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
142
|
-
collaborators: Map<import("../types").SocketId,
|
|
143
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
144
|
-
button?: "up" | "down" | undefined;
|
|
145
|
-
selectedElementIds?: Readonly<{
|
|
146
|
-
[id: string]: true;
|
|
147
|
-
}> | undefined;
|
|
148
|
-
username?: string | null | undefined;
|
|
149
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
150
|
-
color?: {
|
|
151
|
-
background: string;
|
|
152
|
-
stroke: string;
|
|
153
|
-
} | undefined;
|
|
154
|
-
avatarUrl?: string | undefined;
|
|
155
|
-
id?: string | undefined;
|
|
156
|
-
socketId?: import("../types").SocketId | undefined;
|
|
157
|
-
isCurrentUser?: boolean | undefined;
|
|
158
|
-
isInCall?: boolean | undefined;
|
|
159
|
-
isSpeaking?: boolean | undefined;
|
|
160
|
-
isMuted?: boolean | undefined;
|
|
161
|
-
}>>;
|
|
148
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
162
149
|
stats: {
|
|
163
150
|
open: boolean;
|
|
164
151
|
panels: number;
|
|
165
152
|
};
|
|
166
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
167
|
-
pasteDialog: {
|
|
168
|
-
shown: false;
|
|
169
|
-
data: null;
|
|
170
|
-
} | {
|
|
171
|
-
shown: true;
|
|
172
|
-
data: import("../charts").Spreadsheet;
|
|
173
|
-
};
|
|
174
153
|
showHyperlinkPopup: false | "info" | "editor";
|
|
175
154
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
176
155
|
originSnapOffset: {
|
|
@@ -181,9 +160,9 @@ export declare const actionToggleElementLock: {
|
|
|
181
160
|
userToFollow: import("../types").UserToFollow | null;
|
|
182
161
|
followedBy: Set<import("../types").SocketId>;
|
|
183
162
|
isCropping: boolean;
|
|
184
|
-
croppingElementId:
|
|
163
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
185
164
|
searchMatches: Readonly<{
|
|
186
|
-
focusedId:
|
|
165
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
187
166
|
matches: readonly import("../types").SearchMatch[];
|
|
188
167
|
}> | null;
|
|
189
168
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
@@ -220,18 +199,23 @@ export declare const actionUnlockAllElements: {
|
|
|
220
199
|
} | null;
|
|
221
200
|
showWelcomeScreen: boolean;
|
|
222
201
|
isLoading: boolean;
|
|
223
|
-
errorMessage:
|
|
202
|
+
errorMessage: React.ReactNode;
|
|
224
203
|
activeEmbeddable: {
|
|
225
204
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
226
|
-
state: "
|
|
205
|
+
state: "hover" | "active";
|
|
227
206
|
} | null;
|
|
228
207
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
229
208
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
230
209
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
231
210
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
232
211
|
isBindingEnabled: boolean;
|
|
212
|
+
bindingPreference: "enabled" | "disabled";
|
|
213
|
+
isMidpointSnappingEnabled: boolean;
|
|
233
214
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
234
|
-
suggestedBinding:
|
|
215
|
+
suggestedBinding: {
|
|
216
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
217
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
218
|
+
} | null;
|
|
235
219
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
236
220
|
frameRendering: {
|
|
237
221
|
enabled: boolean;
|
|
@@ -259,19 +243,19 @@ export declare const actionUnlockAllElements: {
|
|
|
259
243
|
exportScale: number;
|
|
260
244
|
currentItemStrokeColor: string;
|
|
261
245
|
currentItemBackgroundColor: string;
|
|
262
|
-
currentItemFillStyle:
|
|
246
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
263
247
|
currentItemStrokeWidth: number;
|
|
264
|
-
currentItemStrokeStyle:
|
|
248
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
265
249
|
currentItemRoughness: number;
|
|
266
250
|
currentItemOpacity: number;
|
|
267
|
-
currentItemFontFamily:
|
|
251
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
268
252
|
currentItemFontSize: number;
|
|
269
|
-
currentItemTextAlign:
|
|
253
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
270
254
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
271
255
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
272
|
-
currentHoveredFontFamily:
|
|
256
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
273
257
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
274
|
-
currentItemArrowType: "
|
|
258
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
275
259
|
viewBackgroundColor: string;
|
|
276
260
|
scrollX: number;
|
|
277
261
|
scrollY: number;
|
|
@@ -280,28 +264,30 @@ export declare const actionUnlockAllElements: {
|
|
|
280
264
|
name: string | null;
|
|
281
265
|
isResizing: boolean;
|
|
282
266
|
isRotating: boolean;
|
|
283
|
-
zoom:
|
|
284
|
-
value: import("../types").NormalizedZoomValue;
|
|
285
|
-
}>;
|
|
267
|
+
zoom: import("../types").Zoom;
|
|
286
268
|
openMenu: "canvas" | null;
|
|
287
|
-
openPopup: "
|
|
269
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
288
270
|
openSidebar: {
|
|
289
|
-
name:
|
|
290
|
-
tab?:
|
|
271
|
+
name: import("../types").SidebarName;
|
|
272
|
+
tab?: import("../types").SidebarTabName;
|
|
291
273
|
} | null;
|
|
292
|
-
openDialog: {
|
|
274
|
+
openDialog: null | {
|
|
293
275
|
name: "imageExport" | "help" | "jsonExport";
|
|
294
276
|
} | {
|
|
295
277
|
name: "ttd";
|
|
296
|
-
tab: "
|
|
278
|
+
tab: "text-to-diagram" | "mermaid";
|
|
297
279
|
} | {
|
|
298
280
|
name: "commandPalette";
|
|
299
281
|
} | {
|
|
300
282
|
name: "settings";
|
|
301
283
|
} | {
|
|
302
284
|
name: "elementLinkSelector";
|
|
303
|
-
sourceElementId:
|
|
304
|
-
} |
|
|
285
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
286
|
+
} | {
|
|
287
|
+
name: "charts";
|
|
288
|
+
data: import("../charts").Spreadsheet;
|
|
289
|
+
rawText: string;
|
|
290
|
+
};
|
|
305
291
|
defaultSidebarDockedPreference: boolean;
|
|
306
292
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
307
293
|
hoveredElementIds: Readonly<{
|
|
@@ -314,8 +300,8 @@ export declare const actionUnlockAllElements: {
|
|
|
314
300
|
shouldCacheIgnoreZoom: boolean;
|
|
315
301
|
toast: {
|
|
316
302
|
message: string;
|
|
317
|
-
closable?: boolean
|
|
318
|
-
duration?: number
|
|
303
|
+
closable?: boolean;
|
|
304
|
+
duration?: number;
|
|
319
305
|
} | null;
|
|
320
306
|
zenModeEnabled: boolean;
|
|
321
307
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -323,44 +309,17 @@ export declare const actionUnlockAllElements: {
|
|
|
323
309
|
gridStep: number;
|
|
324
310
|
gridModeEnabled: boolean;
|
|
325
311
|
viewModeEnabled: boolean;
|
|
326
|
-
editingGroupId:
|
|
312
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
327
313
|
width: number;
|
|
328
314
|
height: number;
|
|
329
315
|
offsetTop: number;
|
|
330
316
|
offsetLeft: number;
|
|
331
317
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
332
|
-
collaborators: Map<import("../types").SocketId,
|
|
333
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
334
|
-
button?: "up" | "down" | undefined;
|
|
335
|
-
selectedElementIds?: Readonly<{
|
|
336
|
-
[id: string]: true;
|
|
337
|
-
}> | undefined;
|
|
338
|
-
username?: string | null | undefined;
|
|
339
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
340
|
-
color?: {
|
|
341
|
-
background: string;
|
|
342
|
-
stroke: string;
|
|
343
|
-
} | undefined;
|
|
344
|
-
avatarUrl?: string | undefined;
|
|
345
|
-
id?: string | undefined;
|
|
346
|
-
socketId?: import("../types").SocketId | undefined;
|
|
347
|
-
isCurrentUser?: boolean | undefined;
|
|
348
|
-
isInCall?: boolean | undefined;
|
|
349
|
-
isSpeaking?: boolean | undefined;
|
|
350
|
-
isMuted?: boolean | undefined;
|
|
351
|
-
}>>;
|
|
318
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
352
319
|
stats: {
|
|
353
320
|
open: boolean;
|
|
354
321
|
panels: number;
|
|
355
322
|
};
|
|
356
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
357
|
-
pasteDialog: {
|
|
358
|
-
shown: false;
|
|
359
|
-
data: null;
|
|
360
|
-
} | {
|
|
361
|
-
shown: true;
|
|
362
|
-
data: import("../charts").Spreadsheet;
|
|
363
|
-
};
|
|
364
323
|
showHyperlinkPopup: false | "info" | "editor";
|
|
365
324
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
366
325
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -372,9 +331,9 @@ export declare const actionUnlockAllElements: {
|
|
|
372
331
|
userToFollow: import("../types").UserToFollow | null;
|
|
373
332
|
followedBy: Set<import("../types").SocketId>;
|
|
374
333
|
isCropping: boolean;
|
|
375
|
-
croppingElementId:
|
|
334
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
376
335
|
searchMatches: Readonly<{
|
|
377
|
-
focusedId:
|
|
336
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
378
337
|
matches: readonly import("../types").SearchMatch[];
|
|
379
338
|
}> | null;
|
|
380
339
|
bindMode: import("@excalidraw/element/types").BindMode;
|