@zsviczian/excalidraw 0.14.0-obsidian → 0.14.2-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/README.md +16 -1823
- package/dist/excalidraw.development.js +282 -139
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +20 -0
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +33 -15
- package/types/actions/actionBoundText.d.ts +11 -5
- package/types/actions/actionCanvas.d.ts +225 -47
- package/types/actions/actionClipboard.d.ts +55 -25
- package/types/actions/actionDeleteSelected.d.ts +35 -17
- package/types/actions/actionExport.d.ts +99 -45
- package/types/actions/actionFinalize.d.ts +22 -10
- package/types/actions/actionLinearEditor.d.ts +11 -5
- package/types/actions/actionMenu.d.ts +33 -15
- package/types/actions/actionProperties.d.ts +143 -65
- package/types/actions/actionStyles.d.ts +11 -5
- package/types/actions/actionToggleGridMode.d.ts +11 -5
- package/types/actions/actionToggleLock.d.ts +11 -5
- package/types/actions/actionToggleStats.d.ts +11 -5
- package/types/actions/actionToggleViewMode.d.ts +11 -5
- package/types/actions/actionToggleZenMode.d.ts +11 -5
- package/types/actions/shortcuts.d.ts +1 -1
- 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 +3 -1
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/LayerUI.d.ts +2 -2
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +4 -4
- package/types/components/ToolButton.d.ts +1 -1
- package/types/components/context/tunnels.d.ts +16 -0
- 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/footer/Footer.d.ts +3 -4
- package/types/components/hoc/withInternalFallback.d.ts +4 -0
- package/types/components/icons.d.ts +1 -0
- package/types/components/main-menu/MainMenu.d.ts +14 -9
- package/types/components/welcome-screen/WelcomeScreen.d.ts +2 -2
- package/types/constants.d.ts +11 -1
- package/types/data/restore.d.ts +8 -2
- package/types/element/Hyperlink.d.ts +11 -5
- package/types/element/linearElementEditor.d.ts +12 -5
- package/types/element/newElement.d.ts +0 -3
- package/types/element/sortElements.d.ts +2 -0
- package/types/element/textElement.d.ts +9 -8
- package/types/element/typeChecks.d.ts +1 -1
- package/types/element/types.d.ts +0 -1
- package/types/i18n.d.ts +6 -0
- package/types/jotai.d.ts +5 -5
- package/types/keys.d.ts +0 -3
- package/types/math.d.ts +1 -0
- package/types/packages/excalidraw/example/App.d.ts +7 -1
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/utils.d.ts +1 -1
- package/types/types.d.ts +21 -24
- package/types/utils.d.ts +9 -19
|
@@ -22,3 +22,23 @@ https://github.com/nodeca/pica
|
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @license React
|
|
28
|
+
* use-sync-external-store-shim.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @license React
|
|
38
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
package/package.json
CHANGED
|
@@ -27,16 +27,15 @@ export declare const actionAddToLibrary: {
|
|
|
27
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
29
29
|
activeTool: {
|
|
30
|
-
|
|
31
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
30
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
32
31
|
locked: boolean;
|
|
32
|
+
} & ({
|
|
33
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
33
34
|
customType: null;
|
|
34
35
|
} | {
|
|
35
36
|
type: "custom";
|
|
36
37
|
customType: string;
|
|
37
|
-
|
|
38
|
-
locked: boolean;
|
|
39
|
-
};
|
|
38
|
+
});
|
|
40
39
|
penMode: boolean;
|
|
41
40
|
penDetected: boolean;
|
|
42
41
|
exportBackground: boolean;
|
|
@@ -83,6 +82,7 @@ export declare const actionAddToLibrary: {
|
|
|
83
82
|
zenModeEnabled: boolean;
|
|
84
83
|
theme: string;
|
|
85
84
|
gridSize: number | null;
|
|
85
|
+
previousGridSize: number | null;
|
|
86
86
|
viewModeEnabled: boolean;
|
|
87
87
|
selectedGroupIds: {
|
|
88
88
|
[groupId: string]: boolean;
|
|
@@ -112,6 +112,12 @@ export declare const actionAddToLibrary: {
|
|
|
112
112
|
elementBackground?: string[] | undefined;
|
|
113
113
|
elementStroke?: string[] | undefined;
|
|
114
114
|
};
|
|
115
|
+
allowWheelZoom?: boolean | undefined;
|
|
116
|
+
allowPinchZoom?: boolean | undefined;
|
|
117
|
+
pinnedScripts?: string[] | undefined;
|
|
118
|
+
customPens?: any[] | undefined;
|
|
119
|
+
currentStrokeOptions?: any;
|
|
120
|
+
resetCustomPen?: any;
|
|
115
121
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
116
122
|
};
|
|
117
123
|
} | {
|
|
@@ -135,16 +141,15 @@ export declare const actionAddToLibrary: {
|
|
|
135
141
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
136
142
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
137
143
|
activeTool: {
|
|
138
|
-
|
|
139
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
144
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
140
145
|
locked: boolean;
|
|
146
|
+
} & ({
|
|
147
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
141
148
|
customType: null;
|
|
142
149
|
} | {
|
|
143
150
|
type: "custom";
|
|
144
151
|
customType: string;
|
|
145
|
-
|
|
146
|
-
locked: boolean;
|
|
147
|
-
};
|
|
152
|
+
});
|
|
148
153
|
penMode: boolean;
|
|
149
154
|
penDetected: boolean;
|
|
150
155
|
exportBackground: boolean;
|
|
@@ -196,6 +201,7 @@ export declare const actionAddToLibrary: {
|
|
|
196
201
|
zenModeEnabled: boolean;
|
|
197
202
|
theme: string;
|
|
198
203
|
gridSize: number | null;
|
|
204
|
+
previousGridSize: number | null;
|
|
199
205
|
viewModeEnabled: boolean;
|
|
200
206
|
selectedGroupIds: {
|
|
201
207
|
[groupId: string]: boolean;
|
|
@@ -225,6 +231,12 @@ export declare const actionAddToLibrary: {
|
|
|
225
231
|
elementBackground?: string[] | undefined;
|
|
226
232
|
elementStroke?: string[] | undefined;
|
|
227
233
|
};
|
|
234
|
+
allowWheelZoom?: boolean | undefined;
|
|
235
|
+
allowPinchZoom?: boolean | undefined;
|
|
236
|
+
pinnedScripts?: string[] | undefined;
|
|
237
|
+
customPens?: any[] | undefined;
|
|
238
|
+
currentStrokeOptions?: any;
|
|
239
|
+
resetCustomPen?: any;
|
|
228
240
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
229
241
|
};
|
|
230
242
|
}> | {
|
|
@@ -248,16 +260,15 @@ export declare const actionAddToLibrary: {
|
|
|
248
260
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
249
261
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
250
262
|
activeTool: {
|
|
251
|
-
|
|
252
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
263
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
253
264
|
locked: boolean;
|
|
265
|
+
} & ({
|
|
266
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
254
267
|
customType: null;
|
|
255
268
|
} | {
|
|
256
269
|
type: "custom";
|
|
257
270
|
customType: string;
|
|
258
|
-
|
|
259
|
-
locked: boolean;
|
|
260
|
-
};
|
|
271
|
+
});
|
|
261
272
|
penMode: boolean;
|
|
262
273
|
penDetected: boolean;
|
|
263
274
|
exportBackground: boolean;
|
|
@@ -309,6 +320,7 @@ export declare const actionAddToLibrary: {
|
|
|
309
320
|
zenModeEnabled: boolean;
|
|
310
321
|
theme: string;
|
|
311
322
|
gridSize: number | null;
|
|
323
|
+
previousGridSize: number | null;
|
|
312
324
|
viewModeEnabled: boolean;
|
|
313
325
|
selectedGroupIds: {
|
|
314
326
|
[groupId: string]: boolean;
|
|
@@ -338,6 +350,12 @@ export declare const actionAddToLibrary: {
|
|
|
338
350
|
elementBackground?: string[] | undefined;
|
|
339
351
|
elementStroke?: string[] | undefined;
|
|
340
352
|
};
|
|
353
|
+
allowWheelZoom?: boolean | undefined;
|
|
354
|
+
allowPinchZoom?: boolean | undefined;
|
|
355
|
+
pinnedScripts?: string[] | undefined;
|
|
356
|
+
customPens?: any[] | undefined;
|
|
357
|
+
currentStrokeOptions?: any;
|
|
358
|
+
resetCustomPen?: any;
|
|
341
359
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
342
360
|
};
|
|
343
361
|
};
|
|
@@ -44,16 +44,15 @@ export declare const actionBindText: {
|
|
|
44
44
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
45
45
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
46
46
|
activeTool: {
|
|
47
|
-
|
|
48
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
47
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
49
48
|
locked: boolean;
|
|
49
|
+
} & ({
|
|
50
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
50
51
|
customType: null;
|
|
51
52
|
} | {
|
|
52
53
|
type: "custom";
|
|
53
54
|
customType: string;
|
|
54
|
-
|
|
55
|
-
locked: boolean;
|
|
56
|
-
};
|
|
55
|
+
});
|
|
57
56
|
penMode: boolean;
|
|
58
57
|
penDetected: boolean;
|
|
59
58
|
exportBackground: boolean;
|
|
@@ -102,6 +101,7 @@ export declare const actionBindText: {
|
|
|
102
101
|
zenModeEnabled: boolean;
|
|
103
102
|
theme: string;
|
|
104
103
|
gridSize: number | null;
|
|
104
|
+
previousGridSize: number | null;
|
|
105
105
|
viewModeEnabled: boolean;
|
|
106
106
|
selectedGroupIds: {
|
|
107
107
|
[groupId: string]: boolean;
|
|
@@ -131,6 +131,12 @@ export declare const actionBindText: {
|
|
|
131
131
|
elementBackground?: string[] | undefined;
|
|
132
132
|
elementStroke?: string[] | undefined;
|
|
133
133
|
};
|
|
134
|
+
allowWheelZoom?: boolean | undefined;
|
|
135
|
+
allowPinchZoom?: boolean | undefined;
|
|
136
|
+
pinnedScripts?: string[] | undefined;
|
|
137
|
+
customPens?: any[] | undefined;
|
|
138
|
+
currentStrokeOptions?: any;
|
|
139
|
+
resetCustomPen?: any;
|
|
134
140
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
135
141
|
};
|
|
136
142
|
commitToHistory: true;
|