@myoc/common 0.19.502-ff5a131b0 → 0.19.504
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 +313 -21
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +13 -13
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/utils.d.ts +4 -7
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +2 -0
- package/dist/types/element/src/arrange-algorithms/maxRects.d.ts +16 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +13 -8
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +4 -3
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/index.d.ts +4 -0
- package/dist/types/element/src/linearElementEditor.d.ts +6 -1
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/selection.d.ts +6 -2
- package/dist/types/element/src/shapes.d.ts +2 -22
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/types.d.ts +6 -3
- package/dist/types/element/src/utils.d.ts +5 -3
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +143 -132
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +42 -37
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionExport.d.ts +112 -405
- package/dist/types/excalidraw/actions/actionFrame.d.ts +52 -48
- package/dist/types/excalidraw/actions/actionGroup.d.ts +29 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionProperties.d.ts +30 -28
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -14
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -11
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +181 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +181 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/index.d.ts +2 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +34 -32
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +8 -9
- package/dist/types/excalidraw/components/App.d.ts +57 -14
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -17
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -13
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +23 -9
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -13
- package/dist/types/excalidraw/data/blob.d.ts +163 -162
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +2 -3
- package/dist/types/excalidraw/data/json.d.ts +92 -83
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/editorPreferences.d.ts +11 -0
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +114 -16
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/point.d.ts +7 -2
- package/dist/types/math/src/types.d.ts +25 -1
- package/package.json +1 -1
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
- package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
- package/dist/types/excalidraw/index.d.ts +0 -42
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
|
@@ -39,8 +39,13 @@ export declare const actionPaste: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
bindingPreference: "enabled" | "disabled";
|
|
43
|
+
isMidpointSnappingEnabled: boolean;
|
|
42
44
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBinding:
|
|
45
|
+
suggestedBinding: {
|
|
46
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
|
+
} | null;
|
|
44
49
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
50
|
frameRendering: {
|
|
46
51
|
enabled: boolean;
|
|
@@ -50,7 +55,7 @@ export declare const actionPaste: {
|
|
|
50
55
|
};
|
|
51
56
|
editingFrame: string | null;
|
|
52
57
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
53
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
58
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
54
59
|
activeTool: {
|
|
55
60
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
56
61
|
locked: boolean;
|
|
@@ -105,6 +110,10 @@ export declare const actionPaste: {
|
|
|
105
110
|
} | {
|
|
106
111
|
name: "elementLinkSelector";
|
|
107
112
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
113
|
+
} | {
|
|
114
|
+
name: "charts";
|
|
115
|
+
data: import("../charts").Spreadsheet;
|
|
116
|
+
rawText: string;
|
|
108
117
|
};
|
|
109
118
|
defaultSidebarDockedPreference: boolean;
|
|
110
119
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -120,7 +129,7 @@ export declare const actionPaste: {
|
|
|
120
129
|
selectedElementsAreBeingDragged: boolean;
|
|
121
130
|
shouldCacheIgnoreZoom: boolean;
|
|
122
131
|
toast: {
|
|
123
|
-
message:
|
|
132
|
+
message: React.ReactNode;
|
|
124
133
|
closable?: boolean;
|
|
125
134
|
duration?: number;
|
|
126
135
|
} | null;
|
|
@@ -138,20 +147,12 @@ export declare const actionPaste: {
|
|
|
138
147
|
height: number;
|
|
139
148
|
offsetTop: number;
|
|
140
149
|
offsetLeft: number;
|
|
141
|
-
fileHandle:
|
|
150
|
+
fileHandle: FileSystemFileHandle | null;
|
|
142
151
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
143
152
|
stats: {
|
|
144
153
|
open: boolean;
|
|
145
154
|
panels: number;
|
|
146
155
|
};
|
|
147
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
148
|
-
pasteDialog: {
|
|
149
|
-
shown: false;
|
|
150
|
-
data: null;
|
|
151
|
-
} | {
|
|
152
|
-
shown: true;
|
|
153
|
-
data: import("../charts").Spreadsheet;
|
|
154
|
-
};
|
|
155
156
|
showHyperlinkPopup: false | "info" | "editor";
|
|
156
157
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
157
158
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -256,8 +257,13 @@ export declare const actionCopyAsPng: {
|
|
|
256
257
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
257
258
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
258
259
|
isBindingEnabled: boolean;
|
|
260
|
+
bindingPreference: "enabled" | "disabled";
|
|
261
|
+
isMidpointSnappingEnabled: boolean;
|
|
259
262
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
260
|
-
suggestedBinding:
|
|
263
|
+
suggestedBinding: {
|
|
264
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
265
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
266
|
+
} | null;
|
|
261
267
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
262
268
|
frameRendering: {
|
|
263
269
|
enabled: boolean;
|
|
@@ -267,7 +273,7 @@ export declare const actionCopyAsPng: {
|
|
|
267
273
|
};
|
|
268
274
|
editingFrame: string | null;
|
|
269
275
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
270
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
276
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
271
277
|
activeTool: {
|
|
272
278
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
273
279
|
locked: boolean;
|
|
@@ -322,6 +328,10 @@ export declare const actionCopyAsPng: {
|
|
|
322
328
|
} | {
|
|
323
329
|
name: "elementLinkSelector";
|
|
324
330
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
331
|
+
} | {
|
|
332
|
+
name: "charts";
|
|
333
|
+
data: import("../charts").Spreadsheet;
|
|
334
|
+
rawText: string;
|
|
325
335
|
};
|
|
326
336
|
defaultSidebarDockedPreference: boolean;
|
|
327
337
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -337,7 +347,7 @@ export declare const actionCopyAsPng: {
|
|
|
337
347
|
selectedElementsAreBeingDragged: boolean;
|
|
338
348
|
shouldCacheIgnoreZoom: boolean;
|
|
339
349
|
toast: {
|
|
340
|
-
message:
|
|
350
|
+
message: React.ReactNode;
|
|
341
351
|
closable?: boolean;
|
|
342
352
|
duration?: number;
|
|
343
353
|
} | null;
|
|
@@ -355,20 +365,12 @@ export declare const actionCopyAsPng: {
|
|
|
355
365
|
height: number;
|
|
356
366
|
offsetTop: number;
|
|
357
367
|
offsetLeft: number;
|
|
358
|
-
fileHandle:
|
|
368
|
+
fileHandle: FileSystemFileHandle | null;
|
|
359
369
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
360
370
|
stats: {
|
|
361
371
|
open: boolean;
|
|
362
372
|
panels: number;
|
|
363
373
|
};
|
|
364
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
365
|
-
pasteDialog: {
|
|
366
|
-
shown: false;
|
|
367
|
-
data: null;
|
|
368
|
-
} | {
|
|
369
|
-
shown: true;
|
|
370
|
-
data: import("../charts").Spreadsheet;
|
|
371
|
-
};
|
|
372
374
|
showHyperlinkPopup: false | "info" | "editor";
|
|
373
375
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
374
376
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -40,8 +40,13 @@ export declare const actionToggleCropEditor: {
|
|
|
40
40
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
41
41
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
42
|
isBindingEnabled: boolean;
|
|
43
|
+
bindingPreference: "enabled" | "disabled";
|
|
44
|
+
isMidpointSnappingEnabled: boolean;
|
|
43
45
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
44
|
-
suggestedBinding:
|
|
46
|
+
suggestedBinding: {
|
|
47
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
48
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
49
|
+
} | null;
|
|
45
50
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
46
51
|
frameRendering: {
|
|
47
52
|
enabled: boolean;
|
|
@@ -51,7 +56,7 @@ export declare const actionToggleCropEditor: {
|
|
|
51
56
|
};
|
|
52
57
|
editingFrame: string | null;
|
|
53
58
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
54
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
59
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
55
60
|
activeTool: {
|
|
56
61
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
57
62
|
locked: boolean;
|
|
@@ -106,6 +111,10 @@ export declare const actionToggleCropEditor: {
|
|
|
106
111
|
} | {
|
|
107
112
|
name: "elementLinkSelector";
|
|
108
113
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
114
|
+
} | {
|
|
115
|
+
name: "charts";
|
|
116
|
+
data: import("../charts").Spreadsheet;
|
|
117
|
+
rawText: string;
|
|
109
118
|
};
|
|
110
119
|
defaultSidebarDockedPreference: boolean;
|
|
111
120
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -121,7 +130,7 @@ export declare const actionToggleCropEditor: {
|
|
|
121
130
|
selectedElementsAreBeingDragged: boolean;
|
|
122
131
|
shouldCacheIgnoreZoom: boolean;
|
|
123
132
|
toast: {
|
|
124
|
-
message:
|
|
133
|
+
message: React.ReactNode;
|
|
125
134
|
closable?: boolean;
|
|
126
135
|
duration?: number;
|
|
127
136
|
} | null;
|
|
@@ -139,20 +148,12 @@ export declare const actionToggleCropEditor: {
|
|
|
139
148
|
height: number;
|
|
140
149
|
offsetTop: number;
|
|
141
150
|
offsetLeft: number;
|
|
142
|
-
fileHandle:
|
|
151
|
+
fileHandle: FileSystemFileHandle | null;
|
|
143
152
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
144
153
|
stats: {
|
|
145
154
|
open: boolean;
|
|
146
155
|
panels: number;
|
|
147
156
|
};
|
|
148
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
149
|
-
pasteDialog: {
|
|
150
|
-
shown: false;
|
|
151
|
-
data: null;
|
|
152
|
-
} | {
|
|
153
|
-
shown: true;
|
|
154
|
-
data: import("../charts").Spreadsheet;
|
|
155
|
-
};
|
|
156
157
|
showHyperlinkPopup: false | "info" | "editor";
|
|
157
158
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
158
159
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -41,8 +41,13 @@ export declare const actionDeleteSelected: {
|
|
|
41
41
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
42
42
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
43
|
isBindingEnabled: boolean;
|
|
44
|
+
bindingPreference: "enabled" | "disabled";
|
|
45
|
+
isMidpointSnappingEnabled: boolean;
|
|
44
46
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
|
-
suggestedBinding:
|
|
47
|
+
suggestedBinding: {
|
|
48
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
49
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
50
|
+
} | null;
|
|
46
51
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
47
52
|
frameRendering: {
|
|
48
53
|
enabled: boolean;
|
|
@@ -52,7 +57,7 @@ export declare const actionDeleteSelected: {
|
|
|
52
57
|
};
|
|
53
58
|
editingFrame: string | null;
|
|
54
59
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
55
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
60
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
56
61
|
activeTool: {
|
|
57
62
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
58
63
|
locked: boolean;
|
|
@@ -107,6 +112,10 @@ export declare const actionDeleteSelected: {
|
|
|
107
112
|
} | {
|
|
108
113
|
name: "elementLinkSelector";
|
|
109
114
|
sourceElementId: ExcalidrawElement["id"];
|
|
115
|
+
} | {
|
|
116
|
+
name: "charts";
|
|
117
|
+
data: import("../charts").Spreadsheet;
|
|
118
|
+
rawText: string;
|
|
110
119
|
};
|
|
111
120
|
defaultSidebarDockedPreference: boolean;
|
|
112
121
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -122,7 +131,7 @@ export declare const actionDeleteSelected: {
|
|
|
122
131
|
selectedElementsAreBeingDragged: boolean;
|
|
123
132
|
shouldCacheIgnoreZoom: boolean;
|
|
124
133
|
toast: {
|
|
125
|
-
message:
|
|
134
|
+
message: React.ReactNode;
|
|
126
135
|
closable?: boolean;
|
|
127
136
|
duration?: number;
|
|
128
137
|
} | null;
|
|
@@ -140,20 +149,12 @@ export declare const actionDeleteSelected: {
|
|
|
140
149
|
height: number;
|
|
141
150
|
offsetTop: number;
|
|
142
151
|
offsetLeft: number;
|
|
143
|
-
fileHandle:
|
|
152
|
+
fileHandle: FileSystemFileHandle | null;
|
|
144
153
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
145
154
|
stats: {
|
|
146
155
|
open: boolean;
|
|
147
156
|
panels: number;
|
|
148
157
|
};
|
|
149
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
150
|
-
pasteDialog: {
|
|
151
|
-
shown: false;
|
|
152
|
-
data: null;
|
|
153
|
-
} | {
|
|
154
|
-
shown: true;
|
|
155
|
-
data: import("../charts").Spreadsheet;
|
|
156
|
-
};
|
|
157
158
|
showHyperlinkPopup: false | "info" | "editor";
|
|
158
159
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
159
160
|
originSnapOffset: {
|
|
@@ -205,6 +206,8 @@ export declare const actionDeleteSelected: {
|
|
|
205
206
|
}>;
|
|
206
207
|
hoverPointIndex: number;
|
|
207
208
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
209
|
+
hoveredFocusPointBinding: "start" | "end" | null;
|
|
210
|
+
draggedFocusPointBinding: "start" | "end" | null;
|
|
208
211
|
elbowed: boolean;
|
|
209
212
|
customLineAngle: number | null;
|
|
210
213
|
isEditing: boolean;
|
|
@@ -239,8 +242,13 @@ export declare const actionDeleteSelected: {
|
|
|
239
242
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
240
243
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
241
244
|
isBindingEnabled: boolean;
|
|
245
|
+
bindingPreference: "enabled" | "disabled";
|
|
246
|
+
isMidpointSnappingEnabled: boolean;
|
|
242
247
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
243
|
-
suggestedBinding:
|
|
248
|
+
suggestedBinding: {
|
|
249
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
250
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
251
|
+
} | null;
|
|
244
252
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
245
253
|
frameRendering: {
|
|
246
254
|
enabled: boolean;
|
|
@@ -250,7 +258,7 @@ export declare const actionDeleteSelected: {
|
|
|
250
258
|
};
|
|
251
259
|
editingFrame: string | null;
|
|
252
260
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
253
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
261
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
254
262
|
activeTool: {
|
|
255
263
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
256
264
|
locked: boolean;
|
|
@@ -305,6 +313,10 @@ export declare const actionDeleteSelected: {
|
|
|
305
313
|
} | {
|
|
306
314
|
name: "elementLinkSelector";
|
|
307
315
|
sourceElementId: ExcalidrawElement["id"];
|
|
316
|
+
} | {
|
|
317
|
+
name: "charts";
|
|
318
|
+
data: import("../charts").Spreadsheet;
|
|
319
|
+
rawText: string;
|
|
308
320
|
};
|
|
309
321
|
defaultSidebarDockedPreference: boolean;
|
|
310
322
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -320,7 +332,7 @@ export declare const actionDeleteSelected: {
|
|
|
320
332
|
selectedElementsAreBeingDragged: boolean;
|
|
321
333
|
shouldCacheIgnoreZoom: boolean;
|
|
322
334
|
toast: {
|
|
323
|
-
message:
|
|
335
|
+
message: React.ReactNode;
|
|
324
336
|
closable?: boolean;
|
|
325
337
|
duration?: number;
|
|
326
338
|
} | null;
|
|
@@ -338,20 +350,12 @@ export declare const actionDeleteSelected: {
|
|
|
338
350
|
height: number;
|
|
339
351
|
offsetTop: number;
|
|
340
352
|
offsetLeft: number;
|
|
341
|
-
fileHandle:
|
|
353
|
+
fileHandle: FileSystemFileHandle | null;
|
|
342
354
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
343
355
|
stats: {
|
|
344
356
|
open: boolean;
|
|
345
357
|
panels: number;
|
|
346
358
|
};
|
|
347
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
348
|
-
pasteDialog: {
|
|
349
|
-
shown: false;
|
|
350
|
-
data: null;
|
|
351
|
-
} | {
|
|
352
|
-
shown: true;
|
|
353
|
-
data: import("../charts").Spreadsheet;
|
|
354
|
-
};
|
|
355
359
|
showHyperlinkPopup: false | "info" | "editor";
|
|
356
360
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
357
361
|
originSnapOffset: {
|
|
@@ -386,9 +390,9 @@ export declare const actionDeleteSelected: {
|
|
|
386
390
|
newElement: null;
|
|
387
391
|
activeEmbeddable: null;
|
|
388
392
|
selectedLinearElement: null;
|
|
389
|
-
editingGroupId: AppState["editingGroupId"];
|
|
390
393
|
selectedElementIds: AppState["selectedElementIds"];
|
|
391
394
|
selectedGroupIds: AppState["selectedGroupIds"];
|
|
395
|
+
editingGroupId: AppState["editingGroupId"];
|
|
392
396
|
contextMenu: {
|
|
393
397
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
394
398
|
top: number;
|
|
@@ -412,8 +416,13 @@ export declare const actionDeleteSelected: {
|
|
|
412
416
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
413
417
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
414
418
|
isBindingEnabled: boolean;
|
|
419
|
+
bindingPreference: "enabled" | "disabled";
|
|
420
|
+
isMidpointSnappingEnabled: boolean;
|
|
415
421
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
416
|
-
suggestedBinding:
|
|
422
|
+
suggestedBinding: {
|
|
423
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
424
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
425
|
+
} | null;
|
|
417
426
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
418
427
|
frameRendering: {
|
|
419
428
|
enabled: boolean;
|
|
@@ -423,7 +432,7 @@ export declare const actionDeleteSelected: {
|
|
|
423
432
|
};
|
|
424
433
|
editingFrame: string | null;
|
|
425
434
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
426
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
435
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
427
436
|
preferredSelectionTool: {
|
|
428
437
|
type: "selection" | "lasso";
|
|
429
438
|
initialized: boolean;
|
|
@@ -473,6 +482,10 @@ export declare const actionDeleteSelected: {
|
|
|
473
482
|
} | {
|
|
474
483
|
name: "elementLinkSelector";
|
|
475
484
|
sourceElementId: ExcalidrawElement["id"];
|
|
485
|
+
} | {
|
|
486
|
+
name: "charts";
|
|
487
|
+
data: import("../charts").Spreadsheet;
|
|
488
|
+
rawText: string;
|
|
476
489
|
};
|
|
477
490
|
defaultSidebarDockedPreference: boolean;
|
|
478
491
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -485,7 +498,7 @@ export declare const actionDeleteSelected: {
|
|
|
485
498
|
selectedElementsAreBeingDragged: boolean;
|
|
486
499
|
shouldCacheIgnoreZoom: boolean;
|
|
487
500
|
toast: {
|
|
488
|
-
message:
|
|
501
|
+
message: React.ReactNode;
|
|
489
502
|
closable?: boolean;
|
|
490
503
|
duration?: number;
|
|
491
504
|
} | null;
|
|
@@ -499,20 +512,12 @@ export declare const actionDeleteSelected: {
|
|
|
499
512
|
height: number;
|
|
500
513
|
offsetTop: number;
|
|
501
514
|
offsetLeft: number;
|
|
502
|
-
fileHandle:
|
|
515
|
+
fileHandle: FileSystemFileHandle | null;
|
|
503
516
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
504
517
|
stats: {
|
|
505
518
|
open: boolean;
|
|
506
519
|
panels: number;
|
|
507
520
|
};
|
|
508
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
509
|
-
pasteDialog: {
|
|
510
|
-
shown: false;
|
|
511
|
-
data: null;
|
|
512
|
-
} | {
|
|
513
|
-
shown: true;
|
|
514
|
-
data: import("../charts").Spreadsheet;
|
|
515
|
-
};
|
|
516
521
|
showHyperlinkPopup: false | "info" | "editor";
|
|
517
522
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
518
523
|
originSnapOffset: {
|
|
@@ -69,8 +69,13 @@ export declare const actionLinkToElement: {
|
|
|
69
69
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
70
70
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
71
71
|
isBindingEnabled: boolean;
|
|
72
|
+
bindingPreference: "enabled" | "disabled";
|
|
73
|
+
isMidpointSnappingEnabled: boolean;
|
|
72
74
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
73
|
-
suggestedBinding:
|
|
75
|
+
suggestedBinding: {
|
|
76
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
77
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
78
|
+
} | null;
|
|
74
79
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
75
80
|
frameRendering: {
|
|
76
81
|
enabled: boolean;
|
|
@@ -80,7 +85,7 @@ export declare const actionLinkToElement: {
|
|
|
80
85
|
};
|
|
81
86
|
editingFrame: string | null;
|
|
82
87
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
83
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
88
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
84
89
|
activeTool: {
|
|
85
90
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
86
91
|
locked: boolean;
|
|
@@ -140,7 +145,7 @@ export declare const actionLinkToElement: {
|
|
|
140
145
|
selectedElementsAreBeingDragged: boolean;
|
|
141
146
|
shouldCacheIgnoreZoom: boolean;
|
|
142
147
|
toast: {
|
|
143
|
-
message:
|
|
148
|
+
message: React.ReactNode;
|
|
144
149
|
closable?: boolean;
|
|
145
150
|
duration?: number;
|
|
146
151
|
} | null;
|
|
@@ -158,20 +163,12 @@ export declare const actionLinkToElement: {
|
|
|
158
163
|
height: number;
|
|
159
164
|
offsetTop: number;
|
|
160
165
|
offsetLeft: number;
|
|
161
|
-
fileHandle:
|
|
166
|
+
fileHandle: FileSystemFileHandle | null;
|
|
162
167
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
163
168
|
stats: {
|
|
164
169
|
open: boolean;
|
|
165
170
|
panels: number;
|
|
166
171
|
};
|
|
167
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
168
|
-
pasteDialog: {
|
|
169
|
-
shown: false;
|
|
170
|
-
data: null;
|
|
171
|
-
} | {
|
|
172
|
-
shown: true;
|
|
173
|
-
data: import("../charts").Spreadsheet;
|
|
174
|
-
};
|
|
175
172
|
showHyperlinkPopup: false | "info" | "editor";
|
|
176
173
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
177
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -51,8 +51,13 @@ export declare const actionToggleElementLock: {
|
|
|
51
51
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
52
52
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
53
53
|
isBindingEnabled: boolean;
|
|
54
|
+
bindingPreference: "enabled" | "disabled";
|
|
55
|
+
isMidpointSnappingEnabled: boolean;
|
|
54
56
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
55
|
-
suggestedBinding:
|
|
57
|
+
suggestedBinding: {
|
|
58
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
59
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
60
|
+
} | null;
|
|
56
61
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
57
62
|
frameRendering: {
|
|
58
63
|
enabled: boolean;
|
|
@@ -62,7 +67,7 @@ export declare const actionToggleElementLock: {
|
|
|
62
67
|
};
|
|
63
68
|
editingFrame: string | null;
|
|
64
69
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
65
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
70
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
66
71
|
activeTool: {
|
|
67
72
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
68
73
|
locked: boolean;
|
|
@@ -117,6 +122,10 @@ export declare const actionToggleElementLock: {
|
|
|
117
122
|
} | {
|
|
118
123
|
name: "elementLinkSelector";
|
|
119
124
|
sourceElementId: ExcalidrawElement["id"];
|
|
125
|
+
} | {
|
|
126
|
+
name: "charts";
|
|
127
|
+
data: import("../charts").Spreadsheet;
|
|
128
|
+
rawText: string;
|
|
120
129
|
};
|
|
121
130
|
defaultSidebarDockedPreference: boolean;
|
|
122
131
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -129,7 +138,7 @@ export declare const actionToggleElementLock: {
|
|
|
129
138
|
selectedElementsAreBeingDragged: boolean;
|
|
130
139
|
shouldCacheIgnoreZoom: boolean;
|
|
131
140
|
toast: {
|
|
132
|
-
message:
|
|
141
|
+
message: React.ReactNode;
|
|
133
142
|
closable?: boolean;
|
|
134
143
|
duration?: number;
|
|
135
144
|
} | null;
|
|
@@ -144,20 +153,12 @@ export declare const actionToggleElementLock: {
|
|
|
144
153
|
height: number;
|
|
145
154
|
offsetTop: number;
|
|
146
155
|
offsetLeft: number;
|
|
147
|
-
fileHandle:
|
|
156
|
+
fileHandle: FileSystemFileHandle | null;
|
|
148
157
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
149
158
|
stats: {
|
|
150
159
|
open: boolean;
|
|
151
160
|
panels: number;
|
|
152
161
|
};
|
|
153
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
154
|
-
pasteDialog: {
|
|
155
|
-
shown: false;
|
|
156
|
-
data: null;
|
|
157
|
-
} | {
|
|
158
|
-
shown: true;
|
|
159
|
-
data: import("../charts").Spreadsheet;
|
|
160
|
-
};
|
|
161
162
|
showHyperlinkPopup: false | "info" | "editor";
|
|
162
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
164
|
originSnapOffset: {
|
|
@@ -229,8 +230,13 @@ export declare const actionUnlockAllElements: {
|
|
|
229
230
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
230
231
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
231
232
|
isBindingEnabled: boolean;
|
|
233
|
+
bindingPreference: "enabled" | "disabled";
|
|
234
|
+
isMidpointSnappingEnabled: boolean;
|
|
232
235
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
233
|
-
suggestedBinding:
|
|
236
|
+
suggestedBinding: {
|
|
237
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
238
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
239
|
+
} | null;
|
|
234
240
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
235
241
|
frameRendering: {
|
|
236
242
|
enabled: boolean;
|
|
@@ -240,7 +246,7 @@ export declare const actionUnlockAllElements: {
|
|
|
240
246
|
};
|
|
241
247
|
editingFrame: string | null;
|
|
242
248
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
243
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
249
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
244
250
|
activeTool: {
|
|
245
251
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
246
252
|
locked: boolean;
|
|
@@ -295,6 +301,10 @@ export declare const actionUnlockAllElements: {
|
|
|
295
301
|
} | {
|
|
296
302
|
name: "elementLinkSelector";
|
|
297
303
|
sourceElementId: ExcalidrawElement["id"];
|
|
304
|
+
} | {
|
|
305
|
+
name: "charts";
|
|
306
|
+
data: import("../charts").Spreadsheet;
|
|
307
|
+
rawText: string;
|
|
298
308
|
};
|
|
299
309
|
defaultSidebarDockedPreference: boolean;
|
|
300
310
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -307,7 +317,7 @@ export declare const actionUnlockAllElements: {
|
|
|
307
317
|
selectedElementsAreBeingDragged: boolean;
|
|
308
318
|
shouldCacheIgnoreZoom: boolean;
|
|
309
319
|
toast: {
|
|
310
|
-
message:
|
|
320
|
+
message: React.ReactNode;
|
|
311
321
|
closable?: boolean;
|
|
312
322
|
duration?: number;
|
|
313
323
|
} | null;
|
|
@@ -322,20 +332,12 @@ export declare const actionUnlockAllElements: {
|
|
|
322
332
|
height: number;
|
|
323
333
|
offsetTop: number;
|
|
324
334
|
offsetLeft: number;
|
|
325
|
-
fileHandle:
|
|
335
|
+
fileHandle: FileSystemFileHandle | null;
|
|
326
336
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
327
337
|
stats: {
|
|
328
338
|
open: boolean;
|
|
329
339
|
panels: number;
|
|
330
340
|
};
|
|
331
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
332
|
-
pasteDialog: {
|
|
333
|
-
shown: false;
|
|
334
|
-
data: null;
|
|
335
|
-
} | {
|
|
336
|
-
shown: true;
|
|
337
|
-
data: import("../charts").Spreadsheet;
|
|
338
|
-
};
|
|
339
341
|
showHyperlinkPopup: false | "info" | "editor";
|
|
340
342
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
341
343
|
snapLines: readonly import("../snapping").SnapLine[];
|