@excalidraw/element 0.18.0-5fffc47 → 0.18.0-60b2758
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +4410 -2226
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +18 -18
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +19 -27
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +50 -39
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +66 -46
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +5 -1
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +3 -3
- package/dist/types/element/src/linearElementEditor.d.ts +18 -20
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +8 -12
- package/dist/types/element/src/utils.d.ts +8 -3
- package/dist/types/element/src/visualdebug.d.ts +59 -0
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +99 -160
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +71 -112
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +424 -858
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +90 -892
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +118 -183
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +26 -53
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +70 -111
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +35 -56
- package/dist/types/excalidraw/actions/actionExport.d.ts +153 -1166
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +235 -354
- package/dist/types/excalidraw/actions/actionGroup.d.ts +74 -123
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +143 -202
- package/dist/types/excalidraw/actions/actionLink.d.ts +33 -54
- package/dist/types/excalidraw/actions/actionMenu.d.ts +24 -51
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +131 -2576
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -62
- package/dist/types/excalidraw/actions/actionStyles.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +23 -50
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -55
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -56
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +13 -13
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +11 -35
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +68 -60
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +27 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/shapes.d.ts +74 -1
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +319 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +158 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +8 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +34 -29
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/point.d.ts +6 -1
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +9 -3
- 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: {
|
|
@@ -7,7 +6,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
7
6
|
trackEvent: {
|
|
8
7
|
category: "canvas";
|
|
9
8
|
};
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
10
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
11
|
appState: {
|
|
13
12
|
selectedElementIds: Record<string, true>;
|
|
@@ -18,10 +17,10 @@ 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;
|
|
@@ -29,7 +28,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
29
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
29
|
isBindingEnabled: boolean;
|
|
31
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
|
|
31
|
+
suggestedBinding: {
|
|
32
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
33
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
34
|
+
} | null;
|
|
33
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
36
|
frameRendering: {
|
|
35
37
|
enabled: boolean;
|
|
@@ -57,19 +59,19 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
57
59
|
exportScale: number;
|
|
58
60
|
currentItemStrokeColor: string;
|
|
59
61
|
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle:
|
|
62
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
61
63
|
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle:
|
|
64
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
63
65
|
currentItemRoughness: number;
|
|
64
66
|
currentItemOpacity: number;
|
|
65
|
-
currentItemFontFamily:
|
|
67
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
66
68
|
currentItemFontSize: number;
|
|
67
|
-
currentItemTextAlign:
|
|
69
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
68
70
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
71
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
-
currentHoveredFontFamily:
|
|
72
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
71
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
|
-
currentItemArrowType: "
|
|
74
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
73
75
|
viewBackgroundColor: string;
|
|
74
76
|
scrollX: number;
|
|
75
77
|
scrollY: number;
|
|
@@ -78,26 +80,30 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
80
|
name: string | null;
|
|
79
81
|
isResizing: boolean;
|
|
80
82
|
isRotating: boolean;
|
|
81
|
-
zoom:
|
|
82
|
-
value: import("../types").NormalizedZoomValue;
|
|
83
|
-
}>;
|
|
83
|
+
zoom: import("../types").Zoom;
|
|
84
84
|
openMenu: "canvas" | null;
|
|
85
|
-
openPopup: "
|
|
85
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
86
86
|
openSidebar: {
|
|
87
|
-
name:
|
|
88
|
-
tab?:
|
|
87
|
+
name: import("../types").SidebarName;
|
|
88
|
+
tab?: import("../types").SidebarTabName;
|
|
89
89
|
} | null;
|
|
90
|
-
openDialog: {
|
|
90
|
+
openDialog: null | {
|
|
91
91
|
name: "imageExport" | "help" | "jsonExport";
|
|
92
92
|
} | {
|
|
93
93
|
name: "ttd";
|
|
94
|
-
tab: "
|
|
94
|
+
tab: "text-to-diagram" | "mermaid";
|
|
95
95
|
} | {
|
|
96
96
|
name: "commandPalette";
|
|
97
|
+
} | {
|
|
98
|
+
name: "settings";
|
|
97
99
|
} | {
|
|
98
100
|
name: "elementLinkSelector";
|
|
99
|
-
sourceElementId:
|
|
100
|
-
} |
|
|
101
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
102
|
+
} | {
|
|
103
|
+
name: "charts";
|
|
104
|
+
data: import("../charts").Spreadsheet;
|
|
105
|
+
rawText: string;
|
|
106
|
+
};
|
|
101
107
|
defaultSidebarDockedPreference: boolean;
|
|
102
108
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
103
109
|
hoveredElementIds: Readonly<{
|
|
@@ -110,8 +116,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
110
116
|
shouldCacheIgnoreZoom: boolean;
|
|
111
117
|
toast: {
|
|
112
118
|
message: string;
|
|
113
|
-
closable?: boolean
|
|
114
|
-
duration?: number
|
|
119
|
+
closable?: boolean;
|
|
120
|
+
duration?: number;
|
|
115
121
|
} | null;
|
|
116
122
|
zenModeEnabled: boolean;
|
|
117
123
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -122,45 +128,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
122
128
|
selectedGroupIds: {
|
|
123
129
|
[groupId: string]: boolean;
|
|
124
130
|
};
|
|
125
|
-
editingGroupId:
|
|
131
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
126
132
|
width: number;
|
|
127
133
|
height: number;
|
|
128
134
|
offsetTop: number;
|
|
129
135
|
offsetLeft: number;
|
|
130
136
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
131
|
-
collaborators: Map<import("../types").SocketId,
|
|
132
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
133
|
-
button?: "up" | "down" | undefined;
|
|
134
|
-
selectedElementIds?: Readonly<{
|
|
135
|
-
[id: string]: true;
|
|
136
|
-
}> | undefined;
|
|
137
|
-
username?: string | null | undefined;
|
|
138
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
139
|
-
color?: {
|
|
140
|
-
background: string;
|
|
141
|
-
stroke: string;
|
|
142
|
-
} | undefined;
|
|
143
|
-
avatarUrl?: string | undefined;
|
|
144
|
-
id?: string | undefined;
|
|
145
|
-
socketId?: import("../types").SocketId | undefined;
|
|
146
|
-
isCurrentUser?: boolean | undefined;
|
|
147
|
-
isInCall?: boolean | undefined;
|
|
148
|
-
isSpeaking?: boolean | undefined;
|
|
149
|
-
isMuted?: boolean | undefined;
|
|
150
|
-
}>>;
|
|
137
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
151
138
|
stats: {
|
|
152
139
|
open: boolean;
|
|
153
140
|
panels: number;
|
|
154
141
|
};
|
|
155
|
-
|
|
156
|
-
pasteDialog: {
|
|
157
|
-
shown: false;
|
|
158
|
-
data: null;
|
|
159
|
-
} | {
|
|
160
|
-
shown: true;
|
|
161
|
-
data: import("../charts").Spreadsheet;
|
|
162
|
-
};
|
|
163
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
142
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
164
143
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
165
144
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
145
|
originSnapOffset: {
|
|
@@ -171,16 +150,16 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
171
150
|
userToFollow: import("../types").UserToFollow | null;
|
|
172
151
|
followedBy: Set<import("../types").SocketId>;
|
|
173
152
|
isCropping: boolean;
|
|
174
|
-
croppingElementId:
|
|
153
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
175
154
|
searchMatches: Readonly<{
|
|
176
|
-
focusedId:
|
|
155
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
177
156
|
matches: readonly import("../types").SearchMatch[];
|
|
178
157
|
}> | null;
|
|
179
158
|
activeLockedId: string | null;
|
|
180
159
|
lockedMultiSelections: {
|
|
181
160
|
[groupId: string]: true;
|
|
182
161
|
};
|
|
183
|
-
|
|
162
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
163
|
};
|
|
185
164
|
captureUpdate: "IMMEDIATELY";
|
|
186
165
|
} | {
|
|
@@ -198,7 +177,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
198
177
|
trackEvent: {
|
|
199
178
|
category: "history";
|
|
200
179
|
};
|
|
201
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
180
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
202
181
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
203
182
|
appState: {
|
|
204
183
|
selectedElementIds: {
|
|
@@ -211,10 +190,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
211
190
|
} | null;
|
|
212
191
|
showWelcomeScreen: boolean;
|
|
213
192
|
isLoading: boolean;
|
|
214
|
-
errorMessage:
|
|
193
|
+
errorMessage: React.ReactNode;
|
|
215
194
|
activeEmbeddable: {
|
|
216
195
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
217
|
-
state: "
|
|
196
|
+
state: "hover" | "active";
|
|
218
197
|
} | null;
|
|
219
198
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
220
199
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -222,7 +201,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
222
201
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
202
|
isBindingEnabled: boolean;
|
|
224
203
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
225
|
-
|
|
204
|
+
suggestedBinding: {
|
|
205
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
206
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
207
|
+
} | null;
|
|
226
208
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
227
209
|
frameRendering: {
|
|
228
210
|
enabled: boolean;
|
|
@@ -250,19 +232,19 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
250
232
|
exportScale: number;
|
|
251
233
|
currentItemStrokeColor: string;
|
|
252
234
|
currentItemBackgroundColor: string;
|
|
253
|
-
currentItemFillStyle:
|
|
235
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
254
236
|
currentItemStrokeWidth: number;
|
|
255
|
-
currentItemStrokeStyle:
|
|
237
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
256
238
|
currentItemRoughness: number;
|
|
257
239
|
currentItemOpacity: number;
|
|
258
|
-
currentItemFontFamily:
|
|
240
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
259
241
|
currentItemFontSize: number;
|
|
260
|
-
currentItemTextAlign:
|
|
242
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
261
243
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
262
244
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
263
|
-
currentHoveredFontFamily:
|
|
245
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
264
246
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
265
|
-
currentItemArrowType: "
|
|
247
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
266
248
|
viewBackgroundColor: string;
|
|
267
249
|
scrollX: number;
|
|
268
250
|
scrollY: number;
|
|
@@ -271,26 +253,30 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
271
253
|
name: string | null;
|
|
272
254
|
isResizing: boolean;
|
|
273
255
|
isRotating: boolean;
|
|
274
|
-
zoom:
|
|
275
|
-
value: import("../types").NormalizedZoomValue;
|
|
276
|
-
}>;
|
|
256
|
+
zoom: import("../types").Zoom;
|
|
277
257
|
openMenu: "canvas" | null;
|
|
278
|
-
openPopup: "
|
|
258
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
279
259
|
openSidebar: {
|
|
280
|
-
name:
|
|
281
|
-
tab?:
|
|
260
|
+
name: import("../types").SidebarName;
|
|
261
|
+
tab?: import("../types").SidebarTabName;
|
|
282
262
|
} | null;
|
|
283
|
-
openDialog: {
|
|
263
|
+
openDialog: null | {
|
|
284
264
|
name: "imageExport" | "help" | "jsonExport";
|
|
285
265
|
} | {
|
|
286
266
|
name: "ttd";
|
|
287
|
-
tab: "
|
|
267
|
+
tab: "text-to-diagram" | "mermaid";
|
|
288
268
|
} | {
|
|
289
269
|
name: "commandPalette";
|
|
270
|
+
} | {
|
|
271
|
+
name: "settings";
|
|
290
272
|
} | {
|
|
291
273
|
name: "elementLinkSelector";
|
|
292
|
-
sourceElementId:
|
|
293
|
-
} |
|
|
274
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
275
|
+
} | {
|
|
276
|
+
name: "charts";
|
|
277
|
+
data: import("../charts").Spreadsheet;
|
|
278
|
+
rawText: string;
|
|
279
|
+
};
|
|
294
280
|
defaultSidebarDockedPreference: boolean;
|
|
295
281
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
296
282
|
hoveredElementIds: Readonly<{
|
|
@@ -303,8 +289,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
303
289
|
shouldCacheIgnoreZoom: boolean;
|
|
304
290
|
toast: {
|
|
305
291
|
message: string;
|
|
306
|
-
closable?: boolean
|
|
307
|
-
duration?: number
|
|
292
|
+
closable?: boolean;
|
|
293
|
+
duration?: number;
|
|
308
294
|
} | null;
|
|
309
295
|
zenModeEnabled: boolean;
|
|
310
296
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -315,45 +301,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
315
301
|
selectedGroupIds: {
|
|
316
302
|
[groupId: string]: boolean;
|
|
317
303
|
};
|
|
318
|
-
editingGroupId:
|
|
304
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
319
305
|
width: number;
|
|
320
306
|
height: number;
|
|
321
307
|
offsetTop: number;
|
|
322
308
|
offsetLeft: number;
|
|
323
309
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
324
|
-
collaborators: Map<import("../types").SocketId,
|
|
325
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
326
|
-
button?: "up" | "down" | undefined;
|
|
327
|
-
selectedElementIds?: Readonly<{
|
|
328
|
-
[id: string]: true;
|
|
329
|
-
}> | undefined;
|
|
330
|
-
username?: string | null | undefined;
|
|
331
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
332
|
-
color?: {
|
|
333
|
-
background: string;
|
|
334
|
-
stroke: string;
|
|
335
|
-
} | undefined;
|
|
336
|
-
avatarUrl?: string | undefined;
|
|
337
|
-
id?: string | undefined;
|
|
338
|
-
socketId?: import("../types").SocketId | undefined;
|
|
339
|
-
isCurrentUser?: boolean | undefined;
|
|
340
|
-
isInCall?: boolean | undefined;
|
|
341
|
-
isSpeaking?: boolean | undefined;
|
|
342
|
-
isMuted?: boolean | undefined;
|
|
343
|
-
}>>;
|
|
310
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
344
311
|
stats: {
|
|
345
312
|
open: boolean;
|
|
346
313
|
panels: number;
|
|
347
314
|
};
|
|
348
|
-
|
|
349
|
-
pasteDialog: {
|
|
350
|
-
shown: false;
|
|
351
|
-
data: null;
|
|
352
|
-
} | {
|
|
353
|
-
shown: true;
|
|
354
|
-
data: import("../charts").Spreadsheet;
|
|
355
|
-
};
|
|
356
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
315
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
357
316
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
358
317
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
359
318
|
originSnapOffset: {
|
|
@@ -364,16 +323,16 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
364
323
|
userToFollow: import("../types").UserToFollow | null;
|
|
365
324
|
followedBy: Set<import("../types").SocketId>;
|
|
366
325
|
isCropping: boolean;
|
|
367
|
-
croppingElementId:
|
|
326
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
368
327
|
searchMatches: Readonly<{
|
|
369
|
-
focusedId:
|
|
328
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
370
329
|
matches: readonly import("../types").SearchMatch[];
|
|
371
330
|
}> | null;
|
|
372
331
|
activeLockedId: string | null;
|
|
373
332
|
lockedMultiSelections: {
|
|
374
333
|
[groupId: string]: true;
|
|
375
334
|
};
|
|
376
|
-
|
|
335
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
377
336
|
};
|
|
378
337
|
captureUpdate: "IMMEDIATELY";
|
|
379
338
|
} | {
|
|
@@ -408,10 +367,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
408
367
|
} | null;
|
|
409
368
|
showWelcomeScreen: boolean;
|
|
410
369
|
isLoading: boolean;
|
|
411
|
-
errorMessage:
|
|
370
|
+
errorMessage: React.ReactNode;
|
|
412
371
|
activeEmbeddable: {
|
|
413
372
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
414
|
-
state: "
|
|
373
|
+
state: "hover" | "active";
|
|
415
374
|
} | null;
|
|
416
375
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
417
376
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -419,7 +378,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
419
378
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
420
379
|
isBindingEnabled: boolean;
|
|
421
380
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
422
|
-
|
|
381
|
+
suggestedBinding: {
|
|
382
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
383
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
384
|
+
} | null;
|
|
423
385
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
424
386
|
editingFrame: string | null;
|
|
425
387
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
@@ -441,19 +403,19 @@ export declare const actionupdateFrameRendering: {
|
|
|
441
403
|
exportScale: number;
|
|
442
404
|
currentItemStrokeColor: string;
|
|
443
405
|
currentItemBackgroundColor: string;
|
|
444
|
-
currentItemFillStyle:
|
|
406
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
445
407
|
currentItemStrokeWidth: number;
|
|
446
|
-
currentItemStrokeStyle:
|
|
408
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
447
409
|
currentItemRoughness: number;
|
|
448
410
|
currentItemOpacity: number;
|
|
449
|
-
currentItemFontFamily:
|
|
411
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
450
412
|
currentItemFontSize: number;
|
|
451
|
-
currentItemTextAlign:
|
|
413
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
452
414
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
453
415
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
454
|
-
currentHoveredFontFamily:
|
|
416
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
455
417
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
456
|
-
currentItemArrowType: "
|
|
418
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
457
419
|
viewBackgroundColor: string;
|
|
458
420
|
scrollX: number;
|
|
459
421
|
scrollY: number;
|
|
@@ -462,26 +424,30 @@ export declare const actionupdateFrameRendering: {
|
|
|
462
424
|
name: string | null;
|
|
463
425
|
isResizing: boolean;
|
|
464
426
|
isRotating: boolean;
|
|
465
|
-
zoom:
|
|
466
|
-
value: import("../types").NormalizedZoomValue;
|
|
467
|
-
}>;
|
|
427
|
+
zoom: import("../types").Zoom;
|
|
468
428
|
openMenu: "canvas" | null;
|
|
469
|
-
openPopup: "
|
|
429
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
470
430
|
openSidebar: {
|
|
471
|
-
name:
|
|
472
|
-
tab?:
|
|
431
|
+
name: import("../types").SidebarName;
|
|
432
|
+
tab?: import("../types").SidebarTabName;
|
|
473
433
|
} | null;
|
|
474
|
-
openDialog: {
|
|
434
|
+
openDialog: null | {
|
|
475
435
|
name: "imageExport" | "help" | "jsonExport";
|
|
476
436
|
} | {
|
|
477
437
|
name: "ttd";
|
|
478
|
-
tab: "
|
|
438
|
+
tab: "text-to-diagram" | "mermaid";
|
|
479
439
|
} | {
|
|
480
440
|
name: "commandPalette";
|
|
441
|
+
} | {
|
|
442
|
+
name: "settings";
|
|
481
443
|
} | {
|
|
482
444
|
name: "elementLinkSelector";
|
|
483
|
-
sourceElementId:
|
|
484
|
-
} |
|
|
445
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
446
|
+
} | {
|
|
447
|
+
name: "charts";
|
|
448
|
+
data: import("../charts").Spreadsheet;
|
|
449
|
+
rawText: string;
|
|
450
|
+
};
|
|
485
451
|
defaultSidebarDockedPreference: boolean;
|
|
486
452
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
487
453
|
selectedElementIds: Readonly<{
|
|
@@ -497,8 +463,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
497
463
|
shouldCacheIgnoreZoom: boolean;
|
|
498
464
|
toast: {
|
|
499
465
|
message: string;
|
|
500
|
-
closable?: boolean
|
|
501
|
-
duration?: number
|
|
466
|
+
closable?: boolean;
|
|
467
|
+
duration?: number;
|
|
502
468
|
} | null;
|
|
503
469
|
zenModeEnabled: boolean;
|
|
504
470
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -509,45 +475,18 @@ export declare const actionupdateFrameRendering: {
|
|
|
509
475
|
selectedGroupIds: {
|
|
510
476
|
[groupId: string]: boolean;
|
|
511
477
|
};
|
|
512
|
-
editingGroupId:
|
|
478
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
513
479
|
width: number;
|
|
514
480
|
height: number;
|
|
515
481
|
offsetTop: number;
|
|
516
482
|
offsetLeft: number;
|
|
517
483
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
518
|
-
collaborators: Map<import("../types").SocketId,
|
|
519
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
520
|
-
button?: "up" | "down" | undefined;
|
|
521
|
-
selectedElementIds?: Readonly<{
|
|
522
|
-
[id: string]: true;
|
|
523
|
-
}> | undefined;
|
|
524
|
-
username?: string | null | undefined;
|
|
525
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
526
|
-
color?: {
|
|
527
|
-
background: string;
|
|
528
|
-
stroke: string;
|
|
529
|
-
} | undefined;
|
|
530
|
-
avatarUrl?: string | undefined;
|
|
531
|
-
id?: string | undefined;
|
|
532
|
-
socketId?: import("../types").SocketId | undefined;
|
|
533
|
-
isCurrentUser?: boolean | undefined;
|
|
534
|
-
isInCall?: boolean | undefined;
|
|
535
|
-
isSpeaking?: boolean | undefined;
|
|
536
|
-
isMuted?: boolean | undefined;
|
|
537
|
-
}>>;
|
|
484
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
538
485
|
stats: {
|
|
539
486
|
open: boolean;
|
|
540
487
|
panels: number;
|
|
541
488
|
};
|
|
542
|
-
|
|
543
|
-
pasteDialog: {
|
|
544
|
-
shown: false;
|
|
545
|
-
data: null;
|
|
546
|
-
} | {
|
|
547
|
-
shown: true;
|
|
548
|
-
data: import("../charts").Spreadsheet;
|
|
549
|
-
};
|
|
550
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
489
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
551
490
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
552
491
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
553
492
|
originSnapOffset: {
|
|
@@ -558,16 +497,16 @@ export declare const actionupdateFrameRendering: {
|
|
|
558
497
|
userToFollow: import("../types").UserToFollow | null;
|
|
559
498
|
followedBy: Set<import("../types").SocketId>;
|
|
560
499
|
isCropping: boolean;
|
|
561
|
-
croppingElementId:
|
|
500
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
562
501
|
searchMatches: Readonly<{
|
|
563
|
-
focusedId:
|
|
502
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
564
503
|
matches: readonly import("../types").SearchMatch[];
|
|
565
504
|
}> | null;
|
|
566
505
|
activeLockedId: string | null;
|
|
567
506
|
lockedMultiSelections: {
|
|
568
507
|
[groupId: string]: true;
|
|
569
508
|
};
|
|
570
|
-
|
|
509
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
571
510
|
};
|
|
572
511
|
captureUpdate: "EVENTUALLY";
|
|
573
512
|
};
|
|
@@ -583,7 +522,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
583
522
|
};
|
|
584
523
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
585
524
|
viewMode: false;
|
|
586
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
525
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
587
526
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
588
527
|
appState: {
|
|
589
528
|
activeTool: {
|
|
@@ -598,10 +537,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
598
537
|
} | null;
|
|
599
538
|
showWelcomeScreen: boolean;
|
|
600
539
|
isLoading: boolean;
|
|
601
|
-
errorMessage:
|
|
540
|
+
errorMessage: React.ReactNode;
|
|
602
541
|
activeEmbeddable: {
|
|
603
542
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
604
|
-
state: "
|
|
543
|
+
state: "hover" | "active";
|
|
605
544
|
} | null;
|
|
606
545
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
607
546
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -609,7 +548,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
609
548
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
610
549
|
isBindingEnabled: boolean;
|
|
611
550
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
612
|
-
|
|
551
|
+
suggestedBinding: {
|
|
552
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
553
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
554
|
+
} | null;
|
|
613
555
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
614
556
|
frameRendering: {
|
|
615
557
|
enabled: boolean;
|
|
@@ -632,19 +574,19 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
632
574
|
exportScale: number;
|
|
633
575
|
currentItemStrokeColor: string;
|
|
634
576
|
currentItemBackgroundColor: string;
|
|
635
|
-
currentItemFillStyle:
|
|
577
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
636
578
|
currentItemStrokeWidth: number;
|
|
637
|
-
currentItemStrokeStyle:
|
|
579
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
638
580
|
currentItemRoughness: number;
|
|
639
581
|
currentItemOpacity: number;
|
|
640
|
-
currentItemFontFamily:
|
|
582
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
641
583
|
currentItemFontSize: number;
|
|
642
|
-
currentItemTextAlign:
|
|
584
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
643
585
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
644
586
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
645
|
-
currentHoveredFontFamily:
|
|
587
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
646
588
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
647
|
-
currentItemArrowType: "
|
|
589
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
648
590
|
viewBackgroundColor: string;
|
|
649
591
|
scrollX: number;
|
|
650
592
|
scrollY: number;
|
|
@@ -653,26 +595,30 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
653
595
|
name: string | null;
|
|
654
596
|
isResizing: boolean;
|
|
655
597
|
isRotating: boolean;
|
|
656
|
-
zoom:
|
|
657
|
-
value: import("../types").NormalizedZoomValue;
|
|
658
|
-
}>;
|
|
598
|
+
zoom: import("../types").Zoom;
|
|
659
599
|
openMenu: "canvas" | null;
|
|
660
|
-
openPopup: "
|
|
600
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
661
601
|
openSidebar: {
|
|
662
|
-
name:
|
|
663
|
-
tab?:
|
|
602
|
+
name: import("../types").SidebarName;
|
|
603
|
+
tab?: import("../types").SidebarTabName;
|
|
664
604
|
} | null;
|
|
665
|
-
openDialog: {
|
|
605
|
+
openDialog: null | {
|
|
666
606
|
name: "imageExport" | "help" | "jsonExport";
|
|
667
607
|
} | {
|
|
668
608
|
name: "ttd";
|
|
669
|
-
tab: "
|
|
609
|
+
tab: "text-to-diagram" | "mermaid";
|
|
670
610
|
} | {
|
|
671
611
|
name: "commandPalette";
|
|
612
|
+
} | {
|
|
613
|
+
name: "settings";
|
|
672
614
|
} | {
|
|
673
615
|
name: "elementLinkSelector";
|
|
674
|
-
sourceElementId:
|
|
675
|
-
} |
|
|
616
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
617
|
+
} | {
|
|
618
|
+
name: "charts";
|
|
619
|
+
data: import("../charts").Spreadsheet;
|
|
620
|
+
rawText: string;
|
|
621
|
+
};
|
|
676
622
|
defaultSidebarDockedPreference: boolean;
|
|
677
623
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
678
624
|
selectedElementIds: Readonly<{
|
|
@@ -688,8 +634,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
688
634
|
shouldCacheIgnoreZoom: boolean;
|
|
689
635
|
toast: {
|
|
690
636
|
message: string;
|
|
691
|
-
closable?: boolean
|
|
692
|
-
duration?: number
|
|
637
|
+
closable?: boolean;
|
|
638
|
+
duration?: number;
|
|
693
639
|
} | null;
|
|
694
640
|
zenModeEnabled: boolean;
|
|
695
641
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -700,45 +646,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
700
646
|
selectedGroupIds: {
|
|
701
647
|
[groupId: string]: boolean;
|
|
702
648
|
};
|
|
703
|
-
editingGroupId:
|
|
649
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
704
650
|
width: number;
|
|
705
651
|
height: number;
|
|
706
652
|
offsetTop: number;
|
|
707
653
|
offsetLeft: number;
|
|
708
654
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
709
|
-
collaborators: Map<import("../types").SocketId,
|
|
710
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
711
|
-
button?: "up" | "down" | undefined;
|
|
712
|
-
selectedElementIds?: Readonly<{
|
|
713
|
-
[id: string]: true;
|
|
714
|
-
}> | undefined;
|
|
715
|
-
username?: string | null | undefined;
|
|
716
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
717
|
-
color?: {
|
|
718
|
-
background: string;
|
|
719
|
-
stroke: string;
|
|
720
|
-
} | undefined;
|
|
721
|
-
avatarUrl?: string | undefined;
|
|
722
|
-
id?: string | undefined;
|
|
723
|
-
socketId?: import("../types").SocketId | undefined;
|
|
724
|
-
isCurrentUser?: boolean | undefined;
|
|
725
|
-
isInCall?: boolean | undefined;
|
|
726
|
-
isSpeaking?: boolean | undefined;
|
|
727
|
-
isMuted?: boolean | undefined;
|
|
728
|
-
}>>;
|
|
655
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
729
656
|
stats: {
|
|
730
657
|
open: boolean;
|
|
731
658
|
panels: number;
|
|
732
659
|
};
|
|
733
|
-
|
|
734
|
-
pasteDialog: {
|
|
735
|
-
shown: false;
|
|
736
|
-
data: null;
|
|
737
|
-
} | {
|
|
738
|
-
shown: true;
|
|
739
|
-
data: import("../charts").Spreadsheet;
|
|
740
|
-
};
|
|
741
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
660
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
742
661
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
743
662
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
744
663
|
originSnapOffset: {
|
|
@@ -749,16 +668,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
749
668
|
userToFollow: import("../types").UserToFollow | null;
|
|
750
669
|
followedBy: Set<import("../types").SocketId>;
|
|
751
670
|
isCropping: boolean;
|
|
752
|
-
croppingElementId:
|
|
671
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
753
672
|
searchMatches: Readonly<{
|
|
754
|
-
focusedId:
|
|
673
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
755
674
|
matches: readonly import("../types").SearchMatch[];
|
|
756
675
|
}> | null;
|
|
757
676
|
activeLockedId: string | null;
|
|
758
677
|
lockedMultiSelections: {
|
|
759
678
|
[groupId: string]: true;
|
|
760
679
|
};
|
|
761
|
-
|
|
680
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
762
681
|
};
|
|
763
682
|
captureUpdate: "EVENTUALLY";
|
|
764
683
|
};
|
|
@@ -773,7 +692,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
773
692
|
category: "element";
|
|
774
693
|
};
|
|
775
694
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
776
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
695
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
777
696
|
elements: ((Readonly<{
|
|
778
697
|
id: string;
|
|
779
698
|
x: number;
|
|
@@ -783,36 +702,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
783
702
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
784
703
|
strokeWidth: number;
|
|
785
704
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
786
|
-
roundness: {
|
|
705
|
+
roundness: null | {
|
|
787
706
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
788
|
-
value?: number
|
|
789
|
-
}
|
|
707
|
+
value?: number;
|
|
708
|
+
};
|
|
790
709
|
roughness: number;
|
|
791
710
|
opacity: number;
|
|
792
711
|
width: number;
|
|
793
712
|
height: number;
|
|
794
|
-
angle: import("
|
|
713
|
+
angle: import("@excalidraw/math").Radians;
|
|
795
714
|
seed: number;
|
|
796
715
|
version: number;
|
|
797
716
|
versionNonce: number;
|
|
798
717
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
799
718
|
isDeleted: boolean;
|
|
800
|
-
groupIds: readonly
|
|
719
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
801
720
|
frameId: string | null;
|
|
802
|
-
boundElements: readonly
|
|
803
|
-
id: string;
|
|
804
|
-
type: "arrow" | "text";
|
|
805
|
-
}>[] | null;
|
|
721
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
806
722
|
updated: number;
|
|
807
723
|
link: string | null;
|
|
808
724
|
locked: boolean;
|
|
809
|
-
customData?: Record<string, any
|
|
725
|
+
customData?: Record<string, any>;
|
|
810
726
|
}> & Readonly<{
|
|
811
727
|
type: "line" | "arrow";
|
|
812
|
-
points: readonly import("
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
728
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
729
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
730
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
816
731
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
817
732
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
818
733
|
}> & {
|
|
@@ -826,30 +741,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
826
741
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
827
742
|
strokeWidth: number;
|
|
828
743
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
829
|
-
roundness: {
|
|
744
|
+
roundness: null | {
|
|
830
745
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
831
|
-
value?: number
|
|
832
|
-
}
|
|
746
|
+
value?: number;
|
|
747
|
+
};
|
|
833
748
|
roughness: number;
|
|
834
749
|
opacity: number;
|
|
835
750
|
width: number;
|
|
836
751
|
height: number;
|
|
837
|
-
angle: import("
|
|
752
|
+
angle: import("@excalidraw/math").Radians;
|
|
838
753
|
seed: number;
|
|
839
754
|
version: number;
|
|
840
755
|
versionNonce: number;
|
|
841
756
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
842
757
|
isDeleted: boolean;
|
|
843
|
-
groupIds: readonly
|
|
758
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
844
759
|
frameId: string | null;
|
|
845
|
-
boundElements: readonly
|
|
846
|
-
id: string;
|
|
847
|
-
type: "arrow" | "text";
|
|
848
|
-
}>[] | null;
|
|
760
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
849
761
|
updated: number;
|
|
850
762
|
link: string | null;
|
|
851
763
|
locked: boolean;
|
|
852
|
-
customData?: Record<string, any
|
|
764
|
+
customData?: Record<string, any>;
|
|
853
765
|
}> & {
|
|
854
766
|
type: "selection";
|
|
855
767
|
} & {
|
|
@@ -863,30 +775,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
863
775
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
864
776
|
strokeWidth: number;
|
|
865
777
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
866
|
-
roundness: {
|
|
778
|
+
roundness: null | {
|
|
867
779
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
868
|
-
value?: number
|
|
869
|
-
}
|
|
780
|
+
value?: number;
|
|
781
|
+
};
|
|
870
782
|
roughness: number;
|
|
871
783
|
opacity: number;
|
|
872
784
|
width: number;
|
|
873
785
|
height: number;
|
|
874
|
-
angle: import("
|
|
786
|
+
angle: import("@excalidraw/math").Radians;
|
|
875
787
|
seed: number;
|
|
876
788
|
version: number;
|
|
877
789
|
versionNonce: number;
|
|
878
790
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
879
791
|
isDeleted: boolean;
|
|
880
|
-
groupIds: readonly
|
|
792
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
881
793
|
frameId: string | null;
|
|
882
|
-
boundElements: readonly
|
|
883
|
-
id: string;
|
|
884
|
-
type: "arrow" | "text";
|
|
885
|
-
}>[] | null;
|
|
794
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
886
795
|
updated: number;
|
|
887
796
|
link: string | null;
|
|
888
797
|
locked: boolean;
|
|
889
|
-
customData?: Record<string, any
|
|
798
|
+
customData?: Record<string, any>;
|
|
890
799
|
}> & {
|
|
891
800
|
type: "rectangle";
|
|
892
801
|
} & {
|
|
@@ -900,30 +809,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
900
809
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
901
810
|
strokeWidth: number;
|
|
902
811
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
903
|
-
roundness: {
|
|
812
|
+
roundness: null | {
|
|
904
813
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
905
|
-
value?: number
|
|
906
|
-
}
|
|
814
|
+
value?: number;
|
|
815
|
+
};
|
|
907
816
|
roughness: number;
|
|
908
817
|
opacity: number;
|
|
909
818
|
width: number;
|
|
910
819
|
height: number;
|
|
911
|
-
angle: import("
|
|
820
|
+
angle: import("@excalidraw/math").Radians;
|
|
912
821
|
seed: number;
|
|
913
822
|
version: number;
|
|
914
823
|
versionNonce: number;
|
|
915
824
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
916
825
|
isDeleted: boolean;
|
|
917
|
-
groupIds: readonly
|
|
826
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
918
827
|
frameId: string | null;
|
|
919
|
-
boundElements: readonly
|
|
920
|
-
id: string;
|
|
921
|
-
type: "arrow" | "text";
|
|
922
|
-
}>[] | null;
|
|
828
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
923
829
|
updated: number;
|
|
924
830
|
link: string | null;
|
|
925
831
|
locked: boolean;
|
|
926
|
-
customData?: Record<string, any
|
|
832
|
+
customData?: Record<string, any>;
|
|
927
833
|
}> & {
|
|
928
834
|
type: "diamond";
|
|
929
835
|
} & {
|
|
@@ -937,30 +843,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
937
843
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
938
844
|
strokeWidth: number;
|
|
939
845
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
940
|
-
roundness: {
|
|
846
|
+
roundness: null | {
|
|
941
847
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
942
|
-
value?: number
|
|
943
|
-
}
|
|
848
|
+
value?: number;
|
|
849
|
+
};
|
|
944
850
|
roughness: number;
|
|
945
851
|
opacity: number;
|
|
946
852
|
width: number;
|
|
947
853
|
height: number;
|
|
948
|
-
angle: import("
|
|
854
|
+
angle: import("@excalidraw/math").Radians;
|
|
949
855
|
seed: number;
|
|
950
856
|
version: number;
|
|
951
857
|
versionNonce: number;
|
|
952
858
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
953
859
|
isDeleted: boolean;
|
|
954
|
-
groupIds: readonly
|
|
860
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
955
861
|
frameId: string | null;
|
|
956
|
-
boundElements: readonly
|
|
957
|
-
id: string;
|
|
958
|
-
type: "arrow" | "text";
|
|
959
|
-
}>[] | null;
|
|
862
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
960
863
|
updated: number;
|
|
961
864
|
link: string | null;
|
|
962
865
|
locked: boolean;
|
|
963
|
-
customData?: Record<string, any
|
|
866
|
+
customData?: Record<string, any>;
|
|
964
867
|
}> & {
|
|
965
868
|
type: "ellipse";
|
|
966
869
|
} & {
|
|
@@ -974,30 +877,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
974
877
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
975
878
|
strokeWidth: number;
|
|
976
879
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
977
|
-
roundness: {
|
|
880
|
+
roundness: null | {
|
|
978
881
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
979
|
-
value?: number
|
|
980
|
-
}
|
|
882
|
+
value?: number;
|
|
883
|
+
};
|
|
981
884
|
roughness: number;
|
|
982
885
|
opacity: number;
|
|
983
886
|
width: number;
|
|
984
887
|
height: number;
|
|
985
|
-
angle: import("
|
|
888
|
+
angle: import("@excalidraw/math").Radians;
|
|
986
889
|
seed: number;
|
|
987
890
|
version: number;
|
|
988
891
|
versionNonce: number;
|
|
989
892
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
990
893
|
isDeleted: boolean;
|
|
991
|
-
groupIds: readonly
|
|
894
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
992
895
|
frameId: string | null;
|
|
993
|
-
boundElements: readonly
|
|
994
|
-
id: string;
|
|
995
|
-
type: "arrow" | "text";
|
|
996
|
-
}>[] | null;
|
|
896
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
997
897
|
updated: number;
|
|
998
898
|
link: string | null;
|
|
999
899
|
locked: boolean;
|
|
1000
|
-
customData?: Record<string, any
|
|
900
|
+
customData?: Record<string, any>;
|
|
1001
901
|
}> & Readonly<{
|
|
1002
902
|
type: "embeddable";
|
|
1003
903
|
}> & {
|
|
@@ -1011,35 +911,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1011
911
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1012
912
|
strokeWidth: number;
|
|
1013
913
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1014
|
-
roundness: {
|
|
914
|
+
roundness: null | {
|
|
1015
915
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1016
|
-
value?: number
|
|
1017
|
-
}
|
|
916
|
+
value?: number;
|
|
917
|
+
};
|
|
1018
918
|
roughness: number;
|
|
1019
919
|
opacity: number;
|
|
1020
920
|
width: number;
|
|
1021
921
|
height: number;
|
|
1022
|
-
angle: import("
|
|
922
|
+
angle: import("@excalidraw/math").Radians;
|
|
1023
923
|
seed: number;
|
|
1024
924
|
version: number;
|
|
1025
925
|
versionNonce: number;
|
|
1026
926
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1027
927
|
isDeleted: boolean;
|
|
1028
|
-
groupIds: readonly
|
|
928
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1029
929
|
frameId: string | null;
|
|
1030
|
-
boundElements: readonly
|
|
1031
|
-
id: string;
|
|
1032
|
-
type: "arrow" | "text";
|
|
1033
|
-
}>[] | null;
|
|
930
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1034
931
|
updated: number;
|
|
1035
932
|
link: string | null;
|
|
1036
933
|
locked: boolean;
|
|
1037
|
-
customData?: Record<string, any
|
|
934
|
+
customData?: Record<string, any>;
|
|
1038
935
|
}> & Readonly<{
|
|
1039
936
|
type: "iframe";
|
|
1040
937
|
customData?: {
|
|
1041
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
1042
|
-
}
|
|
938
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
939
|
+
};
|
|
1043
940
|
}> & {
|
|
1044
941
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1045
942
|
}) | (Readonly<{
|
|
@@ -1051,34 +948,31 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1051
948
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1052
949
|
strokeWidth: number;
|
|
1053
950
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1054
|
-
roundness: {
|
|
951
|
+
roundness: null | {
|
|
1055
952
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1056
|
-
value?: number
|
|
1057
|
-
}
|
|
953
|
+
value?: number;
|
|
954
|
+
};
|
|
1058
955
|
roughness: number;
|
|
1059
956
|
opacity: number;
|
|
1060
957
|
width: number;
|
|
1061
958
|
height: number;
|
|
1062
|
-
angle: import("
|
|
959
|
+
angle: import("@excalidraw/math").Radians;
|
|
1063
960
|
seed: number;
|
|
1064
961
|
version: number;
|
|
1065
962
|
versionNonce: number;
|
|
1066
963
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1067
964
|
isDeleted: boolean;
|
|
1068
|
-
groupIds: readonly
|
|
965
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1069
966
|
frameId: string | null;
|
|
1070
|
-
boundElements: readonly
|
|
1071
|
-
id: string;
|
|
1072
|
-
type: "arrow" | "text";
|
|
1073
|
-
}>[] | null;
|
|
967
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1074
968
|
updated: number;
|
|
1075
969
|
link: string | null;
|
|
1076
970
|
locked: boolean;
|
|
1077
|
-
customData?: Record<string, any
|
|
971
|
+
customData?: Record<string, any>;
|
|
1078
972
|
}> & Readonly<{
|
|
1079
973
|
type: "image";
|
|
1080
974
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1081
|
-
status: "pending" | "
|
|
975
|
+
status: "pending" | "saved" | "error";
|
|
1082
976
|
scale: [number, number];
|
|
1083
977
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1084
978
|
}> & {
|
|
@@ -1092,30 +986,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1092
986
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1093
987
|
strokeWidth: number;
|
|
1094
988
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1095
|
-
roundness: {
|
|
989
|
+
roundness: null | {
|
|
1096
990
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1097
|
-
value?: number
|
|
1098
|
-
}
|
|
991
|
+
value?: number;
|
|
992
|
+
};
|
|
1099
993
|
roughness: number;
|
|
1100
994
|
opacity: number;
|
|
1101
995
|
width: number;
|
|
1102
996
|
height: number;
|
|
1103
|
-
angle: import("
|
|
997
|
+
angle: import("@excalidraw/math").Radians;
|
|
1104
998
|
seed: number;
|
|
1105
999
|
version: number;
|
|
1106
1000
|
versionNonce: number;
|
|
1107
1001
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1108
1002
|
isDeleted: boolean;
|
|
1109
|
-
groupIds: readonly
|
|
1003
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1110
1004
|
frameId: string | null;
|
|
1111
|
-
boundElements: readonly
|
|
1112
|
-
id: string;
|
|
1113
|
-
type: "arrow" | "text";
|
|
1114
|
-
}>[] | null;
|
|
1005
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1115
1006
|
updated: number;
|
|
1116
1007
|
link: string | null;
|
|
1117
1008
|
locked: boolean;
|
|
1118
|
-
customData?: Record<string, any
|
|
1009
|
+
customData?: Record<string, any>;
|
|
1119
1010
|
}> & {
|
|
1120
1011
|
type: "frame";
|
|
1121
1012
|
name: string | null;
|
|
@@ -1130,30 +1021,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1130
1021
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1131
1022
|
strokeWidth: number;
|
|
1132
1023
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1133
|
-
roundness: {
|
|
1024
|
+
roundness: null | {
|
|
1134
1025
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1135
|
-
value?: number
|
|
1136
|
-
}
|
|
1026
|
+
value?: number;
|
|
1027
|
+
};
|
|
1137
1028
|
roughness: number;
|
|
1138
1029
|
opacity: number;
|
|
1139
1030
|
width: number;
|
|
1140
1031
|
height: number;
|
|
1141
|
-
angle: import("
|
|
1032
|
+
angle: import("@excalidraw/math").Radians;
|
|
1142
1033
|
seed: number;
|
|
1143
1034
|
version: number;
|
|
1144
1035
|
versionNonce: number;
|
|
1145
1036
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1146
1037
|
isDeleted: boolean;
|
|
1147
|
-
groupIds: readonly
|
|
1038
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1148
1039
|
frameId: string | null;
|
|
1149
|
-
boundElements: readonly
|
|
1150
|
-
id: string;
|
|
1151
|
-
type: "arrow" | "text";
|
|
1152
|
-
}>[] | null;
|
|
1040
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1153
1041
|
updated: number;
|
|
1154
1042
|
link: string | null;
|
|
1155
1043
|
locked: boolean;
|
|
1156
|
-
customData?: Record<string, any
|
|
1044
|
+
customData?: Record<string, any>;
|
|
1157
1045
|
}> & {
|
|
1158
1046
|
type: "magicframe";
|
|
1159
1047
|
name: string | null;
|
|
@@ -1168,38 +1056,35 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1168
1056
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1169
1057
|
strokeWidth: number;
|
|
1170
1058
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1171
|
-
roundness: {
|
|
1059
|
+
roundness: null | {
|
|
1172
1060
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1173
|
-
value?: number
|
|
1174
|
-
}
|
|
1061
|
+
value?: number;
|
|
1062
|
+
};
|
|
1175
1063
|
roughness: number;
|
|
1176
1064
|
opacity: number;
|
|
1177
1065
|
width: number;
|
|
1178
1066
|
height: number;
|
|
1179
|
-
angle: import("
|
|
1067
|
+
angle: import("@excalidraw/math").Radians;
|
|
1180
1068
|
seed: number;
|
|
1181
1069
|
version: number;
|
|
1182
1070
|
versionNonce: number;
|
|
1183
1071
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1184
1072
|
isDeleted: boolean;
|
|
1185
|
-
groupIds: readonly
|
|
1073
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1186
1074
|
frameId: string | null;
|
|
1187
|
-
boundElements: readonly
|
|
1188
|
-
id: string;
|
|
1189
|
-
type: "arrow" | "text";
|
|
1190
|
-
}>[] | null;
|
|
1075
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1191
1076
|
updated: number;
|
|
1192
1077
|
link: string | null;
|
|
1193
1078
|
locked: boolean;
|
|
1194
|
-
customData?: Record<string, any
|
|
1079
|
+
customData?: Record<string, any>;
|
|
1195
1080
|
}> & Readonly<{
|
|
1196
1081
|
type: "text";
|
|
1197
1082
|
fontSize: number;
|
|
1198
|
-
fontFamily:
|
|
1083
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1199
1084
|
text: string;
|
|
1200
|
-
textAlign:
|
|
1201
|
-
verticalAlign:
|
|
1202
|
-
containerId:
|
|
1085
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1086
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1087
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1203
1088
|
originalText: string;
|
|
1204
1089
|
autoResize: boolean;
|
|
1205
1090
|
lineHeight: number & {
|
|
@@ -1216,36 +1101,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1216
1101
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1217
1102
|
strokeWidth: number;
|
|
1218
1103
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1219
|
-
roundness: {
|
|
1104
|
+
roundness: null | {
|
|
1220
1105
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1221
|
-
value?: number
|
|
1222
|
-
}
|
|
1106
|
+
value?: number;
|
|
1107
|
+
};
|
|
1223
1108
|
roughness: number;
|
|
1224
1109
|
opacity: number;
|
|
1225
1110
|
width: number;
|
|
1226
1111
|
height: number;
|
|
1227
|
-
angle: import("
|
|
1112
|
+
angle: import("@excalidraw/math").Radians;
|
|
1228
1113
|
seed: number;
|
|
1229
1114
|
version: number;
|
|
1230
1115
|
versionNonce: number;
|
|
1231
1116
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1232
1117
|
isDeleted: boolean;
|
|
1233
|
-
groupIds: readonly
|
|
1118
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1234
1119
|
frameId: string | null;
|
|
1235
|
-
boundElements: readonly
|
|
1236
|
-
id: string;
|
|
1237
|
-
type: "arrow" | "text";
|
|
1238
|
-
}>[] | null;
|
|
1120
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1239
1121
|
updated: number;
|
|
1240
1122
|
link: string | null;
|
|
1241
1123
|
locked: boolean;
|
|
1242
|
-
customData?: Record<string, any
|
|
1124
|
+
customData?: Record<string, any>;
|
|
1243
1125
|
}> & Readonly<{
|
|
1244
1126
|
type: "freedraw";
|
|
1245
|
-
points: readonly import("
|
|
1127
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1246
1128
|
pressures: readonly number[];
|
|
1247
1129
|
simulatePressure: boolean;
|
|
1248
|
-
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
1249
1130
|
}> & {
|
|
1250
1131
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1251
1132
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|