@excalidraw/math 0.18.0-c141960 → 0.18.0-c158187
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/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +5 -2
- package/dist/types/common/src/constants.d.ts +13 -11
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +1 -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 +43 -33
- package/dist/types/common/src/visualdebug.d.ts +1 -1
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/binding.d.ts +6 -4
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +2 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- 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 +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +1 -2
- 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/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/utils.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +114 -178
- package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +44 -87
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +263 -510
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +85 -128
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +21 -43
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +68 -136
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +41 -63
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -88
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +41 -63
- package/dist/types/excalidraw/actions/actionExport.d.ts +85 -170
- 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 +167 -288
- package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -99
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +102 -160
- package/dist/types/excalidraw/actions/actionLink.d.ts +43 -65
- package/dist/types/excalidraw/actions/actionMenu.d.ts +35 -57
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionProperties.d.ts +59 -102
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +24 -50
- package/dist/types/excalidraw/actions/actionStyles.d.ts +20 -42
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +41 -63
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +41 -63
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -57
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +40 -62
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +41 -63
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +41 -63
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +12 -12
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +33 -41
- package/dist/types/excalidraw/components/Card.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +7 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -1
- 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/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/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/TTDDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -1
- 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/common.d.ts +2 -3
- 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 +28 -32
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
- 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/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- 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 +11 -11
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -28
- 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 +321 -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 +159 -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/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 +2 -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 +1 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
4
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
5
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
6
5
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
7
6
|
export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
|
|
8
|
-
keyTest?: ((event: KeyboardEvent |
|
|
7
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
9
8
|
};
|
|
10
9
|
export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
|
|
11
|
-
keyTest?: ((event: KeyboardEvent |
|
|
10
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
12
11
|
};
|
|
13
12
|
export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
|
|
14
|
-
keyTest?: ((event: KeyboardEvent |
|
|
13
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
15
14
|
};
|
|
16
15
|
export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
|
|
17
|
-
keyTest?: ((event: KeyboardEvent |
|
|
16
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
18
17
|
};
|
|
19
18
|
export declare const actionChangeSloppiness: import("./types").Action<number> & {
|
|
20
|
-
keyTest?: ((event: KeyboardEvent |
|
|
19
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
21
20
|
};
|
|
22
21
|
export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
|
|
23
|
-
keyTest?: ((event: KeyboardEvent |
|
|
22
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
24
23
|
};
|
|
25
24
|
export declare const actionChangeOpacity: import("./types").Action<number> & {
|
|
26
|
-
keyTest?: ((event: KeyboardEvent |
|
|
25
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
27
26
|
};
|
|
28
27
|
export declare const actionChangeFontSize: import("./types").Action<number> & {
|
|
29
|
-
keyTest?: ((event: KeyboardEvent |
|
|
28
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
30
29
|
};
|
|
31
30
|
export declare const actionDecreaseFontSize: {
|
|
32
31
|
name: "decreaseFontSize";
|
|
@@ -44,10 +43,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
44
43
|
} | null;
|
|
45
44
|
showWelcomeScreen: boolean;
|
|
46
45
|
isLoading: boolean;
|
|
47
|
-
errorMessage:
|
|
46
|
+
errorMessage: React.ReactNode;
|
|
48
47
|
activeEmbeddable: {
|
|
49
48
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
50
|
-
state: "
|
|
49
|
+
state: "hover" | "active";
|
|
51
50
|
} | null;
|
|
52
51
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
53
52
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -83,18 +82,18 @@ export declare const actionDecreaseFontSize: {
|
|
|
83
82
|
exportScale: number;
|
|
84
83
|
currentItemStrokeColor: string;
|
|
85
84
|
currentItemBackgroundColor: string;
|
|
86
|
-
currentItemFillStyle:
|
|
85
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
87
86
|
currentItemStrokeWidth: number;
|
|
88
|
-
currentItemStrokeStyle:
|
|
87
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
89
88
|
currentItemRoughness: number;
|
|
90
89
|
currentItemOpacity: number;
|
|
91
|
-
currentItemFontFamily:
|
|
92
|
-
currentItemTextAlign:
|
|
90
|
+
currentItemFontFamily: FontFamilyValues;
|
|
91
|
+
currentItemTextAlign: TextAlign;
|
|
93
92
|
currentItemStartArrowhead: Arrowhead | null;
|
|
94
93
|
currentItemEndArrowhead: Arrowhead | null;
|
|
95
|
-
currentHoveredFontFamily:
|
|
94
|
+
currentHoveredFontFamily: FontFamilyValues | null;
|
|
96
95
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
97
|
-
currentItemArrowType: "
|
|
96
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
98
97
|
viewBackgroundColor: string;
|
|
99
98
|
scrollX: number;
|
|
100
99
|
scrollY: number;
|
|
@@ -103,28 +102,26 @@ export declare const actionDecreaseFontSize: {
|
|
|
103
102
|
name: string | null;
|
|
104
103
|
isResizing: boolean;
|
|
105
104
|
isRotating: boolean;
|
|
106
|
-
zoom:
|
|
107
|
-
value: import("../types").NormalizedZoomValue;
|
|
108
|
-
}>;
|
|
105
|
+
zoom: import("../types").Zoom;
|
|
109
106
|
openMenu: "canvas" | null;
|
|
110
|
-
openPopup: "
|
|
107
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
111
108
|
openSidebar: {
|
|
112
|
-
name:
|
|
113
|
-
tab?:
|
|
109
|
+
name: import("../types").SidebarName;
|
|
110
|
+
tab?: import("../types").SidebarTabName;
|
|
114
111
|
} | null;
|
|
115
|
-
openDialog: {
|
|
112
|
+
openDialog: null | {
|
|
116
113
|
name: "imageExport" | "help" | "jsonExport";
|
|
117
114
|
} | {
|
|
118
115
|
name: "ttd";
|
|
119
|
-
tab: "
|
|
116
|
+
tab: "text-to-diagram" | "mermaid";
|
|
120
117
|
} | {
|
|
121
118
|
name: "commandPalette";
|
|
122
119
|
} | {
|
|
123
120
|
name: "settings";
|
|
124
121
|
} | {
|
|
125
122
|
name: "elementLinkSelector";
|
|
126
|
-
sourceElementId:
|
|
127
|
-
}
|
|
123
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
124
|
+
};
|
|
128
125
|
defaultSidebarDockedPreference: boolean;
|
|
129
126
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
130
127
|
selectedElementIds: Readonly<{
|
|
@@ -140,8 +137,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
140
137
|
shouldCacheIgnoreZoom: boolean;
|
|
141
138
|
toast: {
|
|
142
139
|
message: string;
|
|
143
|
-
closable?: boolean
|
|
144
|
-
duration?: number
|
|
140
|
+
closable?: boolean;
|
|
141
|
+
duration?: number;
|
|
145
142
|
} | null;
|
|
146
143
|
zenModeEnabled: boolean;
|
|
147
144
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -152,32 +149,13 @@ export declare const actionDecreaseFontSize: {
|
|
|
152
149
|
selectedGroupIds: {
|
|
153
150
|
[groupId: string]: boolean;
|
|
154
151
|
};
|
|
155
|
-
editingGroupId:
|
|
152
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
156
153
|
width: number;
|
|
157
154
|
height: number;
|
|
158
155
|
offsetTop: number;
|
|
159
156
|
offsetLeft: number;
|
|
160
157
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
161
|
-
collaborators: Map<import("../types").SocketId,
|
|
162
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
163
|
-
button?: "up" | "down" | undefined;
|
|
164
|
-
selectedElementIds?: Readonly<{
|
|
165
|
-
[id: string]: true;
|
|
166
|
-
}> | undefined;
|
|
167
|
-
username?: string | null | undefined;
|
|
168
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
169
|
-
color?: {
|
|
170
|
-
background: string;
|
|
171
|
-
stroke: string;
|
|
172
|
-
} | undefined;
|
|
173
|
-
avatarUrl?: string | undefined;
|
|
174
|
-
id?: string | undefined;
|
|
175
|
-
socketId?: import("../types").SocketId | undefined;
|
|
176
|
-
isCurrentUser?: boolean | undefined;
|
|
177
|
-
isInCall?: boolean | undefined;
|
|
178
|
-
isSpeaking?: boolean | undefined;
|
|
179
|
-
isMuted?: boolean | undefined;
|
|
180
|
-
}>>;
|
|
158
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
181
159
|
stats: {
|
|
182
160
|
open: boolean;
|
|
183
161
|
panels: number;
|
|
@@ -201,9 +179,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
201
179
|
userToFollow: import("../types").UserToFollow | null;
|
|
202
180
|
followedBy: Set<import("../types").SocketId>;
|
|
203
181
|
isCropping: boolean;
|
|
204
|
-
croppingElementId:
|
|
182
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
205
183
|
searchMatches: Readonly<{
|
|
206
|
-
focusedId:
|
|
184
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
207
185
|
matches: readonly import("../types").SearchMatch[];
|
|
208
186
|
}> | null;
|
|
209
187
|
activeLockedId: string | null;
|
|
@@ -234,10 +212,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
234
212
|
} | null;
|
|
235
213
|
showWelcomeScreen: boolean;
|
|
236
214
|
isLoading: boolean;
|
|
237
|
-
errorMessage:
|
|
215
|
+
errorMessage: React.ReactNode;
|
|
238
216
|
activeEmbeddable: {
|
|
239
217
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
240
|
-
state: "
|
|
218
|
+
state: "hover" | "active";
|
|
241
219
|
} | null;
|
|
242
220
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
243
221
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -273,18 +251,18 @@ export declare const actionIncreaseFontSize: {
|
|
|
273
251
|
exportScale: number;
|
|
274
252
|
currentItemStrokeColor: string;
|
|
275
253
|
currentItemBackgroundColor: string;
|
|
276
|
-
currentItemFillStyle:
|
|
254
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
277
255
|
currentItemStrokeWidth: number;
|
|
278
|
-
currentItemStrokeStyle:
|
|
256
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
279
257
|
currentItemRoughness: number;
|
|
280
258
|
currentItemOpacity: number;
|
|
281
|
-
currentItemFontFamily:
|
|
282
|
-
currentItemTextAlign:
|
|
259
|
+
currentItemFontFamily: FontFamilyValues;
|
|
260
|
+
currentItemTextAlign: TextAlign;
|
|
283
261
|
currentItemStartArrowhead: Arrowhead | null;
|
|
284
262
|
currentItemEndArrowhead: Arrowhead | null;
|
|
285
|
-
currentHoveredFontFamily:
|
|
263
|
+
currentHoveredFontFamily: FontFamilyValues | null;
|
|
286
264
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
287
|
-
currentItemArrowType: "
|
|
265
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
288
266
|
viewBackgroundColor: string;
|
|
289
267
|
scrollX: number;
|
|
290
268
|
scrollY: number;
|
|
@@ -293,28 +271,26 @@ export declare const actionIncreaseFontSize: {
|
|
|
293
271
|
name: string | null;
|
|
294
272
|
isResizing: boolean;
|
|
295
273
|
isRotating: boolean;
|
|
296
|
-
zoom:
|
|
297
|
-
value: import("../types").NormalizedZoomValue;
|
|
298
|
-
}>;
|
|
274
|
+
zoom: import("../types").Zoom;
|
|
299
275
|
openMenu: "canvas" | null;
|
|
300
|
-
openPopup: "
|
|
276
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
301
277
|
openSidebar: {
|
|
302
|
-
name:
|
|
303
|
-
tab?:
|
|
278
|
+
name: import("../types").SidebarName;
|
|
279
|
+
tab?: import("../types").SidebarTabName;
|
|
304
280
|
} | null;
|
|
305
|
-
openDialog: {
|
|
281
|
+
openDialog: null | {
|
|
306
282
|
name: "imageExport" | "help" | "jsonExport";
|
|
307
283
|
} | {
|
|
308
284
|
name: "ttd";
|
|
309
|
-
tab: "
|
|
285
|
+
tab: "text-to-diagram" | "mermaid";
|
|
310
286
|
} | {
|
|
311
287
|
name: "commandPalette";
|
|
312
288
|
} | {
|
|
313
289
|
name: "settings";
|
|
314
290
|
} | {
|
|
315
291
|
name: "elementLinkSelector";
|
|
316
|
-
sourceElementId:
|
|
317
|
-
}
|
|
292
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
293
|
+
};
|
|
318
294
|
defaultSidebarDockedPreference: boolean;
|
|
319
295
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
320
296
|
selectedElementIds: Readonly<{
|
|
@@ -330,8 +306,8 @@ export declare const actionIncreaseFontSize: {
|
|
|
330
306
|
shouldCacheIgnoreZoom: boolean;
|
|
331
307
|
toast: {
|
|
332
308
|
message: string;
|
|
333
|
-
closable?: boolean
|
|
334
|
-
duration?: number
|
|
309
|
+
closable?: boolean;
|
|
310
|
+
duration?: number;
|
|
335
311
|
} | null;
|
|
336
312
|
zenModeEnabled: boolean;
|
|
337
313
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -342,32 +318,13 @@ export declare const actionIncreaseFontSize: {
|
|
|
342
318
|
selectedGroupIds: {
|
|
343
319
|
[groupId: string]: boolean;
|
|
344
320
|
};
|
|
345
|
-
editingGroupId:
|
|
321
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
346
322
|
width: number;
|
|
347
323
|
height: number;
|
|
348
324
|
offsetTop: number;
|
|
349
325
|
offsetLeft: number;
|
|
350
326
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
351
|
-
collaborators: Map<import("../types").SocketId,
|
|
352
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
353
|
-
button?: "up" | "down" | undefined;
|
|
354
|
-
selectedElementIds?: Readonly<{
|
|
355
|
-
[id: string]: true;
|
|
356
|
-
}> | undefined;
|
|
357
|
-
username?: string | null | undefined;
|
|
358
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
359
|
-
color?: {
|
|
360
|
-
background: string;
|
|
361
|
-
stroke: string;
|
|
362
|
-
} | undefined;
|
|
363
|
-
avatarUrl?: string | undefined;
|
|
364
|
-
id?: string | undefined;
|
|
365
|
-
socketId?: import("../types").SocketId | undefined;
|
|
366
|
-
isCurrentUser?: boolean | undefined;
|
|
367
|
-
isInCall?: boolean | undefined;
|
|
368
|
-
isSpeaking?: boolean | undefined;
|
|
369
|
-
isMuted?: boolean | undefined;
|
|
370
|
-
}>>;
|
|
327
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
371
328
|
stats: {
|
|
372
329
|
open: boolean;
|
|
373
330
|
panels: number;
|
|
@@ -391,9 +348,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
391
348
|
userToFollow: import("../types").UserToFollow | null;
|
|
392
349
|
followedBy: Set<import("../types").SocketId>;
|
|
393
350
|
isCropping: boolean;
|
|
394
|
-
croppingElementId:
|
|
351
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
395
352
|
searchMatches: Readonly<{
|
|
396
|
-
focusedId:
|
|
353
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
397
354
|
matches: readonly import("../types").SearchMatch[];
|
|
398
355
|
}> | null;
|
|
399
356
|
activeLockedId: string | null;
|
|
@@ -412,22 +369,22 @@ export declare const actionChangeFontFamily: import("./types").Action<{
|
|
|
412
369
|
currentItemFontFamily: any;
|
|
413
370
|
currentHoveredFontFamily: any;
|
|
414
371
|
}> & {
|
|
415
|
-
keyTest?: ((event: KeyboardEvent |
|
|
372
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
416
373
|
};
|
|
417
374
|
export declare const actionChangeTextAlign: import("./types").Action<string> & {
|
|
418
|
-
keyTest?: ((event: KeyboardEvent |
|
|
375
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
419
376
|
};
|
|
420
377
|
export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
|
|
421
|
-
keyTest?: ((event: KeyboardEvent |
|
|
378
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
422
379
|
};
|
|
423
380
|
export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
|
|
424
|
-
keyTest?: ((event: KeyboardEvent |
|
|
381
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
425
382
|
};
|
|
426
383
|
export declare const actionChangeArrowhead: import("./types").Action<{
|
|
427
384
|
position: "start" | "end";
|
|
428
385
|
type: Arrowhead;
|
|
429
386
|
}> & {
|
|
430
|
-
keyTest?: ((event: KeyboardEvent |
|
|
387
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
431
388
|
};
|
|
432
389
|
export declare const actionChangeArrowProperties: {
|
|
433
390
|
name: "changeArrowProperties";
|
|
@@ -439,5 +396,5 @@ export declare const actionChangeArrowProperties: {
|
|
|
439
396
|
keyTest?: undefined;
|
|
440
397
|
};
|
|
441
398
|
export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
|
|
442
|
-
keyTest?: ((event: KeyboardEvent |
|
|
399
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
443
400
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
3
|
export declare const actionSelectAll: {
|
|
@@ -12,13 +11,9 @@ export declare const actionSelectAll: {
|
|
|
12
11
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
|
|
13
12
|
appState: {
|
|
14
13
|
selectedLinearElement: LinearElementEditor | null;
|
|
15
|
-
editingGroupId:
|
|
16
|
-
selectedElementIds:
|
|
17
|
-
|
|
18
|
-
}>;
|
|
19
|
-
selectedGroupIds: {
|
|
20
|
-
[groupId: string]: boolean;
|
|
21
|
-
};
|
|
14
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
15
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
16
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
22
17
|
contextMenu: {
|
|
23
18
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
24
19
|
top: number;
|
|
@@ -26,10 +21,10 @@ export declare const actionSelectAll: {
|
|
|
26
21
|
} | null;
|
|
27
22
|
showWelcomeScreen: boolean;
|
|
28
23
|
isLoading: boolean;
|
|
29
|
-
errorMessage:
|
|
24
|
+
errorMessage: React.ReactNode;
|
|
30
25
|
activeEmbeddable: {
|
|
31
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
32
|
-
state: "
|
|
27
|
+
state: "hover" | "active";
|
|
33
28
|
} | null;
|
|
34
29
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
35
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -65,19 +60,19 @@ export declare const actionSelectAll: {
|
|
|
65
60
|
exportScale: number;
|
|
66
61
|
currentItemStrokeColor: string;
|
|
67
62
|
currentItemBackgroundColor: string;
|
|
68
|
-
currentItemFillStyle:
|
|
63
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
69
64
|
currentItemStrokeWidth: number;
|
|
70
|
-
currentItemStrokeStyle:
|
|
65
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
71
66
|
currentItemRoughness: number;
|
|
72
67
|
currentItemOpacity: number;
|
|
73
|
-
currentItemFontFamily:
|
|
68
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
74
69
|
currentItemFontSize: number;
|
|
75
|
-
currentItemTextAlign:
|
|
70
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
76
71
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
77
72
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
78
|
-
currentHoveredFontFamily:
|
|
73
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
79
74
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
80
|
-
currentItemArrowType: "
|
|
75
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
81
76
|
viewBackgroundColor: string;
|
|
82
77
|
scrollX: number;
|
|
83
78
|
scrollY: number;
|
|
@@ -86,28 +81,26 @@ export declare const actionSelectAll: {
|
|
|
86
81
|
name: string | null;
|
|
87
82
|
isResizing: boolean;
|
|
88
83
|
isRotating: boolean;
|
|
89
|
-
zoom:
|
|
90
|
-
value: import("../types").NormalizedZoomValue;
|
|
91
|
-
}>;
|
|
84
|
+
zoom: import("../types").Zoom;
|
|
92
85
|
openMenu: "canvas" | null;
|
|
93
|
-
openPopup: "
|
|
86
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
94
87
|
openSidebar: {
|
|
95
|
-
name:
|
|
96
|
-
tab?:
|
|
88
|
+
name: import("../types").SidebarName;
|
|
89
|
+
tab?: import("../types").SidebarTabName;
|
|
97
90
|
} | null;
|
|
98
|
-
openDialog: {
|
|
91
|
+
openDialog: null | {
|
|
99
92
|
name: "imageExport" | "help" | "jsonExport";
|
|
100
93
|
} | {
|
|
101
94
|
name: "ttd";
|
|
102
|
-
tab: "
|
|
95
|
+
tab: "text-to-diagram" | "mermaid";
|
|
103
96
|
} | {
|
|
104
97
|
name: "commandPalette";
|
|
105
98
|
} | {
|
|
106
99
|
name: "settings";
|
|
107
100
|
} | {
|
|
108
101
|
name: "elementLinkSelector";
|
|
109
|
-
sourceElementId:
|
|
110
|
-
}
|
|
102
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
103
|
+
};
|
|
111
104
|
defaultSidebarDockedPreference: boolean;
|
|
112
105
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
113
106
|
hoveredElementIds: Readonly<{
|
|
@@ -120,8 +113,8 @@ export declare const actionSelectAll: {
|
|
|
120
113
|
shouldCacheIgnoreZoom: boolean;
|
|
121
114
|
toast: {
|
|
122
115
|
message: string;
|
|
123
|
-
closable?: boolean
|
|
124
|
-
duration?: number
|
|
116
|
+
closable?: boolean;
|
|
117
|
+
duration?: number;
|
|
125
118
|
} | null;
|
|
126
119
|
zenModeEnabled: boolean;
|
|
127
120
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -134,26 +127,7 @@ export declare const actionSelectAll: {
|
|
|
134
127
|
offsetTop: number;
|
|
135
128
|
offsetLeft: number;
|
|
136
129
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
137
|
-
collaborators: Map<import("../types").SocketId,
|
|
138
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
139
|
-
button?: "up" | "down" | undefined;
|
|
140
|
-
selectedElementIds?: Readonly<{
|
|
141
|
-
[id: string]: true;
|
|
142
|
-
}> | undefined;
|
|
143
|
-
username?: string | null | undefined;
|
|
144
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
145
|
-
color?: {
|
|
146
|
-
background: string;
|
|
147
|
-
stroke: string;
|
|
148
|
-
} | undefined;
|
|
149
|
-
avatarUrl?: string | undefined;
|
|
150
|
-
id?: string | undefined;
|
|
151
|
-
socketId?: import("../types").SocketId | undefined;
|
|
152
|
-
isCurrentUser?: boolean | undefined;
|
|
153
|
-
isInCall?: boolean | undefined;
|
|
154
|
-
isSpeaking?: boolean | undefined;
|
|
155
|
-
isMuted?: boolean | undefined;
|
|
156
|
-
}>>;
|
|
130
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
157
131
|
stats: {
|
|
158
132
|
open: boolean;
|
|
159
133
|
panels: number;
|
|
@@ -176,9 +150,9 @@ export declare const actionSelectAll: {
|
|
|
176
150
|
userToFollow: import("../types").UserToFollow | null;
|
|
177
151
|
followedBy: Set<import("../types").SocketId>;
|
|
178
152
|
isCropping: boolean;
|
|
179
|
-
croppingElementId:
|
|
153
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
180
154
|
searchMatches: Readonly<{
|
|
181
|
-
focusedId:
|
|
155
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
182
156
|
matches: readonly import("../types").SearchMatch[];
|
|
183
157
|
}> | null;
|
|
184
158
|
activeLockedId: string | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare let copiedStyles: string;
|
|
3
2
|
export declare const actionCopyStyles: {
|
|
4
3
|
name: "copyStyles";
|
|
@@ -19,10 +18,10 @@ export declare const actionCopyStyles: {
|
|
|
19
18
|
} | null;
|
|
20
19
|
showWelcomeScreen: boolean;
|
|
21
20
|
isLoading: boolean;
|
|
22
|
-
errorMessage:
|
|
21
|
+
errorMessage: React.ReactNode;
|
|
23
22
|
activeEmbeddable: {
|
|
24
23
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
24
|
+
state: "hover" | "active";
|
|
26
25
|
} | null;
|
|
27
26
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
27
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -58,19 +57,19 @@ export declare const actionCopyStyles: {
|
|
|
58
57
|
exportScale: number;
|
|
59
58
|
currentItemStrokeColor: string;
|
|
60
59
|
currentItemBackgroundColor: string;
|
|
61
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
60
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
62
61
|
currentItemStrokeWidth: number;
|
|
63
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
62
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
64
63
|
currentItemRoughness: number;
|
|
65
64
|
currentItemOpacity: number;
|
|
66
|
-
currentItemFontFamily:
|
|
65
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
67
66
|
currentItemFontSize: number;
|
|
68
|
-
currentItemTextAlign:
|
|
67
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
69
68
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
69
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
71
|
-
currentHoveredFontFamily:
|
|
70
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
72
71
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
73
|
-
currentItemArrowType: "
|
|
72
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
74
73
|
viewBackgroundColor: string;
|
|
75
74
|
scrollX: number;
|
|
76
75
|
scrollY: number;
|
|
@@ -79,28 +78,26 @@ export declare const actionCopyStyles: {
|
|
|
79
78
|
name: string | null;
|
|
80
79
|
isResizing: boolean;
|
|
81
80
|
isRotating: boolean;
|
|
82
|
-
zoom:
|
|
83
|
-
value: import("../types").NormalizedZoomValue;
|
|
84
|
-
}>;
|
|
81
|
+
zoom: import("../types").Zoom;
|
|
85
82
|
openMenu: "canvas" | null;
|
|
86
|
-
openPopup: "
|
|
83
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
87
84
|
openSidebar: {
|
|
88
|
-
name:
|
|
89
|
-
tab?:
|
|
85
|
+
name: import("../types").SidebarName;
|
|
86
|
+
tab?: import("../types").SidebarTabName;
|
|
90
87
|
} | null;
|
|
91
|
-
openDialog: {
|
|
88
|
+
openDialog: null | {
|
|
92
89
|
name: "imageExport" | "help" | "jsonExport";
|
|
93
90
|
} | {
|
|
94
91
|
name: "ttd";
|
|
95
|
-
tab: "
|
|
92
|
+
tab: "text-to-diagram" | "mermaid";
|
|
96
93
|
} | {
|
|
97
94
|
name: "commandPalette";
|
|
98
95
|
} | {
|
|
99
96
|
name: "settings";
|
|
100
97
|
} | {
|
|
101
98
|
name: "elementLinkSelector";
|
|
102
|
-
sourceElementId:
|
|
103
|
-
}
|
|
99
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
100
|
+
};
|
|
104
101
|
defaultSidebarDockedPreference: boolean;
|
|
105
102
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
106
103
|
selectedElementIds: Readonly<{
|
|
@@ -123,32 +120,13 @@ export declare const actionCopyStyles: {
|
|
|
123
120
|
selectedGroupIds: {
|
|
124
121
|
[groupId: string]: boolean;
|
|
125
122
|
};
|
|
126
|
-
editingGroupId:
|
|
123
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
127
124
|
width: number;
|
|
128
125
|
height: number;
|
|
129
126
|
offsetTop: number;
|
|
130
127
|
offsetLeft: number;
|
|
131
128
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
132
|
-
collaborators: Map<import("../types").SocketId,
|
|
133
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
134
|
-
button?: "up" | "down" | undefined;
|
|
135
|
-
selectedElementIds?: Readonly<{
|
|
136
|
-
[id: string]: true;
|
|
137
|
-
}> | undefined;
|
|
138
|
-
username?: string | null | undefined;
|
|
139
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
140
|
-
color?: {
|
|
141
|
-
background: string;
|
|
142
|
-
stroke: string;
|
|
143
|
-
} | undefined;
|
|
144
|
-
avatarUrl?: string | undefined;
|
|
145
|
-
id?: string | undefined;
|
|
146
|
-
socketId?: import("../types").SocketId | undefined;
|
|
147
|
-
isCurrentUser?: boolean | undefined;
|
|
148
|
-
isInCall?: boolean | undefined;
|
|
149
|
-
isSpeaking?: boolean | undefined;
|
|
150
|
-
isMuted?: boolean | undefined;
|
|
151
|
-
}>>;
|
|
129
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
152
130
|
stats: {
|
|
153
131
|
open: boolean;
|
|
154
132
|
panels: number;
|
|
@@ -172,9 +150,9 @@ export declare const actionCopyStyles: {
|
|
|
172
150
|
userToFollow: import("../types").UserToFollow | null;
|
|
173
151
|
followedBy: Set<import("../types").SocketId>;
|
|
174
152
|
isCropping: boolean;
|
|
175
|
-
croppingElementId:
|
|
153
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
176
154
|
searchMatches: Readonly<{
|
|
177
|
-
focusedId:
|
|
155
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
178
156
|
matches: readonly import("../types").SearchMatch[];
|
|
179
157
|
}> | null;
|
|
180
158
|
activeLockedId: string | null;
|
|
@@ -6,10 +6,10 @@ export declare const actionTextAutoResize: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
predicate: (elements: readonly import("
|
|
10
|
-
perform: (elements: readonly import("
|
|
9
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
|
-
elements: import("
|
|
12
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
} & {
|