@excalidraw/element 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 +6064 -3063
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +19 -18
- 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 -26
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +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 +53 -41
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +11 -5
- 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 +6 -2
- 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/visualdebug.d.ts +59 -0
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +131 -171
- 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 +557 -902
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -882
- 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 +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -57
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +46 -60
- package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
- 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 +279 -370
- package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +176 -197
- package/dist/types/excalidraw/actions/actionLink.d.ts +43 -57
- package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -424
- 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 +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -54
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +46 -60
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- 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 +22 -14
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +57 -19
- 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 +9 -3
- 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,36 +714,32 @@ 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: "arrow" | "text";
|
|
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
739
|
type: "line" | "arrow";
|
|
796
|
-
points: readonly import("
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
740
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
741
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
742
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
800
743
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
801
744
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
802
745
|
}> & {
|
|
@@ -810,30 +753,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
810
753
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
811
754
|
strokeWidth: number;
|
|
812
755
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
813
|
-
roundness: {
|
|
756
|
+
roundness: null | {
|
|
814
757
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
815
|
-
value?: number
|
|
816
|
-
}
|
|
758
|
+
value?: number;
|
|
759
|
+
};
|
|
817
760
|
roughness: number;
|
|
818
761
|
opacity: number;
|
|
819
762
|
width: number;
|
|
820
763
|
height: number;
|
|
821
|
-
angle: import("
|
|
764
|
+
angle: import("@excalidraw/math").Radians;
|
|
822
765
|
seed: number;
|
|
823
766
|
version: number;
|
|
824
767
|
versionNonce: number;
|
|
825
768
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
826
769
|
isDeleted: boolean;
|
|
827
|
-
groupIds: readonly
|
|
770
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
828
771
|
frameId: string | null;
|
|
829
|
-
boundElements: readonly
|
|
830
|
-
id: string;
|
|
831
|
-
type: "arrow" | "text";
|
|
832
|
-
}>[] | null;
|
|
772
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
833
773
|
updated: number;
|
|
834
774
|
link: string | null;
|
|
835
775
|
locked: boolean;
|
|
836
|
-
customData?: Record<string, any
|
|
776
|
+
customData?: Record<string, any>;
|
|
837
777
|
}> & {
|
|
838
778
|
type: "selection";
|
|
839
779
|
} & {
|
|
@@ -847,30 +787,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
847
787
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
848
788
|
strokeWidth: number;
|
|
849
789
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
850
|
-
roundness: {
|
|
790
|
+
roundness: null | {
|
|
851
791
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
852
|
-
value?: number
|
|
853
|
-
}
|
|
792
|
+
value?: number;
|
|
793
|
+
};
|
|
854
794
|
roughness: number;
|
|
855
795
|
opacity: number;
|
|
856
796
|
width: number;
|
|
857
797
|
height: number;
|
|
858
|
-
angle: import("
|
|
798
|
+
angle: import("@excalidraw/math").Radians;
|
|
859
799
|
seed: number;
|
|
860
800
|
version: number;
|
|
861
801
|
versionNonce: number;
|
|
862
802
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
863
803
|
isDeleted: boolean;
|
|
864
|
-
groupIds: readonly
|
|
804
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
865
805
|
frameId: string | null;
|
|
866
|
-
boundElements: readonly
|
|
867
|
-
id: string;
|
|
868
|
-
type: "arrow" | "text";
|
|
869
|
-
}>[] | null;
|
|
806
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
870
807
|
updated: number;
|
|
871
808
|
link: string | null;
|
|
872
809
|
locked: boolean;
|
|
873
|
-
customData?: Record<string, any
|
|
810
|
+
customData?: Record<string, any>;
|
|
874
811
|
}> & {
|
|
875
812
|
type: "rectangle";
|
|
876
813
|
} & {
|
|
@@ -884,30 +821,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
884
821
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
885
822
|
strokeWidth: number;
|
|
886
823
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
887
|
-
roundness: {
|
|
824
|
+
roundness: null | {
|
|
888
825
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
889
|
-
value?: number
|
|
890
|
-
}
|
|
826
|
+
value?: number;
|
|
827
|
+
};
|
|
891
828
|
roughness: number;
|
|
892
829
|
opacity: number;
|
|
893
830
|
width: number;
|
|
894
831
|
height: number;
|
|
895
|
-
angle: import("
|
|
832
|
+
angle: import("@excalidraw/math").Radians;
|
|
896
833
|
seed: number;
|
|
897
834
|
version: number;
|
|
898
835
|
versionNonce: number;
|
|
899
836
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
900
837
|
isDeleted: boolean;
|
|
901
|
-
groupIds: readonly
|
|
838
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
902
839
|
frameId: string | null;
|
|
903
|
-
boundElements: readonly
|
|
904
|
-
id: string;
|
|
905
|
-
type: "arrow" | "text";
|
|
906
|
-
}>[] | null;
|
|
840
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
907
841
|
updated: number;
|
|
908
842
|
link: string | null;
|
|
909
843
|
locked: boolean;
|
|
910
|
-
customData?: Record<string, any
|
|
844
|
+
customData?: Record<string, any>;
|
|
911
845
|
}> & {
|
|
912
846
|
type: "diamond";
|
|
913
847
|
} & {
|
|
@@ -921,30 +855,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
921
855
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
922
856
|
strokeWidth: number;
|
|
923
857
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
924
|
-
roundness: {
|
|
858
|
+
roundness: null | {
|
|
925
859
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
926
|
-
value?: number
|
|
927
|
-
}
|
|
860
|
+
value?: number;
|
|
861
|
+
};
|
|
928
862
|
roughness: number;
|
|
929
863
|
opacity: number;
|
|
930
864
|
width: number;
|
|
931
865
|
height: number;
|
|
932
|
-
angle: import("
|
|
866
|
+
angle: import("@excalidraw/math").Radians;
|
|
933
867
|
seed: number;
|
|
934
868
|
version: number;
|
|
935
869
|
versionNonce: number;
|
|
936
870
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
937
871
|
isDeleted: boolean;
|
|
938
|
-
groupIds: readonly
|
|
872
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
939
873
|
frameId: string | null;
|
|
940
|
-
boundElements: readonly
|
|
941
|
-
id: string;
|
|
942
|
-
type: "arrow" | "text";
|
|
943
|
-
}>[] | null;
|
|
874
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
944
875
|
updated: number;
|
|
945
876
|
link: string | null;
|
|
946
877
|
locked: boolean;
|
|
947
|
-
customData?: Record<string, any
|
|
878
|
+
customData?: Record<string, any>;
|
|
948
879
|
}> & {
|
|
949
880
|
type: "ellipse";
|
|
950
881
|
} & {
|
|
@@ -958,30 +889,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
958
889
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
959
890
|
strokeWidth: number;
|
|
960
891
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
961
|
-
roundness: {
|
|
892
|
+
roundness: null | {
|
|
962
893
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
963
|
-
value?: number
|
|
964
|
-
}
|
|
894
|
+
value?: number;
|
|
895
|
+
};
|
|
965
896
|
roughness: number;
|
|
966
897
|
opacity: number;
|
|
967
898
|
width: number;
|
|
968
899
|
height: number;
|
|
969
|
-
angle: import("
|
|
900
|
+
angle: import("@excalidraw/math").Radians;
|
|
970
901
|
seed: number;
|
|
971
902
|
version: number;
|
|
972
903
|
versionNonce: number;
|
|
973
904
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
974
905
|
isDeleted: boolean;
|
|
975
|
-
groupIds: readonly
|
|
906
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
976
907
|
frameId: string | null;
|
|
977
|
-
boundElements: readonly
|
|
978
|
-
id: string;
|
|
979
|
-
type: "arrow" | "text";
|
|
980
|
-
}>[] | null;
|
|
908
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
981
909
|
updated: number;
|
|
982
910
|
link: string | null;
|
|
983
911
|
locked: boolean;
|
|
984
|
-
customData?: Record<string, any
|
|
912
|
+
customData?: Record<string, any>;
|
|
985
913
|
}> & Readonly<{
|
|
986
914
|
type: "embeddable";
|
|
987
915
|
}> & {
|
|
@@ -995,35 +923,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
995
923
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
996
924
|
strokeWidth: number;
|
|
997
925
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
998
|
-
roundness: {
|
|
926
|
+
roundness: null | {
|
|
999
927
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1000
|
-
value?: number
|
|
1001
|
-
}
|
|
928
|
+
value?: number;
|
|
929
|
+
};
|
|
1002
930
|
roughness: number;
|
|
1003
931
|
opacity: number;
|
|
1004
932
|
width: number;
|
|
1005
933
|
height: number;
|
|
1006
|
-
angle: import("
|
|
934
|
+
angle: import("@excalidraw/math").Radians;
|
|
1007
935
|
seed: number;
|
|
1008
936
|
version: number;
|
|
1009
937
|
versionNonce: number;
|
|
1010
938
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1011
939
|
isDeleted: boolean;
|
|
1012
|
-
groupIds: readonly
|
|
940
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1013
941
|
frameId: string | null;
|
|
1014
|
-
boundElements: readonly
|
|
1015
|
-
id: string;
|
|
1016
|
-
type: "arrow" | "text";
|
|
1017
|
-
}>[] | null;
|
|
942
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1018
943
|
updated: number;
|
|
1019
944
|
link: string | null;
|
|
1020
945
|
locked: boolean;
|
|
1021
|
-
customData?: Record<string, any
|
|
946
|
+
customData?: Record<string, any>;
|
|
1022
947
|
}> & Readonly<{
|
|
1023
948
|
type: "iframe";
|
|
1024
949
|
customData?: {
|
|
1025
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
1026
|
-
}
|
|
950
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
951
|
+
};
|
|
1027
952
|
}> & {
|
|
1028
953
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1029
954
|
}) | (Readonly<{
|
|
@@ -1035,34 +960,31 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1035
960
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1036
961
|
strokeWidth: number;
|
|
1037
962
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1038
|
-
roundness: {
|
|
963
|
+
roundness: null | {
|
|
1039
964
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1040
|
-
value?: number
|
|
1041
|
-
}
|
|
965
|
+
value?: number;
|
|
966
|
+
};
|
|
1042
967
|
roughness: number;
|
|
1043
968
|
opacity: number;
|
|
1044
969
|
width: number;
|
|
1045
970
|
height: number;
|
|
1046
|
-
angle: import("
|
|
971
|
+
angle: import("@excalidraw/math").Radians;
|
|
1047
972
|
seed: number;
|
|
1048
973
|
version: number;
|
|
1049
974
|
versionNonce: number;
|
|
1050
975
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1051
976
|
isDeleted: boolean;
|
|
1052
|
-
groupIds: readonly
|
|
977
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1053
978
|
frameId: string | null;
|
|
1054
|
-
boundElements: readonly
|
|
1055
|
-
id: string;
|
|
1056
|
-
type: "arrow" | "text";
|
|
1057
|
-
}>[] | null;
|
|
979
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1058
980
|
updated: number;
|
|
1059
981
|
link: string | null;
|
|
1060
982
|
locked: boolean;
|
|
1061
|
-
customData?: Record<string, any
|
|
983
|
+
customData?: Record<string, any>;
|
|
1062
984
|
}> & Readonly<{
|
|
1063
985
|
type: "image";
|
|
1064
986
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1065
|
-
status: "pending" | "
|
|
987
|
+
status: "pending" | "saved" | "error";
|
|
1066
988
|
scale: [number, number];
|
|
1067
989
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1068
990
|
}> & {
|
|
@@ -1076,30 +998,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1076
998
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1077
999
|
strokeWidth: number;
|
|
1078
1000
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1079
|
-
roundness: {
|
|
1001
|
+
roundness: null | {
|
|
1080
1002
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1081
|
-
value?: number
|
|
1082
|
-
}
|
|
1003
|
+
value?: number;
|
|
1004
|
+
};
|
|
1083
1005
|
roughness: number;
|
|
1084
1006
|
opacity: number;
|
|
1085
1007
|
width: number;
|
|
1086
1008
|
height: number;
|
|
1087
|
-
angle: import("
|
|
1009
|
+
angle: import("@excalidraw/math").Radians;
|
|
1088
1010
|
seed: number;
|
|
1089
1011
|
version: number;
|
|
1090
1012
|
versionNonce: number;
|
|
1091
1013
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1092
1014
|
isDeleted: boolean;
|
|
1093
|
-
groupIds: readonly
|
|
1015
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1094
1016
|
frameId: string | null;
|
|
1095
|
-
boundElements: readonly
|
|
1096
|
-
id: string;
|
|
1097
|
-
type: "arrow" | "text";
|
|
1098
|
-
}>[] | null;
|
|
1017
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1099
1018
|
updated: number;
|
|
1100
1019
|
link: string | null;
|
|
1101
1020
|
locked: boolean;
|
|
1102
|
-
customData?: Record<string, any
|
|
1021
|
+
customData?: Record<string, any>;
|
|
1103
1022
|
}> & {
|
|
1104
1023
|
type: "frame";
|
|
1105
1024
|
name: string | null;
|
|
@@ -1114,30 +1033,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1114
1033
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1115
1034
|
strokeWidth: number;
|
|
1116
1035
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1117
|
-
roundness: {
|
|
1036
|
+
roundness: null | {
|
|
1118
1037
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1119
|
-
value?: number
|
|
1120
|
-
}
|
|
1038
|
+
value?: number;
|
|
1039
|
+
};
|
|
1121
1040
|
roughness: number;
|
|
1122
1041
|
opacity: number;
|
|
1123
1042
|
width: number;
|
|
1124
1043
|
height: number;
|
|
1125
|
-
angle: import("
|
|
1044
|
+
angle: import("@excalidraw/math").Radians;
|
|
1126
1045
|
seed: number;
|
|
1127
1046
|
version: number;
|
|
1128
1047
|
versionNonce: number;
|
|
1129
1048
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1130
1049
|
isDeleted: boolean;
|
|
1131
|
-
groupIds: readonly
|
|
1050
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1132
1051
|
frameId: string | null;
|
|
1133
|
-
boundElements: readonly
|
|
1134
|
-
id: string;
|
|
1135
|
-
type: "arrow" | "text";
|
|
1136
|
-
}>[] | null;
|
|
1052
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1137
1053
|
updated: number;
|
|
1138
1054
|
link: string | null;
|
|
1139
1055
|
locked: boolean;
|
|
1140
|
-
customData?: Record<string, any
|
|
1056
|
+
customData?: Record<string, any>;
|
|
1141
1057
|
}> & {
|
|
1142
1058
|
type: "magicframe";
|
|
1143
1059
|
name: string | null;
|
|
@@ -1152,38 +1068,35 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1152
1068
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1153
1069
|
strokeWidth: number;
|
|
1154
1070
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1155
|
-
roundness: {
|
|
1071
|
+
roundness: null | {
|
|
1156
1072
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
1157
|
-
value?: number
|
|
1158
|
-
}
|
|
1073
|
+
value?: number;
|
|
1074
|
+
};
|
|
1159
1075
|
roughness: number;
|
|
1160
1076
|
opacity: number;
|
|
1161
1077
|
width: number;
|
|
1162
1078
|
height: number;
|
|
1163
|
-
angle: import("
|
|
1079
|
+
angle: import("@excalidraw/math").Radians;
|
|
1164
1080
|
seed: number;
|
|
1165
1081
|
version: number;
|
|
1166
1082
|
versionNonce: number;
|
|
1167
1083
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1168
1084
|
isDeleted: boolean;
|
|
1169
|
-
groupIds: readonly
|
|
1085
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
1170
1086
|
frameId: string | null;
|
|
1171
|
-
boundElements: readonly
|
|
1172
|
-
id: string;
|
|
1173
|
-
type: "arrow" | "text";
|
|
1174
|
-
}>[] | null;
|
|
1087
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1175
1088
|
updated: number;
|
|
1176
1089
|
link: string | null;
|
|
1177
1090
|
locked: boolean;
|
|
1178
|
-
customData?: Record<string, any
|
|
1091
|
+
customData?: Record<string, any>;
|
|
1179
1092
|
}> & Readonly<{
|
|
1180
1093
|
type: "text";
|
|
1181
1094
|
fontSize: number;
|
|
1182
|
-
fontFamily:
|
|
1095
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1183
1096
|
text: string;
|
|
1184
|
-
textAlign:
|
|
1185
|
-
verticalAlign:
|
|
1186
|
-
containerId:
|
|
1097
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1098
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1099
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
1187
1100
|
originalText: string;
|
|
1188
1101
|
autoResize: boolean;
|
|
1189
1102
|
lineHeight: number & {
|
|
@@ -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: "arrow" | "text";
|
|
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>)[];
|