@zsviczian/excalidraw 0.16.1-obsidian-7 → 0.16.1-obsidian-8
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 +82 -38
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +24 -6
- package/types/actions/actionBoundText.d.ts +16 -4
- package/types/actions/actionCanvas.d.ts +104 -26
- package/types/actions/actionClipboard.d.ts +355 -18
- package/types/actions/actionDeleteSelected.d.ts +24 -6
- package/types/actions/actionElementLock.d.ts +16 -4
- package/types/actions/actionExport.d.ts +71 -17
- package/types/actions/actionFinalize.d.ts +16 -4
- package/types/actions/actionFrame.d.ts +24 -6
- package/types/actions/actionGroup.d.ts +16 -4
- package/types/actions/actionLinearEditor.d.ts +8 -2
- package/types/actions/actionMenu.d.ts +23 -5
- package/types/actions/actionProperties.d.ts +104 -26
- package/types/actions/actionSelectAll.d.ts +8 -2
- package/types/actions/actionStyles.d.ts +8 -2
- package/types/actions/actionToggleGridMode.d.ts +8 -2
- package/types/actions/actionToggleObjectsSnapMode.d.ts +8 -2
- package/types/actions/actionToggleStats.d.ts +8 -2
- package/types/actions/actionToggleViewMode.d.ts +8 -2
- package/types/actions/actionToggleZenMode.d.ts +8 -2
- package/types/actions/actionZindex.d.ts +2 -2
- package/types/actions/manager.d.ts +1 -1
- package/types/clipboard.d.ts +21 -3
- package/types/components/App.d.ts +2 -3
- package/types/components/ContextMenu.d.ts +2 -1
- package/types/components/MermaidToExcalidraw.d.ts +1 -1
- package/types/components/Modal.d.ts +3 -1
- package/types/constants.d.ts +1 -0
- package/types/data/transform.d.ts +7 -3
- package/types/element/Hyperlink.d.ts +9 -3
- package/types/element/bounds.d.ts +11 -5
- package/types/element/embeddable.d.ts +8 -2
- package/types/element/linearElementEditor.d.ts +10 -3
- package/types/element/newElement.d.ts +3 -1
- package/types/element/resizeTest.d.ts +2 -1
- package/types/element/transformHandles.d.ts +2 -1
- package/types/frame.d.ts +1 -0
- package/types/hooks/useCreatePortalContainer.d.ts +6 -4
- package/types/math.d.ts +1 -0
- package/types/packages/bbox.d.ts +11 -0
- package/types/packages/excalidraw/index.d.ts +1 -0
- package/types/packages/utils.d.ts +2 -0
- package/types/packages/withinBounds.d.ts +19 -0
- package/types/scene/export.d.ts +0 -1
- package/types/types.d.ts +11 -3
- package/types/utils.d.ts +2 -0
- package/types/zindex.d.ts +4 -4
|
@@ -3,10 +3,164 @@ export declare const actionCopy: {
|
|
|
3
3
|
trackEvent: {
|
|
4
4
|
category: "element";
|
|
5
5
|
};
|
|
6
|
-
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>,
|
|
6
|
+
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
7
7
|
commitToHistory: false;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
appState: {
|
|
9
|
+
errorMessage: any;
|
|
10
|
+
contextMenu: {
|
|
11
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
12
|
+
top: number;
|
|
13
|
+
left: number;
|
|
14
|
+
} | null;
|
|
15
|
+
showWelcomeScreen: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
activeEmbeddable: {
|
|
18
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
19
|
+
state: "active" | "hover";
|
|
20
|
+
} | null;
|
|
21
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
24
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
+
isBindingEnabled: boolean;
|
|
26
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
27
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
29
|
+
frameRendering: {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
name: boolean;
|
|
32
|
+
outline: boolean;
|
|
33
|
+
clip: boolean;
|
|
34
|
+
};
|
|
35
|
+
editingFrame: string | null;
|
|
36
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
37
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
38
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
39
|
+
activeTool: {
|
|
40
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
41
|
+
locked: boolean;
|
|
42
|
+
} & import("../types").ActiveTool;
|
|
43
|
+
penMode: boolean;
|
|
44
|
+
penDetected: boolean;
|
|
45
|
+
exportBackground: boolean;
|
|
46
|
+
exportEmbedScene: boolean;
|
|
47
|
+
exportWithDarkMode: boolean;
|
|
48
|
+
exportScale: number;
|
|
49
|
+
currentItemStrokeColor: string;
|
|
50
|
+
currentItemBackgroundColor: string;
|
|
51
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
52
|
+
currentItemStrokeWidth: number;
|
|
53
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
54
|
+
currentItemRoughness: number;
|
|
55
|
+
currentItemOpacity: number;
|
|
56
|
+
currentItemFontFamily: number;
|
|
57
|
+
currentItemFontSize: number;
|
|
58
|
+
currentItemTextAlign: string;
|
|
59
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
60
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
61
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
62
|
+
viewBackgroundColor: string;
|
|
63
|
+
scrollX: number;
|
|
64
|
+
scrollY: number;
|
|
65
|
+
cursorButton: "up" | "down";
|
|
66
|
+
scrolledOutside: boolean;
|
|
67
|
+
name: string;
|
|
68
|
+
isResizing: boolean;
|
|
69
|
+
isRotating: boolean;
|
|
70
|
+
zoom: Readonly<{
|
|
71
|
+
value: import("../types").NormalizedZoomValue;
|
|
72
|
+
}>;
|
|
73
|
+
openMenu: "canvas" | "shape" | null;
|
|
74
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
75
|
+
openSidebar: {
|
|
76
|
+
name: string;
|
|
77
|
+
tab?: string | undefined;
|
|
78
|
+
} | null;
|
|
79
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
80
|
+
defaultSidebarDockedPreference: boolean;
|
|
81
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
82
|
+
selectedElementIds: Readonly<{
|
|
83
|
+
[id: string]: true;
|
|
84
|
+
}>;
|
|
85
|
+
previousSelectedElementIds: {
|
|
86
|
+
[id: string]: true;
|
|
87
|
+
};
|
|
88
|
+
selectedElementsAreBeingDragged: boolean;
|
|
89
|
+
shouldCacheIgnoreZoom: boolean;
|
|
90
|
+
toast: {
|
|
91
|
+
message: string;
|
|
92
|
+
closable?: boolean | undefined;
|
|
93
|
+
duration?: number | undefined;
|
|
94
|
+
} | null;
|
|
95
|
+
zenModeEnabled: boolean;
|
|
96
|
+
theme: import("../element/types").Theme;
|
|
97
|
+
gridSize: number | null;
|
|
98
|
+
previousGridSize: number | null;
|
|
99
|
+
viewModeEnabled: boolean;
|
|
100
|
+
selectedGroupIds: {
|
|
101
|
+
[groupId: string]: boolean;
|
|
102
|
+
};
|
|
103
|
+
editingGroupId: string | null;
|
|
104
|
+
width: number;
|
|
105
|
+
height: number;
|
|
106
|
+
offsetTop: number;
|
|
107
|
+
offsetLeft: number;
|
|
108
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
109
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
110
|
+
showStats: boolean;
|
|
111
|
+
currentChartType: import("../element/types").ChartType;
|
|
112
|
+
pasteDialog: {
|
|
113
|
+
shown: false;
|
|
114
|
+
data: null;
|
|
115
|
+
} | {
|
|
116
|
+
shown: true;
|
|
117
|
+
data: import("../charts").Spreadsheet;
|
|
118
|
+
};
|
|
119
|
+
pendingImageElementId: string | null;
|
|
120
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
121
|
+
linkOpacity: number;
|
|
122
|
+
trayModeEnabled: boolean;
|
|
123
|
+
colorPalette?: {
|
|
124
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
125
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
126
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
127
|
+
topPicks: {
|
|
128
|
+
canvasBackground: [string, string, string, string, string];
|
|
129
|
+
elementStroke: [string, string, string, string, string];
|
|
130
|
+
elementBackground: [string, string, string, string, string];
|
|
131
|
+
};
|
|
132
|
+
} | undefined;
|
|
133
|
+
allowWheelZoom?: boolean | undefined;
|
|
134
|
+
allowPinchZoom?: boolean | undefined;
|
|
135
|
+
pinnedScripts?: string[] | undefined;
|
|
136
|
+
customPens?: any[] | undefined;
|
|
137
|
+
currentStrokeOptions?: any;
|
|
138
|
+
resetCustomPen?: any;
|
|
139
|
+
gridColor: {
|
|
140
|
+
Bold: string;
|
|
141
|
+
Regular: string;
|
|
142
|
+
MajorGridFrequency?: number | undefined;
|
|
143
|
+
};
|
|
144
|
+
dynamicStyle: {
|
|
145
|
+
[x: string]: string;
|
|
146
|
+
};
|
|
147
|
+
frameColor: {
|
|
148
|
+
stroke: string;
|
|
149
|
+
fill: string;
|
|
150
|
+
};
|
|
151
|
+
invertBindingBehaviour: boolean;
|
|
152
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
153
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
154
|
+
originSnapOffset: {
|
|
155
|
+
x: number;
|
|
156
|
+
y: number;
|
|
157
|
+
} | null;
|
|
158
|
+
objectsSnapModeEnabled: boolean;
|
|
159
|
+
};
|
|
160
|
+
} | {
|
|
161
|
+
commitToHistory: false;
|
|
162
|
+
appState?: undefined;
|
|
163
|
+
}>;
|
|
10
164
|
contextItemLabel: string;
|
|
11
165
|
keyTest: undefined;
|
|
12
166
|
} & {
|
|
@@ -17,10 +171,164 @@ export declare const actionPaste: {
|
|
|
17
171
|
trackEvent: {
|
|
18
172
|
category: "element";
|
|
19
173
|
};
|
|
20
|
-
perform: (elements:
|
|
174
|
+
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
21
175
|
commitToHistory: false;
|
|
22
|
-
|
|
23
|
-
|
|
176
|
+
appState: {
|
|
177
|
+
errorMessage: string;
|
|
178
|
+
contextMenu: {
|
|
179
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
180
|
+
top: number;
|
|
181
|
+
left: number;
|
|
182
|
+
} | null;
|
|
183
|
+
showWelcomeScreen: boolean;
|
|
184
|
+
isLoading: boolean;
|
|
185
|
+
activeEmbeddable: {
|
|
186
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
187
|
+
state: "active" | "hover";
|
|
188
|
+
} | null;
|
|
189
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
190
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
191
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
192
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
193
|
+
isBindingEnabled: boolean;
|
|
194
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
195
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
196
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
197
|
+
frameRendering: {
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
name: boolean;
|
|
200
|
+
outline: boolean;
|
|
201
|
+
clip: boolean;
|
|
202
|
+
};
|
|
203
|
+
editingFrame: string | null;
|
|
204
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
205
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
206
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
207
|
+
activeTool: {
|
|
208
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
209
|
+
locked: boolean;
|
|
210
|
+
} & import("../types").ActiveTool;
|
|
211
|
+
penMode: boolean;
|
|
212
|
+
penDetected: boolean;
|
|
213
|
+
exportBackground: boolean;
|
|
214
|
+
exportEmbedScene: boolean;
|
|
215
|
+
exportWithDarkMode: boolean;
|
|
216
|
+
exportScale: number;
|
|
217
|
+
currentItemStrokeColor: string;
|
|
218
|
+
currentItemBackgroundColor: string;
|
|
219
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
220
|
+
currentItemStrokeWidth: number;
|
|
221
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
222
|
+
currentItemRoughness: number;
|
|
223
|
+
currentItemOpacity: number;
|
|
224
|
+
currentItemFontFamily: number;
|
|
225
|
+
currentItemFontSize: number;
|
|
226
|
+
currentItemTextAlign: string;
|
|
227
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
228
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
229
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
230
|
+
viewBackgroundColor: string;
|
|
231
|
+
scrollX: number;
|
|
232
|
+
scrollY: number;
|
|
233
|
+
cursorButton: "up" | "down";
|
|
234
|
+
scrolledOutside: boolean;
|
|
235
|
+
name: string;
|
|
236
|
+
isResizing: boolean;
|
|
237
|
+
isRotating: boolean;
|
|
238
|
+
zoom: Readonly<{
|
|
239
|
+
value: import("../types").NormalizedZoomValue;
|
|
240
|
+
}>;
|
|
241
|
+
openMenu: "canvas" | "shape" | null;
|
|
242
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
243
|
+
openSidebar: {
|
|
244
|
+
name: string;
|
|
245
|
+
tab?: string | undefined;
|
|
246
|
+
} | null;
|
|
247
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
248
|
+
defaultSidebarDockedPreference: boolean;
|
|
249
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
250
|
+
selectedElementIds: Readonly<{
|
|
251
|
+
[id: string]: true;
|
|
252
|
+
}>;
|
|
253
|
+
previousSelectedElementIds: {
|
|
254
|
+
[id: string]: true;
|
|
255
|
+
};
|
|
256
|
+
selectedElementsAreBeingDragged: boolean;
|
|
257
|
+
shouldCacheIgnoreZoom: boolean;
|
|
258
|
+
toast: {
|
|
259
|
+
message: string;
|
|
260
|
+
closable?: boolean | undefined;
|
|
261
|
+
duration?: number | undefined;
|
|
262
|
+
} | null;
|
|
263
|
+
zenModeEnabled: boolean;
|
|
264
|
+
theme: import("../element/types").Theme;
|
|
265
|
+
gridSize: number | null;
|
|
266
|
+
previousGridSize: number | null;
|
|
267
|
+
viewModeEnabled: boolean;
|
|
268
|
+
selectedGroupIds: {
|
|
269
|
+
[groupId: string]: boolean;
|
|
270
|
+
};
|
|
271
|
+
editingGroupId: string | null;
|
|
272
|
+
width: number;
|
|
273
|
+
height: number;
|
|
274
|
+
offsetTop: number;
|
|
275
|
+
offsetLeft: number;
|
|
276
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
277
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
278
|
+
showStats: boolean;
|
|
279
|
+
currentChartType: import("../element/types").ChartType;
|
|
280
|
+
pasteDialog: {
|
|
281
|
+
shown: false;
|
|
282
|
+
data: null;
|
|
283
|
+
} | {
|
|
284
|
+
shown: true;
|
|
285
|
+
data: import("../charts").Spreadsheet;
|
|
286
|
+
};
|
|
287
|
+
pendingImageElementId: string | null;
|
|
288
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
289
|
+
linkOpacity: number;
|
|
290
|
+
trayModeEnabled: boolean;
|
|
291
|
+
colorPalette?: {
|
|
292
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
293
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
294
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
295
|
+
topPicks: {
|
|
296
|
+
canvasBackground: [string, string, string, string, string];
|
|
297
|
+
elementStroke: [string, string, string, string, string];
|
|
298
|
+
elementBackground: [string, string, string, string, string];
|
|
299
|
+
};
|
|
300
|
+
} | undefined;
|
|
301
|
+
allowWheelZoom?: boolean | undefined;
|
|
302
|
+
allowPinchZoom?: boolean | undefined;
|
|
303
|
+
pinnedScripts?: string[] | undefined;
|
|
304
|
+
customPens?: any[] | undefined;
|
|
305
|
+
currentStrokeOptions?: any;
|
|
306
|
+
resetCustomPen?: any;
|
|
307
|
+
gridColor: {
|
|
308
|
+
Bold: string;
|
|
309
|
+
Regular: string;
|
|
310
|
+
MajorGridFrequency?: number | undefined;
|
|
311
|
+
};
|
|
312
|
+
dynamicStyle: {
|
|
313
|
+
[x: string]: string;
|
|
314
|
+
};
|
|
315
|
+
frameColor: {
|
|
316
|
+
stroke: string;
|
|
317
|
+
fill: string;
|
|
318
|
+
};
|
|
319
|
+
invertBindingBehaviour: boolean;
|
|
320
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
321
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
322
|
+
originSnapOffset: {
|
|
323
|
+
x: number;
|
|
324
|
+
y: number;
|
|
325
|
+
} | null;
|
|
326
|
+
objectsSnapModeEnabled: boolean;
|
|
327
|
+
};
|
|
328
|
+
} | {
|
|
329
|
+
commitToHistory: false;
|
|
330
|
+
appState?: undefined;
|
|
331
|
+
}>;
|
|
24
332
|
contextItemLabel: string;
|
|
25
333
|
keyTest: undefined;
|
|
26
334
|
} & {
|
|
@@ -31,7 +339,7 @@ export declare const actionCut: {
|
|
|
31
339
|
trackEvent: {
|
|
32
340
|
category: "element";
|
|
33
341
|
};
|
|
34
|
-
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>,
|
|
342
|
+
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
35
343
|
elements: import("../element/types").ExcalidrawElement[];
|
|
36
344
|
appState: {
|
|
37
345
|
editingLinearElement: null;
|
|
@@ -104,7 +412,7 @@ export declare const actionCut: {
|
|
|
104
412
|
name: string;
|
|
105
413
|
tab?: string | undefined;
|
|
106
414
|
} | null;
|
|
107
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
415
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
108
416
|
defaultSidebarDockedPreference: boolean;
|
|
109
417
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
110
418
|
selectedElementIds: Readonly<{
|
|
@@ -169,7 +477,13 @@ export declare const actionCut: {
|
|
|
169
477
|
Regular: string;
|
|
170
478
|
MajorGridFrequency?: number | undefined;
|
|
171
479
|
};
|
|
172
|
-
dynamicStyle:
|
|
480
|
+
dynamicStyle: {
|
|
481
|
+
[x: string]: string;
|
|
482
|
+
};
|
|
483
|
+
frameColor: {
|
|
484
|
+
stroke: string;
|
|
485
|
+
fill: string;
|
|
486
|
+
};
|
|
173
487
|
invertBindingBehaviour: boolean;
|
|
174
488
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
175
489
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -281,7 +595,7 @@ export declare const actionCut: {
|
|
|
281
595
|
name: string;
|
|
282
596
|
tab?: string | undefined;
|
|
283
597
|
} | null;
|
|
284
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
598
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
285
599
|
defaultSidebarDockedPreference: boolean;
|
|
286
600
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
287
601
|
selectedElementIds: Readonly<{
|
|
@@ -346,7 +660,13 @@ export declare const actionCut: {
|
|
|
346
660
|
Regular: string;
|
|
347
661
|
MajorGridFrequency?: number | undefined;
|
|
348
662
|
};
|
|
349
|
-
dynamicStyle:
|
|
663
|
+
dynamicStyle: {
|
|
664
|
+
[x: string]: string;
|
|
665
|
+
};
|
|
666
|
+
frameColor: {
|
|
667
|
+
stroke: string;
|
|
668
|
+
fill: string;
|
|
669
|
+
};
|
|
350
670
|
invertBindingBehaviour: boolean;
|
|
351
671
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
352
672
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -429,7 +749,7 @@ export declare const actionCut: {
|
|
|
429
749
|
name: string;
|
|
430
750
|
tab?: string | undefined;
|
|
431
751
|
} | null;
|
|
432
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
752
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
433
753
|
defaultSidebarDockedPreference: boolean;
|
|
434
754
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
435
755
|
previousSelectedElementIds: {
|
|
@@ -488,7 +808,13 @@ export declare const actionCut: {
|
|
|
488
808
|
Regular: string;
|
|
489
809
|
MajorGridFrequency?: number | undefined;
|
|
490
810
|
};
|
|
491
|
-
dynamicStyle:
|
|
811
|
+
dynamicStyle: {
|
|
812
|
+
[x: string]: string;
|
|
813
|
+
};
|
|
814
|
+
frameColor: {
|
|
815
|
+
stroke: string;
|
|
816
|
+
fill: string;
|
|
817
|
+
};
|
|
492
818
|
invertBindingBehaviour: boolean;
|
|
493
819
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
494
820
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -500,7 +826,6 @@ export declare const actionCut: {
|
|
|
500
826
|
};
|
|
501
827
|
commitToHistory: boolean;
|
|
502
828
|
};
|
|
503
|
-
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
504
829
|
contextItemLabel: string;
|
|
505
830
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
506
831
|
} & {
|
|
@@ -586,7 +911,7 @@ export declare const actionCopyAsSvg: {
|
|
|
586
911
|
name: string;
|
|
587
912
|
tab?: string | undefined;
|
|
588
913
|
} | null;
|
|
589
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
914
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
590
915
|
defaultSidebarDockedPreference: boolean;
|
|
591
916
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
592
917
|
selectedElementIds: Readonly<{
|
|
@@ -651,7 +976,13 @@ export declare const actionCopyAsSvg: {
|
|
|
651
976
|
Regular: string;
|
|
652
977
|
MajorGridFrequency?: number | undefined;
|
|
653
978
|
};
|
|
654
|
-
dynamicStyle:
|
|
979
|
+
dynamicStyle: {
|
|
980
|
+
[x: string]: string;
|
|
981
|
+
};
|
|
982
|
+
frameColor: {
|
|
983
|
+
stroke: string;
|
|
984
|
+
fill: string;
|
|
985
|
+
};
|
|
655
986
|
invertBindingBehaviour: boolean;
|
|
656
987
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
657
988
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -748,7 +1079,7 @@ export declare const actionCopyAsPng: {
|
|
|
748
1079
|
name: string;
|
|
749
1080
|
tab?: string | undefined;
|
|
750
1081
|
} | null;
|
|
751
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1082
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
752
1083
|
defaultSidebarDockedPreference: boolean;
|
|
753
1084
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
754
1085
|
selectedElementIds: Readonly<{
|
|
@@ -813,7 +1144,13 @@ export declare const actionCopyAsPng: {
|
|
|
813
1144
|
Regular: string;
|
|
814
1145
|
MajorGridFrequency?: number | undefined;
|
|
815
1146
|
};
|
|
816
|
-
dynamicStyle:
|
|
1147
|
+
dynamicStyle: {
|
|
1148
|
+
[x: string]: string;
|
|
1149
|
+
};
|
|
1150
|
+
frameColor: {
|
|
1151
|
+
stroke: string;
|
|
1152
|
+
fill: string;
|
|
1153
|
+
};
|
|
817
1154
|
invertBindingBehaviour: boolean;
|
|
818
1155
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
819
1156
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -80,7 +80,7 @@ export declare const actionDeleteSelected: {
|
|
|
80
80
|
name: string;
|
|
81
81
|
tab?: string | undefined;
|
|
82
82
|
} | null;
|
|
83
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
83
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
84
84
|
defaultSidebarDockedPreference: boolean;
|
|
85
85
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
86
86
|
selectedElementIds: Readonly<{
|
|
@@ -145,7 +145,13 @@ export declare const actionDeleteSelected: {
|
|
|
145
145
|
Regular: string;
|
|
146
146
|
MajorGridFrequency?: number | undefined;
|
|
147
147
|
};
|
|
148
|
-
dynamicStyle:
|
|
148
|
+
dynamicStyle: {
|
|
149
|
+
[x: string]: string;
|
|
150
|
+
};
|
|
151
|
+
frameColor: {
|
|
152
|
+
stroke: string;
|
|
153
|
+
fill: string;
|
|
154
|
+
};
|
|
149
155
|
invertBindingBehaviour: boolean;
|
|
150
156
|
selectedLinearElement: LinearElementEditor | null;
|
|
151
157
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -257,7 +263,7 @@ export declare const actionDeleteSelected: {
|
|
|
257
263
|
name: string;
|
|
258
264
|
tab?: string | undefined;
|
|
259
265
|
} | null;
|
|
260
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
266
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
261
267
|
defaultSidebarDockedPreference: boolean;
|
|
262
268
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
263
269
|
selectedElementIds: Readonly<{
|
|
@@ -322,7 +328,13 @@ export declare const actionDeleteSelected: {
|
|
|
322
328
|
Regular: string;
|
|
323
329
|
MajorGridFrequency?: number | undefined;
|
|
324
330
|
};
|
|
325
|
-
dynamicStyle:
|
|
331
|
+
dynamicStyle: {
|
|
332
|
+
[x: string]: string;
|
|
333
|
+
};
|
|
334
|
+
frameColor: {
|
|
335
|
+
stroke: string;
|
|
336
|
+
fill: string;
|
|
337
|
+
};
|
|
326
338
|
invertBindingBehaviour: boolean;
|
|
327
339
|
selectedLinearElement: LinearElementEditor | null;
|
|
328
340
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -405,7 +417,7 @@ export declare const actionDeleteSelected: {
|
|
|
405
417
|
name: string;
|
|
406
418
|
tab?: string | undefined;
|
|
407
419
|
} | null;
|
|
408
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
420
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
409
421
|
defaultSidebarDockedPreference: boolean;
|
|
410
422
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
411
423
|
previousSelectedElementIds: {
|
|
@@ -464,7 +476,13 @@ export declare const actionDeleteSelected: {
|
|
|
464
476
|
Regular: string;
|
|
465
477
|
MajorGridFrequency?: number | undefined;
|
|
466
478
|
};
|
|
467
|
-
dynamicStyle:
|
|
479
|
+
dynamicStyle: {
|
|
480
|
+
[x: string]: string;
|
|
481
|
+
};
|
|
482
|
+
frameColor: {
|
|
483
|
+
stroke: string;
|
|
484
|
+
fill: string;
|
|
485
|
+
};
|
|
468
486
|
invertBindingBehaviour: boolean;
|
|
469
487
|
selectedLinearElement: LinearElementEditor | null;
|
|
470
488
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -79,7 +79,7 @@ export declare const actionToggleElementLock: {
|
|
|
79
79
|
name: string;
|
|
80
80
|
tab?: string | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
82
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
83
83
|
defaultSidebarDockedPreference: boolean;
|
|
84
84
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
85
85
|
selectedElementIds: Readonly<{
|
|
@@ -144,7 +144,13 @@ export declare const actionToggleElementLock: {
|
|
|
144
144
|
Regular: string;
|
|
145
145
|
MajorGridFrequency?: number | undefined;
|
|
146
146
|
};
|
|
147
|
-
dynamicStyle:
|
|
147
|
+
dynamicStyle: {
|
|
148
|
+
[x: string]: string;
|
|
149
|
+
};
|
|
150
|
+
frameColor: {
|
|
151
|
+
stroke: string;
|
|
152
|
+
fill: string;
|
|
153
|
+
};
|
|
148
154
|
invertBindingBehaviour: boolean;
|
|
149
155
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
150
156
|
originSnapOffset: {
|
|
@@ -243,7 +249,7 @@ export declare const actionUnlockAllElements: {
|
|
|
243
249
|
name: string;
|
|
244
250
|
tab?: string | undefined;
|
|
245
251
|
} | null;
|
|
246
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
252
|
+
openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
|
|
247
253
|
defaultSidebarDockedPreference: boolean;
|
|
248
254
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
249
255
|
previousSelectedElementIds: {
|
|
@@ -305,7 +311,13 @@ export declare const actionUnlockAllElements: {
|
|
|
305
311
|
Regular: string;
|
|
306
312
|
MajorGridFrequency?: number | undefined;
|
|
307
313
|
};
|
|
308
|
-
dynamicStyle:
|
|
314
|
+
dynamicStyle: {
|
|
315
|
+
[x: string]: string;
|
|
316
|
+
};
|
|
317
|
+
frameColor: {
|
|
318
|
+
stroke: string;
|
|
319
|
+
fill: string;
|
|
320
|
+
};
|
|
309
321
|
invertBindingBehaviour: boolean;
|
|
310
322
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
311
323
|
snapLines: readonly import("../snapping").SnapLine[];
|