@excalidraw/element 0.18.0-c141960 → 0.18.0-c1dbbdf
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 +2698 -954
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +18 -18
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +17 -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 +2 -1
- 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 +46 -38
- package/dist/types/element/src/Scene.d.ts +5 -3
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +19 -12
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +4 -3
- 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 +5 -1
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +6 -2
- 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 +0 -6
- 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 +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +3 -23
- package/dist/types/element/src/typeChecks.d.ts +2 -4
- package/dist/types/element/src/types.d.ts +1 -1
- package/dist/types/element/src/utils.d.ts +8 -4
- package/dist/types/{common → element}/src/visualdebug.d.ts +20 -2
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +92 -153
- package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -105
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +383 -618
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +64 -105
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -52
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +106 -169
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +24 -49
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -106
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionExport.d.ts +126 -211
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionFrame.d.ts +221 -338
- package/dist/types/excalidraw/actions/actionGroup.d.ts +68 -117
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +134 -189
- package/dist/types/excalidraw/actions/actionLink.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionMenu.d.ts +23 -48
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionProperties.d.ts +79 -120
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +34 -59
- package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -51
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +22 -47
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +32 -53
- package/dist/types/excalidraw/actions/actionZindex.d.ts +0 -1
- package/dist/types/excalidraw/actions/index.d.ts +2 -0
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- 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 +1 -1
- package/dist/types/excalidraw/appState.d.ts +12 -10
- 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 +11 -35
- package/dist/types/excalidraw/components/Actions.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +43 -44
- 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 +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
- 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/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/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/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/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/TTDDialogTrigger.d.ts +1 -1
- 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/TTDStreamFetch.d.ts +24 -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 +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -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 +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +22 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -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/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +323 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +160 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +6 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
- 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 +7 -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/types.d.ts +25 -14
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/point.d.ts +6 -1
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +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 +9 -3
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -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";
|
|
@@ -13,31 +12,33 @@ export declare const actionToggleLinearEditor: {
|
|
|
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
|
-
origin: Readonly<import("
|
|
22
|
+
origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
24
23
|
segmentMidpoint: {
|
|
25
|
-
value: import("
|
|
24
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
26
25
|
index: number | null;
|
|
27
26
|
added: boolean;
|
|
28
27
|
};
|
|
29
28
|
arrowStartIsInside: boolean;
|
|
30
|
-
altFocusPoint: Readonly<import("
|
|
29
|
+
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
31
30
|
}>;
|
|
32
31
|
isDragging: boolean;
|
|
33
|
-
lastUncommittedPoint: import("
|
|
34
|
-
lastCommittedPoint: import("
|
|
32
|
+
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
33
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
35
34
|
pointerOffset: Readonly<{
|
|
36
35
|
x: number;
|
|
37
36
|
y: number;
|
|
38
37
|
}>;
|
|
39
38
|
hoverPointIndex: number;
|
|
40
|
-
segmentMidPointHoveredCoords: import("
|
|
39
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
40
|
+
hoveredFocusPointBinding: "start" | "end" | null;
|
|
41
|
+
draggedFocusPointBinding: "start" | "end" | null;
|
|
41
42
|
elbowed: boolean;
|
|
42
43
|
customLineAngle: number | null;
|
|
43
44
|
pointerDownState: never;
|
|
@@ -49,18 +50,23 @@ export declare const actionToggleLinearEditor: {
|
|
|
49
50
|
} | null;
|
|
50
51
|
showWelcomeScreen: boolean;
|
|
51
52
|
isLoading: boolean;
|
|
52
|
-
errorMessage:
|
|
53
|
+
errorMessage: React.ReactNode;
|
|
53
54
|
activeEmbeddable: {
|
|
54
55
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
55
|
-
state: "
|
|
56
|
+
state: "hover" | "active";
|
|
56
57
|
} | null;
|
|
57
58
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
58
59
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
60
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
60
61
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
62
|
isBindingEnabled: boolean;
|
|
63
|
+
bindingPreference: "enabled" | "disabled";
|
|
64
|
+
isMidpointSnappingEnabled: boolean;
|
|
62
65
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
63
|
-
suggestedBinding:
|
|
66
|
+
suggestedBinding: {
|
|
67
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
68
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
69
|
+
} | null;
|
|
64
70
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
65
71
|
frameRendering: {
|
|
66
72
|
enabled: boolean;
|
|
@@ -88,19 +94,19 @@ export declare const actionToggleLinearEditor: {
|
|
|
88
94
|
exportScale: number;
|
|
89
95
|
currentItemStrokeColor: string;
|
|
90
96
|
currentItemBackgroundColor: string;
|
|
91
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
97
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
92
98
|
currentItemStrokeWidth: number;
|
|
93
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
99
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
94
100
|
currentItemRoughness: number;
|
|
95
101
|
currentItemOpacity: number;
|
|
96
|
-
currentItemFontFamily:
|
|
102
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
97
103
|
currentItemFontSize: number;
|
|
98
|
-
currentItemTextAlign:
|
|
104
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
99
105
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
100
106
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
101
|
-
currentHoveredFontFamily:
|
|
107
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
102
108
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
103
|
-
currentItemArrowType: "
|
|
109
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
104
110
|
viewBackgroundColor: string;
|
|
105
111
|
scrollX: number;
|
|
106
112
|
scrollY: number;
|
|
@@ -109,28 +115,30 @@ export declare const actionToggleLinearEditor: {
|
|
|
109
115
|
name: string | null;
|
|
110
116
|
isResizing: boolean;
|
|
111
117
|
isRotating: boolean;
|
|
112
|
-
zoom:
|
|
113
|
-
value: import("../types").NormalizedZoomValue;
|
|
114
|
-
}>;
|
|
118
|
+
zoom: import("../types").Zoom;
|
|
115
119
|
openMenu: "canvas" | null;
|
|
116
|
-
openPopup: "
|
|
120
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
117
121
|
openSidebar: {
|
|
118
|
-
name:
|
|
119
|
-
tab?:
|
|
122
|
+
name: import("../types").SidebarName;
|
|
123
|
+
tab?: import("../types").SidebarTabName;
|
|
120
124
|
} | null;
|
|
121
|
-
openDialog: {
|
|
125
|
+
openDialog: null | {
|
|
122
126
|
name: "imageExport" | "help" | "jsonExport";
|
|
123
127
|
} | {
|
|
124
128
|
name: "ttd";
|
|
125
|
-
tab: "
|
|
129
|
+
tab: "text-to-diagram" | "mermaid";
|
|
126
130
|
} | {
|
|
127
131
|
name: "commandPalette";
|
|
128
132
|
} | {
|
|
129
133
|
name: "settings";
|
|
130
134
|
} | {
|
|
131
135
|
name: "elementLinkSelector";
|
|
132
|
-
sourceElementId:
|
|
133
|
-
} |
|
|
136
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
137
|
+
} | {
|
|
138
|
+
name: "charts";
|
|
139
|
+
data: import("../charts").Spreadsheet;
|
|
140
|
+
rawText: string;
|
|
141
|
+
};
|
|
134
142
|
defaultSidebarDockedPreference: boolean;
|
|
135
143
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
136
144
|
selectedElementIds: Readonly<{
|
|
@@ -146,8 +154,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
146
154
|
shouldCacheIgnoreZoom: boolean;
|
|
147
155
|
toast: {
|
|
148
156
|
message: string;
|
|
149
|
-
closable?: boolean
|
|
150
|
-
duration?: number
|
|
157
|
+
closable?: boolean;
|
|
158
|
+
duration?: number;
|
|
151
159
|
} | null;
|
|
152
160
|
zenModeEnabled: boolean;
|
|
153
161
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -158,44 +166,17 @@ export declare const actionToggleLinearEditor: {
|
|
|
158
166
|
selectedGroupIds: {
|
|
159
167
|
[groupId: string]: boolean;
|
|
160
168
|
};
|
|
161
|
-
editingGroupId:
|
|
169
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
162
170
|
width: number;
|
|
163
171
|
height: number;
|
|
164
172
|
offsetTop: number;
|
|
165
173
|
offsetLeft: number;
|
|
166
174
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
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
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
187
176
|
stats: {
|
|
188
177
|
open: boolean;
|
|
189
178
|
panels: number;
|
|
190
179
|
};
|
|
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
180
|
showHyperlinkPopup: false | "info" | "editor";
|
|
200
181
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
201
182
|
originSnapOffset: {
|
|
@@ -206,9 +187,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
206
187
|
userToFollow: import("../types").UserToFollow | null;
|
|
207
188
|
followedBy: Set<import("../types").SocketId>;
|
|
208
189
|
isCropping: boolean;
|
|
209
|
-
croppingElementId:
|
|
190
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
210
191
|
searchMatches: Readonly<{
|
|
211
|
-
focusedId:
|
|
192
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
212
193
|
matches: readonly import("../types").SearchMatch[];
|
|
213
194
|
}> | null;
|
|
214
195
|
activeLockedId: string | null;
|
|
@@ -243,33 +224,30 @@ export declare const actionTogglePolygon: {
|
|
|
243
224
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
244
225
|
strokeWidth: number;
|
|
245
226
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
246
|
-
roundness: {
|
|
227
|
+
roundness: null | {
|
|
247
228
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
248
|
-
value?: number
|
|
249
|
-
}
|
|
229
|
+
value?: number;
|
|
230
|
+
};
|
|
250
231
|
roughness: number;
|
|
251
232
|
opacity: number;
|
|
252
233
|
width: number;
|
|
253
234
|
height: number;
|
|
254
|
-
angle: import("
|
|
235
|
+
angle: import("@excalidraw/math").Radians;
|
|
255
236
|
seed: number;
|
|
256
237
|
version: number;
|
|
257
238
|
versionNonce: number;
|
|
258
239
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
259
240
|
isDeleted: boolean;
|
|
260
|
-
groupIds: readonly
|
|
241
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
261
242
|
frameId: string | null;
|
|
262
|
-
boundElements: readonly
|
|
263
|
-
id: string;
|
|
264
|
-
type: "arrow" | "text";
|
|
265
|
-
}>[] | null;
|
|
243
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
266
244
|
updated: number;
|
|
267
245
|
link: string | null;
|
|
268
246
|
locked: boolean;
|
|
269
|
-
customData?: Record<string, any
|
|
247
|
+
customData?: Record<string, any>;
|
|
270
248
|
}> & Readonly<{
|
|
271
249
|
type: "line" | "arrow";
|
|
272
|
-
points: readonly import("
|
|
250
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
273
251
|
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
274
252
|
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
275
253
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
@@ -285,30 +263,27 @@ export declare const actionTogglePolygon: {
|
|
|
285
263
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
286
264
|
strokeWidth: number;
|
|
287
265
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
288
|
-
roundness: {
|
|
266
|
+
roundness: null | {
|
|
289
267
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
290
|
-
value?: number
|
|
291
|
-
}
|
|
268
|
+
value?: number;
|
|
269
|
+
};
|
|
292
270
|
roughness: number;
|
|
293
271
|
opacity: number;
|
|
294
272
|
width: number;
|
|
295
273
|
height: number;
|
|
296
|
-
angle: import("
|
|
274
|
+
angle: import("@excalidraw/math").Radians;
|
|
297
275
|
seed: number;
|
|
298
276
|
version: number;
|
|
299
277
|
versionNonce: number;
|
|
300
278
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
301
279
|
isDeleted: boolean;
|
|
302
|
-
groupIds: readonly
|
|
280
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
303
281
|
frameId: string | null;
|
|
304
|
-
boundElements: readonly
|
|
305
|
-
id: string;
|
|
306
|
-
type: "arrow" | "text";
|
|
307
|
-
}>[] | null;
|
|
282
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
308
283
|
updated: number;
|
|
309
284
|
link: string | null;
|
|
310
285
|
locked: boolean;
|
|
311
|
-
customData?: Record<string, any
|
|
286
|
+
customData?: Record<string, any>;
|
|
312
287
|
}> & {
|
|
313
288
|
type: "selection";
|
|
314
289
|
} & {
|
|
@@ -322,30 +297,27 @@ export declare const actionTogglePolygon: {
|
|
|
322
297
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
323
298
|
strokeWidth: number;
|
|
324
299
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
325
|
-
roundness: {
|
|
300
|
+
roundness: null | {
|
|
326
301
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
327
|
-
value?: number
|
|
328
|
-
}
|
|
302
|
+
value?: number;
|
|
303
|
+
};
|
|
329
304
|
roughness: number;
|
|
330
305
|
opacity: number;
|
|
331
306
|
width: number;
|
|
332
307
|
height: number;
|
|
333
|
-
angle: import("
|
|
308
|
+
angle: import("@excalidraw/math").Radians;
|
|
334
309
|
seed: number;
|
|
335
310
|
version: number;
|
|
336
311
|
versionNonce: number;
|
|
337
312
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
338
313
|
isDeleted: boolean;
|
|
339
|
-
groupIds: readonly
|
|
314
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
340
315
|
frameId: string | null;
|
|
341
|
-
boundElements: readonly
|
|
342
|
-
id: string;
|
|
343
|
-
type: "arrow" | "text";
|
|
344
|
-
}>[] | null;
|
|
316
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
345
317
|
updated: number;
|
|
346
318
|
link: string | null;
|
|
347
319
|
locked: boolean;
|
|
348
|
-
customData?: Record<string, any
|
|
320
|
+
customData?: Record<string, any>;
|
|
349
321
|
}> & {
|
|
350
322
|
type: "rectangle";
|
|
351
323
|
} & {
|
|
@@ -359,30 +331,27 @@ export declare const actionTogglePolygon: {
|
|
|
359
331
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
360
332
|
strokeWidth: number;
|
|
361
333
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
362
|
-
roundness: {
|
|
334
|
+
roundness: null | {
|
|
363
335
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
364
|
-
value?: number
|
|
365
|
-
}
|
|
336
|
+
value?: number;
|
|
337
|
+
};
|
|
366
338
|
roughness: number;
|
|
367
339
|
opacity: number;
|
|
368
340
|
width: number;
|
|
369
341
|
height: number;
|
|
370
|
-
angle: import("
|
|
342
|
+
angle: import("@excalidraw/math").Radians;
|
|
371
343
|
seed: number;
|
|
372
344
|
version: number;
|
|
373
345
|
versionNonce: number;
|
|
374
346
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
375
347
|
isDeleted: boolean;
|
|
376
|
-
groupIds: readonly
|
|
348
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
377
349
|
frameId: string | null;
|
|
378
|
-
boundElements: readonly
|
|
379
|
-
id: string;
|
|
380
|
-
type: "arrow" | "text";
|
|
381
|
-
}>[] | null;
|
|
350
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
382
351
|
updated: number;
|
|
383
352
|
link: string | null;
|
|
384
353
|
locked: boolean;
|
|
385
|
-
customData?: Record<string, any
|
|
354
|
+
customData?: Record<string, any>;
|
|
386
355
|
}> & {
|
|
387
356
|
type: "diamond";
|
|
388
357
|
} & {
|
|
@@ -396,30 +365,27 @@ export declare const actionTogglePolygon: {
|
|
|
396
365
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
397
366
|
strokeWidth: number;
|
|
398
367
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
399
|
-
roundness: {
|
|
368
|
+
roundness: null | {
|
|
400
369
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
401
|
-
value?: number
|
|
402
|
-
}
|
|
370
|
+
value?: number;
|
|
371
|
+
};
|
|
403
372
|
roughness: number;
|
|
404
373
|
opacity: number;
|
|
405
374
|
width: number;
|
|
406
375
|
height: number;
|
|
407
|
-
angle: import("
|
|
376
|
+
angle: import("@excalidraw/math").Radians;
|
|
408
377
|
seed: number;
|
|
409
378
|
version: number;
|
|
410
379
|
versionNonce: number;
|
|
411
380
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
412
381
|
isDeleted: boolean;
|
|
413
|
-
groupIds: readonly
|
|
382
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
414
383
|
frameId: string | null;
|
|
415
|
-
boundElements: readonly
|
|
416
|
-
id: string;
|
|
417
|
-
type: "arrow" | "text";
|
|
418
|
-
}>[] | null;
|
|
384
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
419
385
|
updated: number;
|
|
420
386
|
link: string | null;
|
|
421
387
|
locked: boolean;
|
|
422
|
-
customData?: Record<string, any
|
|
388
|
+
customData?: Record<string, any>;
|
|
423
389
|
}> & {
|
|
424
390
|
type: "ellipse";
|
|
425
391
|
} & {
|
|
@@ -433,30 +399,27 @@ export declare const actionTogglePolygon: {
|
|
|
433
399
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
434
400
|
strokeWidth: number;
|
|
435
401
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
436
|
-
roundness: {
|
|
402
|
+
roundness: null | {
|
|
437
403
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
438
|
-
value?: number
|
|
439
|
-
}
|
|
404
|
+
value?: number;
|
|
405
|
+
};
|
|
440
406
|
roughness: number;
|
|
441
407
|
opacity: number;
|
|
442
408
|
width: number;
|
|
443
409
|
height: number;
|
|
444
|
-
angle: import("
|
|
410
|
+
angle: import("@excalidraw/math").Radians;
|
|
445
411
|
seed: number;
|
|
446
412
|
version: number;
|
|
447
413
|
versionNonce: number;
|
|
448
414
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
449
415
|
isDeleted: boolean;
|
|
450
|
-
groupIds: readonly
|
|
416
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
451
417
|
frameId: string | null;
|
|
452
|
-
boundElements: readonly
|
|
453
|
-
id: string;
|
|
454
|
-
type: "arrow" | "text";
|
|
455
|
-
}>[] | null;
|
|
418
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
456
419
|
updated: number;
|
|
457
420
|
link: string | null;
|
|
458
421
|
locked: boolean;
|
|
459
|
-
customData?: Record<string, any
|
|
422
|
+
customData?: Record<string, any>;
|
|
460
423
|
}> & Readonly<{
|
|
461
424
|
type: "embeddable";
|
|
462
425
|
}> & {
|
|
@@ -470,35 +433,32 @@ export declare const actionTogglePolygon: {
|
|
|
470
433
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
471
434
|
strokeWidth: number;
|
|
472
435
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
473
|
-
roundness: {
|
|
436
|
+
roundness: null | {
|
|
474
437
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
475
|
-
value?: number
|
|
476
|
-
}
|
|
438
|
+
value?: number;
|
|
439
|
+
};
|
|
477
440
|
roughness: number;
|
|
478
441
|
opacity: number;
|
|
479
442
|
width: number;
|
|
480
443
|
height: number;
|
|
481
|
-
angle: import("
|
|
444
|
+
angle: import("@excalidraw/math").Radians;
|
|
482
445
|
seed: number;
|
|
483
446
|
version: number;
|
|
484
447
|
versionNonce: number;
|
|
485
448
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
486
449
|
isDeleted: boolean;
|
|
487
|
-
groupIds: readonly
|
|
450
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
488
451
|
frameId: string | null;
|
|
489
|
-
boundElements: readonly
|
|
490
|
-
id: string;
|
|
491
|
-
type: "arrow" | "text";
|
|
492
|
-
}>[] | null;
|
|
452
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
493
453
|
updated: number;
|
|
494
454
|
link: string | null;
|
|
495
455
|
locked: boolean;
|
|
496
|
-
customData?: Record<string, any
|
|
456
|
+
customData?: Record<string, any>;
|
|
497
457
|
}> & Readonly<{
|
|
498
458
|
type: "iframe";
|
|
499
459
|
customData?: {
|
|
500
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
501
|
-
}
|
|
460
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
461
|
+
};
|
|
502
462
|
}> & {
|
|
503
463
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
504
464
|
}) | (Readonly<{
|
|
@@ -510,34 +470,31 @@ export declare const actionTogglePolygon: {
|
|
|
510
470
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
511
471
|
strokeWidth: number;
|
|
512
472
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
513
|
-
roundness: {
|
|
473
|
+
roundness: null | {
|
|
514
474
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
515
|
-
value?: number
|
|
516
|
-
}
|
|
475
|
+
value?: number;
|
|
476
|
+
};
|
|
517
477
|
roughness: number;
|
|
518
478
|
opacity: number;
|
|
519
479
|
width: number;
|
|
520
480
|
height: number;
|
|
521
|
-
angle: import("
|
|
481
|
+
angle: import("@excalidraw/math").Radians;
|
|
522
482
|
seed: number;
|
|
523
483
|
version: number;
|
|
524
484
|
versionNonce: number;
|
|
525
485
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
526
486
|
isDeleted: boolean;
|
|
527
|
-
groupIds: readonly
|
|
487
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
528
488
|
frameId: string | null;
|
|
529
|
-
boundElements: readonly
|
|
530
|
-
id: string;
|
|
531
|
-
type: "arrow" | "text";
|
|
532
|
-
}>[] | null;
|
|
489
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
533
490
|
updated: number;
|
|
534
491
|
link: string | null;
|
|
535
492
|
locked: boolean;
|
|
536
|
-
customData?: Record<string, any
|
|
493
|
+
customData?: Record<string, any>;
|
|
537
494
|
}> & Readonly<{
|
|
538
495
|
type: "image";
|
|
539
496
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
540
|
-
status: "pending" | "
|
|
497
|
+
status: "pending" | "saved" | "error";
|
|
541
498
|
scale: [number, number];
|
|
542
499
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
543
500
|
}> & {
|
|
@@ -551,30 +508,27 @@ export declare const actionTogglePolygon: {
|
|
|
551
508
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
552
509
|
strokeWidth: number;
|
|
553
510
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
554
|
-
roundness: {
|
|
511
|
+
roundness: null | {
|
|
555
512
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
556
|
-
value?: number
|
|
557
|
-
}
|
|
513
|
+
value?: number;
|
|
514
|
+
};
|
|
558
515
|
roughness: number;
|
|
559
516
|
opacity: number;
|
|
560
517
|
width: number;
|
|
561
518
|
height: number;
|
|
562
|
-
angle: import("
|
|
519
|
+
angle: import("@excalidraw/math").Radians;
|
|
563
520
|
seed: number;
|
|
564
521
|
version: number;
|
|
565
522
|
versionNonce: number;
|
|
566
523
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
567
524
|
isDeleted: boolean;
|
|
568
|
-
groupIds: readonly
|
|
525
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
569
526
|
frameId: string | null;
|
|
570
|
-
boundElements: readonly
|
|
571
|
-
id: string;
|
|
572
|
-
type: "arrow" | "text";
|
|
573
|
-
}>[] | null;
|
|
527
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
574
528
|
updated: number;
|
|
575
529
|
link: string | null;
|
|
576
530
|
locked: boolean;
|
|
577
|
-
customData?: Record<string, any
|
|
531
|
+
customData?: Record<string, any>;
|
|
578
532
|
}> & {
|
|
579
533
|
type: "frame";
|
|
580
534
|
name: string | null;
|
|
@@ -589,30 +543,27 @@ export declare const actionTogglePolygon: {
|
|
|
589
543
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
590
544
|
strokeWidth: number;
|
|
591
545
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
592
|
-
roundness: {
|
|
546
|
+
roundness: null | {
|
|
593
547
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
594
|
-
value?: number
|
|
595
|
-
}
|
|
548
|
+
value?: number;
|
|
549
|
+
};
|
|
596
550
|
roughness: number;
|
|
597
551
|
opacity: number;
|
|
598
552
|
width: number;
|
|
599
553
|
height: number;
|
|
600
|
-
angle: import("
|
|
554
|
+
angle: import("@excalidraw/math").Radians;
|
|
601
555
|
seed: number;
|
|
602
556
|
version: number;
|
|
603
557
|
versionNonce: number;
|
|
604
558
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
605
559
|
isDeleted: boolean;
|
|
606
|
-
groupIds: readonly
|
|
560
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
607
561
|
frameId: string | null;
|
|
608
|
-
boundElements: readonly
|
|
609
|
-
id: string;
|
|
610
|
-
type: "arrow" | "text";
|
|
611
|
-
}>[] | null;
|
|
562
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
612
563
|
updated: number;
|
|
613
564
|
link: string | null;
|
|
614
565
|
locked: boolean;
|
|
615
|
-
customData?: Record<string, any
|
|
566
|
+
customData?: Record<string, any>;
|
|
616
567
|
}> & {
|
|
617
568
|
type: "magicframe";
|
|
618
569
|
name: string | null;
|
|
@@ -627,38 +578,35 @@ export declare const actionTogglePolygon: {
|
|
|
627
578
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
628
579
|
strokeWidth: number;
|
|
629
580
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
630
|
-
roundness: {
|
|
581
|
+
roundness: null | {
|
|
631
582
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
632
|
-
value?: number
|
|
633
|
-
}
|
|
583
|
+
value?: number;
|
|
584
|
+
};
|
|
634
585
|
roughness: number;
|
|
635
586
|
opacity: number;
|
|
636
587
|
width: number;
|
|
637
588
|
height: number;
|
|
638
|
-
angle: import("
|
|
589
|
+
angle: import("@excalidraw/math").Radians;
|
|
639
590
|
seed: number;
|
|
640
591
|
version: number;
|
|
641
592
|
versionNonce: number;
|
|
642
593
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
643
594
|
isDeleted: boolean;
|
|
644
|
-
groupIds: readonly
|
|
595
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
645
596
|
frameId: string | null;
|
|
646
|
-
boundElements: readonly
|
|
647
|
-
id: string;
|
|
648
|
-
type: "arrow" | "text";
|
|
649
|
-
}>[] | null;
|
|
597
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
650
598
|
updated: number;
|
|
651
599
|
link: string | null;
|
|
652
600
|
locked: boolean;
|
|
653
|
-
customData?: Record<string, any
|
|
601
|
+
customData?: Record<string, any>;
|
|
654
602
|
}> & Readonly<{
|
|
655
603
|
type: "text";
|
|
656
604
|
fontSize: number;
|
|
657
|
-
fontFamily:
|
|
605
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
658
606
|
text: string;
|
|
659
|
-
textAlign:
|
|
660
|
-
verticalAlign:
|
|
661
|
-
containerId:
|
|
607
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
608
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
609
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
662
610
|
originalText: string;
|
|
663
611
|
autoResize: boolean;
|
|
664
612
|
lineHeight: number & {
|
|
@@ -675,33 +623,30 @@ export declare const actionTogglePolygon: {
|
|
|
675
623
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
676
624
|
strokeWidth: number;
|
|
677
625
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
678
|
-
roundness: {
|
|
626
|
+
roundness: null | {
|
|
679
627
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
680
|
-
value?: number
|
|
681
|
-
}
|
|
628
|
+
value?: number;
|
|
629
|
+
};
|
|
682
630
|
roughness: number;
|
|
683
631
|
opacity: number;
|
|
684
632
|
width: number;
|
|
685
633
|
height: number;
|
|
686
|
-
angle: import("
|
|
634
|
+
angle: import("@excalidraw/math").Radians;
|
|
687
635
|
seed: number;
|
|
688
636
|
version: number;
|
|
689
637
|
versionNonce: number;
|
|
690
638
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
691
639
|
isDeleted: boolean;
|
|
692
|
-
groupIds: readonly
|
|
640
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
693
641
|
frameId: string | null;
|
|
694
|
-
boundElements: readonly
|
|
695
|
-
id: string;
|
|
696
|
-
type: "arrow" | "text";
|
|
697
|
-
}>[] | null;
|
|
642
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
698
643
|
updated: number;
|
|
699
644
|
link: string | null;
|
|
700
645
|
locked: boolean;
|
|
701
|
-
customData?: Record<string, any
|
|
646
|
+
customData?: Record<string, any>;
|
|
702
647
|
}> & Readonly<{
|
|
703
648
|
type: "freedraw";
|
|
704
|
-
points: readonly import("
|
|
649
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
705
650
|
pressures: readonly number[];
|
|
706
651
|
simulatePressure: boolean;
|
|
707
652
|
}> & {
|