@excalidraw/common 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/dev/index.js +1070 -10
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +3 -3
- 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 +14 -12
- 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 +44 -34
- package/dist/types/common/src/visualdebug.d.ts +1 -1
- package/dist/types/element/src/Scene.d.ts +4 -4
- 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 +7 -3
- 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 +74 -142
- 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 +208 -329
- package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -99
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +149 -207
- 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 +32 -40
- 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/shapes.d.ts +1 -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 +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 +7 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
3
|
export declare const actionDeleteSelected: {
|
|
@@ -20,10 +19,10 @@ export declare const actionDeleteSelected: {
|
|
|
20
19
|
} | null;
|
|
21
20
|
showWelcomeScreen: boolean;
|
|
22
21
|
isLoading: boolean;
|
|
23
|
-
errorMessage:
|
|
22
|
+
errorMessage: React.ReactNode;
|
|
24
23
|
activeEmbeddable: {
|
|
25
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
26
|
-
state: "
|
|
25
|
+
state: "hover" | "active";
|
|
27
26
|
} | null;
|
|
28
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
29
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -59,19 +58,19 @@ export declare const actionDeleteSelected: {
|
|
|
59
58
|
exportScale: number;
|
|
60
59
|
currentItemStrokeColor: string;
|
|
61
60
|
currentItemBackgroundColor: string;
|
|
62
|
-
currentItemFillStyle:
|
|
61
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
63
62
|
currentItemStrokeWidth: number;
|
|
64
|
-
currentItemStrokeStyle:
|
|
63
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
65
64
|
currentItemRoughness: number;
|
|
66
65
|
currentItemOpacity: number;
|
|
67
|
-
currentItemFontFamily:
|
|
66
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
68
67
|
currentItemFontSize: number;
|
|
69
|
-
currentItemTextAlign:
|
|
68
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
70
69
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
71
70
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
|
-
currentHoveredFontFamily:
|
|
71
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
73
72
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
73
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
75
74
|
viewBackgroundColor: string;
|
|
76
75
|
scrollX: number;
|
|
77
76
|
scrollY: number;
|
|
@@ -80,28 +79,26 @@ export declare const actionDeleteSelected: {
|
|
|
80
79
|
name: string | null;
|
|
81
80
|
isResizing: boolean;
|
|
82
81
|
isRotating: boolean;
|
|
83
|
-
zoom:
|
|
84
|
-
value: import("../types").NormalizedZoomValue;
|
|
85
|
-
}>;
|
|
82
|
+
zoom: import("../types").Zoom;
|
|
86
83
|
openMenu: "canvas" | null;
|
|
87
|
-
openPopup: "
|
|
84
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
88
85
|
openSidebar: {
|
|
89
|
-
name:
|
|
90
|
-
tab?:
|
|
86
|
+
name: import("../types").SidebarName;
|
|
87
|
+
tab?: import("../types").SidebarTabName;
|
|
91
88
|
} | null;
|
|
92
|
-
openDialog: {
|
|
89
|
+
openDialog: null | {
|
|
93
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
94
91
|
} | {
|
|
95
92
|
name: "ttd";
|
|
96
|
-
tab: "
|
|
93
|
+
tab: "text-to-diagram" | "mermaid";
|
|
97
94
|
} | {
|
|
98
95
|
name: "commandPalette";
|
|
99
96
|
} | {
|
|
100
97
|
name: "settings";
|
|
101
98
|
} | {
|
|
102
99
|
name: "elementLinkSelector";
|
|
103
|
-
sourceElementId:
|
|
104
|
-
}
|
|
100
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
101
|
+
};
|
|
105
102
|
defaultSidebarDockedPreference: boolean;
|
|
106
103
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
107
104
|
selectedElementIds: Readonly<{
|
|
@@ -117,8 +114,8 @@ export declare const actionDeleteSelected: {
|
|
|
117
114
|
shouldCacheIgnoreZoom: boolean;
|
|
118
115
|
toast: {
|
|
119
116
|
message: string;
|
|
120
|
-
closable?: boolean
|
|
121
|
-
duration?: number
|
|
117
|
+
closable?: boolean;
|
|
118
|
+
duration?: number;
|
|
122
119
|
} | null;
|
|
123
120
|
zenModeEnabled: boolean;
|
|
124
121
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -129,32 +126,13 @@ export declare const actionDeleteSelected: {
|
|
|
129
126
|
selectedGroupIds: {
|
|
130
127
|
[groupId: string]: boolean;
|
|
131
128
|
};
|
|
132
|
-
editingGroupId:
|
|
129
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
133
130
|
width: number;
|
|
134
131
|
height: number;
|
|
135
132
|
offsetTop: number;
|
|
136
133
|
offsetLeft: number;
|
|
137
134
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
138
|
-
collaborators: Map<import("../types").SocketId,
|
|
139
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
140
|
-
button?: "up" | "down" | undefined;
|
|
141
|
-
selectedElementIds?: Readonly<{
|
|
142
|
-
[id: string]: true;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
username?: string | null | undefined;
|
|
145
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
146
|
-
color?: {
|
|
147
|
-
background: string;
|
|
148
|
-
stroke: string;
|
|
149
|
-
} | undefined;
|
|
150
|
-
avatarUrl?: string | undefined;
|
|
151
|
-
id?: string | undefined;
|
|
152
|
-
socketId?: import("../types").SocketId | undefined;
|
|
153
|
-
isCurrentUser?: boolean | undefined;
|
|
154
|
-
isInCall?: boolean | undefined;
|
|
155
|
-
isSpeaking?: boolean | undefined;
|
|
156
|
-
isMuted?: boolean | undefined;
|
|
157
|
-
}>>;
|
|
135
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
158
136
|
stats: {
|
|
159
137
|
open: boolean;
|
|
160
138
|
panels: number;
|
|
@@ -177,9 +155,9 @@ export declare const actionDeleteSelected: {
|
|
|
177
155
|
userToFollow: import("../types").UserToFollow | null;
|
|
178
156
|
followedBy: Set<import("../types").SocketId>;
|
|
179
157
|
isCropping: boolean;
|
|
180
|
-
croppingElementId:
|
|
158
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
181
159
|
searchMatches: Readonly<{
|
|
182
|
-
focusedId:
|
|
160
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
183
161
|
matches: readonly import("../types").SearchMatch[];
|
|
184
162
|
}> | null;
|
|
185
163
|
activeLockedId: string | null;
|
|
@@ -194,30 +172,30 @@ export declare const actionDeleteSelected: {
|
|
|
194
172
|
appState: {
|
|
195
173
|
selectedLinearElement: {
|
|
196
174
|
selectedPointsIndices: number[];
|
|
197
|
-
elementId:
|
|
175
|
+
elementId: ExcalidrawElement["id"] & {
|
|
198
176
|
_brand: "excalidrawLinearElementId";
|
|
199
177
|
};
|
|
200
178
|
initialState: Readonly<{
|
|
201
179
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
202
180
|
lastClickedPoint: number;
|
|
203
|
-
origin: Readonly<import("
|
|
181
|
+
origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
204
182
|
segmentMidpoint: {
|
|
205
|
-
value: import("
|
|
183
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
206
184
|
index: number | null;
|
|
207
185
|
added: boolean;
|
|
208
186
|
};
|
|
209
187
|
arrowStartIsInside: boolean;
|
|
210
|
-
altFocusPoint: Readonly<import("
|
|
188
|
+
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
211
189
|
}>;
|
|
212
190
|
isDragging: boolean;
|
|
213
|
-
lastUncommittedPoint: import("
|
|
214
|
-
lastCommittedPoint: import("
|
|
191
|
+
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
192
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
215
193
|
pointerOffset: Readonly<{
|
|
216
194
|
x: number;
|
|
217
195
|
y: number;
|
|
218
196
|
}>;
|
|
219
197
|
hoverPointIndex: number;
|
|
220
|
-
segmentMidPointHoveredCoords: import("
|
|
198
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
221
199
|
elbowed: boolean;
|
|
222
200
|
customLineAngle: number | null;
|
|
223
201
|
isEditing: boolean;
|
|
@@ -230,10 +208,10 @@ export declare const actionDeleteSelected: {
|
|
|
230
208
|
} | null;
|
|
231
209
|
showWelcomeScreen: boolean;
|
|
232
210
|
isLoading: boolean;
|
|
233
|
-
errorMessage:
|
|
211
|
+
errorMessage: React.ReactNode;
|
|
234
212
|
activeEmbeddable: {
|
|
235
213
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
236
|
-
state: "
|
|
214
|
+
state: "hover" | "active";
|
|
237
215
|
} | null;
|
|
238
216
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
239
217
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -269,19 +247,19 @@ export declare const actionDeleteSelected: {
|
|
|
269
247
|
exportScale: number;
|
|
270
248
|
currentItemStrokeColor: string;
|
|
271
249
|
currentItemBackgroundColor: string;
|
|
272
|
-
currentItemFillStyle:
|
|
250
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
273
251
|
currentItemStrokeWidth: number;
|
|
274
|
-
currentItemStrokeStyle:
|
|
252
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
275
253
|
currentItemRoughness: number;
|
|
276
254
|
currentItemOpacity: number;
|
|
277
|
-
currentItemFontFamily:
|
|
255
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
278
256
|
currentItemFontSize: number;
|
|
279
|
-
currentItemTextAlign:
|
|
257
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
280
258
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
281
259
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
282
|
-
currentHoveredFontFamily:
|
|
260
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
283
261
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
284
|
-
currentItemArrowType: "
|
|
262
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
285
263
|
viewBackgroundColor: string;
|
|
286
264
|
scrollX: number;
|
|
287
265
|
scrollY: number;
|
|
@@ -290,28 +268,26 @@ export declare const actionDeleteSelected: {
|
|
|
290
268
|
name: string | null;
|
|
291
269
|
isResizing: boolean;
|
|
292
270
|
isRotating: boolean;
|
|
293
|
-
zoom:
|
|
294
|
-
value: import("../types").NormalizedZoomValue;
|
|
295
|
-
}>;
|
|
271
|
+
zoom: import("../types").Zoom;
|
|
296
272
|
openMenu: "canvas" | null;
|
|
297
|
-
openPopup: "
|
|
273
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
298
274
|
openSidebar: {
|
|
299
|
-
name:
|
|
300
|
-
tab?:
|
|
275
|
+
name: import("../types").SidebarName;
|
|
276
|
+
tab?: import("../types").SidebarTabName;
|
|
301
277
|
} | null;
|
|
302
|
-
openDialog: {
|
|
278
|
+
openDialog: null | {
|
|
303
279
|
name: "imageExport" | "help" | "jsonExport";
|
|
304
280
|
} | {
|
|
305
281
|
name: "ttd";
|
|
306
|
-
tab: "
|
|
282
|
+
tab: "text-to-diagram" | "mermaid";
|
|
307
283
|
} | {
|
|
308
284
|
name: "commandPalette";
|
|
309
285
|
} | {
|
|
310
286
|
name: "settings";
|
|
311
287
|
} | {
|
|
312
288
|
name: "elementLinkSelector";
|
|
313
|
-
sourceElementId:
|
|
314
|
-
}
|
|
289
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
290
|
+
};
|
|
315
291
|
defaultSidebarDockedPreference: boolean;
|
|
316
292
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
317
293
|
selectedElementIds: Readonly<{
|
|
@@ -327,8 +303,8 @@ export declare const actionDeleteSelected: {
|
|
|
327
303
|
shouldCacheIgnoreZoom: boolean;
|
|
328
304
|
toast: {
|
|
329
305
|
message: string;
|
|
330
|
-
closable?: boolean
|
|
331
|
-
duration?: number
|
|
306
|
+
closable?: boolean;
|
|
307
|
+
duration?: number;
|
|
332
308
|
} | null;
|
|
333
309
|
zenModeEnabled: boolean;
|
|
334
310
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -339,32 +315,13 @@ export declare const actionDeleteSelected: {
|
|
|
339
315
|
selectedGroupIds: {
|
|
340
316
|
[groupId: string]: boolean;
|
|
341
317
|
};
|
|
342
|
-
editingGroupId:
|
|
318
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
343
319
|
width: number;
|
|
344
320
|
height: number;
|
|
345
321
|
offsetTop: number;
|
|
346
322
|
offsetLeft: number;
|
|
347
323
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
348
|
-
collaborators: Map<import("../types").SocketId,
|
|
349
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
350
|
-
button?: "up" | "down" | undefined;
|
|
351
|
-
selectedElementIds?: Readonly<{
|
|
352
|
-
[id: string]: true;
|
|
353
|
-
}> | undefined;
|
|
354
|
-
username?: string | null | undefined;
|
|
355
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
356
|
-
color?: {
|
|
357
|
-
background: string;
|
|
358
|
-
stroke: string;
|
|
359
|
-
} | undefined;
|
|
360
|
-
avatarUrl?: string | undefined;
|
|
361
|
-
id?: string | undefined;
|
|
362
|
-
socketId?: import("../types").SocketId | undefined;
|
|
363
|
-
isCurrentUser?: boolean | undefined;
|
|
364
|
-
isInCall?: boolean | undefined;
|
|
365
|
-
isSpeaking?: boolean | undefined;
|
|
366
|
-
isMuted?: boolean | undefined;
|
|
367
|
-
}>>;
|
|
324
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
368
325
|
stats: {
|
|
369
326
|
open: boolean;
|
|
370
327
|
panels: number;
|
|
@@ -387,9 +344,9 @@ export declare const actionDeleteSelected: {
|
|
|
387
344
|
userToFollow: import("../types").UserToFollow | null;
|
|
388
345
|
followedBy: Set<import("../types").SocketId>;
|
|
389
346
|
isCropping: boolean;
|
|
390
|
-
croppingElementId:
|
|
347
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
391
348
|
searchMatches: Readonly<{
|
|
392
|
-
focusedId:
|
|
349
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
393
350
|
matches: readonly import("../types").SearchMatch[];
|
|
394
351
|
}> | null;
|
|
395
352
|
activeLockedId: string | null;
|
|
@@ -411,13 +368,9 @@ export declare const actionDeleteSelected: {
|
|
|
411
368
|
newElement: null;
|
|
412
369
|
activeEmbeddable: null;
|
|
413
370
|
selectedLinearElement: null;
|
|
414
|
-
editingGroupId:
|
|
415
|
-
selectedElementIds:
|
|
416
|
-
|
|
417
|
-
}>;
|
|
418
|
-
selectedGroupIds: {
|
|
419
|
-
[groupId: string]: boolean;
|
|
420
|
-
};
|
|
371
|
+
editingGroupId: AppState["editingGroupId"];
|
|
372
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
373
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
421
374
|
contextMenu: {
|
|
422
375
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
423
376
|
top: number;
|
|
@@ -425,7 +378,7 @@ export declare const actionDeleteSelected: {
|
|
|
425
378
|
} | null;
|
|
426
379
|
showWelcomeScreen: boolean;
|
|
427
380
|
isLoading: boolean;
|
|
428
|
-
errorMessage:
|
|
381
|
+
errorMessage: React.ReactNode;
|
|
429
382
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
430
383
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
431
384
|
isBindingEnabled: boolean;
|
|
@@ -453,19 +406,19 @@ export declare const actionDeleteSelected: {
|
|
|
453
406
|
exportScale: number;
|
|
454
407
|
currentItemStrokeColor: string;
|
|
455
408
|
currentItemBackgroundColor: string;
|
|
456
|
-
currentItemFillStyle:
|
|
409
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
457
410
|
currentItemStrokeWidth: number;
|
|
458
|
-
currentItemStrokeStyle:
|
|
411
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
459
412
|
currentItemRoughness: number;
|
|
460
413
|
currentItemOpacity: number;
|
|
461
|
-
currentItemFontFamily:
|
|
414
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
462
415
|
currentItemFontSize: number;
|
|
463
|
-
currentItemTextAlign:
|
|
416
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
464
417
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
465
418
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
466
|
-
currentHoveredFontFamily:
|
|
419
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
467
420
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
468
|
-
currentItemArrowType: "
|
|
421
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
469
422
|
viewBackgroundColor: string;
|
|
470
423
|
scrollX: number;
|
|
471
424
|
scrollY: number;
|
|
@@ -474,28 +427,26 @@ export declare const actionDeleteSelected: {
|
|
|
474
427
|
name: string | null;
|
|
475
428
|
isResizing: boolean;
|
|
476
429
|
isRotating: boolean;
|
|
477
|
-
zoom:
|
|
478
|
-
value: import("../types").NormalizedZoomValue;
|
|
479
|
-
}>;
|
|
430
|
+
zoom: import("../types").Zoom;
|
|
480
431
|
openMenu: "canvas" | null;
|
|
481
|
-
openPopup: "
|
|
432
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
482
433
|
openSidebar: {
|
|
483
|
-
name:
|
|
484
|
-
tab?:
|
|
434
|
+
name: import("../types").SidebarName;
|
|
435
|
+
tab?: import("../types").SidebarTabName;
|
|
485
436
|
} | null;
|
|
486
|
-
openDialog: {
|
|
437
|
+
openDialog: null | {
|
|
487
438
|
name: "imageExport" | "help" | "jsonExport";
|
|
488
439
|
} | {
|
|
489
440
|
name: "ttd";
|
|
490
|
-
tab: "
|
|
441
|
+
tab: "text-to-diagram" | "mermaid";
|
|
491
442
|
} | {
|
|
492
443
|
name: "commandPalette";
|
|
493
444
|
} | {
|
|
494
445
|
name: "settings";
|
|
495
446
|
} | {
|
|
496
447
|
name: "elementLinkSelector";
|
|
497
|
-
sourceElementId:
|
|
498
|
-
}
|
|
448
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
449
|
+
};
|
|
499
450
|
defaultSidebarDockedPreference: boolean;
|
|
500
451
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
501
452
|
hoveredElementIds: Readonly<{
|
|
@@ -508,8 +459,8 @@ export declare const actionDeleteSelected: {
|
|
|
508
459
|
shouldCacheIgnoreZoom: boolean;
|
|
509
460
|
toast: {
|
|
510
461
|
message: string;
|
|
511
|
-
closable?: boolean
|
|
512
|
-
duration?: number
|
|
462
|
+
closable?: boolean;
|
|
463
|
+
duration?: number;
|
|
513
464
|
} | null;
|
|
514
465
|
zenModeEnabled: boolean;
|
|
515
466
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -522,26 +473,7 @@ export declare const actionDeleteSelected: {
|
|
|
522
473
|
offsetTop: number;
|
|
523
474
|
offsetLeft: number;
|
|
524
475
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
525
|
-
collaborators: Map<import("../types").SocketId,
|
|
526
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
527
|
-
button?: "up" | "down" | undefined;
|
|
528
|
-
selectedElementIds?: Readonly<{
|
|
529
|
-
[id: string]: true;
|
|
530
|
-
}> | undefined;
|
|
531
|
-
username?: string | null | undefined;
|
|
532
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
533
|
-
color?: {
|
|
534
|
-
background: string;
|
|
535
|
-
stroke: string;
|
|
536
|
-
} | undefined;
|
|
537
|
-
avatarUrl?: string | undefined;
|
|
538
|
-
id?: string | undefined;
|
|
539
|
-
socketId?: import("../types").SocketId | undefined;
|
|
540
|
-
isCurrentUser?: boolean | undefined;
|
|
541
|
-
isInCall?: boolean | undefined;
|
|
542
|
-
isSpeaking?: boolean | undefined;
|
|
543
|
-
isMuted?: boolean | undefined;
|
|
544
|
-
}>>;
|
|
476
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
545
477
|
stats: {
|
|
546
478
|
open: boolean;
|
|
547
479
|
panels: number;
|
|
@@ -564,9 +496,9 @@ export declare const actionDeleteSelected: {
|
|
|
564
496
|
userToFollow: import("../types").UserToFollow | null;
|
|
565
497
|
followedBy: Set<import("../types").SocketId>;
|
|
566
498
|
isCropping: boolean;
|
|
567
|
-
croppingElementId:
|
|
499
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
568
500
|
searchMatches: Readonly<{
|
|
569
|
-
focusedId:
|
|
501
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
570
502
|
matches: readonly import("../types").SearchMatch[];
|
|
571
503
|
}> | null;
|
|
572
504
|
activeLockedId: string | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionDuplicateSelection: {
|
|
3
2
|
name: "duplicateSelection";
|
|
4
3
|
label: string;
|
|
@@ -6,8 +5,8 @@ export declare const actionDuplicateSelection: {
|
|
|
6
5
|
trackEvent: {
|
|
7
6
|
category: "element";
|
|
8
7
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
10
|
-
elements: readonly import("
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
|
|
9
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
10
|
appState: import("../types").AppState;
|
|
12
11
|
captureUpdate: "IMMEDIATELY";
|
|
13
12
|
};
|