@zsviczian/excalidraw 0.18.0-5 → 0.18.0-51
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 +746 -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 +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/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 +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 +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 +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/useOutsideClick.d.ts +3 -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
|
@@ -38,23 +38,28 @@ export declare const actionGroup: {
|
|
|
38
38
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
39
|
isBindingEnabled: boolean;
|
|
40
40
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
41
|
-
suggestedBindings: import("@excalidraw/element
|
|
41
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
42
42
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
43
43
|
frameRendering: {
|
|
44
44
|
enabled: boolean;
|
|
45
45
|
name: boolean;
|
|
46
46
|
outline: boolean;
|
|
47
47
|
clip: boolean;
|
|
48
|
+
markerName: boolean;
|
|
49
|
+
markerEnabled: boolean;
|
|
48
50
|
};
|
|
49
51
|
editingFrame: string | null;
|
|
50
52
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
51
53
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
52
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
53
54
|
activeTool: {
|
|
54
55
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
56
|
locked: boolean;
|
|
56
57
|
fromSelection: boolean;
|
|
57
58
|
} & import("../types").ActiveTool;
|
|
59
|
+
preferredSelectionTool: {
|
|
60
|
+
type: "selection" | "lasso";
|
|
61
|
+
initialized: boolean;
|
|
62
|
+
};
|
|
58
63
|
penMode: boolean;
|
|
59
64
|
penDetected: boolean;
|
|
60
65
|
exportBackground: boolean;
|
|
@@ -76,6 +81,7 @@ export declare const actionGroup: {
|
|
|
76
81
|
currentHoveredFontFamily: number | null;
|
|
77
82
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
78
83
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
84
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
79
85
|
viewBackgroundColor: string;
|
|
80
86
|
scrollX: number;
|
|
81
87
|
scrollY: number;
|
|
@@ -87,8 +93,8 @@ export declare const actionGroup: {
|
|
|
87
93
|
zoom: Readonly<{
|
|
88
94
|
value: import("../types").NormalizedZoomValue;
|
|
89
95
|
}>;
|
|
90
|
-
openMenu: "
|
|
91
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
96
|
+
openMenu: "canvas" | "shape" | null;
|
|
97
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
92
98
|
openSidebar: {
|
|
93
99
|
name: string;
|
|
94
100
|
tab?: string | undefined;
|
|
@@ -162,10 +168,8 @@ export declare const actionGroup: {
|
|
|
162
168
|
shown: true;
|
|
163
169
|
data: import("../charts").Spreadsheet;
|
|
164
170
|
};
|
|
165
|
-
|
|
166
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
171
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
167
172
|
linkOpacity: number;
|
|
168
|
-
trayModeEnabled: boolean;
|
|
169
173
|
colorPalette?: {
|
|
170
174
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
171
175
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -178,6 +182,7 @@ export declare const actionGroup: {
|
|
|
178
182
|
} | undefined;
|
|
179
183
|
allowWheelZoom?: boolean | undefined;
|
|
180
184
|
allowPinchZoom?: boolean | undefined;
|
|
185
|
+
disableContextMenu: boolean;
|
|
181
186
|
pinnedScripts?: string[] | undefined;
|
|
182
187
|
customPens?: any[] | undefined;
|
|
183
188
|
currentStrokeOptions?: any;
|
|
@@ -186,6 +191,10 @@ export declare const actionGroup: {
|
|
|
186
191
|
Bold: string;
|
|
187
192
|
Regular: string;
|
|
188
193
|
};
|
|
194
|
+
gridDirection: {
|
|
195
|
+
horizontal: boolean;
|
|
196
|
+
vertical: boolean;
|
|
197
|
+
};
|
|
189
198
|
highlightSearchResult: boolean;
|
|
190
199
|
dynamicStyle: {
|
|
191
200
|
[x: string]: string;
|
|
@@ -196,7 +205,7 @@ export declare const actionGroup: {
|
|
|
196
205
|
nameColor: string;
|
|
197
206
|
};
|
|
198
207
|
invertBindingBehaviour: boolean;
|
|
199
|
-
selectedLinearElement: import("@excalidraw/element
|
|
208
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
200
209
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
201
210
|
originSnapOffset: {
|
|
202
211
|
x: number;
|
|
@@ -207,16 +216,14 @@ export declare const actionGroup: {
|
|
|
207
216
|
followedBy: Set<import("../types").SocketId>;
|
|
208
217
|
isCropping: boolean;
|
|
209
218
|
croppingElementId: string | null;
|
|
210
|
-
searchMatches:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}[];
|
|
219
|
-
}[];
|
|
219
|
+
searchMatches: Readonly<{
|
|
220
|
+
focusedId: string | null;
|
|
221
|
+
matches: readonly import("../types").SearchMatch[];
|
|
222
|
+
}> | null;
|
|
223
|
+
activeLockedId: string | null;
|
|
224
|
+
lockedMultiSelections: {
|
|
225
|
+
[groupId: string]: true;
|
|
226
|
+
};
|
|
220
227
|
};
|
|
221
228
|
elements: OrderedExcalidrawElement[];
|
|
222
229
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -265,23 +272,28 @@ export declare const actionUngroup: {
|
|
|
265
272
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
273
|
isBindingEnabled: boolean;
|
|
267
274
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
268
|
-
suggestedBindings: import("@excalidraw/element
|
|
275
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
269
276
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
270
277
|
frameRendering: {
|
|
271
278
|
enabled: boolean;
|
|
272
279
|
name: boolean;
|
|
273
280
|
outline: boolean;
|
|
274
281
|
clip: boolean;
|
|
282
|
+
markerName: boolean;
|
|
283
|
+
markerEnabled: boolean;
|
|
275
284
|
};
|
|
276
285
|
editingFrame: string | null;
|
|
277
286
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
278
287
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
279
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
280
288
|
activeTool: {
|
|
281
289
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
282
290
|
locked: boolean;
|
|
283
291
|
fromSelection: boolean;
|
|
284
292
|
} & import("../types").ActiveTool;
|
|
293
|
+
preferredSelectionTool: {
|
|
294
|
+
type: "selection" | "lasso";
|
|
295
|
+
initialized: boolean;
|
|
296
|
+
};
|
|
285
297
|
penMode: boolean;
|
|
286
298
|
penDetected: boolean;
|
|
287
299
|
exportBackground: boolean;
|
|
@@ -303,6 +315,7 @@ export declare const actionUngroup: {
|
|
|
303
315
|
currentHoveredFontFamily: number | null;
|
|
304
316
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
305
317
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
318
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
306
319
|
viewBackgroundColor: string;
|
|
307
320
|
scrollX: number;
|
|
308
321
|
scrollY: number;
|
|
@@ -314,8 +327,8 @@ export declare const actionUngroup: {
|
|
|
314
327
|
zoom: Readonly<{
|
|
315
328
|
value: import("../types").NormalizedZoomValue;
|
|
316
329
|
}>;
|
|
317
|
-
openMenu: "
|
|
318
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
330
|
+
openMenu: "canvas" | "shape" | null;
|
|
331
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
319
332
|
openSidebar: {
|
|
320
333
|
name: string;
|
|
321
334
|
tab?: string | undefined;
|
|
@@ -389,10 +402,8 @@ export declare const actionUngroup: {
|
|
|
389
402
|
shown: true;
|
|
390
403
|
data: import("../charts").Spreadsheet;
|
|
391
404
|
};
|
|
392
|
-
|
|
393
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
405
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
394
406
|
linkOpacity: number;
|
|
395
|
-
trayModeEnabled: boolean;
|
|
396
407
|
colorPalette?: {
|
|
397
408
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
398
409
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -405,6 +416,7 @@ export declare const actionUngroup: {
|
|
|
405
416
|
} | undefined;
|
|
406
417
|
allowWheelZoom?: boolean | undefined;
|
|
407
418
|
allowPinchZoom?: boolean | undefined;
|
|
419
|
+
disableContextMenu: boolean;
|
|
408
420
|
pinnedScripts?: string[] | undefined;
|
|
409
421
|
customPens?: any[] | undefined;
|
|
410
422
|
currentStrokeOptions?: any;
|
|
@@ -413,6 +425,10 @@ export declare const actionUngroup: {
|
|
|
413
425
|
Bold: string;
|
|
414
426
|
Regular: string;
|
|
415
427
|
};
|
|
428
|
+
gridDirection: {
|
|
429
|
+
horizontal: boolean;
|
|
430
|
+
vertical: boolean;
|
|
431
|
+
};
|
|
416
432
|
highlightSearchResult: boolean;
|
|
417
433
|
dynamicStyle: {
|
|
418
434
|
[x: string]: string;
|
|
@@ -423,7 +439,7 @@ export declare const actionUngroup: {
|
|
|
423
439
|
nameColor: string;
|
|
424
440
|
};
|
|
425
441
|
invertBindingBehaviour: boolean;
|
|
426
|
-
selectedLinearElement: import("@excalidraw/element
|
|
442
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
427
443
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
428
444
|
originSnapOffset: {
|
|
429
445
|
x: number;
|
|
@@ -434,16 +450,14 @@ export declare const actionUngroup: {
|
|
|
434
450
|
followedBy: Set<import("../types").SocketId>;
|
|
435
451
|
isCropping: boolean;
|
|
436
452
|
croppingElementId: string | null;
|
|
437
|
-
searchMatches:
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}[];
|
|
446
|
-
}[];
|
|
453
|
+
searchMatches: Readonly<{
|
|
454
|
+
focusedId: string | null;
|
|
455
|
+
matches: readonly import("../types").SearchMatch[];
|
|
456
|
+
}> | null;
|
|
457
|
+
activeLockedId: string | null;
|
|
458
|
+
lockedMultiSelections: {
|
|
459
|
+
[groupId: string]: true;
|
|
460
|
+
};
|
|
447
461
|
};
|
|
448
462
|
elements: OrderedExcalidrawElement[];
|
|
449
463
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { History } from "../history";
|
|
2
|
-
import type { Store } from "../store";
|
|
3
2
|
import type { Action } from "./types";
|
|
4
|
-
type ActionCreator = (history: History
|
|
3
|
+
type ActionCreator = (history: History) => Action;
|
|
5
4
|
export declare const createUndoAction: ActionCreator;
|
|
6
5
|
export declare const createRedoAction: ActionCreator;
|
|
7
6
|
export {};
|