@excalidraw/element 0.18.0-7b8a5f54c → 0.18.0-7ea3229
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 +5099 -2604
- 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 +37 -26
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +3 -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 +52 -38
- package/dist/types/element/src/Scene.d.ts +3 -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 +66 -46
- package/dist/types/element/src/bounds.d.ts +3 -11
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/delta.d.ts +4 -4
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/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 +4 -3
- package/dist/types/element/src/linearElementEditor.d.ts +18 -20
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/store.d.ts +3 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- 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 +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +8 -3
- package/dist/types/element/src/visualdebug.d.ts +59 -0
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +102 -136
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +73 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -758
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +92 -856
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +121 -159
- 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 +31 -45
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +72 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +36 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1109
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +239 -322
- package/dist/types/excalidraw/actions/actionGroup.d.ts +76 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +145 -195
- package/dist/types/excalidraw/actions/actionLink.d.ts +33 -45
- package/dist/types/excalidraw/actions/actionMenu.d.ts +30 -410
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
- package/dist/types/excalidraw/actions/actionProperties.d.ts +135 -2488
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +38 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -42
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +35 -47
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +36 -48
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/appState.d.ts +17 -12
- package/dist/types/excalidraw/clipboard.d.ts +58 -17
- package/dist/types/excalidraw/components/Actions.d.ts +22 -5
- package/dist/types/excalidraw/components/App.d.ts +77 -68
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/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/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/TTDDialogOutput.d.ts +2 -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 +2 -3
- 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/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/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +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 +32 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/shapes.d.ts +202 -1
- package/dist/types/excalidraw/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 +330 -10
- 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 +162 -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/data/types.d.ts +4 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +7 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +38 -21
- 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 +4 -3
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +9 -3
|
@@ -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
|
-
value: import("
|
|
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
|
-
lastUncommittedPoint: import("
|
|
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
|
-
segmentMidPointHoveredCoords: import("
|
|
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,10 +50,10 @@ 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;
|
|
@@ -62,7 +61,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
62
61
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
63
62
|
isBindingEnabled: boolean;
|
|
64
63
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
65
|
-
|
|
64
|
+
suggestedBinding: {
|
|
65
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
66
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
67
|
+
} | null;
|
|
66
68
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
67
69
|
frameRendering: {
|
|
68
70
|
enabled: boolean;
|
|
@@ -78,6 +80,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
78
80
|
locked: boolean;
|
|
79
81
|
fromSelection: boolean;
|
|
80
82
|
} & import("../types").ActiveTool;
|
|
83
|
+
preferredSelectionTool: {
|
|
84
|
+
type: "selection" | "lasso";
|
|
85
|
+
initialized: boolean;
|
|
86
|
+
};
|
|
81
87
|
penMode: boolean;
|
|
82
88
|
penDetected: boolean;
|
|
83
89
|
exportBackground: boolean;
|
|
@@ -86,19 +92,19 @@ export declare const actionToggleLinearEditor: {
|
|
|
86
92
|
exportScale: number;
|
|
87
93
|
currentItemStrokeColor: string;
|
|
88
94
|
currentItemBackgroundColor: string;
|
|
89
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
95
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
90
96
|
currentItemStrokeWidth: number;
|
|
91
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
97
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
92
98
|
currentItemRoughness: number;
|
|
93
99
|
currentItemOpacity: number;
|
|
94
|
-
currentItemFontFamily:
|
|
100
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
95
101
|
currentItemFontSize: number;
|
|
96
|
-
currentItemTextAlign:
|
|
102
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
97
103
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
98
104
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
99
|
-
currentHoveredFontFamily:
|
|
105
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
100
106
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
101
|
-
currentItemArrowType: "
|
|
107
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
102
108
|
viewBackgroundColor: string;
|
|
103
109
|
scrollX: number;
|
|
104
110
|
scrollY: number;
|
|
@@ -107,26 +113,26 @@ export declare const actionToggleLinearEditor: {
|
|
|
107
113
|
name: string | null;
|
|
108
114
|
isResizing: boolean;
|
|
109
115
|
isRotating: boolean;
|
|
110
|
-
zoom:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
openMenu: "canvas" | "shape" | null;
|
|
114
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
116
|
+
zoom: import("../types").Zoom;
|
|
117
|
+
openMenu: "canvas" | null;
|
|
118
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
115
119
|
openSidebar: {
|
|
116
|
-
name:
|
|
117
|
-
tab?:
|
|
120
|
+
name: import("../types").SidebarName;
|
|
121
|
+
tab?: import("../types").SidebarTabName;
|
|
118
122
|
} | null;
|
|
119
|
-
openDialog: {
|
|
123
|
+
openDialog: null | {
|
|
120
124
|
name: "imageExport" | "help" | "jsonExport";
|
|
121
125
|
} | {
|
|
122
126
|
name: "ttd";
|
|
123
|
-
tab: "
|
|
127
|
+
tab: "text-to-diagram" | "mermaid";
|
|
124
128
|
} | {
|
|
125
129
|
name: "commandPalette";
|
|
130
|
+
} | {
|
|
131
|
+
name: "settings";
|
|
126
132
|
} | {
|
|
127
133
|
name: "elementLinkSelector";
|
|
128
|
-
sourceElementId:
|
|
129
|
-
}
|
|
134
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
135
|
+
};
|
|
130
136
|
defaultSidebarDockedPreference: boolean;
|
|
131
137
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
132
138
|
selectedElementIds: Readonly<{
|
|
@@ -142,8 +148,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
142
148
|
shouldCacheIgnoreZoom: boolean;
|
|
143
149
|
toast: {
|
|
144
150
|
message: string;
|
|
145
|
-
closable?: boolean
|
|
146
|
-
duration?: number
|
|
151
|
+
closable?: boolean;
|
|
152
|
+
duration?: number;
|
|
147
153
|
} | null;
|
|
148
154
|
zenModeEnabled: boolean;
|
|
149
155
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -154,32 +160,13 @@ export declare const actionToggleLinearEditor: {
|
|
|
154
160
|
selectedGroupIds: {
|
|
155
161
|
[groupId: string]: boolean;
|
|
156
162
|
};
|
|
157
|
-
editingGroupId:
|
|
163
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
158
164
|
width: number;
|
|
159
165
|
height: number;
|
|
160
166
|
offsetTop: number;
|
|
161
167
|
offsetLeft: number;
|
|
162
168
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
163
|
-
collaborators: Map<import("../types").SocketId,
|
|
164
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
165
|
-
button?: "up" | "down" | undefined;
|
|
166
|
-
selectedElementIds?: Readonly<{
|
|
167
|
-
[id: string]: true;
|
|
168
|
-
}> | undefined;
|
|
169
|
-
username?: string | null | undefined;
|
|
170
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
171
|
-
color?: {
|
|
172
|
-
background: string;
|
|
173
|
-
stroke: string;
|
|
174
|
-
} | undefined;
|
|
175
|
-
avatarUrl?: string | undefined;
|
|
176
|
-
id?: string | undefined;
|
|
177
|
-
socketId?: import("../types").SocketId | undefined;
|
|
178
|
-
isCurrentUser?: boolean | undefined;
|
|
179
|
-
isInCall?: boolean | undefined;
|
|
180
|
-
isSpeaking?: boolean | undefined;
|
|
181
|
-
isMuted?: boolean | undefined;
|
|
182
|
-
}>>;
|
|
169
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
183
170
|
stats: {
|
|
184
171
|
open: boolean;
|
|
185
172
|
panels: number;
|
|
@@ -192,7 +179,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
192
179
|
shown: true;
|
|
193
180
|
data: import("../charts").Spreadsheet;
|
|
194
181
|
};
|
|
195
|
-
showHyperlinkPopup: false | "
|
|
182
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
196
183
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
197
184
|
originSnapOffset: {
|
|
198
185
|
x: number;
|
|
@@ -202,19 +189,20 @@ export declare const actionToggleLinearEditor: {
|
|
|
202
189
|
userToFollow: import("../types").UserToFollow | null;
|
|
203
190
|
followedBy: Set<import("../types").SocketId>;
|
|
204
191
|
isCropping: boolean;
|
|
205
|
-
croppingElementId:
|
|
192
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
206
193
|
searchMatches: Readonly<{
|
|
207
|
-
focusedId:
|
|
194
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
208
195
|
matches: readonly import("../types").SearchMatch[];
|
|
209
196
|
}> | null;
|
|
210
197
|
activeLockedId: string | null;
|
|
211
198
|
lockedMultiSelections: {
|
|
212
199
|
[groupId: string]: true;
|
|
213
200
|
};
|
|
201
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
214
202
|
};
|
|
215
203
|
captureUpdate: "IMMEDIATELY";
|
|
216
204
|
};
|
|
217
|
-
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
205
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
218
206
|
} & {
|
|
219
207
|
keyTest?: undefined;
|
|
220
208
|
};
|
|
@@ -228,7 +216,7 @@ export declare const actionTogglePolygon: {
|
|
|
228
216
|
category: "element";
|
|
229
217
|
};
|
|
230
218
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
231
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
219
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
232
220
|
elements: ((Readonly<{
|
|
233
221
|
id: string;
|
|
234
222
|
x: number;
|
|
@@ -238,36 +226,32 @@ export declare const actionTogglePolygon: {
|
|
|
238
226
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
239
227
|
strokeWidth: number;
|
|
240
228
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
241
|
-
roundness: {
|
|
229
|
+
roundness: null | {
|
|
242
230
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
243
|
-
value?: number
|
|
244
|
-
}
|
|
231
|
+
value?: number;
|
|
232
|
+
};
|
|
245
233
|
roughness: number;
|
|
246
234
|
opacity: number;
|
|
247
235
|
width: number;
|
|
248
236
|
height: number;
|
|
249
|
-
angle: import("
|
|
237
|
+
angle: import("@excalidraw/math").Radians;
|
|
250
238
|
seed: number;
|
|
251
239
|
version: number;
|
|
252
240
|
versionNonce: number;
|
|
253
241
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
254
242
|
isDeleted: boolean;
|
|
255
|
-
groupIds: readonly
|
|
243
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
256
244
|
frameId: string | null;
|
|
257
|
-
boundElements: readonly
|
|
258
|
-
id: string;
|
|
259
|
-
type: "arrow" | "text";
|
|
260
|
-
}>[] | null;
|
|
245
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
261
246
|
updated: number;
|
|
262
247
|
link: string | null;
|
|
263
248
|
locked: boolean;
|
|
264
|
-
customData?: Record<string, any
|
|
249
|
+
customData?: Record<string, any>;
|
|
265
250
|
}> & Readonly<{
|
|
266
251
|
type: "line" | "arrow";
|
|
267
|
-
points: readonly import("
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
252
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
253
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
254
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
271
255
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
272
256
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
273
257
|
}> & {
|
|
@@ -281,30 +265,27 @@ export declare const actionTogglePolygon: {
|
|
|
281
265
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
282
266
|
strokeWidth: number;
|
|
283
267
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
284
|
-
roundness: {
|
|
268
|
+
roundness: null | {
|
|
285
269
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
286
|
-
value?: number
|
|
287
|
-
}
|
|
270
|
+
value?: number;
|
|
271
|
+
};
|
|
288
272
|
roughness: number;
|
|
289
273
|
opacity: number;
|
|
290
274
|
width: number;
|
|
291
275
|
height: number;
|
|
292
|
-
angle: import("
|
|
276
|
+
angle: import("@excalidraw/math").Radians;
|
|
293
277
|
seed: number;
|
|
294
278
|
version: number;
|
|
295
279
|
versionNonce: number;
|
|
296
280
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
297
281
|
isDeleted: boolean;
|
|
298
|
-
groupIds: readonly
|
|
282
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
299
283
|
frameId: string | null;
|
|
300
|
-
boundElements: readonly
|
|
301
|
-
id: string;
|
|
302
|
-
type: "arrow" | "text";
|
|
303
|
-
}>[] | null;
|
|
284
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
304
285
|
updated: number;
|
|
305
286
|
link: string | null;
|
|
306
287
|
locked: boolean;
|
|
307
|
-
customData?: Record<string, any
|
|
288
|
+
customData?: Record<string, any>;
|
|
308
289
|
}> & {
|
|
309
290
|
type: "selection";
|
|
310
291
|
} & {
|
|
@@ -318,30 +299,27 @@ export declare const actionTogglePolygon: {
|
|
|
318
299
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
319
300
|
strokeWidth: number;
|
|
320
301
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
321
|
-
roundness: {
|
|
302
|
+
roundness: null | {
|
|
322
303
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
323
|
-
value?: number
|
|
324
|
-
}
|
|
304
|
+
value?: number;
|
|
305
|
+
};
|
|
325
306
|
roughness: number;
|
|
326
307
|
opacity: number;
|
|
327
308
|
width: number;
|
|
328
309
|
height: number;
|
|
329
|
-
angle: import("
|
|
310
|
+
angle: import("@excalidraw/math").Radians;
|
|
330
311
|
seed: number;
|
|
331
312
|
version: number;
|
|
332
313
|
versionNonce: number;
|
|
333
314
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
334
315
|
isDeleted: boolean;
|
|
335
|
-
groupIds: readonly
|
|
316
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
336
317
|
frameId: string | null;
|
|
337
|
-
boundElements: readonly
|
|
338
|
-
id: string;
|
|
339
|
-
type: "arrow" | "text";
|
|
340
|
-
}>[] | null;
|
|
318
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
341
319
|
updated: number;
|
|
342
320
|
link: string | null;
|
|
343
321
|
locked: boolean;
|
|
344
|
-
customData?: Record<string, any
|
|
322
|
+
customData?: Record<string, any>;
|
|
345
323
|
}> & {
|
|
346
324
|
type: "rectangle";
|
|
347
325
|
} & {
|
|
@@ -355,30 +333,27 @@ export declare const actionTogglePolygon: {
|
|
|
355
333
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
356
334
|
strokeWidth: number;
|
|
357
335
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
358
|
-
roundness: {
|
|
336
|
+
roundness: null | {
|
|
359
337
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
360
|
-
value?: number
|
|
361
|
-
}
|
|
338
|
+
value?: number;
|
|
339
|
+
};
|
|
362
340
|
roughness: number;
|
|
363
341
|
opacity: number;
|
|
364
342
|
width: number;
|
|
365
343
|
height: number;
|
|
366
|
-
angle: import("
|
|
344
|
+
angle: import("@excalidraw/math").Radians;
|
|
367
345
|
seed: number;
|
|
368
346
|
version: number;
|
|
369
347
|
versionNonce: number;
|
|
370
348
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
371
349
|
isDeleted: boolean;
|
|
372
|
-
groupIds: readonly
|
|
350
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
373
351
|
frameId: string | null;
|
|
374
|
-
boundElements: readonly
|
|
375
|
-
id: string;
|
|
376
|
-
type: "arrow" | "text";
|
|
377
|
-
}>[] | null;
|
|
352
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
378
353
|
updated: number;
|
|
379
354
|
link: string | null;
|
|
380
355
|
locked: boolean;
|
|
381
|
-
customData?: Record<string, any
|
|
356
|
+
customData?: Record<string, any>;
|
|
382
357
|
}> & {
|
|
383
358
|
type: "diamond";
|
|
384
359
|
} & {
|
|
@@ -392,30 +367,27 @@ export declare const actionTogglePolygon: {
|
|
|
392
367
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
393
368
|
strokeWidth: number;
|
|
394
369
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
395
|
-
roundness: {
|
|
370
|
+
roundness: null | {
|
|
396
371
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
397
|
-
value?: number
|
|
398
|
-
}
|
|
372
|
+
value?: number;
|
|
373
|
+
};
|
|
399
374
|
roughness: number;
|
|
400
375
|
opacity: number;
|
|
401
376
|
width: number;
|
|
402
377
|
height: number;
|
|
403
|
-
angle: import("
|
|
378
|
+
angle: import("@excalidraw/math").Radians;
|
|
404
379
|
seed: number;
|
|
405
380
|
version: number;
|
|
406
381
|
versionNonce: number;
|
|
407
382
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
408
383
|
isDeleted: boolean;
|
|
409
|
-
groupIds: readonly
|
|
384
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
410
385
|
frameId: string | null;
|
|
411
|
-
boundElements: readonly
|
|
412
|
-
id: string;
|
|
413
|
-
type: "arrow" | "text";
|
|
414
|
-
}>[] | null;
|
|
386
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
415
387
|
updated: number;
|
|
416
388
|
link: string | null;
|
|
417
389
|
locked: boolean;
|
|
418
|
-
customData?: Record<string, any
|
|
390
|
+
customData?: Record<string, any>;
|
|
419
391
|
}> & {
|
|
420
392
|
type: "ellipse";
|
|
421
393
|
} & {
|
|
@@ -429,30 +401,27 @@ export declare const actionTogglePolygon: {
|
|
|
429
401
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
430
402
|
strokeWidth: number;
|
|
431
403
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
432
|
-
roundness: {
|
|
404
|
+
roundness: null | {
|
|
433
405
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
434
|
-
value?: number
|
|
435
|
-
}
|
|
406
|
+
value?: number;
|
|
407
|
+
};
|
|
436
408
|
roughness: number;
|
|
437
409
|
opacity: number;
|
|
438
410
|
width: number;
|
|
439
411
|
height: number;
|
|
440
|
-
angle: import("
|
|
412
|
+
angle: import("@excalidraw/math").Radians;
|
|
441
413
|
seed: number;
|
|
442
414
|
version: number;
|
|
443
415
|
versionNonce: number;
|
|
444
416
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
445
417
|
isDeleted: boolean;
|
|
446
|
-
groupIds: readonly
|
|
418
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
447
419
|
frameId: string | null;
|
|
448
|
-
boundElements: readonly
|
|
449
|
-
id: string;
|
|
450
|
-
type: "arrow" | "text";
|
|
451
|
-
}>[] | null;
|
|
420
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
452
421
|
updated: number;
|
|
453
422
|
link: string | null;
|
|
454
423
|
locked: boolean;
|
|
455
|
-
customData?: Record<string, any
|
|
424
|
+
customData?: Record<string, any>;
|
|
456
425
|
}> & Readonly<{
|
|
457
426
|
type: "embeddable";
|
|
458
427
|
}> & {
|
|
@@ -466,35 +435,32 @@ export declare const actionTogglePolygon: {
|
|
|
466
435
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
467
436
|
strokeWidth: number;
|
|
468
437
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
469
|
-
roundness: {
|
|
438
|
+
roundness: null | {
|
|
470
439
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
471
|
-
value?: number
|
|
472
|
-
}
|
|
440
|
+
value?: number;
|
|
441
|
+
};
|
|
473
442
|
roughness: number;
|
|
474
443
|
opacity: number;
|
|
475
444
|
width: number;
|
|
476
445
|
height: number;
|
|
477
|
-
angle: import("
|
|
446
|
+
angle: import("@excalidraw/math").Radians;
|
|
478
447
|
seed: number;
|
|
479
448
|
version: number;
|
|
480
449
|
versionNonce: number;
|
|
481
450
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
482
451
|
isDeleted: boolean;
|
|
483
|
-
groupIds: readonly
|
|
452
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
484
453
|
frameId: string | null;
|
|
485
|
-
boundElements: readonly
|
|
486
|
-
id: string;
|
|
487
|
-
type: "arrow" | "text";
|
|
488
|
-
}>[] | null;
|
|
454
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
489
455
|
updated: number;
|
|
490
456
|
link: string | null;
|
|
491
457
|
locked: boolean;
|
|
492
|
-
customData?: Record<string, any
|
|
458
|
+
customData?: Record<string, any>;
|
|
493
459
|
}> & Readonly<{
|
|
494
460
|
type: "iframe";
|
|
495
461
|
customData?: {
|
|
496
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData
|
|
497
|
-
}
|
|
462
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
463
|
+
};
|
|
498
464
|
}> & {
|
|
499
465
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
500
466
|
}) | (Readonly<{
|
|
@@ -506,34 +472,31 @@ export declare const actionTogglePolygon: {
|
|
|
506
472
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
507
473
|
strokeWidth: number;
|
|
508
474
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
509
|
-
roundness: {
|
|
475
|
+
roundness: null | {
|
|
510
476
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
511
|
-
value?: number
|
|
512
|
-
}
|
|
477
|
+
value?: number;
|
|
478
|
+
};
|
|
513
479
|
roughness: number;
|
|
514
480
|
opacity: number;
|
|
515
481
|
width: number;
|
|
516
482
|
height: number;
|
|
517
|
-
angle: import("
|
|
483
|
+
angle: import("@excalidraw/math").Radians;
|
|
518
484
|
seed: number;
|
|
519
485
|
version: number;
|
|
520
486
|
versionNonce: number;
|
|
521
487
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
522
488
|
isDeleted: boolean;
|
|
523
|
-
groupIds: readonly
|
|
489
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
524
490
|
frameId: string | null;
|
|
525
|
-
boundElements: readonly
|
|
526
|
-
id: string;
|
|
527
|
-
type: "arrow" | "text";
|
|
528
|
-
}>[] | null;
|
|
491
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
529
492
|
updated: number;
|
|
530
493
|
link: string | null;
|
|
531
494
|
locked: boolean;
|
|
532
|
-
customData?: Record<string, any
|
|
495
|
+
customData?: Record<string, any>;
|
|
533
496
|
}> & Readonly<{
|
|
534
497
|
type: "image";
|
|
535
498
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
536
|
-
status: "pending" | "
|
|
499
|
+
status: "pending" | "saved" | "error";
|
|
537
500
|
scale: [number, number];
|
|
538
501
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
539
502
|
}> & {
|
|
@@ -547,30 +510,27 @@ export declare const actionTogglePolygon: {
|
|
|
547
510
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
548
511
|
strokeWidth: number;
|
|
549
512
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
550
|
-
roundness: {
|
|
513
|
+
roundness: null | {
|
|
551
514
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
552
|
-
value?: number
|
|
553
|
-
}
|
|
515
|
+
value?: number;
|
|
516
|
+
};
|
|
554
517
|
roughness: number;
|
|
555
518
|
opacity: number;
|
|
556
519
|
width: number;
|
|
557
520
|
height: number;
|
|
558
|
-
angle: import("
|
|
521
|
+
angle: import("@excalidraw/math").Radians;
|
|
559
522
|
seed: number;
|
|
560
523
|
version: number;
|
|
561
524
|
versionNonce: number;
|
|
562
525
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
563
526
|
isDeleted: boolean;
|
|
564
|
-
groupIds: readonly
|
|
527
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
565
528
|
frameId: string | null;
|
|
566
|
-
boundElements: readonly
|
|
567
|
-
id: string;
|
|
568
|
-
type: "arrow" | "text";
|
|
569
|
-
}>[] | null;
|
|
529
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
570
530
|
updated: number;
|
|
571
531
|
link: string | null;
|
|
572
532
|
locked: boolean;
|
|
573
|
-
customData?: Record<string, any
|
|
533
|
+
customData?: Record<string, any>;
|
|
574
534
|
}> & {
|
|
575
535
|
type: "frame";
|
|
576
536
|
name: string | null;
|
|
@@ -585,30 +545,27 @@ export declare const actionTogglePolygon: {
|
|
|
585
545
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
586
546
|
strokeWidth: number;
|
|
587
547
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
588
|
-
roundness: {
|
|
548
|
+
roundness: null | {
|
|
589
549
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
590
|
-
value?: number
|
|
591
|
-
}
|
|
550
|
+
value?: number;
|
|
551
|
+
};
|
|
592
552
|
roughness: number;
|
|
593
553
|
opacity: number;
|
|
594
554
|
width: number;
|
|
595
555
|
height: number;
|
|
596
|
-
angle: import("
|
|
556
|
+
angle: import("@excalidraw/math").Radians;
|
|
597
557
|
seed: number;
|
|
598
558
|
version: number;
|
|
599
559
|
versionNonce: number;
|
|
600
560
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
601
561
|
isDeleted: boolean;
|
|
602
|
-
groupIds: readonly
|
|
562
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
603
563
|
frameId: string | null;
|
|
604
|
-
boundElements: readonly
|
|
605
|
-
id: string;
|
|
606
|
-
type: "arrow" | "text";
|
|
607
|
-
}>[] | null;
|
|
564
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
608
565
|
updated: number;
|
|
609
566
|
link: string | null;
|
|
610
567
|
locked: boolean;
|
|
611
|
-
customData?: Record<string, any
|
|
568
|
+
customData?: Record<string, any>;
|
|
612
569
|
}> & {
|
|
613
570
|
type: "magicframe";
|
|
614
571
|
name: string | null;
|
|
@@ -623,38 +580,35 @@ export declare const actionTogglePolygon: {
|
|
|
623
580
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
624
581
|
strokeWidth: number;
|
|
625
582
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
626
|
-
roundness: {
|
|
583
|
+
roundness: null | {
|
|
627
584
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
628
|
-
value?: number
|
|
629
|
-
}
|
|
585
|
+
value?: number;
|
|
586
|
+
};
|
|
630
587
|
roughness: number;
|
|
631
588
|
opacity: number;
|
|
632
589
|
width: number;
|
|
633
590
|
height: number;
|
|
634
|
-
angle: import("
|
|
591
|
+
angle: import("@excalidraw/math").Radians;
|
|
635
592
|
seed: number;
|
|
636
593
|
version: number;
|
|
637
594
|
versionNonce: number;
|
|
638
595
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
639
596
|
isDeleted: boolean;
|
|
640
|
-
groupIds: readonly
|
|
597
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
641
598
|
frameId: string | null;
|
|
642
|
-
boundElements: readonly
|
|
643
|
-
id: string;
|
|
644
|
-
type: "arrow" | "text";
|
|
645
|
-
}>[] | null;
|
|
599
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
646
600
|
updated: number;
|
|
647
601
|
link: string | null;
|
|
648
602
|
locked: boolean;
|
|
649
|
-
customData?: Record<string, any
|
|
603
|
+
customData?: Record<string, any>;
|
|
650
604
|
}> & Readonly<{
|
|
651
605
|
type: "text";
|
|
652
606
|
fontSize: number;
|
|
653
|
-
fontFamily:
|
|
607
|
+
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
654
608
|
text: string;
|
|
655
|
-
textAlign:
|
|
656
|
-
verticalAlign:
|
|
657
|
-
containerId:
|
|
609
|
+
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
610
|
+
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
611
|
+
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
658
612
|
originalText: string;
|
|
659
613
|
autoResize: boolean;
|
|
660
614
|
lineHeight: number & {
|
|
@@ -671,36 +625,32 @@ export declare const actionTogglePolygon: {
|
|
|
671
625
|
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
672
626
|
strokeWidth: number;
|
|
673
627
|
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
674
|
-
roundness: {
|
|
628
|
+
roundness: null | {
|
|
675
629
|
type: import("@excalidraw/element/types").RoundnessType;
|
|
676
|
-
value?: number
|
|
677
|
-
}
|
|
630
|
+
value?: number;
|
|
631
|
+
};
|
|
678
632
|
roughness: number;
|
|
679
633
|
opacity: number;
|
|
680
634
|
width: number;
|
|
681
635
|
height: number;
|
|
682
|
-
angle: import("
|
|
636
|
+
angle: import("@excalidraw/math").Radians;
|
|
683
637
|
seed: number;
|
|
684
638
|
version: number;
|
|
685
639
|
versionNonce: number;
|
|
686
640
|
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
687
641
|
isDeleted: boolean;
|
|
688
|
-
groupIds: readonly
|
|
642
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
689
643
|
frameId: string | null;
|
|
690
|
-
boundElements: readonly
|
|
691
|
-
id: string;
|
|
692
|
-
type: "arrow" | "text";
|
|
693
|
-
}>[] | null;
|
|
644
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
694
645
|
updated: number;
|
|
695
646
|
link: string | null;
|
|
696
647
|
locked: boolean;
|
|
697
|
-
customData?: Record<string, any
|
|
648
|
+
customData?: Record<string, any>;
|
|
698
649
|
}> & Readonly<{
|
|
699
650
|
type: "freedraw";
|
|
700
|
-
points: readonly import("
|
|
651
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
701
652
|
pressures: readonly number[];
|
|
702
653
|
simulatePressure: boolean;
|
|
703
|
-
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
704
654
|
}> & {
|
|
705
655
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
706
656
|
}))[];
|