@zsviczian/excalidraw 0.16.1-obsidian-2 → 0.16.1-obsidian-4
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 +92 -26
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +9 -27
- package/types/actions/actionAlign.d.ts +8 -8
- package/types/actions/actionBoundText.d.ts +6 -18
- package/types/actions/actionCanvas.d.ts +206 -125
- package/types/actions/actionClipboard.d.ts +19 -49
- package/types/actions/actionDeleteSelected.d.ts +11 -29
- package/types/actions/actionDistribute.d.ts +4 -4
- package/types/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/actions/actionElementLock.d.ts +8 -20
- package/types/actions/actionExport.d.ts +35 -89
- package/types/actions/actionFinalize.d.ts +8 -20
- package/types/actions/actionFlip.d.ts +4 -4
- package/types/actions/actionFrame.d.ts +11 -29
- package/types/actions/actionGroup.d.ts +10 -22
- package/types/actions/actionLinearEditor.d.ts +3 -9
- package/types/actions/actionMenu.d.ts +13 -31
- package/types/actions/actionProperties.d.ts +43 -121
- package/types/actions/actionSelectAll.d.ts +5 -11
- package/types/actions/actionStyles.d.ts +7 -13
- package/types/actions/actionToggleGridMode.d.ts +5 -11
- package/types/actions/actionToggleObjectsSnapMode.d.ts +5 -11
- package/types/actions/actionToggleStats.d.ts +5 -11
- package/types/actions/actionToggleViewMode.d.ts +5 -11
- package/types/actions/actionToggleZenMode.d.ts +5 -11
- package/types/actions/actionZindex.d.ts +8 -8
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +7 -10
- package/types/components/Actions.d.ts +3 -4
- package/types/components/App.d.ts +7 -6
- package/types/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/types/components/dropdownMenu/common.d.ts +1 -1
- package/types/components/icons.d.ts +2 -0
- package/types/components/main-menu/MainMenu.d.ts +6 -3
- package/types/element/Hyperlink.d.ts +5 -11
- package/types/element/embeddable.d.ts +3 -9
- package/types/element/linearElementEditor.d.ts +3 -9
- package/types/types.d.ts +15 -17
- package/types/utils.d.ts +3 -4
package/package.json
CHANGED
|
@@ -40,15 +40,9 @@ export declare const actionAddToLibrary: {
|
|
|
40
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
43
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
45
|
+
} & import("../types").ActiveTool;
|
|
52
46
|
penMode: boolean;
|
|
53
47
|
penDetected: boolean;
|
|
54
48
|
exportBackground: boolean;
|
|
@@ -148,7 +142,7 @@ export declare const actionAddToLibrary: {
|
|
|
148
142
|
dynamicStyle: string;
|
|
149
143
|
invertBindingBehaviour: boolean;
|
|
150
144
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
151
|
-
snapLines: import("../snapping").SnapLine[];
|
|
145
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
152
146
|
originSnapOffset: {
|
|
153
147
|
x: number;
|
|
154
148
|
y: number;
|
|
@@ -189,15 +183,9 @@ export declare const actionAddToLibrary: {
|
|
|
189
183
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
190
184
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
191
185
|
activeTool: {
|
|
192
|
-
lastActiveTool: import("../types").
|
|
186
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
193
187
|
locked: boolean;
|
|
194
|
-
} & (
|
|
195
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
196
|
-
customType: null;
|
|
197
|
-
} | {
|
|
198
|
-
type: "custom";
|
|
199
|
-
customType: string;
|
|
200
|
-
});
|
|
188
|
+
} & import("../types").ActiveTool;
|
|
201
189
|
penMode: boolean;
|
|
202
190
|
penDetected: boolean;
|
|
203
191
|
exportBackground: boolean;
|
|
@@ -302,7 +290,7 @@ export declare const actionAddToLibrary: {
|
|
|
302
290
|
dynamicStyle: string;
|
|
303
291
|
invertBindingBehaviour: boolean;
|
|
304
292
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
305
|
-
snapLines: import("../snapping").SnapLine[];
|
|
293
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
306
294
|
originSnapOffset: {
|
|
307
295
|
x: number;
|
|
308
296
|
y: number;
|
|
@@ -343,15 +331,9 @@ export declare const actionAddToLibrary: {
|
|
|
343
331
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
344
332
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
345
333
|
activeTool: {
|
|
346
|
-
lastActiveTool: import("../types").
|
|
334
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
347
335
|
locked: boolean;
|
|
348
|
-
} & (
|
|
349
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
350
|
-
customType: null;
|
|
351
|
-
} | {
|
|
352
|
-
type: "custom";
|
|
353
|
-
customType: string;
|
|
354
|
-
});
|
|
336
|
+
} & import("../types").ActiveTool;
|
|
355
337
|
penMode: boolean;
|
|
356
338
|
penDetected: boolean;
|
|
357
339
|
exportBackground: boolean;
|
|
@@ -456,7 +438,7 @@ export declare const actionAddToLibrary: {
|
|
|
456
438
|
dynamicStyle: string;
|
|
457
439
|
invertBindingBehaviour: boolean;
|
|
458
440
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
459
|
-
snapLines: import("../snapping").SnapLine[];
|
|
441
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
460
442
|
originSnapOffset: {
|
|
461
443
|
x: number;
|
|
462
444
|
y: number;
|
|
@@ -11,10 +11,10 @@ export declare const actionAlignTop: {
|
|
|
11
11
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const actionAlignBottom: {
|
|
20
20
|
name: "alignBottom";
|
|
@@ -27,10 +27,10 @@ export declare const actionAlignBottom: {
|
|
|
27
27
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
28
28
|
commitToHistory: true;
|
|
29
29
|
};
|
|
30
|
-
keyTest: (event:
|
|
30
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
31
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event:
|
|
33
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
34
34
|
};
|
|
35
35
|
export declare const actionAlignLeft: {
|
|
36
36
|
name: "alignLeft";
|
|
@@ -43,10 +43,10 @@ export declare const actionAlignLeft: {
|
|
|
43
43
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
44
44
|
commitToHistory: true;
|
|
45
45
|
};
|
|
46
|
-
keyTest: (event:
|
|
46
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
47
47
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
} & {
|
|
49
|
-
keyTest?: ((event:
|
|
49
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
50
50
|
};
|
|
51
51
|
export declare const actionAlignRight: {
|
|
52
52
|
name: "alignRight";
|
|
@@ -59,10 +59,10 @@ export declare const actionAlignRight: {
|
|
|
59
59
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
60
60
|
commitToHistory: true;
|
|
61
61
|
};
|
|
62
|
-
keyTest: (event:
|
|
62
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
63
63
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
64
|
} & {
|
|
65
|
-
keyTest?: ((event:
|
|
65
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
66
66
|
};
|
|
67
67
|
export declare const actionAlignVerticallyCentered: {
|
|
68
68
|
name: "alignVerticallyCentered";
|
|
@@ -60,15 +60,9 @@ export declare const actionBindText: {
|
|
|
60
60
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
61
61
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
62
62
|
activeTool: {
|
|
63
|
-
lastActiveTool: import("../types").
|
|
63
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
64
|
locked: boolean;
|
|
65
|
-
} & (
|
|
66
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
67
|
-
customType: null;
|
|
68
|
-
} | {
|
|
69
|
-
type: "custom";
|
|
70
|
-
customType: string;
|
|
71
|
-
});
|
|
65
|
+
} & import("../types").ActiveTool;
|
|
72
66
|
penMode: boolean;
|
|
73
67
|
penDetected: boolean;
|
|
74
68
|
exportBackground: boolean;
|
|
@@ -170,7 +164,7 @@ export declare const actionBindText: {
|
|
|
170
164
|
dynamicStyle: string;
|
|
171
165
|
invertBindingBehaviour: boolean;
|
|
172
166
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
173
|
-
snapLines: import("../snapping").SnapLine[];
|
|
167
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
174
168
|
originSnapOffset: {
|
|
175
169
|
x: number;
|
|
176
170
|
y: number;
|
|
@@ -226,15 +220,9 @@ export declare const actionWrapTextInContainer: {
|
|
|
226
220
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
227
221
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
228
222
|
activeTool: {
|
|
229
|
-
lastActiveTool: import("../types").
|
|
223
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
230
224
|
locked: boolean;
|
|
231
|
-
} & (
|
|
232
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
233
|
-
customType: null;
|
|
234
|
-
} | {
|
|
235
|
-
type: "custom";
|
|
236
|
-
customType: string;
|
|
237
|
-
});
|
|
225
|
+
} & import("../types").ActiveTool;
|
|
238
226
|
penMode: boolean;
|
|
239
227
|
penDetected: boolean;
|
|
240
228
|
exportBackground: boolean;
|
|
@@ -336,7 +324,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
336
324
|
dynamicStyle: string;
|
|
337
325
|
invertBindingBehaviour: boolean;
|
|
338
326
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
339
|
-
snapLines: import("../snapping").SnapLine[];
|
|
327
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
340
328
|
originSnapOffset: {
|
|
341
329
|
x: number;
|
|
342
330
|
y: number;
|