@zsviczian/excalidraw 0.15.2-obsidian-7 → 0.15.2-obsidian-9
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 +50 -50
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +27 -12
- package/types/actions/actionAlign.d.ts +19 -19
- package/types/actions/actionBoundText.d.ts +24 -14
- package/types/actions/actionCanvas.d.ts +120 -60
- package/types/actions/actionClipboard.d.ts +47 -22
- package/types/actions/actionDeleteSelected.d.ts +27 -12
- package/types/actions/actionDistribute.d.ts +5 -5
- package/types/actions/actionElementLock.d.ts +23 -13
- package/types/actions/actionExport.d.ts +82 -36
- package/types/actions/actionFinalize.d.ts +18 -11
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionFrame.d.ts +35 -20
- package/types/actions/actionGroup.d.ts +5 -5
- package/types/actions/actionLinearEditor.d.ts +11 -6
- package/types/actions/actionMenu.d.ts +27 -12
- package/types/actions/actionProperties.d.ts +117 -52
- package/types/actions/actionStyles.d.ts +9 -4
- package/types/actions/actionToggleGridMode.d.ts +9 -4
- package/types/actions/actionToggleStats.d.ts +9 -4
- package/types/actions/actionToggleViewMode.d.ts +9 -4
- package/types/actions/actionToggleZenMode.d.ts +9 -4
- package/types/actions/types.d.ts +4 -3
- package/types/appState.d.ts +2 -2
- package/types/components/App.d.ts +13 -8
- package/types/components/HintViewer.d.ts +3 -4
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/MobileMenu.d.ts +3 -2
- package/types/constants.d.ts +2 -2
- package/types/data/url.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +9 -4
- package/types/element/collision.d.ts +2 -2
- package/types/element/embeddable.d.ts +176 -0
- package/types/element/linearElementEditor.d.ts +9 -4
- 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/frame.d.ts +2 -2
- package/types/groups.d.ts +3 -3
- package/types/scene/Scene.d.ts +13 -0
- package/types/types.d.ts +15 -10
- package/types/utility-types.d.ts +2 -0
- package/types/utils.d.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppState } from "../types";
|
|
3
|
+
import { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionGroup: {
|
|
5
5
|
name: "group";
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app:
|
|
9
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
10
|
appState: Readonly<AppState>;
|
|
11
11
|
elements: readonly ExcalidrawElement[];
|
|
12
12
|
commitToHistory: false;
|
|
@@ -16,9 +16,9 @@ export declare const actionGroup: {
|
|
|
16
16
|
commitToHistory: true;
|
|
17
17
|
};
|
|
18
18
|
contextItemLabel: string;
|
|
19
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
19
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
20
20
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
21
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
21
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
22
22
|
} & {
|
|
23
23
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
24
24
|
};
|
|
@@ -27,7 +27,7 @@ export declare const actionUngroup: {
|
|
|
27
27
|
trackEvent: {
|
|
28
28
|
category: "element";
|
|
29
29
|
};
|
|
30
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app:
|
|
30
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
32
|
elements: readonly ExcalidrawElement[];
|
|
33
33
|
commitToHistory: false;
|
|
@@ -6,7 +6,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
9
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
10
10
|
perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
11
11
|
appState: {
|
|
12
12
|
editingLinearElement: LinearElementEditor | null;
|
|
@@ -18,7 +18,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
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;
|
|
@@ -38,7 +43,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
38
43
|
lastActiveTool: import("../types").LastActiveTool;
|
|
39
44
|
locked: boolean;
|
|
40
45
|
} & ({
|
|
41
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
46
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
42
47
|
customType: null;
|
|
43
48
|
} | {
|
|
44
49
|
type: "custom";
|
|
@@ -97,7 +102,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
97
102
|
duration?: number | undefined;
|
|
98
103
|
} | null;
|
|
99
104
|
zenModeEnabled: boolean;
|
|
100
|
-
theme:
|
|
105
|
+
theme: import("../element/types").Theme;
|
|
101
106
|
gridSize: number | null;
|
|
102
107
|
previousGridSize: number | null;
|
|
103
108
|
viewModeEnabled: boolean;
|
|
@@ -147,7 +152,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
147
152
|
};
|
|
148
153
|
commitToHistory: false;
|
|
149
154
|
};
|
|
150
|
-
contextItemLabel: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState
|
|
155
|
+
contextItemLabel: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.exit" | "labels.lineEditor.edit";
|
|
151
156
|
} & {
|
|
152
157
|
keyTest?: undefined;
|
|
153
158
|
};
|
|
@@ -15,7 +15,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
15
15
|
showWelcomeScreen: boolean;
|
|
16
16
|
isLoading: boolean;
|
|
17
17
|
errorMessage: import("react").ReactNode;
|
|
18
|
-
|
|
18
|
+
activeEmbeddable: {
|
|
19
19
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
20
20
|
state: "active" | "hover";
|
|
21
21
|
} | null;
|
|
@@ -27,7 +27,12 @@ export declare const actionToggleCanvasMenu: {
|
|
|
27
27
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
28
28
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
29
29
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
30
|
-
|
|
30
|
+
frameRendering: {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
name: boolean;
|
|
33
|
+
outline: boolean;
|
|
34
|
+
clip: boolean;
|
|
35
|
+
};
|
|
31
36
|
editingFrame: string | null;
|
|
32
37
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
33
38
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -36,7 +41,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
36
41
|
lastActiveTool: import("../types").LastActiveTool;
|
|
37
42
|
locked: boolean;
|
|
38
43
|
} & ({
|
|
39
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
44
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
40
45
|
customType: null;
|
|
41
46
|
} | {
|
|
42
47
|
type: "custom";
|
|
@@ -94,7 +99,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
94
99
|
duration?: number | undefined;
|
|
95
100
|
} | null;
|
|
96
101
|
zenModeEnabled: boolean;
|
|
97
|
-
theme:
|
|
102
|
+
theme: import("../element/types").Theme;
|
|
98
103
|
gridSize: number | null;
|
|
99
104
|
previousGridSize: number | null;
|
|
100
105
|
viewModeEnabled: boolean;
|
|
@@ -164,7 +169,7 @@ export declare const actionToggleEditMenu: {
|
|
|
164
169
|
showWelcomeScreen: boolean;
|
|
165
170
|
isLoading: boolean;
|
|
166
171
|
errorMessage: import("react").ReactNode;
|
|
167
|
-
|
|
172
|
+
activeEmbeddable: {
|
|
168
173
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
169
174
|
state: "active" | "hover";
|
|
170
175
|
} | null;
|
|
@@ -176,7 +181,12 @@ export declare const actionToggleEditMenu: {
|
|
|
176
181
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
177
182
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
178
183
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
179
|
-
|
|
184
|
+
frameRendering: {
|
|
185
|
+
enabled: boolean;
|
|
186
|
+
name: boolean;
|
|
187
|
+
outline: boolean;
|
|
188
|
+
clip: boolean;
|
|
189
|
+
};
|
|
180
190
|
editingFrame: string | null;
|
|
181
191
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
182
192
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -185,7 +195,7 @@ export declare const actionToggleEditMenu: {
|
|
|
185
195
|
lastActiveTool: import("../types").LastActiveTool;
|
|
186
196
|
locked: boolean;
|
|
187
197
|
} & ({
|
|
188
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
198
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
189
199
|
customType: null;
|
|
190
200
|
} | {
|
|
191
201
|
type: "custom";
|
|
@@ -243,7 +253,7 @@ export declare const actionToggleEditMenu: {
|
|
|
243
253
|
duration?: number | undefined;
|
|
244
254
|
} | null;
|
|
245
255
|
zenModeEnabled: boolean;
|
|
246
|
-
theme:
|
|
256
|
+
theme: import("../element/types").Theme;
|
|
247
257
|
gridSize: number | null;
|
|
248
258
|
previousGridSize: number | null;
|
|
249
259
|
viewModeEnabled: boolean;
|
|
@@ -329,7 +339,7 @@ export declare const actionShortcuts: {
|
|
|
329
339
|
showWelcomeScreen: boolean;
|
|
330
340
|
isLoading: boolean;
|
|
331
341
|
errorMessage: import("react").ReactNode;
|
|
332
|
-
|
|
342
|
+
activeEmbeddable: {
|
|
333
343
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
334
344
|
state: "active" | "hover";
|
|
335
345
|
} | null;
|
|
@@ -341,7 +351,12 @@ export declare const actionShortcuts: {
|
|
|
341
351
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
342
352
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
343
353
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
344
|
-
|
|
354
|
+
frameRendering: {
|
|
355
|
+
enabled: boolean;
|
|
356
|
+
name: boolean;
|
|
357
|
+
outline: boolean;
|
|
358
|
+
clip: boolean;
|
|
359
|
+
};
|
|
345
360
|
editingFrame: string | null;
|
|
346
361
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
347
362
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -350,7 +365,7 @@ export declare const actionShortcuts: {
|
|
|
350
365
|
lastActiveTool: import("../types").LastActiveTool;
|
|
351
366
|
locked: boolean;
|
|
352
367
|
} & ({
|
|
353
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
368
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
354
369
|
customType: null;
|
|
355
370
|
} | {
|
|
356
371
|
type: "custom";
|
|
@@ -408,7 +423,7 @@ export declare const actionShortcuts: {
|
|
|
408
423
|
duration?: number | undefined;
|
|
409
424
|
} | null;
|
|
410
425
|
zenModeEnabled: boolean;
|
|
411
|
-
theme:
|
|
426
|
+
theme: import("../element/types").Theme;
|
|
412
427
|
gridSize: number | null;
|
|
413
428
|
previousGridSize: number | null;
|
|
414
429
|
viewModeEnabled: boolean;
|