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