@zsviczian/excalidraw 0.18.0-5 → 0.18.0-50
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/excalidraw.development.js +745 -503
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
- package/dist/styles.development.css +1062 -429
- package/dist/styles.production.css +26 -22
- package/package.json +14 -3
- package/types/common/src/commonObsidianUtils.d.ts +13 -0
- package/types/common/src/constants.d.ts +42 -18
- package/types/common/src/editorInterface.d.ts +35 -0
- package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/types/common/src/font-metadata.d.ts +4 -2
- package/types/common/src/index.d.ts +2 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +20 -5
- package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
- package/types/element/src/align.d.ts +4 -3
- package/types/element/src/binding.d.ts +27 -17
- package/types/element/src/bounds.d.ts +14 -6
- package/types/element/src/collision.d.ts +18 -12
- package/types/element/src/cropElement.d.ts +1 -1
- package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
- package/types/element/src/distance.d.ts +2 -2
- package/types/element/src/distribute.d.ts +2 -1
- package/types/element/src/dragElements.d.ts +3 -2
- package/types/element/src/duplicate.d.ts +10 -13
- package/types/element/src/elbowArrow.d.ts +1 -1
- package/types/element/src/flowchart.d.ts +3 -2
- package/types/element/src/fractionalIndex.d.ts +9 -3
- package/types/element/src/frame.d.ts +5 -4
- package/types/element/src/groups.d.ts +1 -0
- package/types/element/src/index.d.ts +44 -2
- package/types/element/src/linearElementEditor.d.ts +23 -36
- package/types/element/src/mutateElement.d.ts +11 -3
- package/types/element/src/newElement.d.ts +6 -4
- package/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/types/element/src/renderElement.d.ts +4 -1
- package/types/element/src/resizeElements.d.ts +6 -5
- package/types/element/src/resizeTest.d.ts +5 -4
- package/types/element/src/selection.d.ts +11 -5
- package/types/element/src/shape.d.ts +42 -0
- package/types/element/src/sizeHelpers.d.ts +2 -2
- package/types/element/src/store.d.ts +237 -0
- package/types/element/src/textElement.d.ts +5 -3
- package/types/element/src/transformHandles.d.ts +5 -4
- package/types/element/src/typeChecks.d.ts +19 -1
- package/types/element/src/types.d.ts +25 -2
- package/types/element/src/utils.d.ts +16 -6
- package/types/element/src/zindex.d.ts +1 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
- package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
- package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
- package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
- package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
- package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
- package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
- package/types/excalidraw/actions/actionExport.d.ts +237 -174
- package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
- package/types/excalidraw/actions/actionFrame.d.ts +157 -120
- package/types/excalidraw/actions/actionGroup.d.ts +50 -36
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
- package/types/excalidraw/actions/actionLink.d.ts +23 -16
- package/types/excalidraw/actions/actionMenu.d.ts +25 -456
- package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
- package/types/excalidraw/actions/actionProperties.d.ts +629 -273
- package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
- package/types/excalidraw/actions/actionStyles.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
- package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
- package/types/excalidraw/actions/index.d.ts +4 -2
- package/types/excalidraw/actions/types.d.ts +4 -3
- package/types/excalidraw/appState.d.ts +24 -10
- package/types/excalidraw/clipboard.d.ts +68 -5
- package/types/excalidraw/components/Actions.d.ts +20 -7
- package/types/excalidraw/components/App.d.ts +63 -38
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/types/excalidraw/components/Ellipsify.d.ts +3 -0
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +4 -5
- package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/types/excalidraw/components/Popover.d.ts +2 -1
- package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/types/excalidraw/components/Range.d.ts +3 -3
- package/types/excalidraw/components/Section.d.ts +1 -0
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
- package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/types/excalidraw/components/TextField.d.ts +1 -0
- package/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/types/excalidraw/components/TrayMenu.d.ts +26 -0
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/types/excalidraw/components/icons.d.ts +13 -0
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/types/excalidraw/components/shapes.d.ts +115 -5
- package/types/excalidraw/data/blob.d.ts +3 -7
- package/types/excalidraw/data/reconcile.d.ts +1 -0
- package/types/excalidraw/data/restore.d.ts +6 -1
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/types.d.ts +4 -1
- package/types/excalidraw/editor-jotai.d.ts +6 -6
- package/types/excalidraw/eraser/index.d.ts +12 -0
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/history.d.ts +30 -22
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/types/excalidraw/index.d.ts +15 -14
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/lasso/utils.d.ts +3 -3
- package/types/excalidraw/obsidianUtils.d.ts +22 -4
- package/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/types/excalidraw/scene/types.d.ts +5 -3
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +68 -30
- package/types/excalidraw/webpack.dev.config.d.ts +2 -0
- package/types/excalidraw/webpack.prod.config.d.ts +2 -0
- package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/types/math/src/angle.d.ts +2 -0
- package/types/math/src/constants.d.ts +3 -0
- package/types/math/src/curve.d.ts +34 -0
- package/types/math/src/index.d.ts +1 -0
- package/types/math/src/point.d.ts +1 -1
- package/types/math/src/rectangle.d.ts +2 -0
- package/types/math/src/segment.d.ts +1 -0
- package/types/math/src/types.d.ts +1 -0
- package/types/math/src/vector.d.ts +8 -2
- package/types/utils/src/bbox.d.ts +1 -1
- package/types/utils/src/index.d.ts +1 -1
- package/types/utils/src/withinBounds.d.ts +1 -1
- package/types/element/src/Shape.d.ts +0 -17
- package/types/element/src/ShapeCache.d.ts +0 -25
- package/types/element/src/shapes.d.ts +0 -23
- package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/types/excalidraw/store.d.ts +0 -129
- package/types/excalidraw/visualdebug.d.ts +0 -41
- package/types/utils/src/collision.d.ts +0 -8
|
@@ -26,23 +26,28 @@ export declare const actionCopy: {
|
|
|
26
26
|
selectionElement: import("@excalidraw/element/types").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;
|
|
33
33
|
name: boolean;
|
|
34
34
|
outline: boolean;
|
|
35
35
|
clip: boolean;
|
|
36
|
+
markerName: boolean;
|
|
37
|
+
markerEnabled: boolean;
|
|
36
38
|
};
|
|
37
39
|
editingFrame: string | null;
|
|
38
40
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
41
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
41
42
|
activeTool: {
|
|
42
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
44
|
locked: boolean;
|
|
44
45
|
fromSelection: boolean;
|
|
45
46
|
} & import("../types").ActiveTool;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
46
51
|
penMode: boolean;
|
|
47
52
|
penDetected: boolean;
|
|
48
53
|
exportBackground: boolean;
|
|
@@ -64,6 +69,7 @@ export declare const actionCopy: {
|
|
|
64
69
|
currentHoveredFontFamily: number | null;
|
|
65
70
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
71
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
72
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
67
73
|
viewBackgroundColor: string;
|
|
68
74
|
scrollX: number;
|
|
69
75
|
scrollY: number;
|
|
@@ -75,8 +81,8 @@ export declare const actionCopy: {
|
|
|
75
81
|
zoom: Readonly<{
|
|
76
82
|
value: import("../types").NormalizedZoomValue;
|
|
77
83
|
}>;
|
|
78
|
-
openMenu: "
|
|
79
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
|
+
openMenu: "canvas" | "shape" | null;
|
|
85
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
80
86
|
openSidebar: {
|
|
81
87
|
name: string;
|
|
82
88
|
tab?: string | undefined;
|
|
@@ -157,10 +163,8 @@ export declare const actionCopy: {
|
|
|
157
163
|
shown: true;
|
|
158
164
|
data: import("../charts").Spreadsheet;
|
|
159
165
|
};
|
|
160
|
-
|
|
161
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
166
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
162
167
|
linkOpacity: number;
|
|
163
|
-
trayModeEnabled: boolean;
|
|
164
168
|
colorPalette?: {
|
|
165
169
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
166
170
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -173,6 +177,7 @@ export declare const actionCopy: {
|
|
|
173
177
|
} | undefined;
|
|
174
178
|
allowWheelZoom?: boolean | undefined;
|
|
175
179
|
allowPinchZoom?: boolean | undefined;
|
|
180
|
+
disableContextMenu: boolean;
|
|
176
181
|
pinnedScripts?: string[] | undefined;
|
|
177
182
|
customPens?: any[] | undefined;
|
|
178
183
|
currentStrokeOptions?: any;
|
|
@@ -181,6 +186,10 @@ export declare const actionCopy: {
|
|
|
181
186
|
Bold: string;
|
|
182
187
|
Regular: string;
|
|
183
188
|
};
|
|
189
|
+
gridDirection: {
|
|
190
|
+
horizontal: boolean;
|
|
191
|
+
vertical: boolean;
|
|
192
|
+
};
|
|
184
193
|
highlightSearchResult: boolean;
|
|
185
194
|
dynamicStyle: {
|
|
186
195
|
[x: string]: string;
|
|
@@ -191,7 +200,7 @@ export declare const actionCopy: {
|
|
|
191
200
|
nameColor: string;
|
|
192
201
|
};
|
|
193
202
|
invertBindingBehaviour: boolean;
|
|
194
|
-
selectedLinearElement: import("@excalidraw/element
|
|
203
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
195
204
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
196
205
|
originSnapOffset: {
|
|
197
206
|
x: number;
|
|
@@ -202,16 +211,14 @@ export declare const actionCopy: {
|
|
|
202
211
|
followedBy: Set<import("../types").SocketId>;
|
|
203
212
|
isCropping: boolean;
|
|
204
213
|
croppingElementId: string | null;
|
|
205
|
-
searchMatches:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}[];
|
|
214
|
-
}[];
|
|
214
|
+
searchMatches: Readonly<{
|
|
215
|
+
focusedId: string | null;
|
|
216
|
+
matches: readonly import("../types").SearchMatch[];
|
|
217
|
+
}> | null;
|
|
218
|
+
activeLockedId: string | null;
|
|
219
|
+
lockedMultiSelections: {
|
|
220
|
+
[groupId: string]: true;
|
|
221
|
+
};
|
|
215
222
|
};
|
|
216
223
|
} | {
|
|
217
224
|
captureUpdate: "EVENTUALLY";
|
|
@@ -248,23 +255,28 @@ export declare const actionPaste: {
|
|
|
248
255
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
249
256
|
isBindingEnabled: boolean;
|
|
250
257
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
251
|
-
suggestedBindings: import("@excalidraw/element
|
|
258
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
252
259
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
253
260
|
frameRendering: {
|
|
254
261
|
enabled: boolean;
|
|
255
262
|
name: boolean;
|
|
256
263
|
outline: boolean;
|
|
257
264
|
clip: boolean;
|
|
265
|
+
markerName: boolean;
|
|
266
|
+
markerEnabled: boolean;
|
|
258
267
|
};
|
|
259
268
|
editingFrame: string | null;
|
|
260
269
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
261
270
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
262
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
263
271
|
activeTool: {
|
|
264
272
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
265
273
|
locked: boolean;
|
|
266
274
|
fromSelection: boolean;
|
|
267
275
|
} & import("../types").ActiveTool;
|
|
276
|
+
preferredSelectionTool: {
|
|
277
|
+
type: "selection" | "lasso";
|
|
278
|
+
initialized: boolean;
|
|
279
|
+
};
|
|
268
280
|
penMode: boolean;
|
|
269
281
|
penDetected: boolean;
|
|
270
282
|
exportBackground: boolean;
|
|
@@ -286,6 +298,7 @@ export declare const actionPaste: {
|
|
|
286
298
|
currentHoveredFontFamily: number | null;
|
|
287
299
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
288
300
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
301
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
289
302
|
viewBackgroundColor: string;
|
|
290
303
|
scrollX: number;
|
|
291
304
|
scrollY: number;
|
|
@@ -297,8 +310,8 @@ export declare const actionPaste: {
|
|
|
297
310
|
zoom: Readonly<{
|
|
298
311
|
value: import("../types").NormalizedZoomValue;
|
|
299
312
|
}>;
|
|
300
|
-
openMenu: "
|
|
301
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
313
|
+
openMenu: "canvas" | "shape" | null;
|
|
314
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
302
315
|
openSidebar: {
|
|
303
316
|
name: string;
|
|
304
317
|
tab?: string | undefined;
|
|
@@ -379,10 +392,8 @@ export declare const actionPaste: {
|
|
|
379
392
|
shown: true;
|
|
380
393
|
data: import("../charts").Spreadsheet;
|
|
381
394
|
};
|
|
382
|
-
|
|
383
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
395
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
384
396
|
linkOpacity: number;
|
|
385
|
-
trayModeEnabled: boolean;
|
|
386
397
|
colorPalette?: {
|
|
387
398
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
388
399
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -395,6 +406,7 @@ export declare const actionPaste: {
|
|
|
395
406
|
} | undefined;
|
|
396
407
|
allowWheelZoom?: boolean | undefined;
|
|
397
408
|
allowPinchZoom?: boolean | undefined;
|
|
409
|
+
disableContextMenu: boolean;
|
|
398
410
|
pinnedScripts?: string[] | undefined;
|
|
399
411
|
customPens?: any[] | undefined;
|
|
400
412
|
currentStrokeOptions?: any;
|
|
@@ -403,6 +415,10 @@ export declare const actionPaste: {
|
|
|
403
415
|
Bold: string;
|
|
404
416
|
Regular: string;
|
|
405
417
|
};
|
|
418
|
+
gridDirection: {
|
|
419
|
+
horizontal: boolean;
|
|
420
|
+
vertical: boolean;
|
|
421
|
+
};
|
|
406
422
|
highlightSearchResult: boolean;
|
|
407
423
|
dynamicStyle: {
|
|
408
424
|
[x: string]: string;
|
|
@@ -413,7 +429,7 @@ export declare const actionPaste: {
|
|
|
413
429
|
nameColor: string;
|
|
414
430
|
};
|
|
415
431
|
invertBindingBehaviour: boolean;
|
|
416
|
-
selectedLinearElement: import("@excalidraw/element
|
|
432
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
417
433
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
418
434
|
originSnapOffset: {
|
|
419
435
|
x: number;
|
|
@@ -424,16 +440,14 @@ export declare const actionPaste: {
|
|
|
424
440
|
followedBy: Set<import("../types").SocketId>;
|
|
425
441
|
isCropping: boolean;
|
|
426
442
|
croppingElementId: string | null;
|
|
427
|
-
searchMatches:
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}[];
|
|
436
|
-
}[];
|
|
443
|
+
searchMatches: Readonly<{
|
|
444
|
+
focusedId: string | null;
|
|
445
|
+
matches: readonly import("../types").SearchMatch[];
|
|
446
|
+
}> | null;
|
|
447
|
+
activeLockedId: string | null;
|
|
448
|
+
lockedMultiSelections: {
|
|
449
|
+
[groupId: string]: true;
|
|
450
|
+
};
|
|
437
451
|
};
|
|
438
452
|
} | {
|
|
439
453
|
captureUpdate: "EVENTUALLY";
|
|
@@ -453,7 +467,7 @@ export declare const actionCut: {
|
|
|
453
467
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
454
468
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
455
469
|
appState: {
|
|
456
|
-
|
|
470
|
+
selectedLinearElement: null;
|
|
457
471
|
contextMenu: {
|
|
458
472
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
459
473
|
top: number;
|
|
@@ -472,13 +486,15 @@ export declare const actionCut: {
|
|
|
472
486
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
473
487
|
isBindingEnabled: boolean;
|
|
474
488
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
475
|
-
suggestedBindings: import("@excalidraw/element
|
|
489
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
476
490
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
477
491
|
frameRendering: {
|
|
478
492
|
enabled: boolean;
|
|
479
493
|
name: boolean;
|
|
480
494
|
outline: boolean;
|
|
481
495
|
clip: boolean;
|
|
496
|
+
markerName: boolean;
|
|
497
|
+
markerEnabled: boolean;
|
|
482
498
|
};
|
|
483
499
|
editingFrame: string | null;
|
|
484
500
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
@@ -488,6 +504,10 @@ export declare const actionCut: {
|
|
|
488
504
|
locked: boolean;
|
|
489
505
|
fromSelection: boolean;
|
|
490
506
|
} & import("../types").ActiveTool;
|
|
507
|
+
preferredSelectionTool: {
|
|
508
|
+
type: "selection" | "lasso";
|
|
509
|
+
initialized: boolean;
|
|
510
|
+
};
|
|
491
511
|
penMode: boolean;
|
|
492
512
|
penDetected: boolean;
|
|
493
513
|
exportBackground: boolean;
|
|
@@ -509,6 +529,7 @@ export declare const actionCut: {
|
|
|
509
529
|
currentHoveredFontFamily: number | null;
|
|
510
530
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
511
531
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
532
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
512
533
|
viewBackgroundColor: string;
|
|
513
534
|
scrollX: number;
|
|
514
535
|
scrollY: number;
|
|
@@ -520,8 +541,8 @@ export declare const actionCut: {
|
|
|
520
541
|
zoom: Readonly<{
|
|
521
542
|
value: import("../types").NormalizedZoomValue;
|
|
522
543
|
}>;
|
|
523
|
-
openMenu: "
|
|
524
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
544
|
+
openMenu: "canvas" | "shape" | null;
|
|
545
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
525
546
|
openSidebar: {
|
|
526
547
|
name: string;
|
|
527
548
|
tab?: string | undefined;
|
|
@@ -602,10 +623,8 @@ export declare const actionCut: {
|
|
|
602
623
|
shown: true;
|
|
603
624
|
data: import("../charts").Spreadsheet;
|
|
604
625
|
};
|
|
605
|
-
|
|
606
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
626
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
607
627
|
linkOpacity: number;
|
|
608
|
-
trayModeEnabled: boolean;
|
|
609
628
|
colorPalette?: {
|
|
610
629
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
611
630
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -618,6 +637,7 @@ export declare const actionCut: {
|
|
|
618
637
|
} | undefined;
|
|
619
638
|
allowWheelZoom?: boolean | undefined;
|
|
620
639
|
allowPinchZoom?: boolean | undefined;
|
|
640
|
+
disableContextMenu: boolean;
|
|
621
641
|
pinnedScripts?: string[] | undefined;
|
|
622
642
|
customPens?: any[] | undefined;
|
|
623
643
|
currentStrokeOptions?: any;
|
|
@@ -626,6 +646,10 @@ export declare const actionCut: {
|
|
|
626
646
|
Bold: string;
|
|
627
647
|
Regular: string;
|
|
628
648
|
};
|
|
649
|
+
gridDirection: {
|
|
650
|
+
horizontal: boolean;
|
|
651
|
+
vertical: boolean;
|
|
652
|
+
};
|
|
629
653
|
highlightSearchResult: boolean;
|
|
630
654
|
dynamicStyle: {
|
|
631
655
|
[x: string]: string;
|
|
@@ -636,7 +660,6 @@ export declare const actionCut: {
|
|
|
636
660
|
nameColor: string;
|
|
637
661
|
};
|
|
638
662
|
invertBindingBehaviour: boolean;
|
|
639
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
640
663
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
641
664
|
originSnapOffset: {
|
|
642
665
|
x: number;
|
|
@@ -647,22 +670,20 @@ export declare const actionCut: {
|
|
|
647
670
|
followedBy: Set<import("../types").SocketId>;
|
|
648
671
|
isCropping: boolean;
|
|
649
672
|
croppingElementId: string | null;
|
|
650
|
-
searchMatches:
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}[];
|
|
659
|
-
}[];
|
|
673
|
+
searchMatches: Readonly<{
|
|
674
|
+
focusedId: string | null;
|
|
675
|
+
matches: readonly import("../types").SearchMatch[];
|
|
676
|
+
}> | null;
|
|
677
|
+
activeLockedId: string | null;
|
|
678
|
+
lockedMultiSelections: {
|
|
679
|
+
[groupId: string]: true;
|
|
680
|
+
};
|
|
660
681
|
};
|
|
661
682
|
captureUpdate: "IMMEDIATELY";
|
|
662
683
|
} | {
|
|
663
684
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
664
685
|
appState: {
|
|
665
|
-
|
|
686
|
+
selectedLinearElement: {
|
|
666
687
|
selectedPointsIndices: number[];
|
|
667
688
|
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
668
689
|
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
@@ -692,6 +713,8 @@ export declare const actionCut: {
|
|
|
692
713
|
hoverPointIndex: number;
|
|
693
714
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
694
715
|
elbowed: boolean;
|
|
716
|
+
customLineAngle: number | null;
|
|
717
|
+
isEditing: boolean;
|
|
695
718
|
};
|
|
696
719
|
contextMenu: {
|
|
697
720
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -711,13 +734,15 @@ export declare const actionCut: {
|
|
|
711
734
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
712
735
|
isBindingEnabled: boolean;
|
|
713
736
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
714
|
-
suggestedBindings: import("@excalidraw/element
|
|
737
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
715
738
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
716
739
|
frameRendering: {
|
|
717
740
|
enabled: boolean;
|
|
718
741
|
name: boolean;
|
|
719
742
|
outline: boolean;
|
|
720
743
|
clip: boolean;
|
|
744
|
+
markerName: boolean;
|
|
745
|
+
markerEnabled: boolean;
|
|
721
746
|
};
|
|
722
747
|
editingFrame: string | null;
|
|
723
748
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
@@ -727,6 +752,10 @@ export declare const actionCut: {
|
|
|
727
752
|
locked: boolean;
|
|
728
753
|
fromSelection: boolean;
|
|
729
754
|
} & import("../types").ActiveTool;
|
|
755
|
+
preferredSelectionTool: {
|
|
756
|
+
type: "selection" | "lasso";
|
|
757
|
+
initialized: boolean;
|
|
758
|
+
};
|
|
730
759
|
penMode: boolean;
|
|
731
760
|
penDetected: boolean;
|
|
732
761
|
exportBackground: boolean;
|
|
@@ -748,6 +777,7 @@ export declare const actionCut: {
|
|
|
748
777
|
currentHoveredFontFamily: number | null;
|
|
749
778
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
750
779
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
780
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
751
781
|
viewBackgroundColor: string;
|
|
752
782
|
scrollX: number;
|
|
753
783
|
scrollY: number;
|
|
@@ -759,8 +789,8 @@ export declare const actionCut: {
|
|
|
759
789
|
zoom: Readonly<{
|
|
760
790
|
value: import("../types").NormalizedZoomValue;
|
|
761
791
|
}>;
|
|
762
|
-
openMenu: "
|
|
763
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
792
|
+
openMenu: "canvas" | "shape" | null;
|
|
793
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
764
794
|
openSidebar: {
|
|
765
795
|
name: string;
|
|
766
796
|
tab?: string | undefined;
|
|
@@ -841,10 +871,8 @@ export declare const actionCut: {
|
|
|
841
871
|
shown: true;
|
|
842
872
|
data: import("../charts").Spreadsheet;
|
|
843
873
|
};
|
|
844
|
-
|
|
845
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
874
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
846
875
|
linkOpacity: number;
|
|
847
|
-
trayModeEnabled: boolean;
|
|
848
876
|
colorPalette?: {
|
|
849
877
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
850
878
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -857,6 +885,7 @@ export declare const actionCut: {
|
|
|
857
885
|
} | undefined;
|
|
858
886
|
allowWheelZoom?: boolean | undefined;
|
|
859
887
|
allowPinchZoom?: boolean | undefined;
|
|
888
|
+
disableContextMenu: boolean;
|
|
860
889
|
pinnedScripts?: string[] | undefined;
|
|
861
890
|
customPens?: any[] | undefined;
|
|
862
891
|
currentStrokeOptions?: any;
|
|
@@ -865,6 +894,10 @@ export declare const actionCut: {
|
|
|
865
894
|
Bold: string;
|
|
866
895
|
Regular: string;
|
|
867
896
|
};
|
|
897
|
+
gridDirection: {
|
|
898
|
+
horizontal: boolean;
|
|
899
|
+
vertical: boolean;
|
|
900
|
+
};
|
|
868
901
|
highlightSearchResult: boolean;
|
|
869
902
|
dynamicStyle: {
|
|
870
903
|
[x: string]: string;
|
|
@@ -875,7 +908,6 @@ export declare const actionCut: {
|
|
|
875
908
|
nameColor: string;
|
|
876
909
|
};
|
|
877
910
|
invertBindingBehaviour: boolean;
|
|
878
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
879
911
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
880
912
|
originSnapOffset: {
|
|
881
913
|
x: number;
|
|
@@ -886,16 +918,14 @@ export declare const actionCut: {
|
|
|
886
918
|
followedBy: Set<import("../types").SocketId>;
|
|
887
919
|
isCropping: boolean;
|
|
888
920
|
croppingElementId: string | null;
|
|
889
|
-
searchMatches:
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}[];
|
|
898
|
-
}[];
|
|
921
|
+
searchMatches: Readonly<{
|
|
922
|
+
focusedId: string | null;
|
|
923
|
+
matches: readonly import("../types").SearchMatch[];
|
|
924
|
+
}> | null;
|
|
925
|
+
activeLockedId: string | null;
|
|
926
|
+
lockedMultiSelections: {
|
|
927
|
+
[groupId: string]: true;
|
|
928
|
+
};
|
|
899
929
|
};
|
|
900
930
|
captureUpdate: "IMMEDIATELY";
|
|
901
931
|
} | {
|
|
@@ -929,18 +959,23 @@ export declare const actionCut: {
|
|
|
929
959
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
930
960
|
isBindingEnabled: boolean;
|
|
931
961
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
932
|
-
suggestedBindings: import("@excalidraw/element
|
|
962
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
933
963
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
934
964
|
frameRendering: {
|
|
935
965
|
enabled: boolean;
|
|
936
966
|
name: boolean;
|
|
937
967
|
outline: boolean;
|
|
938
968
|
clip: boolean;
|
|
969
|
+
markerName: boolean;
|
|
970
|
+
markerEnabled: boolean;
|
|
939
971
|
};
|
|
940
972
|
editingFrame: string | null;
|
|
941
973
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
942
974
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
943
|
-
|
|
975
|
+
preferredSelectionTool: {
|
|
976
|
+
type: "selection" | "lasso";
|
|
977
|
+
initialized: boolean;
|
|
978
|
+
};
|
|
944
979
|
penMode: boolean;
|
|
945
980
|
penDetected: boolean;
|
|
946
981
|
exportBackground: boolean;
|
|
@@ -962,6 +997,7 @@ export declare const actionCut: {
|
|
|
962
997
|
currentHoveredFontFamily: number | null;
|
|
963
998
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
964
999
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1000
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
965
1001
|
viewBackgroundColor: string;
|
|
966
1002
|
scrollX: number;
|
|
967
1003
|
scrollY: number;
|
|
@@ -973,8 +1009,8 @@ export declare const actionCut: {
|
|
|
973
1009
|
zoom: Readonly<{
|
|
974
1010
|
value: import("../types").NormalizedZoomValue;
|
|
975
1011
|
}>;
|
|
976
|
-
openMenu: "
|
|
977
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1012
|
+
openMenu: "canvas" | "shape" | null;
|
|
1013
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
978
1014
|
openSidebar: {
|
|
979
1015
|
name: string;
|
|
980
1016
|
tab?: string | undefined;
|
|
@@ -1048,10 +1084,8 @@ export declare const actionCut: {
|
|
|
1048
1084
|
shown: true;
|
|
1049
1085
|
data: import("../charts").Spreadsheet;
|
|
1050
1086
|
};
|
|
1051
|
-
|
|
1052
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1087
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1053
1088
|
linkOpacity: number;
|
|
1054
|
-
trayModeEnabled: boolean;
|
|
1055
1089
|
colorPalette?: {
|
|
1056
1090
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1057
1091
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1064,6 +1098,7 @@ export declare const actionCut: {
|
|
|
1064
1098
|
} | undefined;
|
|
1065
1099
|
allowWheelZoom?: boolean | undefined;
|
|
1066
1100
|
allowPinchZoom?: boolean | undefined;
|
|
1101
|
+
disableContextMenu: boolean;
|
|
1067
1102
|
pinnedScripts?: string[] | undefined;
|
|
1068
1103
|
customPens?: any[] | undefined;
|
|
1069
1104
|
currentStrokeOptions?: any;
|
|
@@ -1072,6 +1107,10 @@ export declare const actionCut: {
|
|
|
1072
1107
|
Bold: string;
|
|
1073
1108
|
Regular: string;
|
|
1074
1109
|
};
|
|
1110
|
+
gridDirection: {
|
|
1111
|
+
horizontal: boolean;
|
|
1112
|
+
vertical: boolean;
|
|
1113
|
+
};
|
|
1075
1114
|
highlightSearchResult: boolean;
|
|
1076
1115
|
dynamicStyle: {
|
|
1077
1116
|
[x: string]: string;
|
|
@@ -1092,16 +1131,14 @@ export declare const actionCut: {
|
|
|
1092
1131
|
followedBy: Set<import("../types").SocketId>;
|
|
1093
1132
|
isCropping: boolean;
|
|
1094
1133
|
croppingElementId: string | null;
|
|
1095
|
-
searchMatches:
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}[];
|
|
1104
|
-
}[];
|
|
1134
|
+
searchMatches: Readonly<{
|
|
1135
|
+
focusedId: string | null;
|
|
1136
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1137
|
+
}> | null;
|
|
1138
|
+
activeLockedId: string | null;
|
|
1139
|
+
lockedMultiSelections: {
|
|
1140
|
+
[groupId: string]: true;
|
|
1141
|
+
};
|
|
1105
1142
|
};
|
|
1106
1143
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1107
1144
|
};
|
|
@@ -1169,23 +1206,28 @@ export declare const actionCopyAsPng: {
|
|
|
1169
1206
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1170
1207
|
isBindingEnabled: boolean;
|
|
1171
1208
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1172
|
-
suggestedBindings: import("@excalidraw/element
|
|
1209
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1173
1210
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1174
1211
|
frameRendering: {
|
|
1175
1212
|
enabled: boolean;
|
|
1176
1213
|
name: boolean;
|
|
1177
1214
|
outline: boolean;
|
|
1178
1215
|
clip: boolean;
|
|
1216
|
+
markerName: boolean;
|
|
1217
|
+
markerEnabled: boolean;
|
|
1179
1218
|
};
|
|
1180
1219
|
editingFrame: string | null;
|
|
1181
1220
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1182
1221
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1183
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1184
1222
|
activeTool: {
|
|
1185
1223
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1186
1224
|
locked: boolean;
|
|
1187
1225
|
fromSelection: boolean;
|
|
1188
1226
|
} & import("../types").ActiveTool;
|
|
1227
|
+
preferredSelectionTool: {
|
|
1228
|
+
type: "selection" | "lasso";
|
|
1229
|
+
initialized: boolean;
|
|
1230
|
+
};
|
|
1189
1231
|
penMode: boolean;
|
|
1190
1232
|
penDetected: boolean;
|
|
1191
1233
|
exportBackground: boolean;
|
|
@@ -1207,6 +1249,7 @@ export declare const actionCopyAsPng: {
|
|
|
1207
1249
|
currentHoveredFontFamily: number | null;
|
|
1208
1250
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1209
1251
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1252
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
1210
1253
|
viewBackgroundColor: string;
|
|
1211
1254
|
scrollX: number;
|
|
1212
1255
|
scrollY: number;
|
|
@@ -1218,8 +1261,8 @@ export declare const actionCopyAsPng: {
|
|
|
1218
1261
|
zoom: Readonly<{
|
|
1219
1262
|
value: import("../types").NormalizedZoomValue;
|
|
1220
1263
|
}>;
|
|
1221
|
-
openMenu: "
|
|
1222
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1264
|
+
openMenu: "canvas" | "shape" | null;
|
|
1265
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1223
1266
|
openSidebar: {
|
|
1224
1267
|
name: string;
|
|
1225
1268
|
tab?: string | undefined;
|
|
@@ -1300,10 +1343,8 @@ export declare const actionCopyAsPng: {
|
|
|
1300
1343
|
shown: true;
|
|
1301
1344
|
data: import("../charts").Spreadsheet;
|
|
1302
1345
|
};
|
|
1303
|
-
|
|
1304
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1346
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1305
1347
|
linkOpacity: number;
|
|
1306
|
-
trayModeEnabled: boolean;
|
|
1307
1348
|
colorPalette?: {
|
|
1308
1349
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1309
1350
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1316,6 +1357,7 @@ export declare const actionCopyAsPng: {
|
|
|
1316
1357
|
} | undefined;
|
|
1317
1358
|
allowWheelZoom?: boolean | undefined;
|
|
1318
1359
|
allowPinchZoom?: boolean | undefined;
|
|
1360
|
+
disableContextMenu: boolean;
|
|
1319
1361
|
pinnedScripts?: string[] | undefined;
|
|
1320
1362
|
customPens?: any[] | undefined;
|
|
1321
1363
|
currentStrokeOptions?: any;
|
|
@@ -1324,6 +1366,10 @@ export declare const actionCopyAsPng: {
|
|
|
1324
1366
|
Bold: string;
|
|
1325
1367
|
Regular: string;
|
|
1326
1368
|
};
|
|
1369
|
+
gridDirection: {
|
|
1370
|
+
horizontal: boolean;
|
|
1371
|
+
vertical: boolean;
|
|
1372
|
+
};
|
|
1327
1373
|
highlightSearchResult: boolean;
|
|
1328
1374
|
dynamicStyle: {
|
|
1329
1375
|
[x: string]: string;
|
|
@@ -1334,7 +1380,7 @@ export declare const actionCopyAsPng: {
|
|
|
1334
1380
|
nameColor: string;
|
|
1335
1381
|
};
|
|
1336
1382
|
invertBindingBehaviour: boolean;
|
|
1337
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1383
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1338
1384
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1339
1385
|
originSnapOffset: {
|
|
1340
1386
|
x: number;
|
|
@@ -1345,16 +1391,14 @@ export declare const actionCopyAsPng: {
|
|
|
1345
1391
|
followedBy: Set<import("../types").SocketId>;
|
|
1346
1392
|
isCropping: boolean;
|
|
1347
1393
|
croppingElementId: string | null;
|
|
1348
|
-
searchMatches:
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}[];
|
|
1357
|
-
}[];
|
|
1394
|
+
searchMatches: Readonly<{
|
|
1395
|
+
focusedId: string | null;
|
|
1396
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1397
|
+
}> | null;
|
|
1398
|
+
activeLockedId: string | null;
|
|
1399
|
+
lockedMultiSelections: {
|
|
1400
|
+
[groupId: string]: true;
|
|
1401
|
+
};
|
|
1358
1402
|
};
|
|
1359
1403
|
captureUpdate: "EVENTUALLY";
|
|
1360
1404
|
}>;
|