@myoc/common 0.19.520 → 0.19.522
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/dev/index.js +62 -7
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/colors.d.ts +14 -0
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -1
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +17 -8
- package/dist/types/element/src/bounds.d.ts +5 -9
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +4 -4
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/distribute.d.ts +2 -2
- package/dist/types/element/src/dragElements.d.ts +27 -0
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +7 -7
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -4
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +4 -1
- package/dist/types/element/src/linearElementEditor.d.ts +17 -10
- package/dist/types/element/src/newElement.d.ts +13 -0
- package/dist/types/element/src/renderElement.d.ts +0 -3
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +5 -5
- package/dist/types/element/src/shape.d.ts +12 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/textElement.d.ts +12 -9
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +25 -25
- package/dist/types/element/src/types.d.ts +2 -1
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +128 -961
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -13
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +9 -4
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -9
- package/dist/types/excalidraw/actions/actionExport.d.ts +29 -13
- package/dist/types/excalidraw/actions/actionFrame.d.ts +47 -205
- package/dist/types/excalidraw/actions/actionGroup.d.ts +39 -23
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionMenu.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +43 -24
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -9
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/index.d.ts +1 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/appState.d.ts +11 -6
- package/dist/types/excalidraw/clipboard.d.ts +34 -0
- package/dist/types/excalidraw/components/Actions.d.ts +17 -12
- package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
- package/dist/types/excalidraw/components/App.d.ts +384 -60
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +9 -0
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +146 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +4 -1
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/context/tunnels.d.ts +0 -1
- package/dist/types/excalidraw/data/blob.d.ts +17 -9
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +23 -15
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +10 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +11 -11
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +4 -3
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +425 -27
- package/dist/types/excalidraw/viewport.d.ts +283 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/laser-pointer/src/state.d.ts +1 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/utils/src/export.d.ts +3 -3
- package/package.json +1 -1
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -180
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +0 -16
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +0 -27
- package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +0 -7
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -12
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/excalidraw/scroll.d.ts +0 -46
|
@@ -84,6 +84,11 @@ export declare const actionLoadScene: {
|
|
|
84
84
|
appState: {
|
|
85
85
|
viewModeEnabled: boolean;
|
|
86
86
|
viewModeOnly: boolean;
|
|
87
|
+
activeTool: {
|
|
88
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
89
|
+
locked: boolean;
|
|
90
|
+
fromSelection: boolean;
|
|
91
|
+
} & import("../types").ActiveTool;
|
|
87
92
|
zenModeEnabled: boolean;
|
|
88
93
|
gridModeEnabled: boolean;
|
|
89
94
|
objectsSnapModeEnabled: boolean;
|
|
@@ -92,11 +97,6 @@ export declare const actionLoadScene: {
|
|
|
92
97
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
93
98
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
94
99
|
gridSize: number;
|
|
95
|
-
activeTool: {
|
|
96
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
97
|
-
locked: boolean;
|
|
98
|
-
fromSelection: boolean;
|
|
99
|
-
} & import("../types").ActiveTool;
|
|
100
100
|
contextMenu: {
|
|
101
101
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
102
102
|
top: number;
|
|
@@ -132,6 +132,10 @@ export declare const actionLoadScene: {
|
|
|
132
132
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
133
133
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
134
134
|
} | null;
|
|
135
|
+
hoveredArrowTextAnchor: {
|
|
136
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
137
|
+
anchor: "start" | "end" | "label";
|
|
138
|
+
} | null;
|
|
135
139
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
136
140
|
frameRendering: {
|
|
137
141
|
enabled: boolean;
|
|
@@ -139,8 +143,8 @@ export declare const actionLoadScene: {
|
|
|
139
143
|
outline: boolean;
|
|
140
144
|
clip: boolean;
|
|
141
145
|
};
|
|
142
|
-
editingFrame:
|
|
143
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
146
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
147
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
144
148
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
145
149
|
preferredSelectionTool: {
|
|
146
150
|
type: "selection" | "lasso";
|
|
@@ -170,6 +174,7 @@ export declare const actionLoadScene: {
|
|
|
170
174
|
viewBackgroundColor: string;
|
|
171
175
|
scrollX: number;
|
|
172
176
|
scrollY: number;
|
|
177
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
173
178
|
cursorButton: "up" | "down";
|
|
174
179
|
scrolledOutside: boolean;
|
|
175
180
|
isResizing: boolean;
|
|
@@ -229,8 +234,6 @@ export declare const actionLoadScene: {
|
|
|
229
234
|
x: number;
|
|
230
235
|
y: number;
|
|
231
236
|
} | null;
|
|
232
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
233
|
-
followedBy: Set<import("../types").SocketId>;
|
|
234
237
|
isCropping: boolean;
|
|
235
238
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
236
239
|
searchMatches: Readonly<{
|
|
@@ -242,6 +245,11 @@ export declare const actionLoadScene: {
|
|
|
242
245
|
[groupId: string]: true;
|
|
243
246
|
};
|
|
244
247
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
248
|
+
colorTopPicks: {
|
|
249
|
+
elementStroke: readonly string[] | null;
|
|
250
|
+
elementBackground: readonly string[] | null;
|
|
251
|
+
bucketFill: readonly string[] | null;
|
|
252
|
+
};
|
|
245
253
|
};
|
|
246
254
|
files: BinaryFiles;
|
|
247
255
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -284,6 +292,10 @@ export declare const actionLoadScene: {
|
|
|
284
292
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
285
293
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
286
294
|
} | null;
|
|
295
|
+
hoveredArrowTextAnchor: {
|
|
296
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
297
|
+
anchor: "start" | "end" | "label";
|
|
298
|
+
} | null;
|
|
287
299
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
288
300
|
frameRendering: {
|
|
289
301
|
enabled: boolean;
|
|
@@ -291,8 +303,8 @@ export declare const actionLoadScene: {
|
|
|
291
303
|
outline: boolean;
|
|
292
304
|
clip: boolean;
|
|
293
305
|
};
|
|
294
|
-
editingFrame:
|
|
295
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
306
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
307
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
296
308
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
297
309
|
activeTool: {
|
|
298
310
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -328,6 +340,7 @@ export declare const actionLoadScene: {
|
|
|
328
340
|
viewBackgroundColor: string;
|
|
329
341
|
scrollX: number;
|
|
330
342
|
scrollY: number;
|
|
343
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
331
344
|
cursorButton: "up" | "down";
|
|
332
345
|
scrolledOutside: boolean;
|
|
333
346
|
name: string | null;
|
|
@@ -399,8 +412,6 @@ export declare const actionLoadScene: {
|
|
|
399
412
|
y: number;
|
|
400
413
|
} | null;
|
|
401
414
|
objectsSnapModeEnabled: boolean;
|
|
402
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
403
|
-
followedBy: Set<import("../types").SocketId>;
|
|
404
415
|
isCropping: boolean;
|
|
405
416
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
406
417
|
searchMatches: Readonly<{
|
|
@@ -412,6 +423,11 @@ export declare const actionLoadScene: {
|
|
|
412
423
|
[groupId: string]: true;
|
|
413
424
|
};
|
|
414
425
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
426
|
+
colorTopPicks: {
|
|
427
|
+
elementStroke: readonly string[] | null;
|
|
428
|
+
elementBackground: readonly string[] | null;
|
|
429
|
+
bucketFill: readonly string[] | null;
|
|
430
|
+
};
|
|
415
431
|
};
|
|
416
432
|
files: BinaryFiles;
|
|
417
433
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
3
3
|
export declare const actionSelectAllElementsInFrame: {
|
|
4
4
|
name: "selectAllElementsInFrame";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
10
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: {
|
|
12
12
|
selectedElementIds: Record<string, true>;
|
|
@@ -46,6 +46,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
46
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
48
|
} | null;
|
|
49
|
+
hoveredArrowTextAnchor: {
|
|
50
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
51
|
+
anchor: "start" | "end" | "label";
|
|
52
|
+
} | null;
|
|
49
53
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
50
54
|
frameRendering: {
|
|
51
55
|
enabled: boolean;
|
|
@@ -53,8 +57,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
53
57
|
outline: boolean;
|
|
54
58
|
clip: boolean;
|
|
55
59
|
};
|
|
56
|
-
editingFrame:
|
|
57
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
60
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
61
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
58
62
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
59
63
|
activeTool: {
|
|
60
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -90,6 +94,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
90
94
|
viewBackgroundColor: string;
|
|
91
95
|
scrollX: number;
|
|
92
96
|
scrollY: number;
|
|
97
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
93
98
|
cursorButton: "up" | "down";
|
|
94
99
|
scrolledOutside: boolean;
|
|
95
100
|
name: string | null;
|
|
@@ -158,8 +163,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
158
163
|
y: number;
|
|
159
164
|
} | null;
|
|
160
165
|
objectsSnapModeEnabled: boolean;
|
|
161
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
162
|
-
followedBy: Set<import("../types").SocketId>;
|
|
163
166
|
isCropping: boolean;
|
|
164
167
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
165
168
|
searchMatches: Readonly<{
|
|
@@ -171,14 +174,19 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
171
174
|
[groupId: string]: true;
|
|
172
175
|
};
|
|
173
176
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
177
|
+
colorTopPicks: {
|
|
178
|
+
elementStroke: readonly string[] | null;
|
|
179
|
+
elementBackground: readonly string[] | null;
|
|
180
|
+
bucketFill: readonly string[] | null;
|
|
181
|
+
};
|
|
174
182
|
};
|
|
175
183
|
captureUpdate: "IMMEDIATELY";
|
|
176
184
|
} | {
|
|
177
185
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
178
|
-
appState: Readonly<AppState>;
|
|
186
|
+
appState: Readonly<import("../types").AppState>;
|
|
179
187
|
captureUpdate: "EVENTUALLY";
|
|
180
188
|
};
|
|
181
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
189
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
182
190
|
} & {
|
|
183
191
|
keyTest?: undefined;
|
|
184
192
|
};
|
|
@@ -188,7 +196,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
188
196
|
trackEvent: {
|
|
189
197
|
category: "history";
|
|
190
198
|
};
|
|
191
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
199
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
192
200
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
193
201
|
appState: {
|
|
194
202
|
selectedElementIds: {
|
|
@@ -230,6 +238,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
230
238
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
231
239
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
232
240
|
} | null;
|
|
241
|
+
hoveredArrowTextAnchor: {
|
|
242
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
243
|
+
anchor: "start" | "end" | "label";
|
|
244
|
+
} | null;
|
|
233
245
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
234
246
|
frameRendering: {
|
|
235
247
|
enabled: boolean;
|
|
@@ -237,8 +249,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
237
249
|
outline: boolean;
|
|
238
250
|
clip: boolean;
|
|
239
251
|
};
|
|
240
|
-
editingFrame:
|
|
241
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
252
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
253
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
242
254
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
243
255
|
activeTool: {
|
|
244
256
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -274,6 +286,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
274
286
|
viewBackgroundColor: string;
|
|
275
287
|
scrollX: number;
|
|
276
288
|
scrollY: number;
|
|
289
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
277
290
|
cursorButton: "up" | "down";
|
|
278
291
|
scrolledOutside: boolean;
|
|
279
292
|
name: string | null;
|
|
@@ -342,8 +355,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
342
355
|
y: number;
|
|
343
356
|
} | null;
|
|
344
357
|
objectsSnapModeEnabled: boolean;
|
|
345
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
346
|
-
followedBy: Set<import("../types").SocketId>;
|
|
347
358
|
isCropping: boolean;
|
|
348
359
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
349
360
|
searchMatches: Readonly<{
|
|
@@ -355,14 +366,19 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
355
366
|
[groupId: string]: true;
|
|
356
367
|
};
|
|
357
368
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
369
|
+
colorTopPicks: {
|
|
370
|
+
elementStroke: readonly string[] | null;
|
|
371
|
+
elementBackground: readonly string[] | null;
|
|
372
|
+
bucketFill: readonly string[] | null;
|
|
373
|
+
};
|
|
358
374
|
};
|
|
359
375
|
captureUpdate: "IMMEDIATELY";
|
|
360
376
|
} | {
|
|
361
377
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
362
|
-
appState: Readonly<AppState>;
|
|
378
|
+
appState: Readonly<import("../types").AppState>;
|
|
363
379
|
captureUpdate: "EVENTUALLY";
|
|
364
380
|
};
|
|
365
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
381
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
366
382
|
} & {
|
|
367
383
|
keyTest?: undefined;
|
|
368
384
|
};
|
|
@@ -373,7 +389,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
373
389
|
trackEvent: {
|
|
374
390
|
category: "canvas";
|
|
375
391
|
};
|
|
376
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
392
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
377
393
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
378
394
|
appState: {
|
|
379
395
|
frameRendering: {
|
|
@@ -418,9 +434,13 @@ export declare const actionupdateFrameRendering: {
|
|
|
418
434
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
419
435
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
420
436
|
} | null;
|
|
437
|
+
hoveredArrowTextAnchor: {
|
|
438
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
439
|
+
anchor: "start" | "end" | "label";
|
|
440
|
+
} | null;
|
|
421
441
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
422
|
-
editingFrame:
|
|
423
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
442
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
443
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
424
444
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
425
445
|
activeTool: {
|
|
426
446
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -456,6 +476,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
456
476
|
viewBackgroundColor: string;
|
|
457
477
|
scrollX: number;
|
|
458
478
|
scrollY: number;
|
|
479
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
459
480
|
cursorButton: "up" | "down";
|
|
460
481
|
scrolledOutside: boolean;
|
|
461
482
|
name: string | null;
|
|
@@ -527,8 +548,6 @@ export declare const actionupdateFrameRendering: {
|
|
|
527
548
|
y: number;
|
|
528
549
|
} | null;
|
|
529
550
|
objectsSnapModeEnabled: boolean;
|
|
530
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
531
|
-
followedBy: Set<import("../types").SocketId>;
|
|
532
551
|
isCropping: boolean;
|
|
533
552
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
534
553
|
searchMatches: Readonly<{
|
|
@@ -540,194 +559,17 @@ export declare const actionupdateFrameRendering: {
|
|
|
540
559
|
[groupId: string]: true;
|
|
541
560
|
};
|
|
542
561
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
} & {
|
|
548
|
-
keyTest?: undefined;
|
|
549
|
-
};
|
|
550
|
-
export declare const actionSetFrameAsActiveTool: {
|
|
551
|
-
name: "setFrameAsActiveTool";
|
|
552
|
-
label: string;
|
|
553
|
-
trackEvent: {
|
|
554
|
-
category: "toolbar";
|
|
555
|
-
};
|
|
556
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
557
|
-
viewMode: false;
|
|
558
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
559
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
560
|
-
appState: {
|
|
561
|
-
activeTool: {
|
|
562
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
563
|
-
locked: boolean;
|
|
564
|
-
fromSelection: boolean;
|
|
565
|
-
} & import("../types").ActiveTool;
|
|
566
|
-
contextMenu: {
|
|
567
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
568
|
-
top: number;
|
|
569
|
-
left: number;
|
|
570
|
-
} | null;
|
|
571
|
-
showWelcomeScreen: boolean;
|
|
572
|
-
isLoading: boolean;
|
|
573
|
-
myocSimplifiedMode: boolean;
|
|
574
|
-
dontResizeLimitMBs: number;
|
|
575
|
-
hideMainMenus: boolean;
|
|
576
|
-
wheelZoomsOnDefault?: boolean;
|
|
577
|
-
arrangeConfiguration: {
|
|
578
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
579
|
-
gap: number;
|
|
580
|
-
};
|
|
581
|
-
normaliseConfiguration: {
|
|
582
|
-
mode: import("../types").NormaliseMode;
|
|
583
|
-
metric: import("../types").NormaliseMetric;
|
|
584
|
-
};
|
|
585
|
-
errorMessage: React.ReactNode;
|
|
586
|
-
activeEmbeddable: {
|
|
587
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
588
|
-
state: "hover" | "active";
|
|
589
|
-
} | null;
|
|
590
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
591
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
592
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
593
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
594
|
-
isBindingEnabled: boolean;
|
|
595
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
596
|
-
bindingPreference: "enabled" | "disabled";
|
|
597
|
-
isMidpointSnappingEnabled: boolean;
|
|
598
|
-
suggestedBinding: {
|
|
599
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
600
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
601
|
-
} | null;
|
|
602
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
603
|
-
frameRendering: {
|
|
604
|
-
enabled: boolean;
|
|
605
|
-
name: boolean;
|
|
606
|
-
outline: boolean;
|
|
607
|
-
clip: boolean;
|
|
608
|
-
};
|
|
609
|
-
editingFrame: string | null;
|
|
610
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
611
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
612
|
-
preferredSelectionTool: {
|
|
613
|
-
type: "selection" | "lasso";
|
|
614
|
-
initialized: boolean;
|
|
615
|
-
};
|
|
616
|
-
penMode: boolean;
|
|
617
|
-
penDetected: boolean;
|
|
618
|
-
exportBackground: boolean;
|
|
619
|
-
exportEmbedScene: boolean;
|
|
620
|
-
exportWithDarkMode: boolean;
|
|
621
|
-
exportScale: number;
|
|
622
|
-
currentItemStrokeColor: string;
|
|
623
|
-
currentItemBackgroundColor: string;
|
|
624
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
625
|
-
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
626
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
627
|
-
currentItemRoughness: number;
|
|
628
|
-
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
629
|
-
currentItemOpacity: number;
|
|
630
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
631
|
-
currentItemFontSize: number;
|
|
632
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
633
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
634
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
635
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
636
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
637
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
638
|
-
viewBackgroundColor: string;
|
|
639
|
-
scrollX: number;
|
|
640
|
-
scrollY: number;
|
|
641
|
-
cursorButton: "up" | "down";
|
|
642
|
-
scrolledOutside: boolean;
|
|
643
|
-
name: string | null;
|
|
644
|
-
isResizing: boolean;
|
|
645
|
-
isRotating: boolean;
|
|
646
|
-
zoom: import("../types").Zoom;
|
|
647
|
-
openMenu: "canvas" | null;
|
|
648
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
649
|
-
openSidebar: {
|
|
650
|
-
name: import("../types").SidebarName;
|
|
651
|
-
tab?: import("../types").SidebarTabName;
|
|
652
|
-
} | null;
|
|
653
|
-
openDialog: null | {
|
|
654
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
655
|
-
} | {
|
|
656
|
-
name: "settings";
|
|
657
|
-
} | {
|
|
658
|
-
name: "elementLinkSelector";
|
|
659
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
660
|
-
} | {
|
|
661
|
-
name: "charts";
|
|
662
|
-
data: import("../charts").Spreadsheet;
|
|
663
|
-
rawText: string;
|
|
664
|
-
};
|
|
665
|
-
defaultSidebarDockedPreference: boolean;
|
|
666
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
667
|
-
selectedElementIds: Readonly<{
|
|
668
|
-
[id: string]: true;
|
|
669
|
-
}>;
|
|
670
|
-
hoveredElementIds: Readonly<{
|
|
671
|
-
[id: string]: true;
|
|
672
|
-
}>;
|
|
673
|
-
previousSelectedElementIds: {
|
|
674
|
-
[id: string]: true;
|
|
675
|
-
};
|
|
676
|
-
selectedElementsAreBeingDragged: boolean;
|
|
677
|
-
shouldCacheIgnoreZoom: boolean;
|
|
678
|
-
toast: {
|
|
679
|
-
message: React.ReactNode;
|
|
680
|
-
closable?: boolean;
|
|
681
|
-
duration?: number;
|
|
682
|
-
} | null;
|
|
683
|
-
zenModeEnabled: boolean;
|
|
684
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
685
|
-
gridSize: number;
|
|
686
|
-
gridStep: number;
|
|
687
|
-
gridModeEnabled: boolean;
|
|
688
|
-
viewModeEnabled: boolean;
|
|
689
|
-
viewModeOnly: boolean;
|
|
690
|
-
selectedGroupIds: {
|
|
691
|
-
[groupId: string]: boolean;
|
|
692
|
-
};
|
|
693
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
694
|
-
width: number;
|
|
695
|
-
height: number;
|
|
696
|
-
offsetTop: number;
|
|
697
|
-
offsetLeft: number;
|
|
698
|
-
fileHandle: FileSystemFileHandle | null;
|
|
699
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
700
|
-
stats: {
|
|
701
|
-
open: boolean;
|
|
702
|
-
panels: number;
|
|
703
|
-
};
|
|
704
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
705
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
706
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
707
|
-
originSnapOffset: {
|
|
708
|
-
x: number;
|
|
709
|
-
y: number;
|
|
710
|
-
} | null;
|
|
711
|
-
objectsSnapModeEnabled: boolean;
|
|
712
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
713
|
-
followedBy: Set<import("../types").SocketId>;
|
|
714
|
-
isCropping: boolean;
|
|
715
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
716
|
-
searchMatches: Readonly<{
|
|
717
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
718
|
-
matches: readonly import("../types").SearchMatch[];
|
|
719
|
-
}> | null;
|
|
720
|
-
activeLockedId: string | null;
|
|
721
|
-
lockedMultiSelections: {
|
|
722
|
-
[groupId: string]: true;
|
|
562
|
+
colorTopPicks: {
|
|
563
|
+
elementStroke: readonly string[] | null;
|
|
564
|
+
elementBackground: readonly string[] | null;
|
|
565
|
+
bucketFill: readonly string[] | null;
|
|
723
566
|
};
|
|
724
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
725
567
|
};
|
|
726
568
|
captureUpdate: "EVENTUALLY";
|
|
727
569
|
};
|
|
728
|
-
|
|
570
|
+
checked: (appState: Readonly<UIAppState>) => boolean;
|
|
729
571
|
} & {
|
|
730
|
-
keyTest?:
|
|
572
|
+
keyTest?: undefined;
|
|
731
573
|
};
|
|
732
574
|
export declare const actionWrapSelectionInFrame: {
|
|
733
575
|
name: "wrapSelectionInFrame";
|
|
@@ -735,8 +577,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
735
577
|
trackEvent: {
|
|
736
578
|
category: "element";
|
|
737
579
|
};
|
|
738
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
739
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
580
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
581
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
740
582
|
elements: ((Readonly<{
|
|
741
583
|
id: string;
|
|
742
584
|
x: number;
|