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