@zsviczian/excalidraw 0.17.6-14 → 0.17.6-15
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 +75 -31
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +78 -0
- package/dist/styles.production.css +1 -0
- package/package.json +1 -2
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -0
- package/types/excalidraw/actions/actionBoundText.d.ts +12 -0
- package/types/excalidraw/actions/actionCanvas.d.ts +84 -0
- package/types/excalidraw/actions/actionClipboard.d.ts +36 -0
- package/types/excalidraw/actions/actionCropEditor.d.ts +6 -0
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +18 -0
- package/types/excalidraw/actions/actionElementLink.d.ts +244 -0
- package/types/excalidraw/actions/actionElementLock.d.ts +12 -0
- package/types/excalidraw/actions/actionExport.d.ts +51 -0
- package/types/excalidraw/actions/actionFinalize.d.ts +12 -0
- package/types/excalidraw/actions/actionFrame.d.ts +24 -0
- package/types/excalidraw/actions/actionGroup.d.ts +12 -0
- package/types/excalidraw/actions/actionLinearEditor.d.ts +6 -0
- package/types/excalidraw/actions/actionLink.d.ts +7 -1
- package/types/excalidraw/actions/actionMenu.d.ts +15 -0
- package/types/excalidraw/actions/actionNavigate.d.ts +12 -0
- package/types/excalidraw/actions/actionProperties.d.ts +90 -0
- package/types/excalidraw/actions/actionSelectAll.d.ts +6 -0
- package/types/excalidraw/actions/actionStyles.d.ts +6 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -0
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -0
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +6 -0
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -0
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -0
- package/types/excalidraw/actions/types.d.ts +1 -1
- package/types/excalidraw/components/App.d.ts +9 -1
- package/types/excalidraw/components/ElementLinkDialog.d.ts +11 -0
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
- package/types/excalidraw/components/icons.d.ts +1 -0
- package/types/excalidraw/constants.d.ts +2 -0
- package/types/excalidraw/data/encode.d.ts +1 -0
- package/types/excalidraw/element/binding.d.ts +1 -1
- package/types/excalidraw/element/elementLink.d.ts +13 -0
- package/types/excalidraw/element/embeddable.d.ts +6 -0
- package/types/excalidraw/errors.d.ts +7 -0
- package/types/excalidraw/index.d.ts +1 -0
- package/types/excalidraw/renderer/renderElement.d.ts +1 -1
- package/types/excalidraw/scene/Scene.d.ts +1 -0
- package/types/excalidraw/types.d.ts +9 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export declare const actionCopyElementLink: {
|
|
2
|
+
name: "copyElementLink";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: JSX.Element;
|
|
5
|
+
trackEvent: {
|
|
6
|
+
category: "element";
|
|
7
|
+
};
|
|
8
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
9
|
+
appState: {
|
|
10
|
+
toast: {
|
|
11
|
+
message: string;
|
|
12
|
+
closable: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
storeAction: "none";
|
|
16
|
+
elements?: undefined;
|
|
17
|
+
app?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
appState: Readonly<import("../types").AppState>;
|
|
20
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
21
|
+
app: import("../types").AppClassProperties;
|
|
22
|
+
storeAction: "none";
|
|
23
|
+
}>;
|
|
24
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => false;
|
|
25
|
+
} & {
|
|
26
|
+
keyTest?: undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const actionLinkToElement: {
|
|
29
|
+
name: "linkToElement";
|
|
30
|
+
label: string;
|
|
31
|
+
icon: JSX.Element;
|
|
32
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
33
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
34
|
+
appState: Readonly<import("../types").AppState>;
|
|
35
|
+
app: import("../types").AppClassProperties;
|
|
36
|
+
storeAction: "none";
|
|
37
|
+
} | {
|
|
38
|
+
appState: {
|
|
39
|
+
openDialog: {
|
|
40
|
+
name: "elementLinkSelector";
|
|
41
|
+
sourceElementId: string;
|
|
42
|
+
};
|
|
43
|
+
contextMenu: {
|
|
44
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
45
|
+
top: number;
|
|
46
|
+
left: number;
|
|
47
|
+
} | null;
|
|
48
|
+
showWelcomeScreen: boolean;
|
|
49
|
+
isLoading: boolean;
|
|
50
|
+
errorMessage: import("react").ReactNode;
|
|
51
|
+
activeEmbeddable: {
|
|
52
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
53
|
+
state: "active" | "hover";
|
|
54
|
+
} | null;
|
|
55
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
|
|
56
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
57
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
58
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
59
|
+
isBindingEnabled: boolean;
|
|
60
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
61
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
62
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
63
|
+
frameRendering: {
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
name: boolean;
|
|
66
|
+
outline: boolean;
|
|
67
|
+
clip: boolean;
|
|
68
|
+
};
|
|
69
|
+
editingFrame: string | null;
|
|
70
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
71
|
+
editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
72
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
73
|
+
activeTool: {
|
|
74
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
|
+
locked: boolean;
|
|
76
|
+
} & import("../types").ActiveTool;
|
|
77
|
+
penMode: boolean;
|
|
78
|
+
penDetected: boolean;
|
|
79
|
+
exportBackground: boolean;
|
|
80
|
+
exportEmbedScene: boolean;
|
|
81
|
+
exportWithDarkMode: boolean;
|
|
82
|
+
exportScale: number;
|
|
83
|
+
currentItemStrokeColor: string;
|
|
84
|
+
currentItemBackgroundColor: string;
|
|
85
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
86
|
+
currentItemStrokeWidth: number;
|
|
87
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
88
|
+
currentItemRoughness: number;
|
|
89
|
+
currentItemOpacity: number;
|
|
90
|
+
currentItemFontFamily: number;
|
|
91
|
+
currentItemFontSize: number;
|
|
92
|
+
currentItemTextAlign: string;
|
|
93
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
94
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
95
|
+
currentHoveredFontFamily: number | null;
|
|
96
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
97
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
98
|
+
viewBackgroundColor: string;
|
|
99
|
+
scrollX: number;
|
|
100
|
+
scrollY: number;
|
|
101
|
+
cursorButton: "up" | "down";
|
|
102
|
+
scrolledOutside: boolean;
|
|
103
|
+
name: string | null;
|
|
104
|
+
isResizing: boolean;
|
|
105
|
+
isRotating: boolean;
|
|
106
|
+
zoom: Readonly<{
|
|
107
|
+
value: import("../types").NormalizedZoomValue;
|
|
108
|
+
}>;
|
|
109
|
+
openMenu: "canvas" | "shape" | null;
|
|
110
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
111
|
+
openSidebar: {
|
|
112
|
+
name: string;
|
|
113
|
+
tab?: string | undefined;
|
|
114
|
+
} | null;
|
|
115
|
+
defaultSidebarDockedPreference: boolean;
|
|
116
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
117
|
+
selectedElementIds: Readonly<{
|
|
118
|
+
[id: string]: true;
|
|
119
|
+
}>;
|
|
120
|
+
hoveredElementIds: Readonly<{
|
|
121
|
+
[id: string]: true;
|
|
122
|
+
}>;
|
|
123
|
+
previousSelectedElementIds: {
|
|
124
|
+
[id: string]: true;
|
|
125
|
+
};
|
|
126
|
+
selectedElementsAreBeingDragged: boolean;
|
|
127
|
+
shouldCacheIgnoreZoom: boolean;
|
|
128
|
+
toast: {
|
|
129
|
+
message: string;
|
|
130
|
+
closable?: boolean | undefined;
|
|
131
|
+
duration?: number | undefined;
|
|
132
|
+
} | null;
|
|
133
|
+
zenModeEnabled: boolean;
|
|
134
|
+
theme: import("../element/types").Theme;
|
|
135
|
+
gridSize: number;
|
|
136
|
+
gridStep: number;
|
|
137
|
+
gridModeEnabled: boolean;
|
|
138
|
+
viewModeEnabled: boolean;
|
|
139
|
+
selectedGroupIds: {
|
|
140
|
+
[groupId: string]: boolean;
|
|
141
|
+
};
|
|
142
|
+
editingGroupId: string | null;
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
|
+
offsetTop: number;
|
|
146
|
+
offsetLeft: number;
|
|
147
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
148
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
149
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
150
|
+
button?: "up" | "down" | undefined;
|
|
151
|
+
selectedElementIds?: Readonly<{
|
|
152
|
+
[id: string]: true;
|
|
153
|
+
}> | undefined;
|
|
154
|
+
username?: string | null | undefined;
|
|
155
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
156
|
+
color?: {
|
|
157
|
+
background: string;
|
|
158
|
+
stroke: string;
|
|
159
|
+
} | undefined;
|
|
160
|
+
avatarUrl?: string | undefined;
|
|
161
|
+
id?: string | undefined;
|
|
162
|
+
socketId?: import("../types").SocketId | undefined;
|
|
163
|
+
isCurrentUser?: boolean | undefined;
|
|
164
|
+
isInCall?: boolean | undefined;
|
|
165
|
+
isSpeaking?: boolean | undefined;
|
|
166
|
+
isMuted?: boolean | undefined;
|
|
167
|
+
}>>;
|
|
168
|
+
stats: {
|
|
169
|
+
open: boolean;
|
|
170
|
+
panels: number;
|
|
171
|
+
};
|
|
172
|
+
currentChartType: import("../element/types").ChartType;
|
|
173
|
+
pasteDialog: {
|
|
174
|
+
shown: false;
|
|
175
|
+
data: null;
|
|
176
|
+
} | {
|
|
177
|
+
shown: true;
|
|
178
|
+
data: import("../charts").Spreadsheet;
|
|
179
|
+
};
|
|
180
|
+
pendingImageElementId: string | null;
|
|
181
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
182
|
+
linkOpacity: number;
|
|
183
|
+
trayModeEnabled: boolean;
|
|
184
|
+
colorPalette?: {
|
|
185
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
186
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
187
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
188
|
+
topPicks: {
|
|
189
|
+
canvasBackground: [string, string, string, string, string];
|
|
190
|
+
elementStroke: [string, string, string, string, string];
|
|
191
|
+
elementBackground: [string, string, string, string, string];
|
|
192
|
+
};
|
|
193
|
+
} | undefined;
|
|
194
|
+
allowWheelZoom?: boolean | undefined;
|
|
195
|
+
allowPinchZoom?: boolean | undefined;
|
|
196
|
+
pinnedScripts?: string[] | undefined;
|
|
197
|
+
customPens?: any[] | undefined;
|
|
198
|
+
currentStrokeOptions?: any;
|
|
199
|
+
resetCustomPen?: any;
|
|
200
|
+
gridColor: {
|
|
201
|
+
Bold: string;
|
|
202
|
+
Regular: string;
|
|
203
|
+
};
|
|
204
|
+
highlightSearchResult: boolean;
|
|
205
|
+
dynamicStyle: {
|
|
206
|
+
[x: string]: string;
|
|
207
|
+
};
|
|
208
|
+
frameColor: {
|
|
209
|
+
stroke: string;
|
|
210
|
+
fill: string;
|
|
211
|
+
nameColor: string;
|
|
212
|
+
};
|
|
213
|
+
invertBindingBehaviour: boolean;
|
|
214
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
215
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
216
|
+
originSnapOffset: {
|
|
217
|
+
x: number;
|
|
218
|
+
y: number;
|
|
219
|
+
} | null;
|
|
220
|
+
objectsSnapModeEnabled: boolean;
|
|
221
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
222
|
+
followedBy: Set<import("../types").SocketId>;
|
|
223
|
+
isCropping: boolean;
|
|
224
|
+
croppingElementId: string | null;
|
|
225
|
+
searchMatches: readonly {
|
|
226
|
+
id: string;
|
|
227
|
+
focus: boolean;
|
|
228
|
+
matchedLines: {
|
|
229
|
+
offsetX: number;
|
|
230
|
+
offsetY: number;
|
|
231
|
+
width: number;
|
|
232
|
+
height: number;
|
|
233
|
+
}[];
|
|
234
|
+
}[];
|
|
235
|
+
};
|
|
236
|
+
storeAction: "capture";
|
|
237
|
+
elements?: undefined;
|
|
238
|
+
app?: undefined;
|
|
239
|
+
};
|
|
240
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => false;
|
|
241
|
+
trackEvent: false;
|
|
242
|
+
} & {
|
|
243
|
+
keyTest?: undefined;
|
|
244
|
+
};
|
|
@@ -90,12 +90,18 @@ export declare const actionToggleElementLock: {
|
|
|
90
90
|
tab: "mermaid" | "text-to-diagram";
|
|
91
91
|
} | {
|
|
92
92
|
name: "commandPalette";
|
|
93
|
+
} | {
|
|
94
|
+
name: "elementLinkSelector";
|
|
95
|
+
sourceElementId: string;
|
|
93
96
|
} | null;
|
|
94
97
|
defaultSidebarDockedPreference: boolean;
|
|
95
98
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
96
99
|
selectedElementIds: Readonly<{
|
|
97
100
|
[id: string]: true;
|
|
98
101
|
}>;
|
|
102
|
+
hoveredElementIds: Readonly<{
|
|
103
|
+
[id: string]: true;
|
|
104
|
+
}>;
|
|
99
105
|
previousSelectedElementIds: {
|
|
100
106
|
[id: string]: true;
|
|
101
107
|
};
|
|
@@ -308,9 +314,15 @@ export declare const actionUnlockAllElements: {
|
|
|
308
314
|
tab: "mermaid" | "text-to-diagram";
|
|
309
315
|
} | {
|
|
310
316
|
name: "commandPalette";
|
|
317
|
+
} | {
|
|
318
|
+
name: "elementLinkSelector";
|
|
319
|
+
sourceElementId: string;
|
|
311
320
|
} | null;
|
|
312
321
|
defaultSidebarDockedPreference: boolean;
|
|
313
322
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
323
|
+
hoveredElementIds: Readonly<{
|
|
324
|
+
[id: string]: true;
|
|
325
|
+
}>;
|
|
314
326
|
previousSelectedElementIds: {
|
|
315
327
|
[id: string]: true;
|
|
316
328
|
};
|
|
@@ -85,12 +85,18 @@ export declare const actionChangeProjectName: {
|
|
|
85
85
|
tab: "mermaid" | "text-to-diagram";
|
|
86
86
|
} | {
|
|
87
87
|
name: "commandPalette";
|
|
88
|
+
} | {
|
|
89
|
+
name: "elementLinkSelector";
|
|
90
|
+
sourceElementId: string;
|
|
88
91
|
} | null;
|
|
89
92
|
defaultSidebarDockedPreference: boolean;
|
|
90
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
94
|
selectedElementIds: Readonly<{
|
|
92
95
|
[id: string]: true;
|
|
93
96
|
}>;
|
|
97
|
+
hoveredElementIds: Readonly<{
|
|
98
|
+
[id: string]: true;
|
|
99
|
+
}>;
|
|
94
100
|
previousSelectedElementIds: {
|
|
95
101
|
[id: string]: true;
|
|
96
102
|
};
|
|
@@ -298,12 +304,18 @@ export declare const actionChangeExportScale: {
|
|
|
298
304
|
tab: "mermaid" | "text-to-diagram";
|
|
299
305
|
} | {
|
|
300
306
|
name: "commandPalette";
|
|
307
|
+
} | {
|
|
308
|
+
name: "elementLinkSelector";
|
|
309
|
+
sourceElementId: string;
|
|
301
310
|
} | null;
|
|
302
311
|
defaultSidebarDockedPreference: boolean;
|
|
303
312
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
304
313
|
selectedElementIds: Readonly<{
|
|
305
314
|
[id: string]: true;
|
|
306
315
|
}>;
|
|
316
|
+
hoveredElementIds: Readonly<{
|
|
317
|
+
[id: string]: true;
|
|
318
|
+
}>;
|
|
307
319
|
previousSelectedElementIds: {
|
|
308
320
|
[id: string]: true;
|
|
309
321
|
};
|
|
@@ -511,12 +523,18 @@ export declare const actionChangeExportBackground: {
|
|
|
511
523
|
tab: "mermaid" | "text-to-diagram";
|
|
512
524
|
} | {
|
|
513
525
|
name: "commandPalette";
|
|
526
|
+
} | {
|
|
527
|
+
name: "elementLinkSelector";
|
|
528
|
+
sourceElementId: string;
|
|
514
529
|
} | null;
|
|
515
530
|
defaultSidebarDockedPreference: boolean;
|
|
516
531
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
517
532
|
selectedElementIds: Readonly<{
|
|
518
533
|
[id: string]: true;
|
|
519
534
|
}>;
|
|
535
|
+
hoveredElementIds: Readonly<{
|
|
536
|
+
[id: string]: true;
|
|
537
|
+
}>;
|
|
520
538
|
previousSelectedElementIds: {
|
|
521
539
|
[id: string]: true;
|
|
522
540
|
};
|
|
@@ -724,12 +742,18 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
724
742
|
tab: "mermaid" | "text-to-diagram";
|
|
725
743
|
} | {
|
|
726
744
|
name: "commandPalette";
|
|
745
|
+
} | {
|
|
746
|
+
name: "elementLinkSelector";
|
|
747
|
+
sourceElementId: string;
|
|
727
748
|
} | null;
|
|
728
749
|
defaultSidebarDockedPreference: boolean;
|
|
729
750
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
730
751
|
selectedElementIds: Readonly<{
|
|
731
752
|
[id: string]: true;
|
|
732
753
|
}>;
|
|
754
|
+
hoveredElementIds: Readonly<{
|
|
755
|
+
[id: string]: true;
|
|
756
|
+
}>;
|
|
733
757
|
previousSelectedElementIds: {
|
|
734
758
|
[id: string]: true;
|
|
735
759
|
};
|
|
@@ -943,12 +967,18 @@ export declare const actionSaveToActiveFile: {
|
|
|
943
967
|
tab: "mermaid" | "text-to-diagram";
|
|
944
968
|
} | {
|
|
945
969
|
name: "commandPalette";
|
|
970
|
+
} | {
|
|
971
|
+
name: "elementLinkSelector";
|
|
972
|
+
sourceElementId: string;
|
|
946
973
|
} | null;
|
|
947
974
|
defaultSidebarDockedPreference: boolean;
|
|
948
975
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
949
976
|
selectedElementIds: Readonly<{
|
|
950
977
|
[id: string]: true;
|
|
951
978
|
}>;
|
|
979
|
+
hoveredElementIds: Readonly<{
|
|
980
|
+
[id: string]: true;
|
|
981
|
+
}>;
|
|
952
982
|
previousSelectedElementIds: {
|
|
953
983
|
[id: string]: true;
|
|
954
984
|
};
|
|
@@ -1157,6 +1187,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
1157
1187
|
selectedElementIds: Readonly<{
|
|
1158
1188
|
[id: string]: true;
|
|
1159
1189
|
}>;
|
|
1190
|
+
hoveredElementIds: Readonly<{
|
|
1191
|
+
[id: string]: true;
|
|
1192
|
+
}>;
|
|
1160
1193
|
previousSelectedElementIds: {
|
|
1161
1194
|
[id: string]: true;
|
|
1162
1195
|
};
|
|
@@ -1362,12 +1395,18 @@ export declare const actionLoadScene: {
|
|
|
1362
1395
|
tab: "mermaid" | "text-to-diagram";
|
|
1363
1396
|
} | {
|
|
1364
1397
|
name: "commandPalette";
|
|
1398
|
+
} | {
|
|
1399
|
+
name: "elementLinkSelector";
|
|
1400
|
+
sourceElementId: string;
|
|
1365
1401
|
} | null;
|
|
1366
1402
|
defaultSidebarDockedPreference: boolean;
|
|
1367
1403
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1368
1404
|
selectedElementIds: Readonly<{
|
|
1369
1405
|
[id: string]: true;
|
|
1370
1406
|
}>;
|
|
1407
|
+
hoveredElementIds: Readonly<{
|
|
1408
|
+
[id: string]: true;
|
|
1409
|
+
}>;
|
|
1371
1410
|
previousSelectedElementIds: {
|
|
1372
1411
|
[id: string]: true;
|
|
1373
1412
|
};
|
|
@@ -1561,12 +1600,18 @@ export declare const actionLoadScene: {
|
|
|
1561
1600
|
tab: "mermaid" | "text-to-diagram";
|
|
1562
1601
|
} | {
|
|
1563
1602
|
name: "commandPalette";
|
|
1603
|
+
} | {
|
|
1604
|
+
name: "elementLinkSelector";
|
|
1605
|
+
sourceElementId: string;
|
|
1564
1606
|
} | null;
|
|
1565
1607
|
defaultSidebarDockedPreference: boolean;
|
|
1566
1608
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1567
1609
|
selectedElementIds: Readonly<{
|
|
1568
1610
|
[id: string]: true;
|
|
1569
1611
|
}>;
|
|
1612
|
+
hoveredElementIds: Readonly<{
|
|
1613
|
+
[id: string]: true;
|
|
1614
|
+
}>;
|
|
1570
1615
|
previousSelectedElementIds: {
|
|
1571
1616
|
[id: string]: true;
|
|
1572
1617
|
};
|
|
@@ -1775,12 +1820,18 @@ export declare const actionExportWithDarkMode: {
|
|
|
1775
1820
|
tab: "mermaid" | "text-to-diagram";
|
|
1776
1821
|
} | {
|
|
1777
1822
|
name: "commandPalette";
|
|
1823
|
+
} | {
|
|
1824
|
+
name: "elementLinkSelector";
|
|
1825
|
+
sourceElementId: string;
|
|
1778
1826
|
} | null;
|
|
1779
1827
|
defaultSidebarDockedPreference: boolean;
|
|
1780
1828
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1781
1829
|
selectedElementIds: Readonly<{
|
|
1782
1830
|
[id: string]: true;
|
|
1783
1831
|
}>;
|
|
1832
|
+
hoveredElementIds: Readonly<{
|
|
1833
|
+
[id: string]: true;
|
|
1834
|
+
}>;
|
|
1784
1835
|
previousSelectedElementIds: {
|
|
1785
1836
|
[id: string]: true;
|
|
1786
1837
|
};
|
|
@@ -86,12 +86,18 @@ export declare const actionFinalize: {
|
|
|
86
86
|
tab: "mermaid" | "text-to-diagram";
|
|
87
87
|
} | {
|
|
88
88
|
name: "commandPalette";
|
|
89
|
+
} | {
|
|
90
|
+
name: "elementLinkSelector";
|
|
91
|
+
sourceElementId: string;
|
|
89
92
|
} | null;
|
|
90
93
|
defaultSidebarDockedPreference: boolean;
|
|
91
94
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
92
95
|
selectedElementIds: Readonly<{
|
|
93
96
|
[id: string]: true;
|
|
94
97
|
}>;
|
|
98
|
+
hoveredElementIds: Readonly<{
|
|
99
|
+
[id: string]: true;
|
|
100
|
+
}>;
|
|
95
101
|
previousSelectedElementIds: {
|
|
96
102
|
[id: string]: true;
|
|
97
103
|
};
|
|
@@ -290,9 +296,15 @@ export declare const actionFinalize: {
|
|
|
290
296
|
tab: "mermaid" | "text-to-diagram";
|
|
291
297
|
} | {
|
|
292
298
|
name: "commandPalette";
|
|
299
|
+
} | {
|
|
300
|
+
name: "elementLinkSelector";
|
|
301
|
+
sourceElementId: string;
|
|
293
302
|
} | null;
|
|
294
303
|
defaultSidebarDockedPreference: boolean;
|
|
295
304
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
305
|
+
hoveredElementIds: Readonly<{
|
|
306
|
+
[id: string]: true;
|
|
307
|
+
}>;
|
|
296
308
|
previousSelectedElementIds: {
|
|
297
309
|
[id: string]: true;
|
|
298
310
|
};
|
|
@@ -89,9 +89,15 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
89
89
|
tab: "mermaid" | "text-to-diagram";
|
|
90
90
|
} | {
|
|
91
91
|
name: "commandPalette";
|
|
92
|
+
} | {
|
|
93
|
+
name: "elementLinkSelector";
|
|
94
|
+
sourceElementId: string;
|
|
92
95
|
} | null;
|
|
93
96
|
defaultSidebarDockedPreference: boolean;
|
|
94
97
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
98
|
+
hoveredElementIds: Readonly<{
|
|
99
|
+
[id: string]: true;
|
|
100
|
+
}>;
|
|
95
101
|
previousSelectedElementIds: {
|
|
96
102
|
[id: string]: true;
|
|
97
103
|
};
|
|
@@ -306,9 +312,15 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
306
312
|
tab: "mermaid" | "text-to-diagram";
|
|
307
313
|
} | {
|
|
308
314
|
name: "commandPalette";
|
|
315
|
+
} | {
|
|
316
|
+
name: "elementLinkSelector";
|
|
317
|
+
sourceElementId: string;
|
|
309
318
|
} | null;
|
|
310
319
|
defaultSidebarDockedPreference: boolean;
|
|
311
320
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
321
|
+
hoveredElementIds: Readonly<{
|
|
322
|
+
[id: string]: true;
|
|
323
|
+
}>;
|
|
312
324
|
previousSelectedElementIds: {
|
|
313
325
|
[id: string]: true;
|
|
314
326
|
};
|
|
@@ -521,12 +533,18 @@ export declare const actionupdateFrameRendering: {
|
|
|
521
533
|
tab: "mermaid" | "text-to-diagram";
|
|
522
534
|
} | {
|
|
523
535
|
name: "commandPalette";
|
|
536
|
+
} | {
|
|
537
|
+
name: "elementLinkSelector";
|
|
538
|
+
sourceElementId: string;
|
|
524
539
|
} | null;
|
|
525
540
|
defaultSidebarDockedPreference: boolean;
|
|
526
541
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
527
542
|
selectedElementIds: Readonly<{
|
|
528
543
|
[id: string]: true;
|
|
529
544
|
}>;
|
|
545
|
+
hoveredElementIds: Readonly<{
|
|
546
|
+
[id: string]: true;
|
|
547
|
+
}>;
|
|
530
548
|
previousSelectedElementIds: {
|
|
531
549
|
[id: string]: true;
|
|
532
550
|
};
|
|
@@ -736,12 +754,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
736
754
|
tab: "mermaid" | "text-to-diagram";
|
|
737
755
|
} | {
|
|
738
756
|
name: "commandPalette";
|
|
757
|
+
} | {
|
|
758
|
+
name: "elementLinkSelector";
|
|
759
|
+
sourceElementId: string;
|
|
739
760
|
} | null;
|
|
740
761
|
defaultSidebarDockedPreference: boolean;
|
|
741
762
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
742
763
|
selectedElementIds: Readonly<{
|
|
743
764
|
[id: string]: true;
|
|
744
765
|
}>;
|
|
766
|
+
hoveredElementIds: Readonly<{
|
|
767
|
+
[id: string]: true;
|
|
768
|
+
}>;
|
|
745
769
|
previousSelectedElementIds: {
|
|
746
770
|
[id: string]: true;
|
|
747
771
|
};
|
|
@@ -99,9 +99,15 @@ export declare const actionGroup: {
|
|
|
99
99
|
tab: "mermaid" | "text-to-diagram";
|
|
100
100
|
} | {
|
|
101
101
|
name: "commandPalette";
|
|
102
|
+
} | {
|
|
103
|
+
name: "elementLinkSelector";
|
|
104
|
+
sourceElementId: string;
|
|
102
105
|
} | null;
|
|
103
106
|
defaultSidebarDockedPreference: boolean;
|
|
104
107
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
108
|
+
hoveredElementIds: Readonly<{
|
|
109
|
+
[id: string]: true;
|
|
110
|
+
}>;
|
|
105
111
|
previousSelectedElementIds: {
|
|
106
112
|
[id: string]: true;
|
|
107
113
|
};
|
|
@@ -319,9 +325,15 @@ export declare const actionUngroup: {
|
|
|
319
325
|
tab: "mermaid" | "text-to-diagram";
|
|
320
326
|
} | {
|
|
321
327
|
name: "commandPalette";
|
|
328
|
+
} | {
|
|
329
|
+
name: "elementLinkSelector";
|
|
330
|
+
sourceElementId: string;
|
|
322
331
|
} | null;
|
|
323
332
|
defaultSidebarDockedPreference: boolean;
|
|
324
333
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
334
|
+
hoveredElementIds: Readonly<{
|
|
335
|
+
[id: string]: true;
|
|
336
|
+
}>;
|
|
325
337
|
previousSelectedElementIds: {
|
|
326
338
|
[id: string]: true;
|
|
327
339
|
};
|
|
@@ -90,12 +90,18 @@ export declare const actionToggleLinearEditor: {
|
|
|
90
90
|
tab: "mermaid" | "text-to-diagram";
|
|
91
91
|
} | {
|
|
92
92
|
name: "commandPalette";
|
|
93
|
+
} | {
|
|
94
|
+
name: "elementLinkSelector";
|
|
95
|
+
sourceElementId: string;
|
|
93
96
|
} | null;
|
|
94
97
|
defaultSidebarDockedPreference: boolean;
|
|
95
98
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
96
99
|
selectedElementIds: Readonly<{
|
|
97
100
|
[id: string]: true;
|
|
98
101
|
}>;
|
|
102
|
+
hoveredElementIds: Readonly<{
|
|
103
|
+
[id: string]: true;
|
|
104
|
+
}>;
|
|
99
105
|
previousSelectedElementIds: {
|
|
100
106
|
[id: string]: true;
|
|
101
107
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const actionLink: {
|
|
2
2
|
name: "hyperlink";
|
|
3
|
-
label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.
|
|
3
|
+
label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
4
4
|
icon: JSX.Element;
|
|
5
5
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
6
6
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
@@ -85,12 +85,18 @@ export declare const actionLink: {
|
|
|
85
85
|
tab: "mermaid" | "text-to-diagram";
|
|
86
86
|
} | {
|
|
87
87
|
name: "commandPalette";
|
|
88
|
+
} | {
|
|
89
|
+
name: "elementLinkSelector";
|
|
90
|
+
sourceElementId: string;
|
|
88
91
|
} | null;
|
|
89
92
|
defaultSidebarDockedPreference: boolean;
|
|
90
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
94
|
selectedElementIds: Readonly<{
|
|
92
95
|
[id: string]: true;
|
|
93
96
|
}>;
|
|
97
|
+
hoveredElementIds: Readonly<{
|
|
98
|
+
[id: string]: true;
|
|
99
|
+
}>;
|
|
94
100
|
previousSelectedElementIds: {
|
|
95
101
|
[id: string]: true;
|
|
96
102
|
};
|
|
@@ -85,12 +85,18 @@ export declare const actionToggleCanvasMenu: {
|
|
|
85
85
|
tab: "mermaid" | "text-to-diagram";
|
|
86
86
|
} | {
|
|
87
87
|
name: "commandPalette";
|
|
88
|
+
} | {
|
|
89
|
+
name: "elementLinkSelector";
|
|
90
|
+
sourceElementId: string;
|
|
88
91
|
} | null;
|
|
89
92
|
defaultSidebarDockedPreference: boolean;
|
|
90
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
94
|
selectedElementIds: Readonly<{
|
|
92
95
|
[id: string]: true;
|
|
93
96
|
}>;
|
|
97
|
+
hoveredElementIds: Readonly<{
|
|
98
|
+
[id: string]: true;
|
|
99
|
+
}>;
|
|
94
100
|
previousSelectedElementIds: {
|
|
95
101
|
[id: string]: true;
|
|
96
102
|
};
|
|
@@ -297,12 +303,18 @@ export declare const actionToggleEditMenu: {
|
|
|
297
303
|
tab: "mermaid" | "text-to-diagram";
|
|
298
304
|
} | {
|
|
299
305
|
name: "commandPalette";
|
|
306
|
+
} | {
|
|
307
|
+
name: "elementLinkSelector";
|
|
308
|
+
sourceElementId: string;
|
|
300
309
|
} | null;
|
|
301
310
|
defaultSidebarDockedPreference: boolean;
|
|
302
311
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
303
312
|
selectedElementIds: Readonly<{
|
|
304
313
|
[id: string]: true;
|
|
305
314
|
}>;
|
|
315
|
+
hoveredElementIds: Readonly<{
|
|
316
|
+
[id: string]: true;
|
|
317
|
+
}>;
|
|
306
318
|
previousSelectedElementIds: {
|
|
307
319
|
[id: string]: true;
|
|
308
320
|
};
|
|
@@ -513,6 +525,9 @@ export declare const actionShortcuts: {
|
|
|
513
525
|
selectedElementIds: Readonly<{
|
|
514
526
|
[id: string]: true;
|
|
515
527
|
}>;
|
|
528
|
+
hoveredElementIds: Readonly<{
|
|
529
|
+
[id: string]: true;
|
|
530
|
+
}>;
|
|
516
531
|
previousSelectedElementIds: {
|
|
517
532
|
[id: string]: true;
|
|
518
533
|
};
|