@zsviczian/excalidraw 0.18.0-16 → 0.18.0-18
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/excalidraw.development.js +53 -31
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +32 -0
- package/dist/styles.production.css +1 -0
- package/package.json +1 -1
- package/types/element/src/linearElementEditor.d.ts +1 -8
- package/types/element/src/sizeHelpers.d.ts +1 -0
- package/types/element/src/typeChecks.d.ts +9 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -0
- package/types/excalidraw/actions/actionBoundText.d.ts +8 -0
- package/types/excalidraw/actions/actionCanvas.d.ts +75 -15
- package/types/excalidraw/actions/actionClipboard.d.ts +24 -0
- package/types/excalidraw/actions/actionCropEditor.d.ts +4 -0
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +12 -0
- package/types/excalidraw/actions/actionElementLink.d.ts +4 -0
- package/types/excalidraw/actions/actionElementLock.d.ts +23 -16
- package/types/excalidraw/actions/actionEmbeddable.d.ts +4 -0
- package/types/excalidraw/actions/actionExport.d.ts +36 -0
- package/types/excalidraw/actions/actionFinalize.d.ts +55 -8
- package/types/excalidraw/actions/actionFrame.d.ts +16 -0
- package/types/excalidraw/actions/actionGroup.d.ts +8 -0
- package/types/excalidraw/actions/actionLinearEditor.d.ts +5 -2
- package/types/excalidraw/actions/actionLink.d.ts +4 -0
- package/types/excalidraw/actions/actionMenu.d.ts +12 -0
- package/types/excalidraw/actions/actionNavigate.d.ts +8 -0
- package/types/excalidraw/actions/actionProperties.d.ts +60 -0
- package/types/excalidraw/actions/actionSelectAll.d.ts +4 -0
- package/types/excalidraw/actions/actionStyles.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -0
- package/types/excalidraw/appState.d.ts +9 -0
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/types/excalidraw/components/icons.d.ts +1 -0
- package/types/excalidraw/index.d.ts +1 -1
- package/types/excalidraw/obsidianUtils.d.ts +9 -1
- package/types/excalidraw/types.d.ts +8 -0
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { AppState } from "../types";
|
|
2
3
|
export declare const actionToggleElementLock: {
|
|
3
4
|
name: "toggleElementLock";
|
|
4
|
-
label: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
5
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
|
|
5
6
|
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
trackEvent: {
|
|
7
8
|
category: "element";
|
|
8
9
|
};
|
|
9
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
10
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
11
12
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
13
|
appState: {
|
|
14
|
+
selectedElementIds: Readonly<{
|
|
15
|
+
[id: string]: true;
|
|
16
|
+
}>;
|
|
17
|
+
selectedGroupIds: {
|
|
18
|
+
[groupId: string]: boolean;
|
|
19
|
+
};
|
|
13
20
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
21
|
+
lockedMultiSelections: {
|
|
22
|
+
[x: string]: true;
|
|
23
|
+
};
|
|
24
|
+
activeLockedId: string | null;
|
|
14
25
|
contextMenu: {
|
|
15
26
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
16
27
|
top: number;
|
|
@@ -97,9 +108,6 @@ export declare const actionToggleElementLock: {
|
|
|
97
108
|
} | null;
|
|
98
109
|
defaultSidebarDockedPreference: boolean;
|
|
99
110
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
100
|
-
selectedElementIds: Readonly<{
|
|
101
|
-
[id: string]: true;
|
|
102
|
-
}>;
|
|
103
111
|
hoveredElementIds: Readonly<{
|
|
104
112
|
[id: string]: true;
|
|
105
113
|
}>;
|
|
@@ -119,9 +127,6 @@ export declare const actionToggleElementLock: {
|
|
|
119
127
|
gridStep: number;
|
|
120
128
|
gridModeEnabled: boolean;
|
|
121
129
|
viewModeEnabled: boolean;
|
|
122
|
-
selectedGroupIds: {
|
|
123
|
-
[groupId: string]: boolean;
|
|
124
|
-
};
|
|
125
130
|
editingGroupId: string | null;
|
|
126
131
|
width: number;
|
|
127
132
|
height: number;
|
|
@@ -215,9 +220,9 @@ export declare const actionToggleElementLock: {
|
|
|
215
220
|
};
|
|
216
221
|
captureUpdate: "IMMEDIATELY";
|
|
217
222
|
};
|
|
218
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState:
|
|
223
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
219
224
|
} & {
|
|
220
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState:
|
|
225
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
221
226
|
};
|
|
222
227
|
export declare const actionUnlockAllElements: {
|
|
223
228
|
name: "unlockAllElements";
|
|
@@ -226,13 +231,18 @@ export declare const actionUnlockAllElements: {
|
|
|
226
231
|
};
|
|
227
232
|
viewMode: false;
|
|
228
233
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
229
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
230
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<
|
|
234
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
235
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
231
236
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
232
237
|
appState: {
|
|
233
238
|
selectedElementIds: {
|
|
234
239
|
[k: string]: true;
|
|
235
240
|
};
|
|
241
|
+
selectedGroupIds: {
|
|
242
|
+
[groupId: string]: boolean;
|
|
243
|
+
};
|
|
244
|
+
lockedMultiSelections: {};
|
|
245
|
+
activeLockedId: null;
|
|
236
246
|
contextMenu: {
|
|
237
247
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
238
248
|
top: number;
|
|
@@ -338,9 +348,6 @@ export declare const actionUnlockAllElements: {
|
|
|
338
348
|
gridStep: number;
|
|
339
349
|
gridModeEnabled: boolean;
|
|
340
350
|
viewModeEnabled: boolean;
|
|
341
|
-
selectedGroupIds: {
|
|
342
|
-
[groupId: string]: boolean;
|
|
343
|
-
};
|
|
344
351
|
editingGroupId: string | null;
|
|
345
352
|
width: number;
|
|
346
353
|
height: number;
|
|
@@ -210,6 +210,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
210
210
|
focusedId: string | null;
|
|
211
211
|
matches: readonly import("../types").SearchMatch[];
|
|
212
212
|
}> | null;
|
|
213
|
+
activeLockedId: string | null;
|
|
214
|
+
lockedMultiSelections: {
|
|
215
|
+
[groupId: string]: true;
|
|
216
|
+
};
|
|
213
217
|
};
|
|
214
218
|
captureUpdate: "EVENTUALLY";
|
|
215
219
|
};
|
|
@@ -208,6 +208,10 @@ export declare const actionChangeProjectName: {
|
|
|
208
208
|
focusedId: string | null;
|
|
209
209
|
matches: readonly import("../types").SearchMatch[];
|
|
210
210
|
}> | null;
|
|
211
|
+
activeLockedId: string | null;
|
|
212
|
+
lockedMultiSelections: {
|
|
213
|
+
[groupId: string]: true;
|
|
214
|
+
};
|
|
211
215
|
};
|
|
212
216
|
captureUpdate: "EVENTUALLY";
|
|
213
217
|
};
|
|
@@ -426,6 +430,10 @@ export declare const actionChangeExportScale: {
|
|
|
426
430
|
focusedId: string | null;
|
|
427
431
|
matches: readonly import("../types").SearchMatch[];
|
|
428
432
|
}> | null;
|
|
433
|
+
activeLockedId: string | null;
|
|
434
|
+
lockedMultiSelections: {
|
|
435
|
+
[groupId: string]: true;
|
|
436
|
+
};
|
|
429
437
|
};
|
|
430
438
|
captureUpdate: "EVENTUALLY";
|
|
431
439
|
};
|
|
@@ -644,6 +652,10 @@ export declare const actionChangeExportBackground: {
|
|
|
644
652
|
focusedId: string | null;
|
|
645
653
|
matches: readonly import("../types").SearchMatch[];
|
|
646
654
|
}> | null;
|
|
655
|
+
activeLockedId: string | null;
|
|
656
|
+
lockedMultiSelections: {
|
|
657
|
+
[groupId: string]: true;
|
|
658
|
+
};
|
|
647
659
|
};
|
|
648
660
|
captureUpdate: "EVENTUALLY";
|
|
649
661
|
};
|
|
@@ -862,6 +874,10 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
862
874
|
focusedId: string | null;
|
|
863
875
|
matches: readonly import("../types").SearchMatch[];
|
|
864
876
|
}> | null;
|
|
877
|
+
activeLockedId: string | null;
|
|
878
|
+
lockedMultiSelections: {
|
|
879
|
+
[groupId: string]: true;
|
|
880
|
+
};
|
|
865
881
|
};
|
|
866
882
|
captureUpdate: "EVENTUALLY";
|
|
867
883
|
};
|
|
@@ -1080,6 +1096,10 @@ export declare const actionSaveToActiveFile: {
|
|
|
1080
1096
|
focusedId: string | null;
|
|
1081
1097
|
matches: readonly import("../types").SearchMatch[];
|
|
1082
1098
|
}> | null;
|
|
1099
|
+
activeLockedId: string | null;
|
|
1100
|
+
lockedMultiSelections: {
|
|
1101
|
+
[groupId: string]: true;
|
|
1102
|
+
};
|
|
1083
1103
|
};
|
|
1084
1104
|
} | {
|
|
1085
1105
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1290,6 +1310,10 @@ export declare const actionSaveFileToDisk: {
|
|
|
1290
1310
|
focusedId: string | null;
|
|
1291
1311
|
matches: readonly import("../types").SearchMatch[];
|
|
1292
1312
|
}> | null;
|
|
1313
|
+
activeLockedId: string | null;
|
|
1314
|
+
lockedMultiSelections: {
|
|
1315
|
+
[groupId: string]: true;
|
|
1316
|
+
};
|
|
1293
1317
|
};
|
|
1294
1318
|
} | {
|
|
1295
1319
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1508,6 +1532,10 @@ export declare const actionLoadScene: {
|
|
|
1508
1532
|
focusedId: string | null;
|
|
1509
1533
|
matches: readonly import("../types").SearchMatch[];
|
|
1510
1534
|
}> | null;
|
|
1535
|
+
activeLockedId: string | null;
|
|
1536
|
+
lockedMultiSelections: {
|
|
1537
|
+
[groupId: string]: true;
|
|
1538
|
+
};
|
|
1511
1539
|
};
|
|
1512
1540
|
files: import("../types").BinaryFiles;
|
|
1513
1541
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1716,6 +1744,10 @@ export declare const actionLoadScene: {
|
|
|
1716
1744
|
focusedId: string | null;
|
|
1717
1745
|
matches: readonly import("../types").SearchMatch[];
|
|
1718
1746
|
}> | null;
|
|
1747
|
+
activeLockedId: string | null;
|
|
1748
|
+
lockedMultiSelections: {
|
|
1749
|
+
[groupId: string]: true;
|
|
1750
|
+
};
|
|
1719
1751
|
};
|
|
1720
1752
|
files: import("../types").BinaryFiles;
|
|
1721
1753
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1935,6 +1967,10 @@ export declare const actionExportWithDarkMode: {
|
|
|
1935
1967
|
focusedId: string | null;
|
|
1936
1968
|
matches: readonly import("../types").SearchMatch[];
|
|
1937
1969
|
}> | null;
|
|
1970
|
+
activeLockedId: string | null;
|
|
1971
|
+
lockedMultiSelections: {
|
|
1972
|
+
[groupId: string]: true;
|
|
1973
|
+
};
|
|
1938
1974
|
};
|
|
1939
1975
|
captureUpdate: "EVENTUALLY";
|
|
1940
1976
|
};
|
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
+
import type { LocalPoint } from "@excalidraw/math";
|
|
3
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
2
4
|
import type { AppState } from "../types";
|
|
3
5
|
export declare const actionFinalize: {
|
|
4
6
|
name: "finalize";
|
|
5
7
|
label: string;
|
|
6
8
|
trackEvent: false;
|
|
7
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>,
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
|
+
appState: {
|
|
12
|
+
selectedLinearElement: {
|
|
13
|
+
selectedPointsIndices: null;
|
|
14
|
+
elementId: string & {
|
|
15
|
+
_brand: "excalidrawLinearElementId";
|
|
16
|
+
};
|
|
17
|
+
pointerDownState: Readonly<{
|
|
18
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
19
|
+
lastClickedPoint: number;
|
|
20
|
+
lastClickedIsEndPoint: boolean;
|
|
21
|
+
origin: Readonly<{
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}> | null;
|
|
25
|
+
segmentMidpoint: {
|
|
26
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
27
|
+
index: number | null;
|
|
28
|
+
added: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
isDragging: boolean;
|
|
32
|
+
lastUncommittedPoint: LocalPoint | null;
|
|
33
|
+
pointerOffset: Readonly<{
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}>;
|
|
37
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
38
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
39
|
+
hoverPointIndex: number;
|
|
40
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
41
|
+
elbowed: boolean;
|
|
42
|
+
};
|
|
43
|
+
suggestedBindings: never[];
|
|
44
|
+
};
|
|
45
|
+
captureUpdate: "IMMEDIATELY";
|
|
46
|
+
} | {
|
|
8
47
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
|
|
9
48
|
appState: {
|
|
10
49
|
cursorButton: "up";
|
|
@@ -21,14 +60,14 @@ export declare const actionFinalize: {
|
|
|
21
60
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
61
|
state: "active" | "hover";
|
|
23
62
|
} | null;
|
|
24
|
-
newElement:
|
|
63
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
64
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
-
multiElement:
|
|
65
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
27
66
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
67
|
isBindingEnabled: boolean;
|
|
29
|
-
startBoundElement:
|
|
68
|
+
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
69
|
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
|
-
frameToHighlight:
|
|
70
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
71
|
frameRendering: {
|
|
33
72
|
enabled: boolean;
|
|
34
73
|
name: boolean;
|
|
@@ -36,7 +75,7 @@ export declare const actionFinalize: {
|
|
|
36
75
|
clip: boolean;
|
|
37
76
|
};
|
|
38
77
|
editingFrame: string | null;
|
|
39
|
-
elementsToHighlight:
|
|
78
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
40
79
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
80
|
activeTool: {
|
|
42
81
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -209,6 +248,10 @@ export declare const actionFinalize: {
|
|
|
209
248
|
focusedId: string | null;
|
|
210
249
|
matches: readonly import("../types").SearchMatch[];
|
|
211
250
|
}> | null;
|
|
251
|
+
activeLockedId: string | null;
|
|
252
|
+
lockedMultiSelections: {
|
|
253
|
+
[groupId: string]: true;
|
|
254
|
+
};
|
|
212
255
|
};
|
|
213
256
|
captureUpdate: "IMMEDIATELY";
|
|
214
257
|
} | {
|
|
@@ -242,7 +285,7 @@ export declare const actionFinalize: {
|
|
|
242
285
|
errorMessage: import("react").ReactNode;
|
|
243
286
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
244
287
|
isBindingEnabled: boolean;
|
|
245
|
-
frameToHighlight:
|
|
288
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
246
289
|
frameRendering: {
|
|
247
290
|
enabled: boolean;
|
|
248
291
|
name: boolean;
|
|
@@ -250,7 +293,7 @@ export declare const actionFinalize: {
|
|
|
250
293
|
clip: boolean;
|
|
251
294
|
};
|
|
252
295
|
editingFrame: string | null;
|
|
253
|
-
elementsToHighlight:
|
|
296
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
254
297
|
editingLinearElement: LinearElementEditor | null;
|
|
255
298
|
penMode: boolean;
|
|
256
299
|
penDetected: boolean;
|
|
@@ -413,6 +456,10 @@ export declare const actionFinalize: {
|
|
|
413
456
|
focusedId: string | null;
|
|
414
457
|
matches: readonly import("../types").SearchMatch[];
|
|
415
458
|
}> | null;
|
|
459
|
+
activeLockedId: string | null;
|
|
460
|
+
lockedMultiSelections: {
|
|
461
|
+
[groupId: string]: true;
|
|
462
|
+
};
|
|
416
463
|
};
|
|
417
464
|
captureUpdate: "IMMEDIATELY";
|
|
418
465
|
};
|
|
@@ -209,6 +209,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
209
209
|
focusedId: string | null;
|
|
210
210
|
matches: readonly import("../types").SearchMatch[];
|
|
211
211
|
}> | null;
|
|
212
|
+
activeLockedId: string | null;
|
|
213
|
+
lockedMultiSelections: {
|
|
214
|
+
[groupId: string]: true;
|
|
215
|
+
};
|
|
212
216
|
};
|
|
213
217
|
captureUpdate: "IMMEDIATELY";
|
|
214
218
|
} | {
|
|
@@ -431,6 +435,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
431
435
|
focusedId: string | null;
|
|
432
436
|
matches: readonly import("../types").SearchMatch[];
|
|
433
437
|
}> | null;
|
|
438
|
+
activeLockedId: string | null;
|
|
439
|
+
lockedMultiSelections: {
|
|
440
|
+
[groupId: string]: true;
|
|
441
|
+
};
|
|
434
442
|
};
|
|
435
443
|
captureUpdate: "IMMEDIATELY";
|
|
436
444
|
} | {
|
|
@@ -654,6 +662,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
654
662
|
focusedId: string | null;
|
|
655
663
|
matches: readonly import("../types").SearchMatch[];
|
|
656
664
|
}> | null;
|
|
665
|
+
activeLockedId: string | null;
|
|
666
|
+
lockedMultiSelections: {
|
|
667
|
+
[groupId: string]: true;
|
|
668
|
+
};
|
|
657
669
|
};
|
|
658
670
|
captureUpdate: "EVENTUALLY";
|
|
659
671
|
};
|
|
@@ -874,6 +886,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
874
886
|
focusedId: string | null;
|
|
875
887
|
matches: readonly import("../types").SearchMatch[];
|
|
876
888
|
}> | null;
|
|
889
|
+
activeLockedId: string | null;
|
|
890
|
+
lockedMultiSelections: {
|
|
891
|
+
[groupId: string]: true;
|
|
892
|
+
};
|
|
877
893
|
};
|
|
878
894
|
captureUpdate: "EVENTUALLY";
|
|
879
895
|
};
|
|
@@ -215,6 +215,10 @@ export declare const actionGroup: {
|
|
|
215
215
|
focusedId: string | null;
|
|
216
216
|
matches: readonly import("../types").SearchMatch[];
|
|
217
217
|
}> | null;
|
|
218
|
+
activeLockedId: string | null;
|
|
219
|
+
lockedMultiSelections: {
|
|
220
|
+
[groupId: string]: true;
|
|
221
|
+
};
|
|
218
222
|
};
|
|
219
223
|
elements: OrderedExcalidrawElement[];
|
|
220
224
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -440,6 +444,10 @@ export declare const actionUngroup: {
|
|
|
440
444
|
focusedId: string | null;
|
|
441
445
|
matches: readonly import("../types").SearchMatch[];
|
|
442
446
|
}> | null;
|
|
447
|
+
activeLockedId: string | null;
|
|
448
|
+
lockedMultiSelections: {
|
|
449
|
+
[groupId: string]: true;
|
|
450
|
+
};
|
|
443
451
|
};
|
|
444
452
|
elements: OrderedExcalidrawElement[];
|
|
445
453
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -213,6 +213,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
213
213
|
focusedId: string | null;
|
|
214
214
|
matches: readonly import("../types").SearchMatch[];
|
|
215
215
|
}> | null;
|
|
216
|
+
activeLockedId: string | null;
|
|
217
|
+
lockedMultiSelections: {
|
|
218
|
+
[groupId: string]: true;
|
|
219
|
+
};
|
|
216
220
|
};
|
|
217
221
|
captureUpdate: "IMMEDIATELY";
|
|
218
222
|
};
|
|
@@ -713,7 +717,6 @@ export declare const actionTogglePolygon: {
|
|
|
713
717
|
captureUpdate: "IMMEDIATELY";
|
|
714
718
|
};
|
|
715
719
|
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
716
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
717
720
|
} & {
|
|
718
|
-
keyTest?:
|
|
721
|
+
keyTest?: undefined;
|
|
719
722
|
};
|
|
@@ -207,6 +207,10 @@ export declare const actionLink: {
|
|
|
207
207
|
focusedId: string | null;
|
|
208
208
|
matches: readonly import("../types").SearchMatch[];
|
|
209
209
|
}> | null;
|
|
210
|
+
activeLockedId: string | null;
|
|
211
|
+
lockedMultiSelections: {
|
|
212
|
+
[groupId: string]: true;
|
|
213
|
+
};
|
|
210
214
|
};
|
|
211
215
|
captureUpdate: "IMMEDIATELY";
|
|
212
216
|
};
|
|
@@ -208,6 +208,10 @@ export declare const actionToggleCanvasMenu: {
|
|
|
208
208
|
focusedId: string | null;
|
|
209
209
|
matches: readonly import("../types").SearchMatch[];
|
|
210
210
|
}> | null;
|
|
211
|
+
activeLockedId: string | null;
|
|
212
|
+
lockedMultiSelections: {
|
|
213
|
+
[groupId: string]: true;
|
|
214
|
+
};
|
|
211
215
|
};
|
|
212
216
|
captureUpdate: "EVENTUALLY";
|
|
213
217
|
};
|
|
@@ -425,6 +429,10 @@ export declare const actionToggleEditMenu: {
|
|
|
425
429
|
focusedId: string | null;
|
|
426
430
|
matches: readonly import("../types").SearchMatch[];
|
|
427
431
|
}> | null;
|
|
432
|
+
activeLockedId: string | null;
|
|
433
|
+
lockedMultiSelections: {
|
|
434
|
+
[groupId: string]: true;
|
|
435
|
+
};
|
|
428
436
|
};
|
|
429
437
|
captureUpdate: "EVENTUALLY";
|
|
430
438
|
};
|
|
@@ -637,6 +645,10 @@ export declare const actionShortcuts: {
|
|
|
637
645
|
focusedId: string | null;
|
|
638
646
|
matches: readonly import("../types").SearchMatch[];
|
|
639
647
|
}> | null;
|
|
648
|
+
activeLockedId: string | null;
|
|
649
|
+
lockedMultiSelections: {
|
|
650
|
+
[groupId: string]: true;
|
|
651
|
+
};
|
|
640
652
|
};
|
|
641
653
|
captureUpdate: "EVENTUALLY";
|
|
642
654
|
};
|
|
@@ -210,6 +210,10 @@ export declare const actionGoToCollaborator: {
|
|
|
210
210
|
focusedId: string | null;
|
|
211
211
|
matches: readonly import("../types").SearchMatch[];
|
|
212
212
|
}> | null;
|
|
213
|
+
activeLockedId: string | null;
|
|
214
|
+
lockedMultiSelections: {
|
|
215
|
+
[groupId: string]: true;
|
|
216
|
+
};
|
|
213
217
|
};
|
|
214
218
|
captureUpdate: "EVENTUALLY";
|
|
215
219
|
} | {
|
|
@@ -419,6 +423,10 @@ export declare const actionGoToCollaborator: {
|
|
|
419
423
|
focusedId: string | null;
|
|
420
424
|
matches: readonly import("../types").SearchMatch[];
|
|
421
425
|
}> | null;
|
|
426
|
+
activeLockedId: string | null;
|
|
427
|
+
lockedMultiSelections: {
|
|
428
|
+
[groupId: string]: true;
|
|
429
|
+
};
|
|
422
430
|
};
|
|
423
431
|
captureUpdate: "EVENTUALLY";
|
|
424
432
|
};
|
|
@@ -238,6 +238,10 @@ export declare const actionChangeFillStyle: {
|
|
|
238
238
|
focusedId: string | null;
|
|
239
239
|
matches: readonly import("../types").SearchMatch[];
|
|
240
240
|
}> | null;
|
|
241
|
+
activeLockedId: string | null;
|
|
242
|
+
lockedMultiSelections: {
|
|
243
|
+
[groupId: string]: true;
|
|
244
|
+
};
|
|
241
245
|
};
|
|
242
246
|
captureUpdate: "IMMEDIATELY";
|
|
243
247
|
};
|
|
@@ -454,6 +458,10 @@ export declare const actionChangeStrokeWidth: {
|
|
|
454
458
|
focusedId: string | null;
|
|
455
459
|
matches: readonly import("../types").SearchMatch[];
|
|
456
460
|
}> | null;
|
|
461
|
+
activeLockedId: string | null;
|
|
462
|
+
lockedMultiSelections: {
|
|
463
|
+
[groupId: string]: true;
|
|
464
|
+
};
|
|
457
465
|
};
|
|
458
466
|
captureUpdate: "IMMEDIATELY";
|
|
459
467
|
};
|
|
@@ -670,6 +678,10 @@ export declare const actionChangeSloppiness: {
|
|
|
670
678
|
focusedId: string | null;
|
|
671
679
|
matches: readonly import("../types").SearchMatch[];
|
|
672
680
|
}> | null;
|
|
681
|
+
activeLockedId: string | null;
|
|
682
|
+
lockedMultiSelections: {
|
|
683
|
+
[groupId: string]: true;
|
|
684
|
+
};
|
|
673
685
|
};
|
|
674
686
|
captureUpdate: "IMMEDIATELY";
|
|
675
687
|
};
|
|
@@ -886,6 +898,10 @@ export declare const actionChangeStrokeStyle: {
|
|
|
886
898
|
focusedId: string | null;
|
|
887
899
|
matches: readonly import("../types").SearchMatch[];
|
|
888
900
|
}> | null;
|
|
901
|
+
activeLockedId: string | null;
|
|
902
|
+
lockedMultiSelections: {
|
|
903
|
+
[groupId: string]: true;
|
|
904
|
+
};
|
|
889
905
|
};
|
|
890
906
|
captureUpdate: "IMMEDIATELY";
|
|
891
907
|
};
|
|
@@ -1102,6 +1118,10 @@ export declare const actionChangeOpacity: {
|
|
|
1102
1118
|
focusedId: string | null;
|
|
1103
1119
|
matches: readonly import("../types").SearchMatch[];
|
|
1104
1120
|
}> | null;
|
|
1121
|
+
activeLockedId: string | null;
|
|
1122
|
+
lockedMultiSelections: {
|
|
1123
|
+
[groupId: string]: true;
|
|
1124
|
+
};
|
|
1105
1125
|
};
|
|
1106
1126
|
captureUpdate: "IMMEDIATELY";
|
|
1107
1127
|
};
|
|
@@ -1319,6 +1339,10 @@ export declare const actionChangeFontSize: {
|
|
|
1319
1339
|
focusedId: string | null;
|
|
1320
1340
|
matches: readonly import("../types").SearchMatch[];
|
|
1321
1341
|
}> | null;
|
|
1342
|
+
activeLockedId: string | null;
|
|
1343
|
+
lockedMultiSelections: {
|
|
1344
|
+
[groupId: string]: true;
|
|
1345
|
+
};
|
|
1322
1346
|
};
|
|
1323
1347
|
captureUpdate: "IMMEDIATELY";
|
|
1324
1348
|
};
|
|
@@ -1536,6 +1560,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
1536
1560
|
focusedId: string | null;
|
|
1537
1561
|
matches: readonly import("../types").SearchMatch[];
|
|
1538
1562
|
}> | null;
|
|
1563
|
+
activeLockedId: string | null;
|
|
1564
|
+
lockedMultiSelections: {
|
|
1565
|
+
[groupId: string]: true;
|
|
1566
|
+
};
|
|
1539
1567
|
};
|
|
1540
1568
|
captureUpdate: "IMMEDIATELY";
|
|
1541
1569
|
};
|
|
@@ -1753,6 +1781,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
1753
1781
|
focusedId: string | null;
|
|
1754
1782
|
matches: readonly import("../types").SearchMatch[];
|
|
1755
1783
|
}> | null;
|
|
1784
|
+
activeLockedId: string | null;
|
|
1785
|
+
lockedMultiSelections: {
|
|
1786
|
+
[groupId: string]: true;
|
|
1787
|
+
};
|
|
1756
1788
|
};
|
|
1757
1789
|
captureUpdate: "IMMEDIATELY";
|
|
1758
1790
|
};
|
|
@@ -1968,6 +2000,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1968
2000
|
focusedId: string | null;
|
|
1969
2001
|
matches: readonly import("../types").SearchMatch[];
|
|
1970
2002
|
}> | null;
|
|
2003
|
+
activeLockedId: string | null;
|
|
2004
|
+
lockedMultiSelections: {
|
|
2005
|
+
[groupId: string]: true;
|
|
2006
|
+
};
|
|
1971
2007
|
};
|
|
1972
2008
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1973
2009
|
} | {
|
|
@@ -2175,6 +2211,10 @@ export declare const actionChangeFontFamily: {
|
|
|
2175
2211
|
focusedId: string | null;
|
|
2176
2212
|
matches: readonly import("../types").SearchMatch[];
|
|
2177
2213
|
}> | null;
|
|
2214
|
+
activeLockedId: string | null;
|
|
2215
|
+
lockedMultiSelections: {
|
|
2216
|
+
[groupId: string]: true;
|
|
2217
|
+
};
|
|
2178
2218
|
};
|
|
2179
2219
|
captureUpdate: "NEVER";
|
|
2180
2220
|
};
|
|
@@ -2391,6 +2431,10 @@ export declare const actionChangeTextAlign: {
|
|
|
2391
2431
|
focusedId: string | null;
|
|
2392
2432
|
matches: readonly import("../types").SearchMatch[];
|
|
2393
2433
|
}> | null;
|
|
2434
|
+
activeLockedId: string | null;
|
|
2435
|
+
lockedMultiSelections: {
|
|
2436
|
+
[groupId: string]: true;
|
|
2437
|
+
};
|
|
2394
2438
|
};
|
|
2395
2439
|
captureUpdate: "IMMEDIATELY";
|
|
2396
2440
|
};
|
|
@@ -2609,6 +2653,10 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2609
2653
|
focusedId: string | null;
|
|
2610
2654
|
matches: readonly import("../types").SearchMatch[];
|
|
2611
2655
|
}> | null;
|
|
2656
|
+
activeLockedId: string | null;
|
|
2657
|
+
lockedMultiSelections: {
|
|
2658
|
+
[groupId: string]: true;
|
|
2659
|
+
};
|
|
2612
2660
|
};
|
|
2613
2661
|
captureUpdate: "IMMEDIATELY";
|
|
2614
2662
|
};
|
|
@@ -2825,6 +2873,10 @@ export declare const actionChangeRoundness: {
|
|
|
2825
2873
|
focusedId: string | null;
|
|
2826
2874
|
matches: readonly import("../types").SearchMatch[];
|
|
2827
2875
|
}> | null;
|
|
2876
|
+
activeLockedId: string | null;
|
|
2877
|
+
lockedMultiSelections: {
|
|
2878
|
+
[groupId: string]: true;
|
|
2879
|
+
};
|
|
2828
2880
|
};
|
|
2829
2881
|
captureUpdate: "IMMEDIATELY";
|
|
2830
2882
|
};
|
|
@@ -3044,6 +3096,10 @@ export declare const actionChangeArrowhead: {
|
|
|
3044
3096
|
focusedId: string | null;
|
|
3045
3097
|
matches: readonly import("../types").SearchMatch[];
|
|
3046
3098
|
}> | null;
|
|
3099
|
+
activeLockedId: string | null;
|
|
3100
|
+
lockedMultiSelections: {
|
|
3101
|
+
[groupId: string]: true;
|
|
3102
|
+
};
|
|
3047
3103
|
};
|
|
3048
3104
|
captureUpdate: "IMMEDIATELY";
|
|
3049
3105
|
};
|
|
@@ -3260,6 +3316,10 @@ export declare const actionChangeArrowType: {
|
|
|
3260
3316
|
focusedId: string | null;
|
|
3261
3317
|
matches: readonly import("../types").SearchMatch[];
|
|
3262
3318
|
}> | null;
|
|
3319
|
+
activeLockedId: string | null;
|
|
3320
|
+
lockedMultiSelections: {
|
|
3321
|
+
[groupId: string]: true;
|
|
3322
|
+
};
|
|
3263
3323
|
};
|
|
3264
3324
|
captureUpdate: "IMMEDIATELY";
|
|
3265
3325
|
};
|
|
@@ -212,6 +212,10 @@ export declare const actionSelectAll: {
|
|
|
212
212
|
focusedId: string | null;
|
|
213
213
|
matches: readonly import("../types").SearchMatch[];
|
|
214
214
|
}> | null;
|
|
215
|
+
activeLockedId: string | null;
|
|
216
|
+
lockedMultiSelections: {
|
|
217
|
+
[groupId: string]: true;
|
|
218
|
+
};
|
|
215
219
|
};
|
|
216
220
|
captureUpdate: "IMMEDIATELY";
|
|
217
221
|
};
|
|
@@ -208,6 +208,10 @@ export declare const actionCopyStyles: {
|
|
|
208
208
|
focusedId: string | null;
|
|
209
209
|
matches: readonly import("../types").SearchMatch[];
|
|
210
210
|
}> | null;
|
|
211
|
+
activeLockedId: string | null;
|
|
212
|
+
lockedMultiSelections: {
|
|
213
|
+
[groupId: string]: true;
|
|
214
|
+
};
|
|
211
215
|
};
|
|
212
216
|
captureUpdate: "EVENTUALLY";
|
|
213
217
|
};
|
|
@@ -213,6 +213,10 @@ export declare const actionToggleGridMode: {
|
|
|
213
213
|
focusedId: string | null;
|
|
214
214
|
matches: readonly import("../types").SearchMatch[];
|
|
215
215
|
}> | null;
|
|
216
|
+
activeLockedId: string | null;
|
|
217
|
+
lockedMultiSelections: {
|
|
218
|
+
[groupId: string]: true;
|
|
219
|
+
};
|
|
216
220
|
};
|
|
217
221
|
captureUpdate: "EVENTUALLY";
|
|
218
222
|
};
|