@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
|
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,10 +710,10 @@ 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;
|
|
@@ -805,16 +724,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
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: "arrow" | "text";
|
|
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
735
|
type: "line" | "arrow";
|
|
820
736
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
@@ -833,10 +749,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
833
749
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
834
750
|
strokeWidth: number;
|
|
835
751
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
836
|
-
roundness: {
|
|
752
|
+
roundness: null | {
|
|
837
753
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
838
|
-
value?: number
|
|
839
|
-
}
|
|
754
|
+
value?: number;
|
|
755
|
+
};
|
|
840
756
|
roughness: number;
|
|
841
757
|
opacity: number;
|
|
842
758
|
width: number;
|
|
@@ -847,16 +763,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
847
763
|
versionNonce: number;
|
|
848
764
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
849
765
|
isDeleted: boolean;
|
|
850
|
-
groupIds: readonly
|
|
766
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
851
767
|
frameId: string | null;
|
|
852
|
-
boundElements: readonly
|
|
853
|
-
id: string;
|
|
854
|
-
type: "arrow" | "text";
|
|
855
|
-
}>[] | null;
|
|
768
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
856
769
|
updated: number;
|
|
857
770
|
link: string | null;
|
|
858
771
|
locked: boolean;
|
|
859
|
-
customData?: Record<string, any
|
|
772
|
+
customData?: Record<string, any>;
|
|
860
773
|
}> & {
|
|
861
774
|
type: "selection";
|
|
862
775
|
} & {
|
|
@@ -870,10 +783,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
870
783
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
871
784
|
strokeWidth: number;
|
|
872
785
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
873
|
-
roundness: {
|
|
786
|
+
roundness: null | {
|
|
874
787
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
875
|
-
value?: number
|
|
876
|
-
}
|
|
788
|
+
value?: number;
|
|
789
|
+
};
|
|
877
790
|
roughness: number;
|
|
878
791
|
opacity: number;
|
|
879
792
|
width: number;
|
|
@@ -884,16 +797,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
884
797
|
versionNonce: number;
|
|
885
798
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
886
799
|
isDeleted: boolean;
|
|
887
|
-
groupIds: readonly
|
|
800
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
888
801
|
frameId: string | null;
|
|
889
|
-
boundElements: readonly
|
|
890
|
-
id: string;
|
|
891
|
-
type: "arrow" | "text";
|
|
892
|
-
}>[] | null;
|
|
802
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
893
803
|
updated: number;
|
|
894
804
|
link: string | null;
|
|
895
805
|
locked: boolean;
|
|
896
|
-
customData?: Record<string, any
|
|
806
|
+
customData?: Record<string, any>;
|
|
897
807
|
}> & {
|
|
898
808
|
type: "rectangle";
|
|
899
809
|
} & {
|
|
@@ -907,10 +817,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
907
817
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
908
818
|
strokeWidth: number;
|
|
909
819
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
910
|
-
roundness: {
|
|
820
|
+
roundness: null | {
|
|
911
821
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
912
|
-
value?: number
|
|
913
|
-
}
|
|
822
|
+
value?: number;
|
|
823
|
+
};
|
|
914
824
|
roughness: number;
|
|
915
825
|
opacity: number;
|
|
916
826
|
width: number;
|
|
@@ -921,16 +831,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
921
831
|
versionNonce: number;
|
|
922
832
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
923
833
|
isDeleted: boolean;
|
|
924
|
-
groupIds: readonly
|
|
834
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
925
835
|
frameId: string | null;
|
|
926
|
-
boundElements: readonly
|
|
927
|
-
id: string;
|
|
928
|
-
type: "arrow" | "text";
|
|
929
|
-
}>[] | null;
|
|
836
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
930
837
|
updated: number;
|
|
931
838
|
link: string | null;
|
|
932
839
|
locked: boolean;
|
|
933
|
-
customData?: Record<string, any
|
|
840
|
+
customData?: Record<string, any>;
|
|
934
841
|
}> & {
|
|
935
842
|
type: "diamond";
|
|
936
843
|
} & {
|
|
@@ -944,10 +851,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
944
851
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
945
852
|
strokeWidth: number;
|
|
946
853
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
947
|
-
roundness: {
|
|
854
|
+
roundness: null | {
|
|
948
855
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
949
|
-
value?: number
|
|
950
|
-
}
|
|
856
|
+
value?: number;
|
|
857
|
+
};
|
|
951
858
|
roughness: number;
|
|
952
859
|
opacity: number;
|
|
953
860
|
width: number;
|
|
@@ -958,16 +865,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
958
865
|
versionNonce: number;
|
|
959
866
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
960
867
|
isDeleted: boolean;
|
|
961
|
-
groupIds: readonly
|
|
868
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
962
869
|
frameId: string | null;
|
|
963
|
-
boundElements: readonly
|
|
964
|
-
id: string;
|
|
965
|
-
type: "arrow" | "text";
|
|
966
|
-
}>[] | null;
|
|
870
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
967
871
|
updated: number;
|
|
968
872
|
link: string | null;
|
|
969
873
|
locked: boolean;
|
|
970
|
-
customData?: Record<string, any
|
|
874
|
+
customData?: Record<string, any>;
|
|
971
875
|
}> & {
|
|
972
876
|
type: "ellipse";
|
|
973
877
|
} & {
|
|
@@ -981,10 +885,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
981
885
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
982
886
|
strokeWidth: number;
|
|
983
887
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
984
|
-
roundness: {
|
|
888
|
+
roundness: null | {
|
|
985
889
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
986
|
-
value?: number
|
|
987
|
-
}
|
|
890
|
+
value?: number;
|
|
891
|
+
};
|
|
988
892
|
roughness: number;
|
|
989
893
|
opacity: number;
|
|
990
894
|
width: number;
|
|
@@ -995,16 +899,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
995
899
|
versionNonce: number;
|
|
996
900
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
997
901
|
isDeleted: boolean;
|
|
998
|
-
groupIds: readonly
|
|
902
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
999
903
|
frameId: string | null;
|
|
1000
|
-
boundElements: readonly
|
|
1001
|
-
id: string;
|
|
1002
|
-
type: "arrow" | "text";
|
|
1003
|
-
}>[] | null;
|
|
904
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1004
905
|
updated: number;
|
|
1005
906
|
link: string | null;
|
|
1006
907
|
locked: boolean;
|
|
1007
|
-
customData?: Record<string, any
|
|
908
|
+
customData?: Record<string, any>;
|
|
1008
909
|
}> & Readonly<{
|
|
1009
910
|
type: "embeddable";
|
|
1010
911
|
}> & {
|
|
@@ -1018,10 +919,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1018
919
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1019
920
|
strokeWidth: number;
|
|
1020
921
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1021
|
-
roundness: {
|
|
922
|
+
roundness: null | {
|
|
1022
923
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1023
|
-
value?: number
|
|
1024
|
-
}
|
|
924
|
+
value?: number;
|
|
925
|
+
};
|
|
1025
926
|
roughness: number;
|
|
1026
927
|
opacity: number;
|
|
1027
928
|
width: number;
|
|
@@ -1032,21 +933,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1032
933
|
versionNonce: number;
|
|
1033
934
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1034
935
|
isDeleted: boolean;
|
|
1035
|
-
groupIds: readonly
|
|
936
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1036
937
|
frameId: string | null;
|
|
1037
|
-
boundElements: readonly
|
|
1038
|
-
id: string;
|
|
1039
|
-
type: "arrow" | "text";
|
|
1040
|
-
}>[] | null;
|
|
938
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1041
939
|
updated: number;
|
|
1042
940
|
link: string | null;
|
|
1043
941
|
locked: boolean;
|
|
1044
|
-
customData?: Record<string, any
|
|
942
|
+
customData?: Record<string, any>;
|
|
1045
943
|
}> & Readonly<{
|
|
1046
944
|
type: "iframe";
|
|
1047
945
|
customData?: {
|
|
1048
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
1049
|
-
}
|
|
946
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
947
|
+
};
|
|
1050
948
|
}> & {
|
|
1051
949
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1052
950
|
}) | (Readonly<{
|
|
@@ -1058,10 +956,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1058
956
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1059
957
|
strokeWidth: number;
|
|
1060
958
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1061
|
-
roundness: {
|
|
959
|
+
roundness: null | {
|
|
1062
960
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1063
|
-
value?: number
|
|
1064
|
-
}
|
|
961
|
+
value?: number;
|
|
962
|
+
};
|
|
1065
963
|
roughness: number;
|
|
1066
964
|
opacity: number;
|
|
1067
965
|
width: number;
|
|
@@ -1072,20 +970,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1072
970
|
versionNonce: number;
|
|
1073
971
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1074
972
|
isDeleted: boolean;
|
|
1075
|
-
groupIds: readonly
|
|
973
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1076
974
|
frameId: string | null;
|
|
1077
|
-
boundElements: readonly
|
|
1078
|
-
id: string;
|
|
1079
|
-
type: "arrow" | "text";
|
|
1080
|
-
}>[] | null;
|
|
975
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1081
976
|
updated: number;
|
|
1082
977
|
link: string | null;
|
|
1083
978
|
locked: boolean;
|
|
1084
|
-
customData?: Record<string, any
|
|
979
|
+
customData?: Record<string, any>;
|
|
1085
980
|
}> & Readonly<{
|
|
1086
981
|
type: "image";
|
|
1087
982
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1088
|
-
status: "pending" | "
|
|
983
|
+
status: "pending" | "saved" | "error";
|
|
1089
984
|
scale: [number, number];
|
|
1090
985
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1091
986
|
}> & {
|
|
@@ -1099,10 +994,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1099
994
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1100
995
|
strokeWidth: number;
|
|
1101
996
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1102
|
-
roundness: {
|
|
997
|
+
roundness: null | {
|
|
1103
998
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1104
|
-
value?: number
|
|
1105
|
-
}
|
|
999
|
+
value?: number;
|
|
1000
|
+
};
|
|
1106
1001
|
roughness: number;
|
|
1107
1002
|
opacity: number;
|
|
1108
1003
|
width: number;
|
|
@@ -1113,16 +1008,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1113
1008
|
versionNonce: number;
|
|
1114
1009
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1115
1010
|
isDeleted: boolean;
|
|
1116
|
-
groupIds: readonly
|
|
1011
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1117
1012
|
frameId: string | null;
|
|
1118
|
-
boundElements: readonly
|
|
1119
|
-
id: string;
|
|
1120
|
-
type: "arrow" | "text";
|
|
1121
|
-
}>[] | null;
|
|
1013
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1122
1014
|
updated: number;
|
|
1123
1015
|
link: string | null;
|
|
1124
1016
|
locked: boolean;
|
|
1125
|
-
customData?: Record<string, any
|
|
1017
|
+
customData?: Record<string, any>;
|
|
1126
1018
|
}> & {
|
|
1127
1019
|
type: "frame";
|
|
1128
1020
|
name: string | null;
|
|
@@ -1137,10 +1029,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1137
1029
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1138
1030
|
strokeWidth: number;
|
|
1139
1031
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1140
|
-
roundness: {
|
|
1032
|
+
roundness: null | {
|
|
1141
1033
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1142
|
-
value?: number
|
|
1143
|
-
}
|
|
1034
|
+
value?: number;
|
|
1035
|
+
};
|
|
1144
1036
|
roughness: number;
|
|
1145
1037
|
opacity: number;
|
|
1146
1038
|
width: number;
|
|
@@ -1151,16 +1043,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1151
1043
|
versionNonce: number;
|
|
1152
1044
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1153
1045
|
isDeleted: boolean;
|
|
1154
|
-
groupIds: readonly
|
|
1046
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1155
1047
|
frameId: string | null;
|
|
1156
|
-
boundElements: readonly
|
|
1157
|
-
id: string;
|
|
1158
|
-
type: "arrow" | "text";
|
|
1159
|
-
}>[] | null;
|
|
1048
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1160
1049
|
updated: number;
|
|
1161
1050
|
link: string | null;
|
|
1162
1051
|
locked: boolean;
|
|
1163
|
-
customData?: Record<string, any
|
|
1052
|
+
customData?: Record<string, any>;
|
|
1164
1053
|
}> & {
|
|
1165
1054
|
type: "magicframe";
|
|
1166
1055
|
name: string | null;
|
|
@@ -1175,10 +1064,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1175
1064
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1176
1065
|
strokeWidth: number;
|
|
1177
1066
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1178
|
-
roundness: {
|
|
1067
|
+
roundness: null | {
|
|
1179
1068
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1180
|
-
value?: number
|
|
1181
|
-
}
|
|
1069
|
+
value?: number;
|
|
1070
|
+
};
|
|
1182
1071
|
roughness: number;
|
|
1183
1072
|
opacity: number;
|
|
1184
1073
|
width: number;
|
|
@@ -1189,24 +1078,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1189
1078
|
versionNonce: number;
|
|
1190
1079
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1191
1080
|
isDeleted: boolean;
|
|
1192
|
-
groupIds: readonly
|
|
1081
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1193
1082
|
frameId: string | null;
|
|
1194
|
-
boundElements: readonly
|
|
1195
|
-
id: string;
|
|
1196
|
-
type: "arrow" | "text";
|
|
1197
|
-
}>[] | null;
|
|
1083
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1198
1084
|
updated: number;
|
|
1199
1085
|
link: string | null;
|
|
1200
1086
|
locked: boolean;
|
|
1201
|
-
customData?: Record<string, any
|
|
1087
|
+
customData?: Record<string, any>;
|
|
1202
1088
|
}> & Readonly<{
|
|
1203
1089
|
type: "text";
|
|
1204
1090
|
fontSize: number;
|
|
1205
|
-
fontFamily:
|
|
1091
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1206
1092
|
text: string;
|
|
1207
|
-
textAlign:
|
|
1208
|
-
verticalAlign:
|
|
1209
|
-
containerId:
|
|
1093
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1094
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1095
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1210
1096
|
originalText: string;
|
|
1211
1097
|
autoResize: boolean;
|
|
1212
1098
|
lineHeight: number & {
|
|
@@ -1223,10 +1109,10 @@ 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;
|
|
@@ -1237,16 +1123,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
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: "arrow" | "text";
|
|
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
1135
|
points: readonly import("@excalidraw/math").LocalPoint[];
|