@zsviczian/excalidraw 0.14.0-obsidian → 0.14.1-obsidian
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 +149 -116
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +21 -15
- package/types/actions/actionBoundText.d.ts +7 -5
- package/types/actions/actionCanvas.d.ts +185 -47
- package/types/actions/actionClipboard.d.ts +35 -25
- package/types/actions/actionDeleteSelected.d.ts +21 -15
- package/types/actions/actionExport.d.ts +63 -45
- package/types/actions/actionFinalize.d.ts +14 -10
- package/types/actions/actionLinearEditor.d.ts +7 -5
- package/types/actions/actionMenu.d.ts +21 -15
- package/types/actions/actionProperties.d.ts +91 -65
- package/types/actions/actionStyles.d.ts +7 -5
- package/types/actions/actionToggleGridMode.d.ts +7 -5
- package/types/actions/actionToggleLock.d.ts +7 -5
- package/types/actions/actionToggleStats.d.ts +7 -5
- package/types/actions/actionToggleViewMode.d.ts +7 -5
- package/types/actions/actionToggleZenMode.d.ts +7 -5
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +8 -6
- package/types/components/ActiveConfirmDialog.d.ts +24 -0
- package/types/components/App.d.ts +1 -0
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/ToolButton.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +7 -5
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +7 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -3
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +3 -2
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/icons.d.ts +1 -0
- package/types/components/main-menu/MainMenu.d.ts +10 -5
- package/types/constants.d.ts +6 -1
- package/types/element/Hyperlink.d.ts +7 -5
- package/types/element/linearElementEditor.d.ts +8 -5
- package/types/keys.d.ts +0 -3
- package/types/types.d.ts +13 -7
- package/types/utils.d.ts +6 -3
|
@@ -26,16 +26,15 @@ export declare const actionFinalize: {
|
|
|
26
26
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
27
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
activeTool: {
|
|
29
|
-
|
|
30
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
29
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
31
30
|
locked: boolean;
|
|
31
|
+
} & ({
|
|
32
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
32
33
|
customType: null;
|
|
33
34
|
} | {
|
|
34
35
|
type: "custom";
|
|
35
36
|
customType: string;
|
|
36
|
-
|
|
37
|
-
locked: boolean;
|
|
38
|
-
};
|
|
37
|
+
});
|
|
39
38
|
penMode: boolean;
|
|
40
39
|
penDetected: boolean;
|
|
41
40
|
exportBackground: boolean;
|
|
@@ -86,6 +85,7 @@ export declare const actionFinalize: {
|
|
|
86
85
|
zenModeEnabled: boolean;
|
|
87
86
|
theme: string;
|
|
88
87
|
gridSize: number | null;
|
|
88
|
+
previousGridSize: number | null;
|
|
89
89
|
viewModeEnabled: boolean;
|
|
90
90
|
selectedGroupIds: {
|
|
91
91
|
[groupId: string]: boolean;
|
|
@@ -115,6 +115,8 @@ export declare const actionFinalize: {
|
|
|
115
115
|
elementBackground?: string[] | undefined;
|
|
116
116
|
elementStroke?: string[] | undefined;
|
|
117
117
|
};
|
|
118
|
+
allowWheelZoom?: boolean | undefined;
|
|
119
|
+
allowPinchZoom?: boolean | undefined;
|
|
118
120
|
selectedLinearElement: LinearElementEditor | null;
|
|
119
121
|
};
|
|
120
122
|
commitToHistory: true;
|
|
@@ -123,16 +125,15 @@ export declare const actionFinalize: {
|
|
|
123
125
|
appState: {
|
|
124
126
|
cursorButton: "up";
|
|
125
127
|
activeTool: {
|
|
126
|
-
|
|
127
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
128
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
128
129
|
locked: boolean;
|
|
130
|
+
} & ({
|
|
131
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
129
132
|
customType: null;
|
|
130
133
|
} | {
|
|
131
134
|
type: "custom";
|
|
132
135
|
customType: string;
|
|
133
|
-
|
|
134
|
-
locked: boolean;
|
|
135
|
-
};
|
|
136
|
+
});
|
|
136
137
|
draggingElement: null;
|
|
137
138
|
multiElement: null;
|
|
138
139
|
editingElement: null;
|
|
@@ -202,6 +203,7 @@ export declare const actionFinalize: {
|
|
|
202
203
|
zenModeEnabled: boolean;
|
|
203
204
|
theme: string;
|
|
204
205
|
gridSize: number | null;
|
|
206
|
+
previousGridSize: number | null;
|
|
205
207
|
viewModeEnabled: boolean;
|
|
206
208
|
selectedGroupIds: {
|
|
207
209
|
[groupId: string]: boolean;
|
|
@@ -230,6 +232,8 @@ export declare const actionFinalize: {
|
|
|
230
232
|
elementBackground?: string[] | undefined;
|
|
231
233
|
elementStroke?: string[] | undefined;
|
|
232
234
|
};
|
|
235
|
+
allowWheelZoom?: boolean | undefined;
|
|
236
|
+
allowPinchZoom?: boolean | undefined;
|
|
233
237
|
};
|
|
234
238
|
commitToHistory: boolean;
|
|
235
239
|
};
|
|
@@ -26,16 +26,15 @@ export declare const actionToggleLinearEditor: {
|
|
|
26
26
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
27
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
activeTool: {
|
|
29
|
-
|
|
30
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
29
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
31
30
|
locked: boolean;
|
|
31
|
+
} & ({
|
|
32
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
32
33
|
customType: null;
|
|
33
34
|
} | {
|
|
34
35
|
type: "custom";
|
|
35
36
|
customType: string;
|
|
36
|
-
|
|
37
|
-
locked: boolean;
|
|
38
|
-
};
|
|
37
|
+
});
|
|
39
38
|
penMode: boolean;
|
|
40
39
|
penDetected: boolean;
|
|
41
40
|
exportBackground: boolean;
|
|
@@ -87,6 +86,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
87
86
|
zenModeEnabled: boolean;
|
|
88
87
|
theme: string;
|
|
89
88
|
gridSize: number | null;
|
|
89
|
+
previousGridSize: number | null;
|
|
90
90
|
viewModeEnabled: boolean;
|
|
91
91
|
selectedGroupIds: {
|
|
92
92
|
[groupId: string]: boolean;
|
|
@@ -116,6 +116,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
116
116
|
elementBackground?: string[] | undefined;
|
|
117
117
|
elementStroke?: string[] | undefined;
|
|
118
118
|
};
|
|
119
|
+
allowWheelZoom?: boolean | undefined;
|
|
120
|
+
allowPinchZoom?: boolean | undefined;
|
|
119
121
|
selectedLinearElement: LinearElementEditor | null;
|
|
120
122
|
};
|
|
121
123
|
commitToHistory: false;
|
|
@@ -25,16 +25,15 @@ export declare const actionToggleCanvasMenu: {
|
|
|
25
25
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
26
26
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
27
27
|
activeTool: {
|
|
28
|
-
|
|
29
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
28
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
30
29
|
locked: boolean;
|
|
30
|
+
} & ({
|
|
31
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
31
32
|
customType: null;
|
|
32
33
|
} | {
|
|
33
34
|
type: "custom";
|
|
34
35
|
customType: string;
|
|
35
|
-
|
|
36
|
-
locked: boolean;
|
|
37
|
-
};
|
|
36
|
+
});
|
|
38
37
|
penMode: boolean;
|
|
39
38
|
penDetected: boolean;
|
|
40
39
|
exportBackground: boolean;
|
|
@@ -85,6 +84,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
85
84
|
zenModeEnabled: boolean;
|
|
86
85
|
theme: string;
|
|
87
86
|
gridSize: number | null;
|
|
87
|
+
previousGridSize: number | null;
|
|
88
88
|
viewModeEnabled: boolean;
|
|
89
89
|
selectedGroupIds: {
|
|
90
90
|
[groupId: string]: boolean;
|
|
@@ -114,6 +114,8 @@ export declare const actionToggleCanvasMenu: {
|
|
|
114
114
|
elementBackground?: string[] | undefined;
|
|
115
115
|
elementStroke?: string[] | undefined;
|
|
116
116
|
};
|
|
117
|
+
allowWheelZoom?: boolean | undefined;
|
|
118
|
+
allowPinchZoom?: boolean | undefined;
|
|
117
119
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
118
120
|
};
|
|
119
121
|
commitToHistory: false;
|
|
@@ -148,16 +150,15 @@ export declare const actionToggleEditMenu: {
|
|
|
148
150
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
149
151
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
150
152
|
activeTool: {
|
|
151
|
-
|
|
152
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
153
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
153
154
|
locked: boolean;
|
|
155
|
+
} & ({
|
|
156
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
154
157
|
customType: null;
|
|
155
158
|
} | {
|
|
156
159
|
type: "custom";
|
|
157
160
|
customType: string;
|
|
158
|
-
|
|
159
|
-
locked: boolean;
|
|
160
|
-
};
|
|
161
|
+
});
|
|
161
162
|
penMode: boolean;
|
|
162
163
|
penDetected: boolean;
|
|
163
164
|
exportBackground: boolean;
|
|
@@ -208,6 +209,7 @@ export declare const actionToggleEditMenu: {
|
|
|
208
209
|
zenModeEnabled: boolean;
|
|
209
210
|
theme: string;
|
|
210
211
|
gridSize: number | null;
|
|
212
|
+
previousGridSize: number | null;
|
|
211
213
|
viewModeEnabled: boolean;
|
|
212
214
|
selectedGroupIds: {
|
|
213
215
|
[groupId: string]: boolean;
|
|
@@ -237,6 +239,8 @@ export declare const actionToggleEditMenu: {
|
|
|
237
239
|
elementBackground?: string[] | undefined;
|
|
238
240
|
elementStroke?: string[] | undefined;
|
|
239
241
|
};
|
|
242
|
+
allowWheelZoom?: boolean | undefined;
|
|
243
|
+
allowPinchZoom?: boolean | undefined;
|
|
240
244
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
241
245
|
};
|
|
242
246
|
commitToHistory: false;
|
|
@@ -287,16 +291,15 @@ export declare const actionShortcuts: {
|
|
|
287
291
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
288
292
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
289
293
|
activeTool: {
|
|
290
|
-
|
|
291
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
294
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
292
295
|
locked: boolean;
|
|
296
|
+
} & ({
|
|
297
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
293
298
|
customType: null;
|
|
294
299
|
} | {
|
|
295
300
|
type: "custom";
|
|
296
301
|
customType: string;
|
|
297
|
-
|
|
298
|
-
locked: boolean;
|
|
299
|
-
};
|
|
302
|
+
});
|
|
300
303
|
penMode: boolean;
|
|
301
304
|
penDetected: boolean;
|
|
302
305
|
exportBackground: boolean;
|
|
@@ -347,6 +350,7 @@ export declare const actionShortcuts: {
|
|
|
347
350
|
zenModeEnabled: boolean;
|
|
348
351
|
theme: string;
|
|
349
352
|
gridSize: number | null;
|
|
353
|
+
previousGridSize: number | null;
|
|
350
354
|
viewModeEnabled: boolean;
|
|
351
355
|
selectedGroupIds: {
|
|
352
356
|
[groupId: string]: boolean;
|
|
@@ -376,6 +380,8 @@ export declare const actionShortcuts: {
|
|
|
376
380
|
elementBackground?: string[] | undefined;
|
|
377
381
|
elementStroke?: string[] | undefined;
|
|
378
382
|
};
|
|
383
|
+
allowWheelZoom?: boolean | undefined;
|
|
384
|
+
allowPinchZoom?: boolean | undefined;
|
|
379
385
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
380
386
|
};
|
|
381
387
|
commitToHistory: false;
|