@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60
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 +757 -504
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
- package/dist/styles.development.css +1080 -437
- package/dist/styles.production.css +26 -22
- package/package.json +15 -4
- package/types/common/src/commonObsidianUtils.d.ts +20 -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 +4 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +25 -6
- package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
- 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 +62 -41
- package/types/element/src/bounds.d.ts +14 -6
- package/types/element/src/collision.d.ts +23 -13
- 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 -5
- package/types/element/src/linearElementEditor.d.ts +34 -50
- 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 +5 -2
- 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 +4 -3
- package/types/element/src/transformHandles.d.ts +5 -4
- package/types/element/src/typeChecks.d.ts +20 -3
- package/types/element/src/types.d.ts +31 -12
- package/types/element/src/utils.d.ts +17 -6
- package/types/element/src/zindex.d.ts +8 -2
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
- package/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
- package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
- package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
- package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
- package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
- package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
- package/types/excalidraw/actions/actionExport.d.ts +142 -1185
- package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
- package/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +176 -129
- package/types/excalidraw/actions/actionGroup.d.ts +60 -40
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
- package/types/excalidraw/actions/actionLink.d.ts +27 -17
- package/types/excalidraw/actions/actionMenu.d.ts +27 -457
- package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
- package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
- package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
- package/types/excalidraw/actions/actionStyles.d.ts +31 -21
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
- package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
- package/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/types/excalidraw/actions/index.d.ts +4 -2
- package/types/excalidraw/actions/manager.d.ts +1 -1
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +7 -6
- package/types/excalidraw/appState.d.ts +22 -7
- package/types/excalidraw/clipboard.d.ts +68 -5
- package/types/excalidraw/components/Actions.d.ts +20 -7
- package/types/excalidraw/components/App.d.ts +68 -46
- 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/CommandPalette/types.d.ts +1 -2
- 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/FilledButton.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/LinkButton.d.ts +4 -0
- 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 +7 -3
- 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 +17 -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 +7 -2
- 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 +0 -2
- 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/useOutsideClick.d.ts +3 -1
- package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/types/excalidraw/index.d.ts +16 -15
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/lasso/utils.d.ts +2 -1
- package/types/excalidraw/obsidianUtils.d.ts +22 -9
- package/types/excalidraw/renderer/animation.d.ts +12 -0
- package/types/excalidraw/renderer/helpers.d.ts +3 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
- 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 +17 -3
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +83 -33
- 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/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/utils/src/collision.d.ts +0 -8
|
@@ -6,7 +6,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
10
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: {
|
|
12
12
|
selectedElementIds: Record<string, true>;
|
|
@@ -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
|
-
|
|
31
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
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,19 +83,21 @@ 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;
|
|
85
91
|
} | null;
|
|
86
92
|
openDialog: {
|
|
87
|
-
name: "
|
|
93
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
88
94
|
} | {
|
|
89
95
|
name: "ttd";
|
|
90
96
|
tab: "mermaid" | "text-to-diagram";
|
|
91
97
|
} | {
|
|
92
98
|
name: "commandPalette";
|
|
99
|
+
} | {
|
|
100
|
+
name: "settings";
|
|
93
101
|
} | {
|
|
94
102
|
name: "elementLinkSelector";
|
|
95
103
|
sourceElementId: string;
|
|
@@ -156,10 +164,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
156
164
|
shown: true;
|
|
157
165
|
data: import("../charts").Spreadsheet;
|
|
158
166
|
};
|
|
159
|
-
|
|
160
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
167
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
168
|
linkOpacity: number;
|
|
162
|
-
trayModeEnabled: boolean;
|
|
163
169
|
colorPalette?: {
|
|
164
170
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
165
171
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -172,6 +178,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
172
178
|
} | undefined;
|
|
173
179
|
allowWheelZoom?: boolean | undefined;
|
|
174
180
|
allowPinchZoom?: boolean | undefined;
|
|
181
|
+
disableContextMenu: boolean;
|
|
175
182
|
pinnedScripts?: string[] | undefined;
|
|
176
183
|
customPens?: any[] | undefined;
|
|
177
184
|
currentStrokeOptions?: any;
|
|
@@ -180,6 +187,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
180
187
|
Bold: string;
|
|
181
188
|
Regular: string;
|
|
182
189
|
};
|
|
190
|
+
gridDirection: {
|
|
191
|
+
horizontal: boolean;
|
|
192
|
+
vertical: boolean;
|
|
193
|
+
};
|
|
183
194
|
highlightSearchResult: boolean;
|
|
184
195
|
dynamicStyle: {
|
|
185
196
|
[x: string]: string;
|
|
@@ -190,7 +201,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
190
201
|
nameColor: string;
|
|
191
202
|
};
|
|
192
203
|
invertBindingBehaviour: boolean;
|
|
193
|
-
selectedLinearElement: import("@excalidraw/element
|
|
204
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
194
205
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
195
206
|
originSnapOffset: {
|
|
196
207
|
x: number;
|
|
@@ -201,16 +212,15 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
201
212
|
followedBy: Set<import("../types").SocketId>;
|
|
202
213
|
isCropping: boolean;
|
|
203
214
|
croppingElementId: string | null;
|
|
204
|
-
searchMatches:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}[];
|
|
215
|
+
searchMatches: Readonly<{
|
|
216
|
+
focusedId: string | null;
|
|
217
|
+
matches: readonly import("../types").SearchMatch[];
|
|
218
|
+
}> | null;
|
|
219
|
+
activeLockedId: string | null;
|
|
220
|
+
lockedMultiSelections: {
|
|
221
|
+
[groupId: string]: true;
|
|
222
|
+
};
|
|
223
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
214
224
|
};
|
|
215
225
|
captureUpdate: "IMMEDIATELY";
|
|
216
226
|
} | {
|
|
@@ -228,7 +238,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
228
238
|
trackEvent: {
|
|
229
239
|
category: "history";
|
|
230
240
|
};
|
|
231
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
241
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
232
242
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
233
243
|
appState: {
|
|
234
244
|
selectedElementIds: {
|
|
@@ -252,23 +262,28 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
252
262
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
253
263
|
isBindingEnabled: boolean;
|
|
254
264
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
255
|
-
|
|
265
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
256
266
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
257
267
|
frameRendering: {
|
|
258
268
|
enabled: boolean;
|
|
259
269
|
name: boolean;
|
|
260
270
|
outline: boolean;
|
|
261
271
|
clip: boolean;
|
|
272
|
+
markerName: boolean;
|
|
273
|
+
markerEnabled: boolean;
|
|
262
274
|
};
|
|
263
275
|
editingFrame: string | null;
|
|
264
276
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
265
277
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
267
278
|
activeTool: {
|
|
268
279
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
269
280
|
locked: boolean;
|
|
270
281
|
fromSelection: boolean;
|
|
271
282
|
} & import("../types").ActiveTool;
|
|
283
|
+
preferredSelectionTool: {
|
|
284
|
+
type: "selection" | "lasso";
|
|
285
|
+
initialized: boolean;
|
|
286
|
+
};
|
|
272
287
|
penMode: boolean;
|
|
273
288
|
penDetected: boolean;
|
|
274
289
|
exportBackground: boolean;
|
|
@@ -290,6 +305,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
290
305
|
currentHoveredFontFamily: number | null;
|
|
291
306
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
292
307
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
308
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
293
309
|
viewBackgroundColor: string;
|
|
294
310
|
scrollX: number;
|
|
295
311
|
scrollY: number;
|
|
@@ -301,19 +317,21 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
301
317
|
zoom: Readonly<{
|
|
302
318
|
value: import("../types").NormalizedZoomValue;
|
|
303
319
|
}>;
|
|
304
|
-
openMenu: "
|
|
305
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
320
|
+
openMenu: "canvas" | "shape" | null;
|
|
321
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
306
322
|
openSidebar: {
|
|
307
323
|
name: string;
|
|
308
324
|
tab?: string | undefined;
|
|
309
325
|
} | null;
|
|
310
326
|
openDialog: {
|
|
311
|
-
name: "
|
|
327
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
312
328
|
} | {
|
|
313
329
|
name: "ttd";
|
|
314
330
|
tab: "mermaid" | "text-to-diagram";
|
|
315
331
|
} | {
|
|
316
332
|
name: "commandPalette";
|
|
333
|
+
} | {
|
|
334
|
+
name: "settings";
|
|
317
335
|
} | {
|
|
318
336
|
name: "elementLinkSelector";
|
|
319
337
|
sourceElementId: string;
|
|
@@ -380,10 +398,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
380
398
|
shown: true;
|
|
381
399
|
data: import("../charts").Spreadsheet;
|
|
382
400
|
};
|
|
383
|
-
|
|
384
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
401
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
385
402
|
linkOpacity: number;
|
|
386
|
-
trayModeEnabled: boolean;
|
|
387
403
|
colorPalette?: {
|
|
388
404
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
389
405
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -396,6 +412,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
396
412
|
} | undefined;
|
|
397
413
|
allowWheelZoom?: boolean | undefined;
|
|
398
414
|
allowPinchZoom?: boolean | undefined;
|
|
415
|
+
disableContextMenu: boolean;
|
|
399
416
|
pinnedScripts?: string[] | undefined;
|
|
400
417
|
customPens?: any[] | undefined;
|
|
401
418
|
currentStrokeOptions?: any;
|
|
@@ -404,6 +421,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
404
421
|
Bold: string;
|
|
405
422
|
Regular: string;
|
|
406
423
|
};
|
|
424
|
+
gridDirection: {
|
|
425
|
+
horizontal: boolean;
|
|
426
|
+
vertical: boolean;
|
|
427
|
+
};
|
|
407
428
|
highlightSearchResult: boolean;
|
|
408
429
|
dynamicStyle: {
|
|
409
430
|
[x: string]: string;
|
|
@@ -414,7 +435,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
414
435
|
nameColor: string;
|
|
415
436
|
};
|
|
416
437
|
invertBindingBehaviour: boolean;
|
|
417
|
-
selectedLinearElement: import("@excalidraw/element
|
|
438
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
418
439
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
419
440
|
originSnapOffset: {
|
|
420
441
|
x: number;
|
|
@@ -425,16 +446,15 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
425
446
|
followedBy: Set<import("../types").SocketId>;
|
|
426
447
|
isCropping: boolean;
|
|
427
448
|
croppingElementId: string | null;
|
|
428
|
-
searchMatches:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}[];
|
|
449
|
+
searchMatches: Readonly<{
|
|
450
|
+
focusedId: string | null;
|
|
451
|
+
matches: readonly import("../types").SearchMatch[];
|
|
452
|
+
}> | null;
|
|
453
|
+
activeLockedId: string | null;
|
|
454
|
+
lockedMultiSelections: {
|
|
455
|
+
[groupId: string]: true;
|
|
456
|
+
};
|
|
457
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
438
458
|
};
|
|
439
459
|
captureUpdate: "IMMEDIATELY";
|
|
440
460
|
} | {
|
|
@@ -461,6 +481,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
461
481
|
name: boolean;
|
|
462
482
|
outline: boolean;
|
|
463
483
|
clip: boolean;
|
|
484
|
+
markerName: boolean;
|
|
485
|
+
markerEnabled: boolean;
|
|
464
486
|
};
|
|
465
487
|
contextMenu: {
|
|
466
488
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -480,17 +502,20 @@ export declare const actionupdateFrameRendering: {
|
|
|
480
502
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
481
503
|
isBindingEnabled: boolean;
|
|
482
504
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
483
|
-
|
|
505
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
484
506
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
485
507
|
editingFrame: string | null;
|
|
486
508
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
487
509
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
488
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
489
510
|
activeTool: {
|
|
490
511
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
491
512
|
locked: boolean;
|
|
492
513
|
fromSelection: boolean;
|
|
493
514
|
} & import("../types").ActiveTool;
|
|
515
|
+
preferredSelectionTool: {
|
|
516
|
+
type: "selection" | "lasso";
|
|
517
|
+
initialized: boolean;
|
|
518
|
+
};
|
|
494
519
|
penMode: boolean;
|
|
495
520
|
penDetected: boolean;
|
|
496
521
|
exportBackground: boolean;
|
|
@@ -512,6 +537,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
512
537
|
currentHoveredFontFamily: number | null;
|
|
513
538
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
514
539
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
540
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
515
541
|
viewBackgroundColor: string;
|
|
516
542
|
scrollX: number;
|
|
517
543
|
scrollY: number;
|
|
@@ -523,19 +549,21 @@ export declare const actionupdateFrameRendering: {
|
|
|
523
549
|
zoom: Readonly<{
|
|
524
550
|
value: import("../types").NormalizedZoomValue;
|
|
525
551
|
}>;
|
|
526
|
-
openMenu: "
|
|
527
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
552
|
+
openMenu: "canvas" | "shape" | null;
|
|
553
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
528
554
|
openSidebar: {
|
|
529
555
|
name: string;
|
|
530
556
|
tab?: string | undefined;
|
|
531
557
|
} | null;
|
|
532
558
|
openDialog: {
|
|
533
|
-
name: "
|
|
559
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
534
560
|
} | {
|
|
535
561
|
name: "ttd";
|
|
536
562
|
tab: "mermaid" | "text-to-diagram";
|
|
537
563
|
} | {
|
|
538
564
|
name: "commandPalette";
|
|
565
|
+
} | {
|
|
566
|
+
name: "settings";
|
|
539
567
|
} | {
|
|
540
568
|
name: "elementLinkSelector";
|
|
541
569
|
sourceElementId: string;
|
|
@@ -605,10 +633,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
605
633
|
shown: true;
|
|
606
634
|
data: import("../charts").Spreadsheet;
|
|
607
635
|
};
|
|
608
|
-
|
|
609
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
636
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
610
637
|
linkOpacity: number;
|
|
611
|
-
trayModeEnabled: boolean;
|
|
612
638
|
colorPalette?: {
|
|
613
639
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
614
640
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -621,6 +647,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
621
647
|
} | undefined;
|
|
622
648
|
allowWheelZoom?: boolean | undefined;
|
|
623
649
|
allowPinchZoom?: boolean | undefined;
|
|
650
|
+
disableContextMenu: boolean;
|
|
624
651
|
pinnedScripts?: string[] | undefined;
|
|
625
652
|
customPens?: any[] | undefined;
|
|
626
653
|
currentStrokeOptions?: any;
|
|
@@ -629,6 +656,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
629
656
|
Bold: string;
|
|
630
657
|
Regular: string;
|
|
631
658
|
};
|
|
659
|
+
gridDirection: {
|
|
660
|
+
horizontal: boolean;
|
|
661
|
+
vertical: boolean;
|
|
662
|
+
};
|
|
632
663
|
highlightSearchResult: boolean;
|
|
633
664
|
dynamicStyle: {
|
|
634
665
|
[x: string]: string;
|
|
@@ -639,7 +670,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
639
670
|
nameColor: string;
|
|
640
671
|
};
|
|
641
672
|
invertBindingBehaviour: boolean;
|
|
642
|
-
selectedLinearElement: import("@excalidraw/element
|
|
673
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
643
674
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
644
675
|
originSnapOffset: {
|
|
645
676
|
x: number;
|
|
@@ -650,16 +681,15 @@ export declare const actionupdateFrameRendering: {
|
|
|
650
681
|
followedBy: Set<import("../types").SocketId>;
|
|
651
682
|
isCropping: boolean;
|
|
652
683
|
croppingElementId: string | null;
|
|
653
|
-
searchMatches:
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}[];
|
|
684
|
+
searchMatches: Readonly<{
|
|
685
|
+
focusedId: string | null;
|
|
686
|
+
matches: readonly import("../types").SearchMatch[];
|
|
687
|
+
}> | null;
|
|
688
|
+
activeLockedId: string | null;
|
|
689
|
+
lockedMultiSelections: {
|
|
690
|
+
[groupId: string]: true;
|
|
691
|
+
};
|
|
692
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
663
693
|
};
|
|
664
694
|
captureUpdate: "EVENTUALLY";
|
|
665
695
|
};
|
|
@@ -675,7 +705,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
675
705
|
};
|
|
676
706
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
677
707
|
viewMode: false;
|
|
678
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
708
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
679
709
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
680
710
|
appState: {
|
|
681
711
|
activeTool: {
|
|
@@ -701,18 +731,23 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
701
731
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
702
732
|
isBindingEnabled: boolean;
|
|
703
733
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
704
|
-
|
|
734
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
705
735
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
706
736
|
frameRendering: {
|
|
707
737
|
enabled: boolean;
|
|
708
738
|
name: boolean;
|
|
709
739
|
outline: boolean;
|
|
710
740
|
clip: boolean;
|
|
741
|
+
markerName: boolean;
|
|
742
|
+
markerEnabled: boolean;
|
|
711
743
|
};
|
|
712
744
|
editingFrame: string | null;
|
|
713
745
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
714
746
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
715
|
-
|
|
747
|
+
preferredSelectionTool: {
|
|
748
|
+
type: "selection" | "lasso";
|
|
749
|
+
initialized: boolean;
|
|
750
|
+
};
|
|
716
751
|
penMode: boolean;
|
|
717
752
|
penDetected: boolean;
|
|
718
753
|
exportBackground: boolean;
|
|
@@ -734,6 +769,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
734
769
|
currentHoveredFontFamily: number | null;
|
|
735
770
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
736
771
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
772
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
737
773
|
viewBackgroundColor: string;
|
|
738
774
|
scrollX: number;
|
|
739
775
|
scrollY: number;
|
|
@@ -745,19 +781,21 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
745
781
|
zoom: Readonly<{
|
|
746
782
|
value: import("../types").NormalizedZoomValue;
|
|
747
783
|
}>;
|
|
748
|
-
openMenu: "
|
|
749
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
784
|
+
openMenu: "canvas" | "shape" | null;
|
|
785
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
750
786
|
openSidebar: {
|
|
751
787
|
name: string;
|
|
752
788
|
tab?: string | undefined;
|
|
753
789
|
} | null;
|
|
754
790
|
openDialog: {
|
|
755
|
-
name: "
|
|
791
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
756
792
|
} | {
|
|
757
793
|
name: "ttd";
|
|
758
794
|
tab: "mermaid" | "text-to-diagram";
|
|
759
795
|
} | {
|
|
760
796
|
name: "commandPalette";
|
|
797
|
+
} | {
|
|
798
|
+
name: "settings";
|
|
761
799
|
} | {
|
|
762
800
|
name: "elementLinkSelector";
|
|
763
801
|
sourceElementId: string;
|
|
@@ -827,10 +865,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
827
865
|
shown: true;
|
|
828
866
|
data: import("../charts").Spreadsheet;
|
|
829
867
|
};
|
|
830
|
-
|
|
831
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
868
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
832
869
|
linkOpacity: number;
|
|
833
|
-
trayModeEnabled: boolean;
|
|
834
870
|
colorPalette?: {
|
|
835
871
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
836
872
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -843,6 +879,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
843
879
|
} | undefined;
|
|
844
880
|
allowWheelZoom?: boolean | undefined;
|
|
845
881
|
allowPinchZoom?: boolean | undefined;
|
|
882
|
+
disableContextMenu: boolean;
|
|
846
883
|
pinnedScripts?: string[] | undefined;
|
|
847
884
|
customPens?: any[] | undefined;
|
|
848
885
|
currentStrokeOptions?: any;
|
|
@@ -851,6 +888,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
851
888
|
Bold: string;
|
|
852
889
|
Regular: string;
|
|
853
890
|
};
|
|
891
|
+
gridDirection: {
|
|
892
|
+
horizontal: boolean;
|
|
893
|
+
vertical: boolean;
|
|
894
|
+
};
|
|
854
895
|
highlightSearchResult: boolean;
|
|
855
896
|
dynamicStyle: {
|
|
856
897
|
[x: string]: string;
|
|
@@ -861,7 +902,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
861
902
|
nameColor: string;
|
|
862
903
|
};
|
|
863
904
|
invertBindingBehaviour: boolean;
|
|
864
|
-
selectedLinearElement: import("@excalidraw/element
|
|
905
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
865
906
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
866
907
|
originSnapOffset: {
|
|
867
908
|
x: number;
|
|
@@ -872,16 +913,15 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
872
913
|
followedBy: Set<import("../types").SocketId>;
|
|
873
914
|
isCropping: boolean;
|
|
874
915
|
croppingElementId: string | null;
|
|
875
|
-
searchMatches:
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}[];
|
|
916
|
+
searchMatches: Readonly<{
|
|
917
|
+
focusedId: string | null;
|
|
918
|
+
matches: readonly import("../types").SearchMatch[];
|
|
919
|
+
}> | null;
|
|
920
|
+
activeLockedId: string | null;
|
|
921
|
+
lockedMultiSelections: {
|
|
922
|
+
[groupId: string]: true;
|
|
923
|
+
};
|
|
924
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
885
925
|
};
|
|
886
926
|
captureUpdate: "EVENTUALLY";
|
|
887
927
|
};
|
|
@@ -896,7 +936,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
896
936
|
category: "element";
|
|
897
937
|
};
|
|
898
938
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
899
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
939
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
900
940
|
elements: ((Readonly<{
|
|
901
941
|
id: string;
|
|
902
942
|
x: number;
|
|
@@ -924,15 +964,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
924
964
|
frameId: string | null;
|
|
925
965
|
boundElements: readonly Readonly<{
|
|
926
966
|
id: string;
|
|
927
|
-
type: "
|
|
967
|
+
type: "arrow" | "text";
|
|
928
968
|
}>[] | null;
|
|
929
969
|
updated: number;
|
|
930
970
|
link: string | null;
|
|
931
971
|
locked: boolean;
|
|
932
972
|
customData?: Record<string, any> | undefined;
|
|
973
|
+
}> & Readonly<{
|
|
974
|
+
type: "line" | "arrow";
|
|
975
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
976
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
977
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
978
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
979
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
933
980
|
}> & {
|
|
934
|
-
type: "rectangle";
|
|
935
|
-
} & {
|
|
936
981
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
937
982
|
}) | (Readonly<{
|
|
938
983
|
id: string;
|
|
@@ -961,14 +1006,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
961
1006
|
frameId: string | null;
|
|
962
1007
|
boundElements: readonly Readonly<{
|
|
963
1008
|
id: string;
|
|
964
|
-
type: "
|
|
1009
|
+
type: "arrow" | "text";
|
|
965
1010
|
}>[] | null;
|
|
966
1011
|
updated: number;
|
|
967
1012
|
link: string | null;
|
|
968
1013
|
locked: boolean;
|
|
969
1014
|
customData?: Record<string, any> | undefined;
|
|
970
1015
|
}> & {
|
|
971
|
-
type: "
|
|
1016
|
+
type: "selection";
|
|
972
1017
|
} & {
|
|
973
1018
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
974
1019
|
}) | (Readonly<{
|
|
@@ -998,15 +1043,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
998
1043
|
frameId: string | null;
|
|
999
1044
|
boundElements: readonly Readonly<{
|
|
1000
1045
|
id: string;
|
|
1001
|
-
type: "
|
|
1046
|
+
type: "arrow" | "text";
|
|
1002
1047
|
}>[] | null;
|
|
1003
1048
|
updated: number;
|
|
1004
1049
|
link: string | null;
|
|
1005
1050
|
locked: boolean;
|
|
1006
1051
|
customData?: Record<string, any> | undefined;
|
|
1007
1052
|
}> & {
|
|
1008
|
-
type: "
|
|
1009
|
-
name: string | null;
|
|
1053
|
+
type: "rectangle";
|
|
1010
1054
|
} & {
|
|
1011
1055
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1012
1056
|
}) | (Readonly<{
|
|
@@ -1036,15 +1080,14 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1036
1080
|
frameId: string | null;
|
|
1037
1081
|
boundElements: readonly Readonly<{
|
|
1038
1082
|
id: string;
|
|
1039
|
-
type: "
|
|
1083
|
+
type: "arrow" | "text";
|
|
1040
1084
|
}>[] | null;
|
|
1041
1085
|
updated: number;
|
|
1042
1086
|
link: string | null;
|
|
1043
1087
|
locked: boolean;
|
|
1044
1088
|
customData?: Record<string, any> | undefined;
|
|
1045
1089
|
}> & {
|
|
1046
|
-
type: "
|
|
1047
|
-
name: string | null;
|
|
1090
|
+
type: "diamond";
|
|
1048
1091
|
} & {
|
|
1049
1092
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1050
1093
|
}) | (Readonly<{
|
|
@@ -1074,16 +1117,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1074
1117
|
frameId: string | null;
|
|
1075
1118
|
boundElements: readonly Readonly<{
|
|
1076
1119
|
id: string;
|
|
1077
|
-
type: "
|
|
1120
|
+
type: "arrow" | "text";
|
|
1078
1121
|
}>[] | null;
|
|
1079
1122
|
updated: number;
|
|
1080
1123
|
link: string | null;
|
|
1081
1124
|
locked: boolean;
|
|
1082
1125
|
customData?: Record<string, any> | undefined;
|
|
1083
|
-
}> & Readonly<{
|
|
1084
|
-
type: "embeddable";
|
|
1085
|
-
scale: [number, number];
|
|
1086
1126
|
}> & {
|
|
1127
|
+
type: "ellipse";
|
|
1128
|
+
} & {
|
|
1087
1129
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1088
1130
|
}) | (Readonly<{
|
|
1089
1131
|
id: string;
|
|
@@ -1112,18 +1154,15 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1112
1154
|
frameId: string | null;
|
|
1113
1155
|
boundElements: readonly Readonly<{
|
|
1114
1156
|
id: string;
|
|
1115
|
-
type: "
|
|
1157
|
+
type: "arrow" | "text";
|
|
1116
1158
|
}>[] | null;
|
|
1117
1159
|
updated: number;
|
|
1118
1160
|
link: string | null;
|
|
1119
1161
|
locked: boolean;
|
|
1120
1162
|
customData?: Record<string, any> | undefined;
|
|
1121
1163
|
}> & Readonly<{
|
|
1122
|
-
type: "
|
|
1123
|
-
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1124
|
-
status: "pending" | "saved" | "error";
|
|
1164
|
+
type: "embeddable";
|
|
1125
1165
|
scale: [number, number];
|
|
1126
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1127
1166
|
}> & {
|
|
1128
1167
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1129
1168
|
}) | (Readonly<{
|
|
@@ -1153,7 +1192,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1153
1192
|
frameId: string | null;
|
|
1154
1193
|
boundElements: readonly Readonly<{
|
|
1155
1194
|
id: string;
|
|
1156
|
-
type: "
|
|
1195
|
+
type: "arrow" | "text";
|
|
1157
1196
|
}>[] | null;
|
|
1158
1197
|
updated: number;
|
|
1159
1198
|
link: string | null;
|
|
@@ -1194,26 +1233,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1194
1233
|
frameId: string | null;
|
|
1195
1234
|
boundElements: readonly Readonly<{
|
|
1196
1235
|
id: string;
|
|
1197
|
-
type: "
|
|
1236
|
+
type: "arrow" | "text";
|
|
1198
1237
|
}>[] | null;
|
|
1199
1238
|
updated: number;
|
|
1200
1239
|
link: string | null;
|
|
1201
1240
|
locked: boolean;
|
|
1202
1241
|
customData?: Record<string, any> | undefined;
|
|
1203
1242
|
}> & 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
|
-
};
|
|
1243
|
+
type: "image";
|
|
1244
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1245
|
+
status: "pending" | "error" | "saved";
|
|
1246
|
+
scale: [number, number];
|
|
1247
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1217
1248
|
}> & {
|
|
1218
1249
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1219
1250
|
}) | (Readonly<{
|
|
@@ -1243,14 +1274,23 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1243
1274
|
frameId: string | null;
|
|
1244
1275
|
boundElements: readonly Readonly<{
|
|
1245
1276
|
id: string;
|
|
1246
|
-
type: "
|
|
1277
|
+
type: "arrow" | "text";
|
|
1247
1278
|
}>[] | null;
|
|
1248
1279
|
updated: number;
|
|
1249
1280
|
link: string | null;
|
|
1250
1281
|
locked: boolean;
|
|
1251
1282
|
customData?: Record<string, any> | undefined;
|
|
1252
1283
|
}> & {
|
|
1253
|
-
type: "
|
|
1284
|
+
type: "frame";
|
|
1285
|
+
name: string | null;
|
|
1286
|
+
frameRole?: ("marker" | null) | undefined;
|
|
1287
|
+
customData?: {
|
|
1288
|
+
frameColor?: {
|
|
1289
|
+
fill: string;
|
|
1290
|
+
stroke: string;
|
|
1291
|
+
nameColor: string;
|
|
1292
|
+
} | undefined;
|
|
1293
|
+
} | undefined;
|
|
1254
1294
|
} & {
|
|
1255
1295
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1256
1296
|
}) | (Readonly<{
|
|
@@ -1280,14 +1320,16 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1280
1320
|
frameId: string | null;
|
|
1281
1321
|
boundElements: readonly Readonly<{
|
|
1282
1322
|
id: string;
|
|
1283
|
-
type: "
|
|
1323
|
+
type: "arrow" | "text";
|
|
1284
1324
|
}>[] | null;
|
|
1285
1325
|
updated: number;
|
|
1286
1326
|
link: string | null;
|
|
1287
1327
|
locked: boolean;
|
|
1288
1328
|
customData?: Record<string, any> | undefined;
|
|
1289
1329
|
}> & {
|
|
1290
|
-
type: "
|
|
1330
|
+
type: "magicframe";
|
|
1331
|
+
name: string | null;
|
|
1332
|
+
frameRole?: ("marker" | null) | undefined;
|
|
1291
1333
|
} & {
|
|
1292
1334
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1293
1335
|
}) | (Readonly<{
|
|
@@ -1317,20 +1359,26 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1317
1359
|
frameId: string | null;
|
|
1318
1360
|
boundElements: readonly Readonly<{
|
|
1319
1361
|
id: string;
|
|
1320
|
-
type: "
|
|
1362
|
+
type: "arrow" | "text";
|
|
1321
1363
|
}>[] | null;
|
|
1322
1364
|
updated: number;
|
|
1323
1365
|
link: string | null;
|
|
1324
1366
|
locked: boolean;
|
|
1325
1367
|
customData?: Record<string, any> | undefined;
|
|
1326
1368
|
}> & Readonly<{
|
|
1327
|
-
type: "
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1369
|
+
type: "text";
|
|
1370
|
+
fontSize: number;
|
|
1371
|
+
fontFamily: number;
|
|
1372
|
+
text: string;
|
|
1373
|
+
rawText: string;
|
|
1374
|
+
textAlign: string;
|
|
1375
|
+
verticalAlign: string;
|
|
1376
|
+
containerId: string | null;
|
|
1377
|
+
originalText: string;
|
|
1378
|
+
autoResize: boolean;
|
|
1379
|
+
lineHeight: number & {
|
|
1380
|
+
_brand: "unitlessLineHeight";
|
|
1381
|
+
};
|
|
1334
1382
|
}> & {
|
|
1335
1383
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1336
1384
|
}) | (Readonly<{
|
|
@@ -1360,7 +1408,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1360
1408
|
frameId: string | null;
|
|
1361
1409
|
boundElements: readonly Readonly<{
|
|
1362
1410
|
id: string;
|
|
1363
|
-
type: "
|
|
1411
|
+
type: "arrow" | "text";
|
|
1364
1412
|
}>[] | null;
|
|
1365
1413
|
updated: number;
|
|
1366
1414
|
link: string | null;
|
|
@@ -1371,7 +1419,6 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1371
1419
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1372
1420
|
pressures: readonly number[];
|
|
1373
1421
|
simulatePressure: boolean;
|
|
1374
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1375
1422
|
}> & {
|
|
1376
1423
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1377
1424
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|