@excalidraw/excalidraw 0.18.0-414182f → 0.18.0-4e0441e
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/{chunk-QF5FRM6O.js → chunk-LLUJPE5U.js} +48 -26
- package/dist/dev/chunk-LLUJPE5U.js.map +7 -0
- package/dist/dev/{chunk-WWDIUJ2Q.js → chunk-YMRX7R7U.js} +50 -51
- package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
- package/dist/dev/data/{image-VTYIFRQE.js → image-L23D26XS.js} +2 -2
- package/dist/dev/index.css +989 -592
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +4782 -2938
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-SMAPCEOQ.js → en-YSPYSBUR.js} +4 -2
- package/dist/prod/chunk-HT4FKTIQ.js +4 -0
- package/dist/prod/chunk-RSFMSEP5.js +12 -0
- package/dist/prod/data/{image-YQ6UXXDA.js → image-NWF7UX55.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +22 -22
- package/dist/prod/locales/en-SFRQHD7K.js +1 -0
- package/dist/types/common/src/constants.d.ts +11 -1
- package/dist/types/common/src/utils.d.ts +3 -1
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/transformHandles.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +92 -40
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +42 -12
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +21 -6
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +63 -18
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -3
- package/dist/types/excalidraw/actions/actionLink.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -368
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -38
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -2
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -1
- package/dist/types/excalidraw/clipboard.d.ts +2 -0
- package/dist/types/excalidraw/components/Actions.d.ts +17 -3
- package/dist/types/excalidraw/components/App.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
- 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/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -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/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +5 -0
- package/dist/types/excalidraw/data/blob.d.ts +2 -2
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +10 -3
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +4 -4
- package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
- package/dist/dev/chunk-WWDIUJ2Q.js.map +0 -7
- package/dist/prod/chunk-I4UNSFV6.js +0 -12
- package/dist/prod/chunk-VTWWEYSQ.js +0 -4
- package/dist/prod/locales/en-TYY6KWIJ.js +0 -1
- /package/dist/dev/data/{image-VTYIFRQE.js.map → image-L23D26XS.js.map} +0 -0
- /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-YSPYSBUR.js.map} +0 -0
|
@@ -55,6 +55,10 @@ export declare const actionGroup: {
|
|
|
55
55
|
locked: boolean;
|
|
56
56
|
fromSelection: boolean;
|
|
57
57
|
} & import("../types").ActiveTool;
|
|
58
|
+
preferredSelectionTool: {
|
|
59
|
+
type: "selection" | "lasso";
|
|
60
|
+
initialized: boolean;
|
|
61
|
+
};
|
|
58
62
|
penMode: boolean;
|
|
59
63
|
penDetected: boolean;
|
|
60
64
|
exportBackground: boolean;
|
|
@@ -87,8 +91,8 @@ export declare const actionGroup: {
|
|
|
87
91
|
zoom: Readonly<{
|
|
88
92
|
value: import("../types").NormalizedZoomValue;
|
|
89
93
|
}>;
|
|
90
|
-
openMenu: "canvas" |
|
|
91
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
94
|
+
openMenu: "canvas" | null;
|
|
95
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
92
96
|
openSidebar: {
|
|
93
97
|
name: string;
|
|
94
98
|
tab?: string | undefined;
|
|
@@ -182,6 +186,7 @@ export declare const actionGroup: {
|
|
|
182
186
|
lockedMultiSelections: {
|
|
183
187
|
[groupId: string]: true;
|
|
184
188
|
};
|
|
189
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
185
190
|
};
|
|
186
191
|
elements: OrderedExcalidrawElement[];
|
|
187
192
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -246,6 +251,10 @@ export declare const actionUngroup: {
|
|
|
246
251
|
locked: boolean;
|
|
247
252
|
fromSelection: boolean;
|
|
248
253
|
} & import("../types").ActiveTool;
|
|
254
|
+
preferredSelectionTool: {
|
|
255
|
+
type: "selection" | "lasso";
|
|
256
|
+
initialized: boolean;
|
|
257
|
+
};
|
|
249
258
|
penMode: boolean;
|
|
250
259
|
penDetected: boolean;
|
|
251
260
|
exportBackground: boolean;
|
|
@@ -278,8 +287,8 @@ export declare const actionUngroup: {
|
|
|
278
287
|
zoom: Readonly<{
|
|
279
288
|
value: import("../types").NormalizedZoomValue;
|
|
280
289
|
}>;
|
|
281
|
-
openMenu: "canvas" |
|
|
282
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
290
|
+
openMenu: "canvas" | null;
|
|
291
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
283
292
|
openSidebar: {
|
|
284
293
|
name: string;
|
|
285
294
|
tab?: string | undefined;
|
|
@@ -373,6 +382,7 @@ export declare const actionUngroup: {
|
|
|
373
382
|
lockedMultiSelections: {
|
|
374
383
|
[groupId: string]: true;
|
|
375
384
|
};
|
|
385
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
376
386
|
};
|
|
377
387
|
elements: OrderedExcalidrawElement[];
|
|
378
388
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -78,6 +78,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
78
78
|
locked: boolean;
|
|
79
79
|
fromSelection: boolean;
|
|
80
80
|
} & import("../types").ActiveTool;
|
|
81
|
+
preferredSelectionTool: {
|
|
82
|
+
type: "selection" | "lasso";
|
|
83
|
+
initialized: boolean;
|
|
84
|
+
};
|
|
81
85
|
penMode: boolean;
|
|
82
86
|
penDetected: boolean;
|
|
83
87
|
exportBackground: boolean;
|
|
@@ -110,8 +114,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
110
114
|
zoom: Readonly<{
|
|
111
115
|
value: import("../types").NormalizedZoomValue;
|
|
112
116
|
}>;
|
|
113
|
-
openMenu: "canvas" |
|
|
114
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
117
|
+
openMenu: "canvas" | null;
|
|
118
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
115
119
|
openSidebar: {
|
|
116
120
|
name: string;
|
|
117
121
|
tab?: string | undefined;
|
|
@@ -211,10 +215,11 @@ export declare const actionToggleLinearEditor: {
|
|
|
211
215
|
lockedMultiSelections: {
|
|
212
216
|
[groupId: string]: true;
|
|
213
217
|
};
|
|
218
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
214
219
|
};
|
|
215
220
|
captureUpdate: "IMMEDIATELY";
|
|
216
221
|
};
|
|
217
|
-
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
222
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
218
223
|
} & {
|
|
219
224
|
keyTest?: undefined;
|
|
220
225
|
};
|
|
@@ -42,6 +42,10 @@ export declare const actionLink: {
|
|
|
42
42
|
locked: boolean;
|
|
43
43
|
fromSelection: boolean;
|
|
44
44
|
} & import("../types").ActiveTool;
|
|
45
|
+
preferredSelectionTool: {
|
|
46
|
+
type: "selection" | "lasso";
|
|
47
|
+
initialized: boolean;
|
|
48
|
+
};
|
|
45
49
|
penMode: boolean;
|
|
46
50
|
penDetected: boolean;
|
|
47
51
|
exportBackground: boolean;
|
|
@@ -74,7 +78,7 @@ export declare const actionLink: {
|
|
|
74
78
|
zoom: Readonly<{
|
|
75
79
|
value: import("../types").NormalizedZoomValue;
|
|
76
80
|
}>;
|
|
77
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
78
82
|
openSidebar: {
|
|
79
83
|
name: string;
|
|
80
84
|
tab?: string | undefined;
|
|
@@ -174,6 +178,7 @@ export declare const actionLink: {
|
|
|
174
178
|
lockedMultiSelections: {
|
|
175
179
|
[groupId: string]: true;
|
|
176
180
|
};
|
|
181
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
177
182
|
};
|
|
178
183
|
captureUpdate: "IMMEDIATELY";
|
|
179
184
|
};
|
|
@@ -1,370 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const actionToggleCanvasMenu: {
|
|
3
|
-
name: "toggleCanvasMenu";
|
|
4
|
-
label: string;
|
|
5
|
-
trackEvent: {
|
|
6
|
-
category: "menu";
|
|
7
|
-
};
|
|
8
|
-
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
9
|
-
appState: {
|
|
10
|
-
openMenu: "canvas" | null;
|
|
11
|
-
contextMenu: {
|
|
12
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
13
|
-
top: number;
|
|
14
|
-
left: number;
|
|
15
|
-
} | null;
|
|
16
|
-
showWelcomeScreen: boolean;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
errorMessage: import("react").ReactNode;
|
|
19
|
-
activeEmbeddable: {
|
|
20
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
21
|
-
state: "active" | "hover";
|
|
22
|
-
} | null;
|
|
23
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
24
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
26
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
-
isBindingEnabled: boolean;
|
|
28
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
30
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
|
-
frameRendering: {
|
|
32
|
-
enabled: boolean;
|
|
33
|
-
name: boolean;
|
|
34
|
-
outline: boolean;
|
|
35
|
-
clip: boolean;
|
|
36
|
-
};
|
|
37
|
-
editingFrame: string | null;
|
|
38
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
|
-
activeTool: {
|
|
41
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
42
|
-
locked: boolean;
|
|
43
|
-
fromSelection: boolean;
|
|
44
|
-
} & import("../types").ActiveTool;
|
|
45
|
-
penMode: boolean;
|
|
46
|
-
penDetected: boolean;
|
|
47
|
-
exportBackground: boolean;
|
|
48
|
-
exportEmbedScene: boolean;
|
|
49
|
-
exportWithDarkMode: boolean;
|
|
50
|
-
exportScale: number;
|
|
51
|
-
currentItemStrokeColor: string;
|
|
52
|
-
currentItemBackgroundColor: string;
|
|
53
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
54
|
-
currentItemStrokeWidth: number;
|
|
55
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
56
|
-
currentItemRoughness: number;
|
|
57
|
-
currentItemOpacity: number;
|
|
58
|
-
currentItemFontFamily: number;
|
|
59
|
-
currentItemFontSize: number;
|
|
60
|
-
currentItemTextAlign: string;
|
|
61
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
62
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
63
|
-
currentHoveredFontFamily: number | null;
|
|
64
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
65
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
66
|
-
viewBackgroundColor: string;
|
|
67
|
-
scrollX: number;
|
|
68
|
-
scrollY: number;
|
|
69
|
-
cursorButton: "up" | "down";
|
|
70
|
-
scrolledOutside: boolean;
|
|
71
|
-
name: string | null;
|
|
72
|
-
isResizing: boolean;
|
|
73
|
-
isRotating: boolean;
|
|
74
|
-
zoom: Readonly<{
|
|
75
|
-
value: import("../types").NormalizedZoomValue;
|
|
76
|
-
}>;
|
|
77
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
78
|
-
openSidebar: {
|
|
79
|
-
name: string;
|
|
80
|
-
tab?: string | undefined;
|
|
81
|
-
} | null;
|
|
82
|
-
openDialog: {
|
|
83
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
84
|
-
} | {
|
|
85
|
-
name: "ttd";
|
|
86
|
-
tab: "mermaid" | "text-to-diagram";
|
|
87
|
-
} | {
|
|
88
|
-
name: "commandPalette";
|
|
89
|
-
} | {
|
|
90
|
-
name: "elementLinkSelector";
|
|
91
|
-
sourceElementId: string;
|
|
92
|
-
} | null;
|
|
93
|
-
defaultSidebarDockedPreference: boolean;
|
|
94
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
95
|
-
selectedElementIds: Readonly<{
|
|
96
|
-
[id: string]: true;
|
|
97
|
-
}>;
|
|
98
|
-
hoveredElementIds: Readonly<{
|
|
99
|
-
[id: string]: true;
|
|
100
|
-
}>;
|
|
101
|
-
previousSelectedElementIds: {
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
};
|
|
104
|
-
selectedElementsAreBeingDragged: boolean;
|
|
105
|
-
shouldCacheIgnoreZoom: boolean;
|
|
106
|
-
toast: {
|
|
107
|
-
message: string;
|
|
108
|
-
closable?: boolean | undefined;
|
|
109
|
-
duration?: number | undefined;
|
|
110
|
-
} | null;
|
|
111
|
-
zenModeEnabled: boolean;
|
|
112
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
113
|
-
gridSize: number;
|
|
114
|
-
gridStep: number;
|
|
115
|
-
gridModeEnabled: boolean;
|
|
116
|
-
viewModeEnabled: boolean;
|
|
117
|
-
selectedGroupIds: {
|
|
118
|
-
[groupId: string]: boolean;
|
|
119
|
-
};
|
|
120
|
-
editingGroupId: string | null;
|
|
121
|
-
width: number;
|
|
122
|
-
height: number;
|
|
123
|
-
offsetTop: number;
|
|
124
|
-
offsetLeft: number;
|
|
125
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
126
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
127
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
128
|
-
button?: "up" | "down" | undefined;
|
|
129
|
-
selectedElementIds?: Readonly<{
|
|
130
|
-
[id: string]: true;
|
|
131
|
-
}> | undefined;
|
|
132
|
-
username?: string | null | undefined;
|
|
133
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
134
|
-
color?: {
|
|
135
|
-
background: string;
|
|
136
|
-
stroke: string;
|
|
137
|
-
} | undefined;
|
|
138
|
-
avatarUrl?: string | undefined;
|
|
139
|
-
id?: string | undefined;
|
|
140
|
-
socketId?: import("../types").SocketId | undefined;
|
|
141
|
-
isCurrentUser?: boolean | undefined;
|
|
142
|
-
isInCall?: boolean | undefined;
|
|
143
|
-
isSpeaking?: boolean | undefined;
|
|
144
|
-
isMuted?: boolean | undefined;
|
|
145
|
-
}>>;
|
|
146
|
-
stats: {
|
|
147
|
-
open: boolean;
|
|
148
|
-
panels: number;
|
|
149
|
-
};
|
|
150
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
151
|
-
pasteDialog: {
|
|
152
|
-
shown: false;
|
|
153
|
-
data: null;
|
|
154
|
-
} | {
|
|
155
|
-
shown: true;
|
|
156
|
-
data: import("../charts").Spreadsheet;
|
|
157
|
-
};
|
|
158
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
159
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
160
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
161
|
-
originSnapOffset: {
|
|
162
|
-
x: number;
|
|
163
|
-
y: number;
|
|
164
|
-
} | null;
|
|
165
|
-
objectsSnapModeEnabled: boolean;
|
|
166
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
167
|
-
followedBy: Set<import("../types").SocketId>;
|
|
168
|
-
isCropping: boolean;
|
|
169
|
-
croppingElementId: string | null;
|
|
170
|
-
searchMatches: Readonly<{
|
|
171
|
-
focusedId: string | null;
|
|
172
|
-
matches: readonly import("../types").SearchMatch[];
|
|
173
|
-
}> | null;
|
|
174
|
-
activeLockedId: string | null;
|
|
175
|
-
lockedMultiSelections: {
|
|
176
|
-
[groupId: string]: true;
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
captureUpdate: "EVENTUALLY";
|
|
180
|
-
};
|
|
181
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
182
|
-
} & {
|
|
183
|
-
keyTest?: undefined;
|
|
184
|
-
};
|
|
185
|
-
export declare const actionToggleEditMenu: {
|
|
186
|
-
name: "toggleEditMenu";
|
|
187
|
-
label: string;
|
|
188
|
-
trackEvent: {
|
|
189
|
-
category: "menu";
|
|
190
|
-
};
|
|
191
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
192
|
-
appState: {
|
|
193
|
-
openMenu: "shape" | null;
|
|
194
|
-
contextMenu: {
|
|
195
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
196
|
-
top: number;
|
|
197
|
-
left: number;
|
|
198
|
-
} | null;
|
|
199
|
-
showWelcomeScreen: boolean;
|
|
200
|
-
isLoading: boolean;
|
|
201
|
-
errorMessage: import("react").ReactNode;
|
|
202
|
-
activeEmbeddable: {
|
|
203
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
204
|
-
state: "active" | "hover";
|
|
205
|
-
} | null;
|
|
206
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
207
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
208
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
209
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
210
|
-
isBindingEnabled: boolean;
|
|
211
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
212
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
213
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
214
|
-
frameRendering: {
|
|
215
|
-
enabled: boolean;
|
|
216
|
-
name: boolean;
|
|
217
|
-
outline: boolean;
|
|
218
|
-
clip: boolean;
|
|
219
|
-
};
|
|
220
|
-
editingFrame: string | null;
|
|
221
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
222
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
|
-
activeTool: {
|
|
224
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
225
|
-
locked: boolean;
|
|
226
|
-
fromSelection: boolean;
|
|
227
|
-
} & import("../types").ActiveTool;
|
|
228
|
-
penMode: boolean;
|
|
229
|
-
penDetected: boolean;
|
|
230
|
-
exportBackground: boolean;
|
|
231
|
-
exportEmbedScene: boolean;
|
|
232
|
-
exportWithDarkMode: boolean;
|
|
233
|
-
exportScale: number;
|
|
234
|
-
currentItemStrokeColor: string;
|
|
235
|
-
currentItemBackgroundColor: string;
|
|
236
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
237
|
-
currentItemStrokeWidth: number;
|
|
238
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
239
|
-
currentItemRoughness: number;
|
|
240
|
-
currentItemOpacity: number;
|
|
241
|
-
currentItemFontFamily: number;
|
|
242
|
-
currentItemFontSize: number;
|
|
243
|
-
currentItemTextAlign: string;
|
|
244
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
245
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
246
|
-
currentHoveredFontFamily: number | null;
|
|
247
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
248
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
249
|
-
viewBackgroundColor: string;
|
|
250
|
-
scrollX: number;
|
|
251
|
-
scrollY: number;
|
|
252
|
-
cursorButton: "up" | "down";
|
|
253
|
-
scrolledOutside: boolean;
|
|
254
|
-
name: string | null;
|
|
255
|
-
isResizing: boolean;
|
|
256
|
-
isRotating: boolean;
|
|
257
|
-
zoom: Readonly<{
|
|
258
|
-
value: import("../types").NormalizedZoomValue;
|
|
259
|
-
}>;
|
|
260
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
261
|
-
openSidebar: {
|
|
262
|
-
name: string;
|
|
263
|
-
tab?: string | undefined;
|
|
264
|
-
} | null;
|
|
265
|
-
openDialog: {
|
|
266
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
267
|
-
} | {
|
|
268
|
-
name: "ttd";
|
|
269
|
-
tab: "mermaid" | "text-to-diagram";
|
|
270
|
-
} | {
|
|
271
|
-
name: "commandPalette";
|
|
272
|
-
} | {
|
|
273
|
-
name: "elementLinkSelector";
|
|
274
|
-
sourceElementId: string;
|
|
275
|
-
} | null;
|
|
276
|
-
defaultSidebarDockedPreference: boolean;
|
|
277
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
278
|
-
selectedElementIds: Readonly<{
|
|
279
|
-
[id: string]: true;
|
|
280
|
-
}>;
|
|
281
|
-
hoveredElementIds: Readonly<{
|
|
282
|
-
[id: string]: true;
|
|
283
|
-
}>;
|
|
284
|
-
previousSelectedElementIds: {
|
|
285
|
-
[id: string]: true;
|
|
286
|
-
};
|
|
287
|
-
selectedElementsAreBeingDragged: boolean;
|
|
288
|
-
shouldCacheIgnoreZoom: boolean;
|
|
289
|
-
toast: {
|
|
290
|
-
message: string;
|
|
291
|
-
closable?: boolean | undefined;
|
|
292
|
-
duration?: number | undefined;
|
|
293
|
-
} | null;
|
|
294
|
-
zenModeEnabled: boolean;
|
|
295
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
296
|
-
gridSize: number;
|
|
297
|
-
gridStep: number;
|
|
298
|
-
gridModeEnabled: boolean;
|
|
299
|
-
viewModeEnabled: boolean;
|
|
300
|
-
selectedGroupIds: {
|
|
301
|
-
[groupId: string]: boolean;
|
|
302
|
-
};
|
|
303
|
-
editingGroupId: string | null;
|
|
304
|
-
width: number;
|
|
305
|
-
height: number;
|
|
306
|
-
offsetTop: number;
|
|
307
|
-
offsetLeft: number;
|
|
308
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
309
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
310
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
311
|
-
button?: "up" | "down" | undefined;
|
|
312
|
-
selectedElementIds?: Readonly<{
|
|
313
|
-
[id: string]: true;
|
|
314
|
-
}> | undefined;
|
|
315
|
-
username?: string | null | undefined;
|
|
316
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
317
|
-
color?: {
|
|
318
|
-
background: string;
|
|
319
|
-
stroke: string;
|
|
320
|
-
} | undefined;
|
|
321
|
-
avatarUrl?: string | undefined;
|
|
322
|
-
id?: string | undefined;
|
|
323
|
-
socketId?: import("../types").SocketId | undefined;
|
|
324
|
-
isCurrentUser?: boolean | undefined;
|
|
325
|
-
isInCall?: boolean | undefined;
|
|
326
|
-
isSpeaking?: boolean | undefined;
|
|
327
|
-
isMuted?: boolean | undefined;
|
|
328
|
-
}>>;
|
|
329
|
-
stats: {
|
|
330
|
-
open: boolean;
|
|
331
|
-
panels: number;
|
|
332
|
-
};
|
|
333
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
334
|
-
pasteDialog: {
|
|
335
|
-
shown: false;
|
|
336
|
-
data: null;
|
|
337
|
-
} | {
|
|
338
|
-
shown: true;
|
|
339
|
-
data: import("../charts").Spreadsheet;
|
|
340
|
-
};
|
|
341
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
342
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
343
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
344
|
-
originSnapOffset: {
|
|
345
|
-
x: number;
|
|
346
|
-
y: number;
|
|
347
|
-
} | null;
|
|
348
|
-
objectsSnapModeEnabled: boolean;
|
|
349
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
350
|
-
followedBy: Set<import("../types").SocketId>;
|
|
351
|
-
isCropping: boolean;
|
|
352
|
-
croppingElementId: string | null;
|
|
353
|
-
searchMatches: Readonly<{
|
|
354
|
-
focusedId: string | null;
|
|
355
|
-
matches: readonly import("../types").SearchMatch[];
|
|
356
|
-
}> | null;
|
|
357
|
-
activeLockedId: string | null;
|
|
358
|
-
lockedMultiSelections: {
|
|
359
|
-
[groupId: string]: true;
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
captureUpdate: "EVENTUALLY";
|
|
363
|
-
};
|
|
364
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
365
|
-
} & {
|
|
366
|
-
keyTest?: undefined;
|
|
367
|
-
};
|
|
368
2
|
export declare const actionShortcuts: {
|
|
369
3
|
name: "toggleShortcuts";
|
|
370
4
|
label: string;
|
|
@@ -379,6 +13,8 @@ export declare const actionShortcuts: {
|
|
|
379
13
|
openDialog: {
|
|
380
14
|
name: "help";
|
|
381
15
|
} | null;
|
|
16
|
+
openMenu: null;
|
|
17
|
+
openPopup: null;
|
|
382
18
|
contextMenu: {
|
|
383
19
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
384
20
|
top: number;
|
|
@@ -413,6 +49,10 @@ export declare const actionShortcuts: {
|
|
|
413
49
|
locked: boolean;
|
|
414
50
|
fromSelection: boolean;
|
|
415
51
|
} & import("../types").ActiveTool;
|
|
52
|
+
preferredSelectionTool: {
|
|
53
|
+
type: "selection" | "lasso";
|
|
54
|
+
initialized: boolean;
|
|
55
|
+
};
|
|
416
56
|
penMode: boolean;
|
|
417
57
|
penDetected: boolean;
|
|
418
58
|
exportBackground: boolean;
|
|
@@ -445,8 +85,6 @@ export declare const actionShortcuts: {
|
|
|
445
85
|
zoom: Readonly<{
|
|
446
86
|
value: import("../types").NormalizedZoomValue;
|
|
447
87
|
}>;
|
|
448
|
-
openMenu: "canvas" | "shape" | null;
|
|
449
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
450
88
|
openSidebar: {
|
|
451
89
|
name: string;
|
|
452
90
|
tab?: string | undefined;
|
|
@@ -536,6 +174,7 @@ export declare const actionShortcuts: {
|
|
|
536
174
|
lockedMultiSelections: {
|
|
537
175
|
[groupId: string]: true;
|
|
538
176
|
};
|
|
177
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
539
178
|
};
|
|
540
179
|
captureUpdate: "EVENTUALLY";
|
|
541
180
|
};
|
|
@@ -44,6 +44,10 @@ export declare const actionGoToCollaborator: {
|
|
|
44
44
|
locked: boolean;
|
|
45
45
|
fromSelection: boolean;
|
|
46
46
|
} & import("../types").ActiveTool;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
47
51
|
penMode: boolean;
|
|
48
52
|
penDetected: boolean;
|
|
49
53
|
exportBackground: boolean;
|
|
@@ -76,8 +80,8 @@ export declare const actionGoToCollaborator: {
|
|
|
76
80
|
zoom: Readonly<{
|
|
77
81
|
value: import("../types").NormalizedZoomValue;
|
|
78
82
|
}>;
|
|
79
|
-
openMenu: "canvas" |
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
|
+
openMenu: "canvas" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
85
|
openSidebar: {
|
|
82
86
|
name: string;
|
|
83
87
|
tab?: string | undefined;
|
|
@@ -177,6 +181,7 @@ export declare const actionGoToCollaborator: {
|
|
|
177
181
|
lockedMultiSelections: {
|
|
178
182
|
[groupId: string]: true;
|
|
179
183
|
};
|
|
184
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
180
185
|
};
|
|
181
186
|
captureUpdate: "EVENTUALLY";
|
|
182
187
|
} | {
|
|
@@ -185,7 +190,7 @@ export declare const actionGoToCollaborator: {
|
|
|
185
190
|
socketId: import("../types").SocketId;
|
|
186
191
|
username: string;
|
|
187
192
|
};
|
|
188
|
-
openMenu:
|
|
193
|
+
openMenu: null;
|
|
189
194
|
contextMenu: {
|
|
190
195
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
191
196
|
top: number;
|
|
@@ -220,6 +225,10 @@ export declare const actionGoToCollaborator: {
|
|
|
220
225
|
locked: boolean;
|
|
221
226
|
fromSelection: boolean;
|
|
222
227
|
} & import("../types").ActiveTool;
|
|
228
|
+
preferredSelectionTool: {
|
|
229
|
+
type: "selection" | "lasso";
|
|
230
|
+
initialized: boolean;
|
|
231
|
+
};
|
|
223
232
|
penMode: boolean;
|
|
224
233
|
penDetected: boolean;
|
|
225
234
|
exportBackground: boolean;
|
|
@@ -252,7 +261,7 @@ export declare const actionGoToCollaborator: {
|
|
|
252
261
|
zoom: Readonly<{
|
|
253
262
|
value: import("../types").NormalizedZoomValue;
|
|
254
263
|
}>;
|
|
255
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
264
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
256
265
|
openSidebar: {
|
|
257
266
|
name: string;
|
|
258
267
|
tab?: string | undefined;
|
|
@@ -352,6 +361,7 @@ export declare const actionGoToCollaborator: {
|
|
|
352
361
|
lockedMultiSelections: {
|
|
353
362
|
[groupId: string]: true;
|
|
354
363
|
};
|
|
364
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
355
365
|
};
|
|
356
366
|
captureUpdate: "EVENTUALLY";
|
|
357
367
|
};
|