@excalidraw/common 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 +1298 -296
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +3 -3
- 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 +18 -12
- 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 +47 -39
- package/dist/types/element/src/Scene.d.ts +6 -4
- 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 +7 -3
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +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 +106 -169
- 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 +248 -365
- package/dist/types/excalidraw/actions/actionGroup.d.ts +68 -117
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +161 -216
- 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 +42 -43
- 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 +7 -1
- 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
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
3
|
export declare const actionSelectAllElementsInFrame: {
|
|
@@ -18,18 +17,23 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
18
17
|
} | null;
|
|
19
18
|
showWelcomeScreen: boolean;
|
|
20
19
|
isLoading: boolean;
|
|
21
|
-
errorMessage:
|
|
20
|
+
errorMessage: React.ReactNode;
|
|
22
21
|
activeEmbeddable: {
|
|
23
22
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
-
state: "
|
|
23
|
+
state: "hover" | "active";
|
|
25
24
|
} | null;
|
|
26
25
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
26
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
29
|
isBindingEnabled: boolean;
|
|
30
|
+
bindingPreference: "enabled" | "disabled";
|
|
31
|
+
isMidpointSnappingEnabled: boolean;
|
|
31
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
suggestedBinding:
|
|
33
|
+
suggestedBinding: {
|
|
34
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
|
+
} | null;
|
|
33
37
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
38
|
frameRendering: {
|
|
35
39
|
enabled: boolean;
|
|
@@ -57,19 +61,19 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
57
61
|
exportScale: number;
|
|
58
62
|
currentItemStrokeColor: string;
|
|
59
63
|
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle:
|
|
64
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
61
65
|
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle:
|
|
66
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
63
67
|
currentItemRoughness: number;
|
|
64
68
|
currentItemOpacity: number;
|
|
65
|
-
currentItemFontFamily:
|
|
69
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
66
70
|
currentItemFontSize: number;
|
|
67
|
-
currentItemTextAlign:
|
|
71
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
68
72
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
73
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
-
currentHoveredFontFamily:
|
|
74
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
71
75
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
|
-
currentItemArrowType: "
|
|
76
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
73
77
|
viewBackgroundColor: string;
|
|
74
78
|
scrollX: number;
|
|
75
79
|
scrollY: number;
|
|
@@ -78,28 +82,30 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
82
|
name: string | null;
|
|
79
83
|
isResizing: boolean;
|
|
80
84
|
isRotating: boolean;
|
|
81
|
-
zoom:
|
|
82
|
-
value: import("../types").NormalizedZoomValue;
|
|
83
|
-
}>;
|
|
85
|
+
zoom: import("../types").Zoom;
|
|
84
86
|
openMenu: "canvas" | null;
|
|
85
|
-
openPopup: "
|
|
87
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
86
88
|
openSidebar: {
|
|
87
|
-
name:
|
|
88
|
-
tab?:
|
|
89
|
+
name: import("../types").SidebarName;
|
|
90
|
+
tab?: import("../types").SidebarTabName;
|
|
89
91
|
} | null;
|
|
90
|
-
openDialog: {
|
|
92
|
+
openDialog: null | {
|
|
91
93
|
name: "imageExport" | "help" | "jsonExport";
|
|
92
94
|
} | {
|
|
93
95
|
name: "ttd";
|
|
94
|
-
tab: "
|
|
96
|
+
tab: "text-to-diagram" | "mermaid";
|
|
95
97
|
} | {
|
|
96
98
|
name: "commandPalette";
|
|
97
99
|
} | {
|
|
98
100
|
name: "settings";
|
|
99
101
|
} | {
|
|
100
102
|
name: "elementLinkSelector";
|
|
101
|
-
sourceElementId:
|
|
102
|
-
} |
|
|
103
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
104
|
+
} | {
|
|
105
|
+
name: "charts";
|
|
106
|
+
data: import("../charts").Spreadsheet;
|
|
107
|
+
rawText: string;
|
|
108
|
+
};
|
|
103
109
|
defaultSidebarDockedPreference: boolean;
|
|
104
110
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
105
111
|
hoveredElementIds: Readonly<{
|
|
@@ -112,8 +118,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
112
118
|
shouldCacheIgnoreZoom: boolean;
|
|
113
119
|
toast: {
|
|
114
120
|
message: string;
|
|
115
|
-
closable?: boolean
|
|
116
|
-
duration?: number
|
|
121
|
+
closable?: boolean;
|
|
122
|
+
duration?: number;
|
|
117
123
|
} | null;
|
|
118
124
|
zenModeEnabled: boolean;
|
|
119
125
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -124,44 +130,17 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
124
130
|
selectedGroupIds: {
|
|
125
131
|
[groupId: string]: boolean;
|
|
126
132
|
};
|
|
127
|
-
editingGroupId:
|
|
133
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
128
134
|
width: number;
|
|
129
135
|
height: number;
|
|
130
136
|
offsetTop: number;
|
|
131
137
|
offsetLeft: number;
|
|
132
138
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
133
|
-
collaborators: Map<import("../types").SocketId,
|
|
134
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
135
|
-
button?: "up" | "down" | undefined;
|
|
136
|
-
selectedElementIds?: Readonly<{
|
|
137
|
-
[id: string]: true;
|
|
138
|
-
}> | undefined;
|
|
139
|
-
username?: string | null | undefined;
|
|
140
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
141
|
-
color?: {
|
|
142
|
-
background: string;
|
|
143
|
-
stroke: string;
|
|
144
|
-
} | undefined;
|
|
145
|
-
avatarUrl?: string | undefined;
|
|
146
|
-
id?: string | undefined;
|
|
147
|
-
socketId?: import("../types").SocketId | undefined;
|
|
148
|
-
isCurrentUser?: boolean | undefined;
|
|
149
|
-
isInCall?: boolean | undefined;
|
|
150
|
-
isSpeaking?: boolean | undefined;
|
|
151
|
-
isMuted?: boolean | undefined;
|
|
152
|
-
}>>;
|
|
139
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
153
140
|
stats: {
|
|
154
141
|
open: boolean;
|
|
155
142
|
panels: number;
|
|
156
143
|
};
|
|
157
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
158
|
-
pasteDialog: {
|
|
159
|
-
shown: false;
|
|
160
|
-
data: null;
|
|
161
|
-
} | {
|
|
162
|
-
shown: true;
|
|
163
|
-
data: import("../charts").Spreadsheet;
|
|
164
|
-
};
|
|
165
144
|
showHyperlinkPopup: false | "info" | "editor";
|
|
166
145
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
167
146
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -173,9 +152,9 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
173
152
|
userToFollow: import("../types").UserToFollow | null;
|
|
174
153
|
followedBy: Set<import("../types").SocketId>;
|
|
175
154
|
isCropping: boolean;
|
|
176
|
-
croppingElementId:
|
|
155
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
177
156
|
searchMatches: Readonly<{
|
|
178
|
-
focusedId:
|
|
157
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
179
158
|
matches: readonly import("../types").SearchMatch[];
|
|
180
159
|
}> | null;
|
|
181
160
|
activeLockedId: string | null;
|
|
@@ -213,18 +192,23 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
213
192
|
} | null;
|
|
214
193
|
showWelcomeScreen: boolean;
|
|
215
194
|
isLoading: boolean;
|
|
216
|
-
errorMessage:
|
|
195
|
+
errorMessage: React.ReactNode;
|
|
217
196
|
activeEmbeddable: {
|
|
218
197
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
219
|
-
state: "
|
|
198
|
+
state: "hover" | "active";
|
|
220
199
|
} | null;
|
|
221
200
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
222
201
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
202
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
224
203
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
225
204
|
isBindingEnabled: boolean;
|
|
205
|
+
bindingPreference: "enabled" | "disabled";
|
|
206
|
+
isMidpointSnappingEnabled: boolean;
|
|
226
207
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
227
|
-
suggestedBinding:
|
|
208
|
+
suggestedBinding: {
|
|
209
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
210
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
211
|
+
} | null;
|
|
228
212
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
229
213
|
frameRendering: {
|
|
230
214
|
enabled: boolean;
|
|
@@ -252,19 +236,19 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
252
236
|
exportScale: number;
|
|
253
237
|
currentItemStrokeColor: string;
|
|
254
238
|
currentItemBackgroundColor: string;
|
|
255
|
-
currentItemFillStyle:
|
|
239
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
256
240
|
currentItemStrokeWidth: number;
|
|
257
|
-
currentItemStrokeStyle:
|
|
241
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
258
242
|
currentItemRoughness: number;
|
|
259
243
|
currentItemOpacity: number;
|
|
260
|
-
currentItemFontFamily:
|
|
244
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
261
245
|
currentItemFontSize: number;
|
|
262
|
-
currentItemTextAlign:
|
|
246
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
263
247
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
264
248
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
265
|
-
currentHoveredFontFamily:
|
|
249
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
266
250
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
267
|
-
currentItemArrowType: "
|
|
251
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
268
252
|
viewBackgroundColor: string;
|
|
269
253
|
scrollX: number;
|
|
270
254
|
scrollY: number;
|
|
@@ -273,28 +257,30 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
273
257
|
name: string | null;
|
|
274
258
|
isResizing: boolean;
|
|
275
259
|
isRotating: boolean;
|
|
276
|
-
zoom:
|
|
277
|
-
value: import("../types").NormalizedZoomValue;
|
|
278
|
-
}>;
|
|
260
|
+
zoom: import("../types").Zoom;
|
|
279
261
|
openMenu: "canvas" | null;
|
|
280
|
-
openPopup: "
|
|
262
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
281
263
|
openSidebar: {
|
|
282
|
-
name:
|
|
283
|
-
tab?:
|
|
264
|
+
name: import("../types").SidebarName;
|
|
265
|
+
tab?: import("../types").SidebarTabName;
|
|
284
266
|
} | null;
|
|
285
|
-
openDialog: {
|
|
267
|
+
openDialog: null | {
|
|
286
268
|
name: "imageExport" | "help" | "jsonExport";
|
|
287
269
|
} | {
|
|
288
270
|
name: "ttd";
|
|
289
|
-
tab: "
|
|
271
|
+
tab: "text-to-diagram" | "mermaid";
|
|
290
272
|
} | {
|
|
291
273
|
name: "commandPalette";
|
|
292
274
|
} | {
|
|
293
275
|
name: "settings";
|
|
294
276
|
} | {
|
|
295
277
|
name: "elementLinkSelector";
|
|
296
|
-
sourceElementId:
|
|
297
|
-
} |
|
|
278
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
279
|
+
} | {
|
|
280
|
+
name: "charts";
|
|
281
|
+
data: import("../charts").Spreadsheet;
|
|
282
|
+
rawText: string;
|
|
283
|
+
};
|
|
298
284
|
defaultSidebarDockedPreference: boolean;
|
|
299
285
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
300
286
|
hoveredElementIds: Readonly<{
|
|
@@ -307,8 +293,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
307
293
|
shouldCacheIgnoreZoom: boolean;
|
|
308
294
|
toast: {
|
|
309
295
|
message: string;
|
|
310
|
-
closable?: boolean
|
|
311
|
-
duration?: number
|
|
296
|
+
closable?: boolean;
|
|
297
|
+
duration?: number;
|
|
312
298
|
} | null;
|
|
313
299
|
zenModeEnabled: boolean;
|
|
314
300
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -319,44 +305,17 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
319
305
|
selectedGroupIds: {
|
|
320
306
|
[groupId: string]: boolean;
|
|
321
307
|
};
|
|
322
|
-
editingGroupId:
|
|
308
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
323
309
|
width: number;
|
|
324
310
|
height: number;
|
|
325
311
|
offsetTop: number;
|
|
326
312
|
offsetLeft: number;
|
|
327
313
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
328
|
-
collaborators: Map<import("../types").SocketId,
|
|
329
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
330
|
-
button?: "up" | "down" | undefined;
|
|
331
|
-
selectedElementIds?: Readonly<{
|
|
332
|
-
[id: string]: true;
|
|
333
|
-
}> | undefined;
|
|
334
|
-
username?: string | null | undefined;
|
|
335
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
336
|
-
color?: {
|
|
337
|
-
background: string;
|
|
338
|
-
stroke: string;
|
|
339
|
-
} | undefined;
|
|
340
|
-
avatarUrl?: string | undefined;
|
|
341
|
-
id?: string | undefined;
|
|
342
|
-
socketId?: import("../types").SocketId | undefined;
|
|
343
|
-
isCurrentUser?: boolean | undefined;
|
|
344
|
-
isInCall?: boolean | undefined;
|
|
345
|
-
isSpeaking?: boolean | undefined;
|
|
346
|
-
isMuted?: boolean | undefined;
|
|
347
|
-
}>>;
|
|
314
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
348
315
|
stats: {
|
|
349
316
|
open: boolean;
|
|
350
317
|
panels: number;
|
|
351
318
|
};
|
|
352
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
353
|
-
pasteDialog: {
|
|
354
|
-
shown: false;
|
|
355
|
-
data: null;
|
|
356
|
-
} | {
|
|
357
|
-
shown: true;
|
|
358
|
-
data: import("../charts").Spreadsheet;
|
|
359
|
-
};
|
|
360
319
|
showHyperlinkPopup: false | "info" | "editor";
|
|
361
320
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
362
321
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -368,9 +327,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
368
327
|
userToFollow: import("../types").UserToFollow | null;
|
|
369
328
|
followedBy: Set<import("../types").SocketId>;
|
|
370
329
|
isCropping: boolean;
|
|
371
|
-
croppingElementId:
|
|
330
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
372
331
|
searchMatches: Readonly<{
|
|
373
|
-
focusedId:
|
|
332
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
374
333
|
matches: readonly import("../types").SearchMatch[];
|
|
375
334
|
}> | null;
|
|
376
335
|
activeLockedId: string | null;
|
|
@@ -412,18 +371,23 @@ export declare const actionupdateFrameRendering: {
|
|
|
412
371
|
} | null;
|
|
413
372
|
showWelcomeScreen: boolean;
|
|
414
373
|
isLoading: boolean;
|
|
415
|
-
errorMessage:
|
|
374
|
+
errorMessage: React.ReactNode;
|
|
416
375
|
activeEmbeddable: {
|
|
417
376
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
418
|
-
state: "
|
|
377
|
+
state: "hover" | "active";
|
|
419
378
|
} | null;
|
|
420
379
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
421
380
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
422
381
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
423
382
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
424
383
|
isBindingEnabled: boolean;
|
|
384
|
+
bindingPreference: "enabled" | "disabled";
|
|
385
|
+
isMidpointSnappingEnabled: boolean;
|
|
425
386
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
426
|
-
suggestedBinding:
|
|
387
|
+
suggestedBinding: {
|
|
388
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
389
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
390
|
+
} | null;
|
|
427
391
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
428
392
|
editingFrame: string | null;
|
|
429
393
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
@@ -445,19 +409,19 @@ export declare const actionupdateFrameRendering: {
|
|
|
445
409
|
exportScale: number;
|
|
446
410
|
currentItemStrokeColor: string;
|
|
447
411
|
currentItemBackgroundColor: string;
|
|
448
|
-
currentItemFillStyle:
|
|
412
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
449
413
|
currentItemStrokeWidth: number;
|
|
450
|
-
currentItemStrokeStyle:
|
|
414
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
451
415
|
currentItemRoughness: number;
|
|
452
416
|
currentItemOpacity: number;
|
|
453
|
-
currentItemFontFamily:
|
|
417
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
454
418
|
currentItemFontSize: number;
|
|
455
|
-
currentItemTextAlign:
|
|
419
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
456
420
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
457
421
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
458
|
-
currentHoveredFontFamily:
|
|
422
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
459
423
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
460
|
-
currentItemArrowType: "
|
|
424
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
461
425
|
viewBackgroundColor: string;
|
|
462
426
|
scrollX: number;
|
|
463
427
|
scrollY: number;
|
|
@@ -466,28 +430,30 @@ export declare const actionupdateFrameRendering: {
|
|
|
466
430
|
name: string | null;
|
|
467
431
|
isResizing: boolean;
|
|
468
432
|
isRotating: boolean;
|
|
469
|
-
zoom:
|
|
470
|
-
value: import("../types").NormalizedZoomValue;
|
|
471
|
-
}>;
|
|
433
|
+
zoom: import("../types").Zoom;
|
|
472
434
|
openMenu: "canvas" | null;
|
|
473
|
-
openPopup: "
|
|
435
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
474
436
|
openSidebar: {
|
|
475
|
-
name:
|
|
476
|
-
tab?:
|
|
437
|
+
name: import("../types").SidebarName;
|
|
438
|
+
tab?: import("../types").SidebarTabName;
|
|
477
439
|
} | null;
|
|
478
|
-
openDialog: {
|
|
440
|
+
openDialog: null | {
|
|
479
441
|
name: "imageExport" | "help" | "jsonExport";
|
|
480
442
|
} | {
|
|
481
443
|
name: "ttd";
|
|
482
|
-
tab: "
|
|
444
|
+
tab: "text-to-diagram" | "mermaid";
|
|
483
445
|
} | {
|
|
484
446
|
name: "commandPalette";
|
|
485
447
|
} | {
|
|
486
448
|
name: "settings";
|
|
487
449
|
} | {
|
|
488
450
|
name: "elementLinkSelector";
|
|
489
|
-
sourceElementId:
|
|
490
|
-
} |
|
|
451
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
452
|
+
} | {
|
|
453
|
+
name: "charts";
|
|
454
|
+
data: import("../charts").Spreadsheet;
|
|
455
|
+
rawText: string;
|
|
456
|
+
};
|
|
491
457
|
defaultSidebarDockedPreference: boolean;
|
|
492
458
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
493
459
|
selectedElementIds: Readonly<{
|
|
@@ -503,8 +469,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
503
469
|
shouldCacheIgnoreZoom: boolean;
|
|
504
470
|
toast: {
|
|
505
471
|
message: string;
|
|
506
|
-
closable?: boolean
|
|
507
|
-
duration?: number
|
|
472
|
+
closable?: boolean;
|
|
473
|
+
duration?: number;
|
|
508
474
|
} | null;
|
|
509
475
|
zenModeEnabled: boolean;
|
|
510
476
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -515,44 +481,17 @@ export declare const actionupdateFrameRendering: {
|
|
|
515
481
|
selectedGroupIds: {
|
|
516
482
|
[groupId: string]: boolean;
|
|
517
483
|
};
|
|
518
|
-
editingGroupId:
|
|
484
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
519
485
|
width: number;
|
|
520
486
|
height: number;
|
|
521
487
|
offsetTop: number;
|
|
522
488
|
offsetLeft: number;
|
|
523
489
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
524
|
-
collaborators: Map<import("../types").SocketId,
|
|
525
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
526
|
-
button?: "up" | "down" | undefined;
|
|
527
|
-
selectedElementIds?: Readonly<{
|
|
528
|
-
[id: string]: true;
|
|
529
|
-
}> | undefined;
|
|
530
|
-
username?: string | null | undefined;
|
|
531
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
532
|
-
color?: {
|
|
533
|
-
background: string;
|
|
534
|
-
stroke: string;
|
|
535
|
-
} | undefined;
|
|
536
|
-
avatarUrl?: string | undefined;
|
|
537
|
-
id?: string | undefined;
|
|
538
|
-
socketId?: import("../types").SocketId | undefined;
|
|
539
|
-
isCurrentUser?: boolean | undefined;
|
|
540
|
-
isInCall?: boolean | undefined;
|
|
541
|
-
isSpeaking?: boolean | undefined;
|
|
542
|
-
isMuted?: boolean | undefined;
|
|
543
|
-
}>>;
|
|
490
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
544
491
|
stats: {
|
|
545
492
|
open: boolean;
|
|
546
493
|
panels: number;
|
|
547
494
|
};
|
|
548
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
549
|
-
pasteDialog: {
|
|
550
|
-
shown: false;
|
|
551
|
-
data: null;
|
|
552
|
-
} | {
|
|
553
|
-
shown: true;
|
|
554
|
-
data: import("../charts").Spreadsheet;
|
|
555
|
-
};
|
|
556
495
|
showHyperlinkPopup: false | "info" | "editor";
|
|
557
496
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
558
497
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -564,9 +503,9 @@ export declare const actionupdateFrameRendering: {
|
|
|
564
503
|
userToFollow: import("../types").UserToFollow | null;
|
|
565
504
|
followedBy: Set<import("../types").SocketId>;
|
|
566
505
|
isCropping: boolean;
|
|
567
|
-
croppingElementId:
|
|
506
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
568
507
|
searchMatches: Readonly<{
|
|
569
|
-
focusedId:
|
|
508
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
570
509
|
matches: readonly import("../types").SearchMatch[];
|
|
571
510
|
}> | null;
|
|
572
511
|
activeLockedId: string | null;
|
|
@@ -604,18 +543,23 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
604
543
|
} | null;
|
|
605
544
|
showWelcomeScreen: boolean;
|
|
606
545
|
isLoading: boolean;
|
|
607
|
-
errorMessage:
|
|
546
|
+
errorMessage: React.ReactNode;
|
|
608
547
|
activeEmbeddable: {
|
|
609
548
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
610
|
-
state: "
|
|
549
|
+
state: "hover" | "active";
|
|
611
550
|
} | null;
|
|
612
551
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
613
552
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
614
553
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
615
554
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
616
555
|
isBindingEnabled: boolean;
|
|
556
|
+
bindingPreference: "enabled" | "disabled";
|
|
557
|
+
isMidpointSnappingEnabled: boolean;
|
|
617
558
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
618
|
-
suggestedBinding:
|
|
559
|
+
suggestedBinding: {
|
|
560
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
561
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
562
|
+
} | null;
|
|
619
563
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
620
564
|
frameRendering: {
|
|
621
565
|
enabled: boolean;
|
|
@@ -638,19 +582,19 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
638
582
|
exportScale: number;
|
|
639
583
|
currentItemStrokeColor: string;
|
|
640
584
|
currentItemBackgroundColor: string;
|
|
641
|
-
currentItemFillStyle:
|
|
585
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
642
586
|
currentItemStrokeWidth: number;
|
|
643
|
-
currentItemStrokeStyle:
|
|
587
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
644
588
|
currentItemRoughness: number;
|
|
645
589
|
currentItemOpacity: number;
|
|
646
|
-
currentItemFontFamily:
|
|
590
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
647
591
|
currentItemFontSize: number;
|
|
648
|
-
currentItemTextAlign:
|
|
592
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
649
593
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
650
594
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
651
|
-
currentHoveredFontFamily:
|
|
595
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
652
596
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
653
|
-
currentItemArrowType: "
|
|
597
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
654
598
|
viewBackgroundColor: string;
|
|
655
599
|
scrollX: number;
|
|
656
600
|
scrollY: number;
|
|
@@ -659,28 +603,30 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
659
603
|
name: string | null;
|
|
660
604
|
isResizing: boolean;
|
|
661
605
|
isRotating: boolean;
|
|
662
|
-
zoom:
|
|
663
|
-
value: import("../types").NormalizedZoomValue;
|
|
664
|
-
}>;
|
|
606
|
+
zoom: import("../types").Zoom;
|
|
665
607
|
openMenu: "canvas" | null;
|
|
666
|
-
openPopup: "
|
|
608
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
667
609
|
openSidebar: {
|
|
668
|
-
name:
|
|
669
|
-
tab?:
|
|
610
|
+
name: import("../types").SidebarName;
|
|
611
|
+
tab?: import("../types").SidebarTabName;
|
|
670
612
|
} | null;
|
|
671
|
-
openDialog: {
|
|
613
|
+
openDialog: null | {
|
|
672
614
|
name: "imageExport" | "help" | "jsonExport";
|
|
673
615
|
} | {
|
|
674
616
|
name: "ttd";
|
|
675
|
-
tab: "
|
|
617
|
+
tab: "text-to-diagram" | "mermaid";
|
|
676
618
|
} | {
|
|
677
619
|
name: "commandPalette";
|
|
678
620
|
} | {
|
|
679
621
|
name: "settings";
|
|
680
622
|
} | {
|
|
681
623
|
name: "elementLinkSelector";
|
|
682
|
-
sourceElementId:
|
|
683
|
-
} |
|
|
624
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
625
|
+
} | {
|
|
626
|
+
name: "charts";
|
|
627
|
+
data: import("../charts").Spreadsheet;
|
|
628
|
+
rawText: string;
|
|
629
|
+
};
|
|
684
630
|
defaultSidebarDockedPreference: boolean;
|
|
685
631
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
686
632
|
selectedElementIds: Readonly<{
|
|
@@ -696,8 +642,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
696
642
|
shouldCacheIgnoreZoom: boolean;
|
|
697
643
|
toast: {
|
|
698
644
|
message: string;
|
|
699
|
-
closable?: boolean
|
|
700
|
-
duration?: number
|
|
645
|
+
closable?: boolean;
|
|
646
|
+
duration?: number;
|
|
701
647
|
} | null;
|
|
702
648
|
zenModeEnabled: boolean;
|
|
703
649
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -708,44 +654,17 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
708
654
|
selectedGroupIds: {
|
|
709
655
|
[groupId: string]: boolean;
|
|
710
656
|
};
|
|
711
|
-
editingGroupId:
|
|
657
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
712
658
|
width: number;
|
|
713
659
|
height: number;
|
|
714
660
|
offsetTop: number;
|
|
715
661
|
offsetLeft: number;
|
|
716
662
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
717
|
-
collaborators: Map<import("../types").SocketId,
|
|
718
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
719
|
-
button?: "up" | "down" | undefined;
|
|
720
|
-
selectedElementIds?: Readonly<{
|
|
721
|
-
[id: string]: true;
|
|
722
|
-
}> | undefined;
|
|
723
|
-
username?: string | null | undefined;
|
|
724
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
725
|
-
color?: {
|
|
726
|
-
background: string;
|
|
727
|
-
stroke: string;
|
|
728
|
-
} | undefined;
|
|
729
|
-
avatarUrl?: string | undefined;
|
|
730
|
-
id?: string | undefined;
|
|
731
|
-
socketId?: import("../types").SocketId | undefined;
|
|
732
|
-
isCurrentUser?: boolean | undefined;
|
|
733
|
-
isInCall?: boolean | undefined;
|
|
734
|
-
isSpeaking?: boolean | undefined;
|
|
735
|
-
isMuted?: boolean | undefined;
|
|
736
|
-
}>>;
|
|
663
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
737
664
|
stats: {
|
|
738
665
|
open: boolean;
|
|
739
666
|
panels: number;
|
|
740
667
|
};
|
|
741
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
742
|
-
pasteDialog: {
|
|
743
|
-
shown: false;
|
|
744
|
-
data: null;
|
|
745
|
-
} | {
|
|
746
|
-
shown: true;
|
|
747
|
-
data: import("../charts").Spreadsheet;
|
|
748
|
-
};
|
|
749
668
|
showHyperlinkPopup: false | "info" | "editor";
|
|
750
669
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
751
670
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -757,9 +676,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
757
676
|
userToFollow: import("../types").UserToFollow | null;
|
|
758
677
|
followedBy: Set<import("../types").SocketId>;
|
|
759
678
|
isCropping: boolean;
|
|
760
|
-
croppingElementId:
|
|
679
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
761
680
|
searchMatches: Readonly<{
|
|
762
|
-
focusedId:
|
|
681
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
763
682
|
matches: readonly import("../types").SearchMatch[];
|
|
764
683
|
}> | null;
|
|
765
684
|
activeLockedId: string | null;
|
|
@@ -791,43 +710,34 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
791
710
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
792
711
|
strokeWidth: number;
|
|
793
712
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
794
|
-
roundness: {
|
|
713
|
+
roundness: null | {
|
|
795
714
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
796
|
-
value?: number
|
|
797
|
-
}
|
|
715
|
+
value?: number;
|
|
716
|
+
};
|
|
798
717
|
roughness: number;
|
|
799
718
|
opacity: number;
|
|
800
719
|
width: number;
|
|
801
720
|
height: number;
|
|
802
|
-
angle: import("
|
|
721
|
+
angle: import("@excalidraw/math").Radians;
|
|
803
722
|
seed: number;
|
|
804
723
|
version: number;
|
|
805
724
|
versionNonce: number;
|
|
806
725
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
807
726
|
isDeleted: boolean;
|
|
808
|
-
groupIds: readonly
|
|
727
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
809
728
|
frameId: string | null;
|
|
810
|
-
boundElements: readonly
|
|
811
|
-
id: string;
|
|
812
|
-
type: "text" | "arrow";
|
|
813
|
-
}>[] | null;
|
|
729
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
814
730
|
updated: number;
|
|
815
731
|
link: string | null;
|
|
816
732
|
locked: boolean;
|
|
817
|
-
customData?: Record<string, any
|
|
733
|
+
customData?: Record<string, any>;
|
|
818
734
|
}> & Readonly<{
|
|
819
|
-
type: "
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
containerId: string | null;
|
|
826
|
-
originalText: string;
|
|
827
|
-
autoResize: boolean;
|
|
828
|
-
lineHeight: number & {
|
|
829
|
-
_brand: "unitlessLineHeight";
|
|
830
|
-
};
|
|
735
|
+
type: "line" | "arrow";
|
|
736
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
737
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
738
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
739
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
740
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
831
741
|
}> & {
|
|
832
742
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
833
743
|
}) | (Readonly<{
|
|
@@ -839,32 +749,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
839
749
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
840
750
|
strokeWidth: number;
|
|
841
751
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
842
|
-
roundness: {
|
|
752
|
+
roundness: null | {
|
|
843
753
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
844
|
-
value?: number
|
|
845
|
-
}
|
|
754
|
+
value?: number;
|
|
755
|
+
};
|
|
846
756
|
roughness: number;
|
|
847
757
|
opacity: number;
|
|
848
758
|
width: number;
|
|
849
759
|
height: number;
|
|
850
|
-
angle: import("
|
|
760
|
+
angle: import("@excalidraw/math").Radians;
|
|
851
761
|
seed: number;
|
|
852
762
|
version: number;
|
|
853
763
|
versionNonce: number;
|
|
854
764
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
855
765
|
isDeleted: boolean;
|
|
856
|
-
groupIds: readonly
|
|
766
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
857
767
|
frameId: string | null;
|
|
858
|
-
boundElements: readonly
|
|
859
|
-
id: string;
|
|
860
|
-
type: "text" | "arrow";
|
|
861
|
-
}>[] | null;
|
|
768
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
862
769
|
updated: number;
|
|
863
770
|
link: string | null;
|
|
864
771
|
locked: boolean;
|
|
865
|
-
customData?: Record<string, any
|
|
772
|
+
customData?: Record<string, any>;
|
|
866
773
|
}> & {
|
|
867
|
-
type: "
|
|
774
|
+
type: "selection";
|
|
868
775
|
} & {
|
|
869
776
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
870
777
|
}) | (Readonly<{
|
|
@@ -876,32 +783,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
876
783
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
877
784
|
strokeWidth: number;
|
|
878
785
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
879
|
-
roundness: {
|
|
786
|
+
roundness: null | {
|
|
880
787
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
881
|
-
value?: number
|
|
882
|
-
}
|
|
788
|
+
value?: number;
|
|
789
|
+
};
|
|
883
790
|
roughness: number;
|
|
884
791
|
opacity: number;
|
|
885
792
|
width: number;
|
|
886
793
|
height: number;
|
|
887
|
-
angle: import("
|
|
794
|
+
angle: import("@excalidraw/math").Radians;
|
|
888
795
|
seed: number;
|
|
889
796
|
version: number;
|
|
890
797
|
versionNonce: number;
|
|
891
798
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
892
799
|
isDeleted: boolean;
|
|
893
|
-
groupIds: readonly
|
|
800
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
894
801
|
frameId: string | null;
|
|
895
|
-
boundElements: readonly
|
|
896
|
-
id: string;
|
|
897
|
-
type: "text" | "arrow";
|
|
898
|
-
}>[] | null;
|
|
802
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
899
803
|
updated: number;
|
|
900
804
|
link: string | null;
|
|
901
805
|
locked: boolean;
|
|
902
|
-
customData?: Record<string, any
|
|
806
|
+
customData?: Record<string, any>;
|
|
903
807
|
}> & {
|
|
904
|
-
type: "
|
|
808
|
+
type: "rectangle";
|
|
905
809
|
} & {
|
|
906
810
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
907
811
|
}) | (Readonly<{
|
|
@@ -913,33 +817,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
913
817
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
914
818
|
strokeWidth: number;
|
|
915
819
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
916
|
-
roundness: {
|
|
820
|
+
roundness: null | {
|
|
917
821
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
918
|
-
value?: number
|
|
919
|
-
}
|
|
822
|
+
value?: number;
|
|
823
|
+
};
|
|
920
824
|
roughness: number;
|
|
921
825
|
opacity: number;
|
|
922
826
|
width: number;
|
|
923
827
|
height: number;
|
|
924
|
-
angle: import("
|
|
828
|
+
angle: import("@excalidraw/math").Radians;
|
|
925
829
|
seed: number;
|
|
926
830
|
version: number;
|
|
927
831
|
versionNonce: number;
|
|
928
832
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
929
833
|
isDeleted: boolean;
|
|
930
|
-
groupIds: readonly
|
|
834
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
931
835
|
frameId: string | null;
|
|
932
|
-
boundElements: readonly
|
|
933
|
-
id: string;
|
|
934
|
-
type: "text" | "arrow";
|
|
935
|
-
}>[] | null;
|
|
836
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
936
837
|
updated: number;
|
|
937
838
|
link: string | null;
|
|
938
839
|
locked: boolean;
|
|
939
|
-
customData?: Record<string, any
|
|
840
|
+
customData?: Record<string, any>;
|
|
940
841
|
}> & {
|
|
941
|
-
type: "
|
|
942
|
-
name: string | null;
|
|
842
|
+
type: "diamond";
|
|
943
843
|
} & {
|
|
944
844
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
945
845
|
}) | (Readonly<{
|
|
@@ -951,33 +851,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
951
851
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
952
852
|
strokeWidth: number;
|
|
953
853
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
954
|
-
roundness: {
|
|
854
|
+
roundness: null | {
|
|
955
855
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
956
|
-
value?: number
|
|
957
|
-
}
|
|
856
|
+
value?: number;
|
|
857
|
+
};
|
|
958
858
|
roughness: number;
|
|
959
859
|
opacity: number;
|
|
960
860
|
width: number;
|
|
961
861
|
height: number;
|
|
962
|
-
angle: import("
|
|
862
|
+
angle: import("@excalidraw/math").Radians;
|
|
963
863
|
seed: number;
|
|
964
864
|
version: number;
|
|
965
865
|
versionNonce: number;
|
|
966
866
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
967
867
|
isDeleted: boolean;
|
|
968
|
-
groupIds: readonly
|
|
868
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
969
869
|
frameId: string | null;
|
|
970
|
-
boundElements: readonly
|
|
971
|
-
id: string;
|
|
972
|
-
type: "text" | "arrow";
|
|
973
|
-
}>[] | null;
|
|
870
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
974
871
|
updated: number;
|
|
975
872
|
link: string | null;
|
|
976
873
|
locked: boolean;
|
|
977
|
-
customData?: Record<string, any
|
|
874
|
+
customData?: Record<string, any>;
|
|
978
875
|
}> & {
|
|
979
|
-
type: "
|
|
980
|
-
name: string | null;
|
|
876
|
+
type: "ellipse";
|
|
981
877
|
} & {
|
|
982
878
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
983
879
|
}) | (Readonly<{
|
|
@@ -989,30 +885,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
989
885
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
990
886
|
strokeWidth: number;
|
|
991
887
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
992
|
-
roundness: {
|
|
888
|
+
roundness: null | {
|
|
993
889
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
994
|
-
value?: number
|
|
995
|
-
}
|
|
890
|
+
value?: number;
|
|
891
|
+
};
|
|
996
892
|
roughness: number;
|
|
997
893
|
opacity: number;
|
|
998
894
|
width: number;
|
|
999
895
|
height: number;
|
|
1000
|
-
angle: import("
|
|
896
|
+
angle: import("@excalidraw/math").Radians;
|
|
1001
897
|
seed: number;
|
|
1002
898
|
version: number;
|
|
1003
899
|
versionNonce: number;
|
|
1004
900
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1005
901
|
isDeleted: boolean;
|
|
1006
|
-
groupIds: readonly
|
|
902
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1007
903
|
frameId: string | null;
|
|
1008
|
-
boundElements: readonly
|
|
1009
|
-
id: string;
|
|
1010
|
-
type: "text" | "arrow";
|
|
1011
|
-
}>[] | null;
|
|
904
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1012
905
|
updated: number;
|
|
1013
906
|
link: string | null;
|
|
1014
907
|
locked: boolean;
|
|
1015
|
-
customData?: Record<string, any
|
|
908
|
+
customData?: Record<string, any>;
|
|
1016
909
|
}> & Readonly<{
|
|
1017
910
|
type: "embeddable";
|
|
1018
911
|
}> & {
|
|
@@ -1026,36 +919,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1026
919
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1027
920
|
strokeWidth: number;
|
|
1028
921
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1029
|
-
roundness: {
|
|
922
|
+
roundness: null | {
|
|
1030
923
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1031
|
-
value?: number
|
|
1032
|
-
}
|
|
924
|
+
value?: number;
|
|
925
|
+
};
|
|
1033
926
|
roughness: number;
|
|
1034
927
|
opacity: number;
|
|
1035
928
|
width: number;
|
|
1036
929
|
height: number;
|
|
1037
|
-
angle: import("
|
|
930
|
+
angle: import("@excalidraw/math").Radians;
|
|
1038
931
|
seed: number;
|
|
1039
932
|
version: number;
|
|
1040
933
|
versionNonce: number;
|
|
1041
934
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1042
935
|
isDeleted: boolean;
|
|
1043
|
-
groupIds: readonly
|
|
936
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1044
937
|
frameId: string | null;
|
|
1045
|
-
boundElements: readonly
|
|
1046
|
-
id: string;
|
|
1047
|
-
type: "text" | "arrow";
|
|
1048
|
-
}>[] | null;
|
|
938
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1049
939
|
updated: number;
|
|
1050
940
|
link: string | null;
|
|
1051
941
|
locked: boolean;
|
|
1052
|
-
customData?: Record<string, any
|
|
942
|
+
customData?: Record<string, any>;
|
|
1053
943
|
}> & Readonly<{
|
|
1054
|
-
type: "
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
944
|
+
type: "iframe";
|
|
945
|
+
customData?: {
|
|
946
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
947
|
+
};
|
|
1059
948
|
}> & {
|
|
1060
949
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1061
950
|
}) | (Readonly<{
|
|
@@ -1067,35 +956,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1067
956
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1068
957
|
strokeWidth: number;
|
|
1069
958
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1070
|
-
roundness: {
|
|
959
|
+
roundness: null | {
|
|
1071
960
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1072
|
-
value?: number
|
|
1073
|
-
}
|
|
961
|
+
value?: number;
|
|
962
|
+
};
|
|
1074
963
|
roughness: number;
|
|
1075
964
|
opacity: number;
|
|
1076
965
|
width: number;
|
|
1077
966
|
height: number;
|
|
1078
|
-
angle: import("
|
|
967
|
+
angle: import("@excalidraw/math").Radians;
|
|
1079
968
|
seed: number;
|
|
1080
969
|
version: number;
|
|
1081
970
|
versionNonce: number;
|
|
1082
971
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1083
972
|
isDeleted: boolean;
|
|
1084
|
-
groupIds: readonly
|
|
973
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1085
974
|
frameId: string | null;
|
|
1086
|
-
boundElements: readonly
|
|
1087
|
-
id: string;
|
|
1088
|
-
type: "text" | "arrow";
|
|
1089
|
-
}>[] | null;
|
|
975
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1090
976
|
updated: number;
|
|
1091
977
|
link: string | null;
|
|
1092
978
|
locked: boolean;
|
|
1093
|
-
customData?: Record<string, any
|
|
979
|
+
customData?: Record<string, any>;
|
|
1094
980
|
}> & Readonly<{
|
|
1095
|
-
type: "
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
981
|
+
type: "image";
|
|
982
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
983
|
+
status: "pending" | "saved" | "error";
|
|
984
|
+
scale: [number, number];
|
|
985
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1099
986
|
}> & {
|
|
1100
987
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1101
988
|
}) | (Readonly<{
|
|
@@ -1107,32 +994,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1107
994
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1108
995
|
strokeWidth: number;
|
|
1109
996
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1110
|
-
roundness: {
|
|
997
|
+
roundness: null | {
|
|
1111
998
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1112
|
-
value?: number
|
|
1113
|
-
}
|
|
999
|
+
value?: number;
|
|
1000
|
+
};
|
|
1114
1001
|
roughness: number;
|
|
1115
1002
|
opacity: number;
|
|
1116
1003
|
width: number;
|
|
1117
1004
|
height: number;
|
|
1118
|
-
angle: import("
|
|
1005
|
+
angle: import("@excalidraw/math").Radians;
|
|
1119
1006
|
seed: number;
|
|
1120
1007
|
version: number;
|
|
1121
1008
|
versionNonce: number;
|
|
1122
1009
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1123
1010
|
isDeleted: boolean;
|
|
1124
|
-
groupIds: readonly
|
|
1011
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1125
1012
|
frameId: string | null;
|
|
1126
|
-
boundElements: readonly
|
|
1127
|
-
id: string;
|
|
1128
|
-
type: "text" | "arrow";
|
|
1129
|
-
}>[] | null;
|
|
1013
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1130
1014
|
updated: number;
|
|
1131
1015
|
link: string | null;
|
|
1132
1016
|
locked: boolean;
|
|
1133
|
-
customData?: Record<string, any
|
|
1017
|
+
customData?: Record<string, any>;
|
|
1134
1018
|
}> & {
|
|
1135
|
-
type: "
|
|
1019
|
+
type: "frame";
|
|
1020
|
+
name: string | null;
|
|
1136
1021
|
} & {
|
|
1137
1022
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1138
1023
|
}) | (Readonly<{
|
|
@@ -1144,32 +1029,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1144
1029
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1145
1030
|
strokeWidth: number;
|
|
1146
1031
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1147
|
-
roundness: {
|
|
1032
|
+
roundness: null | {
|
|
1148
1033
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1149
|
-
value?: number
|
|
1150
|
-
}
|
|
1034
|
+
value?: number;
|
|
1035
|
+
};
|
|
1151
1036
|
roughness: number;
|
|
1152
1037
|
opacity: number;
|
|
1153
1038
|
width: number;
|
|
1154
1039
|
height: number;
|
|
1155
|
-
angle: import("
|
|
1040
|
+
angle: import("@excalidraw/math").Radians;
|
|
1156
1041
|
seed: number;
|
|
1157
1042
|
version: number;
|
|
1158
1043
|
versionNonce: number;
|
|
1159
1044
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1160
1045
|
isDeleted: boolean;
|
|
1161
|
-
groupIds: readonly
|
|
1046
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1162
1047
|
frameId: string | null;
|
|
1163
|
-
boundElements: readonly
|
|
1164
|
-
id: string;
|
|
1165
|
-
type: "text" | "arrow";
|
|
1166
|
-
}>[] | null;
|
|
1048
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1167
1049
|
updated: number;
|
|
1168
1050
|
link: string | null;
|
|
1169
1051
|
locked: boolean;
|
|
1170
|
-
customData?: Record<string, any
|
|
1052
|
+
customData?: Record<string, any>;
|
|
1171
1053
|
}> & {
|
|
1172
|
-
type: "
|
|
1054
|
+
type: "magicframe";
|
|
1055
|
+
name: string | null;
|
|
1173
1056
|
} & {
|
|
1174
1057
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1175
1058
|
}) | (Readonly<{
|
|
@@ -1181,37 +1064,40 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1181
1064
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1182
1065
|
strokeWidth: number;
|
|
1183
1066
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1184
|
-
roundness: {
|
|
1067
|
+
roundness: null | {
|
|
1185
1068
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1186
|
-
value?: number
|
|
1187
|
-
}
|
|
1069
|
+
value?: number;
|
|
1070
|
+
};
|
|
1188
1071
|
roughness: number;
|
|
1189
1072
|
opacity: number;
|
|
1190
1073
|
width: number;
|
|
1191
1074
|
height: number;
|
|
1192
|
-
angle: import("
|
|
1075
|
+
angle: import("@excalidraw/math").Radians;
|
|
1193
1076
|
seed: number;
|
|
1194
1077
|
version: number;
|
|
1195
1078
|
versionNonce: number;
|
|
1196
1079
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1197
1080
|
isDeleted: boolean;
|
|
1198
|
-
groupIds: readonly
|
|
1081
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1199
1082
|
frameId: string | null;
|
|
1200
|
-
boundElements: readonly
|
|
1201
|
-
id: string;
|
|
1202
|
-
type: "text" | "arrow";
|
|
1203
|
-
}>[] | null;
|
|
1083
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1204
1084
|
updated: number;
|
|
1205
1085
|
link: string | null;
|
|
1206
1086
|
locked: boolean;
|
|
1207
|
-
customData?: Record<string, any
|
|
1087
|
+
customData?: Record<string, any>;
|
|
1208
1088
|
}> & Readonly<{
|
|
1209
|
-
type: "
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1089
|
+
type: "text";
|
|
1090
|
+
fontSize: number;
|
|
1091
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1092
|
+
text: string;
|
|
1093
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1094
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1095
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1096
|
+
originalText: string;
|
|
1097
|
+
autoResize: boolean;
|
|
1098
|
+
lineHeight: number & {
|
|
1099
|
+
_brand: "unitlessLineHeight";
|
|
1100
|
+
};
|
|
1215
1101
|
}> & {
|
|
1216
1102
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1217
1103
|
}) | (Readonly<{
|
|
@@ -1223,33 +1109,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1223
1109
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1224
1110
|
strokeWidth: number;
|
|
1225
1111
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1226
|
-
roundness: {
|
|
1112
|
+
roundness: null | {
|
|
1227
1113
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1228
|
-
value?: number
|
|
1229
|
-
}
|
|
1114
|
+
value?: number;
|
|
1115
|
+
};
|
|
1230
1116
|
roughness: number;
|
|
1231
1117
|
opacity: number;
|
|
1232
1118
|
width: number;
|
|
1233
1119
|
height: number;
|
|
1234
|
-
angle: import("
|
|
1120
|
+
angle: import("@excalidraw/math").Radians;
|
|
1235
1121
|
seed: number;
|
|
1236
1122
|
version: number;
|
|
1237
1123
|
versionNonce: number;
|
|
1238
1124
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1239
1125
|
isDeleted: boolean;
|
|
1240
|
-
groupIds: readonly
|
|
1126
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1241
1127
|
frameId: string | null;
|
|
1242
|
-
boundElements: readonly
|
|
1243
|
-
id: string;
|
|
1244
|
-
type: "text" | "arrow";
|
|
1245
|
-
}>[] | null;
|
|
1128
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1246
1129
|
updated: number;
|
|
1247
1130
|
link: string | null;
|
|
1248
1131
|
locked: boolean;
|
|
1249
|
-
customData?: Record<string, any
|
|
1132
|
+
customData?: Record<string, any>;
|
|
1250
1133
|
}> & Readonly<{
|
|
1251
1134
|
type: "freedraw";
|
|
1252
|
-
points: readonly import("
|
|
1135
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1253
1136
|
pressures: readonly number[];
|
|
1254
1137
|
simulatePressure: boolean;
|
|
1255
1138
|
}> & {
|