@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
|
@@ -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 { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppClassProperties, AppState } from "../types";
|
|
5
5
|
export declare const actionDeleteSelected: {
|
|
@@ -22,9 +22,9 @@ export declare const actionDeleteSelected: {
|
|
|
22
22
|
showWelcomeScreen: boolean;
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
myocSimplifiedMode: boolean;
|
|
25
|
+
dontResizeLimitMBs: number;
|
|
25
26
|
hideMainMenus: boolean;
|
|
26
27
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
27
|
-
dontResizeLimitMBs: number;
|
|
28
28
|
arrangeConfiguration: {
|
|
29
29
|
algorithm: "bin-packing";
|
|
30
30
|
gap: number;
|
|
@@ -40,7 +40,7 @@ export declare const actionDeleteSelected: {
|
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
42
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBindings: import("@excalidraw/element
|
|
43
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
44
44
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
45
|
frameRendering: {
|
|
46
46
|
enabled: boolean;
|
|
@@ -88,7 +88,7 @@ export declare const actionDeleteSelected: {
|
|
|
88
88
|
zoom: Readonly<{
|
|
89
89
|
value: import("../types").NormalizedZoomValue;
|
|
90
90
|
}>;
|
|
91
|
-
openMenu: "
|
|
91
|
+
openMenu: "canvas" | "shape" | null;
|
|
92
92
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
93
93
|
openSidebar: {
|
|
94
94
|
name: string;
|
|
@@ -171,7 +171,7 @@ export declare const actionDeleteSelected: {
|
|
|
171
171
|
data: import("../charts").Spreadsheet;
|
|
172
172
|
};
|
|
173
173
|
pendingImageElementId: string | null;
|
|
174
|
-
showHyperlinkPopup: false | "
|
|
174
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
175
175
|
selectedLinearElement: LinearElementEditor | null;
|
|
176
176
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
177
177
|
originSnapOffset: {
|
|
@@ -183,16 +183,10 @@ export declare const actionDeleteSelected: {
|
|
|
183
183
|
followedBy: Set<import("../types").SocketId>;
|
|
184
184
|
isCropping: boolean;
|
|
185
185
|
croppingElementId: string | null;
|
|
186
|
-
searchMatches:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
offsetX: number;
|
|
191
|
-
offsetY: number;
|
|
192
|
-
width: number;
|
|
193
|
-
height: number;
|
|
194
|
-
}[];
|
|
195
|
-
}[];
|
|
186
|
+
searchMatches: Readonly<{
|
|
187
|
+
focusedId: string | null;
|
|
188
|
+
matches: readonly import("../types").SearchMatch[];
|
|
189
|
+
}> | null;
|
|
196
190
|
};
|
|
197
191
|
captureUpdate: "IMMEDIATELY";
|
|
198
192
|
} | {
|
|
@@ -237,9 +231,9 @@ export declare const actionDeleteSelected: {
|
|
|
237
231
|
showWelcomeScreen: boolean;
|
|
238
232
|
isLoading: boolean;
|
|
239
233
|
myocSimplifiedMode: boolean;
|
|
234
|
+
dontResizeLimitMBs: number;
|
|
240
235
|
hideMainMenus: boolean;
|
|
241
236
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
242
|
-
dontResizeLimitMBs: number;
|
|
243
237
|
arrangeConfiguration: {
|
|
244
238
|
algorithm: "bin-packing";
|
|
245
239
|
gap: number;
|
|
@@ -255,7 +249,7 @@ export declare const actionDeleteSelected: {
|
|
|
255
249
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
256
250
|
isBindingEnabled: boolean;
|
|
257
251
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
258
|
-
suggestedBindings: import("@excalidraw/element
|
|
252
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
259
253
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
260
254
|
frameRendering: {
|
|
261
255
|
enabled: boolean;
|
|
@@ -303,7 +297,7 @@ export declare const actionDeleteSelected: {
|
|
|
303
297
|
zoom: Readonly<{
|
|
304
298
|
value: import("../types").NormalizedZoomValue;
|
|
305
299
|
}>;
|
|
306
|
-
openMenu: "
|
|
300
|
+
openMenu: "canvas" | "shape" | null;
|
|
307
301
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
308
302
|
openSidebar: {
|
|
309
303
|
name: string;
|
|
@@ -386,7 +380,7 @@ export declare const actionDeleteSelected: {
|
|
|
386
380
|
data: import("../charts").Spreadsheet;
|
|
387
381
|
};
|
|
388
382
|
pendingImageElementId: string | null;
|
|
389
|
-
showHyperlinkPopup: false | "
|
|
383
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
390
384
|
selectedLinearElement: LinearElementEditor | null;
|
|
391
385
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
392
386
|
originSnapOffset: {
|
|
@@ -398,16 +392,10 @@ export declare const actionDeleteSelected: {
|
|
|
398
392
|
followedBy: Set<import("../types").SocketId>;
|
|
399
393
|
isCropping: boolean;
|
|
400
394
|
croppingElementId: string | null;
|
|
401
|
-
searchMatches:
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
offsetX: number;
|
|
406
|
-
offsetY: number;
|
|
407
|
-
width: number;
|
|
408
|
-
height: number;
|
|
409
|
-
}[];
|
|
410
|
-
}[];
|
|
395
|
+
searchMatches: Readonly<{
|
|
396
|
+
focusedId: string | null;
|
|
397
|
+
matches: readonly import("../types").SearchMatch[];
|
|
398
|
+
}> | null;
|
|
411
399
|
};
|
|
412
400
|
captureUpdate: "IMMEDIATELY";
|
|
413
401
|
} | {
|
|
@@ -421,13 +409,13 @@ export declare const actionDeleteSelected: {
|
|
|
421
409
|
multiElement: null;
|
|
422
410
|
activeEmbeddable: null;
|
|
423
411
|
selectedLinearElement: null;
|
|
424
|
-
editingGroupId: string | null;
|
|
425
412
|
selectedElementIds: Readonly<{
|
|
426
413
|
[id: string]: true;
|
|
427
414
|
}>;
|
|
428
415
|
selectedGroupIds: {
|
|
429
416
|
[groupId: string]: boolean;
|
|
430
417
|
};
|
|
418
|
+
editingGroupId: string | null;
|
|
431
419
|
contextMenu: {
|
|
432
420
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
433
421
|
top: number;
|
|
@@ -436,9 +424,9 @@ export declare const actionDeleteSelected: {
|
|
|
436
424
|
showWelcomeScreen: boolean;
|
|
437
425
|
isLoading: boolean;
|
|
438
426
|
myocSimplifiedMode: boolean;
|
|
427
|
+
dontResizeLimitMBs: number;
|
|
439
428
|
hideMainMenus: boolean;
|
|
440
429
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
441
|
-
dontResizeLimitMBs: number;
|
|
442
430
|
arrangeConfiguration: {
|
|
443
431
|
algorithm: "bin-packing";
|
|
444
432
|
gap: number;
|
|
@@ -449,7 +437,7 @@ export declare const actionDeleteSelected: {
|
|
|
449
437
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
450
438
|
isBindingEnabled: boolean;
|
|
451
439
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
452
|
-
suggestedBindings: import("@excalidraw/element
|
|
440
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
453
441
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
454
442
|
frameRendering: {
|
|
455
443
|
enabled: boolean;
|
|
@@ -493,7 +481,7 @@ export declare const actionDeleteSelected: {
|
|
|
493
481
|
zoom: Readonly<{
|
|
494
482
|
value: import("../types").NormalizedZoomValue;
|
|
495
483
|
}>;
|
|
496
|
-
openMenu: "
|
|
484
|
+
openMenu: "canvas" | "shape" | null;
|
|
497
485
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
498
486
|
openSidebar: {
|
|
499
487
|
name: string;
|
|
@@ -569,7 +557,7 @@ export declare const actionDeleteSelected: {
|
|
|
569
557
|
data: import("../charts").Spreadsheet;
|
|
570
558
|
};
|
|
571
559
|
pendingImageElementId: string | null;
|
|
572
|
-
showHyperlinkPopup: false | "
|
|
560
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
573
561
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
574
562
|
originSnapOffset: {
|
|
575
563
|
x: number;
|
|
@@ -580,21 +568,15 @@ export declare const actionDeleteSelected: {
|
|
|
580
568
|
followedBy: Set<import("../types").SocketId>;
|
|
581
569
|
isCropping: boolean;
|
|
582
570
|
croppingElementId: string | null;
|
|
583
|
-
searchMatches:
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
offsetX: number;
|
|
588
|
-
offsetY: number;
|
|
589
|
-
width: number;
|
|
590
|
-
height: number;
|
|
591
|
-
}[];
|
|
592
|
-
}[];
|
|
571
|
+
searchMatches: Readonly<{
|
|
572
|
+
focusedId: string | null;
|
|
573
|
+
matches: readonly import("../types").SearchMatch[];
|
|
574
|
+
}> | null;
|
|
593
575
|
};
|
|
594
576
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
595
577
|
};
|
|
596
|
-
keyTest: (event:
|
|
578
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
597
579
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
598
580
|
} & {
|
|
599
|
-
keyTest?: ((event:
|
|
581
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
600
582
|
};
|
|
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
|
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event:
|
|
15
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
16
16
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
18
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const distributeVertically: {
|
|
21
21
|
name: "distributeVertically";
|
|
@@ -28,8 +28,8 @@ export declare const distributeVertically: {
|
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
captureUpdate: "IMMEDIATELY";
|
|
30
30
|
};
|
|
31
|
-
keyTest: (event:
|
|
31
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
32
32
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event:
|
|
34
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -11,8 +11,8 @@ export declare const actionDuplicateSelection: {
|
|
|
11
11
|
appState: import("../types").AppState;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -49,9 +49,9 @@ export declare const actionLinkToElement: {
|
|
|
49
49
|
showWelcomeScreen: boolean;
|
|
50
50
|
isLoading: boolean;
|
|
51
51
|
myocSimplifiedMode: boolean;
|
|
52
|
+
dontResizeLimitMBs: number;
|
|
52
53
|
hideMainMenus: boolean;
|
|
53
54
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
54
|
-
dontResizeLimitMBs: number;
|
|
55
55
|
arrangeConfiguration: {
|
|
56
56
|
algorithm: "bin-packing";
|
|
57
57
|
gap: number;
|
|
@@ -67,7 +67,7 @@ export declare const actionLinkToElement: {
|
|
|
67
67
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
68
68
|
isBindingEnabled: boolean;
|
|
69
69
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
70
|
-
suggestedBindings: import("@excalidraw/element
|
|
70
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
71
71
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
72
72
|
frameRendering: {
|
|
73
73
|
enabled: boolean;
|
|
@@ -78,7 +78,7 @@ export declare const actionLinkToElement: {
|
|
|
78
78
|
editingFrame: string | null;
|
|
79
79
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
80
80
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
81
|
-
editingLinearElement: import("@excalidraw/element
|
|
81
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
82
82
|
activeTool: {
|
|
83
83
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
84
84
|
locked: boolean;
|
|
@@ -116,7 +116,7 @@ export declare const actionLinkToElement: {
|
|
|
116
116
|
zoom: Readonly<{
|
|
117
117
|
value: import("../types").NormalizedZoomValue;
|
|
118
118
|
}>;
|
|
119
|
-
openMenu: "
|
|
119
|
+
openMenu: "canvas" | "shape" | null;
|
|
120
120
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
121
121
|
openSidebar: {
|
|
122
122
|
name: string;
|
|
@@ -188,8 +188,8 @@ export declare const actionLinkToElement: {
|
|
|
188
188
|
data: import("../charts").Spreadsheet;
|
|
189
189
|
};
|
|
190
190
|
pendingImageElementId: string | null;
|
|
191
|
-
showHyperlinkPopup: false | "
|
|
192
|
-
selectedLinearElement: import("@excalidraw/element
|
|
191
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
192
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
193
193
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
194
194
|
originSnapOffset: {
|
|
195
195
|
x: number;
|
|
@@ -200,16 +200,10 @@ export declare const actionLinkToElement: {
|
|
|
200
200
|
followedBy: Set<import("../types").SocketId>;
|
|
201
201
|
isCropping: boolean;
|
|
202
202
|
croppingElementId: string | null;
|
|
203
|
-
searchMatches:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
offsetX: number;
|
|
208
|
-
offsetY: number;
|
|
209
|
-
width: number;
|
|
210
|
-
height: number;
|
|
211
|
-
}[];
|
|
212
|
-
}[];
|
|
203
|
+
searchMatches: Readonly<{
|
|
204
|
+
focusedId: string | null;
|
|
205
|
+
matches: readonly import("../types").SearchMatch[];
|
|
206
|
+
}> | null;
|
|
213
207
|
};
|
|
214
208
|
captureUpdate: "IMMEDIATELY";
|
|
215
209
|
elements?: undefined;
|
|
@@ -11,7 +11,7 @@ export declare const actionToggleElementLock: {
|
|
|
11
11
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
12
12
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
appState: {
|
|
14
|
-
selectedLinearElement: import("@excalidraw/element
|
|
14
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
15
15
|
contextMenu: {
|
|
16
16
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
17
17
|
top: number;
|
|
@@ -20,9 +20,9 @@ export declare const actionToggleElementLock: {
|
|
|
20
20
|
showWelcomeScreen: boolean;
|
|
21
21
|
isLoading: boolean;
|
|
22
22
|
myocSimplifiedMode: boolean;
|
|
23
|
+
dontResizeLimitMBs: number;
|
|
23
24
|
hideMainMenus: boolean;
|
|
24
25
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
25
|
-
dontResizeLimitMBs: number;
|
|
26
26
|
arrangeConfiguration: {
|
|
27
27
|
algorithm: "bin-packing";
|
|
28
28
|
gap: number;
|
|
@@ -38,7 +38,7 @@ export declare const actionToggleElementLock: {
|
|
|
38
38
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
39
|
isBindingEnabled: boolean;
|
|
40
40
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
41
|
-
suggestedBindings: import("@excalidraw/element
|
|
41
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
42
42
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
43
43
|
frameRendering: {
|
|
44
44
|
enabled: boolean;
|
|
@@ -49,7 +49,7 @@ export declare const actionToggleElementLock: {
|
|
|
49
49
|
editingFrame: string | null;
|
|
50
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
51
51
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
52
|
-
editingLinearElement: import("@excalidraw/element
|
|
52
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
53
53
|
activeTool: {
|
|
54
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
55
|
locked: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const actionToggleElementLock: {
|
|
|
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 actionToggleElementLock: {
|
|
|
170
170
|
data: import("../charts").Spreadsheet;
|
|
171
171
|
};
|
|
172
172
|
pendingImageElementId: string | null;
|
|
173
|
-
showHyperlinkPopup: false | "
|
|
173
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
174
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
175
175
|
originSnapOffset: {
|
|
176
176
|
x: number;
|
|
@@ -181,22 +181,16 @@ export declare const actionToggleElementLock: {
|
|
|
181
181
|
followedBy: Set<import("../types").SocketId>;
|
|
182
182
|
isCropping: boolean;
|
|
183
183
|
croppingElementId: string | null;
|
|
184
|
-
searchMatches:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
offsetX: number;
|
|
189
|
-
offsetY: number;
|
|
190
|
-
width: number;
|
|
191
|
-
height: number;
|
|
192
|
-
}[];
|
|
193
|
-
}[];
|
|
184
|
+
searchMatches: Readonly<{
|
|
185
|
+
focusedId: string | null;
|
|
186
|
+
matches: readonly import("../types").SearchMatch[];
|
|
187
|
+
}> | null;
|
|
194
188
|
};
|
|
195
189
|
captureUpdate: "IMMEDIATELY";
|
|
196
190
|
};
|
|
197
|
-
keyTest: (event:
|
|
191
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
198
192
|
} & {
|
|
199
|
-
keyTest?: ((event:
|
|
193
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
200
194
|
};
|
|
201
195
|
export declare const actionUnlockAllElements: {
|
|
202
196
|
name: "unlockAllElements";
|
|
@@ -220,9 +214,9 @@ export declare const actionUnlockAllElements: {
|
|
|
220
214
|
showWelcomeScreen: boolean;
|
|
221
215
|
isLoading: boolean;
|
|
222
216
|
myocSimplifiedMode: boolean;
|
|
217
|
+
dontResizeLimitMBs: number;
|
|
223
218
|
hideMainMenus: boolean;
|
|
224
219
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
225
|
-
dontResizeLimitMBs: number;
|
|
226
220
|
arrangeConfiguration: {
|
|
227
221
|
algorithm: "bin-packing";
|
|
228
222
|
gap: number;
|
|
@@ -238,7 +232,7 @@ export declare const actionUnlockAllElements: {
|
|
|
238
232
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
233
|
isBindingEnabled: boolean;
|
|
240
234
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
241
|
-
suggestedBindings: import("@excalidraw/element
|
|
235
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
242
236
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
243
237
|
frameRendering: {
|
|
244
238
|
enabled: boolean;
|
|
@@ -249,7 +243,7 @@ export declare const actionUnlockAllElements: {
|
|
|
249
243
|
editingFrame: string | null;
|
|
250
244
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
251
245
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
252
|
-
editingLinearElement: import("@excalidraw/element
|
|
246
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
253
247
|
activeTool: {
|
|
254
248
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
255
249
|
locked: boolean;
|
|
@@ -287,7 +281,7 @@ export declare const actionUnlockAllElements: {
|
|
|
287
281
|
zoom: Readonly<{
|
|
288
282
|
value: import("../types").NormalizedZoomValue;
|
|
289
283
|
}>;
|
|
290
|
-
openMenu: "
|
|
284
|
+
openMenu: "canvas" | "shape" | null;
|
|
291
285
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
292
286
|
openSidebar: {
|
|
293
287
|
name: string;
|
|
@@ -367,8 +361,8 @@ export declare const actionUnlockAllElements: {
|
|
|
367
361
|
data: import("../charts").Spreadsheet;
|
|
368
362
|
};
|
|
369
363
|
pendingImageElementId: string | null;
|
|
370
|
-
showHyperlinkPopup: false | "
|
|
371
|
-
selectedLinearElement: import("@excalidraw/element
|
|
364
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
365
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
372
366
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
373
367
|
originSnapOffset: {
|
|
374
368
|
x: number;
|
|
@@ -379,16 +373,10 @@ export declare const actionUnlockAllElements: {
|
|
|
379
373
|
followedBy: Set<import("../types").SocketId>;
|
|
380
374
|
isCropping: boolean;
|
|
381
375
|
croppingElementId: string | null;
|
|
382
|
-
searchMatches:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
offsetX: number;
|
|
387
|
-
offsetY: number;
|
|
388
|
-
width: number;
|
|
389
|
-
height: number;
|
|
390
|
-
}[];
|
|
391
|
-
}[];
|
|
376
|
+
searchMatches: Readonly<{
|
|
377
|
+
focusedId: string | null;
|
|
378
|
+
matches: readonly import("../types").SearchMatch[];
|
|
379
|
+
}> | null;
|
|
392
380
|
};
|
|
393
381
|
captureUpdate: "IMMEDIATELY";
|
|
394
382
|
};
|
|
@@ -22,9 +22,9 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
22
22
|
showWelcomeScreen: boolean;
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
myocSimplifiedMode: boolean;
|
|
25
|
+
dontResizeLimitMBs: number;
|
|
25
26
|
hideMainMenus: boolean;
|
|
26
27
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
27
|
-
dontResizeLimitMBs: number;
|
|
28
28
|
arrangeConfiguration: {
|
|
29
29
|
algorithm: "bin-packing";
|
|
30
30
|
gap: number;
|
|
@@ -40,7 +40,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
42
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBindings: import("@excalidraw/element
|
|
43
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
44
44
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
45
|
frameRendering: {
|
|
46
46
|
enabled: boolean;
|
|
@@ -51,7 +51,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
51
51
|
editingFrame: string | null;
|
|
52
52
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
53
53
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
54
|
-
editingLinearElement: import("@excalidraw/element
|
|
54
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
55
55
|
penMode: boolean;
|
|
56
56
|
penDetected: boolean;
|
|
57
57
|
exportBackground: boolean;
|
|
@@ -84,7 +84,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
84
84
|
zoom: Readonly<{
|
|
85
85
|
value: import("../types").NormalizedZoomValue;
|
|
86
86
|
}>;
|
|
87
|
-
openMenu: "
|
|
87
|
+
openMenu: "canvas" | "shape" | null;
|
|
88
88
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
89
89
|
openSidebar: {
|
|
90
90
|
name: string;
|
|
@@ -167,8 +167,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
167
167
|
data: import("../charts").Spreadsheet;
|
|
168
168
|
};
|
|
169
169
|
pendingImageElementId: string | null;
|
|
170
|
-
showHyperlinkPopup: false | "
|
|
171
|
-
selectedLinearElement: import("@excalidraw/element
|
|
170
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
171
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
172
172
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
173
173
|
originSnapOffset: {
|
|
174
174
|
x: number;
|
|
@@ -179,16 +179,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
179
179
|
followedBy: Set<import("../types").SocketId>;
|
|
180
180
|
isCropping: boolean;
|
|
181
181
|
croppingElementId: string | null;
|
|
182
|
-
searchMatches:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
offsetX: number;
|
|
187
|
-
offsetY: number;
|
|
188
|
-
width: number;
|
|
189
|
-
height: number;
|
|
190
|
-
}[];
|
|
191
|
-
}[];
|
|
182
|
+
searchMatches: Readonly<{
|
|
183
|
+
focusedId: string | null;
|
|
184
|
+
matches: readonly import("../types").SearchMatch[];
|
|
185
|
+
}> | null;
|
|
192
186
|
};
|
|
193
187
|
captureUpdate: "EVENTUALLY";
|
|
194
188
|
};
|