@zsviczian/excalidraw 0.18.0-53 → 0.18.0-55
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 +56 -56
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/common/src/commonObsidianUtils.d.ts +6 -0
- package/types/common/src/constants.d.ts +1 -0
- package/types/common/src/editorInterface.d.ts +1 -1
- package/types/common/src/index.d.ts +1 -0
- package/types/common/src/utils.d.ts +7 -2
- package/types/common/src/visualdebug.d.ts +1 -1
- package/types/element/src/binding.d.ts +55 -44
- package/types/element/src/collision.d.ts +6 -2
- package/types/element/src/index.d.ts +0 -3
- package/types/element/src/linearElementEditor.d.ts +15 -18
- package/types/element/src/renderElement.d.ts +1 -1
- package/types/element/src/typeChecks.d.ts +2 -3
- package/types/element/src/types.d.ts +7 -11
- package/types/element/src/utils.d.ts +2 -1
- package/types/element/src/zindex.d.ts +7 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -7
- package/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +13 -7
- package/types/excalidraw/actions/actionCanvas.d.ts +91 -286
- package/types/excalidraw/actions/actionClipboard.d.ts +34 -941
- package/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +23 -16
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLink.d.ts +4 -3
- package/types/excalidraw/actions/actionElementLock.d.ts +11 -5
- package/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
- package/types/excalidraw/actions/actionExport.d.ts +43 -1149
- package/types/excalidraw/actions/actionFinalize.d.ts +10 -688
- package/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +26 -16
- package/types/excalidraw/actions/actionGroup.d.ts +12 -6
- package/types/excalidraw/actions/actionLinearEditor.d.ts +15 -16
- package/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/types/excalidraw/actions/actionMenu.d.ts +3 -2
- package/types/excalidraw/actions/actionNavigate.d.ts +21 -445
- package/types/excalidraw/actions/actionProperties.d.ts +79 -2968
- package/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
- package/types/excalidraw/actions/actionStyles.d.ts +7 -4
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -2
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
- package/types/excalidraw/actions/actionTrayMenu.d.ts +5 -2
- package/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/types/excalidraw/actions/manager.d.ts +1 -1
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +3 -3
- package/types/excalidraw/appState.d.ts +4 -3
- package/types/excalidraw/components/App.d.ts +7 -3
- package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/index.d.ts +3 -3
- package/types/excalidraw/obsidianUtils.d.ts +0 -5
- package/types/excalidraw/renderer/helpers.d.ts +1 -5
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/scene/types.d.ts +4 -0
- package/types/excalidraw/types.d.ts +15 -5
|
@@ -9,7 +9,7 @@ export declare const actionAlignTop: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
12
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -27,7 +27,7 @@ export declare const actionAlignBottom: {
|
|
|
27
27
|
category: "element";
|
|
28
28
|
};
|
|
29
29
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
30
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
30
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -45,7 +45,7 @@ export declare const actionAlignLeft: {
|
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
47
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
48
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
48
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -63,7 +63,7 @@ export declare const actionAlignRight: {
|
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
65
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
66
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
66
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -81,7 +81,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
81
81
|
category: "element";
|
|
82
82
|
};
|
|
83
83
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
84
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
84
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
86
|
elements: ExcalidrawElement[];
|
|
87
87
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -98,7 +98,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
98
98
|
category: "element";
|
|
99
99
|
};
|
|
100
100
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
101
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
101
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
103
|
elements: ExcalidrawElement[];
|
|
104
104
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -8,7 +8,7 @@ export declare const actionUnbindText: {
|
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
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>, _:
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
12
12
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -23,7 +23,7 @@ export declare const actionBindText: {
|
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
25
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
26
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: {
|
|
29
29
|
selectedElementIds: {
|
|
@@ -47,7 +47,7 @@ export declare const actionBindText: {
|
|
|
47
47
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
48
|
isBindingEnabled: boolean;
|
|
49
49
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
50
|
-
|
|
50
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
51
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
52
|
frameRendering: {
|
|
53
53
|
enabled: boolean;
|
|
@@ -109,12 +109,14 @@ export declare const actionBindText: {
|
|
|
109
109
|
tab?: string | undefined;
|
|
110
110
|
} | null;
|
|
111
111
|
openDialog: {
|
|
112
|
-
name: "
|
|
112
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
113
113
|
} | {
|
|
114
114
|
name: "ttd";
|
|
115
115
|
tab: "mermaid" | "text-to-diagram";
|
|
116
116
|
} | {
|
|
117
117
|
name: "commandPalette";
|
|
118
|
+
} | {
|
|
119
|
+
name: "settings";
|
|
118
120
|
} | {
|
|
119
121
|
name: "elementLinkSelector";
|
|
120
122
|
sourceElementId: string;
|
|
@@ -237,6 +239,7 @@ export declare const actionBindText: {
|
|
|
237
239
|
lockedMultiSelections: {
|
|
238
240
|
[groupId: string]: true;
|
|
239
241
|
};
|
|
242
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
240
243
|
};
|
|
241
244
|
captureUpdate: "IMMEDIATELY";
|
|
242
245
|
};
|
|
@@ -250,7 +253,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
250
253
|
category: "element";
|
|
251
254
|
};
|
|
252
255
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
253
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
256
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
254
257
|
elements: readonly ExcalidrawElement[];
|
|
255
258
|
appState: {
|
|
256
259
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -274,7 +277,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
274
277
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
275
278
|
isBindingEnabled: boolean;
|
|
276
279
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
277
|
-
|
|
280
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
278
281
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
279
282
|
frameRendering: {
|
|
280
283
|
enabled: boolean;
|
|
@@ -336,12 +339,14 @@ export declare const actionWrapTextInContainer: {
|
|
|
336
339
|
tab?: string | undefined;
|
|
337
340
|
} | null;
|
|
338
341
|
openDialog: {
|
|
339
|
-
name: "
|
|
342
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
340
343
|
} | {
|
|
341
344
|
name: "ttd";
|
|
342
345
|
tab: "mermaid" | "text-to-diagram";
|
|
343
346
|
} | {
|
|
344
347
|
name: "commandPalette";
|
|
348
|
+
} | {
|
|
349
|
+
name: "settings";
|
|
345
350
|
} | {
|
|
346
351
|
name: "elementLinkSelector";
|
|
347
352
|
sourceElementId: string;
|
|
@@ -464,6 +469,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
464
469
|
lockedMultiSelections: {
|
|
465
470
|
[groupId: string]: true;
|
|
466
471
|
};
|
|
472
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
467
473
|
};
|
|
468
474
|
captureUpdate: "IMMEDIATELY";
|
|
469
475
|
};
|