@zsviczian/excalidraw 0.15.2-obsidian-6 → 0.15.2-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 +37 -37
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +36 -21
- package/types/actions/actionBoundText.d.ts +22 -11
- package/types/actions/actionCanvas.d.ts +138 -78
- package/types/actions/actionClipboard.d.ts +57 -32
- package/types/actions/actionDeleteSelected.d.ts +33 -18
- package/types/actions/actionElementLock.d.ts +21 -11
- package/types/actions/actionExport.d.ts +108 -63
- package/types/actions/actionFinalize.d.ts +24 -14
- package/types/actions/actionFrame.d.ts +35 -20
- package/types/actions/actionLinearEditor.d.ts +12 -7
- package/types/actions/actionMenu.d.ts +36 -21
- package/types/actions/actionProperties.d.ts +156 -91
- package/types/actions/actionStyles.d.ts +12 -7
- package/types/actions/actionToggleGridMode.d.ts +12 -7
- package/types/actions/actionToggleStats.d.ts +12 -7
- package/types/actions/actionToggleViewMode.d.ts +12 -7
- package/types/actions/actionToggleZenMode.d.ts +12 -7
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +5 -5
- package/types/components/App.d.ts +13 -8
- package/types/element/Hyperlink.d.ts +12 -7
- package/types/element/collision.d.ts +2 -2
- package/types/element/embeddable.d.ts +171 -0
- package/types/element/iframe.d.ts +4 -4
- package/types/element/linearElementEditor.d.ts +12 -7
- package/types/element/newElement.d.ts +4 -4
- package/types/element/typeChecks.d.ts +4 -4
- package/types/element/types.d.ts +6 -6
- package/types/groups.d.ts +1 -1
- package/types/history.d.ts +3 -3
- package/types/scene/selection.d.ts +11 -1
- package/types/types.d.ts +19 -14
- package/types/utils.d.ts +1 -1
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export declare const actionAddToLibrary: {
|
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: import("react").ReactNode;
|
|
21
|
-
|
|
21
|
+
activeEmbeddable: {
|
|
22
22
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
23
23
|
state: "active" | "hover";
|
|
24
24
|
} | null;
|
|
@@ -30,7 +30,12 @@ export declare const actionAddToLibrary: {
|
|
|
30
30
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
31
31
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
32
32
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
33
|
-
|
|
33
|
+
frameRendering: {
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
name: boolean;
|
|
36
|
+
outline: boolean;
|
|
37
|
+
clip: boolean;
|
|
38
|
+
};
|
|
34
39
|
editingFrame: string | null;
|
|
35
40
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
36
41
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -39,7 +44,7 @@ export declare const actionAddToLibrary: {
|
|
|
39
44
|
lastActiveTool: import("../types").LastActiveTool;
|
|
40
45
|
locked: boolean;
|
|
41
46
|
} & ({
|
|
42
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
47
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
43
48
|
customType: null;
|
|
44
49
|
} | {
|
|
45
50
|
type: "custom";
|
|
@@ -84,11 +89,11 @@ export declare const actionAddToLibrary: {
|
|
|
84
89
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
85
90
|
defaultSidebarDockedPreference: boolean;
|
|
86
91
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
87
|
-
selectedElementIds: {
|
|
88
|
-
[id: string]:
|
|
89
|
-
}
|
|
92
|
+
selectedElementIds: Readonly<{
|
|
93
|
+
[id: string]: true;
|
|
94
|
+
}>;
|
|
90
95
|
previousSelectedElementIds: {
|
|
91
|
-
[id: string]:
|
|
96
|
+
[id: string]: true;
|
|
92
97
|
};
|
|
93
98
|
selectedElementsAreBeingDragged: boolean;
|
|
94
99
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -152,7 +157,7 @@ export declare const actionAddToLibrary: {
|
|
|
152
157
|
} | null;
|
|
153
158
|
showWelcomeScreen: boolean;
|
|
154
159
|
isLoading: boolean;
|
|
155
|
-
|
|
160
|
+
activeEmbeddable: {
|
|
156
161
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
157
162
|
state: "active" | "hover";
|
|
158
163
|
} | null;
|
|
@@ -164,7 +169,12 @@ export declare const actionAddToLibrary: {
|
|
|
164
169
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
165
170
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
166
171
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
167
|
-
|
|
172
|
+
frameRendering: {
|
|
173
|
+
enabled: boolean;
|
|
174
|
+
name: boolean;
|
|
175
|
+
outline: boolean;
|
|
176
|
+
clip: boolean;
|
|
177
|
+
};
|
|
168
178
|
editingFrame: string | null;
|
|
169
179
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
170
180
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -173,7 +183,7 @@ export declare const actionAddToLibrary: {
|
|
|
173
183
|
lastActiveTool: import("../types").LastActiveTool;
|
|
174
184
|
locked: boolean;
|
|
175
185
|
} & ({
|
|
176
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
186
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
177
187
|
customType: null;
|
|
178
188
|
} | {
|
|
179
189
|
type: "custom";
|
|
@@ -218,11 +228,11 @@ export declare const actionAddToLibrary: {
|
|
|
218
228
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
219
229
|
defaultSidebarDockedPreference: boolean;
|
|
220
230
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
221
|
-
selectedElementIds: {
|
|
222
|
-
[id: string]:
|
|
223
|
-
}
|
|
231
|
+
selectedElementIds: Readonly<{
|
|
232
|
+
[id: string]: true;
|
|
233
|
+
}>;
|
|
224
234
|
previousSelectedElementIds: {
|
|
225
|
-
[id: string]:
|
|
235
|
+
[id: string]: true;
|
|
226
236
|
};
|
|
227
237
|
selectedElementsAreBeingDragged: boolean;
|
|
228
238
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -291,7 +301,7 @@ export declare const actionAddToLibrary: {
|
|
|
291
301
|
} | null;
|
|
292
302
|
showWelcomeScreen: boolean;
|
|
293
303
|
isLoading: boolean;
|
|
294
|
-
|
|
304
|
+
activeEmbeddable: {
|
|
295
305
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
296
306
|
state: "active" | "hover";
|
|
297
307
|
} | null;
|
|
@@ -303,7 +313,12 @@ export declare const actionAddToLibrary: {
|
|
|
303
313
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
304
314
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
305
315
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
306
|
-
|
|
316
|
+
frameRendering: {
|
|
317
|
+
enabled: boolean;
|
|
318
|
+
name: boolean;
|
|
319
|
+
outline: boolean;
|
|
320
|
+
clip: boolean;
|
|
321
|
+
};
|
|
307
322
|
editingFrame: string | null;
|
|
308
323
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
309
324
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -312,7 +327,7 @@ export declare const actionAddToLibrary: {
|
|
|
312
327
|
lastActiveTool: import("../types").LastActiveTool;
|
|
313
328
|
locked: boolean;
|
|
314
329
|
} & ({
|
|
315
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
330
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
316
331
|
customType: null;
|
|
317
332
|
} | {
|
|
318
333
|
type: "custom";
|
|
@@ -357,11 +372,11 @@ export declare const actionAddToLibrary: {
|
|
|
357
372
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
358
373
|
defaultSidebarDockedPreference: boolean;
|
|
359
374
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
360
|
-
selectedElementIds: {
|
|
361
|
-
[id: string]:
|
|
362
|
-
}
|
|
375
|
+
selectedElementIds: Readonly<{
|
|
376
|
+
[id: string]: true;
|
|
377
|
+
}>;
|
|
363
378
|
previousSelectedElementIds: {
|
|
364
|
-
[id: string]:
|
|
379
|
+
[id: string]: true;
|
|
365
380
|
};
|
|
366
381
|
selectedElementsAreBeingDragged: boolean;
|
|
367
382
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
3
|
import { AppState } from "../types";
|
|
4
|
+
import { Mutable } from "../utility-types";
|
|
4
5
|
export declare const actionUnbindText: {
|
|
5
6
|
name: "unbindText";
|
|
6
7
|
contextItemLabel: string;
|
|
@@ -37,7 +38,7 @@ export declare const actionBindText: {
|
|
|
37
38
|
showWelcomeScreen: boolean;
|
|
38
39
|
isLoading: boolean;
|
|
39
40
|
errorMessage: import("react").ReactNode;
|
|
40
|
-
|
|
41
|
+
activeEmbeddable: {
|
|
41
42
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
42
43
|
state: "active" | "hover";
|
|
43
44
|
} | null;
|
|
@@ -49,7 +50,12 @@ export declare const actionBindText: {
|
|
|
49
50
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
50
51
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
51
52
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
52
|
-
|
|
53
|
+
frameRendering: {
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
name: boolean;
|
|
56
|
+
outline: boolean;
|
|
57
|
+
clip: boolean;
|
|
58
|
+
};
|
|
53
59
|
editingFrame: string | null;
|
|
54
60
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
55
61
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -58,7 +64,7 @@ export declare const actionBindText: {
|
|
|
58
64
|
lastActiveTool: import("../types").LastActiveTool;
|
|
59
65
|
locked: boolean;
|
|
60
66
|
} & ({
|
|
61
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
67
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
62
68
|
customType: null;
|
|
63
69
|
} | {
|
|
64
70
|
type: "custom";
|
|
@@ -104,7 +110,7 @@ export declare const actionBindText: {
|
|
|
104
110
|
defaultSidebarDockedPreference: boolean;
|
|
105
111
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
106
112
|
previousSelectedElementIds: {
|
|
107
|
-
[id: string]:
|
|
113
|
+
[id: string]: true;
|
|
108
114
|
};
|
|
109
115
|
selectedElementsAreBeingDragged: boolean;
|
|
110
116
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -177,9 +183,9 @@ export declare const actionWrapTextInContainer: {
|
|
|
177
183
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
178
184
|
elements: readonly ExcalidrawElement[];
|
|
179
185
|
appState: {
|
|
180
|
-
selectedElementIds: {
|
|
181
|
-
[id: string]:
|
|
182
|
-
}
|
|
186
|
+
selectedElementIds: Mutable<Readonly<{
|
|
187
|
+
[id: string]: true;
|
|
188
|
+
}>>;
|
|
183
189
|
contextMenu: {
|
|
184
190
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
185
191
|
top: number;
|
|
@@ -188,7 +194,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
188
194
|
showWelcomeScreen: boolean;
|
|
189
195
|
isLoading: boolean;
|
|
190
196
|
errorMessage: import("react").ReactNode;
|
|
191
|
-
|
|
197
|
+
activeEmbeddable: {
|
|
192
198
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
193
199
|
state: "active" | "hover";
|
|
194
200
|
} | null;
|
|
@@ -200,7 +206,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
200
206
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
201
207
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
202
208
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
203
|
-
|
|
209
|
+
frameRendering: {
|
|
210
|
+
enabled: boolean;
|
|
211
|
+
name: boolean;
|
|
212
|
+
outline: boolean;
|
|
213
|
+
clip: boolean;
|
|
214
|
+
};
|
|
204
215
|
editingFrame: string | null;
|
|
205
216
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
206
217
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -209,7 +220,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
209
220
|
lastActiveTool: import("../types").LastActiveTool;
|
|
210
221
|
locked: boolean;
|
|
211
222
|
} & ({
|
|
212
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
223
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
213
224
|
customType: null;
|
|
214
225
|
} | {
|
|
215
226
|
type: "custom";
|
|
@@ -255,7 +266,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
255
266
|
defaultSidebarDockedPreference: boolean;
|
|
256
267
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
257
268
|
previousSelectedElementIds: {
|
|
258
|
-
[id: string]:
|
|
269
|
+
[id: string]: true;
|
|
259
270
|
};
|
|
260
271
|
selectedElementsAreBeingDragged: boolean;
|
|
261
272
|
shouldCacheIgnoreZoom: boolean;
|