@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
@@ -58,8 +58,13 @@ export declare const actionBindText: {
|
|
|
58
58
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
59
59
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
|
+
bindingPreference: "enabled" | "disabled";
|
|
62
|
+
isMidpointSnappingEnabled: boolean;
|
|
61
63
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
62
|
-
suggestedBinding:
|
|
64
|
+
suggestedBinding: {
|
|
65
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
66
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
67
|
+
} | null;
|
|
63
68
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
69
|
frameRendering: {
|
|
65
70
|
enabled: boolean;
|
|
@@ -69,7 +74,7 @@ export declare const actionBindText: {
|
|
|
69
74
|
};
|
|
70
75
|
editingFrame: string | null;
|
|
71
76
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
72
|
-
editingTextElement:
|
|
77
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
73
78
|
activeTool: {
|
|
74
79
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
80
|
locked: boolean;
|
|
@@ -124,6 +129,10 @@ export declare const actionBindText: {
|
|
|
124
129
|
} | {
|
|
125
130
|
name: "elementLinkSelector";
|
|
126
131
|
sourceElementId: ExcalidrawElement["id"];
|
|
132
|
+
} | {
|
|
133
|
+
name: "charts";
|
|
134
|
+
data: import("../charts").Spreadsheet;
|
|
135
|
+
rawText: string;
|
|
127
136
|
};
|
|
128
137
|
defaultSidebarDockedPreference: boolean;
|
|
129
138
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -136,7 +145,7 @@ export declare const actionBindText: {
|
|
|
136
145
|
selectedElementsAreBeingDragged: boolean;
|
|
137
146
|
shouldCacheIgnoreZoom: boolean;
|
|
138
147
|
toast: {
|
|
139
|
-
message:
|
|
148
|
+
message: React.ReactNode;
|
|
140
149
|
closable?: boolean;
|
|
141
150
|
duration?: number;
|
|
142
151
|
} | null;
|
|
@@ -154,20 +163,12 @@ export declare const actionBindText: {
|
|
|
154
163
|
height: number;
|
|
155
164
|
offsetTop: number;
|
|
156
165
|
offsetLeft: number;
|
|
157
|
-
fileHandle:
|
|
166
|
+
fileHandle: FileSystemFileHandle | null;
|
|
158
167
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
159
168
|
stats: {
|
|
160
169
|
open: boolean;
|
|
161
170
|
panels: number;
|
|
162
171
|
};
|
|
163
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
164
|
-
pasteDialog: {
|
|
165
|
-
shown: false;
|
|
166
|
-
data: null;
|
|
167
|
-
} | {
|
|
168
|
-
shown: true;
|
|
169
|
-
data: import("../charts").Spreadsheet;
|
|
170
|
-
};
|
|
171
172
|
showHyperlinkPopup: false | "info" | "editor";
|
|
172
173
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
173
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -237,8 +238,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
237
238
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
238
239
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
240
|
isBindingEnabled: boolean;
|
|
241
|
+
bindingPreference: "enabled" | "disabled";
|
|
242
|
+
isMidpointSnappingEnabled: boolean;
|
|
240
243
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
241
|
-
suggestedBinding:
|
|
244
|
+
suggestedBinding: {
|
|
245
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
246
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
247
|
+
} | null;
|
|
242
248
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
243
249
|
frameRendering: {
|
|
244
250
|
enabled: boolean;
|
|
@@ -248,7 +254,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
248
254
|
};
|
|
249
255
|
editingFrame: string | null;
|
|
250
256
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
251
|
-
editingTextElement:
|
|
257
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
252
258
|
activeTool: {
|
|
253
259
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
254
260
|
locked: boolean;
|
|
@@ -303,6 +309,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
303
309
|
} | {
|
|
304
310
|
name: "elementLinkSelector";
|
|
305
311
|
sourceElementId: ExcalidrawElement["id"];
|
|
312
|
+
} | {
|
|
313
|
+
name: "charts";
|
|
314
|
+
data: import("../charts").Spreadsheet;
|
|
315
|
+
rawText: string;
|
|
306
316
|
};
|
|
307
317
|
defaultSidebarDockedPreference: boolean;
|
|
308
318
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -315,7 +325,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
315
325
|
selectedElementsAreBeingDragged: boolean;
|
|
316
326
|
shouldCacheIgnoreZoom: boolean;
|
|
317
327
|
toast: {
|
|
318
|
-
message:
|
|
328
|
+
message: React.ReactNode;
|
|
319
329
|
closable?: boolean;
|
|
320
330
|
duration?: number;
|
|
321
331
|
} | null;
|
|
@@ -333,20 +343,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
333
343
|
height: number;
|
|
334
344
|
offsetTop: number;
|
|
335
345
|
offsetLeft: number;
|
|
336
|
-
fileHandle:
|
|
346
|
+
fileHandle: FileSystemFileHandle | null;
|
|
337
347
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
338
348
|
stats: {
|
|
339
349
|
open: boolean;
|
|
340
350
|
panels: number;
|
|
341
351
|
};
|
|
342
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
343
|
-
pasteDialog: {
|
|
344
|
-
shown: false;
|
|
345
|
-
data: null;
|
|
346
|
-
} | {
|
|
347
|
-
shown: true;
|
|
348
|
-
data: import("../charts").Spreadsheet;
|
|
349
|
-
};
|
|
350
352
|
showHyperlinkPopup: false | "info" | "editor";
|
|
351
353
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
352
354
|
snapLines: readonly import("../snapping").SnapLine[];
|