@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
|
@@ -28,23 +28,28 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
|
-
suggestedBindings: import("@excalidraw/element
|
|
31
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
32
32
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
33
|
frameRendering: {
|
|
34
34
|
enabled: boolean;
|
|
35
35
|
name: boolean;
|
|
36
36
|
outline: boolean;
|
|
37
37
|
clip: boolean;
|
|
38
|
+
markerName: boolean;
|
|
39
|
+
markerEnabled: boolean;
|
|
38
40
|
};
|
|
39
41
|
editingFrame: string | null;
|
|
40
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
41
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
43
44
|
activeTool: {
|
|
44
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
46
|
locked: boolean;
|
|
46
47
|
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
49
|
+
preferredSelectionTool: {
|
|
50
|
+
type: "selection" | "lasso";
|
|
51
|
+
initialized: boolean;
|
|
52
|
+
};
|
|
48
53
|
penMode: boolean;
|
|
49
54
|
penDetected: boolean;
|
|
50
55
|
exportBackground: boolean;
|
|
@@ -66,6 +71,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
66
71
|
currentHoveredFontFamily: number | null;
|
|
67
72
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
73
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
74
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
69
75
|
viewBackgroundColor: string;
|
|
70
76
|
scrollX: number;
|
|
71
77
|
scrollY: number;
|
|
@@ -77,8 +83,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
77
83
|
zoom: Readonly<{
|
|
78
84
|
value: import("../types").NormalizedZoomValue;
|
|
79
85
|
}>;
|
|
80
|
-
openMenu: "
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
|
+
openMenu: "canvas" | "shape" | null;
|
|
87
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
88
|
openSidebar: {
|
|
83
89
|
name: string;
|
|
84
90
|
tab?: string | undefined;
|
|
@@ -156,10 +162,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
156
162
|
shown: true;
|
|
157
163
|
data: import("../charts").Spreadsheet;
|
|
158
164
|
};
|
|
159
|
-
|
|
160
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
166
|
linkOpacity: number;
|
|
162
|
-
trayModeEnabled: boolean;
|
|
163
167
|
colorPalette?: {
|
|
164
168
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
165
169
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -172,6 +176,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
172
176
|
} | undefined;
|
|
173
177
|
allowWheelZoom?: boolean | undefined;
|
|
174
178
|
allowPinchZoom?: boolean | undefined;
|
|
179
|
+
disableContextMenu: boolean;
|
|
175
180
|
pinnedScripts?: string[] | undefined;
|
|
176
181
|
customPens?: any[] | undefined;
|
|
177
182
|
currentStrokeOptions?: any;
|
|
@@ -180,6 +185,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
180
185
|
Bold: string;
|
|
181
186
|
Regular: string;
|
|
182
187
|
};
|
|
188
|
+
gridDirection: {
|
|
189
|
+
horizontal: boolean;
|
|
190
|
+
vertical: boolean;
|
|
191
|
+
};
|
|
183
192
|
highlightSearchResult: boolean;
|
|
184
193
|
dynamicStyle: {
|
|
185
194
|
[x: string]: string;
|
|
@@ -190,7 +199,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
190
199
|
nameColor: string;
|
|
191
200
|
};
|
|
192
201
|
invertBindingBehaviour: boolean;
|
|
193
|
-
selectedLinearElement: import("@excalidraw/element
|
|
202
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
194
203
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
195
204
|
originSnapOffset: {
|
|
196
205
|
x: number;
|
|
@@ -201,16 +210,14 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
201
210
|
followedBy: Set<import("../types").SocketId>;
|
|
202
211
|
isCropping: boolean;
|
|
203
212
|
croppingElementId: string | null;
|
|
204
|
-
searchMatches:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}[];
|
|
213
|
-
}[];
|
|
213
|
+
searchMatches: Readonly<{
|
|
214
|
+
focusedId: string | null;
|
|
215
|
+
matches: readonly import("../types").SearchMatch[];
|
|
216
|
+
}> | null;
|
|
217
|
+
activeLockedId: string | null;
|
|
218
|
+
lockedMultiSelections: {
|
|
219
|
+
[groupId: string]: true;
|
|
220
|
+
};
|
|
214
221
|
};
|
|
215
222
|
captureUpdate: "IMMEDIATELY";
|
|
216
223
|
} | {
|
|
@@ -252,23 +259,28 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
252
259
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
253
260
|
isBindingEnabled: boolean;
|
|
254
261
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
255
|
-
suggestedBindings: import("@excalidraw/element
|
|
262
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
256
263
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
257
264
|
frameRendering: {
|
|
258
265
|
enabled: boolean;
|
|
259
266
|
name: boolean;
|
|
260
267
|
outline: boolean;
|
|
261
268
|
clip: boolean;
|
|
269
|
+
markerName: boolean;
|
|
270
|
+
markerEnabled: boolean;
|
|
262
271
|
};
|
|
263
272
|
editingFrame: string | null;
|
|
264
273
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
265
274
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
267
275
|
activeTool: {
|
|
268
276
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
269
277
|
locked: boolean;
|
|
270
278
|
fromSelection: boolean;
|
|
271
279
|
} & import("../types").ActiveTool;
|
|
280
|
+
preferredSelectionTool: {
|
|
281
|
+
type: "selection" | "lasso";
|
|
282
|
+
initialized: boolean;
|
|
283
|
+
};
|
|
272
284
|
penMode: boolean;
|
|
273
285
|
penDetected: boolean;
|
|
274
286
|
exportBackground: boolean;
|
|
@@ -290,6 +302,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
290
302
|
currentHoveredFontFamily: number | null;
|
|
291
303
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
292
304
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
305
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
293
306
|
viewBackgroundColor: string;
|
|
294
307
|
scrollX: number;
|
|
295
308
|
scrollY: number;
|
|
@@ -301,8 +314,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
301
314
|
zoom: Readonly<{
|
|
302
315
|
value: import("../types").NormalizedZoomValue;
|
|
303
316
|
}>;
|
|
304
|
-
openMenu: "
|
|
305
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
317
|
+
openMenu: "canvas" | "shape" | null;
|
|
318
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
306
319
|
openSidebar: {
|
|
307
320
|
name: string;
|
|
308
321
|
tab?: string | undefined;
|
|
@@ -380,10 +393,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
380
393
|
shown: true;
|
|
381
394
|
data: import("../charts").Spreadsheet;
|
|
382
395
|
};
|
|
383
|
-
|
|
384
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
396
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
385
397
|
linkOpacity: number;
|
|
386
|
-
trayModeEnabled: boolean;
|
|
387
398
|
colorPalette?: {
|
|
388
399
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
389
400
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -396,6 +407,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
396
407
|
} | undefined;
|
|
397
408
|
allowWheelZoom?: boolean | undefined;
|
|
398
409
|
allowPinchZoom?: boolean | undefined;
|
|
410
|
+
disableContextMenu: boolean;
|
|
399
411
|
pinnedScripts?: string[] | undefined;
|
|
400
412
|
customPens?: any[] | undefined;
|
|
401
413
|
currentStrokeOptions?: any;
|
|
@@ -404,6 +416,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
404
416
|
Bold: string;
|
|
405
417
|
Regular: string;
|
|
406
418
|
};
|
|
419
|
+
gridDirection: {
|
|
420
|
+
horizontal: boolean;
|
|
421
|
+
vertical: boolean;
|
|
422
|
+
};
|
|
407
423
|
highlightSearchResult: boolean;
|
|
408
424
|
dynamicStyle: {
|
|
409
425
|
[x: string]: string;
|
|
@@ -414,7 +430,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
414
430
|
nameColor: string;
|
|
415
431
|
};
|
|
416
432
|
invertBindingBehaviour: boolean;
|
|
417
|
-
selectedLinearElement: import("@excalidraw/element
|
|
433
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
418
434
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
419
435
|
originSnapOffset: {
|
|
420
436
|
x: number;
|
|
@@ -425,16 +441,14 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
425
441
|
followedBy: Set<import("../types").SocketId>;
|
|
426
442
|
isCropping: boolean;
|
|
427
443
|
croppingElementId: string | null;
|
|
428
|
-
searchMatches:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}[];
|
|
437
|
-
}[];
|
|
444
|
+
searchMatches: Readonly<{
|
|
445
|
+
focusedId: string | null;
|
|
446
|
+
matches: readonly import("../types").SearchMatch[];
|
|
447
|
+
}> | null;
|
|
448
|
+
activeLockedId: string | null;
|
|
449
|
+
lockedMultiSelections: {
|
|
450
|
+
[groupId: string]: true;
|
|
451
|
+
};
|
|
438
452
|
};
|
|
439
453
|
captureUpdate: "IMMEDIATELY";
|
|
440
454
|
} | {
|
|
@@ -461,6 +475,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
461
475
|
name: boolean;
|
|
462
476
|
outline: boolean;
|
|
463
477
|
clip: boolean;
|
|
478
|
+
markerName: boolean;
|
|
479
|
+
markerEnabled: boolean;
|
|
464
480
|
};
|
|
465
481
|
contextMenu: {
|
|
466
482
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -480,17 +496,20 @@ export declare const actionupdateFrameRendering: {
|
|
|
480
496
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
481
497
|
isBindingEnabled: boolean;
|
|
482
498
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
483
|
-
suggestedBindings: import("@excalidraw/element
|
|
499
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
484
500
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
485
501
|
editingFrame: string | null;
|
|
486
502
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
487
503
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
488
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
489
504
|
activeTool: {
|
|
490
505
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
491
506
|
locked: boolean;
|
|
492
507
|
fromSelection: boolean;
|
|
493
508
|
} & import("../types").ActiveTool;
|
|
509
|
+
preferredSelectionTool: {
|
|
510
|
+
type: "selection" | "lasso";
|
|
511
|
+
initialized: boolean;
|
|
512
|
+
};
|
|
494
513
|
penMode: boolean;
|
|
495
514
|
penDetected: boolean;
|
|
496
515
|
exportBackground: boolean;
|
|
@@ -512,6 +531,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
512
531
|
currentHoveredFontFamily: number | null;
|
|
513
532
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
514
533
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
534
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
515
535
|
viewBackgroundColor: string;
|
|
516
536
|
scrollX: number;
|
|
517
537
|
scrollY: number;
|
|
@@ -523,8 +543,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
523
543
|
zoom: Readonly<{
|
|
524
544
|
value: import("../types").NormalizedZoomValue;
|
|
525
545
|
}>;
|
|
526
|
-
openMenu: "
|
|
527
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
546
|
+
openMenu: "canvas" | "shape" | null;
|
|
547
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
528
548
|
openSidebar: {
|
|
529
549
|
name: string;
|
|
530
550
|
tab?: string | undefined;
|
|
@@ -605,10 +625,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
605
625
|
shown: true;
|
|
606
626
|
data: import("../charts").Spreadsheet;
|
|
607
627
|
};
|
|
608
|
-
|
|
609
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
628
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
610
629
|
linkOpacity: number;
|
|
611
|
-
trayModeEnabled: boolean;
|
|
612
630
|
colorPalette?: {
|
|
613
631
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
614
632
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -621,6 +639,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
621
639
|
} | undefined;
|
|
622
640
|
allowWheelZoom?: boolean | undefined;
|
|
623
641
|
allowPinchZoom?: boolean | undefined;
|
|
642
|
+
disableContextMenu: boolean;
|
|
624
643
|
pinnedScripts?: string[] | undefined;
|
|
625
644
|
customPens?: any[] | undefined;
|
|
626
645
|
currentStrokeOptions?: any;
|
|
@@ -629,6 +648,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
629
648
|
Bold: string;
|
|
630
649
|
Regular: string;
|
|
631
650
|
};
|
|
651
|
+
gridDirection: {
|
|
652
|
+
horizontal: boolean;
|
|
653
|
+
vertical: boolean;
|
|
654
|
+
};
|
|
632
655
|
highlightSearchResult: boolean;
|
|
633
656
|
dynamicStyle: {
|
|
634
657
|
[x: string]: string;
|
|
@@ -639,7 +662,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
639
662
|
nameColor: string;
|
|
640
663
|
};
|
|
641
664
|
invertBindingBehaviour: boolean;
|
|
642
|
-
selectedLinearElement: import("@excalidraw/element
|
|
665
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
643
666
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
644
667
|
originSnapOffset: {
|
|
645
668
|
x: number;
|
|
@@ -650,16 +673,14 @@ export declare const actionupdateFrameRendering: {
|
|
|
650
673
|
followedBy: Set<import("../types").SocketId>;
|
|
651
674
|
isCropping: boolean;
|
|
652
675
|
croppingElementId: string | null;
|
|
653
|
-
searchMatches:
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}[];
|
|
662
|
-
}[];
|
|
676
|
+
searchMatches: Readonly<{
|
|
677
|
+
focusedId: string | null;
|
|
678
|
+
matches: readonly import("../types").SearchMatch[];
|
|
679
|
+
}> | null;
|
|
680
|
+
activeLockedId: string | null;
|
|
681
|
+
lockedMultiSelections: {
|
|
682
|
+
[groupId: string]: true;
|
|
683
|
+
};
|
|
663
684
|
};
|
|
664
685
|
captureUpdate: "EVENTUALLY";
|
|
665
686
|
};
|
|
@@ -701,18 +722,23 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
701
722
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
702
723
|
isBindingEnabled: boolean;
|
|
703
724
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
704
|
-
suggestedBindings: import("@excalidraw/element
|
|
725
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
705
726
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
706
727
|
frameRendering: {
|
|
707
728
|
enabled: boolean;
|
|
708
729
|
name: boolean;
|
|
709
730
|
outline: boolean;
|
|
710
731
|
clip: boolean;
|
|
732
|
+
markerName: boolean;
|
|
733
|
+
markerEnabled: boolean;
|
|
711
734
|
};
|
|
712
735
|
editingFrame: string | null;
|
|
713
736
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
714
737
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
715
|
-
|
|
738
|
+
preferredSelectionTool: {
|
|
739
|
+
type: "selection" | "lasso";
|
|
740
|
+
initialized: boolean;
|
|
741
|
+
};
|
|
716
742
|
penMode: boolean;
|
|
717
743
|
penDetected: boolean;
|
|
718
744
|
exportBackground: boolean;
|
|
@@ -734,6 +760,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
734
760
|
currentHoveredFontFamily: number | null;
|
|
735
761
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
736
762
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
763
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
737
764
|
viewBackgroundColor: string;
|
|
738
765
|
scrollX: number;
|
|
739
766
|
scrollY: number;
|
|
@@ -745,8 +772,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
745
772
|
zoom: Readonly<{
|
|
746
773
|
value: import("../types").NormalizedZoomValue;
|
|
747
774
|
}>;
|
|
748
|
-
openMenu: "
|
|
749
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
775
|
+
openMenu: "canvas" | "shape" | null;
|
|
776
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
750
777
|
openSidebar: {
|
|
751
778
|
name: string;
|
|
752
779
|
tab?: string | undefined;
|
|
@@ -827,10 +854,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
827
854
|
shown: true;
|
|
828
855
|
data: import("../charts").Spreadsheet;
|
|
829
856
|
};
|
|
830
|
-
|
|
831
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
857
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
832
858
|
linkOpacity: number;
|
|
833
|
-
trayModeEnabled: boolean;
|
|
834
859
|
colorPalette?: {
|
|
835
860
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
836
861
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -843,6 +868,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
843
868
|
} | undefined;
|
|
844
869
|
allowWheelZoom?: boolean | undefined;
|
|
845
870
|
allowPinchZoom?: boolean | undefined;
|
|
871
|
+
disableContextMenu: boolean;
|
|
846
872
|
pinnedScripts?: string[] | undefined;
|
|
847
873
|
customPens?: any[] | undefined;
|
|
848
874
|
currentStrokeOptions?: any;
|
|
@@ -851,6 +877,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
851
877
|
Bold: string;
|
|
852
878
|
Regular: string;
|
|
853
879
|
};
|
|
880
|
+
gridDirection: {
|
|
881
|
+
horizontal: boolean;
|
|
882
|
+
vertical: boolean;
|
|
883
|
+
};
|
|
854
884
|
highlightSearchResult: boolean;
|
|
855
885
|
dynamicStyle: {
|
|
856
886
|
[x: string]: string;
|
|
@@ -861,7 +891,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
861
891
|
nameColor: string;
|
|
862
892
|
};
|
|
863
893
|
invertBindingBehaviour: boolean;
|
|
864
|
-
selectedLinearElement: import("@excalidraw/element
|
|
894
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
865
895
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
866
896
|
originSnapOffset: {
|
|
867
897
|
x: number;
|
|
@@ -872,16 +902,14 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
872
902
|
followedBy: Set<import("../types").SocketId>;
|
|
873
903
|
isCropping: boolean;
|
|
874
904
|
croppingElementId: string | null;
|
|
875
|
-
searchMatches:
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
}[];
|
|
884
|
-
}[];
|
|
905
|
+
searchMatches: Readonly<{
|
|
906
|
+
focusedId: string | null;
|
|
907
|
+
matches: readonly import("../types").SearchMatch[];
|
|
908
|
+
}> | null;
|
|
909
|
+
activeLockedId: string | null;
|
|
910
|
+
lockedMultiSelections: {
|
|
911
|
+
[groupId: string]: true;
|
|
912
|
+
};
|
|
885
913
|
};
|
|
886
914
|
captureUpdate: "EVENTUALLY";
|
|
887
915
|
};
|
|
@@ -924,15 +952,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
924
952
|
frameId: string | null;
|
|
925
953
|
boundElements: readonly Readonly<{
|
|
926
954
|
id: string;
|
|
927
|
-
type: "
|
|
955
|
+
type: "arrow" | "text";
|
|
928
956
|
}>[] | null;
|
|
929
957
|
updated: number;
|
|
930
958
|
link: string | null;
|
|
931
959
|
locked: boolean;
|
|
932
960
|
customData?: Record<string, any> | undefined;
|
|
961
|
+
}> & Readonly<{
|
|
962
|
+
type: "line" | "arrow";
|
|
963
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
964
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
965
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
966
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
967
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
968
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
933
969
|
}> & {
|
|
934
|
-
type: "rectangle";
|
|
935
|
-
} & {
|
|
936
970
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
937
971
|
}) | (Readonly<{
|
|
938
972
|
id: string;
|
|
@@ -961,14 +995,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
961
995
|
frameId: string | null;
|
|
962
996
|
boundElements: readonly Readonly<{
|
|
963
997
|
id: string;
|
|
964
|
-
type: "
|
|
998
|
+
type: "arrow" | "text";
|
|
965
999
|
}>[] | null;
|
|
966
1000
|
updated: number;
|
|
967
1001
|
link: string | null;
|
|
968
1002
|
locked: boolean;
|
|
969
1003
|
customData?: Record<string, any> | undefined;
|
|
970
1004
|
}> & {
|
|
971
|
-
type: "
|
|
1005
|
+
type: "selection";
|
|
972
1006
|
} & {
|
|
973
1007
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
974
1008
|
}) | (Readonly<{
|
|
@@ -998,15 +1032,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
998
1032
|
frameId: string | null;
|
|
999
1033
|
boundElements: readonly Readonly<{
|
|
1000
1034
|
id: string;
|
|
1001
|
-
type: "
|
|
1035
|
+
type: "arrow" | "text";
|
|
1002
1036
|
}>[] | null;
|
|
1003
1037
|
updated: number;
|
|
1004
1038
|
link: string | null;
|
|
1005
1039
|
locked: boolean;
|
|
1006
1040
|
customData?: Record<string, any> | undefined;
|
|
1007
1041
|
}> & {
|
|
1008
|
-
type: "
|
|
1009
|
-
name: string | null;
|
|
1042
|
+
type: "rectangle";
|
|
1010
1043
|
} & {
|
|
1011
1044
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1012
1045
|
}) | (Readonly<{
|
|
@@ -1036,15 +1069,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1036
1069
|
frameId: string | null;
|
|
1037
1070
|
boundElements: readonly Readonly<{
|
|
1038
1071
|
id: string;
|
|
1039
|
-
type: "
|
|
1072
|
+
type: "arrow" | "text";
|
|
1040
1073
|
}>[] | null;
|
|
1041
1074
|
updated: number;
|
|
1042
1075
|
link: string | null;
|
|
1043
1076
|
locked: boolean;
|
|
1044
1077
|
customData?: Record<string, any> | undefined;
|
|
1045
1078
|
}> & {
|
|
1046
|
-
type: "
|
|
1047
|
-
name: string | null;
|
|
1079
|
+
type: "diamond";
|
|
1048
1080
|
} & {
|
|
1049
1081
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1050
1082
|
}) | (Readonly<{
|
|
@@ -1074,16 +1106,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1074
1106
|
frameId: string | null;
|
|
1075
1107
|
boundElements: readonly Readonly<{
|
|
1076
1108
|
id: string;
|
|
1077
|
-
type: "
|
|
1109
|
+
type: "arrow" | "text";
|
|
1078
1110
|
}>[] | null;
|
|
1079
1111
|
updated: number;
|
|
1080
1112
|
link: string | null;
|
|
1081
1113
|
locked: boolean;
|
|
1082
1114
|
customData?: Record<string, any> | undefined;
|
|
1083
|
-
}> & Readonly<{
|
|
1084
|
-
type: "embeddable";
|
|
1085
|
-
scale: [number, number];
|
|
1086
1115
|
}> & {
|
|
1116
|
+
type: "ellipse";
|
|
1117
|
+
} & {
|
|
1087
1118
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1088
1119
|
}) | (Readonly<{
|
|
1089
1120
|
id: string;
|
|
@@ -1112,18 +1143,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1112
1143
|
frameId: string | null;
|
|
1113
1144
|
boundElements: readonly Readonly<{
|
|
1114
1145
|
id: string;
|
|
1115
|
-
type: "
|
|
1146
|
+
type: "arrow" | "text";
|
|
1116
1147
|
}>[] | null;
|
|
1117
1148
|
updated: number;
|
|
1118
1149
|
link: string | null;
|
|
1119
1150
|
locked: boolean;
|
|
1120
1151
|
customData?: Record<string, any> | undefined;
|
|
1121
1152
|
}> & Readonly<{
|
|
1122
|
-
type: "
|
|
1123
|
-
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1124
|
-
status: "pending" | "saved" | "error";
|
|
1153
|
+
type: "embeddable";
|
|
1125
1154
|
scale: [number, number];
|
|
1126
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1127
1155
|
}> & {
|
|
1128
1156
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1129
1157
|
}) | (Readonly<{
|
|
@@ -1153,7 +1181,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1153
1181
|
frameId: string | null;
|
|
1154
1182
|
boundElements: readonly Readonly<{
|
|
1155
1183
|
id: string;
|
|
1156
|
-
type: "
|
|
1184
|
+
type: "arrow" | "text";
|
|
1157
1185
|
}>[] | null;
|
|
1158
1186
|
updated: number;
|
|
1159
1187
|
link: string | null;
|
|
@@ -1194,26 +1222,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1194
1222
|
frameId: string | null;
|
|
1195
1223
|
boundElements: readonly Readonly<{
|
|
1196
1224
|
id: string;
|
|
1197
|
-
type: "
|
|
1225
|
+
type: "arrow" | "text";
|
|
1198
1226
|
}>[] | null;
|
|
1199
1227
|
updated: number;
|
|
1200
1228
|
link: string | null;
|
|
1201
1229
|
locked: boolean;
|
|
1202
1230
|
customData?: Record<string, any> | undefined;
|
|
1203
1231
|
}> & Readonly<{
|
|
1204
|
-
type: "
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
textAlign: string;
|
|
1210
|
-
verticalAlign: string;
|
|
1211
|
-
containerId: string | null;
|
|
1212
|
-
originalText: string;
|
|
1213
|
-
autoResize: boolean;
|
|
1214
|
-
lineHeight: number & {
|
|
1215
|
-
_brand: "unitlessLineHeight";
|
|
1216
|
-
};
|
|
1232
|
+
type: "image";
|
|
1233
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1234
|
+
status: "pending" | "error" | "saved";
|
|
1235
|
+
scale: [number, number];
|
|
1236
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1217
1237
|
}> & {
|
|
1218
1238
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1219
1239
|
}) | (Readonly<{
|
|
@@ -1243,14 +1263,23 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1243
1263
|
frameId: string | null;
|
|
1244
1264
|
boundElements: readonly Readonly<{
|
|
1245
1265
|
id: string;
|
|
1246
|
-
type: "
|
|
1266
|
+
type: "arrow" | "text";
|
|
1247
1267
|
}>[] | null;
|
|
1248
1268
|
updated: number;
|
|
1249
1269
|
link: string | null;
|
|
1250
1270
|
locked: boolean;
|
|
1251
1271
|
customData?: Record<string, any> | undefined;
|
|
1252
1272
|
}> & {
|
|
1253
|
-
type: "
|
|
1273
|
+
type: "frame";
|
|
1274
|
+
name: string | null;
|
|
1275
|
+
frameRole?: ("marker" | null) | undefined;
|
|
1276
|
+
customData?: {
|
|
1277
|
+
frameColor?: {
|
|
1278
|
+
fill: string;
|
|
1279
|
+
stroke: string;
|
|
1280
|
+
nameColor: string;
|
|
1281
|
+
} | undefined;
|
|
1282
|
+
} | undefined;
|
|
1254
1283
|
} & {
|
|
1255
1284
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1256
1285
|
}) | (Readonly<{
|
|
@@ -1280,14 +1309,16 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1280
1309
|
frameId: string | null;
|
|
1281
1310
|
boundElements: readonly Readonly<{
|
|
1282
1311
|
id: string;
|
|
1283
|
-
type: "
|
|
1312
|
+
type: "arrow" | "text";
|
|
1284
1313
|
}>[] | null;
|
|
1285
1314
|
updated: number;
|
|
1286
1315
|
link: string | null;
|
|
1287
1316
|
locked: boolean;
|
|
1288
1317
|
customData?: Record<string, any> | undefined;
|
|
1289
1318
|
}> & {
|
|
1290
|
-
type: "
|
|
1319
|
+
type: "magicframe";
|
|
1320
|
+
name: string | null;
|
|
1321
|
+
frameRole?: ("marker" | null) | undefined;
|
|
1291
1322
|
} & {
|
|
1292
1323
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1293
1324
|
}) | (Readonly<{
|
|
@@ -1317,20 +1348,26 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1317
1348
|
frameId: string | null;
|
|
1318
1349
|
boundElements: readonly Readonly<{
|
|
1319
1350
|
id: string;
|
|
1320
|
-
type: "
|
|
1351
|
+
type: "arrow" | "text";
|
|
1321
1352
|
}>[] | null;
|
|
1322
1353
|
updated: number;
|
|
1323
1354
|
link: string | null;
|
|
1324
1355
|
locked: boolean;
|
|
1325
1356
|
customData?: Record<string, any> | undefined;
|
|
1326
1357
|
}> & Readonly<{
|
|
1327
|
-
type: "
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1358
|
+
type: "text";
|
|
1359
|
+
fontSize: number;
|
|
1360
|
+
fontFamily: number;
|
|
1361
|
+
text: string;
|
|
1362
|
+
rawText: string;
|
|
1363
|
+
textAlign: string;
|
|
1364
|
+
verticalAlign: string;
|
|
1365
|
+
containerId: string | null;
|
|
1366
|
+
originalText: string;
|
|
1367
|
+
autoResize: boolean;
|
|
1368
|
+
lineHeight: number & {
|
|
1369
|
+
_brand: "unitlessLineHeight";
|
|
1370
|
+
};
|
|
1334
1371
|
}> & {
|
|
1335
1372
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1336
1373
|
}) | (Readonly<{
|
|
@@ -1360,7 +1397,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1360
1397
|
frameId: string | null;
|
|
1361
1398
|
boundElements: readonly Readonly<{
|
|
1362
1399
|
id: string;
|
|
1363
|
-
type: "
|
|
1400
|
+
type: "arrow" | "text";
|
|
1364
1401
|
}>[] | null;
|
|
1365
1402
|
updated: number;
|
|
1366
1403
|
link: string | null;
|