@myoc/math 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.
Files changed (122) hide show
  1. package/dist/dev/index.js +116 -125
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/colors.d.ts +1 -1
  7. package/dist/types/common/src/constants.d.ts +3 -0
  8. package/dist/types/common/src/index.d.ts +3 -0
  9. package/dist/types/common/src/utils.d.ts +4 -7
  10. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  11. package/dist/types/element/src/Scene.d.ts +2 -0
  12. package/dist/types/element/src/arrange-algorithms/maxRects.d.ts +16 -0
  13. package/dist/types/element/src/arrowheads.d.ts +3 -0
  14. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  15. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  16. package/dist/types/element/src/binding.d.ts +13 -8
  17. package/dist/types/element/src/bounds.d.ts +1 -1
  18. package/dist/types/element/src/collision.d.ts +4 -3
  19. package/dist/types/element/src/distribute.d.ts +2 -1
  20. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  21. package/dist/types/element/src/index.d.ts +4 -0
  22. package/dist/types/element/src/linearElementEditor.d.ts +6 -1
  23. package/dist/types/element/src/mutateElement.d.ts +2 -0
  24. package/dist/types/element/src/selection.d.ts +5 -1
  25. package/dist/types/element/src/shapes.d.ts +2 -22
  26. package/dist/types/element/src/textElement.d.ts +1 -1
  27. package/dist/types/element/src/textWrapping.d.ts +26 -0
  28. package/dist/types/element/src/types.d.ts +6 -3
  29. package/dist/types/element/src/utils.d.ts +5 -3
  30. package/dist/types/element/src/zindex.d.ts +1 -1
  31. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
  32. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  33. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  34. package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
  35. package/dist/types/excalidraw/actions/actionCanvas.d.ts +159 -148
  36. package/dist/types/excalidraw/actions/actionClipboard.d.ts +28 -26
  37. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
  38. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +43 -38
  39. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  40. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  41. package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
  42. package/dist/types/excalidraw/actions/actionElementLock.d.ts +28 -26
  43. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
  44. package/dist/types/excalidraw/actions/actionExport.d.ts +87 -380
  45. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  46. package/dist/types/excalidraw/actions/actionFrame.d.ts +54 -50
  47. package/dist/types/excalidraw/actions/actionGroup.d.ts +31 -29
  48. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
  49. package/dist/types/excalidraw/actions/actionLink.d.ts +15 -14
  50. package/dist/types/excalidraw/actions/actionMenu.d.ts +11 -14
  51. package/dist/types/excalidraw/actions/actionProperties.d.ts +33 -31
  52. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -15
  53. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  54. package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -15
  55. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  56. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +181 -0
  57. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -14
  58. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +181 -0
  59. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -14
  60. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -14
  61. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -14
  62. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -14
  63. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -14
  64. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  65. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  66. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  67. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  68. package/dist/types/excalidraw/appState.d.ts +15 -13
  69. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  70. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  71. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  72. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  73. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  74. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  75. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  76. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  77. package/dist/types/excalidraw/clipboard.d.ts +6 -7
  78. package/dist/types/excalidraw/components/App.d.ts +57 -14
  79. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  80. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  81. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  82. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  83. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  84. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  85. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  86. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  87. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -17
  88. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  89. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -13
  90. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  91. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  92. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  93. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  94. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  95. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  96. package/dist/types/excalidraw/components/icons.d.ts +23 -9
  97. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
  98. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -13
  99. package/dist/types/excalidraw/data/blob.d.ts +57 -56
  100. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  101. package/dist/types/excalidraw/data/index.d.ts +2 -3
  102. package/dist/types/excalidraw/data/json.d.ts +43 -34
  103. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  104. package/dist/types/excalidraw/editorPreferences.d.ts +11 -0
  105. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  106. package/dist/types/excalidraw/types.d.ts +114 -16
  107. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
  108. package/dist/types/math/src/point.d.ts +7 -2
  109. package/dist/types/math/src/types.d.ts +25 -1
  110. package/package.json +2 -2
  111. package/dist/types/excalidraw/charts.d.ts +0 -27
  112. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  113. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  114. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  115. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  116. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  117. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  118. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  119. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  120. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  121. package/dist/types/excalidraw/index.d.ts +0 -42
  122. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -42,8 +42,13 @@ export declare const actionToggleGridMode: {
42
42
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
43
43
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
44
  isBindingEnabled: boolean;
45
+ bindingPreference: "enabled" | "disabled";
46
+ isMidpointSnappingEnabled: boolean;
45
47
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
46
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
48
+ suggestedBinding: {
49
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
50
+ midPoint?: import("@excalidraw/math").GlobalPoint;
51
+ } | null;
47
52
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
48
53
  frameRendering: {
49
54
  enabled: boolean;
@@ -53,7 +58,7 @@ export declare const actionToggleGridMode: {
53
58
  };
54
59
  editingFrame: string | null;
55
60
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
56
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
61
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
57
62
  activeTool: {
58
63
  lastActiveTool: import("../types").ActiveTool | null;
59
64
  locked: boolean;
@@ -108,6 +113,10 @@ export declare const actionToggleGridMode: {
108
113
  } | {
109
114
  name: "elementLinkSelector";
110
115
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
116
+ } | {
117
+ name: "charts";
118
+ data: import("../charts").Spreadsheet;
119
+ rawText: string;
111
120
  };
112
121
  defaultSidebarDockedPreference: boolean;
113
122
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -123,7 +132,7 @@ export declare const actionToggleGridMode: {
123
132
  selectedElementsAreBeingDragged: boolean;
124
133
  shouldCacheIgnoreZoom: boolean;
125
134
  toast: {
126
- message: string;
135
+ message: React.ReactNode;
127
136
  closable?: boolean;
128
137
  duration?: number;
129
138
  } | null;
@@ -140,20 +149,12 @@ export declare const actionToggleGridMode: {
140
149
  height: number;
141
150
  offsetTop: number;
142
151
  offsetLeft: number;
143
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
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
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
159
160
  snapLines: readonly import("../snapping").SnapLine[];
@@ -179,7 +180,7 @@ export declare const actionToggleGridMode: {
179
180
  };
180
181
  checked: (appState: AppState) => boolean;
181
182
  predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
182
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
183
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
183
184
  } & {
184
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
185
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
185
186
  };
@@ -0,0 +1,181 @@
1
+ export declare const actionToggleMidpointSnapping: {
2
+ name: "midpointSnapping";
3
+ label: string;
4
+ viewMode: false;
5
+ trackEvent: {
6
+ category: "canvas";
7
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
8
+ };
9
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
10
+ appState: {
11
+ isMidpointSnappingEnabled: boolean;
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
17
+ showWelcomeScreen: boolean;
18
+ isLoading: boolean;
19
+ myocSimplifiedMode: boolean;
20
+ dontResizeLimitMBs: number;
21
+ hideMainMenus: boolean;
22
+ wheelZoomsOnDefault?: boolean;
23
+ arrangeConfiguration: {
24
+ algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
25
+ gap: number;
26
+ };
27
+ normaliseConfiguration: {
28
+ mode: import("../types").NormaliseMode;
29
+ metric: import("../types").NormaliseMetric;
30
+ };
31
+ errorMessage: React.ReactNode;
32
+ activeEmbeddable: {
33
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
34
+ state: "hover" | "active";
35
+ } | null;
36
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
37
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
38
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
39
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
+ isBindingEnabled: boolean;
41
+ bindingPreference: "enabled" | "disabled";
42
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
43
+ suggestedBinding: {
44
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
45
+ midPoint?: import("@excalidraw/math").GlobalPoint;
46
+ } | null;
47
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
48
+ frameRendering: {
49
+ enabled: boolean;
50
+ name: boolean;
51
+ outline: boolean;
52
+ clip: boolean;
53
+ };
54
+ editingFrame: string | null;
55
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
56
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
57
+ activeTool: {
58
+ lastActiveTool: import("../types").ActiveTool | null;
59
+ locked: boolean;
60
+ fromSelection: boolean;
61
+ } & import("../types").ActiveTool;
62
+ preferredSelectionTool: {
63
+ type: "selection" | "lasso";
64
+ initialized: boolean;
65
+ };
66
+ penMode: boolean;
67
+ penDetected: boolean;
68
+ exportBackground: boolean;
69
+ exportEmbedScene: boolean;
70
+ exportWithDarkMode: boolean;
71
+ exportScale: number;
72
+ currentItemStrokeColor: string;
73
+ currentItemBackgroundColor: string;
74
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
75
+ currentItemStrokeWidth: number;
76
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
77
+ currentItemRoughness: number;
78
+ currentItemOpacity: number;
79
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
80
+ currentItemFontSize: number;
81
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
82
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
83
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
84
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
85
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
86
+ currentItemArrowType: "sharp" | "round" | "elbow";
87
+ viewBackgroundColor: string;
88
+ scrollX: number;
89
+ scrollY: number;
90
+ cursorButton: "up" | "down";
91
+ scrolledOutside: boolean;
92
+ name: string | null;
93
+ isResizing: boolean;
94
+ isRotating: boolean;
95
+ zoom: import("../types").Zoom;
96
+ openMenu: "canvas" | null;
97
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
98
+ openSidebar: {
99
+ name: import("../types").SidebarName;
100
+ tab?: import("../types").SidebarTabName;
101
+ } | null;
102
+ openDialog: null | {
103
+ name: "imageExport" | "help" | "jsonExport";
104
+ } | {
105
+ name: "commandPalette";
106
+ } | {
107
+ name: "settings";
108
+ } | {
109
+ name: "elementLinkSelector";
110
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
111
+ } | {
112
+ name: "charts";
113
+ data: import("../charts").Spreadsheet;
114
+ rawText: string;
115
+ };
116
+ defaultSidebarDockedPreference: boolean;
117
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
118
+ selectedElementIds: Readonly<{
119
+ [id: string]: true;
120
+ }>;
121
+ hoveredElementIds: Readonly<{
122
+ [id: string]: true;
123
+ }>;
124
+ previousSelectedElementIds: {
125
+ [id: string]: true;
126
+ };
127
+ selectedElementsAreBeingDragged: boolean;
128
+ shouldCacheIgnoreZoom: boolean;
129
+ toast: {
130
+ message: React.ReactNode;
131
+ closable?: boolean;
132
+ duration?: number;
133
+ } | null;
134
+ zenModeEnabled: boolean;
135
+ theme: import("@excalidraw/element/types").Theme;
136
+ gridSize: number;
137
+ gridStep: number;
138
+ gridModeEnabled: boolean;
139
+ viewModeEnabled: boolean;
140
+ selectedGroupIds: {
141
+ [groupId: string]: boolean;
142
+ };
143
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
144
+ width: number;
145
+ height: number;
146
+ offsetTop: number;
147
+ offsetLeft: number;
148
+ fileHandle: FileSystemFileHandle | null;
149
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
150
+ stats: {
151
+ open: boolean;
152
+ panels: number;
153
+ };
154
+ showHyperlinkPopup: false | "info" | "editor";
155
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
156
+ snapLines: readonly import("../snapping").SnapLine[];
157
+ originSnapOffset: {
158
+ x: number;
159
+ y: number;
160
+ } | null;
161
+ objectsSnapModeEnabled: boolean;
162
+ userToFollow: import("../types").UserToFollow | null;
163
+ followedBy: Set<import("../types").SocketId>;
164
+ isCropping: boolean;
165
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
166
+ searchMatches: Readonly<{
167
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
168
+ matches: readonly import("../types").SearchMatch[];
169
+ }> | null;
170
+ activeLockedId: string | null;
171
+ lockedMultiSelections: {
172
+ [groupId: string]: true;
173
+ };
174
+ bindMode: import("@excalidraw/element/types").BindMode;
175
+ };
176
+ captureUpdate: "NEVER";
177
+ };
178
+ checked: (appState: Readonly<import("../types").AppState>) => boolean;
179
+ } & {
180
+ keyTest?: undefined;
181
+ };
@@ -40,8 +40,13 @@ export declare const actionToggleObjectsSnapMode: {
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: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
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 actionToggleObjectsSnapMode: {
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").NonDeletedExcalidrawElement | null;
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 actionToggleObjectsSnapMode: {
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 actionToggleObjectsSnapMode: {
121
130
  selectedElementsAreBeingDragged: boolean;
122
131
  shouldCacheIgnoreZoom: boolean;
123
132
  toast: {
124
- message: string;
133
+ message: React.ReactNode;
125
134
  closable?: boolean;
126
135
  duration?: number;
127
136
  } | null;
@@ -138,20 +147,12 @@ export declare const actionToggleObjectsSnapMode: {
138
147
  height: number;
139
148
  offsetTop: number;
140
149
  offsetLeft: number;
141
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
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[];
@@ -177,7 +178,7 @@ export declare const actionToggleObjectsSnapMode: {
177
178
  };
178
179
  checked: (appState: Readonly<import("../types").AppState>) => boolean;
179
180
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
180
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
181
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
181
182
  } & {
182
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
183
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
183
184
  };
@@ -46,8 +46,13 @@ export declare const actionToggleSearchMenu: {
46
46
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
47
47
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
48
  isBindingEnabled: boolean;
49
+ bindingPreference: "enabled" | "disabled";
50
+ isMidpointSnappingEnabled: boolean;
49
51
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
52
+ suggestedBinding: {
53
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
54
+ midPoint?: import("@excalidraw/math").GlobalPoint;
55
+ } | null;
51
56
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
52
57
  frameRendering: {
53
58
  enabled: boolean;
@@ -57,7 +62,7 @@ export declare const actionToggleSearchMenu: {
57
62
  };
58
63
  editingFrame: string | null;
59
64
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
60
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
65
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
61
66
  activeTool: {
62
67
  lastActiveTool: import("../types").ActiveTool | null;
63
68
  locked: boolean;
@@ -113,7 +118,7 @@ export declare const actionToggleSearchMenu: {
113
118
  selectedElementsAreBeingDragged: boolean;
114
119
  shouldCacheIgnoreZoom: boolean;
115
120
  toast: {
116
- message: string;
121
+ message: React.ReactNode;
117
122
  closable?: boolean;
118
123
  duration?: number;
119
124
  } | null;
@@ -131,20 +136,12 @@ export declare const actionToggleSearchMenu: {
131
136
  height: number;
132
137
  offsetTop: number;
133
138
  offsetLeft: number;
134
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
139
+ fileHandle: FileSystemFileHandle | null;
135
140
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
136
141
  stats: {
137
142
  open: boolean;
138
143
  panels: number;
139
144
  };
140
- currentChartType: import("@excalidraw/element/types").ChartType;
141
- pasteDialog: {
142
- shown: false;
143
- data: null;
144
- } | {
145
- shown: true;
146
- data: import("../charts").Spreadsheet;
147
- };
148
145
  showHyperlinkPopup: false | "info" | "editor";
149
146
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
150
147
  snapLines: readonly import("../snapping").SnapLine[];
@@ -171,7 +168,7 @@ export declare const actionToggleSearchMenu: {
171
168
  };
172
169
  checked: (appState: AppState) => boolean;
173
170
  predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
174
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
171
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
175
172
  } & {
176
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
173
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
177
174
  };
@@ -42,8 +42,13 @@ export declare const actionToggleStats: {
42
42
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
43
43
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
44
  isBindingEnabled: boolean;
45
+ bindingPreference: "enabled" | "disabled";
46
+ isMidpointSnappingEnabled: boolean;
45
47
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
46
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
48
+ suggestedBinding: {
49
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
50
+ midPoint?: import("@excalidraw/math").GlobalPoint;
51
+ } | null;
47
52
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
48
53
  frameRendering: {
49
54
  enabled: boolean;
@@ -53,7 +58,7 @@ export declare const actionToggleStats: {
53
58
  };
54
59
  editingFrame: string | null;
55
60
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
56
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
61
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
57
62
  activeTool: {
58
63
  lastActiveTool: import("../types").ActiveTool | null;
59
64
  locked: boolean;
@@ -108,6 +113,10 @@ export declare const actionToggleStats: {
108
113
  } | {
109
114
  name: "elementLinkSelector";
110
115
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
116
+ } | {
117
+ name: "charts";
118
+ data: import("../charts").Spreadsheet;
119
+ rawText: string;
111
120
  };
112
121
  defaultSidebarDockedPreference: boolean;
113
122
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -123,7 +132,7 @@ export declare const actionToggleStats: {
123
132
  selectedElementsAreBeingDragged: boolean;
124
133
  shouldCacheIgnoreZoom: boolean;
125
134
  toast: {
126
- message: string;
135
+ message: React.ReactNode;
127
136
  closable?: boolean;
128
137
  duration?: number;
129
138
  } | null;
@@ -141,16 +150,8 @@ export declare const actionToggleStats: {
141
150
  height: number;
142
151
  offsetTop: number;
143
152
  offsetLeft: number;
144
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
153
+ fileHandle: FileSystemFileHandle | null;
145
154
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
146
- currentChartType: import("@excalidraw/element/types").ChartType;
147
- pasteDialog: {
148
- shown: false;
149
- data: null;
150
- } | {
151
- shown: true;
152
- data: import("../charts").Spreadsheet;
153
- };
154
155
  showHyperlinkPopup: false | "info" | "editor";
155
156
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
156
157
  snapLines: readonly import("../snapping").SnapLine[];
@@ -176,7 +177,7 @@ export declare const actionToggleStats: {
176
177
  captureUpdate: "EVENTUALLY";
177
178
  };
178
179
  checked: (appState: Readonly<import("../types").AppState>) => boolean;
179
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
180
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
180
181
  } & {
181
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
182
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
182
183
  };
@@ -39,8 +39,13 @@ export declare const actionToggleViewMode: {
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: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
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 actionToggleViewMode: {
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").NonDeletedExcalidrawElement | null;
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 actionToggleViewMode: {
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 actionToggleViewMode: {
120
129
  selectedElementsAreBeingDragged: boolean;
121
130
  shouldCacheIgnoreZoom: boolean;
122
131
  toast: {
123
- message: string;
132
+ message: React.ReactNode;
124
133
  closable?: boolean;
125
134
  duration?: number;
126
135
  } | null;
@@ -137,20 +146,12 @@ export declare const actionToggleViewMode: {
137
146
  height: number;
138
147
  offsetTop: number;
139
148
  offsetLeft: number;
140
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
149
+ fileHandle: FileSystemFileHandle | null;
141
150
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
142
151
  stats: {
143
152
  open: boolean;
144
153
  panels: number;
145
154
  };
146
- currentChartType: import("@excalidraw/element/types").ChartType;
147
- pasteDialog: {
148
- shown: false;
149
- data: null;
150
- } | {
151
- shown: true;
152
- data: import("../charts").Spreadsheet;
153
- };
154
155
  showHyperlinkPopup: false | "info" | "editor";
155
156
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
156
157
  snapLines: readonly import("../snapping").SnapLine[];
@@ -177,8 +178,8 @@ export declare const actionToggleViewMode: {
177
178
  };
178
179
  checked: (appState: Readonly<import("../types").AppState>) => boolean;
179
180
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
180
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
181
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
181
182
  PanelComponent: ({ data, updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
182
183
  } & {
183
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
184
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
184
185
  };
@@ -39,8 +39,13 @@ export declare const actionToggleZenMode: {
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: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
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 actionToggleZenMode: {
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").NonDeletedExcalidrawElement | null;
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 actionToggleZenMode: {
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 actionToggleZenMode: {
120
129
  selectedElementsAreBeingDragged: boolean;
121
130
  shouldCacheIgnoreZoom: boolean;
122
131
  toast: {
123
- message: string;
132
+ message: React.ReactNode;
124
133
  closable?: boolean;
125
134
  duration?: number;
126
135
  } | null;
@@ -137,20 +146,12 @@ export declare const actionToggleZenMode: {
137
146
  height: number;
138
147
  offsetTop: number;
139
148
  offsetLeft: number;
140
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
149
+ fileHandle: FileSystemFileHandle | null;
141
150
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
142
151
  stats: {
143
152
  open: boolean;
144
153
  panels: number;
145
154
  };
146
- currentChartType: import("@excalidraw/element/types").ChartType;
147
- pasteDialog: {
148
- shown: false;
149
- data: null;
150
- } | {
151
- shown: true;
152
- data: import("../charts").Spreadsheet;
153
- };
154
155
  showHyperlinkPopup: false | "info" | "editor";
155
156
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
156
157
  snapLines: readonly import("../snapping").SnapLine[];
@@ -177,7 +178,7 @@ export declare const actionToggleZenMode: {
177
178
  };
178
179
  checked: (appState: Readonly<import("../types").AppState>) => boolean;
179
180
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
180
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
181
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
181
182
  } & {
182
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
183
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
183
184
  };