@excalidraw/math 0.18.0-d1f3982 → 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 +40 -10
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- 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 +19 -11
- package/dist/types/common/src/editorInterface.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +4 -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 +51 -40
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +5 -3
- 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 +7 -13
- 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/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +6 -2
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +4 -3
- package/dist/types/element/src/linearElementEditor.d.ts +23 -22
- package/dist/types/element/src/mutateElement.d.ts +5 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +1 -1
- 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/textElement.d.ts +1 -1
- 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 +3 -23
- 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 +152 -201
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -115
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +484 -869
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +113 -903
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +39 -56
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +129 -182
- 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 +48 -71
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +80 -113
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -71
- package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1427
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +241 -344
- package/dist/types/excalidraw/actions/actionGroup.d.ts +85 -126
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +131 -186
- package/dist/types/excalidraw/actions/actionLink.d.ts +56 -73
- package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -65
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
- package/dist/types/excalidraw/actions/actionProperties.d.ts +142 -2566
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +42 -63
- package/dist/types/excalidraw/actions/actionStyles.d.ts +39 -55
- 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 +54 -71
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -71
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -65
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -70
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -71
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -71
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- 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 +24 -20
- 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 +13 -38
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +93 -56
- 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/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- 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/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- 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/PropertiesPopover.d.ts +1 -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/Toast.d.ts +11 -7
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +5 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
- 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 +44 -21
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
- package/dist/types/excalidraw/components/shapes.d.ts +74 -1
- package/dist/types/excalidraw/data/blob.d.ts +328 -7
- 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 +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +19 -2
- 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 +109 -21
- 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 +3 -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 +2 -2
- 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 -8
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
- 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 -7
- 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 { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
3
2
|
export declare const actionToggleLinearEditor: {
|
|
4
3
|
name: "toggleLinearEditor";
|
|
@@ -9,40 +8,40 @@ export declare const actionToggleLinearEditor: {
|
|
|
9
8
|
category: "element";
|
|
10
9
|
};
|
|
11
10
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
12
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
13
12
|
appState: {
|
|
14
13
|
selectedLinearElement: {
|
|
15
14
|
isEditing: boolean;
|
|
16
|
-
elementId:
|
|
15
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"] & {
|
|
17
16
|
_brand: "excalidrawLinearElementId";
|
|
18
17
|
};
|
|
19
18
|
selectedPointsIndices: readonly number[] | null;
|
|
20
|
-
|
|
19
|
+
initialState: Readonly<{
|
|
21
20
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
22
21
|
lastClickedPoint: number;
|
|
23
|
-
|
|
24
|
-
origin: Readonly<{
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
}> | null;
|
|
22
|
+
origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
28
23
|
segmentMidpoint: {
|
|
29
24
|
value: import("@excalidraw/math").GlobalPoint | null;
|
|
30
25
|
index: number | null;
|
|
31
26
|
added: boolean;
|
|
32
27
|
};
|
|
28
|
+
arrowStartIsInside: boolean;
|
|
29
|
+
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
33
30
|
}>;
|
|
34
31
|
isDragging: boolean;
|
|
35
32
|
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
33
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
36
34
|
pointerOffset: Readonly<{
|
|
37
35
|
x: number;
|
|
38
36
|
y: number;
|
|
39
37
|
}>;
|
|
40
|
-
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
41
|
-
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
42
38
|
hoverPointIndex: number;
|
|
43
39
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
40
|
+
hoveredFocusPointBinding: "start" | "end" | null;
|
|
41
|
+
draggedFocusPointBinding: "start" | "end" | null;
|
|
44
42
|
elbowed: boolean;
|
|
45
43
|
customLineAngle: number | null;
|
|
44
|
+
pointerDownState: never;
|
|
46
45
|
};
|
|
47
46
|
contextMenu: {
|
|
48
47
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -51,18 +50,24 @@ export declare const actionToggleLinearEditor: {
|
|
|
51
50
|
} | null;
|
|
52
51
|
showWelcomeScreen: boolean;
|
|
53
52
|
isLoading: boolean;
|
|
54
|
-
errorMessage:
|
|
53
|
+
errorMessage: React.ReactNode;
|
|
55
54
|
activeEmbeddable: {
|
|
56
55
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
57
|
-
state: "
|
|
56
|
+
state: "hover" | "active";
|
|
58
57
|
} | null;
|
|
59
58
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
60
59
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
60
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
62
61
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
63
62
|
isBindingEnabled: boolean;
|
|
63
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
64
|
+
bindingPreference: "enabled" | "disabled";
|
|
65
|
+
isMidpointSnappingEnabled: boolean;
|
|
64
66
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
65
|
-
|
|
67
|
+
suggestedBinding: {
|
|
68
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
69
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
70
|
+
} | null;
|
|
66
71
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
67
72
|
frameRendering: {
|
|
68
73
|
enabled: boolean;
|
|
@@ -72,7 +77,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
72
77
|
};
|
|
73
78
|
editingFrame: string | null;
|
|
74
79
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
75
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
80
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
76
81
|
activeTool: {
|
|
77
82
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
78
83
|
locked: boolean;
|
|
@@ -90,19 +95,19 @@ export declare const actionToggleLinearEditor: {
|
|
|
90
95
|
exportScale: number;
|
|
91
96
|
currentItemStrokeColor: string;
|
|
92
97
|
currentItemBackgroundColor: string;
|
|
93
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
98
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
94
99
|
currentItemStrokeWidth: number;
|
|
95
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
100
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
96
101
|
currentItemRoughness: number;
|
|
97
102
|
currentItemOpacity: number;
|
|
98
|
-
currentItemFontFamily:
|
|
103
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
99
104
|
currentItemFontSize: number;
|
|
100
|
-
currentItemTextAlign:
|
|
105
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
101
106
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
102
107
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
103
|
-
currentHoveredFontFamily:
|
|
108
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
104
109
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
105
|
-
currentItemArrowType: "
|
|
110
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
106
111
|
viewBackgroundColor: string;
|
|
107
112
|
scrollX: number;
|
|
108
113
|
scrollY: number;
|
|
@@ -111,26 +116,30 @@ export declare const actionToggleLinearEditor: {
|
|
|
111
116
|
name: string | null;
|
|
112
117
|
isResizing: boolean;
|
|
113
118
|
isRotating: boolean;
|
|
114
|
-
zoom:
|
|
115
|
-
value: import("../types").NormalizedZoomValue;
|
|
116
|
-
}>;
|
|
119
|
+
zoom: import("../types").Zoom;
|
|
117
120
|
openMenu: "canvas" | null;
|
|
118
|
-
openPopup: "
|
|
121
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
119
122
|
openSidebar: {
|
|
120
|
-
name:
|
|
121
|
-
tab?:
|
|
123
|
+
name: import("../types").SidebarName;
|
|
124
|
+
tab?: import("../types").SidebarTabName;
|
|
122
125
|
} | null;
|
|
123
|
-
openDialog: {
|
|
126
|
+
openDialog: null | {
|
|
124
127
|
name: "imageExport" | "help" | "jsonExport";
|
|
125
128
|
} | {
|
|
126
129
|
name: "ttd";
|
|
127
|
-
tab: "
|
|
130
|
+
tab: "text-to-diagram" | "mermaid";
|
|
128
131
|
} | {
|
|
129
132
|
name: "commandPalette";
|
|
133
|
+
} | {
|
|
134
|
+
name: "settings";
|
|
130
135
|
} | {
|
|
131
136
|
name: "elementLinkSelector";
|
|
132
|
-
sourceElementId:
|
|
133
|
-
} |
|
|
137
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
138
|
+
} | {
|
|
139
|
+
name: "charts";
|
|
140
|
+
data: import("../charts").Spreadsheet;
|
|
141
|
+
rawText: string;
|
|
142
|
+
};
|
|
134
143
|
defaultSidebarDockedPreference: boolean;
|
|
135
144
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
136
145
|
selectedElementIds: Readonly<{
|
|
@@ -145,9 +154,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
145
154
|
selectedElementsAreBeingDragged: boolean;
|
|
146
155
|
shouldCacheIgnoreZoom: boolean;
|
|
147
156
|
toast: {
|
|
148
|
-
message:
|
|
149
|
-
closable?: boolean
|
|
150
|
-
duration?: number
|
|
157
|
+
message: React.ReactNode;
|
|
158
|
+
closable?: boolean;
|
|
159
|
+
duration?: number;
|
|
151
160
|
} | null;
|
|
152
161
|
zenModeEnabled: boolean;
|
|
153
162
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -158,44 +167,17 @@ export declare const actionToggleLinearEditor: {
|
|
|
158
167
|
selectedGroupIds: {
|
|
159
168
|
[groupId: string]: boolean;
|
|
160
169
|
};
|
|
161
|
-
editingGroupId:
|
|
170
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
162
171
|
width: number;
|
|
163
172
|
height: number;
|
|
164
173
|
offsetTop: number;
|
|
165
174
|
offsetLeft: number;
|
|
166
|
-
fileHandle:
|
|
167
|
-
collaborators: Map<import("../types").SocketId,
|
|
168
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
169
|
-
button?: "up" | "down" | undefined;
|
|
170
|
-
selectedElementIds?: Readonly<{
|
|
171
|
-
[id: string]: true;
|
|
172
|
-
}> | undefined;
|
|
173
|
-
username?: string | null | undefined;
|
|
174
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
175
|
-
color?: {
|
|
176
|
-
background: string;
|
|
177
|
-
stroke: string;
|
|
178
|
-
} | undefined;
|
|
179
|
-
avatarUrl?: string | undefined;
|
|
180
|
-
id?: string | undefined;
|
|
181
|
-
socketId?: import("../types").SocketId | undefined;
|
|
182
|
-
isCurrentUser?: boolean | undefined;
|
|
183
|
-
isInCall?: boolean | undefined;
|
|
184
|
-
isSpeaking?: boolean | undefined;
|
|
185
|
-
isMuted?: boolean | undefined;
|
|
186
|
-
}>>;
|
|
175
|
+
fileHandle: FileSystemFileHandle | null;
|
|
176
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
187
177
|
stats: {
|
|
188
178
|
open: boolean;
|
|
189
179
|
panels: number;
|
|
190
180
|
};
|
|
191
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
192
|
-
pasteDialog: {
|
|
193
|
-
shown: false;
|
|
194
|
-
data: null;
|
|
195
|
-
} | {
|
|
196
|
-
shown: true;
|
|
197
|
-
data: import("../charts").Spreadsheet;
|
|
198
|
-
};
|
|
199
181
|
showHyperlinkPopup: false | "info" | "editor";
|
|
200
182
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
201
183
|
originSnapOffset: {
|
|
@@ -206,15 +188,16 @@ export declare const actionToggleLinearEditor: {
|
|
|
206
188
|
userToFollow: import("../types").UserToFollow | null;
|
|
207
189
|
followedBy: Set<import("../types").SocketId>;
|
|
208
190
|
isCropping: boolean;
|
|
209
|
-
croppingElementId:
|
|
191
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
210
192
|
searchMatches: Readonly<{
|
|
211
|
-
focusedId:
|
|
193
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
212
194
|
matches: readonly import("../types").SearchMatch[];
|
|
213
195
|
}> | null;
|
|
214
196
|
activeLockedId: string | null;
|
|
215
197
|
lockedMultiSelections: {
|
|
216
198
|
[groupId: string]: true;
|
|
217
199
|
};
|
|
200
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
218
201
|
};
|
|
219
202
|
captureUpdate: "IMMEDIATELY";
|
|
220
203
|
};
|
|
@@ -232,7 +215,7 @@ export declare const actionTogglePolygon: {
|
|
|
232
215
|
category: "element";
|
|
233
216
|
};
|
|
234
217
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
235
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
218
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
236
219
|
elements: ((Readonly<{
|
|
237
220
|
id: string;
|
|
238
221
|
x: number;
|
|
@@ -242,10 +225,10 @@ export declare const actionTogglePolygon: {
|
|
|
242
225
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
243
226
|
strokeWidth: number;
|
|
244
227
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
245
|
-
roundness: {
|
|
228
|
+
roundness: null | {
|
|
246
229
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
247
|
-
value?: number
|
|
248
|
-
}
|
|
230
|
+
value?: number;
|
|
231
|
+
};
|
|
249
232
|
roughness: number;
|
|
250
233
|
opacity: number;
|
|
251
234
|
width: number;
|
|
@@ -256,22 +239,18 @@ export declare const actionTogglePolygon: {
|
|
|
256
239
|
versionNonce: number;
|
|
257
240
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
258
241
|
isDeleted: boolean;
|
|
259
|
-
groupIds: readonly
|
|
242
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
260
243
|
frameId: string | null;
|
|
261
|
-
boundElements: readonly
|
|
262
|
-
id: string;
|
|
263
|
-
type: "arrow" | "text";
|
|
264
|
-
}>[] | null;
|
|
244
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
265
245
|
updated: number;
|
|
266
246
|
link: string | null;
|
|
267
247
|
locked: boolean;
|
|
268
|
-
customData?: Record<string, any
|
|
248
|
+
customData?: Record<string, any>;
|
|
269
249
|
}> & Readonly<{
|
|
270
250
|
type: "line" | "arrow";
|
|
271
251
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
252
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
253
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
275
254
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
276
255
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
277
256
|
}> & {
|
|
@@ -285,10 +264,10 @@ export declare const actionTogglePolygon: {
|
|
|
285
264
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
286
265
|
strokeWidth: number;
|
|
287
266
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
288
|
-
roundness: {
|
|
267
|
+
roundness: null | {
|
|
289
268
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
290
|
-
value?: number
|
|
291
|
-
}
|
|
269
|
+
value?: number;
|
|
270
|
+
};
|
|
292
271
|
roughness: number;
|
|
293
272
|
opacity: number;
|
|
294
273
|
width: number;
|
|
@@ -299,16 +278,13 @@ export declare const actionTogglePolygon: {
|
|
|
299
278
|
versionNonce: number;
|
|
300
279
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
301
280
|
isDeleted: boolean;
|
|
302
|
-
groupIds: readonly
|
|
281
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
303
282
|
frameId: string | null;
|
|
304
|
-
boundElements: readonly
|
|
305
|
-
id: string;
|
|
306
|
-
type: "arrow" | "text";
|
|
307
|
-
}>[] | null;
|
|
283
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
308
284
|
updated: number;
|
|
309
285
|
link: string | null;
|
|
310
286
|
locked: boolean;
|
|
311
|
-
customData?: Record<string, any
|
|
287
|
+
customData?: Record<string, any>;
|
|
312
288
|
}> & {
|
|
313
289
|
type: "selection";
|
|
314
290
|
} & {
|
|
@@ -322,10 +298,10 @@ export declare const actionTogglePolygon: {
|
|
|
322
298
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
323
299
|
strokeWidth: number;
|
|
324
300
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
325
|
-
roundness: {
|
|
301
|
+
roundness: null | {
|
|
326
302
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
327
|
-
value?: number
|
|
328
|
-
}
|
|
303
|
+
value?: number;
|
|
304
|
+
};
|
|
329
305
|
roughness: number;
|
|
330
306
|
opacity: number;
|
|
331
307
|
width: number;
|
|
@@ -336,16 +312,13 @@ export declare const actionTogglePolygon: {
|
|
|
336
312
|
versionNonce: number;
|
|
337
313
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
338
314
|
isDeleted: boolean;
|
|
339
|
-
groupIds: readonly
|
|
315
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
340
316
|
frameId: string | null;
|
|
341
|
-
boundElements: readonly
|
|
342
|
-
id: string;
|
|
343
|
-
type: "arrow" | "text";
|
|
344
|
-
}>[] | null;
|
|
317
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
345
318
|
updated: number;
|
|
346
319
|
link: string | null;
|
|
347
320
|
locked: boolean;
|
|
348
|
-
customData?: Record<string, any
|
|
321
|
+
customData?: Record<string, any>;
|
|
349
322
|
}> & {
|
|
350
323
|
type: "rectangle";
|
|
351
324
|
} & {
|
|
@@ -359,10 +332,10 @@ export declare const actionTogglePolygon: {
|
|
|
359
332
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
360
333
|
strokeWidth: number;
|
|
361
334
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
362
|
-
roundness: {
|
|
335
|
+
roundness: null | {
|
|
363
336
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
364
|
-
value?: number
|
|
365
|
-
}
|
|
337
|
+
value?: number;
|
|
338
|
+
};
|
|
366
339
|
roughness: number;
|
|
367
340
|
opacity: number;
|
|
368
341
|
width: number;
|
|
@@ -373,16 +346,13 @@ export declare const actionTogglePolygon: {
|
|
|
373
346
|
versionNonce: number;
|
|
374
347
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
375
348
|
isDeleted: boolean;
|
|
376
|
-
groupIds: readonly
|
|
349
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
377
350
|
frameId: string | null;
|
|
378
|
-
boundElements: readonly
|
|
379
|
-
id: string;
|
|
380
|
-
type: "arrow" | "text";
|
|
381
|
-
}>[] | null;
|
|
351
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
382
352
|
updated: number;
|
|
383
353
|
link: string | null;
|
|
384
354
|
locked: boolean;
|
|
385
|
-
customData?: Record<string, any
|
|
355
|
+
customData?: Record<string, any>;
|
|
386
356
|
}> & {
|
|
387
357
|
type: "diamond";
|
|
388
358
|
} & {
|
|
@@ -396,10 +366,10 @@ export declare const actionTogglePolygon: {
|
|
|
396
366
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
397
367
|
strokeWidth: number;
|
|
398
368
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
399
|
-
roundness: {
|
|
369
|
+
roundness: null | {
|
|
400
370
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
401
|
-
value?: number
|
|
402
|
-
}
|
|
371
|
+
value?: number;
|
|
372
|
+
};
|
|
403
373
|
roughness: number;
|
|
404
374
|
opacity: number;
|
|
405
375
|
width: number;
|
|
@@ -410,16 +380,13 @@ export declare const actionTogglePolygon: {
|
|
|
410
380
|
versionNonce: number;
|
|
411
381
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
412
382
|
isDeleted: boolean;
|
|
413
|
-
groupIds: readonly
|
|
383
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
414
384
|
frameId: string | null;
|
|
415
|
-
boundElements: readonly
|
|
416
|
-
id: string;
|
|
417
|
-
type: "arrow" | "text";
|
|
418
|
-
}>[] | null;
|
|
385
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
419
386
|
updated: number;
|
|
420
387
|
link: string | null;
|
|
421
388
|
locked: boolean;
|
|
422
|
-
customData?: Record<string, any
|
|
389
|
+
customData?: Record<string, any>;
|
|
423
390
|
}> & {
|
|
424
391
|
type: "ellipse";
|
|
425
392
|
} & {
|
|
@@ -433,10 +400,10 @@ export declare const actionTogglePolygon: {
|
|
|
433
400
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
434
401
|
strokeWidth: number;
|
|
435
402
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
436
|
-
roundness: {
|
|
403
|
+
roundness: null | {
|
|
437
404
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
438
|
-
value?: number
|
|
439
|
-
}
|
|
405
|
+
value?: number;
|
|
406
|
+
};
|
|
440
407
|
roughness: number;
|
|
441
408
|
opacity: number;
|
|
442
409
|
width: number;
|
|
@@ -447,16 +414,13 @@ export declare const actionTogglePolygon: {
|
|
|
447
414
|
versionNonce: number;
|
|
448
415
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
449
416
|
isDeleted: boolean;
|
|
450
|
-
groupIds: readonly
|
|
417
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
451
418
|
frameId: string | null;
|
|
452
|
-
boundElements: readonly
|
|
453
|
-
id: string;
|
|
454
|
-
type: "arrow" | "text";
|
|
455
|
-
}>[] | null;
|
|
419
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
456
420
|
updated: number;
|
|
457
421
|
link: string | null;
|
|
458
422
|
locked: boolean;
|
|
459
|
-
customData?: Record<string, any
|
|
423
|
+
customData?: Record<string, any>;
|
|
460
424
|
}> & Readonly<{
|
|
461
425
|
type: "embeddable";
|
|
462
426
|
}> & {
|
|
@@ -470,10 +434,10 @@ export declare const actionTogglePolygon: {
|
|
|
470
434
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
471
435
|
strokeWidth: number;
|
|
472
436
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
473
|
-
roundness: {
|
|
437
|
+
roundness: null | {
|
|
474
438
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
475
|
-
value?: number
|
|
476
|
-
}
|
|
439
|
+
value?: number;
|
|
440
|
+
};
|
|
477
441
|
roughness: number;
|
|
478
442
|
opacity: number;
|
|
479
443
|
width: number;
|
|
@@ -484,21 +448,18 @@ export declare const actionTogglePolygon: {
|
|
|
484
448
|
versionNonce: number;
|
|
485
449
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
486
450
|
isDeleted: boolean;
|
|
487
|
-
groupIds: readonly
|
|
451
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
488
452
|
frameId: string | null;
|
|
489
|
-
boundElements: readonly
|
|
490
|
-
id: string;
|
|
491
|
-
type: "arrow" | "text";
|
|
492
|
-
}>[] | null;
|
|
453
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
493
454
|
updated: number;
|
|
494
455
|
link: string | null;
|
|
495
456
|
locked: boolean;
|
|
496
|
-
customData?: Record<string, any
|
|
457
|
+
customData?: Record<string, any>;
|
|
497
458
|
}> & Readonly<{
|
|
498
459
|
type: "iframe";
|
|
499
460
|
customData?: {
|
|
500
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
501
|
-
}
|
|
461
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
462
|
+
};
|
|
502
463
|
}> & {
|
|
503
464
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
504
465
|
}) | (Readonly<{
|
|
@@ -510,10 +471,10 @@ export declare const actionTogglePolygon: {
|
|
|
510
471
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
511
472
|
strokeWidth: number;
|
|
512
473
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
513
|
-
roundness: {
|
|
474
|
+
roundness: null | {
|
|
514
475
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
515
|
-
value?: number
|
|
516
|
-
}
|
|
476
|
+
value?: number;
|
|
477
|
+
};
|
|
517
478
|
roughness: number;
|
|
518
479
|
opacity: number;
|
|
519
480
|
width: number;
|
|
@@ -524,20 +485,17 @@ export declare const actionTogglePolygon: {
|
|
|
524
485
|
versionNonce: number;
|
|
525
486
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
526
487
|
isDeleted: boolean;
|
|
527
|
-
groupIds: readonly
|
|
488
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
528
489
|
frameId: string | null;
|
|
529
|
-
boundElements: readonly
|
|
530
|
-
id: string;
|
|
531
|
-
type: "arrow" | "text";
|
|
532
|
-
}>[] | null;
|
|
490
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
533
491
|
updated: number;
|
|
534
492
|
link: string | null;
|
|
535
493
|
locked: boolean;
|
|
536
|
-
customData?: Record<string, any
|
|
494
|
+
customData?: Record<string, any>;
|
|
537
495
|
}> & Readonly<{
|
|
538
496
|
type: "image";
|
|
539
497
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
540
|
-
status: "pending" | "
|
|
498
|
+
status: "pending" | "saved" | "error";
|
|
541
499
|
scale: [number, number];
|
|
542
500
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
543
501
|
}> & {
|
|
@@ -551,10 +509,10 @@ export declare const actionTogglePolygon: {
|
|
|
551
509
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
552
510
|
strokeWidth: number;
|
|
553
511
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
554
|
-
roundness: {
|
|
512
|
+
roundness: null | {
|
|
555
513
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
556
|
-
value?: number
|
|
557
|
-
}
|
|
514
|
+
value?: number;
|
|
515
|
+
};
|
|
558
516
|
roughness: number;
|
|
559
517
|
opacity: number;
|
|
560
518
|
width: number;
|
|
@@ -565,16 +523,13 @@ export declare const actionTogglePolygon: {
|
|
|
565
523
|
versionNonce: number;
|
|
566
524
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
567
525
|
isDeleted: boolean;
|
|
568
|
-
groupIds: readonly
|
|
526
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
569
527
|
frameId: string | null;
|
|
570
|
-
boundElements: readonly
|
|
571
|
-
id: string;
|
|
572
|
-
type: "arrow" | "text";
|
|
573
|
-
}>[] | null;
|
|
528
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
574
529
|
updated: number;
|
|
575
530
|
link: string | null;
|
|
576
531
|
locked: boolean;
|
|
577
|
-
customData?: Record<string, any
|
|
532
|
+
customData?: Record<string, any>;
|
|
578
533
|
}> & {
|
|
579
534
|
type: "frame";
|
|
580
535
|
name: string | null;
|
|
@@ -589,10 +544,10 @@ export declare const actionTogglePolygon: {
|
|
|
589
544
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
590
545
|
strokeWidth: number;
|
|
591
546
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
592
|
-
roundness: {
|
|
547
|
+
roundness: null | {
|
|
593
548
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
594
|
-
value?: number
|
|
595
|
-
}
|
|
549
|
+
value?: number;
|
|
550
|
+
};
|
|
596
551
|
roughness: number;
|
|
597
552
|
opacity: number;
|
|
598
553
|
width: number;
|
|
@@ -603,16 +558,13 @@ export declare const actionTogglePolygon: {
|
|
|
603
558
|
versionNonce: number;
|
|
604
559
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
605
560
|
isDeleted: boolean;
|
|
606
|
-
groupIds: readonly
|
|
561
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
607
562
|
frameId: string | null;
|
|
608
|
-
boundElements: readonly
|
|
609
|
-
id: string;
|
|
610
|
-
type: "arrow" | "text";
|
|
611
|
-
}>[] | null;
|
|
563
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
612
564
|
updated: number;
|
|
613
565
|
link: string | null;
|
|
614
566
|
locked: boolean;
|
|
615
|
-
customData?: Record<string, any
|
|
567
|
+
customData?: Record<string, any>;
|
|
616
568
|
}> & {
|
|
617
569
|
type: "magicframe";
|
|
618
570
|
name: string | null;
|
|
@@ -627,10 +579,10 @@ export declare const actionTogglePolygon: {
|
|
|
627
579
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
628
580
|
strokeWidth: number;
|
|
629
581
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
630
|
-
roundness: {
|
|
582
|
+
roundness: null | {
|
|
631
583
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
632
|
-
value?: number
|
|
633
|
-
}
|
|
584
|
+
value?: number;
|
|
585
|
+
};
|
|
634
586
|
roughness: number;
|
|
635
587
|
opacity: number;
|
|
636
588
|
width: number;
|
|
@@ -641,24 +593,21 @@ export declare const actionTogglePolygon: {
|
|
|
641
593
|
versionNonce: number;
|
|
642
594
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
643
595
|
isDeleted: boolean;
|
|
644
|
-
groupIds: readonly
|
|
596
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
645
597
|
frameId: string | null;
|
|
646
|
-
boundElements: readonly
|
|
647
|
-
id: string;
|
|
648
|
-
type: "arrow" | "text";
|
|
649
|
-
}>[] | null;
|
|
598
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
650
599
|
updated: number;
|
|
651
600
|
link: string | null;
|
|
652
601
|
locked: boolean;
|
|
653
|
-
customData?: Record<string, any
|
|
602
|
+
customData?: Record<string, any>;
|
|
654
603
|
}> & Readonly<{
|
|
655
604
|
type: "text";
|
|
656
605
|
fontSize: number;
|
|
657
|
-
fontFamily:
|
|
606
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
658
607
|
text: string;
|
|
659
|
-
textAlign:
|
|
660
|
-
verticalAlign:
|
|
661
|
-
containerId:
|
|
608
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
609
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
610
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
662
611
|
originalText: string;
|
|
663
612
|
autoResize: boolean;
|
|
664
613
|
lineHeight: number & {
|
|
@@ -675,10 +624,10 @@ export declare const actionTogglePolygon: {
|
|
|
675
624
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
676
625
|
strokeWidth: number;
|
|
677
626
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
678
|
-
roundness: {
|
|
627
|
+
roundness: null | {
|
|
679
628
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
680
|
-
value?: number
|
|
681
|
-
}
|
|
629
|
+
value?: number;
|
|
630
|
+
};
|
|
682
631
|
roughness: number;
|
|
683
632
|
opacity: number;
|
|
684
633
|
width: number;
|
|
@@ -689,22 +638,18 @@ export declare const actionTogglePolygon: {
|
|
|
689
638
|
versionNonce: number;
|
|
690
639
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
691
640
|
isDeleted: boolean;
|
|
692
|
-
groupIds: readonly
|
|
641
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
693
642
|
frameId: string | null;
|
|
694
|
-
boundElements: readonly
|
|
695
|
-
id: string;
|
|
696
|
-
type: "arrow" | "text";
|
|
697
|
-
}>[] | null;
|
|
643
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
698
644
|
updated: number;
|
|
699
645
|
link: string | null;
|
|
700
646
|
locked: boolean;
|
|
701
|
-
customData?: Record<string, any
|
|
647
|
+
customData?: Record<string, any>;
|
|
702
648
|
}> & Readonly<{
|
|
703
649
|
type: "freedraw";
|
|
704
650
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
705
651
|
pressures: readonly number[];
|
|
706
652
|
simulatePressure: boolean;
|
|
707
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
708
653
|
}> & {
|
|
709
654
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
710
655
|
}))[];
|