@dwelle/excalidraw 0.5.0-ff7b5f2db → 0.5.0-ffade30
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 +2385 -0
- package/dist/dev/{chunk-56C7N44U.js → chunk-CB6O5JO7.js} +16177 -10984
- package/dist/dev/chunk-CB6O5JO7.js.map +7 -0
- package/dist/dev/{chunk-DGCWVQGA.js → chunk-JB4JDZ66.js} +15 -4
- package/dist/dev/chunk-JB4JDZ66.js.map +7 -0
- package/dist/dev/chunk-QXVP5PAI.js +7 -0
- package/dist/dev/chunk-QXVP5PAI.js.map +7 -0
- package/dist/dev/data/{image-BLSI3C2P.js → image-JTJWA4BG.js} +3 -3
- package/dist/dev/index.css +143 -68
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +3978 -6519
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-AAITTNRF.js → en-PIB5PD3P.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-JEM5OQGK.js +33 -0
- package/dist/prod/chunk-JH36RZFS.js +7 -0
- package/dist/prod/{chunk-OV23WS6X.js → chunk-KC3NX2DX.js} +4 -4
- package/dist/prod/data/image-UJJWHTZ6.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +22 -21
- package/dist/prod/locales/{en-YOZMX4VX.js → en-RKTHI3YA.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/colors.d.ts +1 -0
- package/dist/types/common/src/constants.d.ts +11 -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 +22 -5
- 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/binding.d.ts +19 -11
- package/dist/types/element/src/bounds.d.ts +7 -2
- package/dist/types/element/src/collision.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/duplicate.d.ts +10 -13
- 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 +5 -4
- package/dist/types/element/src/heading.d.ts +0 -1
- package/dist/types/element/src/index.d.ts +45 -2
- package/dist/types/element/src/linearElementEditor.d.ts +19 -31
- package/dist/types/element/src/mutateElement.d.ts +10 -2
- package/dist/types/element/src/newElement.d.ts +4 -3
- package/dist/types/element/src/resizeElements.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +11 -5
- package/dist/types/element/src/shapes.d.ts +5 -1
- package/dist/types/element/src/sizeHelpers.d.ts +1 -1
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/textElement.d.ts +5 -3
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +15 -1
- package/dist/types/element/src/types.d.ts +14 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -45
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -30
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -275
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -92
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -15
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +40 -43
- 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 +14 -15
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -47
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -15
- package/dist/types/excalidraw/actions/actionExport.d.ts +219 -228
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +73 -36
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -104
- package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -36
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -14
- package/dist/types/excalidraw/actions/actionLink.d.ts +14 -15
- package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -45
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -29
- package/dist/types/excalidraw/actions/actionProperties.d.ts +207 -214
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -17
- package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -19
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -17
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -17
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -189
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -18
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -18
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -18
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +4 -3
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +40 -30
- package/dist/types/excalidraw/components/App.d.ts +30 -12
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- 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/HotkeyLabel.d.ts +1 -2
- 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 +2 -2
- 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/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- 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 +4 -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/eraser/index.d.ts +14 -0
- 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 +16 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +12 -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/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +30 -7
- 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/point.d.ts +1 -1
- package/dist/types/math/src/polygon.d.ts +1 -0
- package/dist/types/math/src/segment.d.ts +1 -1
- package/dist/types/math/src/types.d.ts +1 -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 +186 -0
- package/package.json +9 -4
- package/dist/dev/chunk-56C7N44U.js.map +0 -7
- package/dist/dev/chunk-DGCWVQGA.js.map +0 -7
- package/dist/dev/chunk-HQHB2BE4.js +0 -7
- package/dist/dev/chunk-HQHB2BE4.js.map +0 -7
- package/dist/prod/chunk-BUJ2ENHZ.js +0 -31
- package/dist/prod/chunk-C3FOHAIA.js +0 -7
- package/dist/prod/data/image-MI7OQWUS.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/data/{image-BLSI3C2P.js.map → image-JTJWA4BG.js.map} +0 -0
- /package/dist/dev/locales/{en-AAITTNRF.js.map → en-PIB5PD3P.js.map} +0 -0
|
@@ -27,7 +27,7 @@ export declare const actionCopy: {
|
|
|
27
27
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
29
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
-
suggestedBindings: import("@excalidraw/element
|
|
30
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
31
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
@@ -38,10 +38,11 @@ export declare const actionCopy: {
|
|
|
38
38
|
editingFrame: string | null;
|
|
39
39
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
40
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
editingLinearElement: import("@excalidraw/element
|
|
41
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
+
fromSelection: boolean;
|
|
45
46
|
} & import("../types").ActiveTool;
|
|
46
47
|
penMode: boolean;
|
|
47
48
|
penDetected: boolean;
|
|
@@ -75,7 +76,7 @@ export declare const actionCopy: {
|
|
|
75
76
|
zoom: Readonly<{
|
|
76
77
|
value: import("../types").NormalizedZoomValue;
|
|
77
78
|
}>;
|
|
78
|
-
openMenu: "
|
|
79
|
+
openMenu: "canvas" | "shape" | null;
|
|
79
80
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
80
81
|
openSidebar: {
|
|
81
82
|
name: string;
|
|
@@ -158,8 +159,8 @@ export declare const actionCopy: {
|
|
|
158
159
|
data: import("../charts").Spreadsheet;
|
|
159
160
|
};
|
|
160
161
|
pendingImageElementId: string | null;
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
162
|
-
selectedLinearElement: import("@excalidraw/element
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
165
|
originSnapOffset: {
|
|
165
166
|
x: number;
|
|
@@ -170,16 +171,14 @@ export declare const actionCopy: {
|
|
|
170
171
|
followedBy: Set<import("../types").SocketId>;
|
|
171
172
|
isCropping: boolean;
|
|
172
173
|
croppingElementId: string | null;
|
|
173
|
-
searchMatches:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}[];
|
|
182
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
178
|
+
activeLockedId: string | null;
|
|
179
|
+
lockedMultiSelections: {
|
|
180
|
+
[groupId: string]: true;
|
|
181
|
+
};
|
|
183
182
|
};
|
|
184
183
|
} | {
|
|
185
184
|
captureUpdate: "EVENTUALLY";
|
|
@@ -216,7 +215,7 @@ export declare const actionPaste: {
|
|
|
216
215
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
217
216
|
isBindingEnabled: boolean;
|
|
218
217
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
219
|
-
suggestedBindings: import("@excalidraw/element
|
|
218
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
220
219
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
221
220
|
frameRendering: {
|
|
222
221
|
enabled: boolean;
|
|
@@ -227,10 +226,11 @@ export declare const actionPaste: {
|
|
|
227
226
|
editingFrame: string | null;
|
|
228
227
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
229
228
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
230
|
-
editingLinearElement: import("@excalidraw/element
|
|
229
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
231
230
|
activeTool: {
|
|
232
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
232
|
locked: boolean;
|
|
233
|
+
fromSelection: boolean;
|
|
234
234
|
} & import("../types").ActiveTool;
|
|
235
235
|
penMode: boolean;
|
|
236
236
|
penDetected: boolean;
|
|
@@ -264,7 +264,7 @@ export declare const actionPaste: {
|
|
|
264
264
|
zoom: Readonly<{
|
|
265
265
|
value: import("../types").NormalizedZoomValue;
|
|
266
266
|
}>;
|
|
267
|
-
openMenu: "
|
|
267
|
+
openMenu: "canvas" | "shape" | null;
|
|
268
268
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
269
269
|
openSidebar: {
|
|
270
270
|
name: string;
|
|
@@ -347,8 +347,8 @@ export declare const actionPaste: {
|
|
|
347
347
|
data: import("../charts").Spreadsheet;
|
|
348
348
|
};
|
|
349
349
|
pendingImageElementId: string | null;
|
|
350
|
-
showHyperlinkPopup: false | "
|
|
351
|
-
selectedLinearElement: import("@excalidraw/element
|
|
350
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
351
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
352
352
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
353
353
|
originSnapOffset: {
|
|
354
354
|
x: number;
|
|
@@ -359,16 +359,14 @@ export declare const actionPaste: {
|
|
|
359
359
|
followedBy: Set<import("../types").SocketId>;
|
|
360
360
|
isCropping: boolean;
|
|
361
361
|
croppingElementId: string | null;
|
|
362
|
-
searchMatches:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}[];
|
|
371
|
-
}[];
|
|
362
|
+
searchMatches: Readonly<{
|
|
363
|
+
focusedId: string | null;
|
|
364
|
+
matches: readonly import("../types").SearchMatch[];
|
|
365
|
+
}> | null;
|
|
366
|
+
activeLockedId: string | null;
|
|
367
|
+
lockedMultiSelections: {
|
|
368
|
+
[groupId: string]: true;
|
|
369
|
+
};
|
|
372
370
|
};
|
|
373
371
|
} | {
|
|
374
372
|
captureUpdate: "EVENTUALLY";
|
|
@@ -407,7 +405,7 @@ export declare const actionCut: {
|
|
|
407
405
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
408
406
|
isBindingEnabled: boolean;
|
|
409
407
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
410
|
-
suggestedBindings: import("@excalidraw/element
|
|
408
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
411
409
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
412
410
|
frameRendering: {
|
|
413
411
|
enabled: boolean;
|
|
@@ -421,6 +419,7 @@ export declare const actionCut: {
|
|
|
421
419
|
activeTool: {
|
|
422
420
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
423
421
|
locked: boolean;
|
|
422
|
+
fromSelection: boolean;
|
|
424
423
|
} & import("../types").ActiveTool;
|
|
425
424
|
penMode: boolean;
|
|
426
425
|
penDetected: boolean;
|
|
@@ -454,7 +453,7 @@ export declare const actionCut: {
|
|
|
454
453
|
zoom: Readonly<{
|
|
455
454
|
value: import("../types").NormalizedZoomValue;
|
|
456
455
|
}>;
|
|
457
|
-
openMenu: "
|
|
456
|
+
openMenu: "canvas" | "shape" | null;
|
|
458
457
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
459
458
|
openSidebar: {
|
|
460
459
|
name: string;
|
|
@@ -537,8 +536,8 @@ export declare const actionCut: {
|
|
|
537
536
|
data: import("../charts").Spreadsheet;
|
|
538
537
|
};
|
|
539
538
|
pendingImageElementId: string | null;
|
|
540
|
-
showHyperlinkPopup: false | "
|
|
541
|
-
selectedLinearElement: import("@excalidraw/element
|
|
539
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
540
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
542
541
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
543
542
|
originSnapOffset: {
|
|
544
543
|
x: number;
|
|
@@ -549,16 +548,14 @@ export declare const actionCut: {
|
|
|
549
548
|
followedBy: Set<import("../types").SocketId>;
|
|
550
549
|
isCropping: boolean;
|
|
551
550
|
croppingElementId: string | null;
|
|
552
|
-
searchMatches:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}[];
|
|
561
|
-
}[];
|
|
551
|
+
searchMatches: Readonly<{
|
|
552
|
+
focusedId: string | null;
|
|
553
|
+
matches: readonly import("../types").SearchMatch[];
|
|
554
|
+
}> | null;
|
|
555
|
+
activeLockedId: string | null;
|
|
556
|
+
lockedMultiSelections: {
|
|
557
|
+
[groupId: string]: true;
|
|
558
|
+
};
|
|
562
559
|
};
|
|
563
560
|
captureUpdate: "IMMEDIATELY";
|
|
564
561
|
} | {
|
|
@@ -613,7 +610,7 @@ export declare const actionCut: {
|
|
|
613
610
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
614
611
|
isBindingEnabled: boolean;
|
|
615
612
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
616
|
-
suggestedBindings: import("@excalidraw/element
|
|
613
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
617
614
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
618
615
|
frameRendering: {
|
|
619
616
|
enabled: boolean;
|
|
@@ -627,6 +624,7 @@ export declare const actionCut: {
|
|
|
627
624
|
activeTool: {
|
|
628
625
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
629
626
|
locked: boolean;
|
|
627
|
+
fromSelection: boolean;
|
|
630
628
|
} & import("../types").ActiveTool;
|
|
631
629
|
penMode: boolean;
|
|
632
630
|
penDetected: boolean;
|
|
@@ -660,7 +658,7 @@ export declare const actionCut: {
|
|
|
660
658
|
zoom: Readonly<{
|
|
661
659
|
value: import("../types").NormalizedZoomValue;
|
|
662
660
|
}>;
|
|
663
|
-
openMenu: "
|
|
661
|
+
openMenu: "canvas" | "shape" | null;
|
|
664
662
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
665
663
|
openSidebar: {
|
|
666
664
|
name: string;
|
|
@@ -743,8 +741,8 @@ export declare const actionCut: {
|
|
|
743
741
|
data: import("../charts").Spreadsheet;
|
|
744
742
|
};
|
|
745
743
|
pendingImageElementId: string | null;
|
|
746
|
-
showHyperlinkPopup: false | "
|
|
747
|
-
selectedLinearElement: import("@excalidraw/element
|
|
744
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
745
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
748
746
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
749
747
|
originSnapOffset: {
|
|
750
748
|
x: number;
|
|
@@ -755,16 +753,14 @@ export declare const actionCut: {
|
|
|
755
753
|
followedBy: Set<import("../types").SocketId>;
|
|
756
754
|
isCropping: boolean;
|
|
757
755
|
croppingElementId: string | null;
|
|
758
|
-
searchMatches:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}[];
|
|
767
|
-
}[];
|
|
756
|
+
searchMatches: Readonly<{
|
|
757
|
+
focusedId: string | null;
|
|
758
|
+
matches: readonly import("../types").SearchMatch[];
|
|
759
|
+
}> | null;
|
|
760
|
+
activeLockedId: string | null;
|
|
761
|
+
lockedMultiSelections: {
|
|
762
|
+
[groupId: string]: true;
|
|
763
|
+
};
|
|
768
764
|
};
|
|
769
765
|
captureUpdate: "IMMEDIATELY";
|
|
770
766
|
} | {
|
|
@@ -773,17 +769,18 @@ export declare const actionCut: {
|
|
|
773
769
|
activeTool: {
|
|
774
770
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
775
771
|
locked: boolean;
|
|
772
|
+
fromSelection: boolean;
|
|
776
773
|
} & import("../types").ActiveTool;
|
|
777
774
|
multiElement: null;
|
|
778
775
|
activeEmbeddable: null;
|
|
779
776
|
selectedLinearElement: null;
|
|
780
|
-
editingGroupId: string | null;
|
|
781
777
|
selectedElementIds: Readonly<{
|
|
782
778
|
[id: string]: true;
|
|
783
779
|
}>;
|
|
784
780
|
selectedGroupIds: {
|
|
785
781
|
[groupId: string]: boolean;
|
|
786
782
|
};
|
|
783
|
+
editingGroupId: string | null;
|
|
787
784
|
contextMenu: {
|
|
788
785
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
789
786
|
top: number;
|
|
@@ -797,7 +794,7 @@ export declare const actionCut: {
|
|
|
797
794
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
798
795
|
isBindingEnabled: boolean;
|
|
799
796
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
800
|
-
suggestedBindings: import("@excalidraw/element
|
|
797
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
801
798
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
802
799
|
frameRendering: {
|
|
803
800
|
enabled: boolean;
|
|
@@ -808,7 +805,7 @@ export declare const actionCut: {
|
|
|
808
805
|
editingFrame: string | null;
|
|
809
806
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
810
807
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
811
|
-
editingLinearElement: import("@excalidraw/element
|
|
808
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
812
809
|
penMode: boolean;
|
|
813
810
|
penDetected: boolean;
|
|
814
811
|
exportBackground: boolean;
|
|
@@ -841,7 +838,7 @@ export declare const actionCut: {
|
|
|
841
838
|
zoom: Readonly<{
|
|
842
839
|
value: import("../types").NormalizedZoomValue;
|
|
843
840
|
}>;
|
|
844
|
-
openMenu: "
|
|
841
|
+
openMenu: "canvas" | "shape" | null;
|
|
845
842
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
846
843
|
openSidebar: {
|
|
847
844
|
name: string;
|
|
@@ -917,7 +914,7 @@ export declare const actionCut: {
|
|
|
917
914
|
data: import("../charts").Spreadsheet;
|
|
918
915
|
};
|
|
919
916
|
pendingImageElementId: string | null;
|
|
920
|
-
showHyperlinkPopup: false | "
|
|
917
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
921
918
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
922
919
|
originSnapOffset: {
|
|
923
920
|
x: number;
|
|
@@ -928,22 +925,20 @@ export declare const actionCut: {
|
|
|
928
925
|
followedBy: Set<import("../types").SocketId>;
|
|
929
926
|
isCropping: boolean;
|
|
930
927
|
croppingElementId: string | null;
|
|
931
|
-
searchMatches:
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
}[];
|
|
940
|
-
}[];
|
|
928
|
+
searchMatches: Readonly<{
|
|
929
|
+
focusedId: string | null;
|
|
930
|
+
matches: readonly import("../types").SearchMatch[];
|
|
931
|
+
}> | null;
|
|
932
|
+
activeLockedId: string | null;
|
|
933
|
+
lockedMultiSelections: {
|
|
934
|
+
[groupId: string]: true;
|
|
935
|
+
};
|
|
941
936
|
};
|
|
942
937
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
943
938
|
};
|
|
944
|
-
keyTest: (event:
|
|
939
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
945
940
|
} & {
|
|
946
|
-
keyTest?: ((event:
|
|
941
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
947
942
|
};
|
|
948
943
|
export declare const actionCopyAsSvg: {
|
|
949
944
|
name: "copyAsSvg";
|
|
@@ -1005,7 +1000,7 @@ export declare const actionCopyAsPng: {
|
|
|
1005
1000
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1006
1001
|
isBindingEnabled: boolean;
|
|
1007
1002
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1008
|
-
suggestedBindings: import("@excalidraw/element
|
|
1003
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1009
1004
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1010
1005
|
frameRendering: {
|
|
1011
1006
|
enabled: boolean;
|
|
@@ -1016,10 +1011,11 @@ export declare const actionCopyAsPng: {
|
|
|
1016
1011
|
editingFrame: string | null;
|
|
1017
1012
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1018
1013
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1019
|
-
editingLinearElement: import("@excalidraw/element
|
|
1014
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1020
1015
|
activeTool: {
|
|
1021
1016
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1022
1017
|
locked: boolean;
|
|
1018
|
+
fromSelection: boolean;
|
|
1023
1019
|
} & import("../types").ActiveTool;
|
|
1024
1020
|
penMode: boolean;
|
|
1025
1021
|
penDetected: boolean;
|
|
@@ -1053,7 +1049,7 @@ export declare const actionCopyAsPng: {
|
|
|
1053
1049
|
zoom: Readonly<{
|
|
1054
1050
|
value: import("../types").NormalizedZoomValue;
|
|
1055
1051
|
}>;
|
|
1056
|
-
openMenu: "
|
|
1052
|
+
openMenu: "canvas" | "shape" | null;
|
|
1057
1053
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1058
1054
|
openSidebar: {
|
|
1059
1055
|
name: string;
|
|
@@ -1136,8 +1132,8 @@ export declare const actionCopyAsPng: {
|
|
|
1136
1132
|
data: import("../charts").Spreadsheet;
|
|
1137
1133
|
};
|
|
1138
1134
|
pendingImageElementId: string | null;
|
|
1139
|
-
showHyperlinkPopup: false | "
|
|
1140
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1135
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1136
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1141
1137
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1142
1138
|
originSnapOffset: {
|
|
1143
1139
|
x: number;
|
|
@@ -1148,24 +1144,22 @@ export declare const actionCopyAsPng: {
|
|
|
1148
1144
|
followedBy: Set<import("../types").SocketId>;
|
|
1149
1145
|
isCropping: boolean;
|
|
1150
1146
|
croppingElementId: string | null;
|
|
1151
|
-
searchMatches:
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}[];
|
|
1160
|
-
}[];
|
|
1147
|
+
searchMatches: Readonly<{
|
|
1148
|
+
focusedId: string | null;
|
|
1149
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1150
|
+
}> | null;
|
|
1151
|
+
activeLockedId: string | null;
|
|
1152
|
+
lockedMultiSelections: {
|
|
1153
|
+
[groupId: string]: true;
|
|
1154
|
+
};
|
|
1161
1155
|
};
|
|
1162
1156
|
captureUpdate: "EVENTUALLY";
|
|
1163
1157
|
}>;
|
|
1164
1158
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1165
|
-
keyTest: (event:
|
|
1159
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1166
1160
|
keywords: string[];
|
|
1167
1161
|
} & {
|
|
1168
|
-
keyTest?: ((event:
|
|
1162
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1169
1163
|
};
|
|
1170
1164
|
export declare const copyText: {
|
|
1171
1165
|
name: "copyText";
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
|
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
suggestedBindings: import("@excalidraw/element
|
|
33
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
34
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
@@ -41,10 +41,11 @@ export declare const actionToggleCropEditor: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element
|
|
44
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
45
|
activeTool: {
|
|
46
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
47
|
locked: boolean;
|
|
48
|
+
fromSelection: boolean;
|
|
48
49
|
} & import("../types").ActiveTool;
|
|
49
50
|
penMode: boolean;
|
|
50
51
|
penDetected: boolean;
|
|
@@ -78,7 +79,7 @@ export declare const actionToggleCropEditor: {
|
|
|
78
79
|
zoom: Readonly<{
|
|
79
80
|
value: import("../types").NormalizedZoomValue;
|
|
80
81
|
}>;
|
|
81
|
-
openMenu: "
|
|
82
|
+
openMenu: "canvas" | "shape" | null;
|
|
82
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
84
|
openSidebar: {
|
|
84
85
|
name: string;
|
|
@@ -161,8 +162,8 @@ export declare const actionToggleCropEditor: {
|
|
|
161
162
|
data: import("../charts").Spreadsheet;
|
|
162
163
|
};
|
|
163
164
|
pendingImageElementId: string | null;
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
165
|
-
selectedLinearElement: import("@excalidraw/element
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
167
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
168
|
originSnapOffset: {
|
|
168
169
|
x: number;
|
|
@@ -171,16 +172,14 @@ export declare const actionToggleCropEditor: {
|
|
|
171
172
|
objectsSnapModeEnabled: boolean;
|
|
172
173
|
userToFollow: import("../types").UserToFollow | null;
|
|
173
174
|
followedBy: Set<import("../types").SocketId>;
|
|
174
|
-
searchMatches:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}[];
|
|
183
|
-
}[];
|
|
175
|
+
searchMatches: Readonly<{
|
|
176
|
+
focusedId: string | null;
|
|
177
|
+
matches: readonly import("../types").SearchMatch[];
|
|
178
|
+
}> | null;
|
|
179
|
+
activeLockedId: string | null;
|
|
180
|
+
lockedMultiSelections: {
|
|
181
|
+
[groupId: string]: true;
|
|
182
|
+
};
|
|
184
183
|
};
|
|
185
184
|
captureUpdate: "IMMEDIATELY";
|
|
186
185
|
};
|