@myoc/excalidraw 0.18.16 → 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-3HLOFB5F.js → chunk-FQEIAL75.js} +14723 -9831
- 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-QQGTICP4.js → chunk-XL2I4W52.js} +2 -2
- package/dist/dev/data/{image-XPEIZ6XQ.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 +3099 -6535
- 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-7HNFGNL7.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 +27 -45
- 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 +18 -30
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +127 -199
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +56 -92
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -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 +9 -15
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -32
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionExport.d.ts +175 -229
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -28
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +80 -104
- package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -36
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -45
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +17 -29
- package/dist/types/excalidraw/actions/actionProperties.d.ts +123 -213
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -19
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -198
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -17
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -17
- 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 +30 -30
- 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 +15 -6
- 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 +4 -4
- package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
- package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
- package/dist/prod/chunk-KKQVTSHB.js +0 -33
- package/dist/prod/data/image-QD7FUQED.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-QQGTICP4.js.map → chunk-XL2I4W52.js.map} +0 -0
- /package/dist/dev/data/{image-XPEIZ6XQ.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 { type SceneBounds } from "@excalidraw/element
|
|
2
|
+
import { type SceneBounds } from "@excalidraw/element";
|
|
3
3
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppState, Offsets } from "../types";
|
|
5
5
|
export declare const actionChangeViewBackgroundColor: {
|
|
@@ -57,7 +57,7 @@ export declare const actionZoomIn: {
|
|
|
57
57
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
58
58
|
isBindingEnabled: boolean;
|
|
59
59
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
60
|
-
suggestedBindings: import("@excalidraw/element
|
|
60
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
61
61
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
62
62
|
frameRendering: {
|
|
63
63
|
enabled: boolean;
|
|
@@ -68,7 +68,7 @@ export declare const actionZoomIn: {
|
|
|
68
68
|
editingFrame: string | null;
|
|
69
69
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
70
70
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
71
|
-
editingLinearElement: import("@excalidraw/element
|
|
71
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
72
72
|
activeTool: {
|
|
73
73
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
74
74
|
locked: boolean;
|
|
@@ -101,7 +101,7 @@ export declare const actionZoomIn: {
|
|
|
101
101
|
name: string | null;
|
|
102
102
|
isResizing: boolean;
|
|
103
103
|
isRotating: boolean;
|
|
104
|
-
openMenu: "
|
|
104
|
+
openMenu: "canvas" | "shape" | null;
|
|
105
105
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
106
106
|
openSidebar: {
|
|
107
107
|
name: string;
|
|
@@ -184,8 +184,8 @@ export declare const actionZoomIn: {
|
|
|
184
184
|
data: import("../charts").Spreadsheet;
|
|
185
185
|
};
|
|
186
186
|
pendingImageElementId: string | null;
|
|
187
|
-
showHyperlinkPopup: false | "
|
|
188
|
-
selectedLinearElement: import("@excalidraw/element
|
|
187
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
188
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
189
189
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
190
190
|
originSnapOffset: {
|
|
191
191
|
x: number;
|
|
@@ -195,23 +195,17 @@ export declare const actionZoomIn: {
|
|
|
195
195
|
followedBy: Set<import("../types").SocketId>;
|
|
196
196
|
isCropping: boolean;
|
|
197
197
|
croppingElementId: string | null;
|
|
198
|
-
searchMatches:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
offsetX: number;
|
|
203
|
-
offsetY: number;
|
|
204
|
-
width: number;
|
|
205
|
-
height: number;
|
|
206
|
-
}[];
|
|
207
|
-
}[];
|
|
198
|
+
searchMatches: Readonly<{
|
|
199
|
+
focusedId: string | null;
|
|
200
|
+
matches: readonly import("../types").SearchMatch[];
|
|
201
|
+
}> | null;
|
|
208
202
|
};
|
|
209
203
|
captureUpdate: "EVENTUALLY";
|
|
210
204
|
};
|
|
211
205
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
212
|
-
keyTest: (event:
|
|
206
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
213
207
|
} & {
|
|
214
|
-
keyTest?: ((event:
|
|
208
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
215
209
|
};
|
|
216
210
|
export declare const actionZoomOut: {
|
|
217
211
|
name: "zoomOut";
|
|
@@ -255,7 +249,7 @@ export declare const actionZoomOut: {
|
|
|
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;
|
|
@@ -266,7 +260,7 @@ export declare const actionZoomOut: {
|
|
|
266
260
|
editingFrame: string | null;
|
|
267
261
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
268
262
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
269
|
-
editingLinearElement: import("@excalidraw/element
|
|
263
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
270
264
|
activeTool: {
|
|
271
265
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
272
266
|
locked: boolean;
|
|
@@ -299,7 +293,7 @@ export declare const actionZoomOut: {
|
|
|
299
293
|
name: string | null;
|
|
300
294
|
isResizing: boolean;
|
|
301
295
|
isRotating: boolean;
|
|
302
|
-
openMenu: "
|
|
296
|
+
openMenu: "canvas" | "shape" | null;
|
|
303
297
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
304
298
|
openSidebar: {
|
|
305
299
|
name: string;
|
|
@@ -382,8 +376,8 @@ export declare const actionZoomOut: {
|
|
|
382
376
|
data: import("../charts").Spreadsheet;
|
|
383
377
|
};
|
|
384
378
|
pendingImageElementId: string | null;
|
|
385
|
-
showHyperlinkPopup: false | "
|
|
386
|
-
selectedLinearElement: import("@excalidraw/element
|
|
379
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
380
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
387
381
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
388
382
|
originSnapOffset: {
|
|
389
383
|
x: number;
|
|
@@ -393,23 +387,17 @@ export declare const actionZoomOut: {
|
|
|
393
387
|
followedBy: Set<import("../types").SocketId>;
|
|
394
388
|
isCropping: boolean;
|
|
395
389
|
croppingElementId: string | null;
|
|
396
|
-
searchMatches:
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
offsetX: number;
|
|
401
|
-
offsetY: number;
|
|
402
|
-
width: number;
|
|
403
|
-
height: number;
|
|
404
|
-
}[];
|
|
405
|
-
}[];
|
|
390
|
+
searchMatches: Readonly<{
|
|
391
|
+
focusedId: string | null;
|
|
392
|
+
matches: readonly import("../types").SearchMatch[];
|
|
393
|
+
}> | null;
|
|
406
394
|
};
|
|
407
395
|
captureUpdate: "EVENTUALLY";
|
|
408
396
|
};
|
|
409
397
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
410
|
-
keyTest: (event:
|
|
398
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
411
399
|
} & {
|
|
412
|
-
keyTest?: ((event:
|
|
400
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
413
401
|
};
|
|
414
402
|
export declare const actionResetZoom: {
|
|
415
403
|
name: "resetZoom";
|
|
@@ -453,7 +441,7 @@ export declare const actionResetZoom: {
|
|
|
453
441
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
454
442
|
isBindingEnabled: boolean;
|
|
455
443
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
456
|
-
suggestedBindings: import("@excalidraw/element
|
|
444
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
457
445
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
458
446
|
frameRendering: {
|
|
459
447
|
enabled: boolean;
|
|
@@ -464,7 +452,7 @@ export declare const actionResetZoom: {
|
|
|
464
452
|
editingFrame: string | null;
|
|
465
453
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
466
454
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
467
|
-
editingLinearElement: import("@excalidraw/element
|
|
455
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
468
456
|
activeTool: {
|
|
469
457
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
470
458
|
locked: boolean;
|
|
@@ -497,7 +485,7 @@ export declare const actionResetZoom: {
|
|
|
497
485
|
name: string | null;
|
|
498
486
|
isResizing: boolean;
|
|
499
487
|
isRotating: boolean;
|
|
500
|
-
openMenu: "
|
|
488
|
+
openMenu: "canvas" | "shape" | null;
|
|
501
489
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
502
490
|
openSidebar: {
|
|
503
491
|
name: string;
|
|
@@ -580,8 +568,8 @@ export declare const actionResetZoom: {
|
|
|
580
568
|
data: import("../charts").Spreadsheet;
|
|
581
569
|
};
|
|
582
570
|
pendingImageElementId: string | null;
|
|
583
|
-
showHyperlinkPopup: false | "
|
|
584
|
-
selectedLinearElement: import("@excalidraw/element
|
|
571
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
572
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
585
573
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
586
574
|
originSnapOffset: {
|
|
587
575
|
x: number;
|
|
@@ -591,23 +579,17 @@ export declare const actionResetZoom: {
|
|
|
591
579
|
followedBy: Set<import("../types").SocketId>;
|
|
592
580
|
isCropping: boolean;
|
|
593
581
|
croppingElementId: string | null;
|
|
594
|
-
searchMatches:
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
offsetX: number;
|
|
599
|
-
offsetY: number;
|
|
600
|
-
width: number;
|
|
601
|
-
height: number;
|
|
602
|
-
}[];
|
|
603
|
-
}[];
|
|
582
|
+
searchMatches: Readonly<{
|
|
583
|
+
focusedId: string | null;
|
|
584
|
+
matches: readonly import("../types").SearchMatch[];
|
|
585
|
+
}> | null;
|
|
604
586
|
};
|
|
605
587
|
captureUpdate: "EVENTUALLY";
|
|
606
588
|
};
|
|
607
589
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
608
|
-
keyTest: (event:
|
|
590
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
609
591
|
} & {
|
|
610
|
-
keyTest?: ((event:
|
|
592
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
611
593
|
};
|
|
612
594
|
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
613
595
|
bounds: SceneBounds;
|
|
@@ -657,7 +639,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
657
639
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
658
640
|
isBindingEnabled: boolean;
|
|
659
641
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
660
|
-
suggestedBindings: import("@excalidraw/element
|
|
642
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
661
643
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
662
644
|
frameRendering: {
|
|
663
645
|
enabled: boolean;
|
|
@@ -668,7 +650,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
668
650
|
editingFrame: string | null;
|
|
669
651
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
670
652
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
671
|
-
editingLinearElement: import("@excalidraw/element
|
|
653
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
672
654
|
activeTool: {
|
|
673
655
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
674
656
|
locked: boolean;
|
|
@@ -701,7 +683,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
701
683
|
name: string | null;
|
|
702
684
|
isResizing: boolean;
|
|
703
685
|
isRotating: boolean;
|
|
704
|
-
openMenu: "
|
|
686
|
+
openMenu: "canvas" | "shape" | null;
|
|
705
687
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
706
688
|
openSidebar: {
|
|
707
689
|
name: string;
|
|
@@ -784,8 +766,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
784
766
|
data: import("../charts").Spreadsheet;
|
|
785
767
|
};
|
|
786
768
|
pendingImageElementId: string | null;
|
|
787
|
-
showHyperlinkPopup: false | "
|
|
788
|
-
selectedLinearElement: import("@excalidraw/element
|
|
769
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
770
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
789
771
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
790
772
|
originSnapOffset: {
|
|
791
773
|
x: number;
|
|
@@ -796,16 +778,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
796
778
|
followedBy: Set<import("../types").SocketId>;
|
|
797
779
|
isCropping: boolean;
|
|
798
780
|
croppingElementId: string | null;
|
|
799
|
-
searchMatches:
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
offsetX: number;
|
|
804
|
-
offsetY: number;
|
|
805
|
-
width: number;
|
|
806
|
-
height: number;
|
|
807
|
-
}[];
|
|
808
|
-
}[];
|
|
781
|
+
searchMatches: Readonly<{
|
|
782
|
+
focusedId: string | null;
|
|
783
|
+
matches: readonly import("../types").SearchMatch[];
|
|
784
|
+
}> | null;
|
|
809
785
|
};
|
|
810
786
|
captureUpdate: "EVENTUALLY";
|
|
811
787
|
};
|
|
@@ -857,7 +833,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
857
833
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
858
834
|
isBindingEnabled: boolean;
|
|
859
835
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
860
|
-
suggestedBindings: import("@excalidraw/element
|
|
836
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
861
837
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
862
838
|
frameRendering: {
|
|
863
839
|
enabled: boolean;
|
|
@@ -868,7 +844,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
868
844
|
editingFrame: string | null;
|
|
869
845
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
870
846
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
871
|
-
editingLinearElement: import("@excalidraw/element
|
|
847
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
872
848
|
activeTool: {
|
|
873
849
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
874
850
|
locked: boolean;
|
|
@@ -901,7 +877,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
901
877
|
name: string | null;
|
|
902
878
|
isResizing: boolean;
|
|
903
879
|
isRotating: boolean;
|
|
904
|
-
openMenu: "
|
|
880
|
+
openMenu: "canvas" | "shape" | null;
|
|
905
881
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
906
882
|
openSidebar: {
|
|
907
883
|
name: string;
|
|
@@ -984,8 +960,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
984
960
|
data: import("../charts").Spreadsheet;
|
|
985
961
|
};
|
|
986
962
|
pendingImageElementId: string | null;
|
|
987
|
-
showHyperlinkPopup: false | "
|
|
988
|
-
selectedLinearElement: import("@excalidraw/element
|
|
963
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
964
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
989
965
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
990
966
|
originSnapOffset: {
|
|
991
967
|
x: number;
|
|
@@ -996,16 +972,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
996
972
|
followedBy: Set<import("../types").SocketId>;
|
|
997
973
|
isCropping: boolean;
|
|
998
974
|
croppingElementId: string | null;
|
|
999
|
-
searchMatches:
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
offsetX: number;
|
|
1004
|
-
offsetY: number;
|
|
1005
|
-
width: number;
|
|
1006
|
-
height: number;
|
|
1007
|
-
}[];
|
|
1008
|
-
}[];
|
|
975
|
+
searchMatches: Readonly<{
|
|
976
|
+
focusedId: string | null;
|
|
977
|
+
matches: readonly import("../types").SearchMatch[];
|
|
978
|
+
}> | null;
|
|
1009
979
|
};
|
|
1010
980
|
captureUpdate: "EVENTUALLY";
|
|
1011
981
|
};
|
|
@@ -1049,7 +1019,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1049
1019
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1050
1020
|
isBindingEnabled: boolean;
|
|
1051
1021
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1052
|
-
suggestedBindings: import("@excalidraw/element
|
|
1022
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1053
1023
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1054
1024
|
frameRendering: {
|
|
1055
1025
|
enabled: boolean;
|
|
@@ -1060,7 +1030,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1060
1030
|
editingFrame: string | null;
|
|
1061
1031
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1062
1032
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1063
|
-
editingLinearElement: import("@excalidraw/element
|
|
1033
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1064
1034
|
activeTool: {
|
|
1065
1035
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1066
1036
|
locked: boolean;
|
|
@@ -1093,7 +1063,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1093
1063
|
name: string | null;
|
|
1094
1064
|
isResizing: boolean;
|
|
1095
1065
|
isRotating: boolean;
|
|
1096
|
-
openMenu: "
|
|
1066
|
+
openMenu: "canvas" | "shape" | null;
|
|
1097
1067
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1098
1068
|
openSidebar: {
|
|
1099
1069
|
name: string;
|
|
@@ -1176,8 +1146,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1176
1146
|
data: import("../charts").Spreadsheet;
|
|
1177
1147
|
};
|
|
1178
1148
|
pendingImageElementId: string | null;
|
|
1179
|
-
showHyperlinkPopup: false | "
|
|
1180
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1149
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1150
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1181
1151
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1182
1152
|
originSnapOffset: {
|
|
1183
1153
|
x: number;
|
|
@@ -1188,22 +1158,16 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1188
1158
|
followedBy: Set<import("../types").SocketId>;
|
|
1189
1159
|
isCropping: boolean;
|
|
1190
1160
|
croppingElementId: string | null;
|
|
1191
|
-
searchMatches:
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
offsetX: number;
|
|
1196
|
-
offsetY: number;
|
|
1197
|
-
width: number;
|
|
1198
|
-
height: number;
|
|
1199
|
-
}[];
|
|
1200
|
-
}[];
|
|
1161
|
+
searchMatches: Readonly<{
|
|
1162
|
+
focusedId: string | null;
|
|
1163
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1164
|
+
}> | null;
|
|
1201
1165
|
};
|
|
1202
1166
|
captureUpdate: "EVENTUALLY";
|
|
1203
1167
|
};
|
|
1204
|
-
keyTest: (event:
|
|
1168
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1205
1169
|
} & {
|
|
1206
|
-
keyTest?: ((event:
|
|
1170
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1207
1171
|
};
|
|
1208
1172
|
export declare const actionZoomToFitSelection: {
|
|
1209
1173
|
name: "zoomToFitSelection";
|
|
@@ -1245,7 +1209,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1245
1209
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1246
1210
|
isBindingEnabled: boolean;
|
|
1247
1211
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1248
|
-
suggestedBindings: import("@excalidraw/element
|
|
1212
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1249
1213
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1250
1214
|
frameRendering: {
|
|
1251
1215
|
enabled: boolean;
|
|
@@ -1256,7 +1220,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1256
1220
|
editingFrame: string | null;
|
|
1257
1221
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1258
1222
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1259
|
-
editingLinearElement: import("@excalidraw/element
|
|
1223
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1260
1224
|
activeTool: {
|
|
1261
1225
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1262
1226
|
locked: boolean;
|
|
@@ -1289,7 +1253,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1289
1253
|
name: string | null;
|
|
1290
1254
|
isResizing: boolean;
|
|
1291
1255
|
isRotating: boolean;
|
|
1292
|
-
openMenu: "
|
|
1256
|
+
openMenu: "canvas" | "shape" | null;
|
|
1293
1257
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1294
1258
|
openSidebar: {
|
|
1295
1259
|
name: string;
|
|
@@ -1372,8 +1336,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1372
1336
|
data: import("../charts").Spreadsheet;
|
|
1373
1337
|
};
|
|
1374
1338
|
pendingImageElementId: string | null;
|
|
1375
|
-
showHyperlinkPopup: false | "
|
|
1376
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1339
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1340
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1377
1341
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1378
1342
|
originSnapOffset: {
|
|
1379
1343
|
x: number;
|
|
@@ -1384,22 +1348,16 @@ export declare const actionZoomToFitSelection: {
|
|
|
1384
1348
|
followedBy: Set<import("../types").SocketId>;
|
|
1385
1349
|
isCropping: boolean;
|
|
1386
1350
|
croppingElementId: string | null;
|
|
1387
|
-
searchMatches:
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
offsetX: number;
|
|
1392
|
-
offsetY: number;
|
|
1393
|
-
width: number;
|
|
1394
|
-
height: number;
|
|
1395
|
-
}[];
|
|
1396
|
-
}[];
|
|
1351
|
+
searchMatches: Readonly<{
|
|
1352
|
+
focusedId: string | null;
|
|
1353
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1354
|
+
}> | null;
|
|
1397
1355
|
};
|
|
1398
1356
|
captureUpdate: "EVENTUALLY";
|
|
1399
1357
|
};
|
|
1400
|
-
keyTest: (event:
|
|
1358
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1401
1359
|
} & {
|
|
1402
|
-
keyTest?: ((event:
|
|
1360
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1403
1361
|
};
|
|
1404
1362
|
export declare const actionZoomToFit: {
|
|
1405
1363
|
name: "zoomToFit";
|
|
@@ -1442,7 +1400,7 @@ export declare const actionZoomToFit: {
|
|
|
1442
1400
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1443
1401
|
isBindingEnabled: boolean;
|
|
1444
1402
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1445
|
-
suggestedBindings: import("@excalidraw/element
|
|
1403
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1446
1404
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1447
1405
|
frameRendering: {
|
|
1448
1406
|
enabled: boolean;
|
|
@@ -1453,7 +1411,7 @@ export declare const actionZoomToFit: {
|
|
|
1453
1411
|
editingFrame: string | null;
|
|
1454
1412
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1455
1413
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1456
|
-
editingLinearElement: import("@excalidraw/element
|
|
1414
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1457
1415
|
activeTool: {
|
|
1458
1416
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1459
1417
|
locked: boolean;
|
|
@@ -1486,7 +1444,7 @@ export declare const actionZoomToFit: {
|
|
|
1486
1444
|
name: string | null;
|
|
1487
1445
|
isResizing: boolean;
|
|
1488
1446
|
isRotating: boolean;
|
|
1489
|
-
openMenu: "
|
|
1447
|
+
openMenu: "canvas" | "shape" | null;
|
|
1490
1448
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1491
1449
|
openSidebar: {
|
|
1492
1450
|
name: string;
|
|
@@ -1569,8 +1527,8 @@ export declare const actionZoomToFit: {
|
|
|
1569
1527
|
data: import("../charts").Spreadsheet;
|
|
1570
1528
|
};
|
|
1571
1529
|
pendingImageElementId: string | null;
|
|
1572
|
-
showHyperlinkPopup: false | "
|
|
1573
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1530
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1531
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1574
1532
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1575
1533
|
originSnapOffset: {
|
|
1576
1534
|
x: number;
|
|
@@ -1581,22 +1539,16 @@ export declare const actionZoomToFit: {
|
|
|
1581
1539
|
followedBy: Set<import("../types").SocketId>;
|
|
1582
1540
|
isCropping: boolean;
|
|
1583
1541
|
croppingElementId: string | null;
|
|
1584
|
-
searchMatches:
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
offsetX: number;
|
|
1589
|
-
offsetY: number;
|
|
1590
|
-
width: number;
|
|
1591
|
-
height: number;
|
|
1592
|
-
}[];
|
|
1593
|
-
}[];
|
|
1542
|
+
searchMatches: Readonly<{
|
|
1543
|
+
focusedId: string | null;
|
|
1544
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1545
|
+
}> | null;
|
|
1594
1546
|
};
|
|
1595
1547
|
captureUpdate: "EVENTUALLY";
|
|
1596
1548
|
};
|
|
1597
|
-
keyTest: (event:
|
|
1549
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1598
1550
|
} & {
|
|
1599
|
-
keyTest?: ((event:
|
|
1551
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1600
1552
|
};
|
|
1601
1553
|
export declare const actionToggleTheme: {
|
|
1602
1554
|
name: "toggleTheme";
|
|
@@ -1636,7 +1588,7 @@ export declare const actionToggleTheme: {
|
|
|
1636
1588
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1637
1589
|
isBindingEnabled: boolean;
|
|
1638
1590
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1639
|
-
suggestedBindings: import("@excalidraw/element
|
|
1591
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1640
1592
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1641
1593
|
frameRendering: {
|
|
1642
1594
|
enabled: boolean;
|
|
@@ -1647,7 +1599,7 @@ export declare const actionToggleTheme: {
|
|
|
1647
1599
|
editingFrame: string | null;
|
|
1648
1600
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1649
1601
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1650
|
-
editingLinearElement: import("@excalidraw/element
|
|
1602
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1651
1603
|
activeTool: {
|
|
1652
1604
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1653
1605
|
locked: boolean;
|
|
@@ -1685,7 +1637,7 @@ export declare const actionToggleTheme: {
|
|
|
1685
1637
|
zoom: Readonly<{
|
|
1686
1638
|
value: import("../types").NormalizedZoomValue;
|
|
1687
1639
|
}>;
|
|
1688
|
-
openMenu: "
|
|
1640
|
+
openMenu: "canvas" | "shape" | null;
|
|
1689
1641
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1690
1642
|
openSidebar: {
|
|
1691
1643
|
name: string;
|
|
@@ -1767,8 +1719,8 @@ export declare const actionToggleTheme: {
|
|
|
1767
1719
|
data: import("../charts").Spreadsheet;
|
|
1768
1720
|
};
|
|
1769
1721
|
pendingImageElementId: string | null;
|
|
1770
|
-
showHyperlinkPopup: false | "
|
|
1771
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1722
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1723
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1772
1724
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1773
1725
|
originSnapOffset: {
|
|
1774
1726
|
x: number;
|
|
@@ -1779,23 +1731,17 @@ export declare const actionToggleTheme: {
|
|
|
1779
1731
|
followedBy: Set<import("../types").SocketId>;
|
|
1780
1732
|
isCropping: boolean;
|
|
1781
1733
|
croppingElementId: string | null;
|
|
1782
|
-
searchMatches:
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
offsetX: number;
|
|
1787
|
-
offsetY: number;
|
|
1788
|
-
width: number;
|
|
1789
|
-
height: number;
|
|
1790
|
-
}[];
|
|
1791
|
-
}[];
|
|
1734
|
+
searchMatches: Readonly<{
|
|
1735
|
+
focusedId: string | null;
|
|
1736
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1737
|
+
}> | null;
|
|
1792
1738
|
};
|
|
1793
1739
|
captureUpdate: "EVENTUALLY";
|
|
1794
1740
|
};
|
|
1795
|
-
keyTest: (event:
|
|
1741
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1796
1742
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1797
1743
|
} & {
|
|
1798
|
-
keyTest?: ((event:
|
|
1744
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1799
1745
|
};
|
|
1800
1746
|
export declare const actionToggleEraserTool: {
|
|
1801
1747
|
name: "toggleEraserTool";
|
|
@@ -1835,7 +1781,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1835
1781
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1836
1782
|
isBindingEnabled: boolean;
|
|
1837
1783
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1838
|
-
suggestedBindings: import("@excalidraw/element
|
|
1784
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1839
1785
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1840
1786
|
frameRendering: {
|
|
1841
1787
|
enabled: boolean;
|
|
@@ -1846,7 +1792,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1846
1792
|
editingFrame: string | null;
|
|
1847
1793
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1848
1794
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1849
|
-
editingLinearElement: import("@excalidraw/element
|
|
1795
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1850
1796
|
penMode: boolean;
|
|
1851
1797
|
penDetected: boolean;
|
|
1852
1798
|
exportBackground: boolean;
|
|
@@ -1879,7 +1825,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1879
1825
|
zoom: Readonly<{
|
|
1880
1826
|
value: import("../types").NormalizedZoomValue;
|
|
1881
1827
|
}>;
|
|
1882
|
-
openMenu: "
|
|
1828
|
+
openMenu: "canvas" | "shape" | null;
|
|
1883
1829
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1884
1830
|
openSidebar: {
|
|
1885
1831
|
name: string;
|
|
@@ -1956,8 +1902,8 @@ export declare const actionToggleEraserTool: {
|
|
|
1956
1902
|
data: import("../charts").Spreadsheet;
|
|
1957
1903
|
};
|
|
1958
1904
|
pendingImageElementId: string | null;
|
|
1959
|
-
showHyperlinkPopup: false | "
|
|
1960
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1905
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1906
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1961
1907
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1962
1908
|
originSnapOffset: {
|
|
1963
1909
|
x: number;
|
|
@@ -1968,22 +1914,16 @@ export declare const actionToggleEraserTool: {
|
|
|
1968
1914
|
followedBy: Set<import("../types").SocketId>;
|
|
1969
1915
|
isCropping: boolean;
|
|
1970
1916
|
croppingElementId: string | null;
|
|
1971
|
-
searchMatches:
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
offsetX: number;
|
|
1976
|
-
offsetY: number;
|
|
1977
|
-
width: number;
|
|
1978
|
-
height: number;
|
|
1979
|
-
}[];
|
|
1980
|
-
}[];
|
|
1917
|
+
searchMatches: Readonly<{
|
|
1918
|
+
focusedId: string | null;
|
|
1919
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1920
|
+
}> | null;
|
|
1981
1921
|
};
|
|
1982
1922
|
captureUpdate: "IMMEDIATELY";
|
|
1983
1923
|
};
|
|
1984
|
-
keyTest: (event:
|
|
1924
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1985
1925
|
} & {
|
|
1986
|
-
keyTest?: ((event:
|
|
1926
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1987
1927
|
};
|
|
1988
1928
|
export declare const actionToggleLassoTool: {
|
|
1989
1929
|
name: "toggleLassoTool";
|
|
@@ -2024,7 +1964,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2024
1964
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2025
1965
|
isBindingEnabled: boolean;
|
|
2026
1966
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2027
|
-
suggestedBindings: import("@excalidraw/element
|
|
1967
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2028
1968
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2029
1969
|
frameRendering: {
|
|
2030
1970
|
enabled: boolean;
|
|
@@ -2035,7 +1975,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2035
1975
|
editingFrame: string | null;
|
|
2036
1976
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2037
1977
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2038
|
-
editingLinearElement: import("@excalidraw/element
|
|
1978
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2039
1979
|
penMode: boolean;
|
|
2040
1980
|
penDetected: boolean;
|
|
2041
1981
|
exportBackground: boolean;
|
|
@@ -2068,7 +2008,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2068
2008
|
zoom: Readonly<{
|
|
2069
2009
|
value: import("../types").NormalizedZoomValue;
|
|
2070
2010
|
}>;
|
|
2071
|
-
openMenu: "
|
|
2011
|
+
openMenu: "canvas" | "shape" | null;
|
|
2072
2012
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2073
2013
|
openSidebar: {
|
|
2074
2014
|
name: string;
|
|
@@ -2145,8 +2085,8 @@ export declare const actionToggleLassoTool: {
|
|
|
2145
2085
|
data: import("../charts").Spreadsheet;
|
|
2146
2086
|
};
|
|
2147
2087
|
pendingImageElementId: string | null;
|
|
2148
|
-
showHyperlinkPopup: false | "
|
|
2149
|
-
selectedLinearElement: import("@excalidraw/element
|
|
2088
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2089
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2150
2090
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2151
2091
|
originSnapOffset: {
|
|
2152
2092
|
x: number;
|
|
@@ -2157,16 +2097,10 @@ export declare const actionToggleLassoTool: {
|
|
|
2157
2097
|
followedBy: Set<import("../types").SocketId>;
|
|
2158
2098
|
isCropping: boolean;
|
|
2159
2099
|
croppingElementId: string | null;
|
|
2160
|
-
searchMatches:
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
offsetX: number;
|
|
2165
|
-
offsetY: number;
|
|
2166
|
-
width: number;
|
|
2167
|
-
height: number;
|
|
2168
|
-
}[];
|
|
2169
|
-
}[];
|
|
2100
|
+
searchMatches: Readonly<{
|
|
2101
|
+
focusedId: string | null;
|
|
2102
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2103
|
+
}> | null;
|
|
2170
2104
|
};
|
|
2171
2105
|
captureUpdate: "NEVER";
|
|
2172
2106
|
};
|
|
@@ -2213,7 +2147,7 @@ export declare const actionToggleHandTool: {
|
|
|
2213
2147
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2214
2148
|
isBindingEnabled: boolean;
|
|
2215
2149
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2216
|
-
suggestedBindings: import("@excalidraw/element
|
|
2150
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2217
2151
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2218
2152
|
frameRendering: {
|
|
2219
2153
|
enabled: boolean;
|
|
@@ -2224,7 +2158,7 @@ export declare const actionToggleHandTool: {
|
|
|
2224
2158
|
editingFrame: string | null;
|
|
2225
2159
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2226
2160
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2227
|
-
editingLinearElement: import("@excalidraw/element
|
|
2161
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2228
2162
|
penMode: boolean;
|
|
2229
2163
|
penDetected: boolean;
|
|
2230
2164
|
exportBackground: boolean;
|
|
@@ -2257,7 +2191,7 @@ export declare const actionToggleHandTool: {
|
|
|
2257
2191
|
zoom: Readonly<{
|
|
2258
2192
|
value: import("../types").NormalizedZoomValue;
|
|
2259
2193
|
}>;
|
|
2260
|
-
openMenu: "
|
|
2194
|
+
openMenu: "canvas" | "shape" | null;
|
|
2261
2195
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2262
2196
|
openSidebar: {
|
|
2263
2197
|
name: string;
|
|
@@ -2334,8 +2268,8 @@ export declare const actionToggleHandTool: {
|
|
|
2334
2268
|
data: import("../charts").Spreadsheet;
|
|
2335
2269
|
};
|
|
2336
2270
|
pendingImageElementId: string | null;
|
|
2337
|
-
showHyperlinkPopup: false | "
|
|
2338
|
-
selectedLinearElement: import("@excalidraw/element
|
|
2271
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2272
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2339
2273
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2340
2274
|
originSnapOffset: {
|
|
2341
2275
|
x: number;
|
|
@@ -2346,20 +2280,14 @@ export declare const actionToggleHandTool: {
|
|
|
2346
2280
|
followedBy: Set<import("../types").SocketId>;
|
|
2347
2281
|
isCropping: boolean;
|
|
2348
2282
|
croppingElementId: string | null;
|
|
2349
|
-
searchMatches:
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
offsetX: number;
|
|
2354
|
-
offsetY: number;
|
|
2355
|
-
width: number;
|
|
2356
|
-
height: number;
|
|
2357
|
-
}[];
|
|
2358
|
-
}[];
|
|
2283
|
+
searchMatches: Readonly<{
|
|
2284
|
+
focusedId: string | null;
|
|
2285
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2286
|
+
}> | null;
|
|
2359
2287
|
};
|
|
2360
2288
|
captureUpdate: "IMMEDIATELY";
|
|
2361
2289
|
};
|
|
2362
|
-
keyTest: (event:
|
|
2290
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
2363
2291
|
} & {
|
|
2364
|
-
keyTest?: ((event:
|
|
2292
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
2365
2293
|
};
|