@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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
2
|
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[],
|
|
5
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
6
|
export declare const actionChangeStrokeColor: {
|
|
7
7
|
name: "changeStrokeColor";
|
|
8
8
|
label: string;
|
|
9
9
|
trackEvent: false;
|
|
10
10
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
|
|
11
|
-
PanelComponent: ({ elements, appState, updateData,
|
|
11
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
} & {
|
|
13
13
|
keyTest?: undefined;
|
|
14
14
|
};
|
|
@@ -16,8 +16,16 @@ export declare const actionChangeBackgroundColor: {
|
|
|
16
16
|
name: "changeBackgroundColor";
|
|
17
17
|
label: string;
|
|
18
18
|
trackEvent: false;
|
|
19
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) =>
|
|
20
|
-
|
|
19
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
20
|
+
appState: any;
|
|
21
|
+
captureUpdate: "EVENTUALLY";
|
|
22
|
+
elements?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
elements: ExcalidrawElement[];
|
|
25
|
+
appState: any;
|
|
26
|
+
captureUpdate: "IMMEDIATELY";
|
|
27
|
+
};
|
|
28
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
29
|
} & {
|
|
22
30
|
keyTest?: undefined;
|
|
23
31
|
};
|
|
@@ -47,23 +55,28 @@ export declare const actionChangeFillStyle: {
|
|
|
47
55
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
56
|
isBindingEnabled: boolean;
|
|
49
57
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
50
|
-
suggestedBindings: import("@excalidraw/element
|
|
58
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
51
59
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
60
|
frameRendering: {
|
|
53
61
|
enabled: boolean;
|
|
54
62
|
name: boolean;
|
|
55
63
|
outline: boolean;
|
|
56
64
|
clip: boolean;
|
|
65
|
+
markerName: boolean;
|
|
66
|
+
markerEnabled: boolean;
|
|
57
67
|
};
|
|
58
68
|
editingFrame: string | null;
|
|
59
69
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
70
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement: LinearElementEditor | null;
|
|
62
71
|
activeTool: {
|
|
63
72
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
73
|
locked: boolean;
|
|
65
74
|
fromSelection: boolean;
|
|
66
75
|
} & import("../types").ActiveTool;
|
|
76
|
+
preferredSelectionTool: {
|
|
77
|
+
type: "selection" | "lasso";
|
|
78
|
+
initialized: boolean;
|
|
79
|
+
};
|
|
67
80
|
penMode: boolean;
|
|
68
81
|
penDetected: boolean;
|
|
69
82
|
exportBackground: boolean;
|
|
@@ -84,6 +97,7 @@ export declare const actionChangeFillStyle: {
|
|
|
84
97
|
currentHoveredFontFamily: number | null;
|
|
85
98
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
86
99
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
100
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
87
101
|
viewBackgroundColor: string;
|
|
88
102
|
scrollX: number;
|
|
89
103
|
scrollY: number;
|
|
@@ -95,8 +109,8 @@ export declare const actionChangeFillStyle: {
|
|
|
95
109
|
zoom: Readonly<{
|
|
96
110
|
value: import("../types").NormalizedZoomValue;
|
|
97
111
|
}>;
|
|
98
|
-
openMenu: "
|
|
99
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
112
|
+
openMenu: "canvas" | "shape" | null;
|
|
113
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
100
114
|
openSidebar: {
|
|
101
115
|
name: string;
|
|
102
116
|
tab?: string | undefined;
|
|
@@ -177,10 +191,8 @@ export declare const actionChangeFillStyle: {
|
|
|
177
191
|
shown: true;
|
|
178
192
|
data: import("../charts").Spreadsheet;
|
|
179
193
|
};
|
|
180
|
-
|
|
181
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
194
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
182
195
|
linkOpacity: number;
|
|
183
|
-
trayModeEnabled: boolean;
|
|
184
196
|
colorPalette?: {
|
|
185
197
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
186
198
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -193,6 +205,7 @@ export declare const actionChangeFillStyle: {
|
|
|
193
205
|
} | undefined;
|
|
194
206
|
allowWheelZoom?: boolean | undefined;
|
|
195
207
|
allowPinchZoom?: boolean | undefined;
|
|
208
|
+
disableContextMenu: boolean;
|
|
196
209
|
pinnedScripts?: string[] | undefined;
|
|
197
210
|
customPens?: any[] | undefined;
|
|
198
211
|
currentStrokeOptions?: any;
|
|
@@ -201,6 +214,10 @@ export declare const actionChangeFillStyle: {
|
|
|
201
214
|
Bold: string;
|
|
202
215
|
Regular: string;
|
|
203
216
|
};
|
|
217
|
+
gridDirection: {
|
|
218
|
+
horizontal: boolean;
|
|
219
|
+
vertical: boolean;
|
|
220
|
+
};
|
|
204
221
|
highlightSearchResult: boolean;
|
|
205
222
|
dynamicStyle: {
|
|
206
223
|
[x: string]: string;
|
|
@@ -222,20 +239,18 @@ export declare const actionChangeFillStyle: {
|
|
|
222
239
|
followedBy: Set<import("../types").SocketId>;
|
|
223
240
|
isCropping: boolean;
|
|
224
241
|
croppingElementId: string | null;
|
|
225
|
-
searchMatches:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}[];
|
|
234
|
-
}[];
|
|
242
|
+
searchMatches: Readonly<{
|
|
243
|
+
focusedId: string | null;
|
|
244
|
+
matches: readonly import("../types").SearchMatch[];
|
|
245
|
+
}> | null;
|
|
246
|
+
activeLockedId: string | null;
|
|
247
|
+
lockedMultiSelections: {
|
|
248
|
+
[groupId: string]: true;
|
|
249
|
+
};
|
|
235
250
|
};
|
|
236
251
|
captureUpdate: "IMMEDIATELY";
|
|
237
252
|
};
|
|
238
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
253
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
239
254
|
} & {
|
|
240
255
|
keyTest?: undefined;
|
|
241
256
|
};
|
|
@@ -265,23 +280,28 @@ export declare const actionChangeStrokeWidth: {
|
|
|
265
280
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
281
|
isBindingEnabled: boolean;
|
|
267
282
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
268
|
-
suggestedBindings: import("@excalidraw/element
|
|
283
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
269
284
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
270
285
|
frameRendering: {
|
|
271
286
|
enabled: boolean;
|
|
272
287
|
name: boolean;
|
|
273
288
|
outline: boolean;
|
|
274
289
|
clip: boolean;
|
|
290
|
+
markerName: boolean;
|
|
291
|
+
markerEnabled: boolean;
|
|
275
292
|
};
|
|
276
293
|
editingFrame: string | null;
|
|
277
294
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
278
295
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
279
|
-
editingLinearElement: LinearElementEditor | null;
|
|
280
296
|
activeTool: {
|
|
281
297
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
282
298
|
locked: boolean;
|
|
283
299
|
fromSelection: boolean;
|
|
284
300
|
} & import("../types").ActiveTool;
|
|
301
|
+
preferredSelectionTool: {
|
|
302
|
+
type: "selection" | "lasso";
|
|
303
|
+
initialized: boolean;
|
|
304
|
+
};
|
|
285
305
|
penMode: boolean;
|
|
286
306
|
penDetected: boolean;
|
|
287
307
|
exportBackground: boolean;
|
|
@@ -302,6 +322,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
302
322
|
currentHoveredFontFamily: number | null;
|
|
303
323
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
304
324
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
325
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
305
326
|
viewBackgroundColor: string;
|
|
306
327
|
scrollX: number;
|
|
307
328
|
scrollY: number;
|
|
@@ -313,8 +334,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
313
334
|
zoom: Readonly<{
|
|
314
335
|
value: import("../types").NormalizedZoomValue;
|
|
315
336
|
}>;
|
|
316
|
-
openMenu: "
|
|
317
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
337
|
+
openMenu: "canvas" | "shape" | null;
|
|
338
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
318
339
|
openSidebar: {
|
|
319
340
|
name: string;
|
|
320
341
|
tab?: string | undefined;
|
|
@@ -395,10 +416,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
395
416
|
shown: true;
|
|
396
417
|
data: import("../charts").Spreadsheet;
|
|
397
418
|
};
|
|
398
|
-
|
|
399
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
419
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
400
420
|
linkOpacity: number;
|
|
401
|
-
trayModeEnabled: boolean;
|
|
402
421
|
colorPalette?: {
|
|
403
422
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
404
423
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -411,6 +430,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
411
430
|
} | undefined;
|
|
412
431
|
allowWheelZoom?: boolean | undefined;
|
|
413
432
|
allowPinchZoom?: boolean | undefined;
|
|
433
|
+
disableContextMenu: boolean;
|
|
414
434
|
pinnedScripts?: string[] | undefined;
|
|
415
435
|
customPens?: any[] | undefined;
|
|
416
436
|
currentStrokeOptions?: any;
|
|
@@ -419,6 +439,10 @@ export declare const actionChangeStrokeWidth: {
|
|
|
419
439
|
Bold: string;
|
|
420
440
|
Regular: string;
|
|
421
441
|
};
|
|
442
|
+
gridDirection: {
|
|
443
|
+
horizontal: boolean;
|
|
444
|
+
vertical: boolean;
|
|
445
|
+
};
|
|
422
446
|
highlightSearchResult: boolean;
|
|
423
447
|
dynamicStyle: {
|
|
424
448
|
[x: string]: string;
|
|
@@ -440,20 +464,18 @@ export declare const actionChangeStrokeWidth: {
|
|
|
440
464
|
followedBy: Set<import("../types").SocketId>;
|
|
441
465
|
isCropping: boolean;
|
|
442
466
|
croppingElementId: string | null;
|
|
443
|
-
searchMatches:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}[];
|
|
452
|
-
}[];
|
|
467
|
+
searchMatches: Readonly<{
|
|
468
|
+
focusedId: string | null;
|
|
469
|
+
matches: readonly import("../types").SearchMatch[];
|
|
470
|
+
}> | null;
|
|
471
|
+
activeLockedId: string | null;
|
|
472
|
+
lockedMultiSelections: {
|
|
473
|
+
[groupId: string]: true;
|
|
474
|
+
};
|
|
453
475
|
};
|
|
454
476
|
captureUpdate: "IMMEDIATELY";
|
|
455
477
|
};
|
|
456
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
478
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
457
479
|
} & {
|
|
458
480
|
keyTest?: undefined;
|
|
459
481
|
};
|
|
@@ -483,23 +505,28 @@ export declare const actionChangeSloppiness: {
|
|
|
483
505
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
484
506
|
isBindingEnabled: boolean;
|
|
485
507
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
486
|
-
suggestedBindings: import("@excalidraw/element
|
|
508
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
487
509
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
488
510
|
frameRendering: {
|
|
489
511
|
enabled: boolean;
|
|
490
512
|
name: boolean;
|
|
491
513
|
outline: boolean;
|
|
492
514
|
clip: boolean;
|
|
515
|
+
markerName: boolean;
|
|
516
|
+
markerEnabled: boolean;
|
|
493
517
|
};
|
|
494
518
|
editingFrame: string | null;
|
|
495
519
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
496
520
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
497
|
-
editingLinearElement: LinearElementEditor | null;
|
|
498
521
|
activeTool: {
|
|
499
522
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
500
523
|
locked: boolean;
|
|
501
524
|
fromSelection: boolean;
|
|
502
525
|
} & import("../types").ActiveTool;
|
|
526
|
+
preferredSelectionTool: {
|
|
527
|
+
type: "selection" | "lasso";
|
|
528
|
+
initialized: boolean;
|
|
529
|
+
};
|
|
503
530
|
penMode: boolean;
|
|
504
531
|
penDetected: boolean;
|
|
505
532
|
exportBackground: boolean;
|
|
@@ -520,6 +547,7 @@ export declare const actionChangeSloppiness: {
|
|
|
520
547
|
currentHoveredFontFamily: number | null;
|
|
521
548
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
522
549
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
550
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
523
551
|
viewBackgroundColor: string;
|
|
524
552
|
scrollX: number;
|
|
525
553
|
scrollY: number;
|
|
@@ -531,8 +559,8 @@ export declare const actionChangeSloppiness: {
|
|
|
531
559
|
zoom: Readonly<{
|
|
532
560
|
value: import("../types").NormalizedZoomValue;
|
|
533
561
|
}>;
|
|
534
|
-
openMenu: "
|
|
535
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
562
|
+
openMenu: "canvas" | "shape" | null;
|
|
563
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
536
564
|
openSidebar: {
|
|
537
565
|
name: string;
|
|
538
566
|
tab?: string | undefined;
|
|
@@ -613,10 +641,8 @@ export declare const actionChangeSloppiness: {
|
|
|
613
641
|
shown: true;
|
|
614
642
|
data: import("../charts").Spreadsheet;
|
|
615
643
|
};
|
|
616
|
-
|
|
617
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
644
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
618
645
|
linkOpacity: number;
|
|
619
|
-
trayModeEnabled: boolean;
|
|
620
646
|
colorPalette?: {
|
|
621
647
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
622
648
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -629,6 +655,7 @@ export declare const actionChangeSloppiness: {
|
|
|
629
655
|
} | undefined;
|
|
630
656
|
allowWheelZoom?: boolean | undefined;
|
|
631
657
|
allowPinchZoom?: boolean | undefined;
|
|
658
|
+
disableContextMenu: boolean;
|
|
632
659
|
pinnedScripts?: string[] | undefined;
|
|
633
660
|
customPens?: any[] | undefined;
|
|
634
661
|
currentStrokeOptions?: any;
|
|
@@ -637,6 +664,10 @@ export declare const actionChangeSloppiness: {
|
|
|
637
664
|
Bold: string;
|
|
638
665
|
Regular: string;
|
|
639
666
|
};
|
|
667
|
+
gridDirection: {
|
|
668
|
+
horizontal: boolean;
|
|
669
|
+
vertical: boolean;
|
|
670
|
+
};
|
|
640
671
|
highlightSearchResult: boolean;
|
|
641
672
|
dynamicStyle: {
|
|
642
673
|
[x: string]: string;
|
|
@@ -658,20 +689,18 @@ export declare const actionChangeSloppiness: {
|
|
|
658
689
|
followedBy: Set<import("../types").SocketId>;
|
|
659
690
|
isCropping: boolean;
|
|
660
691
|
croppingElementId: string | null;
|
|
661
|
-
searchMatches:
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}[];
|
|
670
|
-
}[];
|
|
692
|
+
searchMatches: Readonly<{
|
|
693
|
+
focusedId: string | null;
|
|
694
|
+
matches: readonly import("../types").SearchMatch[];
|
|
695
|
+
}> | null;
|
|
696
|
+
activeLockedId: string | null;
|
|
697
|
+
lockedMultiSelections: {
|
|
698
|
+
[groupId: string]: true;
|
|
699
|
+
};
|
|
671
700
|
};
|
|
672
701
|
captureUpdate: "IMMEDIATELY";
|
|
673
702
|
};
|
|
674
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
703
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
675
704
|
} & {
|
|
676
705
|
keyTest?: undefined;
|
|
677
706
|
};
|
|
@@ -701,23 +730,28 @@ export declare const actionChangeStrokeStyle: {
|
|
|
701
730
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
702
731
|
isBindingEnabled: boolean;
|
|
703
732
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
704
|
-
suggestedBindings: import("@excalidraw/element
|
|
733
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
705
734
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
706
735
|
frameRendering: {
|
|
707
736
|
enabled: boolean;
|
|
708
737
|
name: boolean;
|
|
709
738
|
outline: boolean;
|
|
710
739
|
clip: boolean;
|
|
740
|
+
markerName: boolean;
|
|
741
|
+
markerEnabled: boolean;
|
|
711
742
|
};
|
|
712
743
|
editingFrame: string | null;
|
|
713
744
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
714
745
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
715
|
-
editingLinearElement: LinearElementEditor | null;
|
|
716
746
|
activeTool: {
|
|
717
747
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
718
748
|
locked: boolean;
|
|
719
749
|
fromSelection: boolean;
|
|
720
750
|
} & import("../types").ActiveTool;
|
|
751
|
+
preferredSelectionTool: {
|
|
752
|
+
type: "selection" | "lasso";
|
|
753
|
+
initialized: boolean;
|
|
754
|
+
};
|
|
721
755
|
penMode: boolean;
|
|
722
756
|
penDetected: boolean;
|
|
723
757
|
exportBackground: boolean;
|
|
@@ -738,6 +772,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
738
772
|
currentHoveredFontFamily: number | null;
|
|
739
773
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
740
774
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
775
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
741
776
|
viewBackgroundColor: string;
|
|
742
777
|
scrollX: number;
|
|
743
778
|
scrollY: number;
|
|
@@ -749,8 +784,8 @@ export declare const actionChangeStrokeStyle: {
|
|
|
749
784
|
zoom: Readonly<{
|
|
750
785
|
value: import("../types").NormalizedZoomValue;
|
|
751
786
|
}>;
|
|
752
|
-
openMenu: "
|
|
753
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
787
|
+
openMenu: "canvas" | "shape" | null;
|
|
788
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
754
789
|
openSidebar: {
|
|
755
790
|
name: string;
|
|
756
791
|
tab?: string | undefined;
|
|
@@ -831,10 +866,8 @@ export declare const actionChangeStrokeStyle: {
|
|
|
831
866
|
shown: true;
|
|
832
867
|
data: import("../charts").Spreadsheet;
|
|
833
868
|
};
|
|
834
|
-
|
|
835
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
869
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
836
870
|
linkOpacity: number;
|
|
837
|
-
trayModeEnabled: boolean;
|
|
838
871
|
colorPalette?: {
|
|
839
872
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
840
873
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -847,6 +880,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
847
880
|
} | undefined;
|
|
848
881
|
allowWheelZoom?: boolean | undefined;
|
|
849
882
|
allowPinchZoom?: boolean | undefined;
|
|
883
|
+
disableContextMenu: boolean;
|
|
850
884
|
pinnedScripts?: string[] | undefined;
|
|
851
885
|
customPens?: any[] | undefined;
|
|
852
886
|
currentStrokeOptions?: any;
|
|
@@ -855,6 +889,10 @@ export declare const actionChangeStrokeStyle: {
|
|
|
855
889
|
Bold: string;
|
|
856
890
|
Regular: string;
|
|
857
891
|
};
|
|
892
|
+
gridDirection: {
|
|
893
|
+
horizontal: boolean;
|
|
894
|
+
vertical: boolean;
|
|
895
|
+
};
|
|
858
896
|
highlightSearchResult: boolean;
|
|
859
897
|
dynamicStyle: {
|
|
860
898
|
[x: string]: string;
|
|
@@ -876,20 +914,18 @@ export declare const actionChangeStrokeStyle: {
|
|
|
876
914
|
followedBy: Set<import("../types").SocketId>;
|
|
877
915
|
isCropping: boolean;
|
|
878
916
|
croppingElementId: string | null;
|
|
879
|
-
searchMatches:
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}[];
|
|
888
|
-
}[];
|
|
917
|
+
searchMatches: Readonly<{
|
|
918
|
+
focusedId: string | null;
|
|
919
|
+
matches: readonly import("../types").SearchMatch[];
|
|
920
|
+
}> | null;
|
|
921
|
+
activeLockedId: string | null;
|
|
922
|
+
lockedMultiSelections: {
|
|
923
|
+
[groupId: string]: true;
|
|
924
|
+
};
|
|
889
925
|
};
|
|
890
926
|
captureUpdate: "IMMEDIATELY";
|
|
891
927
|
};
|
|
892
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
928
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
893
929
|
} & {
|
|
894
930
|
keyTest?: undefined;
|
|
895
931
|
};
|
|
@@ -919,23 +955,28 @@ export declare const actionChangeOpacity: {
|
|
|
919
955
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
920
956
|
isBindingEnabled: boolean;
|
|
921
957
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
922
|
-
suggestedBindings: import("@excalidraw/element
|
|
958
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
923
959
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
924
960
|
frameRendering: {
|
|
925
961
|
enabled: boolean;
|
|
926
962
|
name: boolean;
|
|
927
963
|
outline: boolean;
|
|
928
964
|
clip: boolean;
|
|
965
|
+
markerName: boolean;
|
|
966
|
+
markerEnabled: boolean;
|
|
929
967
|
};
|
|
930
968
|
editingFrame: string | null;
|
|
931
969
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
932
970
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
933
|
-
editingLinearElement: LinearElementEditor | null;
|
|
934
971
|
activeTool: {
|
|
935
972
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
936
973
|
locked: boolean;
|
|
937
974
|
fromSelection: boolean;
|
|
938
975
|
} & import("../types").ActiveTool;
|
|
976
|
+
preferredSelectionTool: {
|
|
977
|
+
type: "selection" | "lasso";
|
|
978
|
+
initialized: boolean;
|
|
979
|
+
};
|
|
939
980
|
penMode: boolean;
|
|
940
981
|
penDetected: boolean;
|
|
941
982
|
exportBackground: boolean;
|
|
@@ -956,6 +997,7 @@ export declare const actionChangeOpacity: {
|
|
|
956
997
|
currentHoveredFontFamily: number | null;
|
|
957
998
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
958
999
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1000
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
959
1001
|
viewBackgroundColor: string;
|
|
960
1002
|
scrollX: number;
|
|
961
1003
|
scrollY: number;
|
|
@@ -967,8 +1009,8 @@ export declare const actionChangeOpacity: {
|
|
|
967
1009
|
zoom: Readonly<{
|
|
968
1010
|
value: import("../types").NormalizedZoomValue;
|
|
969
1011
|
}>;
|
|
970
|
-
openMenu: "
|
|
971
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1012
|
+
openMenu: "canvas" | "shape" | null;
|
|
1013
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
972
1014
|
openSidebar: {
|
|
973
1015
|
name: string;
|
|
974
1016
|
tab?: string | undefined;
|
|
@@ -1049,10 +1091,8 @@ export declare const actionChangeOpacity: {
|
|
|
1049
1091
|
shown: true;
|
|
1050
1092
|
data: import("../charts").Spreadsheet;
|
|
1051
1093
|
};
|
|
1052
|
-
|
|
1053
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1094
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1054
1095
|
linkOpacity: number;
|
|
1055
|
-
trayModeEnabled: boolean;
|
|
1056
1096
|
colorPalette?: {
|
|
1057
1097
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1058
1098
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1065,6 +1105,7 @@ export declare const actionChangeOpacity: {
|
|
|
1065
1105
|
} | undefined;
|
|
1066
1106
|
allowWheelZoom?: boolean | undefined;
|
|
1067
1107
|
allowPinchZoom?: boolean | undefined;
|
|
1108
|
+
disableContextMenu: boolean;
|
|
1068
1109
|
pinnedScripts?: string[] | undefined;
|
|
1069
1110
|
customPens?: any[] | undefined;
|
|
1070
1111
|
currentStrokeOptions?: any;
|
|
@@ -1073,6 +1114,10 @@ export declare const actionChangeOpacity: {
|
|
|
1073
1114
|
Bold: string;
|
|
1074
1115
|
Regular: string;
|
|
1075
1116
|
};
|
|
1117
|
+
gridDirection: {
|
|
1118
|
+
horizontal: boolean;
|
|
1119
|
+
vertical: boolean;
|
|
1120
|
+
};
|
|
1076
1121
|
highlightSearchResult: boolean;
|
|
1077
1122
|
dynamicStyle: {
|
|
1078
1123
|
[x: string]: string;
|
|
@@ -1094,20 +1139,18 @@ export declare const actionChangeOpacity: {
|
|
|
1094
1139
|
followedBy: Set<import("../types").SocketId>;
|
|
1095
1140
|
isCropping: boolean;
|
|
1096
1141
|
croppingElementId: string | null;
|
|
1097
|
-
searchMatches:
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
}[];
|
|
1106
|
-
}[];
|
|
1142
|
+
searchMatches: Readonly<{
|
|
1143
|
+
focusedId: string | null;
|
|
1144
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1145
|
+
}> | null;
|
|
1146
|
+
activeLockedId: string | null;
|
|
1147
|
+
lockedMultiSelections: {
|
|
1148
|
+
[groupId: string]: true;
|
|
1149
|
+
};
|
|
1107
1150
|
};
|
|
1108
1151
|
captureUpdate: "IMMEDIATELY";
|
|
1109
1152
|
};
|
|
1110
|
-
PanelComponent: ({
|
|
1153
|
+
PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1111
1154
|
} & {
|
|
1112
1155
|
keyTest?: undefined;
|
|
1113
1156
|
};
|
|
@@ -1138,23 +1181,28 @@ export declare const actionChangeFontSize: {
|
|
|
1138
1181
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1139
1182
|
isBindingEnabled: boolean;
|
|
1140
1183
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1141
|
-
suggestedBindings: import("@excalidraw/element
|
|
1184
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1142
1185
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1143
1186
|
frameRendering: {
|
|
1144
1187
|
enabled: boolean;
|
|
1145
1188
|
name: boolean;
|
|
1146
1189
|
outline: boolean;
|
|
1147
1190
|
clip: boolean;
|
|
1191
|
+
markerName: boolean;
|
|
1192
|
+
markerEnabled: boolean;
|
|
1148
1193
|
};
|
|
1149
1194
|
editingFrame: string | null;
|
|
1150
1195
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1151
1196
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1152
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1153
1197
|
activeTool: {
|
|
1154
1198
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1155
1199
|
locked: boolean;
|
|
1156
1200
|
fromSelection: boolean;
|
|
1157
1201
|
} & import("../types").ActiveTool;
|
|
1202
|
+
preferredSelectionTool: {
|
|
1203
|
+
type: "selection" | "lasso";
|
|
1204
|
+
initialized: boolean;
|
|
1205
|
+
};
|
|
1158
1206
|
penMode: boolean;
|
|
1159
1207
|
penDetected: boolean;
|
|
1160
1208
|
exportBackground: boolean;
|
|
@@ -1175,6 +1223,7 @@ export declare const actionChangeFontSize: {
|
|
|
1175
1223
|
currentHoveredFontFamily: number | null;
|
|
1176
1224
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1177
1225
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1226
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
1178
1227
|
viewBackgroundColor: string;
|
|
1179
1228
|
scrollX: number;
|
|
1180
1229
|
scrollY: number;
|
|
@@ -1186,8 +1235,8 @@ export declare const actionChangeFontSize: {
|
|
|
1186
1235
|
zoom: Readonly<{
|
|
1187
1236
|
value: import("../types").NormalizedZoomValue;
|
|
1188
1237
|
}>;
|
|
1189
|
-
openMenu: "
|
|
1190
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1238
|
+
openMenu: "canvas" | "shape" | null;
|
|
1239
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1191
1240
|
openSidebar: {
|
|
1192
1241
|
name: string;
|
|
1193
1242
|
tab?: string | undefined;
|
|
@@ -1268,10 +1317,8 @@ export declare const actionChangeFontSize: {
|
|
|
1268
1317
|
shown: true;
|
|
1269
1318
|
data: import("../charts").Spreadsheet;
|
|
1270
1319
|
};
|
|
1271
|
-
|
|
1272
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1320
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1273
1321
|
linkOpacity: number;
|
|
1274
|
-
trayModeEnabled: boolean;
|
|
1275
1322
|
colorPalette?: {
|
|
1276
1323
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1277
1324
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1284,6 +1331,7 @@ export declare const actionChangeFontSize: {
|
|
|
1284
1331
|
} | undefined;
|
|
1285
1332
|
allowWheelZoom?: boolean | undefined;
|
|
1286
1333
|
allowPinchZoom?: boolean | undefined;
|
|
1334
|
+
disableContextMenu: boolean;
|
|
1287
1335
|
pinnedScripts?: string[] | undefined;
|
|
1288
1336
|
customPens?: any[] | undefined;
|
|
1289
1337
|
currentStrokeOptions?: any;
|
|
@@ -1292,6 +1340,10 @@ export declare const actionChangeFontSize: {
|
|
|
1292
1340
|
Bold: string;
|
|
1293
1341
|
Regular: string;
|
|
1294
1342
|
};
|
|
1343
|
+
gridDirection: {
|
|
1344
|
+
horizontal: boolean;
|
|
1345
|
+
vertical: boolean;
|
|
1346
|
+
};
|
|
1295
1347
|
highlightSearchResult: boolean;
|
|
1296
1348
|
dynamicStyle: {
|
|
1297
1349
|
[x: string]: string;
|
|
@@ -1313,20 +1365,18 @@ export declare const actionChangeFontSize: {
|
|
|
1313
1365
|
followedBy: Set<import("../types").SocketId>;
|
|
1314
1366
|
isCropping: boolean;
|
|
1315
1367
|
croppingElementId: string | null;
|
|
1316
|
-
searchMatches:
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
}[];
|
|
1325
|
-
}[];
|
|
1368
|
+
searchMatches: Readonly<{
|
|
1369
|
+
focusedId: string | null;
|
|
1370
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1371
|
+
}> | null;
|
|
1372
|
+
activeLockedId: string | null;
|
|
1373
|
+
lockedMultiSelections: {
|
|
1374
|
+
[groupId: string]: true;
|
|
1375
|
+
};
|
|
1326
1376
|
};
|
|
1327
1377
|
captureUpdate: "IMMEDIATELY";
|
|
1328
1378
|
};
|
|
1329
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1379
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1330
1380
|
} & {
|
|
1331
1381
|
keyTest?: undefined;
|
|
1332
1382
|
};
|
|
@@ -1357,23 +1407,28 @@ export declare const actionDecreaseFontSize: {
|
|
|
1357
1407
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1358
1408
|
isBindingEnabled: boolean;
|
|
1359
1409
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1360
|
-
suggestedBindings: import("@excalidraw/element
|
|
1410
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1361
1411
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1362
1412
|
frameRendering: {
|
|
1363
1413
|
enabled: boolean;
|
|
1364
1414
|
name: boolean;
|
|
1365
1415
|
outline: boolean;
|
|
1366
1416
|
clip: boolean;
|
|
1417
|
+
markerName: boolean;
|
|
1418
|
+
markerEnabled: boolean;
|
|
1367
1419
|
};
|
|
1368
1420
|
editingFrame: string | null;
|
|
1369
1421
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1370
1422
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1371
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1372
1423
|
activeTool: {
|
|
1373
1424
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1374
1425
|
locked: boolean;
|
|
1375
1426
|
fromSelection: boolean;
|
|
1376
1427
|
} & import("../types").ActiveTool;
|
|
1428
|
+
preferredSelectionTool: {
|
|
1429
|
+
type: "selection" | "lasso";
|
|
1430
|
+
initialized: boolean;
|
|
1431
|
+
};
|
|
1377
1432
|
penMode: boolean;
|
|
1378
1433
|
penDetected: boolean;
|
|
1379
1434
|
exportBackground: boolean;
|
|
@@ -1394,6 +1449,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1394
1449
|
currentHoveredFontFamily: number | null;
|
|
1395
1450
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1396
1451
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1452
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
1397
1453
|
viewBackgroundColor: string;
|
|
1398
1454
|
scrollX: number;
|
|
1399
1455
|
scrollY: number;
|
|
@@ -1405,8 +1461,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
1405
1461
|
zoom: Readonly<{
|
|
1406
1462
|
value: import("../types").NormalizedZoomValue;
|
|
1407
1463
|
}>;
|
|
1408
|
-
openMenu: "
|
|
1409
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1464
|
+
openMenu: "canvas" | "shape" | null;
|
|
1465
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1410
1466
|
openSidebar: {
|
|
1411
1467
|
name: string;
|
|
1412
1468
|
tab?: string | undefined;
|
|
@@ -1487,10 +1543,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
1487
1543
|
shown: true;
|
|
1488
1544
|
data: import("../charts").Spreadsheet;
|
|
1489
1545
|
};
|
|
1490
|
-
|
|
1491
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1546
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1492
1547
|
linkOpacity: number;
|
|
1493
|
-
trayModeEnabled: boolean;
|
|
1494
1548
|
colorPalette?: {
|
|
1495
1549
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1496
1550
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1503,6 +1557,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1503
1557
|
} | undefined;
|
|
1504
1558
|
allowWheelZoom?: boolean | undefined;
|
|
1505
1559
|
allowPinchZoom?: boolean | undefined;
|
|
1560
|
+
disableContextMenu: boolean;
|
|
1506
1561
|
pinnedScripts?: string[] | undefined;
|
|
1507
1562
|
customPens?: any[] | undefined;
|
|
1508
1563
|
currentStrokeOptions?: any;
|
|
@@ -1511,6 +1566,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
1511
1566
|
Bold: string;
|
|
1512
1567
|
Regular: string;
|
|
1513
1568
|
};
|
|
1569
|
+
gridDirection: {
|
|
1570
|
+
horizontal: boolean;
|
|
1571
|
+
vertical: boolean;
|
|
1572
|
+
};
|
|
1514
1573
|
highlightSearchResult: boolean;
|
|
1515
1574
|
dynamicStyle: {
|
|
1516
1575
|
[x: string]: string;
|
|
@@ -1532,16 +1591,14 @@ export declare const actionDecreaseFontSize: {
|
|
|
1532
1591
|
followedBy: Set<import("../types").SocketId>;
|
|
1533
1592
|
isCropping: boolean;
|
|
1534
1593
|
croppingElementId: string | null;
|
|
1535
|
-
searchMatches:
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
}[];
|
|
1544
|
-
}[];
|
|
1594
|
+
searchMatches: Readonly<{
|
|
1595
|
+
focusedId: string | null;
|
|
1596
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1597
|
+
}> | null;
|
|
1598
|
+
activeLockedId: string | null;
|
|
1599
|
+
lockedMultiSelections: {
|
|
1600
|
+
[groupId: string]: true;
|
|
1601
|
+
};
|
|
1545
1602
|
};
|
|
1546
1603
|
captureUpdate: "IMMEDIATELY";
|
|
1547
1604
|
};
|
|
@@ -1576,23 +1633,28 @@ export declare const actionIncreaseFontSize: {
|
|
|
1576
1633
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1577
1634
|
isBindingEnabled: boolean;
|
|
1578
1635
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1579
|
-
suggestedBindings: import("@excalidraw/element
|
|
1636
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1580
1637
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1581
1638
|
frameRendering: {
|
|
1582
1639
|
enabled: boolean;
|
|
1583
1640
|
name: boolean;
|
|
1584
1641
|
outline: boolean;
|
|
1585
1642
|
clip: boolean;
|
|
1643
|
+
markerName: boolean;
|
|
1644
|
+
markerEnabled: boolean;
|
|
1586
1645
|
};
|
|
1587
1646
|
editingFrame: string | null;
|
|
1588
1647
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1589
1648
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1590
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1591
1649
|
activeTool: {
|
|
1592
1650
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1593
1651
|
locked: boolean;
|
|
1594
1652
|
fromSelection: boolean;
|
|
1595
1653
|
} & import("../types").ActiveTool;
|
|
1654
|
+
preferredSelectionTool: {
|
|
1655
|
+
type: "selection" | "lasso";
|
|
1656
|
+
initialized: boolean;
|
|
1657
|
+
};
|
|
1596
1658
|
penMode: boolean;
|
|
1597
1659
|
penDetected: boolean;
|
|
1598
1660
|
exportBackground: boolean;
|
|
@@ -1613,6 +1675,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1613
1675
|
currentHoveredFontFamily: number | null;
|
|
1614
1676
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1615
1677
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1678
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
1616
1679
|
viewBackgroundColor: string;
|
|
1617
1680
|
scrollX: number;
|
|
1618
1681
|
scrollY: number;
|
|
@@ -1624,8 +1687,8 @@ export declare const actionIncreaseFontSize: {
|
|
|
1624
1687
|
zoom: Readonly<{
|
|
1625
1688
|
value: import("../types").NormalizedZoomValue;
|
|
1626
1689
|
}>;
|
|
1627
|
-
openMenu: "
|
|
1628
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1690
|
+
openMenu: "canvas" | "shape" | null;
|
|
1691
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1629
1692
|
openSidebar: {
|
|
1630
1693
|
name: string;
|
|
1631
1694
|
tab?: string | undefined;
|
|
@@ -1706,10 +1769,8 @@ export declare const actionIncreaseFontSize: {
|
|
|
1706
1769
|
shown: true;
|
|
1707
1770
|
data: import("../charts").Spreadsheet;
|
|
1708
1771
|
};
|
|
1709
|
-
|
|
1710
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1772
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1711
1773
|
linkOpacity: number;
|
|
1712
|
-
trayModeEnabled: boolean;
|
|
1713
1774
|
colorPalette?: {
|
|
1714
1775
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1715
1776
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1722,6 +1783,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1722
1783
|
} | undefined;
|
|
1723
1784
|
allowWheelZoom?: boolean | undefined;
|
|
1724
1785
|
allowPinchZoom?: boolean | undefined;
|
|
1786
|
+
disableContextMenu: boolean;
|
|
1725
1787
|
pinnedScripts?: string[] | undefined;
|
|
1726
1788
|
customPens?: any[] | undefined;
|
|
1727
1789
|
currentStrokeOptions?: any;
|
|
@@ -1730,6 +1792,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
1730
1792
|
Bold: string;
|
|
1731
1793
|
Regular: string;
|
|
1732
1794
|
};
|
|
1795
|
+
gridDirection: {
|
|
1796
|
+
horizontal: boolean;
|
|
1797
|
+
vertical: boolean;
|
|
1798
|
+
};
|
|
1733
1799
|
highlightSearchResult: boolean;
|
|
1734
1800
|
dynamicStyle: {
|
|
1735
1801
|
[x: string]: string;
|
|
@@ -1751,16 +1817,14 @@ export declare const actionIncreaseFontSize: {
|
|
|
1751
1817
|
followedBy: Set<import("../types").SocketId>;
|
|
1752
1818
|
isCropping: boolean;
|
|
1753
1819
|
croppingElementId: string | null;
|
|
1754
|
-
searchMatches:
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}[];
|
|
1763
|
-
}[];
|
|
1820
|
+
searchMatches: Readonly<{
|
|
1821
|
+
focusedId: string | null;
|
|
1822
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1823
|
+
}> | null;
|
|
1824
|
+
activeLockedId: string | null;
|
|
1825
|
+
lockedMultiSelections: {
|
|
1826
|
+
[groupId: string]: true;
|
|
1827
|
+
};
|
|
1764
1828
|
};
|
|
1765
1829
|
captureUpdate: "IMMEDIATELY";
|
|
1766
1830
|
};
|
|
@@ -1774,9 +1838,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1774
1838
|
trackEvent: false;
|
|
1775
1839
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1776
1840
|
appState: {
|
|
1777
|
-
currentHoveredFontFamily: number | null;
|
|
1778
1841
|
currentItemFontFamily: number;
|
|
1779
|
-
|
|
1842
|
+
currentHoveredFontFamily: number | null;
|
|
1843
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1780
1844
|
contextMenu: {
|
|
1781
1845
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1782
1846
|
top: number;
|
|
@@ -1795,23 +1859,28 @@ export declare const actionChangeFontFamily: {
|
|
|
1795
1859
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1796
1860
|
isBindingEnabled: boolean;
|
|
1797
1861
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1798
|
-
suggestedBindings: import("@excalidraw/element
|
|
1862
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1799
1863
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1800
1864
|
frameRendering: {
|
|
1801
1865
|
enabled: boolean;
|
|
1802
1866
|
name: boolean;
|
|
1803
1867
|
outline: boolean;
|
|
1804
1868
|
clip: boolean;
|
|
1869
|
+
markerName: boolean;
|
|
1870
|
+
markerEnabled: boolean;
|
|
1805
1871
|
};
|
|
1806
1872
|
editingFrame: string | null;
|
|
1807
1873
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1808
1874
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1809
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1810
1875
|
activeTool: {
|
|
1811
1876
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1812
1877
|
locked: boolean;
|
|
1813
1878
|
fromSelection: boolean;
|
|
1814
1879
|
} & import("../types").ActiveTool;
|
|
1880
|
+
preferredSelectionTool: {
|
|
1881
|
+
type: "selection" | "lasso";
|
|
1882
|
+
initialized: boolean;
|
|
1883
|
+
};
|
|
1815
1884
|
penMode: boolean;
|
|
1816
1885
|
penDetected: boolean;
|
|
1817
1886
|
exportBackground: boolean;
|
|
@@ -1831,6 +1900,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1831
1900
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1832
1901
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1833
1902
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1903
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
1834
1904
|
viewBackgroundColor: string;
|
|
1835
1905
|
scrollX: number;
|
|
1836
1906
|
scrollY: number;
|
|
@@ -1842,7 +1912,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1842
1912
|
zoom: Readonly<{
|
|
1843
1913
|
value: import("../types").NormalizedZoomValue;
|
|
1844
1914
|
}>;
|
|
1845
|
-
openMenu: "
|
|
1915
|
+
openMenu: "canvas" | "shape" | null;
|
|
1846
1916
|
openSidebar: {
|
|
1847
1917
|
name: string;
|
|
1848
1918
|
tab?: string | undefined;
|
|
@@ -1923,10 +1993,8 @@ export declare const actionChangeFontFamily: {
|
|
|
1923
1993
|
shown: true;
|
|
1924
1994
|
data: import("../charts").Spreadsheet;
|
|
1925
1995
|
};
|
|
1926
|
-
|
|
1927
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1996
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1928
1997
|
linkOpacity: number;
|
|
1929
|
-
trayModeEnabled: boolean;
|
|
1930
1998
|
colorPalette?: {
|
|
1931
1999
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1932
2000
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1939,6 +2007,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1939
2007
|
} | undefined;
|
|
1940
2008
|
allowWheelZoom?: boolean | undefined;
|
|
1941
2009
|
allowPinchZoom?: boolean | undefined;
|
|
2010
|
+
disableContextMenu: boolean;
|
|
1942
2011
|
pinnedScripts?: string[] | undefined;
|
|
1943
2012
|
customPens?: any[] | undefined;
|
|
1944
2013
|
currentStrokeOptions?: any;
|
|
@@ -1947,6 +2016,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1947
2016
|
Bold: string;
|
|
1948
2017
|
Regular: string;
|
|
1949
2018
|
};
|
|
2019
|
+
gridDirection: {
|
|
2020
|
+
horizontal: boolean;
|
|
2021
|
+
vertical: boolean;
|
|
2022
|
+
};
|
|
1950
2023
|
highlightSearchResult: boolean;
|
|
1951
2024
|
dynamicStyle: {
|
|
1952
2025
|
[x: string]: string;
|
|
@@ -1968,24 +2041,22 @@ export declare const actionChangeFontFamily: {
|
|
|
1968
2041
|
followedBy: Set<import("../types").SocketId>;
|
|
1969
2042
|
isCropping: boolean;
|
|
1970
2043
|
croppingElementId: string | null;
|
|
1971
|
-
searchMatches:
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
}[];
|
|
1980
|
-
}[];
|
|
2044
|
+
searchMatches: Readonly<{
|
|
2045
|
+
focusedId: string | null;
|
|
2046
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2047
|
+
}> | null;
|
|
2048
|
+
activeLockedId: string | null;
|
|
2049
|
+
lockedMultiSelections: {
|
|
2050
|
+
[groupId: string]: true;
|
|
2051
|
+
};
|
|
1981
2052
|
};
|
|
1982
2053
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1983
2054
|
} | {
|
|
1984
2055
|
elements: ExcalidrawElement[];
|
|
1985
2056
|
appState: {
|
|
1986
|
-
currentHoveredFontFamily: number | null;
|
|
1987
2057
|
currentItemFontFamily: number;
|
|
1988
|
-
|
|
2058
|
+
currentHoveredFontFamily: number | null;
|
|
2059
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1989
2060
|
contextMenu: {
|
|
1990
2061
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1991
2062
|
top: number;
|
|
@@ -2004,23 +2075,28 @@ export declare const actionChangeFontFamily: {
|
|
|
2004
2075
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2005
2076
|
isBindingEnabled: boolean;
|
|
2006
2077
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2007
|
-
suggestedBindings: import("@excalidraw/element
|
|
2078
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2008
2079
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2009
2080
|
frameRendering: {
|
|
2010
2081
|
enabled: boolean;
|
|
2011
2082
|
name: boolean;
|
|
2012
2083
|
outline: boolean;
|
|
2013
2084
|
clip: boolean;
|
|
2085
|
+
markerName: boolean;
|
|
2086
|
+
markerEnabled: boolean;
|
|
2014
2087
|
};
|
|
2015
2088
|
editingFrame: string | null;
|
|
2016
2089
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2017
2090
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2018
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2019
2091
|
activeTool: {
|
|
2020
2092
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2021
2093
|
locked: boolean;
|
|
2022
2094
|
fromSelection: boolean;
|
|
2023
2095
|
} & import("../types").ActiveTool;
|
|
2096
|
+
preferredSelectionTool: {
|
|
2097
|
+
type: "selection" | "lasso";
|
|
2098
|
+
initialized: boolean;
|
|
2099
|
+
};
|
|
2024
2100
|
penMode: boolean;
|
|
2025
2101
|
penDetected: boolean;
|
|
2026
2102
|
exportBackground: boolean;
|
|
@@ -2040,6 +2116,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2040
2116
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2041
2117
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2042
2118
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2119
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
2043
2120
|
viewBackgroundColor: string;
|
|
2044
2121
|
scrollX: number;
|
|
2045
2122
|
scrollY: number;
|
|
@@ -2051,7 +2128,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2051
2128
|
zoom: Readonly<{
|
|
2052
2129
|
value: import("../types").NormalizedZoomValue;
|
|
2053
2130
|
}>;
|
|
2054
|
-
openMenu: "
|
|
2131
|
+
openMenu: "canvas" | "shape" | null;
|
|
2055
2132
|
openSidebar: {
|
|
2056
2133
|
name: string;
|
|
2057
2134
|
tab?: string | undefined;
|
|
@@ -2132,10 +2209,8 @@ export declare const actionChangeFontFamily: {
|
|
|
2132
2209
|
shown: true;
|
|
2133
2210
|
data: import("../charts").Spreadsheet;
|
|
2134
2211
|
};
|
|
2135
|
-
|
|
2136
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2212
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2137
2213
|
linkOpacity: number;
|
|
2138
|
-
trayModeEnabled: boolean;
|
|
2139
2214
|
colorPalette?: {
|
|
2140
2215
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2141
2216
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -2148,6 +2223,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2148
2223
|
} | undefined;
|
|
2149
2224
|
allowWheelZoom?: boolean | undefined;
|
|
2150
2225
|
allowPinchZoom?: boolean | undefined;
|
|
2226
|
+
disableContextMenu: boolean;
|
|
2151
2227
|
pinnedScripts?: string[] | undefined;
|
|
2152
2228
|
customPens?: any[] | undefined;
|
|
2153
2229
|
currentStrokeOptions?: any;
|
|
@@ -2156,6 +2232,10 @@ export declare const actionChangeFontFamily: {
|
|
|
2156
2232
|
Bold: string;
|
|
2157
2233
|
Regular: string;
|
|
2158
2234
|
};
|
|
2235
|
+
gridDirection: {
|
|
2236
|
+
horizontal: boolean;
|
|
2237
|
+
vertical: boolean;
|
|
2238
|
+
};
|
|
2159
2239
|
highlightSearchResult: boolean;
|
|
2160
2240
|
dynamicStyle: {
|
|
2161
2241
|
[x: string]: string;
|
|
@@ -2177,16 +2257,14 @@ export declare const actionChangeFontFamily: {
|
|
|
2177
2257
|
followedBy: Set<import("../types").SocketId>;
|
|
2178
2258
|
isCropping: boolean;
|
|
2179
2259
|
croppingElementId: string | null;
|
|
2180
|
-
searchMatches:
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
}[];
|
|
2189
|
-
}[];
|
|
2260
|
+
searchMatches: Readonly<{
|
|
2261
|
+
focusedId: string | null;
|
|
2262
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2263
|
+
}> | null;
|
|
2264
|
+
activeLockedId: string | null;
|
|
2265
|
+
lockedMultiSelections: {
|
|
2266
|
+
[groupId: string]: true;
|
|
2267
|
+
};
|
|
2190
2268
|
};
|
|
2191
2269
|
captureUpdate: "NEVER";
|
|
2192
2270
|
};
|
|
@@ -2220,23 +2298,28 @@ export declare const actionChangeTextAlign: {
|
|
|
2220
2298
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2221
2299
|
isBindingEnabled: boolean;
|
|
2222
2300
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2223
|
-
suggestedBindings: import("@excalidraw/element
|
|
2301
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2224
2302
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2225
2303
|
frameRendering: {
|
|
2226
2304
|
enabled: boolean;
|
|
2227
2305
|
name: boolean;
|
|
2228
2306
|
outline: boolean;
|
|
2229
2307
|
clip: boolean;
|
|
2308
|
+
markerName: boolean;
|
|
2309
|
+
markerEnabled: boolean;
|
|
2230
2310
|
};
|
|
2231
2311
|
editingFrame: string | null;
|
|
2232
2312
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2233
2313
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2234
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2235
2314
|
activeTool: {
|
|
2236
2315
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2237
2316
|
locked: boolean;
|
|
2238
2317
|
fromSelection: boolean;
|
|
2239
2318
|
} & import("../types").ActiveTool;
|
|
2319
|
+
preferredSelectionTool: {
|
|
2320
|
+
type: "selection" | "lasso";
|
|
2321
|
+
initialized: boolean;
|
|
2322
|
+
};
|
|
2240
2323
|
penMode: boolean;
|
|
2241
2324
|
penDetected: boolean;
|
|
2242
2325
|
exportBackground: boolean;
|
|
@@ -2257,6 +2340,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2257
2340
|
currentHoveredFontFamily: number | null;
|
|
2258
2341
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2259
2342
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2343
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
2260
2344
|
viewBackgroundColor: string;
|
|
2261
2345
|
scrollX: number;
|
|
2262
2346
|
scrollY: number;
|
|
@@ -2268,8 +2352,8 @@ export declare const actionChangeTextAlign: {
|
|
|
2268
2352
|
zoom: Readonly<{
|
|
2269
2353
|
value: import("../types").NormalizedZoomValue;
|
|
2270
2354
|
}>;
|
|
2271
|
-
openMenu: "
|
|
2272
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2355
|
+
openMenu: "canvas" | "shape" | null;
|
|
2356
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2273
2357
|
openSidebar: {
|
|
2274
2358
|
name: string;
|
|
2275
2359
|
tab?: string | undefined;
|
|
@@ -2350,10 +2434,8 @@ export declare const actionChangeTextAlign: {
|
|
|
2350
2434
|
shown: true;
|
|
2351
2435
|
data: import("../charts").Spreadsheet;
|
|
2352
2436
|
};
|
|
2353
|
-
|
|
2354
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2437
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2355
2438
|
linkOpacity: number;
|
|
2356
|
-
trayModeEnabled: boolean;
|
|
2357
2439
|
colorPalette?: {
|
|
2358
2440
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2359
2441
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -2366,6 +2448,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2366
2448
|
} | undefined;
|
|
2367
2449
|
allowWheelZoom?: boolean | undefined;
|
|
2368
2450
|
allowPinchZoom?: boolean | undefined;
|
|
2451
|
+
disableContextMenu: boolean;
|
|
2369
2452
|
pinnedScripts?: string[] | undefined;
|
|
2370
2453
|
customPens?: any[] | undefined;
|
|
2371
2454
|
currentStrokeOptions?: any;
|
|
@@ -2374,6 +2457,10 @@ export declare const actionChangeTextAlign: {
|
|
|
2374
2457
|
Bold: string;
|
|
2375
2458
|
Regular: string;
|
|
2376
2459
|
};
|
|
2460
|
+
gridDirection: {
|
|
2461
|
+
horizontal: boolean;
|
|
2462
|
+
vertical: boolean;
|
|
2463
|
+
};
|
|
2377
2464
|
highlightSearchResult: boolean;
|
|
2378
2465
|
dynamicStyle: {
|
|
2379
2466
|
[x: string]: string;
|
|
@@ -2395,20 +2482,18 @@ export declare const actionChangeTextAlign: {
|
|
|
2395
2482
|
followedBy: Set<import("../types").SocketId>;
|
|
2396
2483
|
isCropping: boolean;
|
|
2397
2484
|
croppingElementId: string | null;
|
|
2398
|
-
searchMatches:
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
}[];
|
|
2407
|
-
}[];
|
|
2485
|
+
searchMatches: Readonly<{
|
|
2486
|
+
focusedId: string | null;
|
|
2487
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2488
|
+
}> | null;
|
|
2489
|
+
activeLockedId: string | null;
|
|
2490
|
+
lockedMultiSelections: {
|
|
2491
|
+
[groupId: string]: true;
|
|
2492
|
+
};
|
|
2408
2493
|
};
|
|
2409
2494
|
captureUpdate: "IMMEDIATELY";
|
|
2410
2495
|
};
|
|
2411
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2496
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2412
2497
|
} & {
|
|
2413
2498
|
keyTest?: undefined;
|
|
2414
2499
|
};
|
|
@@ -2439,23 +2524,28 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2439
2524
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2440
2525
|
isBindingEnabled: boolean;
|
|
2441
2526
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2442
|
-
suggestedBindings: import("@excalidraw/element
|
|
2527
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2443
2528
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2444
2529
|
frameRendering: {
|
|
2445
2530
|
enabled: boolean;
|
|
2446
2531
|
name: boolean;
|
|
2447
2532
|
outline: boolean;
|
|
2448
2533
|
clip: boolean;
|
|
2534
|
+
markerName: boolean;
|
|
2535
|
+
markerEnabled: boolean;
|
|
2449
2536
|
};
|
|
2450
2537
|
editingFrame: string | null;
|
|
2451
2538
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2452
2539
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2453
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2454
2540
|
activeTool: {
|
|
2455
2541
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2456
2542
|
locked: boolean;
|
|
2457
2543
|
fromSelection: boolean;
|
|
2458
2544
|
} & import("../types").ActiveTool;
|
|
2545
|
+
preferredSelectionTool: {
|
|
2546
|
+
type: "selection" | "lasso";
|
|
2547
|
+
initialized: boolean;
|
|
2548
|
+
};
|
|
2459
2549
|
penMode: boolean;
|
|
2460
2550
|
penDetected: boolean;
|
|
2461
2551
|
exportBackground: boolean;
|
|
@@ -2477,6 +2567,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2477
2567
|
currentHoveredFontFamily: number | null;
|
|
2478
2568
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2479
2569
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2570
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
2480
2571
|
viewBackgroundColor: string;
|
|
2481
2572
|
scrollX: number;
|
|
2482
2573
|
scrollY: number;
|
|
@@ -2488,8 +2579,8 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2488
2579
|
zoom: Readonly<{
|
|
2489
2580
|
value: import("../types").NormalizedZoomValue;
|
|
2490
2581
|
}>;
|
|
2491
|
-
openMenu: "
|
|
2492
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2582
|
+
openMenu: "canvas" | "shape" | null;
|
|
2583
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2493
2584
|
openSidebar: {
|
|
2494
2585
|
name: string;
|
|
2495
2586
|
tab?: string | undefined;
|
|
@@ -2570,10 +2661,8 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2570
2661
|
shown: true;
|
|
2571
2662
|
data: import("../charts").Spreadsheet;
|
|
2572
2663
|
};
|
|
2573
|
-
|
|
2574
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2664
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2575
2665
|
linkOpacity: number;
|
|
2576
|
-
trayModeEnabled: boolean;
|
|
2577
2666
|
colorPalette?: {
|
|
2578
2667
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2579
2668
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -2586,6 +2675,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2586
2675
|
} | undefined;
|
|
2587
2676
|
allowWheelZoom?: boolean | undefined;
|
|
2588
2677
|
allowPinchZoom?: boolean | undefined;
|
|
2678
|
+
disableContextMenu: boolean;
|
|
2589
2679
|
pinnedScripts?: string[] | undefined;
|
|
2590
2680
|
customPens?: any[] | undefined;
|
|
2591
2681
|
currentStrokeOptions?: any;
|
|
@@ -2594,6 +2684,10 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2594
2684
|
Bold: string;
|
|
2595
2685
|
Regular: string;
|
|
2596
2686
|
};
|
|
2687
|
+
gridDirection: {
|
|
2688
|
+
horizontal: boolean;
|
|
2689
|
+
vertical: boolean;
|
|
2690
|
+
};
|
|
2597
2691
|
highlightSearchResult: boolean;
|
|
2598
2692
|
dynamicStyle: {
|
|
2599
2693
|
[x: string]: string;
|
|
@@ -2615,20 +2709,18 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2615
2709
|
followedBy: Set<import("../types").SocketId>;
|
|
2616
2710
|
isCropping: boolean;
|
|
2617
2711
|
croppingElementId: string | null;
|
|
2618
|
-
searchMatches:
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
}[];
|
|
2627
|
-
}[];
|
|
2712
|
+
searchMatches: Readonly<{
|
|
2713
|
+
focusedId: string | null;
|
|
2714
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2715
|
+
}> | null;
|
|
2716
|
+
activeLockedId: string | null;
|
|
2717
|
+
lockedMultiSelections: {
|
|
2718
|
+
[groupId: string]: true;
|
|
2719
|
+
};
|
|
2628
2720
|
};
|
|
2629
2721
|
captureUpdate: "IMMEDIATELY";
|
|
2630
2722
|
};
|
|
2631
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2723
|
+
PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2632
2724
|
} & {
|
|
2633
2725
|
keyTest?: undefined;
|
|
2634
2726
|
};
|
|
@@ -2658,23 +2750,28 @@ export declare const actionChangeRoundness: {
|
|
|
2658
2750
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2659
2751
|
isBindingEnabled: boolean;
|
|
2660
2752
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2661
|
-
suggestedBindings: import("@excalidraw/element
|
|
2753
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2662
2754
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2663
2755
|
frameRendering: {
|
|
2664
2756
|
enabled: boolean;
|
|
2665
2757
|
name: boolean;
|
|
2666
2758
|
outline: boolean;
|
|
2667
2759
|
clip: boolean;
|
|
2760
|
+
markerName: boolean;
|
|
2761
|
+
markerEnabled: boolean;
|
|
2668
2762
|
};
|
|
2669
2763
|
editingFrame: string | null;
|
|
2670
2764
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2671
2765
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2672
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2673
2766
|
activeTool: {
|
|
2674
2767
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2675
2768
|
locked: boolean;
|
|
2676
2769
|
fromSelection: boolean;
|
|
2677
2770
|
} & import("../types").ActiveTool;
|
|
2771
|
+
preferredSelectionTool: {
|
|
2772
|
+
type: "selection" | "lasso";
|
|
2773
|
+
initialized: boolean;
|
|
2774
|
+
};
|
|
2678
2775
|
penMode: boolean;
|
|
2679
2776
|
penDetected: boolean;
|
|
2680
2777
|
exportBackground: boolean;
|
|
@@ -2695,6 +2792,7 @@ export declare const actionChangeRoundness: {
|
|
|
2695
2792
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2696
2793
|
currentHoveredFontFamily: number | null;
|
|
2697
2794
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2795
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
2698
2796
|
viewBackgroundColor: string;
|
|
2699
2797
|
scrollX: number;
|
|
2700
2798
|
scrollY: number;
|
|
@@ -2706,8 +2804,8 @@ export declare const actionChangeRoundness: {
|
|
|
2706
2804
|
zoom: Readonly<{
|
|
2707
2805
|
value: import("../types").NormalizedZoomValue;
|
|
2708
2806
|
}>;
|
|
2709
|
-
openMenu: "
|
|
2710
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2807
|
+
openMenu: "canvas" | "shape" | null;
|
|
2808
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2711
2809
|
openSidebar: {
|
|
2712
2810
|
name: string;
|
|
2713
2811
|
tab?: string | undefined;
|
|
@@ -2788,10 +2886,8 @@ export declare const actionChangeRoundness: {
|
|
|
2788
2886
|
shown: true;
|
|
2789
2887
|
data: import("../charts").Spreadsheet;
|
|
2790
2888
|
};
|
|
2791
|
-
|
|
2792
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2889
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2793
2890
|
linkOpacity: number;
|
|
2794
|
-
trayModeEnabled: boolean;
|
|
2795
2891
|
colorPalette?: {
|
|
2796
2892
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2797
2893
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -2804,6 +2900,7 @@ export declare const actionChangeRoundness: {
|
|
|
2804
2900
|
} | undefined;
|
|
2805
2901
|
allowWheelZoom?: boolean | undefined;
|
|
2806
2902
|
allowPinchZoom?: boolean | undefined;
|
|
2903
|
+
disableContextMenu: boolean;
|
|
2807
2904
|
pinnedScripts?: string[] | undefined;
|
|
2808
2905
|
customPens?: any[] | undefined;
|
|
2809
2906
|
currentStrokeOptions?: any;
|
|
@@ -2812,6 +2909,10 @@ export declare const actionChangeRoundness: {
|
|
|
2812
2909
|
Bold: string;
|
|
2813
2910
|
Regular: string;
|
|
2814
2911
|
};
|
|
2912
|
+
gridDirection: {
|
|
2913
|
+
horizontal: boolean;
|
|
2914
|
+
vertical: boolean;
|
|
2915
|
+
};
|
|
2815
2916
|
highlightSearchResult: boolean;
|
|
2816
2917
|
dynamicStyle: {
|
|
2817
2918
|
[x: string]: string;
|
|
@@ -2833,20 +2934,18 @@ export declare const actionChangeRoundness: {
|
|
|
2833
2934
|
followedBy: Set<import("../types").SocketId>;
|
|
2834
2935
|
isCropping: boolean;
|
|
2835
2936
|
croppingElementId: string | null;
|
|
2836
|
-
searchMatches:
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
}[];
|
|
2845
|
-
}[];
|
|
2937
|
+
searchMatches: Readonly<{
|
|
2938
|
+
focusedId: string | null;
|
|
2939
|
+
matches: readonly import("../types").SearchMatch[];
|
|
2940
|
+
}> | null;
|
|
2941
|
+
activeLockedId: string | null;
|
|
2942
|
+
lockedMultiSelections: {
|
|
2943
|
+
[groupId: string]: true;
|
|
2944
|
+
};
|
|
2846
2945
|
};
|
|
2847
2946
|
captureUpdate: "IMMEDIATELY";
|
|
2848
2947
|
};
|
|
2849
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2948
|
+
PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2850
2949
|
} & {
|
|
2851
2950
|
keyTest?: undefined;
|
|
2852
2951
|
};
|
|
@@ -2878,23 +2977,28 @@ export declare const actionChangeArrowhead: {
|
|
|
2878
2977
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2879
2978
|
isBindingEnabled: boolean;
|
|
2880
2979
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2881
|
-
suggestedBindings: import("@excalidraw/element
|
|
2980
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
2882
2981
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2883
2982
|
frameRendering: {
|
|
2884
2983
|
enabled: boolean;
|
|
2885
2984
|
name: boolean;
|
|
2886
2985
|
outline: boolean;
|
|
2887
2986
|
clip: boolean;
|
|
2987
|
+
markerName: boolean;
|
|
2988
|
+
markerEnabled: boolean;
|
|
2888
2989
|
};
|
|
2889
2990
|
editingFrame: string | null;
|
|
2890
2991
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2891
2992
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2892
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2893
2993
|
activeTool: {
|
|
2894
2994
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2895
2995
|
locked: boolean;
|
|
2896
2996
|
fromSelection: boolean;
|
|
2897
2997
|
} & import("../types").ActiveTool;
|
|
2998
|
+
preferredSelectionTool: {
|
|
2999
|
+
type: "selection" | "lasso";
|
|
3000
|
+
initialized: boolean;
|
|
3001
|
+
};
|
|
2898
3002
|
penMode: boolean;
|
|
2899
3003
|
penDetected: boolean;
|
|
2900
3004
|
exportBackground: boolean;
|
|
@@ -2916,6 +3020,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2916
3020
|
currentHoveredFontFamily: number | null;
|
|
2917
3021
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2918
3022
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
3023
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
2919
3024
|
viewBackgroundColor: string;
|
|
2920
3025
|
scrollX: number;
|
|
2921
3026
|
scrollY: number;
|
|
@@ -2927,8 +3032,8 @@ export declare const actionChangeArrowhead: {
|
|
|
2927
3032
|
zoom: Readonly<{
|
|
2928
3033
|
value: import("../types").NormalizedZoomValue;
|
|
2929
3034
|
}>;
|
|
2930
|
-
openMenu: "
|
|
2931
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
3035
|
+
openMenu: "canvas" | "shape" | null;
|
|
3036
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2932
3037
|
openSidebar: {
|
|
2933
3038
|
name: string;
|
|
2934
3039
|
tab?: string | undefined;
|
|
@@ -3009,10 +3114,8 @@ export declare const actionChangeArrowhead: {
|
|
|
3009
3114
|
shown: true;
|
|
3010
3115
|
data: import("../charts").Spreadsheet;
|
|
3011
3116
|
};
|
|
3012
|
-
|
|
3013
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
3117
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
3014
3118
|
linkOpacity: number;
|
|
3015
|
-
trayModeEnabled: boolean;
|
|
3016
3119
|
colorPalette?: {
|
|
3017
3120
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3018
3121
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -3025,6 +3128,7 @@ export declare const actionChangeArrowhead: {
|
|
|
3025
3128
|
} | undefined;
|
|
3026
3129
|
allowWheelZoom?: boolean | undefined;
|
|
3027
3130
|
allowPinchZoom?: boolean | undefined;
|
|
3131
|
+
disableContextMenu: boolean;
|
|
3028
3132
|
pinnedScripts?: string[] | undefined;
|
|
3029
3133
|
customPens?: any[] | undefined;
|
|
3030
3134
|
currentStrokeOptions?: any;
|
|
@@ -3033,6 +3137,10 @@ export declare const actionChangeArrowhead: {
|
|
|
3033
3137
|
Bold: string;
|
|
3034
3138
|
Regular: string;
|
|
3035
3139
|
};
|
|
3140
|
+
gridDirection: {
|
|
3141
|
+
horizontal: boolean;
|
|
3142
|
+
vertical: boolean;
|
|
3143
|
+
};
|
|
3036
3144
|
highlightSearchResult: boolean;
|
|
3037
3145
|
dynamicStyle: {
|
|
3038
3146
|
[x: string]: string;
|
|
@@ -3054,20 +3162,27 @@ export declare const actionChangeArrowhead: {
|
|
|
3054
3162
|
followedBy: Set<import("../types").SocketId>;
|
|
3055
3163
|
isCropping: boolean;
|
|
3056
3164
|
croppingElementId: string | null;
|
|
3057
|
-
searchMatches:
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
}[];
|
|
3066
|
-
}[];
|
|
3165
|
+
searchMatches: Readonly<{
|
|
3166
|
+
focusedId: string | null;
|
|
3167
|
+
matches: readonly import("../types").SearchMatch[];
|
|
3168
|
+
}> | null;
|
|
3169
|
+
activeLockedId: string | null;
|
|
3170
|
+
lockedMultiSelections: {
|
|
3171
|
+
[groupId: string]: true;
|
|
3172
|
+
};
|
|
3067
3173
|
};
|
|
3068
3174
|
captureUpdate: "IMMEDIATELY";
|
|
3069
3175
|
};
|
|
3070
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3176
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3177
|
+
} & {
|
|
3178
|
+
keyTest?: undefined;
|
|
3179
|
+
};
|
|
3180
|
+
export declare const actionChangeArrowProperties: {
|
|
3181
|
+
name: "changeArrowProperties";
|
|
3182
|
+
label: string;
|
|
3183
|
+
trackEvent: false;
|
|
3184
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
|
|
3185
|
+
PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3071
3186
|
} & {
|
|
3072
3187
|
keyTest?: undefined;
|
|
3073
3188
|
};
|
|
@@ -3097,23 +3212,28 @@ export declare const actionChangeArrowType: {
|
|
|
3097
3212
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3098
3213
|
isBindingEnabled: boolean;
|
|
3099
3214
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
3100
|
-
suggestedBindings: import("@excalidraw/element
|
|
3215
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
3101
3216
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
3102
3217
|
frameRendering: {
|
|
3103
3218
|
enabled: boolean;
|
|
3104
3219
|
name: boolean;
|
|
3105
3220
|
outline: boolean;
|
|
3106
3221
|
clip: boolean;
|
|
3222
|
+
markerName: boolean;
|
|
3223
|
+
markerEnabled: boolean;
|
|
3107
3224
|
};
|
|
3108
3225
|
editingFrame: string | null;
|
|
3109
3226
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
3110
3227
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3111
|
-
editingLinearElement: LinearElementEditor | null;
|
|
3112
3228
|
activeTool: {
|
|
3113
3229
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
3114
3230
|
locked: boolean;
|
|
3115
3231
|
fromSelection: boolean;
|
|
3116
3232
|
} & import("../types").ActiveTool;
|
|
3233
|
+
preferredSelectionTool: {
|
|
3234
|
+
type: "selection" | "lasso";
|
|
3235
|
+
initialized: boolean;
|
|
3236
|
+
};
|
|
3117
3237
|
penMode: boolean;
|
|
3118
3238
|
penDetected: boolean;
|
|
3119
3239
|
exportBackground: boolean;
|
|
@@ -3134,6 +3254,7 @@ export declare const actionChangeArrowType: {
|
|
|
3134
3254
|
currentItemEndArrowhead: Arrowhead | null;
|
|
3135
3255
|
currentHoveredFontFamily: number | null;
|
|
3136
3256
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
3257
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
3137
3258
|
viewBackgroundColor: string;
|
|
3138
3259
|
scrollX: number;
|
|
3139
3260
|
scrollY: number;
|
|
@@ -3145,8 +3266,8 @@ export declare const actionChangeArrowType: {
|
|
|
3145
3266
|
zoom: Readonly<{
|
|
3146
3267
|
value: import("../types").NormalizedZoomValue;
|
|
3147
3268
|
}>;
|
|
3148
|
-
openMenu: "
|
|
3149
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
3269
|
+
openMenu: "canvas" | "shape" | null;
|
|
3270
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
3150
3271
|
openSidebar: {
|
|
3151
3272
|
name: string;
|
|
3152
3273
|
tab?: string | undefined;
|
|
@@ -3227,10 +3348,8 @@ export declare const actionChangeArrowType: {
|
|
|
3227
3348
|
shown: true;
|
|
3228
3349
|
data: import("../charts").Spreadsheet;
|
|
3229
3350
|
};
|
|
3230
|
-
|
|
3231
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
3351
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
3232
3352
|
linkOpacity: number;
|
|
3233
|
-
trayModeEnabled: boolean;
|
|
3234
3353
|
colorPalette?: {
|
|
3235
3354
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3236
3355
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -3243,6 +3362,7 @@ export declare const actionChangeArrowType: {
|
|
|
3243
3362
|
} | undefined;
|
|
3244
3363
|
allowWheelZoom?: boolean | undefined;
|
|
3245
3364
|
allowPinchZoom?: boolean | undefined;
|
|
3365
|
+
disableContextMenu: boolean;
|
|
3246
3366
|
pinnedScripts?: string[] | undefined;
|
|
3247
3367
|
customPens?: any[] | undefined;
|
|
3248
3368
|
currentStrokeOptions?: any;
|
|
@@ -3251,6 +3371,10 @@ export declare const actionChangeArrowType: {
|
|
|
3251
3371
|
Bold: string;
|
|
3252
3372
|
Regular: string;
|
|
3253
3373
|
};
|
|
3374
|
+
gridDirection: {
|
|
3375
|
+
horizontal: boolean;
|
|
3376
|
+
vertical: boolean;
|
|
3377
|
+
};
|
|
3254
3378
|
highlightSearchResult: boolean;
|
|
3255
3379
|
dynamicStyle: {
|
|
3256
3380
|
[x: string]: string;
|
|
@@ -3272,20 +3396,252 @@ export declare const actionChangeArrowType: {
|
|
|
3272
3396
|
followedBy: Set<import("../types").SocketId>;
|
|
3273
3397
|
isCropping: boolean;
|
|
3274
3398
|
croppingElementId: string | null;
|
|
3275
|
-
searchMatches:
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
}[];
|
|
3284
|
-
}[];
|
|
3399
|
+
searchMatches: Readonly<{
|
|
3400
|
+
focusedId: string | null;
|
|
3401
|
+
matches: readonly import("../types").SearchMatch[];
|
|
3402
|
+
}> | null;
|
|
3403
|
+
activeLockedId: string | null;
|
|
3404
|
+
lockedMultiSelections: {
|
|
3405
|
+
[groupId: string]: true;
|
|
3406
|
+
};
|
|
3285
3407
|
};
|
|
3286
3408
|
captureUpdate: "IMMEDIATELY";
|
|
3287
3409
|
};
|
|
3288
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3410
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3411
|
+
} & {
|
|
3412
|
+
keyTest?: undefined;
|
|
3413
|
+
};
|
|
3414
|
+
export declare const actionToggleFrameRole: {
|
|
3415
|
+
name: "toggleFrameRole";
|
|
3416
|
+
label: string;
|
|
3417
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
3418
|
+
trackEvent: {
|
|
3419
|
+
category: "element";
|
|
3420
|
+
};
|
|
3421
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
3422
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
3423
|
+
appState: Readonly<AppState>;
|
|
3424
|
+
captureUpdate: "IMMEDIATELY";
|
|
3425
|
+
} | {
|
|
3426
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
3427
|
+
appState: {
|
|
3428
|
+
currentItemFrameRole: "marker" | null;
|
|
3429
|
+
contextMenu: {
|
|
3430
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
3431
|
+
top: number;
|
|
3432
|
+
left: number;
|
|
3433
|
+
} | null;
|
|
3434
|
+
showWelcomeScreen: boolean;
|
|
3435
|
+
isLoading: boolean;
|
|
3436
|
+
errorMessage: import("react").ReactNode;
|
|
3437
|
+
activeEmbeddable: {
|
|
3438
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
3439
|
+
state: "active" | "hover";
|
|
3440
|
+
} | null;
|
|
3441
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
3442
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3443
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
3444
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3445
|
+
isBindingEnabled: boolean;
|
|
3446
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
3447
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
3448
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
3449
|
+
frameRendering: {
|
|
3450
|
+
enabled: boolean;
|
|
3451
|
+
name: boolean;
|
|
3452
|
+
outline: boolean;
|
|
3453
|
+
clip: boolean;
|
|
3454
|
+
markerName: boolean;
|
|
3455
|
+
markerEnabled: boolean;
|
|
3456
|
+
};
|
|
3457
|
+
editingFrame: string | null;
|
|
3458
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
3459
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3460
|
+
activeTool: {
|
|
3461
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
3462
|
+
locked: boolean;
|
|
3463
|
+
fromSelection: boolean;
|
|
3464
|
+
} & import("../types").ActiveTool;
|
|
3465
|
+
preferredSelectionTool: {
|
|
3466
|
+
type: "selection" | "lasso";
|
|
3467
|
+
initialized: boolean;
|
|
3468
|
+
};
|
|
3469
|
+
penMode: boolean;
|
|
3470
|
+
penDetected: boolean;
|
|
3471
|
+
exportBackground: boolean;
|
|
3472
|
+
exportEmbedScene: boolean;
|
|
3473
|
+
exportWithDarkMode: boolean;
|
|
3474
|
+
exportScale: number;
|
|
3475
|
+
currentItemStrokeColor: string;
|
|
3476
|
+
currentItemBackgroundColor: string;
|
|
3477
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
3478
|
+
currentItemStrokeWidth: number;
|
|
3479
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
3480
|
+
currentItemRoughness: number;
|
|
3481
|
+
currentItemOpacity: number;
|
|
3482
|
+
currentItemFontFamily: number;
|
|
3483
|
+
currentItemFontSize: number;
|
|
3484
|
+
currentItemTextAlign: string;
|
|
3485
|
+
currentItemStartArrowhead: Arrowhead | null;
|
|
3486
|
+
currentItemEndArrowhead: Arrowhead | null;
|
|
3487
|
+
currentHoveredFontFamily: number | null;
|
|
3488
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
3489
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
3490
|
+
viewBackgroundColor: string;
|
|
3491
|
+
scrollX: number;
|
|
3492
|
+
scrollY: number;
|
|
3493
|
+
cursorButton: "up" | "down";
|
|
3494
|
+
scrolledOutside: boolean;
|
|
3495
|
+
name: string | null;
|
|
3496
|
+
isResizing: boolean;
|
|
3497
|
+
isRotating: boolean;
|
|
3498
|
+
zoom: Readonly<{
|
|
3499
|
+
value: import("../types").NormalizedZoomValue;
|
|
3500
|
+
}>;
|
|
3501
|
+
openMenu: "canvas" | "shape" | null;
|
|
3502
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
3503
|
+
openSidebar: {
|
|
3504
|
+
name: string;
|
|
3505
|
+
tab?: string | undefined;
|
|
3506
|
+
} | null;
|
|
3507
|
+
openDialog: {
|
|
3508
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
3509
|
+
} | {
|
|
3510
|
+
name: "ttd";
|
|
3511
|
+
tab: "mermaid" | "text-to-diagram";
|
|
3512
|
+
} | {
|
|
3513
|
+
name: "commandPalette";
|
|
3514
|
+
} | {
|
|
3515
|
+
name: "elementLinkSelector";
|
|
3516
|
+
sourceElementId: string;
|
|
3517
|
+
} | null;
|
|
3518
|
+
defaultSidebarDockedPreference: boolean;
|
|
3519
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
3520
|
+
selectedElementIds: Readonly<{
|
|
3521
|
+
[id: string]: true;
|
|
3522
|
+
}>;
|
|
3523
|
+
hoveredElementIds: Readonly<{
|
|
3524
|
+
[id: string]: true;
|
|
3525
|
+
}>;
|
|
3526
|
+
previousSelectedElementIds: {
|
|
3527
|
+
[id: string]: true;
|
|
3528
|
+
};
|
|
3529
|
+
selectedElementsAreBeingDragged: boolean;
|
|
3530
|
+
shouldCacheIgnoreZoom: boolean;
|
|
3531
|
+
toast: {
|
|
3532
|
+
message: string;
|
|
3533
|
+
closable?: boolean | undefined;
|
|
3534
|
+
duration?: number | undefined;
|
|
3535
|
+
} | null;
|
|
3536
|
+
zenModeEnabled: boolean;
|
|
3537
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
3538
|
+
gridSize: number;
|
|
3539
|
+
gridStep: number;
|
|
3540
|
+
gridModeEnabled: boolean;
|
|
3541
|
+
viewModeEnabled: boolean;
|
|
3542
|
+
selectedGroupIds: {
|
|
3543
|
+
[groupId: string]: boolean;
|
|
3544
|
+
};
|
|
3545
|
+
editingGroupId: string | null;
|
|
3546
|
+
width: number;
|
|
3547
|
+
height: number;
|
|
3548
|
+
offsetTop: number;
|
|
3549
|
+
offsetLeft: number;
|
|
3550
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
3551
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
3552
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
3553
|
+
button?: "up" | "down" | undefined;
|
|
3554
|
+
selectedElementIds?: Readonly<{
|
|
3555
|
+
[id: string]: true;
|
|
3556
|
+
}> | undefined;
|
|
3557
|
+
username?: string | null | undefined;
|
|
3558
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
3559
|
+
color?: {
|
|
3560
|
+
background: string;
|
|
3561
|
+
stroke: string;
|
|
3562
|
+
} | undefined;
|
|
3563
|
+
avatarUrl?: string | undefined;
|
|
3564
|
+
id?: string | undefined;
|
|
3565
|
+
socketId?: import("../types").SocketId | undefined;
|
|
3566
|
+
isCurrentUser?: boolean | undefined;
|
|
3567
|
+
isInCall?: boolean | undefined;
|
|
3568
|
+
isSpeaking?: boolean | undefined;
|
|
3569
|
+
isMuted?: boolean | undefined;
|
|
3570
|
+
}>>;
|
|
3571
|
+
stats: {
|
|
3572
|
+
open: boolean;
|
|
3573
|
+
panels: number;
|
|
3574
|
+
};
|
|
3575
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
3576
|
+
pasteDialog: {
|
|
3577
|
+
shown: false;
|
|
3578
|
+
data: null;
|
|
3579
|
+
} | {
|
|
3580
|
+
shown: true;
|
|
3581
|
+
data: import("../charts").Spreadsheet;
|
|
3582
|
+
};
|
|
3583
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
3584
|
+
linkOpacity: number;
|
|
3585
|
+
colorPalette?: {
|
|
3586
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3587
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3588
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
3589
|
+
topPicks: {
|
|
3590
|
+
canvasBackground: [string, string, string, string, string];
|
|
3591
|
+
elementStroke: [string, string, string, string, string];
|
|
3592
|
+
elementBackground: [string, string, string, string, string];
|
|
3593
|
+
};
|
|
3594
|
+
} | undefined;
|
|
3595
|
+
allowWheelZoom?: boolean | undefined;
|
|
3596
|
+
allowPinchZoom?: boolean | undefined;
|
|
3597
|
+
disableContextMenu: boolean;
|
|
3598
|
+
pinnedScripts?: string[] | undefined;
|
|
3599
|
+
customPens?: any[] | undefined;
|
|
3600
|
+
currentStrokeOptions?: any;
|
|
3601
|
+
resetCustomPen?: any;
|
|
3602
|
+
gridColor: {
|
|
3603
|
+
Bold: string;
|
|
3604
|
+
Regular: string;
|
|
3605
|
+
};
|
|
3606
|
+
gridDirection: {
|
|
3607
|
+
horizontal: boolean;
|
|
3608
|
+
vertical: boolean;
|
|
3609
|
+
};
|
|
3610
|
+
highlightSearchResult: boolean;
|
|
3611
|
+
dynamicStyle: {
|
|
3612
|
+
[x: string]: string;
|
|
3613
|
+
};
|
|
3614
|
+
frameColor: {
|
|
3615
|
+
stroke: string;
|
|
3616
|
+
fill: string;
|
|
3617
|
+
nameColor: string;
|
|
3618
|
+
};
|
|
3619
|
+
invertBindingBehaviour: boolean;
|
|
3620
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
3621
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
3622
|
+
originSnapOffset: {
|
|
3623
|
+
x: number;
|
|
3624
|
+
y: number;
|
|
3625
|
+
} | null;
|
|
3626
|
+
objectsSnapModeEnabled: boolean;
|
|
3627
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
3628
|
+
followedBy: Set<import("../types").SocketId>;
|
|
3629
|
+
isCropping: boolean;
|
|
3630
|
+
croppingElementId: string | null;
|
|
3631
|
+
searchMatches: Readonly<{
|
|
3632
|
+
focusedId: string | null;
|
|
3633
|
+
matches: readonly import("../types").SearchMatch[];
|
|
3634
|
+
}> | null;
|
|
3635
|
+
activeLockedId: string | null;
|
|
3636
|
+
lockedMultiSelections: {
|
|
3637
|
+
[groupId: string]: true;
|
|
3638
|
+
};
|
|
3639
|
+
};
|
|
3640
|
+
captureUpdate: "IMMEDIATELY";
|
|
3641
|
+
};
|
|
3642
|
+
predicate: (_elements: readonly ExcalidrawElement[], appState: AppState, _props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
3643
|
+
checked: (appState: Readonly<AppState>) => boolean;
|
|
3644
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3289
3645
|
} & {
|
|
3290
3646
|
keyTest?: undefined;
|
|
3291
3647
|
};
|