@zsviczian/excalidraw 0.18.0-13 → 0.18.0-15
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 +153 -153
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +38 -2
- package/dist/styles.production.css +2 -2
- package/package.json +1 -1
- package/types/common/src/constants.d.ts +1 -0
- package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/types/common/src/font-metadata.d.ts +4 -2
- package/types/common/src/index.d.ts +1 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +16 -4
- package/types/element/src/Scene.d.ts +4 -4
- package/types/element/src/ShapeCache.d.ts +1 -1
- package/types/element/src/align.d.ts +1 -1
- package/types/element/src/binding.d.ts +1 -1
- package/types/element/src/bounds.d.ts +1 -1
- package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/types/element/src/dragElements.d.ts +1 -1
- package/types/element/src/flowchart.d.ts +1 -1
- package/types/element/src/frame.d.ts +3 -2
- package/types/element/src/index.d.ts +45 -2
- package/types/element/src/linearElementEditor.d.ts +4 -8
- package/types/element/src/newElement.d.ts +1 -1
- package/types/element/src/resizeElements.d.ts +1 -1
- package/types/element/src/selection.d.ts +1 -6
- package/types/element/src/store.d.ts +227 -0
- package/types/element/src/textElement.d.ts +1 -1
- package/types/element/src/transformHandles.d.ts +4 -4
- package/types/element/src/typeChecks.d.ts +2 -1
- package/types/element/src/types.d.ts +6 -1
- package/types/element/src/zindex.d.ts +3 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
- package/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/types/excalidraw/actions/actionBoundText.d.ts +16 -28
- package/types/excalidraw/actions/actionCanvas.d.ts +238 -328
- package/types/excalidraw/actions/actionClipboard.d.ts +50 -86
- package/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
- package/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/excalidraw/actions/actionElementLink.d.ts +8 -14
- package/types/excalidraw/actions/actionElementLock.d.ts +18 -30
- package/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
- package/types/excalidraw/actions/actionExport.d.ts +173 -227
- package/types/excalidraw/actions/actionFinalize.d.ts +14 -26
- package/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/types/excalidraw/actions/actionFrame.d.ts +81 -105
- package/types/excalidraw/actions/actionGroup.d.ts +22 -34
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
- package/types/excalidraw/actions/actionLink.d.ts +9 -15
- package/types/excalidraw/actions/actionMenu.d.ts +26 -44
- package/types/excalidraw/actions/actionNavigate.d.ts +16 -28
- package/types/excalidraw/actions/actionProperties.d.ts +106 -196
- package/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
- package/types/excalidraw/actions/actionStyles.d.ts +12 -18
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -225
- package/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
- package/types/excalidraw/actions/actionZindex.d.ts +10 -10
- package/types/excalidraw/actions/types.d.ts +1 -1
- package/types/excalidraw/appState.d.ts +23 -23
- package/types/excalidraw/clipboard.d.ts +4 -4
- package/types/excalidraw/components/App.d.ts +8 -8
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
- package/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/types/excalidraw/components/Range.d.ts +3 -3
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/types/excalidraw/components/icons.d.ts +1 -0
- package/types/excalidraw/components/shapes.d.ts +1 -1
- package/types/excalidraw/data/blob.d.ts +1 -1
- package/types/excalidraw/data/library.d.ts +1 -1
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/history.d.ts +14 -22
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/index.d.ts +9 -9
- package/types/excalidraw/renderer/helpers.d.ts +6 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +13 -6
- package/types/excalidraw/visualdebug.d.ts +1 -1
- package/types/math/src/curve.d.ts +2 -0
- package/types/math/src/vector.d.ts +4 -0
- package/types/utils/src/bbox.d.ts +1 -1
- package/types/utils/src/index.d.ts +1 -1
- package/types/utils/src/withinBounds.d.ts +1 -1
- package/types/excalidraw/store.d.ts +0 -129
|
@@ -14,10 +14,10 @@ export declare const actionAlignTop: {
|
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
17
|
-
keyTest: (event:
|
|
17
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
18
18
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
} & {
|
|
20
|
-
keyTest?: ((event:
|
|
20
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
21
21
|
};
|
|
22
22
|
export declare const actionAlignBottom: {
|
|
23
23
|
name: "alignBottom";
|
|
@@ -32,10 +32,10 @@ export declare const actionAlignBottom: {
|
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
34
34
|
};
|
|
35
|
-
keyTest: (event:
|
|
35
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
36
36
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
} & {
|
|
38
|
-
keyTest?: ((event:
|
|
38
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
39
39
|
};
|
|
40
40
|
export declare const actionAlignLeft: {
|
|
41
41
|
name: "alignLeft";
|
|
@@ -50,10 +50,10 @@ export declare const actionAlignLeft: {
|
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
52
52
|
};
|
|
53
|
-
keyTest: (event:
|
|
53
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
54
54
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
} & {
|
|
56
|
-
keyTest?: ((event:
|
|
56
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
57
57
|
};
|
|
58
58
|
export declare const actionAlignRight: {
|
|
59
59
|
name: "alignRight";
|
|
@@ -68,10 +68,10 @@ export declare const actionAlignRight: {
|
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
70
70
|
};
|
|
71
|
-
keyTest: (event:
|
|
71
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
72
72
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
73
|
} & {
|
|
74
|
-
keyTest?: ((event:
|
|
74
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
75
75
|
};
|
|
76
76
|
export declare const actionAlignVerticallyCentered: {
|
|
77
77
|
name: "alignVerticallyCentered";
|
|
@@ -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
|
-
suggestedBindings: import("@excalidraw/element
|
|
50
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
51
51
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
52
|
frameRendering: {
|
|
53
53
|
enabled: boolean;
|
|
@@ -58,7 +58,7 @@ export declare const actionBindText: {
|
|
|
58
58
|
editingFrame: string | null;
|
|
59
59
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
60
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement: import("@excalidraw/element
|
|
61
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
62
62
|
activeTool: {
|
|
63
63
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
64
|
locked: boolean;
|
|
@@ -176,7 +176,7 @@ export declare const actionBindText: {
|
|
|
176
176
|
data: import("../charts").Spreadsheet;
|
|
177
177
|
};
|
|
178
178
|
pendingImageElementId: string | null;
|
|
179
|
-
showHyperlinkPopup: false | "
|
|
179
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
180
180
|
linkOpacity: number;
|
|
181
181
|
trayModeEnabled: boolean;
|
|
182
182
|
colorPalette?: {
|
|
@@ -213,7 +213,7 @@ export declare const actionBindText: {
|
|
|
213
213
|
nameColor: string;
|
|
214
214
|
};
|
|
215
215
|
invertBindingBehaviour: boolean;
|
|
216
|
-
selectedLinearElement: import("@excalidraw/element
|
|
216
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
217
217
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
218
218
|
originSnapOffset: {
|
|
219
219
|
x: number;
|
|
@@ -224,16 +224,10 @@ export declare const actionBindText: {
|
|
|
224
224
|
followedBy: Set<import("../types").SocketId>;
|
|
225
225
|
isCropping: boolean;
|
|
226
226
|
croppingElementId: string | null;
|
|
227
|
-
searchMatches:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
offsetX: number;
|
|
232
|
-
offsetY: number;
|
|
233
|
-
width: number;
|
|
234
|
-
height: number;
|
|
235
|
-
}[];
|
|
236
|
-
}[];
|
|
227
|
+
searchMatches: Readonly<{
|
|
228
|
+
focusedId: string | null;
|
|
229
|
+
matches: readonly import("../types").SearchMatch[];
|
|
230
|
+
}> | null;
|
|
237
231
|
};
|
|
238
232
|
captureUpdate: "IMMEDIATELY";
|
|
239
233
|
};
|
|
@@ -271,7 +265,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
271
265
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
272
266
|
isBindingEnabled: boolean;
|
|
273
267
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
274
|
-
suggestedBindings: import("@excalidraw/element
|
|
268
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
275
269
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
276
270
|
frameRendering: {
|
|
277
271
|
enabled: boolean;
|
|
@@ -282,7 +276,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
282
276
|
editingFrame: string | null;
|
|
283
277
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
284
278
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
285
|
-
editingLinearElement: import("@excalidraw/element
|
|
279
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
286
280
|
activeTool: {
|
|
287
281
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
288
282
|
locked: boolean;
|
|
@@ -400,7 +394,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
400
394
|
data: import("../charts").Spreadsheet;
|
|
401
395
|
};
|
|
402
396
|
pendingImageElementId: string | null;
|
|
403
|
-
showHyperlinkPopup: false | "
|
|
397
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
404
398
|
linkOpacity: number;
|
|
405
399
|
trayModeEnabled: boolean;
|
|
406
400
|
colorPalette?: {
|
|
@@ -437,7 +431,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
437
431
|
nameColor: string;
|
|
438
432
|
};
|
|
439
433
|
invertBindingBehaviour: boolean;
|
|
440
|
-
selectedLinearElement: import("@excalidraw/element
|
|
434
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
441
435
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
442
436
|
originSnapOffset: {
|
|
443
437
|
x: number;
|
|
@@ -448,16 +442,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
448
442
|
followedBy: Set<import("../types").SocketId>;
|
|
449
443
|
isCropping: boolean;
|
|
450
444
|
croppingElementId: string | null;
|
|
451
|
-
searchMatches:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
offsetX: number;
|
|
456
|
-
offsetY: number;
|
|
457
|
-
width: number;
|
|
458
|
-
height: number;
|
|
459
|
-
}[];
|
|
460
|
-
}[];
|
|
445
|
+
searchMatches: Readonly<{
|
|
446
|
+
focusedId: string | null;
|
|
447
|
+
matches: readonly import("../types").SearchMatch[];
|
|
448
|
+
}> | null;
|
|
461
449
|
};
|
|
462
450
|
captureUpdate: "IMMEDIATELY";
|
|
463
451
|
};
|