@excalidraw/common 0.18.0-7b8a5f54c → 0.18.0-7ea3229
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 +1522 -239
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +3 -3
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +38 -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 +53 -39
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +66 -46
- package/dist/types/element/src/bounds.d.ts +3 -11
- 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/delta.d.ts +4 -4
- 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 +7 -3
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +4 -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/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -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/store.d.ts +3 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- 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 +7 -11
- package/dist/types/element/src/utils.d.ts +8 -3
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +147 -181
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +73 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -758
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +109 -873
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +121 -159
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +50 -64
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +72 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +52 -64
- package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1109
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +264 -347
- package/dist/types/excalidraw/actions/actionGroup.d.ts +76 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +170 -220
- package/dist/types/excalidraw/actions/actionLink.d.ts +52 -64
- package/dist/types/excalidraw/actions/actionMenu.d.ts +45 -425
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
- package/dist/types/excalidraw/actions/actionProperties.d.ts +135 -2488
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +38 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +52 -64
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +52 -64
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +44 -58
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +51 -63
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +52 -64
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +52 -64
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- 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 +4 -4
- package/dist/types/excalidraw/appState.d.ts +25 -20
- package/dist/types/excalidraw/clipboard.d.ts +58 -17
- package/dist/types/excalidraw/components/Actions.d.ts +22 -5
- package/dist/types/excalidraw/components/App.d.ts +77 -68
- 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/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -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/CommandPalette.d.ts +1 -0
- 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 +1 -2
- 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/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -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 +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- 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/LibraryMenuSection.d.ts +1 -1
- 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 +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- 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/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -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 +2 -3
- 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/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- 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 +47 -35
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
- 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 +32 -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 +202 -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 +330 -10
- 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 +162 -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/data/types.d.ts +4 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +7 -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 +38 -21
- 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 +4 -3
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +7 -1
|
@@ -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;
|
|
@@ -45,6 +47,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
45
47
|
locked: boolean;
|
|
46
48
|
fromSelection: boolean;
|
|
47
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
48
54
|
penMode: boolean;
|
|
49
55
|
penDetected: boolean;
|
|
50
56
|
exportBackground: boolean;
|
|
@@ -53,19 +59,19 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
53
59
|
exportScale: number;
|
|
54
60
|
currentItemStrokeColor: string;
|
|
55
61
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle:
|
|
62
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
57
63
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle:
|
|
64
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
59
65
|
currentItemRoughness: number;
|
|
60
66
|
currentItemOpacity: number;
|
|
61
|
-
currentItemFontFamily:
|
|
67
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
62
68
|
currentItemFontSize: number;
|
|
63
|
-
currentItemTextAlign:
|
|
69
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
64
70
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
65
71
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
-
currentHoveredFontFamily:
|
|
72
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
67
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
|
-
currentItemArrowType: "
|
|
74
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
69
75
|
viewBackgroundColor: string;
|
|
70
76
|
scrollX: number;
|
|
71
77
|
scrollY: number;
|
|
@@ -74,26 +80,26 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
74
80
|
name: string | null;
|
|
75
81
|
isResizing: boolean;
|
|
76
82
|
isRotating: boolean;
|
|
77
|
-
zoom:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
openMenu: "canvas" | "shape" | null;
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
|
+
zoom: import("../types").Zoom;
|
|
84
|
+
openMenu: "canvas" | null;
|
|
85
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
86
|
openSidebar: {
|
|
83
|
-
name:
|
|
84
|
-
tab?:
|
|
87
|
+
name: import("../types").SidebarName;
|
|
88
|
+
tab?: import("../types").SidebarTabName;
|
|
85
89
|
} | null;
|
|
86
|
-
openDialog: {
|
|
90
|
+
openDialog: null | {
|
|
87
91
|
name: "imageExport" | "help" | "jsonExport";
|
|
88
92
|
} | {
|
|
89
93
|
name: "ttd";
|
|
90
|
-
tab: "
|
|
94
|
+
tab: "text-to-diagram" | "mermaid";
|
|
91
95
|
} | {
|
|
92
96
|
name: "commandPalette";
|
|
97
|
+
} | {
|
|
98
|
+
name: "settings";
|
|
93
99
|
} | {
|
|
94
100
|
name: "elementLinkSelector";
|
|
95
|
-
sourceElementId:
|
|
96
|
-
}
|
|
101
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
102
|
+
};
|
|
97
103
|
defaultSidebarDockedPreference: boolean;
|
|
98
104
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
105
|
hoveredElementIds: Readonly<{
|
|
@@ -106,8 +112,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
106
112
|
shouldCacheIgnoreZoom: boolean;
|
|
107
113
|
toast: {
|
|
108
114
|
message: string;
|
|
109
|
-
closable?: boolean
|
|
110
|
-
duration?: number
|
|
115
|
+
closable?: boolean;
|
|
116
|
+
duration?: number;
|
|
111
117
|
} | null;
|
|
112
118
|
zenModeEnabled: boolean;
|
|
113
119
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -118,32 +124,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
118
124
|
selectedGroupIds: {
|
|
119
125
|
[groupId: string]: boolean;
|
|
120
126
|
};
|
|
121
|
-
editingGroupId:
|
|
127
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
122
128
|
width: number;
|
|
123
129
|
height: number;
|
|
124
130
|
offsetTop: number;
|
|
125
131
|
offsetLeft: number;
|
|
126
132
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
127
|
-
collaborators: Map<import("../types").SocketId,
|
|
128
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
129
|
-
button?: "up" | "down" | undefined;
|
|
130
|
-
selectedElementIds?: Readonly<{
|
|
131
|
-
[id: string]: true;
|
|
132
|
-
}> | undefined;
|
|
133
|
-
username?: string | null | undefined;
|
|
134
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
|
-
color?: {
|
|
136
|
-
background: string;
|
|
137
|
-
stroke: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
avatarUrl?: string | undefined;
|
|
140
|
-
id?: string | undefined;
|
|
141
|
-
socketId?: import("../types").SocketId | undefined;
|
|
142
|
-
isCurrentUser?: boolean | undefined;
|
|
143
|
-
isInCall?: boolean | undefined;
|
|
144
|
-
isSpeaking?: boolean | undefined;
|
|
145
|
-
isMuted?: boolean | undefined;
|
|
146
|
-
}>>;
|
|
133
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
147
134
|
stats: {
|
|
148
135
|
open: boolean;
|
|
149
136
|
panels: number;
|
|
@@ -156,7 +143,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
156
143
|
shown: true;
|
|
157
144
|
data: import("../charts").Spreadsheet;
|
|
158
145
|
};
|
|
159
|
-
showHyperlinkPopup: false | "
|
|
146
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
160
147
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
161
148
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
162
149
|
originSnapOffset: {
|
|
@@ -167,15 +154,16 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
167
154
|
userToFollow: import("../types").UserToFollow | null;
|
|
168
155
|
followedBy: Set<import("../types").SocketId>;
|
|
169
156
|
isCropping: boolean;
|
|
170
|
-
croppingElementId:
|
|
157
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
171
158
|
searchMatches: Readonly<{
|
|
172
|
-
focusedId:
|
|
159
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
173
160
|
matches: readonly import("../types").SearchMatch[];
|
|
174
161
|
}> | null;
|
|
175
162
|
activeLockedId: string | null;
|
|
176
163
|
lockedMultiSelections: {
|
|
177
164
|
[groupId: string]: true;
|
|
178
165
|
};
|
|
166
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
179
167
|
};
|
|
180
168
|
captureUpdate: "IMMEDIATELY";
|
|
181
169
|
} | {
|
|
@@ -193,7 +181,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
193
181
|
trackEvent: {
|
|
194
182
|
category: "history";
|
|
195
183
|
};
|
|
196
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
184
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
197
185
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
198
186
|
appState: {
|
|
199
187
|
selectedElementIds: {
|
|
@@ -206,10 +194,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
206
194
|
} | null;
|
|
207
195
|
showWelcomeScreen: boolean;
|
|
208
196
|
isLoading: boolean;
|
|
209
|
-
errorMessage:
|
|
197
|
+
errorMessage: React.ReactNode;
|
|
210
198
|
activeEmbeddable: {
|
|
211
199
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
212
|
-
state: "
|
|
200
|
+
state: "hover" | "active";
|
|
213
201
|
} | null;
|
|
214
202
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
215
203
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -217,7 +205,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
217
205
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
206
|
isBindingEnabled: boolean;
|
|
219
207
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
220
|
-
|
|
208
|
+
suggestedBinding: {
|
|
209
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
210
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
211
|
+
} | null;
|
|
221
212
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
213
|
frameRendering: {
|
|
223
214
|
enabled: boolean;
|
|
@@ -233,6 +224,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
233
224
|
locked: boolean;
|
|
234
225
|
fromSelection: boolean;
|
|
235
226
|
} & import("../types").ActiveTool;
|
|
227
|
+
preferredSelectionTool: {
|
|
228
|
+
type: "selection" | "lasso";
|
|
229
|
+
initialized: boolean;
|
|
230
|
+
};
|
|
236
231
|
penMode: boolean;
|
|
237
232
|
penDetected: boolean;
|
|
238
233
|
exportBackground: boolean;
|
|
@@ -241,19 +236,19 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
241
236
|
exportScale: number;
|
|
242
237
|
currentItemStrokeColor: string;
|
|
243
238
|
currentItemBackgroundColor: string;
|
|
244
|
-
currentItemFillStyle:
|
|
239
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
245
240
|
currentItemStrokeWidth: number;
|
|
246
|
-
currentItemStrokeStyle:
|
|
241
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
247
242
|
currentItemRoughness: number;
|
|
248
243
|
currentItemOpacity: number;
|
|
249
|
-
currentItemFontFamily:
|
|
244
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
250
245
|
currentItemFontSize: number;
|
|
251
|
-
currentItemTextAlign:
|
|
246
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
252
247
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
253
248
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
254
|
-
currentHoveredFontFamily:
|
|
249
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
255
250
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
256
|
-
currentItemArrowType: "
|
|
251
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
257
252
|
viewBackgroundColor: string;
|
|
258
253
|
scrollX: number;
|
|
259
254
|
scrollY: number;
|
|
@@ -262,26 +257,26 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
262
257
|
name: string | null;
|
|
263
258
|
isResizing: boolean;
|
|
264
259
|
isRotating: boolean;
|
|
265
|
-
zoom:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
openMenu: "canvas" | "shape" | null;
|
|
269
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
260
|
+
zoom: import("../types").Zoom;
|
|
261
|
+
openMenu: "canvas" | null;
|
|
262
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
270
263
|
openSidebar: {
|
|
271
|
-
name:
|
|
272
|
-
tab?:
|
|
264
|
+
name: import("../types").SidebarName;
|
|
265
|
+
tab?: import("../types").SidebarTabName;
|
|
273
266
|
} | null;
|
|
274
|
-
openDialog: {
|
|
267
|
+
openDialog: null | {
|
|
275
268
|
name: "imageExport" | "help" | "jsonExport";
|
|
276
269
|
} | {
|
|
277
270
|
name: "ttd";
|
|
278
|
-
tab: "
|
|
271
|
+
tab: "text-to-diagram" | "mermaid";
|
|
279
272
|
} | {
|
|
280
273
|
name: "commandPalette";
|
|
274
|
+
} | {
|
|
275
|
+
name: "settings";
|
|
281
276
|
} | {
|
|
282
277
|
name: "elementLinkSelector";
|
|
283
|
-
sourceElementId:
|
|
284
|
-
}
|
|
278
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
279
|
+
};
|
|
285
280
|
defaultSidebarDockedPreference: boolean;
|
|
286
281
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
287
282
|
hoveredElementIds: Readonly<{
|
|
@@ -294,8 +289,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
294
289
|
shouldCacheIgnoreZoom: boolean;
|
|
295
290
|
toast: {
|
|
296
291
|
message: string;
|
|
297
|
-
closable?: boolean
|
|
298
|
-
duration?: number
|
|
292
|
+
closable?: boolean;
|
|
293
|
+
duration?: number;
|
|
299
294
|
} | null;
|
|
300
295
|
zenModeEnabled: boolean;
|
|
301
296
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -306,32 +301,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
306
301
|
selectedGroupIds: {
|
|
307
302
|
[groupId: string]: boolean;
|
|
308
303
|
};
|
|
309
|
-
editingGroupId:
|
|
304
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
310
305
|
width: number;
|
|
311
306
|
height: number;
|
|
312
307
|
offsetTop: number;
|
|
313
308
|
offsetLeft: number;
|
|
314
309
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
315
|
-
collaborators: Map<import("../types").SocketId,
|
|
316
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
317
|
-
button?: "up" | "down" | undefined;
|
|
318
|
-
selectedElementIds?: Readonly<{
|
|
319
|
-
[id: string]: true;
|
|
320
|
-
}> | undefined;
|
|
321
|
-
username?: string | null | undefined;
|
|
322
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
323
|
-
color?: {
|
|
324
|
-
background: string;
|
|
325
|
-
stroke: string;
|
|
326
|
-
} | undefined;
|
|
327
|
-
avatarUrl?: string | undefined;
|
|
328
|
-
id?: string | undefined;
|
|
329
|
-
socketId?: import("../types").SocketId | undefined;
|
|
330
|
-
isCurrentUser?: boolean | undefined;
|
|
331
|
-
isInCall?: boolean | undefined;
|
|
332
|
-
isSpeaking?: boolean | undefined;
|
|
333
|
-
isMuted?: boolean | undefined;
|
|
334
|
-
}>>;
|
|
310
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
335
311
|
stats: {
|
|
336
312
|
open: boolean;
|
|
337
313
|
panels: number;
|
|
@@ -344,7 +320,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
344
320
|
shown: true;
|
|
345
321
|
data: import("../charts").Spreadsheet;
|
|
346
322
|
};
|
|
347
|
-
showHyperlinkPopup: false | "
|
|
323
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
348
324
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
349
325
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
350
326
|
originSnapOffset: {
|
|
@@ -355,15 +331,16 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
355
331
|
userToFollow: import("../types").UserToFollow | null;
|
|
356
332
|
followedBy: Set<import("../types").SocketId>;
|
|
357
333
|
isCropping: boolean;
|
|
358
|
-
croppingElementId:
|
|
334
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
359
335
|
searchMatches: Readonly<{
|
|
360
|
-
focusedId:
|
|
336
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
361
337
|
matches: readonly import("../types").SearchMatch[];
|
|
362
338
|
}> | null;
|
|
363
339
|
activeLockedId: string | null;
|
|
364
340
|
lockedMultiSelections: {
|
|
365
341
|
[groupId: string]: true;
|
|
366
342
|
};
|
|
343
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
367
344
|
};
|
|
368
345
|
captureUpdate: "IMMEDIATELY";
|
|
369
346
|
} | {
|
|
@@ -398,10 +375,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
398
375
|
} | null;
|
|
399
376
|
showWelcomeScreen: boolean;
|
|
400
377
|
isLoading: boolean;
|
|
401
|
-
errorMessage:
|
|
378
|
+
errorMessage: React.ReactNode;
|
|
402
379
|
activeEmbeddable: {
|
|
403
380
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
404
|
-
state: "
|
|
381
|
+
state: "hover" | "active";
|
|
405
382
|
} | null;
|
|
406
383
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
407
384
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -409,7 +386,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
409
386
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
410
387
|
isBindingEnabled: boolean;
|
|
411
388
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
412
|
-
|
|
389
|
+
suggestedBinding: {
|
|
390
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
391
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
392
|
+
} | null;
|
|
413
393
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
414
394
|
editingFrame: string | null;
|
|
415
395
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
@@ -419,6 +399,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
419
399
|
locked: boolean;
|
|
420
400
|
fromSelection: boolean;
|
|
421
401
|
} & import("../types").ActiveTool;
|
|
402
|
+
preferredSelectionTool: {
|
|
403
|
+
type: "selection" | "lasso";
|
|
404
|
+
initialized: boolean;
|
|
405
|
+
};
|
|
422
406
|
penMode: boolean;
|
|
423
407
|
penDetected: boolean;
|
|
424
408
|
exportBackground: boolean;
|
|
@@ -427,19 +411,19 @@ export declare const actionupdateFrameRendering: {
|
|
|
427
411
|
exportScale: number;
|
|
428
412
|
currentItemStrokeColor: string;
|
|
429
413
|
currentItemBackgroundColor: string;
|
|
430
|
-
currentItemFillStyle:
|
|
414
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
431
415
|
currentItemStrokeWidth: number;
|
|
432
|
-
currentItemStrokeStyle:
|
|
416
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
433
417
|
currentItemRoughness: number;
|
|
434
418
|
currentItemOpacity: number;
|
|
435
|
-
currentItemFontFamily:
|
|
419
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
436
420
|
currentItemFontSize: number;
|
|
437
|
-
currentItemTextAlign:
|
|
421
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
438
422
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
439
423
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
440
|
-
currentHoveredFontFamily:
|
|
424
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
441
425
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
442
|
-
currentItemArrowType: "
|
|
426
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
443
427
|
viewBackgroundColor: string;
|
|
444
428
|
scrollX: number;
|
|
445
429
|
scrollY: number;
|
|
@@ -448,26 +432,26 @@ export declare const actionupdateFrameRendering: {
|
|
|
448
432
|
name: string | null;
|
|
449
433
|
isResizing: boolean;
|
|
450
434
|
isRotating: boolean;
|
|
451
|
-
zoom:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
openMenu: "canvas" | "shape" | null;
|
|
455
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
435
|
+
zoom: import("../types").Zoom;
|
|
436
|
+
openMenu: "canvas" | null;
|
|
437
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
456
438
|
openSidebar: {
|
|
457
|
-
name:
|
|
458
|
-
tab?:
|
|
439
|
+
name: import("../types").SidebarName;
|
|
440
|
+
tab?: import("../types").SidebarTabName;
|
|
459
441
|
} | null;
|
|
460
|
-
openDialog: {
|
|
442
|
+
openDialog: null | {
|
|
461
443
|
name: "imageExport" | "help" | "jsonExport";
|
|
462
444
|
} | {
|
|
463
445
|
name: "ttd";
|
|
464
|
-
tab: "
|
|
446
|
+
tab: "text-to-diagram" | "mermaid";
|
|
465
447
|
} | {
|
|
466
448
|
name: "commandPalette";
|
|
449
|
+
} | {
|
|
450
|
+
name: "settings";
|
|
467
451
|
} | {
|
|
468
452
|
name: "elementLinkSelector";
|
|
469
|
-
sourceElementId:
|
|
470
|
-
}
|
|
453
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
454
|
+
};
|
|
471
455
|
defaultSidebarDockedPreference: boolean;
|
|
472
456
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
473
457
|
selectedElementIds: Readonly<{
|
|
@@ -483,8 +467,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
483
467
|
shouldCacheIgnoreZoom: boolean;
|
|
484
468
|
toast: {
|
|
485
469
|
message: string;
|
|
486
|
-
closable?: boolean
|
|
487
|
-
duration?: number
|
|
470
|
+
closable?: boolean;
|
|
471
|
+
duration?: number;
|
|
488
472
|
} | null;
|
|
489
473
|
zenModeEnabled: boolean;
|
|
490
474
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -495,32 +479,13 @@ export declare const actionupdateFrameRendering: {
|
|
|
495
479
|
selectedGroupIds: {
|
|
496
480
|
[groupId: string]: boolean;
|
|
497
481
|
};
|
|
498
|
-
editingGroupId:
|
|
482
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
499
483
|
width: number;
|
|
500
484
|
height: number;
|
|
501
485
|
offsetTop: number;
|
|
502
486
|
offsetLeft: number;
|
|
503
487
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
504
|
-
collaborators: Map<import("../types").SocketId,
|
|
505
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
506
|
-
button?: "up" | "down" | undefined;
|
|
507
|
-
selectedElementIds?: Readonly<{
|
|
508
|
-
[id: string]: true;
|
|
509
|
-
}> | undefined;
|
|
510
|
-
username?: string | null | undefined;
|
|
511
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
512
|
-
color?: {
|
|
513
|
-
background: string;
|
|
514
|
-
stroke: string;
|
|
515
|
-
} | undefined;
|
|
516
|
-
avatarUrl?: string | undefined;
|
|
517
|
-
id?: string | undefined;
|
|
518
|
-
socketId?: import("../types").SocketId | undefined;
|
|
519
|
-
isCurrentUser?: boolean | undefined;
|
|
520
|
-
isInCall?: boolean | undefined;
|
|
521
|
-
isSpeaking?: boolean | undefined;
|
|
522
|
-
isMuted?: boolean | undefined;
|
|
523
|
-
}>>;
|
|
488
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
524
489
|
stats: {
|
|
525
490
|
open: boolean;
|
|
526
491
|
panels: number;
|
|
@@ -533,7 +498,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
533
498
|
shown: true;
|
|
534
499
|
data: import("../charts").Spreadsheet;
|
|
535
500
|
};
|
|
536
|
-
showHyperlinkPopup: false | "
|
|
501
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
537
502
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
538
503
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
539
504
|
originSnapOffset: {
|
|
@@ -544,15 +509,16 @@ export declare const actionupdateFrameRendering: {
|
|
|
544
509
|
userToFollow: import("../types").UserToFollow | null;
|
|
545
510
|
followedBy: Set<import("../types").SocketId>;
|
|
546
511
|
isCropping: boolean;
|
|
547
|
-
croppingElementId:
|
|
512
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
548
513
|
searchMatches: Readonly<{
|
|
549
|
-
focusedId:
|
|
514
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
550
515
|
matches: readonly import("../types").SearchMatch[];
|
|
551
516
|
}> | null;
|
|
552
517
|
activeLockedId: string | null;
|
|
553
518
|
lockedMultiSelections: {
|
|
554
519
|
[groupId: string]: true;
|
|
555
520
|
};
|
|
521
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
556
522
|
};
|
|
557
523
|
captureUpdate: "EVENTUALLY";
|
|
558
524
|
};
|
|
@@ -568,7 +534,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
568
534
|
};
|
|
569
535
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
570
536
|
viewMode: false;
|
|
571
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
537
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
572
538
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
573
539
|
appState: {
|
|
574
540
|
activeTool: {
|
|
@@ -583,10 +549,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
583
549
|
} | null;
|
|
584
550
|
showWelcomeScreen: boolean;
|
|
585
551
|
isLoading: boolean;
|
|
586
|
-
errorMessage:
|
|
552
|
+
errorMessage: React.ReactNode;
|
|
587
553
|
activeEmbeddable: {
|
|
588
554
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
589
|
-
state: "
|
|
555
|
+
state: "hover" | "active";
|
|
590
556
|
} | null;
|
|
591
557
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
592
558
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -594,7 +560,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
594
560
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
595
561
|
isBindingEnabled: boolean;
|
|
596
562
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
597
|
-
|
|
563
|
+
suggestedBinding: {
|
|
564
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
565
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
566
|
+
} | null;
|
|
598
567
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
599
568
|
frameRendering: {
|
|
600
569
|
enabled: boolean;
|
|
@@ -605,6 +574,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
605
574
|
editingFrame: string | null;
|
|
606
575
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
607
576
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
577
|
+
preferredSelectionTool: {
|
|
578
|
+
type: "selection" | "lasso";
|
|
579
|
+
initialized: boolean;
|
|
580
|
+
};
|
|
608
581
|
penMode: boolean;
|
|
609
582
|
penDetected: boolean;
|
|
610
583
|
exportBackground: boolean;
|
|
@@ -613,19 +586,19 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
613
586
|
exportScale: number;
|
|
614
587
|
currentItemStrokeColor: string;
|
|
615
588
|
currentItemBackgroundColor: string;
|
|
616
|
-
currentItemFillStyle:
|
|
589
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
617
590
|
currentItemStrokeWidth: number;
|
|
618
|
-
currentItemStrokeStyle:
|
|
591
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
619
592
|
currentItemRoughness: number;
|
|
620
593
|
currentItemOpacity: number;
|
|
621
|
-
currentItemFontFamily:
|
|
594
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
622
595
|
currentItemFontSize: number;
|
|
623
|
-
currentItemTextAlign:
|
|
596
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
624
597
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
625
598
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
626
|
-
currentHoveredFontFamily:
|
|
599
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
627
600
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
628
|
-
currentItemArrowType: "
|
|
601
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
629
602
|
viewBackgroundColor: string;
|
|
630
603
|
scrollX: number;
|
|
631
604
|
scrollY: number;
|
|
@@ -634,26 +607,26 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
634
607
|
name: string | null;
|
|
635
608
|
isResizing: boolean;
|
|
636
609
|
isRotating: boolean;
|
|
637
|
-
zoom:
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
openMenu: "canvas" | "shape" | null;
|
|
641
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
610
|
+
zoom: import("../types").Zoom;
|
|
611
|
+
openMenu: "canvas" | null;
|
|
612
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
642
613
|
openSidebar: {
|
|
643
|
-
name:
|
|
644
|
-
tab?:
|
|
614
|
+
name: import("../types").SidebarName;
|
|
615
|
+
tab?: import("../types").SidebarTabName;
|
|
645
616
|
} | null;
|
|
646
|
-
openDialog: {
|
|
617
|
+
openDialog: null | {
|
|
647
618
|
name: "imageExport" | "help" | "jsonExport";
|
|
648
619
|
} | {
|
|
649
620
|
name: "ttd";
|
|
650
|
-
tab: "
|
|
621
|
+
tab: "text-to-diagram" | "mermaid";
|
|
651
622
|
} | {
|
|
652
623
|
name: "commandPalette";
|
|
624
|
+
} | {
|
|
625
|
+
name: "settings";
|
|
653
626
|
} | {
|
|
654
627
|
name: "elementLinkSelector";
|
|
655
|
-
sourceElementId:
|
|
656
|
-
}
|
|
628
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
629
|
+
};
|
|
657
630
|
defaultSidebarDockedPreference: boolean;
|
|
658
631
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
659
632
|
selectedElementIds: Readonly<{
|
|
@@ -669,8 +642,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
669
642
|
shouldCacheIgnoreZoom: boolean;
|
|
670
643
|
toast: {
|
|
671
644
|
message: string;
|
|
672
|
-
closable?: boolean
|
|
673
|
-
duration?: number
|
|
645
|
+
closable?: boolean;
|
|
646
|
+
duration?: number;
|
|
674
647
|
} | null;
|
|
675
648
|
zenModeEnabled: boolean;
|
|
676
649
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -681,32 +654,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
681
654
|
selectedGroupIds: {
|
|
682
655
|
[groupId: string]: boolean;
|
|
683
656
|
};
|
|
684
|
-
editingGroupId:
|
|
657
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
685
658
|
width: number;
|
|
686
659
|
height: number;
|
|
687
660
|
offsetTop: number;
|
|
688
661
|
offsetLeft: number;
|
|
689
662
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
690
|
-
collaborators: Map<import("../types").SocketId,
|
|
691
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
692
|
-
button?: "up" | "down" | undefined;
|
|
693
|
-
selectedElementIds?: Readonly<{
|
|
694
|
-
[id: string]: true;
|
|
695
|
-
}> | undefined;
|
|
696
|
-
username?: string | null | undefined;
|
|
697
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
698
|
-
color?: {
|
|
699
|
-
background: string;
|
|
700
|
-
stroke: string;
|
|
701
|
-
} | undefined;
|
|
702
|
-
avatarUrl?: string | undefined;
|
|
703
|
-
id?: string | undefined;
|
|
704
|
-
socketId?: import("../types").SocketId | undefined;
|
|
705
|
-
isCurrentUser?: boolean | undefined;
|
|
706
|
-
isInCall?: boolean | undefined;
|
|
707
|
-
isSpeaking?: boolean | undefined;
|
|
708
|
-
isMuted?: boolean | undefined;
|
|
709
|
-
}>>;
|
|
663
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
710
664
|
stats: {
|
|
711
665
|
open: boolean;
|
|
712
666
|
panels: number;
|
|
@@ -719,7 +673,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
719
673
|
shown: true;
|
|
720
674
|
data: import("../charts").Spreadsheet;
|
|
721
675
|
};
|
|
722
|
-
showHyperlinkPopup: false | "
|
|
676
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
723
677
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
724
678
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
725
679
|
originSnapOffset: {
|
|
@@ -730,15 +684,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
730
684
|
userToFollow: import("../types").UserToFollow | null;
|
|
731
685
|
followedBy: Set<import("../types").SocketId>;
|
|
732
686
|
isCropping: boolean;
|
|
733
|
-
croppingElementId:
|
|
687
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
734
688
|
searchMatches: Readonly<{
|
|
735
|
-
focusedId:
|
|
689
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
736
690
|
matches: readonly import("../types").SearchMatch[];
|
|
737
691
|
}> | null;
|
|
738
692
|
activeLockedId: string | null;
|
|
739
693
|
lockedMultiSelections: {
|
|
740
694
|
[groupId: string]: true;
|
|
741
695
|
};
|
|
696
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
742
697
|
};
|
|
743
698
|
captureUpdate: "EVENTUALLY";
|
|
744
699
|
};
|
|
@@ -753,7 +708,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
753
708
|
category: "element";
|
|
754
709
|
};
|
|
755
710
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
756
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
711
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
757
712
|
elements: ((Readonly<{
|
|
758
713
|
id: string;
|
|
759
714
|
x: number;
|
|
@@ -763,43 +718,34 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
763
718
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
764
719
|
strokeWidth: number;
|
|
765
720
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
766
|
-
roundness: {
|
|
721
|
+
roundness: null | {
|
|
767
722
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
768
|
-
value?: number
|
|
769
|
-
}
|
|
723
|
+
value?: number;
|
|
724
|
+
};
|
|
770
725
|
roughness: number;
|
|
771
726
|
opacity: number;
|
|
772
727
|
width: number;
|
|
773
728
|
height: number;
|
|
774
|
-
angle: import("
|
|
729
|
+
angle: import("@excalidraw/math").Radians;
|
|
775
730
|
seed: number;
|
|
776
731
|
version: number;
|
|
777
732
|
versionNonce: number;
|
|
778
733
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
779
734
|
isDeleted: boolean;
|
|
780
|
-
groupIds: readonly
|
|
735
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
781
736
|
frameId: string | null;
|
|
782
|
-
boundElements: readonly
|
|
783
|
-
id: string;
|
|
784
|
-
type: "text" | "arrow";
|
|
785
|
-
}>[] | null;
|
|
737
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
786
738
|
updated: number;
|
|
787
739
|
link: string | null;
|
|
788
740
|
locked: boolean;
|
|
789
|
-
customData?: Record<string, any
|
|
741
|
+
customData?: Record<string, any>;
|
|
790
742
|
}> & Readonly<{
|
|
791
|
-
type: "
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
containerId: string | null;
|
|
798
|
-
originalText: string;
|
|
799
|
-
autoResize: boolean;
|
|
800
|
-
lineHeight: number & {
|
|
801
|
-
_brand: "unitlessLineHeight";
|
|
802
|
-
};
|
|
743
|
+
type: "line" | "arrow";
|
|
744
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
745
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
746
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
747
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
748
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
803
749
|
}> & {
|
|
804
750
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
805
751
|
}) | (Readonly<{
|
|
@@ -811,32 +757,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
811
757
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
812
758
|
strokeWidth: number;
|
|
813
759
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
814
|
-
roundness: {
|
|
760
|
+
roundness: null | {
|
|
815
761
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
816
|
-
value?: number
|
|
817
|
-
}
|
|
762
|
+
value?: number;
|
|
763
|
+
};
|
|
818
764
|
roughness: number;
|
|
819
765
|
opacity: number;
|
|
820
766
|
width: number;
|
|
821
767
|
height: number;
|
|
822
|
-
angle: import("
|
|
768
|
+
angle: import("@excalidraw/math").Radians;
|
|
823
769
|
seed: number;
|
|
824
770
|
version: number;
|
|
825
771
|
versionNonce: number;
|
|
826
772
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
827
773
|
isDeleted: boolean;
|
|
828
|
-
groupIds: readonly
|
|
774
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
829
775
|
frameId: string | null;
|
|
830
|
-
boundElements: readonly
|
|
831
|
-
id: string;
|
|
832
|
-
type: "text" | "arrow";
|
|
833
|
-
}>[] | null;
|
|
776
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
834
777
|
updated: number;
|
|
835
778
|
link: string | null;
|
|
836
779
|
locked: boolean;
|
|
837
|
-
customData?: Record<string, any
|
|
780
|
+
customData?: Record<string, any>;
|
|
838
781
|
}> & {
|
|
839
|
-
type: "
|
|
782
|
+
type: "selection";
|
|
840
783
|
} & {
|
|
841
784
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
842
785
|
}) | (Readonly<{
|
|
@@ -848,32 +791,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
848
791
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
849
792
|
strokeWidth: number;
|
|
850
793
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
851
|
-
roundness: {
|
|
794
|
+
roundness: null | {
|
|
852
795
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
853
|
-
value?: number
|
|
854
|
-
}
|
|
796
|
+
value?: number;
|
|
797
|
+
};
|
|
855
798
|
roughness: number;
|
|
856
799
|
opacity: number;
|
|
857
800
|
width: number;
|
|
858
801
|
height: number;
|
|
859
|
-
angle: import("
|
|
802
|
+
angle: import("@excalidraw/math").Radians;
|
|
860
803
|
seed: number;
|
|
861
804
|
version: number;
|
|
862
805
|
versionNonce: number;
|
|
863
806
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
864
807
|
isDeleted: boolean;
|
|
865
|
-
groupIds: readonly
|
|
808
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
866
809
|
frameId: string | null;
|
|
867
|
-
boundElements: readonly
|
|
868
|
-
id: string;
|
|
869
|
-
type: "text" | "arrow";
|
|
870
|
-
}>[] | null;
|
|
810
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
871
811
|
updated: number;
|
|
872
812
|
link: string | null;
|
|
873
813
|
locked: boolean;
|
|
874
|
-
customData?: Record<string, any
|
|
814
|
+
customData?: Record<string, any>;
|
|
875
815
|
}> & {
|
|
876
|
-
type: "
|
|
816
|
+
type: "rectangle";
|
|
877
817
|
} & {
|
|
878
818
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
879
819
|
}) | (Readonly<{
|
|
@@ -885,33 +825,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
885
825
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
886
826
|
strokeWidth: number;
|
|
887
827
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
888
|
-
roundness: {
|
|
828
|
+
roundness: null | {
|
|
889
829
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
890
|
-
value?: number
|
|
891
|
-
}
|
|
830
|
+
value?: number;
|
|
831
|
+
};
|
|
892
832
|
roughness: number;
|
|
893
833
|
opacity: number;
|
|
894
834
|
width: number;
|
|
895
835
|
height: number;
|
|
896
|
-
angle: import("
|
|
836
|
+
angle: import("@excalidraw/math").Radians;
|
|
897
837
|
seed: number;
|
|
898
838
|
version: number;
|
|
899
839
|
versionNonce: number;
|
|
900
840
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
901
841
|
isDeleted: boolean;
|
|
902
|
-
groupIds: readonly
|
|
842
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
903
843
|
frameId: string | null;
|
|
904
|
-
boundElements: readonly
|
|
905
|
-
id: string;
|
|
906
|
-
type: "text" | "arrow";
|
|
907
|
-
}>[] | null;
|
|
844
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
908
845
|
updated: number;
|
|
909
846
|
link: string | null;
|
|
910
847
|
locked: boolean;
|
|
911
|
-
customData?: Record<string, any
|
|
848
|
+
customData?: Record<string, any>;
|
|
912
849
|
}> & {
|
|
913
|
-
type: "
|
|
914
|
-
name: string | null;
|
|
850
|
+
type: "diamond";
|
|
915
851
|
} & {
|
|
916
852
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
917
853
|
}) | (Readonly<{
|
|
@@ -923,33 +859,29 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
923
859
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
924
860
|
strokeWidth: number;
|
|
925
861
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
926
|
-
roundness: {
|
|
862
|
+
roundness: null | {
|
|
927
863
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
928
|
-
value?: number
|
|
929
|
-
}
|
|
864
|
+
value?: number;
|
|
865
|
+
};
|
|
930
866
|
roughness: number;
|
|
931
867
|
opacity: number;
|
|
932
868
|
width: number;
|
|
933
869
|
height: number;
|
|
934
|
-
angle: import("
|
|
870
|
+
angle: import("@excalidraw/math").Radians;
|
|
935
871
|
seed: number;
|
|
936
872
|
version: number;
|
|
937
873
|
versionNonce: number;
|
|
938
874
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
939
875
|
isDeleted: boolean;
|
|
940
|
-
groupIds: readonly
|
|
876
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
941
877
|
frameId: string | null;
|
|
942
|
-
boundElements: readonly
|
|
943
|
-
id: string;
|
|
944
|
-
type: "text" | "arrow";
|
|
945
|
-
}>[] | null;
|
|
878
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
946
879
|
updated: number;
|
|
947
880
|
link: string | null;
|
|
948
881
|
locked: boolean;
|
|
949
|
-
customData?: Record<string, any
|
|
882
|
+
customData?: Record<string, any>;
|
|
950
883
|
}> & {
|
|
951
|
-
type: "
|
|
952
|
-
name: string | null;
|
|
884
|
+
type: "ellipse";
|
|
953
885
|
} & {
|
|
954
886
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
955
887
|
}) | (Readonly<{
|
|
@@ -961,30 +893,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
961
893
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
962
894
|
strokeWidth: number;
|
|
963
895
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
964
|
-
roundness: {
|
|
896
|
+
roundness: null | {
|
|
965
897
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
966
|
-
value?: number
|
|
967
|
-
}
|
|
898
|
+
value?: number;
|
|
899
|
+
};
|
|
968
900
|
roughness: number;
|
|
969
901
|
opacity: number;
|
|
970
902
|
width: number;
|
|
971
903
|
height: number;
|
|
972
|
-
angle: import("
|
|
904
|
+
angle: import("@excalidraw/math").Radians;
|
|
973
905
|
seed: number;
|
|
974
906
|
version: number;
|
|
975
907
|
versionNonce: number;
|
|
976
908
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
977
909
|
isDeleted: boolean;
|
|
978
|
-
groupIds: readonly
|
|
910
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
979
911
|
frameId: string | null;
|
|
980
|
-
boundElements: readonly
|
|
981
|
-
id: string;
|
|
982
|
-
type: "text" | "arrow";
|
|
983
|
-
}>[] | null;
|
|
912
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
984
913
|
updated: number;
|
|
985
914
|
link: string | null;
|
|
986
915
|
locked: boolean;
|
|
987
|
-
customData?: Record<string, any
|
|
916
|
+
customData?: Record<string, any>;
|
|
988
917
|
}> & Readonly<{
|
|
989
918
|
type: "embeddable";
|
|
990
919
|
}> & {
|
|
@@ -998,36 +927,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
998
927
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
999
928
|
strokeWidth: number;
|
|
1000
929
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1001
|
-
roundness: {
|
|
930
|
+
roundness: null | {
|
|
1002
931
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1003
|
-
value?: number
|
|
1004
|
-
}
|
|
932
|
+
value?: number;
|
|
933
|
+
};
|
|
1005
934
|
roughness: number;
|
|
1006
935
|
opacity: number;
|
|
1007
936
|
width: number;
|
|
1008
937
|
height: number;
|
|
1009
|
-
angle: import("
|
|
938
|
+
angle: import("@excalidraw/math").Radians;
|
|
1010
939
|
seed: number;
|
|
1011
940
|
version: number;
|
|
1012
941
|
versionNonce: number;
|
|
1013
942
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1014
943
|
isDeleted: boolean;
|
|
1015
|
-
groupIds: readonly
|
|
944
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1016
945
|
frameId: string | null;
|
|
1017
|
-
boundElements: readonly
|
|
1018
|
-
id: string;
|
|
1019
|
-
type: "text" | "arrow";
|
|
1020
|
-
}>[] | null;
|
|
946
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1021
947
|
updated: number;
|
|
1022
948
|
link: string | null;
|
|
1023
949
|
locked: boolean;
|
|
1024
|
-
customData?: Record<string, any
|
|
950
|
+
customData?: Record<string, any>;
|
|
1025
951
|
}> & Readonly<{
|
|
1026
|
-
type: "
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
952
|
+
type: "iframe";
|
|
953
|
+
customData?: {
|
|
954
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
955
|
+
};
|
|
1031
956
|
}> & {
|
|
1032
957
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1033
958
|
}) | (Readonly<{
|
|
@@ -1039,35 +964,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1039
964
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1040
965
|
strokeWidth: number;
|
|
1041
966
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1042
|
-
roundness: {
|
|
967
|
+
roundness: null | {
|
|
1043
968
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1044
|
-
value?: number
|
|
1045
|
-
}
|
|
969
|
+
value?: number;
|
|
970
|
+
};
|
|
1046
971
|
roughness: number;
|
|
1047
972
|
opacity: number;
|
|
1048
973
|
width: number;
|
|
1049
974
|
height: number;
|
|
1050
|
-
angle: import("
|
|
975
|
+
angle: import("@excalidraw/math").Radians;
|
|
1051
976
|
seed: number;
|
|
1052
977
|
version: number;
|
|
1053
978
|
versionNonce: number;
|
|
1054
979
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1055
980
|
isDeleted: boolean;
|
|
1056
|
-
groupIds: readonly
|
|
981
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1057
982
|
frameId: string | null;
|
|
1058
|
-
boundElements: readonly
|
|
1059
|
-
id: string;
|
|
1060
|
-
type: "text" | "arrow";
|
|
1061
|
-
}>[] | null;
|
|
983
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1062
984
|
updated: number;
|
|
1063
985
|
link: string | null;
|
|
1064
986
|
locked: boolean;
|
|
1065
|
-
customData?: Record<string, any
|
|
987
|
+
customData?: Record<string, any>;
|
|
1066
988
|
}> & Readonly<{
|
|
1067
|
-
type: "
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
989
|
+
type: "image";
|
|
990
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
991
|
+
status: "pending" | "saved" | "error";
|
|
992
|
+
scale: [number, number];
|
|
993
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1071
994
|
}> & {
|
|
1072
995
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1073
996
|
}) | (Readonly<{
|
|
@@ -1079,32 +1002,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1079
1002
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1080
1003
|
strokeWidth: number;
|
|
1081
1004
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1082
|
-
roundness: {
|
|
1005
|
+
roundness: null | {
|
|
1083
1006
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1084
|
-
value?: number
|
|
1085
|
-
}
|
|
1007
|
+
value?: number;
|
|
1008
|
+
};
|
|
1086
1009
|
roughness: number;
|
|
1087
1010
|
opacity: number;
|
|
1088
1011
|
width: number;
|
|
1089
1012
|
height: number;
|
|
1090
|
-
angle: import("
|
|
1013
|
+
angle: import("@excalidraw/math").Radians;
|
|
1091
1014
|
seed: number;
|
|
1092
1015
|
version: number;
|
|
1093
1016
|
versionNonce: number;
|
|
1094
1017
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1095
1018
|
isDeleted: boolean;
|
|
1096
|
-
groupIds: readonly
|
|
1019
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1097
1020
|
frameId: string | null;
|
|
1098
|
-
boundElements: readonly
|
|
1099
|
-
id: string;
|
|
1100
|
-
type: "text" | "arrow";
|
|
1101
|
-
}>[] | null;
|
|
1021
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1102
1022
|
updated: number;
|
|
1103
1023
|
link: string | null;
|
|
1104
1024
|
locked: boolean;
|
|
1105
|
-
customData?: Record<string, any
|
|
1025
|
+
customData?: Record<string, any>;
|
|
1106
1026
|
}> & {
|
|
1107
|
-
type: "
|
|
1027
|
+
type: "frame";
|
|
1028
|
+
name: string | null;
|
|
1108
1029
|
} & {
|
|
1109
1030
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1110
1031
|
}) | (Readonly<{
|
|
@@ -1116,32 +1037,30 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1116
1037
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1117
1038
|
strokeWidth: number;
|
|
1118
1039
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1119
|
-
roundness: {
|
|
1040
|
+
roundness: null | {
|
|
1120
1041
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1121
|
-
value?: number
|
|
1122
|
-
}
|
|
1042
|
+
value?: number;
|
|
1043
|
+
};
|
|
1123
1044
|
roughness: number;
|
|
1124
1045
|
opacity: number;
|
|
1125
1046
|
width: number;
|
|
1126
1047
|
height: number;
|
|
1127
|
-
angle: import("
|
|
1048
|
+
angle: import("@excalidraw/math").Radians;
|
|
1128
1049
|
seed: number;
|
|
1129
1050
|
version: number;
|
|
1130
1051
|
versionNonce: number;
|
|
1131
1052
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1132
1053
|
isDeleted: boolean;
|
|
1133
|
-
groupIds: readonly
|
|
1054
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1134
1055
|
frameId: string | null;
|
|
1135
|
-
boundElements: readonly
|
|
1136
|
-
id: string;
|
|
1137
|
-
type: "text" | "arrow";
|
|
1138
|
-
}>[] | null;
|
|
1056
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1139
1057
|
updated: number;
|
|
1140
1058
|
link: string | null;
|
|
1141
1059
|
locked: boolean;
|
|
1142
|
-
customData?: Record<string, any
|
|
1060
|
+
customData?: Record<string, any>;
|
|
1143
1061
|
}> & {
|
|
1144
|
-
type: "
|
|
1062
|
+
type: "magicframe";
|
|
1063
|
+
name: string | null;
|
|
1145
1064
|
} & {
|
|
1146
1065
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1147
1066
|
}) | (Readonly<{
|
|
@@ -1153,38 +1072,40 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1153
1072
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1154
1073
|
strokeWidth: number;
|
|
1155
1074
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1156
|
-
roundness: {
|
|
1075
|
+
roundness: null | {
|
|
1157
1076
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1158
|
-
value?: number
|
|
1159
|
-
}
|
|
1077
|
+
value?: number;
|
|
1078
|
+
};
|
|
1160
1079
|
roughness: number;
|
|
1161
1080
|
opacity: number;
|
|
1162
1081
|
width: number;
|
|
1163
1082
|
height: number;
|
|
1164
|
-
angle: import("
|
|
1083
|
+
angle: import("@excalidraw/math").Radians;
|
|
1165
1084
|
seed: number;
|
|
1166
1085
|
version: number;
|
|
1167
1086
|
versionNonce: number;
|
|
1168
1087
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1169
1088
|
isDeleted: boolean;
|
|
1170
|
-
groupIds: readonly
|
|
1089
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1171
1090
|
frameId: string | null;
|
|
1172
|
-
boundElements: readonly
|
|
1173
|
-
id: string;
|
|
1174
|
-
type: "text" | "arrow";
|
|
1175
|
-
}>[] | null;
|
|
1091
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1176
1092
|
updated: number;
|
|
1177
1093
|
link: string | null;
|
|
1178
1094
|
locked: boolean;
|
|
1179
|
-
customData?: Record<string, any
|
|
1095
|
+
customData?: Record<string, any>;
|
|
1180
1096
|
}> & Readonly<{
|
|
1181
|
-
type: "
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1097
|
+
type: "text";
|
|
1098
|
+
fontSize: number;
|
|
1099
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1100
|
+
text: string;
|
|
1101
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1102
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1103
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1104
|
+
originalText: string;
|
|
1105
|
+
autoResize: boolean;
|
|
1106
|
+
lineHeight: number & {
|
|
1107
|
+
_brand: "unitlessLineHeight";
|
|
1108
|
+
};
|
|
1188
1109
|
}> & {
|
|
1189
1110
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1190
1111
|
}) | (Readonly<{
|
|
@@ -1196,36 +1117,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1196
1117
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1197
1118
|
strokeWidth: number;
|
|
1198
1119
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1199
|
-
roundness: {
|
|
1120
|
+
roundness: null | {
|
|
1200
1121
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1201
|
-
value?: number
|
|
1202
|
-
}
|
|
1122
|
+
value?: number;
|
|
1123
|
+
};
|
|
1203
1124
|
roughness: number;
|
|
1204
1125
|
opacity: number;
|
|
1205
1126
|
width: number;
|
|
1206
1127
|
height: number;
|
|
1207
|
-
angle: import("
|
|
1128
|
+
angle: import("@excalidraw/math").Radians;
|
|
1208
1129
|
seed: number;
|
|
1209
1130
|
version: number;
|
|
1210
1131
|
versionNonce: number;
|
|
1211
1132
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1212
1133
|
isDeleted: boolean;
|
|
1213
|
-
groupIds: readonly
|
|
1134
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1214
1135
|
frameId: string | null;
|
|
1215
|
-
boundElements: readonly
|
|
1216
|
-
id: string;
|
|
1217
|
-
type: "text" | "arrow";
|
|
1218
|
-
}>[] | null;
|
|
1136
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1219
1137
|
updated: number;
|
|
1220
1138
|
link: string | null;
|
|
1221
1139
|
locked: boolean;
|
|
1222
|
-
customData?: Record<string, any
|
|
1140
|
+
customData?: Record<string, any>;
|
|
1223
1141
|
}> & Readonly<{
|
|
1224
1142
|
type: "freedraw";
|
|
1225
|
-
points: readonly import("
|
|
1143
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1226
1144
|
pressures: readonly number[];
|
|
1227
1145
|
simulatePressure: boolean;
|
|
1228
|
-
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
1229
1146
|
}> & {
|
|
1230
1147
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1231
1148
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|