@excalidraw/excalidraw 0.16.0-f8b3692 → 0.16.1-26ff399
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/CHANGELOG.md +22 -0
- package/dist/excalidraw.development.js +149 -39
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +24 -24
- package/types/actions/actionAlign.d.ts +8 -8
- package/types/actions/actionBoundText.d.ts +16 -16
- package/types/actions/actionCanvas.d.ts +112 -112
- package/types/actions/actionClipboard.d.ts +44 -44
- package/types/actions/actionDeleteSelected.d.ts +26 -26
- package/types/actions/actionDistribute.d.ts +4 -4
- package/types/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/actions/actionElementLock.d.ts +18 -18
- package/types/actions/actionExport.d.ts +87 -87
- package/types/actions/actionFinalize.d.ts +18 -18
- package/types/actions/actionFlip.d.ts +4 -4
- package/types/actions/actionFrame.d.ts +26 -26
- package/types/actions/actionGroup.d.ts +20 -20
- package/types/actions/actionLinearEditor.d.ts +8 -8
- package/types/actions/actionMenu.d.ts +26 -26
- package/types/actions/actionProperties.d.ts +108 -108
- package/types/actions/actionSelectAll.d.ts +10 -10
- package/types/actions/actionStyles.d.ts +12 -12
- package/types/actions/actionToggleGridMode.d.ts +10 -10
- package/types/actions/actionToggleObjectsSnapMode.d.ts +137 -0
- package/types/actions/actionToggleStats.d.ts +10 -10
- package/types/actions/actionToggleViewMode.d.ts +10 -10
- package/types/actions/actionToggleZenMode.d.ts +10 -10
- package/types/actions/actionZindex.d.ts +8 -8
- package/types/actions/index.d.ts +1 -0
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +6 -11
- package/types/components/Actions.d.ts +3 -4
- package/types/components/App.d.ts +14 -5
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/Sidebar/Sidebar.d.ts +1 -1
- package/types/components/Stack.d.ts +2 -2
- package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/types/components/dropdownMenu/common.d.ts +1 -1
- package/types/components/icons.d.ts +2 -0
- package/types/components/main-menu/MainMenu.d.ts +6 -3
- package/types/cursor.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +10 -10
- package/types/element/bounds.d.ts +4 -5
- package/types/element/dragElements.d.ts +11 -2
- package/types/element/embeddable.d.ts +8 -8
- package/types/element/linearElementEditor.d.ts +8 -8
- package/types/element/resizeElements.d.ts +2 -2
- package/types/keys.d.ts +1 -0
- package/types/math.d.ts +2 -0
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/scene/selection.d.ts +1 -0
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +31 -16
- package/types/utils.d.ts +3 -8
package/package.json
CHANGED
|
@@ -40,15 +40,9 @@ export declare const actionAddToLibrary: {
|
|
|
40
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
43
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
45
|
+
} & import("../types").ActiveTool;
|
|
52
46
|
penMode: boolean;
|
|
53
47
|
penDetected: boolean;
|
|
54
48
|
exportBackground: boolean;
|
|
@@ -122,6 +116,12 @@ export declare const actionAddToLibrary: {
|
|
|
122
116
|
pendingImageElementId: string | null;
|
|
123
117
|
showHyperlinkPopup: false | "editor" | "info";
|
|
124
118
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
119
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
120
|
+
originSnapOffset: {
|
|
121
|
+
x: number;
|
|
122
|
+
y: number;
|
|
123
|
+
} | null;
|
|
124
|
+
objectsSnapModeEnabled: boolean;
|
|
125
125
|
};
|
|
126
126
|
} | {
|
|
127
127
|
commitToHistory: false;
|
|
@@ -157,15 +157,9 @@ export declare const actionAddToLibrary: {
|
|
|
157
157
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
158
158
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
159
159
|
activeTool: {
|
|
160
|
-
lastActiveTool: import("../types").
|
|
160
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
161
161
|
locked: boolean;
|
|
162
|
-
} & (
|
|
163
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
164
|
-
customType: null;
|
|
165
|
-
} | {
|
|
166
|
-
type: "custom";
|
|
167
|
-
customType: string;
|
|
168
|
-
});
|
|
162
|
+
} & import("../types").ActiveTool;
|
|
169
163
|
penMode: boolean;
|
|
170
164
|
penDetected: boolean;
|
|
171
165
|
exportBackground: boolean;
|
|
@@ -244,6 +238,12 @@ export declare const actionAddToLibrary: {
|
|
|
244
238
|
pendingImageElementId: string | null;
|
|
245
239
|
showHyperlinkPopup: false | "editor" | "info";
|
|
246
240
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
241
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
242
|
+
originSnapOffset: {
|
|
243
|
+
x: number;
|
|
244
|
+
y: number;
|
|
245
|
+
} | null;
|
|
246
|
+
objectsSnapModeEnabled: boolean;
|
|
247
247
|
};
|
|
248
248
|
}> | {
|
|
249
249
|
commitToHistory: false;
|
|
@@ -279,15 +279,9 @@ export declare const actionAddToLibrary: {
|
|
|
279
279
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
280
280
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
281
281
|
activeTool: {
|
|
282
|
-
lastActiveTool: import("../types").
|
|
282
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
283
283
|
locked: boolean;
|
|
284
|
-
} & (
|
|
285
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
286
|
-
customType: null;
|
|
287
|
-
} | {
|
|
288
|
-
type: "custom";
|
|
289
|
-
customType: string;
|
|
290
|
-
});
|
|
284
|
+
} & import("../types").ActiveTool;
|
|
291
285
|
penMode: boolean;
|
|
292
286
|
penDetected: boolean;
|
|
293
287
|
exportBackground: boolean;
|
|
@@ -366,6 +360,12 @@ export declare const actionAddToLibrary: {
|
|
|
366
360
|
pendingImageElementId: string | null;
|
|
367
361
|
showHyperlinkPopup: false | "editor" | "info";
|
|
368
362
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
363
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
364
|
+
originSnapOffset: {
|
|
365
|
+
x: number;
|
|
366
|
+
y: number;
|
|
367
|
+
} | null;
|
|
368
|
+
objectsSnapModeEnabled: boolean;
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
371
|
contextItemLabel: string;
|
|
@@ -11,10 +11,10 @@ export declare const actionAlignTop: {
|
|
|
11
11
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const actionAlignBottom: {
|
|
20
20
|
name: "alignBottom";
|
|
@@ -27,10 +27,10 @@ export declare const actionAlignBottom: {
|
|
|
27
27
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
28
28
|
commitToHistory: true;
|
|
29
29
|
};
|
|
30
|
-
keyTest: (event:
|
|
30
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
31
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event:
|
|
33
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
34
34
|
};
|
|
35
35
|
export declare const actionAlignLeft: {
|
|
36
36
|
name: "alignLeft";
|
|
@@ -43,10 +43,10 @@ export declare const actionAlignLeft: {
|
|
|
43
43
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
44
44
|
commitToHistory: true;
|
|
45
45
|
};
|
|
46
|
-
keyTest: (event:
|
|
46
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
47
47
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
48
48
|
} & {
|
|
49
|
-
keyTest?: ((event:
|
|
49
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
50
50
|
};
|
|
51
51
|
export declare const actionAlignRight: {
|
|
52
52
|
name: "alignRight";
|
|
@@ -59,10 +59,10 @@ export declare const actionAlignRight: {
|
|
|
59
59
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
60
60
|
commitToHistory: true;
|
|
61
61
|
};
|
|
62
|
-
keyTest: (event:
|
|
62
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
63
63
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
64
64
|
} & {
|
|
65
|
-
keyTest?: ((event:
|
|
65
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
66
66
|
};
|
|
67
67
|
export declare const actionAlignVerticallyCentered: {
|
|
68
68
|
name: "alignVerticallyCentered";
|
|
@@ -60,15 +60,9 @@ export declare const actionBindText: {
|
|
|
60
60
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
61
61
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
62
62
|
activeTool: {
|
|
63
|
-
lastActiveTool: import("../types").
|
|
63
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
64
|
locked: boolean;
|
|
65
|
-
} & (
|
|
66
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
67
|
-
customType: null;
|
|
68
|
-
} | {
|
|
69
|
-
type: "custom";
|
|
70
|
-
customType: string;
|
|
71
|
-
});
|
|
65
|
+
} & import("../types").ActiveTool;
|
|
72
66
|
penMode: boolean;
|
|
73
67
|
penDetected: boolean;
|
|
74
68
|
exportBackground: boolean;
|
|
@@ -144,6 +138,12 @@ export declare const actionBindText: {
|
|
|
144
138
|
pendingImageElementId: string | null;
|
|
145
139
|
showHyperlinkPopup: false | "editor" | "info";
|
|
146
140
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
141
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
142
|
+
originSnapOffset: {
|
|
143
|
+
x: number;
|
|
144
|
+
y: number;
|
|
145
|
+
} | null;
|
|
146
|
+
objectsSnapModeEnabled: boolean;
|
|
147
147
|
};
|
|
148
148
|
commitToHistory: true;
|
|
149
149
|
};
|
|
@@ -194,15 +194,9 @@ export declare const actionWrapTextInContainer: {
|
|
|
194
194
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
195
195
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
196
196
|
activeTool: {
|
|
197
|
-
lastActiveTool: import("../types").
|
|
197
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
198
198
|
locked: boolean;
|
|
199
|
-
} & (
|
|
200
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
201
|
-
customType: null;
|
|
202
|
-
} | {
|
|
203
|
-
type: "custom";
|
|
204
|
-
customType: string;
|
|
205
|
-
});
|
|
199
|
+
} & import("../types").ActiveTool;
|
|
206
200
|
penMode: boolean;
|
|
207
201
|
penDetected: boolean;
|
|
208
202
|
exportBackground: boolean;
|
|
@@ -278,6 +272,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
278
272
|
pendingImageElementId: string | null;
|
|
279
273
|
showHyperlinkPopup: false | "editor" | "info";
|
|
280
274
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
275
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
276
|
+
originSnapOffset: {
|
|
277
|
+
x: number;
|
|
278
|
+
y: number;
|
|
279
|
+
} | null;
|
|
280
|
+
objectsSnapModeEnabled: boolean;
|
|
281
281
|
};
|
|
282
282
|
commitToHistory: true;
|
|
283
283
|
};
|
|
@@ -37,22 +37,10 @@ export declare const actionClearCanvas: {
|
|
|
37
37
|
data: import("../charts").Spreadsheet;
|
|
38
38
|
};
|
|
39
39
|
activeTool: {
|
|
40
|
-
lastActiveTool: import("../types").
|
|
40
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
41
41
|
locked: boolean;
|
|
42
|
-
} & (
|
|
43
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
44
|
-
customType: null;
|
|
45
|
-
} | {
|
|
46
|
-
type: "custom";
|
|
47
|
-
customType: string;
|
|
48
|
-
});
|
|
42
|
+
} & import("../types").ActiveTool;
|
|
49
43
|
name: string;
|
|
50
|
-
toast: {
|
|
51
|
-
message: string;
|
|
52
|
-
closable?: boolean | undefined;
|
|
53
|
-
duration?: number | undefined;
|
|
54
|
-
} | null;
|
|
55
|
-
collaborators: Map<string, import("../types").Collaborator>;
|
|
56
44
|
contextMenu: {
|
|
57
45
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
58
46
|
top: number;
|
|
@@ -125,6 +113,11 @@ export declare const actionClearCanvas: {
|
|
|
125
113
|
};
|
|
126
114
|
selectedElementsAreBeingDragged: boolean;
|
|
127
115
|
shouldCacheIgnoreZoom: boolean;
|
|
116
|
+
toast: {
|
|
117
|
+
message: string;
|
|
118
|
+
closable?: boolean | undefined;
|
|
119
|
+
duration?: number | undefined;
|
|
120
|
+
} | null;
|
|
128
121
|
zenModeEnabled: boolean;
|
|
129
122
|
viewModeEnabled: boolean;
|
|
130
123
|
selectedGroupIds: {
|
|
@@ -132,10 +125,17 @@ export declare const actionClearCanvas: {
|
|
|
132
125
|
};
|
|
133
126
|
editingGroupId: string | null;
|
|
134
127
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
128
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
135
129
|
currentChartType: import("../element/types").ChartType;
|
|
136
130
|
pendingImageElementId: string | null;
|
|
137
131
|
showHyperlinkPopup: false | "editor" | "info";
|
|
138
132
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
133
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
134
|
+
originSnapOffset: {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
} | null;
|
|
138
|
+
objectsSnapModeEnabled: boolean;
|
|
139
139
|
};
|
|
140
140
|
commitToHistory: true;
|
|
141
141
|
};
|
|
@@ -186,15 +186,9 @@ export declare const actionZoomIn: {
|
|
|
186
186
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
187
187
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
188
188
|
activeTool: {
|
|
189
|
-
lastActiveTool: import("../types").
|
|
189
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
190
190
|
locked: boolean;
|
|
191
|
-
} & (
|
|
192
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
193
|
-
customType: null;
|
|
194
|
-
} | {
|
|
195
|
-
type: "custom";
|
|
196
|
-
customType: string;
|
|
197
|
-
});
|
|
191
|
+
} & import("../types").ActiveTool;
|
|
198
192
|
penMode: boolean;
|
|
199
193
|
penDetected: boolean;
|
|
200
194
|
exportBackground: boolean;
|
|
@@ -268,13 +262,19 @@ export declare const actionZoomIn: {
|
|
|
268
262
|
pendingImageElementId: string | null;
|
|
269
263
|
showHyperlinkPopup: false | "editor" | "info";
|
|
270
264
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
265
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
266
|
+
originSnapOffset: {
|
|
267
|
+
x: number;
|
|
268
|
+
y: number;
|
|
269
|
+
} | null;
|
|
270
|
+
objectsSnapModeEnabled: boolean;
|
|
271
271
|
};
|
|
272
272
|
commitToHistory: false;
|
|
273
273
|
};
|
|
274
274
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
275
|
-
keyTest: (event:
|
|
275
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
276
276
|
} & {
|
|
277
|
-
keyTest?: ((event:
|
|
277
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
278
278
|
};
|
|
279
279
|
export declare const actionZoomOut: {
|
|
280
280
|
name: "zoomOut";
|
|
@@ -320,15 +320,9 @@ export declare const actionZoomOut: {
|
|
|
320
320
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
321
321
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
322
322
|
activeTool: {
|
|
323
|
-
lastActiveTool: import("../types").
|
|
323
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
324
324
|
locked: boolean;
|
|
325
|
-
} & (
|
|
326
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
327
|
-
customType: null;
|
|
328
|
-
} | {
|
|
329
|
-
type: "custom";
|
|
330
|
-
customType: string;
|
|
331
|
-
});
|
|
325
|
+
} & import("../types").ActiveTool;
|
|
332
326
|
penMode: boolean;
|
|
333
327
|
penDetected: boolean;
|
|
334
328
|
exportBackground: boolean;
|
|
@@ -402,13 +396,19 @@ export declare const actionZoomOut: {
|
|
|
402
396
|
pendingImageElementId: string | null;
|
|
403
397
|
showHyperlinkPopup: false | "editor" | "info";
|
|
404
398
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
399
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
400
|
+
originSnapOffset: {
|
|
401
|
+
x: number;
|
|
402
|
+
y: number;
|
|
403
|
+
} | null;
|
|
404
|
+
objectsSnapModeEnabled: boolean;
|
|
405
405
|
};
|
|
406
406
|
commitToHistory: false;
|
|
407
407
|
};
|
|
408
408
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
409
|
-
keyTest: (event:
|
|
409
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
410
410
|
} & {
|
|
411
|
-
keyTest?: ((event:
|
|
411
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
412
412
|
};
|
|
413
413
|
export declare const actionResetZoom: {
|
|
414
414
|
name: "resetZoom";
|
|
@@ -454,15 +454,9 @@ export declare const actionResetZoom: {
|
|
|
454
454
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
455
455
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
456
456
|
activeTool: {
|
|
457
|
-
lastActiveTool: import("../types").
|
|
457
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
458
458
|
locked: boolean;
|
|
459
|
-
} & (
|
|
460
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
461
|
-
customType: null;
|
|
462
|
-
} | {
|
|
463
|
-
type: "custom";
|
|
464
|
-
customType: string;
|
|
465
|
-
});
|
|
459
|
+
} & import("../types").ActiveTool;
|
|
466
460
|
penMode: boolean;
|
|
467
461
|
penDetected: boolean;
|
|
468
462
|
exportBackground: boolean;
|
|
@@ -536,13 +530,19 @@ export declare const actionResetZoom: {
|
|
|
536
530
|
pendingImageElementId: string | null;
|
|
537
531
|
showHyperlinkPopup: false | "editor" | "info";
|
|
538
532
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
533
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
534
|
+
originSnapOffset: {
|
|
535
|
+
x: number;
|
|
536
|
+
y: number;
|
|
537
|
+
} | null;
|
|
538
|
+
objectsSnapModeEnabled: boolean;
|
|
539
539
|
};
|
|
540
540
|
commitToHistory: false;
|
|
541
541
|
};
|
|
542
542
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
543
|
-
keyTest: (event:
|
|
543
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
544
544
|
} & {
|
|
545
|
-
keyTest?: ((event:
|
|
545
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
546
546
|
};
|
|
547
547
|
export declare const zoomToFit: ({ targetElements, appState, fitToViewport, viewportZoomFactor, }: {
|
|
548
548
|
targetElements: readonly ExcalidrawElement[];
|
|
@@ -589,15 +589,9 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
589
589
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
590
590
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
591
591
|
activeTool: {
|
|
592
|
-
lastActiveTool: import("../types").
|
|
592
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
593
593
|
locked: boolean;
|
|
594
|
-
} & (
|
|
595
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
596
|
-
customType: null;
|
|
597
|
-
} | {
|
|
598
|
-
type: "custom";
|
|
599
|
-
customType: string;
|
|
600
|
-
});
|
|
594
|
+
} & import("../types").ActiveTool;
|
|
601
595
|
penMode: boolean;
|
|
602
596
|
penDetected: boolean;
|
|
603
597
|
exportBackground: boolean;
|
|
@@ -671,6 +665,12 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
671
665
|
pendingImageElementId: string | null;
|
|
672
666
|
showHyperlinkPopup: false | "editor" | "info";
|
|
673
667
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
668
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
669
|
+
originSnapOffset: {
|
|
670
|
+
x: number;
|
|
671
|
+
y: number;
|
|
672
|
+
} | null;
|
|
673
|
+
objectsSnapModeEnabled: boolean;
|
|
674
674
|
};
|
|
675
675
|
commitToHistory: boolean;
|
|
676
676
|
};
|
|
@@ -717,15 +717,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
717
717
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
718
718
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
719
719
|
activeTool: {
|
|
720
|
-
lastActiveTool: import("../types").
|
|
720
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
721
721
|
locked: boolean;
|
|
722
|
-
} & (
|
|
723
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
724
|
-
customType: null;
|
|
725
|
-
} | {
|
|
726
|
-
type: "custom";
|
|
727
|
-
customType: string;
|
|
728
|
-
});
|
|
722
|
+
} & import("../types").ActiveTool;
|
|
729
723
|
penMode: boolean;
|
|
730
724
|
penDetected: boolean;
|
|
731
725
|
exportBackground: boolean;
|
|
@@ -799,12 +793,18 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
799
793
|
pendingImageElementId: string | null;
|
|
800
794
|
showHyperlinkPopup: false | "editor" | "info";
|
|
801
795
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
796
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
797
|
+
originSnapOffset: {
|
|
798
|
+
x: number;
|
|
799
|
+
y: number;
|
|
800
|
+
} | null;
|
|
801
|
+
objectsSnapModeEnabled: boolean;
|
|
802
802
|
};
|
|
803
803
|
commitToHistory: boolean;
|
|
804
804
|
};
|
|
805
|
-
keyTest: (event:
|
|
805
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
806
806
|
} & {
|
|
807
|
-
keyTest?: ((event:
|
|
807
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
808
808
|
};
|
|
809
809
|
export declare const actionZoomToFitSelection: {
|
|
810
810
|
name: "zoomToFitSelection";
|
|
@@ -849,15 +849,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
849
849
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
850
850
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
851
851
|
activeTool: {
|
|
852
|
-
lastActiveTool: import("../types").
|
|
852
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
853
853
|
locked: boolean;
|
|
854
|
-
} & (
|
|
855
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
856
|
-
customType: null;
|
|
857
|
-
} | {
|
|
858
|
-
type: "custom";
|
|
859
|
-
customType: string;
|
|
860
|
-
});
|
|
854
|
+
} & import("../types").ActiveTool;
|
|
861
855
|
penMode: boolean;
|
|
862
856
|
penDetected: boolean;
|
|
863
857
|
exportBackground: boolean;
|
|
@@ -931,12 +925,18 @@ export declare const actionZoomToFitSelection: {
|
|
|
931
925
|
pendingImageElementId: string | null;
|
|
932
926
|
showHyperlinkPopup: false | "editor" | "info";
|
|
933
927
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
928
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
929
|
+
originSnapOffset: {
|
|
930
|
+
x: number;
|
|
931
|
+
y: number;
|
|
932
|
+
} | null;
|
|
933
|
+
objectsSnapModeEnabled: boolean;
|
|
934
934
|
};
|
|
935
935
|
commitToHistory: boolean;
|
|
936
936
|
};
|
|
937
|
-
keyTest: (event:
|
|
937
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
938
938
|
} & {
|
|
939
|
-
keyTest?: ((event:
|
|
939
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
940
940
|
};
|
|
941
941
|
export declare const actionZoomToFit: {
|
|
942
942
|
name: "zoomToFit";
|
|
@@ -982,15 +982,9 @@ export declare const actionZoomToFit: {
|
|
|
982
982
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
983
983
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
984
984
|
activeTool: {
|
|
985
|
-
lastActiveTool: import("../types").
|
|
985
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
986
986
|
locked: boolean;
|
|
987
|
-
} & (
|
|
988
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
989
|
-
customType: null;
|
|
990
|
-
} | {
|
|
991
|
-
type: "custom";
|
|
992
|
-
customType: string;
|
|
993
|
-
});
|
|
987
|
+
} & import("../types").ActiveTool;
|
|
994
988
|
penMode: boolean;
|
|
995
989
|
penDetected: boolean;
|
|
996
990
|
exportBackground: boolean;
|
|
@@ -1064,12 +1058,18 @@ export declare const actionZoomToFit: {
|
|
|
1064
1058
|
pendingImageElementId: string | null;
|
|
1065
1059
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1066
1060
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1061
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1062
|
+
originSnapOffset: {
|
|
1063
|
+
x: number;
|
|
1064
|
+
y: number;
|
|
1065
|
+
} | null;
|
|
1066
|
+
objectsSnapModeEnabled: boolean;
|
|
1067
1067
|
};
|
|
1068
1068
|
commitToHistory: boolean;
|
|
1069
1069
|
};
|
|
1070
|
-
keyTest: (event:
|
|
1070
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1071
1071
|
} & {
|
|
1072
|
-
keyTest?: ((event:
|
|
1072
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1073
1073
|
};
|
|
1074
1074
|
export declare const actionToggleTheme: {
|
|
1075
1075
|
name: "toggleTheme";
|
|
@@ -1111,15 +1111,9 @@ export declare const actionToggleTheme: {
|
|
|
1111
1111
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1112
1112
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1113
1113
|
activeTool: {
|
|
1114
|
-
lastActiveTool: import("../types").
|
|
1114
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1115
1115
|
locked: boolean;
|
|
1116
|
-
} & (
|
|
1117
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1118
|
-
customType: null;
|
|
1119
|
-
} | {
|
|
1120
|
-
type: "custom";
|
|
1121
|
-
customType: string;
|
|
1122
|
-
});
|
|
1116
|
+
} & import("../types").ActiveTool;
|
|
1123
1117
|
penMode: boolean;
|
|
1124
1118
|
penDetected: boolean;
|
|
1125
1119
|
exportBackground: boolean;
|
|
@@ -1197,13 +1191,19 @@ export declare const actionToggleTheme: {
|
|
|
1197
1191
|
pendingImageElementId: string | null;
|
|
1198
1192
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1199
1193
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1194
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1195
|
+
originSnapOffset: {
|
|
1196
|
+
x: number;
|
|
1197
|
+
y: number;
|
|
1198
|
+
} | null;
|
|
1199
|
+
objectsSnapModeEnabled: boolean;
|
|
1200
1200
|
};
|
|
1201
1201
|
commitToHistory: false;
|
|
1202
1202
|
};
|
|
1203
|
-
keyTest: (event:
|
|
1203
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1204
1204
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1205
1205
|
} & {
|
|
1206
|
-
keyTest?: ((event:
|
|
1206
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1207
1207
|
};
|
|
1208
1208
|
export declare const actionToggleEraserTool: {
|
|
1209
1209
|
name: "toggleEraserTool";
|
|
@@ -1216,15 +1216,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1216
1216
|
selectedGroupIds: {};
|
|
1217
1217
|
activeEmbeddable: null;
|
|
1218
1218
|
activeTool: {
|
|
1219
|
-
lastActiveTool: import("../types").
|
|
1219
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1220
1220
|
locked: boolean;
|
|
1221
|
-
} & (
|
|
1222
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1223
|
-
customType: null;
|
|
1224
|
-
} | {
|
|
1225
|
-
type: "custom";
|
|
1226
|
-
customType: string;
|
|
1227
|
-
});
|
|
1221
|
+
} & import("../types").ActiveTool;
|
|
1228
1222
|
contextMenu: {
|
|
1229
1223
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1230
1224
|
top: number;
|
|
@@ -1323,12 +1317,18 @@ export declare const actionToggleEraserTool: {
|
|
|
1323
1317
|
pendingImageElementId: string | null;
|
|
1324
1318
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1325
1319
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1320
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1321
|
+
originSnapOffset: {
|
|
1322
|
+
x: number;
|
|
1323
|
+
y: number;
|
|
1324
|
+
} | null;
|
|
1325
|
+
objectsSnapModeEnabled: boolean;
|
|
1326
1326
|
};
|
|
1327
1327
|
commitToHistory: true;
|
|
1328
1328
|
};
|
|
1329
|
-
keyTest: (event:
|
|
1329
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1330
1330
|
} & {
|
|
1331
|
-
keyTest?: ((event:
|
|
1331
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1332
1332
|
};
|
|
1333
1333
|
export declare const actionToggleHandTool: {
|
|
1334
1334
|
name: "toggleHandTool";
|
|
@@ -1341,15 +1341,9 @@ export declare const actionToggleHandTool: {
|
|
|
1341
1341
|
selectedGroupIds: {};
|
|
1342
1342
|
activeEmbeddable: null;
|
|
1343
1343
|
activeTool: {
|
|
1344
|
-
lastActiveTool: import("../types").
|
|
1344
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1345
1345
|
locked: boolean;
|
|
1346
|
-
} & (
|
|
1347
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1348
|
-
customType: null;
|
|
1349
|
-
} | {
|
|
1350
|
-
type: "custom";
|
|
1351
|
-
customType: string;
|
|
1352
|
-
});
|
|
1346
|
+
} & import("../types").ActiveTool;
|
|
1353
1347
|
contextMenu: {
|
|
1354
1348
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1355
1349
|
top: number;
|
|
@@ -1448,10 +1442,16 @@ export declare const actionToggleHandTool: {
|
|
|
1448
1442
|
pendingImageElementId: string | null;
|
|
1449
1443
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1450
1444
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1445
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1446
|
+
originSnapOffset: {
|
|
1447
|
+
x: number;
|
|
1448
|
+
y: number;
|
|
1449
|
+
} | null;
|
|
1450
|
+
objectsSnapModeEnabled: boolean;
|
|
1451
1451
|
};
|
|
1452
1452
|
commitToHistory: true;
|
|
1453
1453
|
};
|
|
1454
|
-
keyTest: (event:
|
|
1454
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1455
1455
|
} & {
|
|
1456
|
-
keyTest?: ((event:
|
|
1456
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1457
1457
|
};
|