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