@myoc/excalidraw 0.18.15 → 0.18.17
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/dev/{chunk-O7OUZ7ZJ.js → chunk-FQEIAL75.js} +14874 -9982
- package/dist/dev/chunk-FQEIAL75.js.map +7 -0
- package/dist/dev/{chunk-PEI7EPYO.js → chunk-KJKC5BJI.js} +10 -4
- package/dist/dev/chunk-KJKC5BJI.js.map +7 -0
- package/dist/dev/{chunk-DJKQZ4KD.js → chunk-XL2I4W52.js} +2 -2
- package/dist/dev/data/{image-NJWLICAS.js → image-WMF622SS.js} +3 -3
- package/dist/dev/index.css +69 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +3104 -6547
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-R455UJTM.js → en-UQFCZXHO.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-NJOW7IOK.js → chunk-5JAQX5EH.js} +1 -1
- package/dist/prod/{chunk-KZWZ7WHC.js → chunk-EJLAYNAE.js} +4 -4
- package/dist/prod/chunk-LSNMPGNI.js +33 -0
- package/dist/prod/data/image-Z433FUMH.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -16
- package/dist/prod/locales/{en-YWERZJD6.js → en-7EHYHCIL.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +3 -1
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +16 -4
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
- package/dist/types/element/src/ShapeCache.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +3 -3
- package/dist/types/element/src/arrange.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +18 -10
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/dist/types/element/src/dragElements.d.ts +3 -2
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +3 -2
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -3
- package/dist/types/element/src/index.d.ts +45 -2
- package/dist/types/element/src/linearElementEditor.d.ts +14 -18
- package/dist/types/element/src/mutateElement.d.ts +10 -2
- package/dist/types/element/src/newElement.d.ts +3 -3
- package/dist/types/element/src/resizeElements.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +1 -6
- package/dist/types/element/src/shapes.d.ts +1 -1
- package/dist/types/element/src/sizeHelpers.d.ts +0 -1
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/textElement.d.ts +4 -3
- package/dist/types/element/src/typeChecks.d.ts +5 -1
- package/dist/types/element/src/types.d.ts +8 -0
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -48
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -32
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +139 -211
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +62 -98
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +28 -46
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +22 -34
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionExport.d.ts +184 -238
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +18 -30
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +84 -108
- package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -38
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionLink.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionMenu.d.ts +30 -48
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +19 -31
- package/dist/types/excalidraw/actions/actionProperties.d.ts +138 -228
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -20
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -199
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +31 -31
- package/dist/types/excalidraw/components/App.d.ts +13 -8
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +14 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +9 -9
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +16 -9
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/dist/types/math/src/curve.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -0
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +68 -94
- package/package.json +5 -4
- package/dist/dev/chunk-O7OUZ7ZJ.js.map +0 -7
- package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
- package/dist/prod/chunk-WGXUBJ4X.js +0 -33
- package/dist/prod/data/image-EKW6RBW7.js +0 -1
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/store.d.ts +0 -129
- /package/dist/dev/{chunk-DJKQZ4KD.js.map → chunk-XL2I4W52.js.map} +0 -0
- /package/dist/dev/data/{image-NJWLICAS.js.map → image-WMF622SS.js.map} +0 -0
- /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
|
@@ -14,13 +14,13 @@ export declare const actionGroup: {
|
|
|
14
14
|
captureUpdate: "EVENTUALLY";
|
|
15
15
|
} | {
|
|
16
16
|
appState: {
|
|
17
|
-
editingGroupId: string | null;
|
|
18
17
|
selectedElementIds: Readonly<{
|
|
19
18
|
[id: string]: true;
|
|
20
19
|
}>;
|
|
21
20
|
selectedGroupIds: {
|
|
22
21
|
[groupId: string]: boolean;
|
|
23
22
|
};
|
|
23
|
+
editingGroupId: string | null;
|
|
24
24
|
contextMenu: {
|
|
25
25
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
26
26
|
top: number;
|
|
@@ -29,9 +29,9 @@ export declare const actionGroup: {
|
|
|
29
29
|
showWelcomeScreen: boolean;
|
|
30
30
|
isLoading: boolean;
|
|
31
31
|
myocSimplifiedMode: boolean;
|
|
32
|
+
dontResizeLimitMBs: number;
|
|
32
33
|
hideMainMenus: boolean;
|
|
33
34
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
34
|
-
dontResizeLimitMBs: number;
|
|
35
35
|
arrangeConfiguration: {
|
|
36
36
|
algorithm: "bin-packing";
|
|
37
37
|
gap: number;
|
|
@@ -47,7 +47,7 @@ export declare const actionGroup: {
|
|
|
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 actionGroup: {
|
|
|
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;
|
|
@@ -96,7 +96,7 @@ export declare const actionGroup: {
|
|
|
96
96
|
zoom: Readonly<{
|
|
97
97
|
value: import("../types").NormalizedZoomValue;
|
|
98
98
|
}>;
|
|
99
|
-
openMenu: "
|
|
99
|
+
openMenu: "canvas" | "shape" | null;
|
|
100
100
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
101
101
|
openSidebar: {
|
|
102
102
|
name: string;
|
|
@@ -172,8 +172,8 @@ export declare const actionGroup: {
|
|
|
172
172
|
data: import("../charts").Spreadsheet;
|
|
173
173
|
};
|
|
174
174
|
pendingImageElementId: string | null;
|
|
175
|
-
showHyperlinkPopup: false | "
|
|
176
|
-
selectedLinearElement: import("@excalidraw/element
|
|
175
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
176
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
177
177
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
178
178
|
originSnapOffset: {
|
|
179
179
|
x: number;
|
|
@@ -184,25 +184,19 @@ export declare const actionGroup: {
|
|
|
184
184
|
followedBy: Set<import("../types").SocketId>;
|
|
185
185
|
isCropping: boolean;
|
|
186
186
|
croppingElementId: string | null;
|
|
187
|
-
searchMatches:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
offsetX: number;
|
|
192
|
-
offsetY: number;
|
|
193
|
-
width: number;
|
|
194
|
-
height: number;
|
|
195
|
-
}[];
|
|
196
|
-
}[];
|
|
187
|
+
searchMatches: Readonly<{
|
|
188
|
+
focusedId: string | null;
|
|
189
|
+
matches: readonly import("../types").SearchMatch[];
|
|
190
|
+
}> | null;
|
|
197
191
|
};
|
|
198
192
|
elements: OrderedExcalidrawElement[];
|
|
199
193
|
captureUpdate: "IMMEDIATELY";
|
|
200
194
|
};
|
|
201
195
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
202
|
-
keyTest: (event:
|
|
196
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
203
197
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
204
198
|
} & {
|
|
205
|
-
keyTest?: ((event:
|
|
199
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
206
200
|
};
|
|
207
201
|
export declare const actionUngroup: {
|
|
208
202
|
name: "ungroup";
|
|
@@ -217,13 +211,13 @@ export declare const actionUngroup: {
|
|
|
217
211
|
captureUpdate: "EVENTUALLY";
|
|
218
212
|
} | {
|
|
219
213
|
appState: {
|
|
220
|
-
editingGroupId: string | null;
|
|
221
214
|
selectedElementIds: Readonly<{
|
|
222
215
|
[id: string]: true;
|
|
223
216
|
}>;
|
|
224
217
|
selectedGroupIds: {
|
|
225
218
|
[groupId: string]: boolean;
|
|
226
219
|
};
|
|
220
|
+
editingGroupId: string | null;
|
|
227
221
|
contextMenu: {
|
|
228
222
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
229
223
|
top: number;
|
|
@@ -232,9 +226,9 @@ export declare const actionUngroup: {
|
|
|
232
226
|
showWelcomeScreen: boolean;
|
|
233
227
|
isLoading: boolean;
|
|
234
228
|
myocSimplifiedMode: boolean;
|
|
229
|
+
dontResizeLimitMBs: number;
|
|
235
230
|
hideMainMenus: boolean;
|
|
236
231
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
237
|
-
dontResizeLimitMBs: number;
|
|
238
232
|
arrangeConfiguration: {
|
|
239
233
|
algorithm: "bin-packing";
|
|
240
234
|
gap: number;
|
|
@@ -250,7 +244,7 @@ export declare const actionUngroup: {
|
|
|
250
244
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
251
245
|
isBindingEnabled: boolean;
|
|
252
246
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
253
|
-
suggestedBindings: import("@excalidraw/element
|
|
247
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
254
248
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
255
249
|
frameRendering: {
|
|
256
250
|
enabled: boolean;
|
|
@@ -261,7 +255,7 @@ export declare const actionUngroup: {
|
|
|
261
255
|
editingFrame: string | null;
|
|
262
256
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
263
257
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
264
|
-
editingLinearElement: import("@excalidraw/element
|
|
258
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
265
259
|
activeTool: {
|
|
266
260
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
267
261
|
locked: boolean;
|
|
@@ -299,7 +293,7 @@ export declare const actionUngroup: {
|
|
|
299
293
|
zoom: Readonly<{
|
|
300
294
|
value: import("../types").NormalizedZoomValue;
|
|
301
295
|
}>;
|
|
302
|
-
openMenu: "
|
|
296
|
+
openMenu: "canvas" | "shape" | null;
|
|
303
297
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
304
298
|
openSidebar: {
|
|
305
299
|
name: string;
|
|
@@ -375,8 +369,8 @@ export declare const actionUngroup: {
|
|
|
375
369
|
data: import("../charts").Spreadsheet;
|
|
376
370
|
};
|
|
377
371
|
pendingImageElementId: string | null;
|
|
378
|
-
showHyperlinkPopup: false | "
|
|
379
|
-
selectedLinearElement: import("@excalidraw/element
|
|
372
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
373
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
380
374
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
381
375
|
originSnapOffset: {
|
|
382
376
|
x: number;
|
|
@@ -387,23 +381,17 @@ export declare const actionUngroup: {
|
|
|
387
381
|
followedBy: Set<import("../types").SocketId>;
|
|
388
382
|
isCropping: boolean;
|
|
389
383
|
croppingElementId: string | null;
|
|
390
|
-
searchMatches:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
offsetX: number;
|
|
395
|
-
offsetY: number;
|
|
396
|
-
width: number;
|
|
397
|
-
height: number;
|
|
398
|
-
}[];
|
|
399
|
-
}[];
|
|
384
|
+
searchMatches: Readonly<{
|
|
385
|
+
focusedId: string | null;
|
|
386
|
+
matches: readonly import("../types").SearchMatch[];
|
|
387
|
+
}> | null;
|
|
400
388
|
};
|
|
401
389
|
elements: OrderedExcalidrawElement[];
|
|
402
390
|
captureUpdate: "IMMEDIATELY";
|
|
403
391
|
};
|
|
404
|
-
keyTest: (event:
|
|
392
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
405
393
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
406
394
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
407
395
|
} & {
|
|
408
|
-
keyTest?: ((event:
|
|
396
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
409
397
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { History } from "../history";
|
|
2
|
-
import type { Store } from "../store";
|
|
3
2
|
import type { Action } from "./types";
|
|
4
|
-
type ActionCreator = (history: History
|
|
3
|
+
type ActionCreator = (history: History) => Action;
|
|
5
4
|
export declare const createUndoAction: ActionCreator;
|
|
6
5
|
export declare const createRedoAction: ActionCreator;
|
|
7
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
3
|
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
4
4
|
export declare const actionToggleLinearEditor: {
|
|
5
5
|
name: "toggleLinearEditor";
|
|
@@ -21,9 +21,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
21
21
|
showWelcomeScreen: boolean;
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
myocSimplifiedMode: boolean;
|
|
24
|
+
dontResizeLimitMBs: number;
|
|
24
25
|
hideMainMenus: boolean;
|
|
25
26
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
26
|
-
dontResizeLimitMBs: number;
|
|
27
27
|
arrangeConfiguration: {
|
|
28
28
|
algorithm: "bin-packing";
|
|
29
29
|
gap: number;
|
|
@@ -39,7 +39,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
39
39
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
40
|
isBindingEnabled: boolean;
|
|
41
41
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
42
|
-
suggestedBindings: import("@excalidraw/element
|
|
42
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
43
43
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
44
|
frameRendering: {
|
|
45
45
|
enabled: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
87
87
|
zoom: Readonly<{
|
|
88
88
|
value: import("../types").NormalizedZoomValue;
|
|
89
89
|
}>;
|
|
90
|
-
openMenu: "
|
|
90
|
+
openMenu: "canvas" | "shape" | null;
|
|
91
91
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
92
92
|
openSidebar: {
|
|
93
93
|
name: string;
|
|
@@ -170,7 +170,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
170
170
|
data: import("../charts").Spreadsheet;
|
|
171
171
|
};
|
|
172
172
|
pendingImageElementId: string | null;
|
|
173
|
-
showHyperlinkPopup: false | "
|
|
173
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
174
174
|
selectedLinearElement: LinearElementEditor | null;
|
|
175
175
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
176
176
|
originSnapOffset: {
|
|
@@ -182,16 +182,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
182
182
|
followedBy: Set<import("../types").SocketId>;
|
|
183
183
|
isCropping: boolean;
|
|
184
184
|
croppingElementId: string | null;
|
|
185
|
-
searchMatches:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
offsetX: number;
|
|
190
|
-
offsetY: number;
|
|
191
|
-
width: number;
|
|
192
|
-
height: number;
|
|
193
|
-
}[];
|
|
194
|
-
}[];
|
|
185
|
+
searchMatches: Readonly<{
|
|
186
|
+
focusedId: string | null;
|
|
187
|
+
matches: readonly import("../types").SearchMatch[];
|
|
188
|
+
}> | null;
|
|
195
189
|
};
|
|
196
190
|
captureUpdate: "IMMEDIATELY";
|
|
197
191
|
};
|
|
@@ -16,9 +16,9 @@ export declare const actionLink: {
|
|
|
16
16
|
showWelcomeScreen: boolean;
|
|
17
17
|
isLoading: boolean;
|
|
18
18
|
myocSimplifiedMode: boolean;
|
|
19
|
+
dontResizeLimitMBs: number;
|
|
19
20
|
hideMainMenus: boolean;
|
|
20
21
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
21
|
-
dontResizeLimitMBs: number;
|
|
22
22
|
arrangeConfiguration: {
|
|
23
23
|
algorithm: "bin-packing";
|
|
24
24
|
gap: number;
|
|
@@ -34,7 +34,7 @@ export declare const actionLink: {
|
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
36
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
|
-
suggestedBindings: import("@excalidraw/element
|
|
37
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
38
38
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
39
|
frameRendering: {
|
|
40
40
|
enabled: boolean;
|
|
@@ -45,7 +45,7 @@ export declare const actionLink: {
|
|
|
45
45
|
editingFrame: string | null;
|
|
46
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
47
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
|
-
editingLinearElement: import("@excalidraw/element
|
|
48
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
49
49
|
activeTool: {
|
|
50
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
51
|
locked: boolean;
|
|
@@ -165,7 +165,7 @@ export declare const actionLink: {
|
|
|
165
165
|
data: import("../charts").Spreadsheet;
|
|
166
166
|
};
|
|
167
167
|
pendingImageElementId: string | null;
|
|
168
|
-
selectedLinearElement: import("@excalidraw/element
|
|
168
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
169
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
170
|
originSnapOffset: {
|
|
171
171
|
x: number;
|
|
@@ -176,16 +176,10 @@ export declare const actionLink: {
|
|
|
176
176
|
followedBy: Set<import("../types").SocketId>;
|
|
177
177
|
isCropping: boolean;
|
|
178
178
|
croppingElementId: string | null;
|
|
179
|
-
searchMatches:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
offsetX: number;
|
|
184
|
-
offsetY: number;
|
|
185
|
-
width: number;
|
|
186
|
-
height: number;
|
|
187
|
-
}[];
|
|
188
|
-
}[];
|
|
179
|
+
searchMatches: Readonly<{
|
|
180
|
+
focusedId: string | null;
|
|
181
|
+
matches: readonly import("../types").SearchMatch[];
|
|
182
|
+
}> | null;
|
|
189
183
|
};
|
|
190
184
|
captureUpdate: "IMMEDIATELY";
|
|
191
185
|
};
|
|
@@ -193,9 +187,9 @@ export declare const actionLink: {
|
|
|
193
187
|
category: "hyperlink";
|
|
194
188
|
action: string;
|
|
195
189
|
};
|
|
196
|
-
keyTest: (event:
|
|
190
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
197
191
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
198
192
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
199
193
|
} & {
|
|
200
|
-
keyTest?: ((event:
|
|
194
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
201
195
|
};
|
|
@@ -16,9 +16,9 @@ export declare const actionToggleCanvasMenu: {
|
|
|
16
16
|
showWelcomeScreen: boolean;
|
|
17
17
|
isLoading: boolean;
|
|
18
18
|
myocSimplifiedMode: boolean;
|
|
19
|
+
dontResizeLimitMBs: number;
|
|
19
20
|
hideMainMenus: boolean;
|
|
20
21
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
21
|
-
dontResizeLimitMBs: number;
|
|
22
22
|
arrangeConfiguration: {
|
|
23
23
|
algorithm: "bin-packing";
|
|
24
24
|
gap: number;
|
|
@@ -34,7 +34,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
36
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
|
-
suggestedBindings: import("@excalidraw/element
|
|
37
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
38
38
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
39
|
frameRendering: {
|
|
40
40
|
enabled: boolean;
|
|
@@ -45,7 +45,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
45
45
|
editingFrame: string | null;
|
|
46
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
47
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
|
-
editingLinearElement: import("@excalidraw/element
|
|
48
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
49
49
|
activeTool: {
|
|
50
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
51
|
locked: boolean;
|
|
@@ -165,8 +165,8 @@ export declare const actionToggleCanvasMenu: {
|
|
|
165
165
|
data: import("../charts").Spreadsheet;
|
|
166
166
|
};
|
|
167
167
|
pendingImageElementId: string | null;
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
169
|
-
selectedLinearElement: import("@excalidraw/element
|
|
168
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
169
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
170
170
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
171
|
originSnapOffset: {
|
|
172
172
|
x: number;
|
|
@@ -177,16 +177,10 @@ export declare const actionToggleCanvasMenu: {
|
|
|
177
177
|
followedBy: Set<import("../types").SocketId>;
|
|
178
178
|
isCropping: boolean;
|
|
179
179
|
croppingElementId: string | null;
|
|
180
|
-
searchMatches:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
offsetX: number;
|
|
185
|
-
offsetY: number;
|
|
186
|
-
width: number;
|
|
187
|
-
height: number;
|
|
188
|
-
}[];
|
|
189
|
-
}[];
|
|
180
|
+
searchMatches: Readonly<{
|
|
181
|
+
focusedId: string | null;
|
|
182
|
+
matches: readonly import("../types").SearchMatch[];
|
|
183
|
+
}> | null;
|
|
190
184
|
};
|
|
191
185
|
captureUpdate: "EVENTUALLY";
|
|
192
186
|
};
|
|
@@ -211,9 +205,9 @@ export declare const actionToggleEditMenu: {
|
|
|
211
205
|
showWelcomeScreen: boolean;
|
|
212
206
|
isLoading: boolean;
|
|
213
207
|
myocSimplifiedMode: boolean;
|
|
208
|
+
dontResizeLimitMBs: number;
|
|
214
209
|
hideMainMenus: boolean;
|
|
215
210
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
216
|
-
dontResizeLimitMBs: number;
|
|
217
211
|
arrangeConfiguration: {
|
|
218
212
|
algorithm: "bin-packing";
|
|
219
213
|
gap: number;
|
|
@@ -229,7 +223,7 @@ export declare const actionToggleEditMenu: {
|
|
|
229
223
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
230
224
|
isBindingEnabled: boolean;
|
|
231
225
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
232
|
-
suggestedBindings: import("@excalidraw/element
|
|
226
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
233
227
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
234
228
|
frameRendering: {
|
|
235
229
|
enabled: boolean;
|
|
@@ -240,7 +234,7 @@ export declare const actionToggleEditMenu: {
|
|
|
240
234
|
editingFrame: string | null;
|
|
241
235
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
242
236
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
243
|
-
editingLinearElement: import("@excalidraw/element
|
|
237
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
244
238
|
activeTool: {
|
|
245
239
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
246
240
|
locked: boolean;
|
|
@@ -360,8 +354,8 @@ export declare const actionToggleEditMenu: {
|
|
|
360
354
|
data: import("../charts").Spreadsheet;
|
|
361
355
|
};
|
|
362
356
|
pendingImageElementId: string | null;
|
|
363
|
-
showHyperlinkPopup: false | "
|
|
364
|
-
selectedLinearElement: import("@excalidraw/element
|
|
357
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
358
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
365
359
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
366
360
|
originSnapOffset: {
|
|
367
361
|
x: number;
|
|
@@ -372,16 +366,10 @@ export declare const actionToggleEditMenu: {
|
|
|
372
366
|
followedBy: Set<import("../types").SocketId>;
|
|
373
367
|
isCropping: boolean;
|
|
374
368
|
croppingElementId: string | null;
|
|
375
|
-
searchMatches:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
offsetX: number;
|
|
380
|
-
offsetY: number;
|
|
381
|
-
width: number;
|
|
382
|
-
height: number;
|
|
383
|
-
}[];
|
|
384
|
-
}[];
|
|
369
|
+
searchMatches: Readonly<{
|
|
370
|
+
focusedId: string | null;
|
|
371
|
+
matches: readonly import("../types").SearchMatch[];
|
|
372
|
+
}> | null;
|
|
385
373
|
};
|
|
386
374
|
captureUpdate: "EVENTUALLY";
|
|
387
375
|
};
|
|
@@ -411,9 +399,9 @@ export declare const actionShortcuts: {
|
|
|
411
399
|
showWelcomeScreen: boolean;
|
|
412
400
|
isLoading: boolean;
|
|
413
401
|
myocSimplifiedMode: boolean;
|
|
402
|
+
dontResizeLimitMBs: number;
|
|
414
403
|
hideMainMenus: boolean;
|
|
415
404
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
416
|
-
dontResizeLimitMBs: number;
|
|
417
405
|
arrangeConfiguration: {
|
|
418
406
|
algorithm: "bin-packing";
|
|
419
407
|
gap: number;
|
|
@@ -429,7 +417,7 @@ export declare const actionShortcuts: {
|
|
|
429
417
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
430
418
|
isBindingEnabled: boolean;
|
|
431
419
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
432
|
-
suggestedBindings: import("@excalidraw/element
|
|
420
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
433
421
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
434
422
|
frameRendering: {
|
|
435
423
|
enabled: boolean;
|
|
@@ -440,7 +428,7 @@ export declare const actionShortcuts: {
|
|
|
440
428
|
editingFrame: string | null;
|
|
441
429
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
442
430
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
443
|
-
editingLinearElement: import("@excalidraw/element
|
|
431
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
444
432
|
activeTool: {
|
|
445
433
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
446
434
|
locked: boolean;
|
|
@@ -478,7 +466,7 @@ export declare const actionShortcuts: {
|
|
|
478
466
|
zoom: Readonly<{
|
|
479
467
|
value: import("../types").NormalizedZoomValue;
|
|
480
468
|
}>;
|
|
481
|
-
openMenu: "
|
|
469
|
+
openMenu: "canvas" | "shape" | null;
|
|
482
470
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
483
471
|
openSidebar: {
|
|
484
472
|
name: string;
|
|
@@ -550,8 +538,8 @@ export declare const actionShortcuts: {
|
|
|
550
538
|
data: import("../charts").Spreadsheet;
|
|
551
539
|
};
|
|
552
540
|
pendingImageElementId: string | null;
|
|
553
|
-
showHyperlinkPopup: false | "
|
|
554
|
-
selectedLinearElement: import("@excalidraw/element
|
|
541
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
542
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
555
543
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
556
544
|
originSnapOffset: {
|
|
557
545
|
x: number;
|
|
@@ -562,20 +550,14 @@ export declare const actionShortcuts: {
|
|
|
562
550
|
followedBy: Set<import("../types").SocketId>;
|
|
563
551
|
isCropping: boolean;
|
|
564
552
|
croppingElementId: string | null;
|
|
565
|
-
searchMatches:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
offsetX: number;
|
|
570
|
-
offsetY: number;
|
|
571
|
-
width: number;
|
|
572
|
-
height: number;
|
|
573
|
-
}[];
|
|
574
|
-
}[];
|
|
553
|
+
searchMatches: Readonly<{
|
|
554
|
+
focusedId: string | null;
|
|
555
|
+
matches: readonly import("../types").SearchMatch[];
|
|
556
|
+
}> | null;
|
|
575
557
|
};
|
|
576
558
|
captureUpdate: "EVENTUALLY";
|
|
577
559
|
};
|
|
578
|
-
keyTest: (event:
|
|
560
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
579
561
|
} & {
|
|
580
|
-
keyTest?: ((event:
|
|
562
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
581
563
|
};
|