@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
|
@@ -26,7 +26,7 @@ export declare const actionChangeProjectName: {
|
|
|
26
26
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
27
27
|
isBindingEnabled: boolean;
|
|
28
28
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
-
suggestedBindings: import("@excalidraw/element
|
|
29
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
30
30
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
@@ -37,10 +37,11 @@ export declare const actionChangeProjectName: {
|
|
|
37
37
|
editingFrame: string | null;
|
|
38
38
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
39
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
40
|
-
editingLinearElement: import("@excalidraw/element
|
|
40
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
41
41
|
activeTool: {
|
|
42
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
44
|
+
fromSelection: boolean;
|
|
44
45
|
} & import("../types").ActiveTool;
|
|
45
46
|
penMode: boolean;
|
|
46
47
|
penDetected: boolean;
|
|
@@ -73,7 +74,7 @@ export declare const actionChangeProjectName: {
|
|
|
73
74
|
zoom: Readonly<{
|
|
74
75
|
value: import("../types").NormalizedZoomValue;
|
|
75
76
|
}>;
|
|
76
|
-
openMenu: "
|
|
77
|
+
openMenu: "canvas" | "shape" | null;
|
|
77
78
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
78
79
|
openSidebar: {
|
|
79
80
|
name: string;
|
|
@@ -156,8 +157,8 @@ export declare const actionChangeProjectName: {
|
|
|
156
157
|
data: import("../charts").Spreadsheet;
|
|
157
158
|
};
|
|
158
159
|
pendingImageElementId: string | null;
|
|
159
|
-
showHyperlinkPopup: false | "
|
|
160
|
-
selectedLinearElement: import("@excalidraw/element
|
|
160
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
161
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
162
163
|
originSnapOffset: {
|
|
163
164
|
x: number;
|
|
@@ -168,16 +169,14 @@ export declare const actionChangeProjectName: {
|
|
|
168
169
|
followedBy: Set<import("../types").SocketId>;
|
|
169
170
|
isCropping: boolean;
|
|
170
171
|
croppingElementId: string | null;
|
|
171
|
-
searchMatches:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}[];
|
|
180
|
-
}[];
|
|
172
|
+
searchMatches: Readonly<{
|
|
173
|
+
focusedId: string | null;
|
|
174
|
+
matches: readonly import("../types").SearchMatch[];
|
|
175
|
+
}> | null;
|
|
176
|
+
activeLockedId: string | null;
|
|
177
|
+
lockedMultiSelections: {
|
|
178
|
+
[groupId: string]: true;
|
|
179
|
+
};
|
|
181
180
|
};
|
|
182
181
|
captureUpdate: "EVENTUALLY";
|
|
183
182
|
};
|
|
@@ -213,7 +212,7 @@ export declare const actionChangeExportScale: {
|
|
|
213
212
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
214
213
|
isBindingEnabled: boolean;
|
|
215
214
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
216
|
-
suggestedBindings: import("@excalidraw/element
|
|
215
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
217
216
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
218
217
|
frameRendering: {
|
|
219
218
|
enabled: boolean;
|
|
@@ -224,10 +223,11 @@ export declare const actionChangeExportScale: {
|
|
|
224
223
|
editingFrame: string | null;
|
|
225
224
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
226
225
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
227
|
-
editingLinearElement: import("@excalidraw/element
|
|
226
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
228
227
|
activeTool: {
|
|
229
228
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
230
229
|
locked: boolean;
|
|
230
|
+
fromSelection: boolean;
|
|
231
231
|
} & import("../types").ActiveTool;
|
|
232
232
|
penMode: boolean;
|
|
233
233
|
penDetected: boolean;
|
|
@@ -260,7 +260,7 @@ export declare const actionChangeExportScale: {
|
|
|
260
260
|
zoom: Readonly<{
|
|
261
261
|
value: import("../types").NormalizedZoomValue;
|
|
262
262
|
}>;
|
|
263
|
-
openMenu: "
|
|
263
|
+
openMenu: "canvas" | "shape" | null;
|
|
264
264
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
265
265
|
openSidebar: {
|
|
266
266
|
name: string;
|
|
@@ -343,8 +343,8 @@ export declare const actionChangeExportScale: {
|
|
|
343
343
|
data: import("../charts").Spreadsheet;
|
|
344
344
|
};
|
|
345
345
|
pendingImageElementId: string | null;
|
|
346
|
-
showHyperlinkPopup: false | "
|
|
347
|
-
selectedLinearElement: import("@excalidraw/element
|
|
346
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
347
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
348
348
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
349
349
|
originSnapOffset: {
|
|
350
350
|
x: number;
|
|
@@ -355,16 +355,14 @@ export declare const actionChangeExportScale: {
|
|
|
355
355
|
followedBy: Set<import("../types").SocketId>;
|
|
356
356
|
isCropping: boolean;
|
|
357
357
|
croppingElementId: string | null;
|
|
358
|
-
searchMatches:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}[];
|
|
367
|
-
}[];
|
|
358
|
+
searchMatches: Readonly<{
|
|
359
|
+
focusedId: string | null;
|
|
360
|
+
matches: readonly import("../types").SearchMatch[];
|
|
361
|
+
}> | null;
|
|
362
|
+
activeLockedId: string | null;
|
|
363
|
+
lockedMultiSelections: {
|
|
364
|
+
[groupId: string]: true;
|
|
365
|
+
};
|
|
368
366
|
};
|
|
369
367
|
captureUpdate: "EVENTUALLY";
|
|
370
368
|
};
|
|
@@ -400,7 +398,7 @@ export declare const actionChangeExportBackground: {
|
|
|
400
398
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
401
399
|
isBindingEnabled: boolean;
|
|
402
400
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
403
|
-
suggestedBindings: import("@excalidraw/element
|
|
401
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
404
402
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
405
403
|
frameRendering: {
|
|
406
404
|
enabled: boolean;
|
|
@@ -411,10 +409,11 @@ export declare const actionChangeExportBackground: {
|
|
|
411
409
|
editingFrame: string | null;
|
|
412
410
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
413
411
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
414
|
-
editingLinearElement: import("@excalidraw/element
|
|
412
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
415
413
|
activeTool: {
|
|
416
414
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
417
415
|
locked: boolean;
|
|
416
|
+
fromSelection: boolean;
|
|
418
417
|
} & import("../types").ActiveTool;
|
|
419
418
|
penMode: boolean;
|
|
420
419
|
penDetected: boolean;
|
|
@@ -447,7 +446,7 @@ export declare const actionChangeExportBackground: {
|
|
|
447
446
|
zoom: Readonly<{
|
|
448
447
|
value: import("../types").NormalizedZoomValue;
|
|
449
448
|
}>;
|
|
450
|
-
openMenu: "
|
|
449
|
+
openMenu: "canvas" | "shape" | null;
|
|
451
450
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
452
451
|
openSidebar: {
|
|
453
452
|
name: string;
|
|
@@ -530,8 +529,8 @@ export declare const actionChangeExportBackground: {
|
|
|
530
529
|
data: import("../charts").Spreadsheet;
|
|
531
530
|
};
|
|
532
531
|
pendingImageElementId: string | null;
|
|
533
|
-
showHyperlinkPopup: false | "
|
|
534
|
-
selectedLinearElement: import("@excalidraw/element
|
|
532
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
533
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
535
534
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
536
535
|
originSnapOffset: {
|
|
537
536
|
x: number;
|
|
@@ -542,16 +541,14 @@ export declare const actionChangeExportBackground: {
|
|
|
542
541
|
followedBy: Set<import("../types").SocketId>;
|
|
543
542
|
isCropping: boolean;
|
|
544
543
|
croppingElementId: string | null;
|
|
545
|
-
searchMatches:
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}[];
|
|
554
|
-
}[];
|
|
544
|
+
searchMatches: Readonly<{
|
|
545
|
+
focusedId: string | null;
|
|
546
|
+
matches: readonly import("../types").SearchMatch[];
|
|
547
|
+
}> | null;
|
|
548
|
+
activeLockedId: string | null;
|
|
549
|
+
lockedMultiSelections: {
|
|
550
|
+
[groupId: string]: true;
|
|
551
|
+
};
|
|
555
552
|
};
|
|
556
553
|
captureUpdate: "EVENTUALLY";
|
|
557
554
|
};
|
|
@@ -587,7 +584,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
587
584
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
588
585
|
isBindingEnabled: boolean;
|
|
589
586
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
590
|
-
suggestedBindings: import("@excalidraw/element
|
|
587
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
591
588
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
592
589
|
frameRendering: {
|
|
593
590
|
enabled: boolean;
|
|
@@ -598,10 +595,11 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
598
595
|
editingFrame: string | null;
|
|
599
596
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
600
597
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
601
|
-
editingLinearElement: import("@excalidraw/element
|
|
598
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
602
599
|
activeTool: {
|
|
603
600
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
604
601
|
locked: boolean;
|
|
602
|
+
fromSelection: boolean;
|
|
605
603
|
} & import("../types").ActiveTool;
|
|
606
604
|
penMode: boolean;
|
|
607
605
|
penDetected: boolean;
|
|
@@ -634,7 +632,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
634
632
|
zoom: Readonly<{
|
|
635
633
|
value: import("../types").NormalizedZoomValue;
|
|
636
634
|
}>;
|
|
637
|
-
openMenu: "
|
|
635
|
+
openMenu: "canvas" | "shape" | null;
|
|
638
636
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
639
637
|
openSidebar: {
|
|
640
638
|
name: string;
|
|
@@ -717,8 +715,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
717
715
|
data: import("../charts").Spreadsheet;
|
|
718
716
|
};
|
|
719
717
|
pendingImageElementId: string | null;
|
|
720
|
-
showHyperlinkPopup: false | "
|
|
721
|
-
selectedLinearElement: import("@excalidraw/element
|
|
718
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
719
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
722
720
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
723
721
|
originSnapOffset: {
|
|
724
722
|
x: number;
|
|
@@ -729,16 +727,14 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
729
727
|
followedBy: Set<import("../types").SocketId>;
|
|
730
728
|
isCropping: boolean;
|
|
731
729
|
croppingElementId: string | null;
|
|
732
|
-
searchMatches:
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}[];
|
|
741
|
-
}[];
|
|
730
|
+
searchMatches: Readonly<{
|
|
731
|
+
focusedId: string | null;
|
|
732
|
+
matches: readonly import("../types").SearchMatch[];
|
|
733
|
+
}> | null;
|
|
734
|
+
activeLockedId: string | null;
|
|
735
|
+
lockedMultiSelections: {
|
|
736
|
+
[groupId: string]: true;
|
|
737
|
+
};
|
|
742
738
|
};
|
|
743
739
|
captureUpdate: "EVENTUALLY";
|
|
744
740
|
};
|
|
@@ -779,7 +775,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
779
775
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
780
776
|
isBindingEnabled: boolean;
|
|
781
777
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
782
|
-
suggestedBindings: import("@excalidraw/element
|
|
778
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
783
779
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
784
780
|
frameRendering: {
|
|
785
781
|
enabled: boolean;
|
|
@@ -790,10 +786,11 @@ export declare const actionSaveToActiveFile: {
|
|
|
790
786
|
editingFrame: string | null;
|
|
791
787
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
792
788
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
793
|
-
editingLinearElement: import("@excalidraw/element
|
|
789
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
794
790
|
activeTool: {
|
|
795
791
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
796
792
|
locked: boolean;
|
|
793
|
+
fromSelection: boolean;
|
|
797
794
|
} & import("../types").ActiveTool;
|
|
798
795
|
penMode: boolean;
|
|
799
796
|
penDetected: boolean;
|
|
@@ -827,7 +824,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
827
824
|
zoom: Readonly<{
|
|
828
825
|
value: import("../types").NormalizedZoomValue;
|
|
829
826
|
}>;
|
|
830
|
-
openMenu: "
|
|
827
|
+
openMenu: "canvas" | "shape" | null;
|
|
831
828
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
832
829
|
openSidebar: {
|
|
833
830
|
name: string;
|
|
@@ -904,8 +901,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
904
901
|
data: import("../charts").Spreadsheet;
|
|
905
902
|
};
|
|
906
903
|
pendingImageElementId: string | null;
|
|
907
|
-
showHyperlinkPopup: false | "
|
|
908
|
-
selectedLinearElement: import("@excalidraw/element
|
|
904
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
905
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
909
906
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
910
907
|
originSnapOffset: {
|
|
911
908
|
x: number;
|
|
@@ -916,24 +913,22 @@ export declare const actionSaveToActiveFile: {
|
|
|
916
913
|
followedBy: Set<import("../types").SocketId>;
|
|
917
914
|
isCropping: boolean;
|
|
918
915
|
croppingElementId: string | null;
|
|
919
|
-
searchMatches:
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
}[];
|
|
928
|
-
}[];
|
|
916
|
+
searchMatches: Readonly<{
|
|
917
|
+
focusedId: string | null;
|
|
918
|
+
matches: readonly import("../types").SearchMatch[];
|
|
919
|
+
}> | null;
|
|
920
|
+
activeLockedId: string | null;
|
|
921
|
+
lockedMultiSelections: {
|
|
922
|
+
[groupId: string]: true;
|
|
923
|
+
};
|
|
929
924
|
};
|
|
930
925
|
} | {
|
|
931
926
|
captureUpdate: "EVENTUALLY";
|
|
932
927
|
appState?: undefined;
|
|
933
928
|
}>;
|
|
934
|
-
keyTest: (event:
|
|
929
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
935
930
|
} & {
|
|
936
|
-
keyTest?: ((event:
|
|
931
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
937
932
|
};
|
|
938
933
|
export declare const actionSaveFileToDisk: {
|
|
939
934
|
name: "saveFileToDisk";
|
|
@@ -969,7 +964,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
969
964
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
970
965
|
isBindingEnabled: boolean;
|
|
971
966
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
972
|
-
suggestedBindings: import("@excalidraw/element
|
|
967
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
973
968
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
974
969
|
frameRendering: {
|
|
975
970
|
enabled: boolean;
|
|
@@ -980,10 +975,11 @@ export declare const actionSaveFileToDisk: {
|
|
|
980
975
|
editingFrame: string | null;
|
|
981
976
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
982
977
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
983
|
-
editingLinearElement: import("@excalidraw/element
|
|
978
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
984
979
|
activeTool: {
|
|
985
980
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
986
981
|
locked: boolean;
|
|
982
|
+
fromSelection: boolean;
|
|
987
983
|
} & import("../types").ActiveTool;
|
|
988
984
|
penMode: boolean;
|
|
989
985
|
penDetected: boolean;
|
|
@@ -1017,7 +1013,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1017
1013
|
zoom: Readonly<{
|
|
1018
1014
|
value: import("../types").NormalizedZoomValue;
|
|
1019
1015
|
}>;
|
|
1020
|
-
openMenu: "
|
|
1016
|
+
openMenu: "canvas" | "shape" | null;
|
|
1021
1017
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1022
1018
|
openSidebar: {
|
|
1023
1019
|
name: string;
|
|
@@ -1083,8 +1079,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1083
1079
|
data: import("../charts").Spreadsheet;
|
|
1084
1080
|
};
|
|
1085
1081
|
pendingImageElementId: string | null;
|
|
1086
|
-
showHyperlinkPopup: false | "
|
|
1087
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1082
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1083
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1088
1084
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1089
1085
|
originSnapOffset: {
|
|
1090
1086
|
x: number;
|
|
@@ -1095,25 +1091,23 @@ export declare const actionSaveFileToDisk: {
|
|
|
1095
1091
|
followedBy: Set<import("../types").SocketId>;
|
|
1096
1092
|
isCropping: boolean;
|
|
1097
1093
|
croppingElementId: string | null;
|
|
1098
|
-
searchMatches:
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
}[];
|
|
1107
|
-
}[];
|
|
1094
|
+
searchMatches: Readonly<{
|
|
1095
|
+
focusedId: string | null;
|
|
1096
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1097
|
+
}> | null;
|
|
1098
|
+
activeLockedId: string | null;
|
|
1099
|
+
lockedMultiSelections: {
|
|
1100
|
+
[groupId: string]: true;
|
|
1101
|
+
};
|
|
1108
1102
|
};
|
|
1109
1103
|
} | {
|
|
1110
1104
|
captureUpdate: "EVENTUALLY";
|
|
1111
1105
|
appState?: undefined;
|
|
1112
1106
|
}>;
|
|
1113
|
-
keyTest: (event:
|
|
1107
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1114
1108
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1115
1109
|
} & {
|
|
1116
|
-
keyTest?: ((event:
|
|
1110
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1117
1111
|
};
|
|
1118
1112
|
export declare const actionLoadScene: {
|
|
1119
1113
|
name: "loadScene";
|
|
@@ -1125,120 +1119,54 @@ export declare const actionLoadScene: {
|
|
|
1125
1119
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1126
1120
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1127
1121
|
appState: {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1122
|
+
contextMenu: {
|
|
1123
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1124
|
+
top: number;
|
|
1125
|
+
left: number;
|
|
1126
|
+
} | null;
|
|
1127
|
+
stats: {
|
|
1128
|
+
open: boolean;
|
|
1129
|
+
panels: number;
|
|
1133
1130
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}>;
|
|
1131
|
+
exportWithDarkMode: boolean;
|
|
1132
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1133
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1134
|
+
cursorButton: "up" | "down";
|
|
1139
1135
|
scrollX: number;
|
|
1140
1136
|
scrollY: number;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
} | {
|
|
1145
|
-
name: "ttd";
|
|
1146
|
-
tab: "text-to-diagram" | "mermaid";
|
|
1147
|
-
} | {
|
|
1148
|
-
name: "commandPalette";
|
|
1149
|
-
} | {
|
|
1150
|
-
name: "elementLinkSelector";
|
|
1151
|
-
sourceElementId: string;
|
|
1152
|
-
} | null;
|
|
1153
|
-
editingGroupId: string | null;
|
|
1154
|
-
selectedElementIds: Readonly<{
|
|
1155
|
-
[id: string]: true;
|
|
1156
|
-
}>;
|
|
1157
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1158
|
-
theme: Theme;
|
|
1159
|
-
pendingImageElementId: string | null;
|
|
1137
|
+
showWelcomeScreen: boolean;
|
|
1138
|
+
isLoading: boolean;
|
|
1139
|
+
errorMessage: import("react").ReactNode;
|
|
1160
1140
|
activeEmbeddable: {
|
|
1161
1141
|
element: NonDeletedExcalidrawElement;
|
|
1162
1142
|
state: "hover" | "active";
|
|
1163
1143
|
} | null;
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
selectedGroupIds: {
|
|
1167
|
-
[groupId: string]: boolean;
|
|
1168
|
-
};
|
|
1169
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1144
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1145
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
1170
1146
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1147
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
1171
1148
|
isBindingEnabled: boolean;
|
|
1172
|
-
|
|
1173
|
-
|
|
1149
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1150
|
+
frameRendering: {
|
|
1151
|
+
enabled: boolean;
|
|
1152
|
+
name: boolean;
|
|
1153
|
+
outline: boolean;
|
|
1154
|
+
clip: boolean;
|
|
1155
|
+
};
|
|
1156
|
+
editingFrame: string | null;
|
|
1174
1157
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1175
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1176
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1177
|
-
button?: "up" | "down" | undefined;
|
|
1178
|
-
selectedElementIds?: Readonly<{
|
|
1179
|
-
[id: string]: true;
|
|
1180
|
-
}> | undefined;
|
|
1181
|
-
username?: string | null | undefined;
|
|
1182
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1183
|
-
color?: {
|
|
1184
|
-
background: string;
|
|
1185
|
-
stroke: string;
|
|
1186
|
-
} | undefined;
|
|
1187
|
-
avatarUrl?: string | undefined;
|
|
1188
|
-
id?: string | undefined;
|
|
1189
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1190
|
-
isCurrentUser?: boolean | undefined;
|
|
1191
|
-
isInCall?: boolean | undefined;
|
|
1192
|
-
isSpeaking?: boolean | undefined;
|
|
1193
|
-
isMuted?: boolean | undefined;
|
|
1194
|
-
}>>;
|
|
1195
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1196
|
-
zenModeEnabled: boolean;
|
|
1197
1158
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
1198
|
-
|
|
1199
|
-
croppingElementId: string | null;
|
|
1200
|
-
searchMatches: readonly {
|
|
1201
|
-
id: string;
|
|
1202
|
-
focus: boolean;
|
|
1203
|
-
matchedLines: {
|
|
1204
|
-
offsetX: number;
|
|
1205
|
-
offsetY: number;
|
|
1206
|
-
width: number;
|
|
1207
|
-
height: number;
|
|
1208
|
-
}[];
|
|
1209
|
-
}[];
|
|
1210
|
-
gridModeEnabled: boolean;
|
|
1211
|
-
objectsSnapModeEnabled: boolean;
|
|
1159
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1212
1160
|
activeTool: {
|
|
1213
1161
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1214
1162
|
locked: boolean;
|
|
1163
|
+
fromSelection: boolean;
|
|
1215
1164
|
} & import("../types").ActiveTool;
|
|
1216
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1217
|
-
exportScale: number;
|
|
1218
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1219
|
-
gridSize: number;
|
|
1220
|
-
gridStep: number;
|
|
1221
|
-
currentHoveredFontFamily: number | null;
|
|
1222
|
-
hoveredElementIds: Readonly<{
|
|
1223
|
-
[id: string]: true;
|
|
1224
|
-
}>;
|
|
1225
|
-
contextMenu: {
|
|
1226
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1227
|
-
top: number;
|
|
1228
|
-
left: number;
|
|
1229
|
-
} | null;
|
|
1230
|
-
showWelcomeScreen: boolean;
|
|
1231
|
-
isLoading: boolean;
|
|
1232
|
-
errorMessage: import("react").ReactNode;
|
|
1233
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1234
|
-
resizingElement: NonDeletedExcalidrawElement | null;
|
|
1235
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1236
|
-
editingFrame: string | null;
|
|
1237
1165
|
penMode: boolean;
|
|
1238
1166
|
penDetected: boolean;
|
|
1239
1167
|
exportBackground: boolean;
|
|
1240
1168
|
exportEmbedScene: boolean;
|
|
1241
|
-
|
|
1169
|
+
exportScale: number;
|
|
1242
1170
|
currentItemStrokeColor: string;
|
|
1243
1171
|
currentItemBackgroundColor: string;
|
|
1244
1172
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -1251,32 +1179,83 @@ export declare const actionLoadScene: {
|
|
|
1251
1179
|
currentItemTextAlign: string;
|
|
1252
1180
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1253
1181
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1182
|
+
currentHoveredFontFamily: number | null;
|
|
1254
1183
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1255
1184
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1256
|
-
|
|
1185
|
+
viewBackgroundColor: string;
|
|
1257
1186
|
scrolledOutside: boolean;
|
|
1187
|
+
name: string | null;
|
|
1258
1188
|
isResizing: boolean;
|
|
1259
|
-
|
|
1189
|
+
isRotating: boolean;
|
|
1190
|
+
zoom: Readonly<{
|
|
1191
|
+
value: import("../types").NormalizedZoomValue;
|
|
1192
|
+
}>;
|
|
1193
|
+
openMenu: "canvas" | "shape" | null;
|
|
1260
1194
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1261
1195
|
openSidebar: {
|
|
1262
1196
|
name: string;
|
|
1263
1197
|
tab?: string | undefined;
|
|
1264
1198
|
} | null;
|
|
1199
|
+
openDialog: {
|
|
1200
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1201
|
+
} | {
|
|
1202
|
+
name: "ttd";
|
|
1203
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1204
|
+
} | {
|
|
1205
|
+
name: "commandPalette";
|
|
1206
|
+
} | {
|
|
1207
|
+
name: "elementLinkSelector";
|
|
1208
|
+
sourceElementId: string;
|
|
1209
|
+
} | null;
|
|
1265
1210
|
defaultSidebarDockedPreference: boolean;
|
|
1266
1211
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1212
|
+
selectedElementIds: Readonly<{
|
|
1213
|
+
[id: string]: true;
|
|
1214
|
+
}>;
|
|
1215
|
+
hoveredElementIds: Readonly<{
|
|
1216
|
+
[id: string]: true;
|
|
1217
|
+
}>;
|
|
1267
1218
|
previousSelectedElementIds: {
|
|
1268
1219
|
[id: string]: true;
|
|
1269
1220
|
};
|
|
1221
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1222
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1270
1223
|
toast: {
|
|
1271
1224
|
message: string;
|
|
1272
1225
|
closable?: boolean | undefined;
|
|
1273
1226
|
duration?: number | undefined;
|
|
1274
1227
|
} | null;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1228
|
+
zenModeEnabled: boolean;
|
|
1229
|
+
theme: Theme;
|
|
1230
|
+
gridSize: number;
|
|
1231
|
+
gridStep: number;
|
|
1232
|
+
gridModeEnabled: boolean;
|
|
1233
|
+
viewModeEnabled: boolean;
|
|
1234
|
+
selectedGroupIds: {
|
|
1235
|
+
[groupId: string]: boolean;
|
|
1279
1236
|
};
|
|
1237
|
+
editingGroupId: string | null;
|
|
1238
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1239
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1240
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1241
|
+
button?: "up" | "down" | undefined;
|
|
1242
|
+
selectedElementIds?: Readonly<{
|
|
1243
|
+
[id: string]: true;
|
|
1244
|
+
}> | undefined;
|
|
1245
|
+
username?: string | null | undefined;
|
|
1246
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1247
|
+
color?: {
|
|
1248
|
+
background: string;
|
|
1249
|
+
stroke: string;
|
|
1250
|
+
} | undefined;
|
|
1251
|
+
avatarUrl?: string | undefined;
|
|
1252
|
+
id?: string | undefined;
|
|
1253
|
+
socketId?: import("../types").SocketId | undefined;
|
|
1254
|
+
isCurrentUser?: boolean | undefined;
|
|
1255
|
+
isInCall?: boolean | undefined;
|
|
1256
|
+
isSpeaking?: boolean | undefined;
|
|
1257
|
+
isMuted?: boolean | undefined;
|
|
1258
|
+
}>>;
|
|
1280
1259
|
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1281
1260
|
pasteDialog: {
|
|
1282
1261
|
shown: false;
|
|
@@ -1285,13 +1264,27 @@ export declare const actionLoadScene: {
|
|
|
1285
1264
|
shown: true;
|
|
1286
1265
|
data: import("../charts").Spreadsheet;
|
|
1287
1266
|
};
|
|
1288
|
-
|
|
1267
|
+
pendingImageElementId: string | null;
|
|
1268
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1269
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1270
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1289
1271
|
originSnapOffset: {
|
|
1290
1272
|
x: number;
|
|
1291
1273
|
y: number;
|
|
1292
1274
|
} | null;
|
|
1275
|
+
objectsSnapModeEnabled: boolean;
|
|
1293
1276
|
userToFollow: import("../types").UserToFollow | null;
|
|
1294
1277
|
followedBy: Set<import("../types").SocketId>;
|
|
1278
|
+
isCropping: boolean;
|
|
1279
|
+
croppingElementId: string | null;
|
|
1280
|
+
searchMatches: Readonly<{
|
|
1281
|
+
focusedId: string | null;
|
|
1282
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1283
|
+
}> | null;
|
|
1284
|
+
activeLockedId: string | null;
|
|
1285
|
+
lockedMultiSelections: {
|
|
1286
|
+
[groupId: string]: true;
|
|
1287
|
+
};
|
|
1295
1288
|
};
|
|
1296
1289
|
files: import("../types").BinaryFiles;
|
|
1297
1290
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1316,7 +1309,7 @@ export declare const actionLoadScene: {
|
|
|
1316
1309
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
1317
1310
|
isBindingEnabled: boolean;
|
|
1318
1311
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1319
|
-
suggestedBindings: import("@excalidraw/element
|
|
1312
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1320
1313
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1321
1314
|
frameRendering: {
|
|
1322
1315
|
enabled: boolean;
|
|
@@ -1327,10 +1320,11 @@ export declare const actionLoadScene: {
|
|
|
1327
1320
|
editingFrame: string | null;
|
|
1328
1321
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1329
1322
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
1330
|
-
editingLinearElement: import("@excalidraw/element
|
|
1323
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1331
1324
|
activeTool: {
|
|
1332
1325
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1333
1326
|
locked: boolean;
|
|
1327
|
+
fromSelection: boolean;
|
|
1334
1328
|
} & import("../types").ActiveTool;
|
|
1335
1329
|
penMode: boolean;
|
|
1336
1330
|
penDetected: boolean;
|
|
@@ -1364,7 +1358,7 @@ export declare const actionLoadScene: {
|
|
|
1364
1358
|
zoom: Readonly<{
|
|
1365
1359
|
value: import("../types").NormalizedZoomValue;
|
|
1366
1360
|
}>;
|
|
1367
|
-
openMenu: "
|
|
1361
|
+
openMenu: "canvas" | "shape" | null;
|
|
1368
1362
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1369
1363
|
openSidebar: {
|
|
1370
1364
|
name: string;
|
|
@@ -1447,8 +1441,8 @@ export declare const actionLoadScene: {
|
|
|
1447
1441
|
data: import("../charts").Spreadsheet;
|
|
1448
1442
|
};
|
|
1449
1443
|
pendingImageElementId: string | null;
|
|
1450
|
-
showHyperlinkPopup: false | "
|
|
1451
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1444
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1445
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1452
1446
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1453
1447
|
originSnapOffset: {
|
|
1454
1448
|
x: number;
|
|
@@ -1459,23 +1453,21 @@ export declare const actionLoadScene: {
|
|
|
1459
1453
|
followedBy: Set<import("../types").SocketId>;
|
|
1460
1454
|
isCropping: boolean;
|
|
1461
1455
|
croppingElementId: string | null;
|
|
1462
|
-
searchMatches:
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}[];
|
|
1471
|
-
}[];
|
|
1456
|
+
searchMatches: Readonly<{
|
|
1457
|
+
focusedId: string | null;
|
|
1458
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1459
|
+
}> | null;
|
|
1460
|
+
activeLockedId: string | null;
|
|
1461
|
+
lockedMultiSelections: {
|
|
1462
|
+
[groupId: string]: true;
|
|
1463
|
+
};
|
|
1472
1464
|
};
|
|
1473
1465
|
files: import("../types").BinaryFiles;
|
|
1474
1466
|
captureUpdate: "EVENTUALLY";
|
|
1475
1467
|
}>;
|
|
1476
|
-
keyTest: (event:
|
|
1468
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1477
1469
|
} & {
|
|
1478
|
-
keyTest?: ((event:
|
|
1470
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1479
1471
|
};
|
|
1480
1472
|
export declare const actionExportWithDarkMode: {
|
|
1481
1473
|
name: "exportWithDarkMode";
|
|
@@ -1505,7 +1497,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1505
1497
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
1506
1498
|
isBindingEnabled: boolean;
|
|
1507
1499
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1508
|
-
suggestedBindings: import("@excalidraw/element
|
|
1500
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1509
1501
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1510
1502
|
frameRendering: {
|
|
1511
1503
|
enabled: boolean;
|
|
@@ -1516,10 +1508,11 @@ export declare const actionExportWithDarkMode: {
|
|
|
1516
1508
|
editingFrame: string | null;
|
|
1517
1509
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1518
1510
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
1519
|
-
editingLinearElement: import("@excalidraw/element
|
|
1511
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1520
1512
|
activeTool: {
|
|
1521
1513
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1522
1514
|
locked: boolean;
|
|
1515
|
+
fromSelection: boolean;
|
|
1523
1516
|
} & import("../types").ActiveTool;
|
|
1524
1517
|
penMode: boolean;
|
|
1525
1518
|
penDetected: boolean;
|
|
@@ -1552,7 +1545,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1552
1545
|
zoom: Readonly<{
|
|
1553
1546
|
value: import("../types").NormalizedZoomValue;
|
|
1554
1547
|
}>;
|
|
1555
|
-
openMenu: "
|
|
1548
|
+
openMenu: "canvas" | "shape" | null;
|
|
1556
1549
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1557
1550
|
openSidebar: {
|
|
1558
1551
|
name: string;
|
|
@@ -1635,8 +1628,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
1635
1628
|
data: import("../charts").Spreadsheet;
|
|
1636
1629
|
};
|
|
1637
1630
|
pendingImageElementId: string | null;
|
|
1638
|
-
showHyperlinkPopup: false | "
|
|
1639
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1631
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1632
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1640
1633
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1641
1634
|
originSnapOffset: {
|
|
1642
1635
|
x: number;
|
|
@@ -1647,16 +1640,14 @@ export declare const actionExportWithDarkMode: {
|
|
|
1647
1640
|
followedBy: Set<import("../types").SocketId>;
|
|
1648
1641
|
isCropping: boolean;
|
|
1649
1642
|
croppingElementId: string | null;
|
|
1650
|
-
searchMatches:
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
}[];
|
|
1659
|
-
}[];
|
|
1643
|
+
searchMatches: Readonly<{
|
|
1644
|
+
focusedId: string | null;
|
|
1645
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1646
|
+
}> | null;
|
|
1647
|
+
activeLockedId: string | null;
|
|
1648
|
+
lockedMultiSelections: {
|
|
1649
|
+
[groupId: string]: true;
|
|
1650
|
+
};
|
|
1660
1651
|
};
|
|
1661
1652
|
captureUpdate: "EVENTUALLY";
|
|
1662
1653
|
};
|