@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
@@ -11,13 +11,13 @@ export declare const actionSelectAll: {
|
|
|
11
11
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: LinearElementEditor | null;
|
|
14
|
-
editingGroupId: string | null;
|
|
15
14
|
selectedElementIds: Readonly<{
|
|
16
15
|
[id: string]: true;
|
|
17
16
|
}>;
|
|
18
17
|
selectedGroupIds: {
|
|
19
18
|
[groupId: string]: boolean;
|
|
20
19
|
};
|
|
20
|
+
editingGroupId: string | null;
|
|
21
21
|
contextMenu: {
|
|
22
22
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
23
23
|
top: number;
|
|
@@ -36,7 +36,7 @@ export declare const actionSelectAll: {
|
|
|
36
36
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
37
37
|
isBindingEnabled: boolean;
|
|
38
38
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
39
|
-
suggestedBindings: import("@excalidraw/element
|
|
39
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
40
40
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
41
41
|
frameRendering: {
|
|
42
42
|
enabled: boolean;
|
|
@@ -161,7 +161,7 @@ export declare const actionSelectAll: {
|
|
|
161
161
|
data: import("../charts").Spreadsheet;
|
|
162
162
|
};
|
|
163
163
|
pendingImageElementId: string | null;
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
165
|
linkOpacity: number;
|
|
166
166
|
trayModeEnabled: boolean;
|
|
167
167
|
colorPalette?: {
|
|
@@ -208,20 +208,14 @@ export declare const actionSelectAll: {
|
|
|
208
208
|
followedBy: Set<import("../types").SocketId>;
|
|
209
209
|
isCropping: boolean;
|
|
210
210
|
croppingElementId: string | null;
|
|
211
|
-
searchMatches:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
offsetX: number;
|
|
216
|
-
offsetY: number;
|
|
217
|
-
width: number;
|
|
218
|
-
height: number;
|
|
219
|
-
}[];
|
|
220
|
-
}[];
|
|
211
|
+
searchMatches: Readonly<{
|
|
212
|
+
focusedId: string | null;
|
|
213
|
+
matches: readonly import("../types").SearchMatch[];
|
|
214
|
+
}> | null;
|
|
221
215
|
};
|
|
222
216
|
captureUpdate: "IMMEDIATELY";
|
|
223
217
|
};
|
|
224
|
-
keyTest: (event:
|
|
218
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
225
219
|
} & {
|
|
226
|
-
keyTest?: ((event:
|
|
220
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
227
221
|
};
|
|
@@ -29,7 +29,7 @@ export declare const actionCopyStyles: {
|
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
31
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
suggestedBindings: import("@excalidraw/element
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
@@ -40,7 +40,7 @@ export declare const actionCopyStyles: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element
|
|
43
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
@@ -156,7 +156,7 @@ export declare const actionCopyStyles: {
|
|
|
156
156
|
data: import("../charts").Spreadsheet;
|
|
157
157
|
};
|
|
158
158
|
pendingImageElementId: string | null;
|
|
159
|
-
showHyperlinkPopup: false | "
|
|
159
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
160
160
|
linkOpacity: number;
|
|
161
161
|
trayModeEnabled: boolean;
|
|
162
162
|
colorPalette?: {
|
|
@@ -193,7 +193,7 @@ export declare const actionCopyStyles: {
|
|
|
193
193
|
nameColor: string;
|
|
194
194
|
};
|
|
195
195
|
invertBindingBehaviour: boolean;
|
|
196
|
-
selectedLinearElement: import("@excalidraw/element
|
|
196
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
197
197
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
198
198
|
originSnapOffset: {
|
|
199
199
|
x: number;
|
|
@@ -204,22 +204,16 @@ export declare const actionCopyStyles: {
|
|
|
204
204
|
followedBy: Set<import("../types").SocketId>;
|
|
205
205
|
isCropping: boolean;
|
|
206
206
|
croppingElementId: string | null;
|
|
207
|
-
searchMatches:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
offsetX: number;
|
|
212
|
-
offsetY: number;
|
|
213
|
-
width: number;
|
|
214
|
-
height: number;
|
|
215
|
-
}[];
|
|
216
|
-
}[];
|
|
207
|
+
searchMatches: Readonly<{
|
|
208
|
+
focusedId: string | null;
|
|
209
|
+
matches: readonly import("../types").SearchMatch[];
|
|
210
|
+
}> | null;
|
|
217
211
|
};
|
|
218
212
|
captureUpdate: "EVENTUALLY";
|
|
219
213
|
};
|
|
220
|
-
keyTest: (event:
|
|
214
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
221
215
|
} & {
|
|
222
|
-
keyTest?: ((event:
|
|
216
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
223
217
|
};
|
|
224
218
|
export declare const actionPasteStyles: {
|
|
225
219
|
name: "pasteStyles";
|
|
@@ -235,7 +229,7 @@ export declare const actionPasteStyles: {
|
|
|
235
229
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
236
230
|
captureUpdate: "IMMEDIATELY";
|
|
237
231
|
};
|
|
238
|
-
keyTest: (event:
|
|
232
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
239
233
|
} & {
|
|
240
|
-
keyTest?: ((event:
|
|
234
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
241
235
|
};
|
|
@@ -31,7 +31,7 @@ export declare const actionToggleGridMode: {
|
|
|
31
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
suggestedBindings: import("@excalidraw/element
|
|
34
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
35
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
36
|
frameRendering: {
|
|
37
37
|
enabled: boolean;
|
|
@@ -42,7 +42,7 @@ export declare const actionToggleGridMode: {
|
|
|
42
42
|
editingFrame: string | null;
|
|
43
43
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
44
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
-
editingLinearElement: import("@excalidraw/element
|
|
45
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
46
46
|
activeTool: {
|
|
47
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
48
|
locked: boolean;
|
|
@@ -162,7 +162,7 @@ export declare const actionToggleGridMode: {
|
|
|
162
162
|
data: import("../charts").Spreadsheet;
|
|
163
163
|
};
|
|
164
164
|
pendingImageElementId: string | null;
|
|
165
|
-
showHyperlinkPopup: false | "
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
166
|
linkOpacity: number;
|
|
167
167
|
trayModeEnabled: boolean;
|
|
168
168
|
colorPalette?: {
|
|
@@ -199,7 +199,7 @@ export declare const actionToggleGridMode: {
|
|
|
199
199
|
nameColor: string;
|
|
200
200
|
};
|
|
201
201
|
invertBindingBehaviour: boolean;
|
|
202
|
-
selectedLinearElement: import("@excalidraw/element
|
|
202
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
203
203
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
204
204
|
originSnapOffset: {
|
|
205
205
|
x: number;
|
|
@@ -209,22 +209,16 @@ export declare const actionToggleGridMode: {
|
|
|
209
209
|
followedBy: Set<import("../types").SocketId>;
|
|
210
210
|
isCropping: boolean;
|
|
211
211
|
croppingElementId: string | null;
|
|
212
|
-
searchMatches:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
offsetX: number;
|
|
217
|
-
offsetY: number;
|
|
218
|
-
width: number;
|
|
219
|
-
height: number;
|
|
220
|
-
}[];
|
|
221
|
-
}[];
|
|
212
|
+
searchMatches: Readonly<{
|
|
213
|
+
focusedId: string | null;
|
|
214
|
+
matches: readonly import("../types").SearchMatch[];
|
|
215
|
+
}> | null;
|
|
222
216
|
};
|
|
223
217
|
captureUpdate: "EVENTUALLY";
|
|
224
218
|
};
|
|
225
219
|
checked: (appState: AppState) => boolean;
|
|
226
220
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
227
|
-
keyTest: (event:
|
|
221
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
228
222
|
} & {
|
|
229
|
-
keyTest?: ((event:
|
|
223
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
230
224
|
};
|
|
@@ -29,7 +29,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
31
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
suggestedBindings: import("@excalidraw/element
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
@@ -40,7 +40,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element
|
|
43
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
@@ -160,7 +160,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
160
160
|
data: import("../charts").Spreadsheet;
|
|
161
161
|
};
|
|
162
162
|
pendingImageElementId: string | null;
|
|
163
|
-
showHyperlinkPopup: false | "
|
|
163
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
164
164
|
linkOpacity: number;
|
|
165
165
|
trayModeEnabled: boolean;
|
|
166
166
|
colorPalette?: {
|
|
@@ -197,7 +197,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
197
197
|
nameColor: string;
|
|
198
198
|
};
|
|
199
199
|
invertBindingBehaviour: boolean;
|
|
200
|
-
selectedLinearElement: import("@excalidraw/element
|
|
200
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
201
201
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
202
202
|
originSnapOffset: {
|
|
203
203
|
x: number;
|
|
@@ -207,22 +207,16 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
207
207
|
followedBy: Set<import("../types").SocketId>;
|
|
208
208
|
isCropping: boolean;
|
|
209
209
|
croppingElementId: string | null;
|
|
210
|
-
searchMatches:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
offsetX: number;
|
|
215
|
-
offsetY: number;
|
|
216
|
-
width: number;
|
|
217
|
-
height: number;
|
|
218
|
-
}[];
|
|
219
|
-
}[];
|
|
210
|
+
searchMatches: Readonly<{
|
|
211
|
+
focusedId: string | null;
|
|
212
|
+
matches: readonly import("../types").SearchMatch[];
|
|
213
|
+
}> | null;
|
|
220
214
|
};
|
|
221
215
|
captureUpdate: "EVENTUALLY";
|
|
222
216
|
};
|
|
223
217
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
224
218
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
225
|
-
keyTest: (event:
|
|
219
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
226
220
|
} & {
|
|
227
|
-
keyTest?: ((event:
|
|
221
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
228
222
|
};
|
|
@@ -11,215 +11,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
11
11
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
12
12
|
};
|
|
13
13
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
14
|
-
appState: {
|
|
15
|
-
openSidebar: null;
|
|
16
|
-
contextMenu: {
|
|
17
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
18
|
-
top: number;
|
|
19
|
-
left: number;
|
|
20
|
-
} | null;
|
|
21
|
-
showWelcomeScreen: boolean;
|
|
22
|
-
isLoading: boolean;
|
|
23
|
-
errorMessage: import("react").ReactNode;
|
|
24
|
-
activeEmbeddable: {
|
|
25
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
26
|
-
state: "active" | "hover";
|
|
27
|
-
} | null;
|
|
28
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
29
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
31
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
|
-
isBindingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
35
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
|
-
frameRendering: {
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
name: boolean;
|
|
39
|
-
outline: boolean;
|
|
40
|
-
clip: boolean;
|
|
41
|
-
};
|
|
42
|
-
editingFrame: string | null;
|
|
43
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
46
|
-
activeTool: {
|
|
47
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
|
-
locked: boolean;
|
|
49
|
-
fromSelection: boolean;
|
|
50
|
-
} & import("../types").ActiveTool;
|
|
51
|
-
penMode: boolean;
|
|
52
|
-
penDetected: boolean;
|
|
53
|
-
exportBackground: boolean;
|
|
54
|
-
exportEmbedScene: boolean;
|
|
55
|
-
exportWithDarkMode: boolean;
|
|
56
|
-
exportScale: number;
|
|
57
|
-
currentItemStrokeColor: string;
|
|
58
|
-
currentItemBackgroundColor: string;
|
|
59
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
60
|
-
currentItemStrokeWidth: number;
|
|
61
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
62
|
-
currentItemRoughness: number;
|
|
63
|
-
currentItemOpacity: number;
|
|
64
|
-
currentItemFontFamily: number;
|
|
65
|
-
currentItemFontSize: number;
|
|
66
|
-
currentItemTextAlign: string;
|
|
67
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
|
-
currentHoveredFontFamily: number | null;
|
|
70
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
71
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
72
|
-
viewBackgroundColor: string;
|
|
73
|
-
scrollX: number;
|
|
74
|
-
scrollY: number;
|
|
75
|
-
cursorButton: "up" | "down";
|
|
76
|
-
scrolledOutside: boolean;
|
|
77
|
-
name: string | null;
|
|
78
|
-
isResizing: boolean;
|
|
79
|
-
isRotating: boolean;
|
|
80
|
-
zoom: Readonly<{
|
|
81
|
-
value: import("../types").NormalizedZoomValue;
|
|
82
|
-
}>;
|
|
83
|
-
openMenu: "canvas" | "shape" | null;
|
|
84
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
|
-
openDialog: {
|
|
86
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
87
|
-
} | {
|
|
88
|
-
name: "ttd";
|
|
89
|
-
tab: "mermaid" | "text-to-diagram";
|
|
90
|
-
} | {
|
|
91
|
-
name: "commandPalette";
|
|
92
|
-
} | {
|
|
93
|
-
name: "elementLinkSelector";
|
|
94
|
-
sourceElementId: string;
|
|
95
|
-
} | null;
|
|
96
|
-
defaultSidebarDockedPreference: boolean;
|
|
97
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
98
|
-
selectedElementIds: Readonly<{
|
|
99
|
-
[id: string]: true;
|
|
100
|
-
}>;
|
|
101
|
-
hoveredElementIds: Readonly<{
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
}>;
|
|
104
|
-
previousSelectedElementIds: {
|
|
105
|
-
[id: string]: true;
|
|
106
|
-
};
|
|
107
|
-
selectedElementsAreBeingDragged: boolean;
|
|
108
|
-
shouldCacheIgnoreZoom: boolean;
|
|
109
|
-
toast: {
|
|
110
|
-
message: string;
|
|
111
|
-
closable?: boolean | undefined;
|
|
112
|
-
duration?: number | undefined;
|
|
113
|
-
} | null;
|
|
114
|
-
zenModeEnabled: boolean;
|
|
115
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
116
|
-
gridSize: number;
|
|
117
|
-
gridStep: number;
|
|
118
|
-
gridModeEnabled: boolean;
|
|
119
|
-
viewModeEnabled: boolean;
|
|
120
|
-
selectedGroupIds: {
|
|
121
|
-
[groupId: string]: boolean;
|
|
122
|
-
};
|
|
123
|
-
editingGroupId: string | null;
|
|
124
|
-
width: number;
|
|
125
|
-
height: number;
|
|
126
|
-
offsetTop: number;
|
|
127
|
-
offsetLeft: number;
|
|
128
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
129
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
130
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
131
|
-
button?: "up" | "down" | undefined;
|
|
132
|
-
selectedElementIds?: Readonly<{
|
|
133
|
-
[id: string]: true;
|
|
134
|
-
}> | undefined;
|
|
135
|
-
username?: string | null | undefined;
|
|
136
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
137
|
-
color?: {
|
|
138
|
-
background: string;
|
|
139
|
-
stroke: string;
|
|
140
|
-
} | undefined;
|
|
141
|
-
avatarUrl?: string | undefined;
|
|
142
|
-
id?: string | undefined;
|
|
143
|
-
socketId?: import("../types").SocketId | undefined;
|
|
144
|
-
isCurrentUser?: boolean | undefined;
|
|
145
|
-
isInCall?: boolean | undefined;
|
|
146
|
-
isSpeaking?: boolean | undefined;
|
|
147
|
-
isMuted?: boolean | undefined;
|
|
148
|
-
}>>;
|
|
149
|
-
stats: {
|
|
150
|
-
open: boolean;
|
|
151
|
-
panels: number;
|
|
152
|
-
};
|
|
153
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
154
|
-
pasteDialog: {
|
|
155
|
-
shown: false;
|
|
156
|
-
data: null;
|
|
157
|
-
} | {
|
|
158
|
-
shown: true;
|
|
159
|
-
data: import("../charts").Spreadsheet;
|
|
160
|
-
};
|
|
161
|
-
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
163
|
-
linkOpacity: number;
|
|
164
|
-
trayModeEnabled: boolean;
|
|
165
|
-
colorPalette?: {
|
|
166
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
167
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
|
-
topPicks: {
|
|
170
|
-
canvasBackground: [string, string, string, string, string];
|
|
171
|
-
elementStroke: [string, string, string, string, string];
|
|
172
|
-
elementBackground: [string, string, string, string, string];
|
|
173
|
-
};
|
|
174
|
-
} | undefined;
|
|
175
|
-
allowWheelZoom?: boolean | undefined;
|
|
176
|
-
allowPinchZoom?: boolean | undefined;
|
|
177
|
-
pinnedScripts?: string[] | undefined;
|
|
178
|
-
customPens?: any[] | undefined;
|
|
179
|
-
currentStrokeOptions?: any;
|
|
180
|
-
resetCustomPen?: any;
|
|
181
|
-
gridColor: {
|
|
182
|
-
Bold: string;
|
|
183
|
-
Regular: string;
|
|
184
|
-
};
|
|
185
|
-
gridDirection: {
|
|
186
|
-
horizontal: boolean;
|
|
187
|
-
vertical: boolean;
|
|
188
|
-
};
|
|
189
|
-
highlightSearchResult: boolean;
|
|
190
|
-
dynamicStyle: {
|
|
191
|
-
[x: string]: string;
|
|
192
|
-
};
|
|
193
|
-
frameColor: {
|
|
194
|
-
stroke: string;
|
|
195
|
-
fill: string;
|
|
196
|
-
nameColor: string;
|
|
197
|
-
};
|
|
198
|
-
invertBindingBehaviour: boolean;
|
|
199
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
200
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
201
|
-
originSnapOffset: {
|
|
202
|
-
x: number;
|
|
203
|
-
y: number;
|
|
204
|
-
} | null;
|
|
205
|
-
objectsSnapModeEnabled: boolean;
|
|
206
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
207
|
-
followedBy: Set<import("../types").SocketId>;
|
|
208
|
-
isCropping: boolean;
|
|
209
|
-
croppingElementId: string | null;
|
|
210
|
-
searchMatches: readonly {
|
|
211
|
-
id: string;
|
|
212
|
-
focus: boolean;
|
|
213
|
-
matchedLines: {
|
|
214
|
-
offsetX: number;
|
|
215
|
-
offsetY: number;
|
|
216
|
-
width: number;
|
|
217
|
-
height: number;
|
|
218
|
-
}[];
|
|
219
|
-
}[];
|
|
220
|
-
};
|
|
221
|
-
captureUpdate: "EVENTUALLY";
|
|
222
|
-
} | {
|
|
223
14
|
appState: {
|
|
224
15
|
openSidebar: {
|
|
225
16
|
name: "default";
|
|
@@ -244,7 +35,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
244
35
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
245
36
|
isBindingEnabled: boolean;
|
|
246
37
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
247
|
-
suggestedBindings: import("@excalidraw/element
|
|
38
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
248
39
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
249
40
|
frameRendering: {
|
|
250
41
|
enabled: boolean;
|
|
@@ -255,7 +46,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
255
46
|
editingFrame: string | null;
|
|
256
47
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
257
48
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
258
|
-
editingLinearElement: import("@excalidraw/element
|
|
49
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
259
50
|
activeTool: {
|
|
260
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
261
52
|
locked: boolean;
|
|
@@ -361,7 +152,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
361
152
|
data: import("../charts").Spreadsheet;
|
|
362
153
|
};
|
|
363
154
|
pendingImageElementId: string | null;
|
|
364
|
-
showHyperlinkPopup: false | "
|
|
155
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
365
156
|
linkOpacity: number;
|
|
366
157
|
trayModeEnabled: boolean;
|
|
367
158
|
colorPalette?: {
|
|
@@ -398,7 +189,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
398
189
|
nameColor: string;
|
|
399
190
|
};
|
|
400
191
|
invertBindingBehaviour: boolean;
|
|
401
|
-
selectedLinearElement: import("@excalidraw/element
|
|
192
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
402
193
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
403
194
|
originSnapOffset: {
|
|
404
195
|
x: number;
|
|
@@ -409,22 +200,16 @@ export declare const actionToggleSearchMenu: {
|
|
|
409
200
|
followedBy: Set<import("../types").SocketId>;
|
|
410
201
|
isCropping: boolean;
|
|
411
202
|
croppingElementId: string | null;
|
|
412
|
-
searchMatches:
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
offsetX: number;
|
|
417
|
-
offsetY: number;
|
|
418
|
-
width: number;
|
|
419
|
-
height: number;
|
|
420
|
-
}[];
|
|
421
|
-
}[];
|
|
203
|
+
searchMatches: Readonly<{
|
|
204
|
+
focusedId: string | null;
|
|
205
|
+
matches: readonly import("../types").SearchMatch[];
|
|
206
|
+
}> | null;
|
|
422
207
|
};
|
|
423
208
|
captureUpdate: "EVENTUALLY";
|
|
424
209
|
};
|
|
425
210
|
checked: (appState: AppState) => boolean;
|
|
426
211
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
427
|
-
keyTest: (event:
|
|
212
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
428
213
|
} & {
|
|
429
|
-
keyTest?: ((event:
|
|
214
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
430
215
|
};
|
|
@@ -31,7 +31,7 @@ export declare const actionToggleStats: {
|
|
|
31
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
suggestedBindings: import("@excalidraw/element
|
|
34
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
35
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
36
|
frameRendering: {
|
|
37
37
|
enabled: boolean;
|
|
@@ -42,7 +42,7 @@ export declare const actionToggleStats: {
|
|
|
42
42
|
editingFrame: string | null;
|
|
43
43
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
44
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
-
editingLinearElement: import("@excalidraw/element
|
|
45
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
46
46
|
activeTool: {
|
|
47
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
48
|
locked: boolean;
|
|
@@ -159,7 +159,7 @@ export declare const actionToggleStats: {
|
|
|
159
159
|
data: import("../charts").Spreadsheet;
|
|
160
160
|
};
|
|
161
161
|
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
163
163
|
linkOpacity: number;
|
|
164
164
|
trayModeEnabled: boolean;
|
|
165
165
|
colorPalette?: {
|
|
@@ -196,7 +196,7 @@ export declare const actionToggleStats: {
|
|
|
196
196
|
nameColor: string;
|
|
197
197
|
};
|
|
198
198
|
invertBindingBehaviour: boolean;
|
|
199
|
-
selectedLinearElement: import("@excalidraw/element
|
|
199
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
200
200
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
201
201
|
originSnapOffset: {
|
|
202
202
|
x: number;
|
|
@@ -207,21 +207,15 @@ export declare const actionToggleStats: {
|
|
|
207
207
|
followedBy: Set<import("../types").SocketId>;
|
|
208
208
|
isCropping: boolean;
|
|
209
209
|
croppingElementId: string | null;
|
|
210
|
-
searchMatches:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
offsetX: number;
|
|
215
|
-
offsetY: number;
|
|
216
|
-
width: number;
|
|
217
|
-
height: number;
|
|
218
|
-
}[];
|
|
219
|
-
}[];
|
|
210
|
+
searchMatches: Readonly<{
|
|
211
|
+
focusedId: string | null;
|
|
212
|
+
matches: readonly import("../types").SearchMatch[];
|
|
213
|
+
}> | null;
|
|
220
214
|
};
|
|
221
215
|
captureUpdate: "EVENTUALLY";
|
|
222
216
|
};
|
|
223
217
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
224
|
-
keyTest: (event:
|
|
218
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
225
219
|
} & {
|
|
226
|
-
keyTest?: ((event:
|
|
220
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
227
221
|
};
|