@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60

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 (199) hide show
  1. package/dist/excalidraw.development.js +757 -504
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1080 -437
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +15 -4
  7. package/types/common/src/commonObsidianUtils.d.ts +20 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +4 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +25 -6
  15. package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
  16. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  17. package/types/element/src/align.d.ts +4 -3
  18. package/types/element/src/binding.d.ts +62 -41
  19. package/types/element/src/bounds.d.ts +14 -6
  20. package/types/element/src/collision.d.ts +23 -13
  21. package/types/element/src/cropElement.d.ts +1 -1
  22. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  23. package/types/element/src/distance.d.ts +2 -2
  24. package/types/element/src/distribute.d.ts +2 -1
  25. package/types/element/src/dragElements.d.ts +3 -2
  26. package/types/element/src/duplicate.d.ts +10 -13
  27. package/types/element/src/elbowArrow.d.ts +1 -1
  28. package/types/element/src/flowchart.d.ts +3 -2
  29. package/types/element/src/fractionalIndex.d.ts +9 -3
  30. package/types/element/src/frame.d.ts +5 -4
  31. package/types/element/src/groups.d.ts +1 -0
  32. package/types/element/src/index.d.ts +44 -5
  33. package/types/element/src/linearElementEditor.d.ts +34 -50
  34. package/types/element/src/mutateElement.d.ts +11 -3
  35. package/types/element/src/newElement.d.ts +6 -4
  36. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  37. package/types/element/src/renderElement.d.ts +5 -2
  38. package/types/element/src/resizeElements.d.ts +6 -5
  39. package/types/element/src/resizeTest.d.ts +5 -4
  40. package/types/element/src/selection.d.ts +11 -5
  41. package/types/element/src/shape.d.ts +42 -0
  42. package/types/element/src/sizeHelpers.d.ts +2 -2
  43. package/types/element/src/store.d.ts +237 -0
  44. package/types/element/src/textElement.d.ts +4 -3
  45. package/types/element/src/transformHandles.d.ts +5 -4
  46. package/types/element/src/typeChecks.d.ts +20 -3
  47. package/types/element/src/types.d.ts +31 -12
  48. package/types/element/src/utils.d.ts +17 -6
  49. package/types/element/src/zindex.d.ts +8 -2
  50. package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
  51. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  52. package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
  53. package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
  54. package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
  55. package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
  56. package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
  57. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  58. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  59. package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
  60. package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
  61. package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
  62. package/types/excalidraw/actions/actionExport.d.ts +142 -1185
  63. package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
  64. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  65. package/types/excalidraw/actions/actionFrame.d.ts +176 -129
  66. package/types/excalidraw/actions/actionGroup.d.ts +60 -40
  67. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  68. package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
  69. package/types/excalidraw/actions/actionLink.d.ts +27 -17
  70. package/types/excalidraw/actions/actionMenu.d.ts +27 -457
  71. package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
  72. package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
  73. package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
  74. package/types/excalidraw/actions/actionStyles.d.ts +31 -21
  75. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  76. package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
  77. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
  78. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
  79. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  80. package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
  81. package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
  82. package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
  83. package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
  84. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  85. package/types/excalidraw/actions/index.d.ts +4 -2
  86. package/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/types/excalidraw/actions/register.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +7 -6
  89. package/types/excalidraw/appState.d.ts +22 -7
  90. package/types/excalidraw/clipboard.d.ts +68 -5
  91. package/types/excalidraw/components/Actions.d.ts +20 -7
  92. package/types/excalidraw/components/App.d.ts +68 -46
  93. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  94. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  95. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  96. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  97. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  98. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  99. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  100. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  101. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  104. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  105. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  106. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  107. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  108. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  109. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  110. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  111. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  112. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  113. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  114. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  115. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  116. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  117. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  118. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  119. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  120. package/types/excalidraw/components/Popover.d.ts +2 -1
  121. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  122. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  123. package/types/excalidraw/components/Range.d.ts +3 -3
  124. package/types/excalidraw/components/Section.d.ts +1 -0
  125. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  129. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  130. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  131. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  132. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  133. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  134. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  135. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  136. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  137. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  138. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  139. package/types/excalidraw/components/TextField.d.ts +1 -0
  140. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  141. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  142. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  143. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  144. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  145. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  146. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  147. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  148. package/types/excalidraw/components/icons.d.ts +17 -0
  149. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  150. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  151. package/types/excalidraw/components/shapes.d.ts +115 -5
  152. package/types/excalidraw/data/blob.d.ts +3 -7
  153. package/types/excalidraw/data/reconcile.d.ts +1 -0
  154. package/types/excalidraw/data/restore.d.ts +7 -2
  155. package/types/excalidraw/data/transform.d.ts +1 -1
  156. package/types/excalidraw/data/types.d.ts +4 -1
  157. package/types/excalidraw/editor-jotai.d.ts +6 -6
  158. package/types/excalidraw/eraser/index.d.ts +0 -2
  159. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  160. package/types/excalidraw/history.d.ts +30 -22
  161. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  162. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  163. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  164. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  165. package/types/excalidraw/index.d.ts +16 -15
  166. package/types/excalidraw/lasso/index.d.ts +1 -0
  167. package/types/excalidraw/lasso/utils.d.ts +2 -1
  168. package/types/excalidraw/obsidianUtils.d.ts +22 -9
  169. package/types/excalidraw/renderer/animation.d.ts +12 -0
  170. package/types/excalidraw/renderer/helpers.d.ts +3 -2
  171. package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  172. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  173. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  174. package/types/excalidraw/scene/index.d.ts +2 -2
  175. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  176. package/types/excalidraw/scene/types.d.ts +17 -3
  177. package/types/excalidraw/shortcut.d.ts +1 -0
  178. package/types/excalidraw/snapping.d.ts +2 -2
  179. package/types/excalidraw/types.d.ts +83 -33
  180. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  181. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  182. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  183. package/types/math/src/angle.d.ts +2 -0
  184. package/types/math/src/constants.d.ts +3 -0
  185. package/types/math/src/curve.d.ts +34 -0
  186. package/types/math/src/index.d.ts +1 -0
  187. package/types/math/src/point.d.ts +1 -1
  188. package/types/math/src/rectangle.d.ts +2 -0
  189. package/types/math/src/segment.d.ts +1 -0
  190. package/types/math/src/vector.d.ts +8 -2
  191. package/types/utils/src/bbox.d.ts +1 -1
  192. package/types/utils/src/index.d.ts +1 -1
  193. package/types/utils/src/withinBounds.d.ts +1 -1
  194. package/types/element/src/Shape.d.ts +0 -17
  195. package/types/element/src/ShapeCache.d.ts +0 -25
  196. package/types/element/src/shapes.d.ts +0 -23
  197. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  198. package/types/excalidraw/store.d.ts +0 -129
  199. package/types/utils/src/collision.d.ts +0 -8
@@ -1,18 +1,8 @@
1
- import { type SceneBounds } from "@excalidraw/element/bounds";
1
+ import { type SceneBounds } from "@excalidraw/element";
2
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
3
  import type { AppClassProperties, AppState, Offsets } from "../types";
4
- export declare const actionChangeViewBackgroundColor: {
5
- name: "changeViewBackgroundColor";
6
- label: string;
7
- trackEvent: false;
8
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
9
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
10
- appState: any;
11
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
12
- };
13
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
14
- } & {
15
- keyTest?: undefined;
4
+ export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
5
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
16
6
  };
17
7
  export declare const actionClearCanvas: {
18
8
  name: "clearCanvas";
@@ -22,7 +12,7 @@ export declare const actionClearCanvas: {
22
12
  category: "canvas";
23
13
  };
24
14
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
25
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
15
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
26
16
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
27
17
  appState: {
28
18
  files: {};
@@ -60,9 +50,9 @@ export declare const actionClearCanvas: {
60
50
  elementBackground: [string, string, string, string, string];
61
51
  };
62
52
  } | undefined;
63
- trayModeEnabled: boolean;
64
53
  allowPinchZoom: boolean | undefined;
65
54
  allowWheelZoom: boolean | undefined;
55
+ disableContextMenu: boolean;
66
56
  pinnedScripts: string[] | undefined;
67
57
  customPens: any[] | undefined;
68
58
  viewBackgroundColor: string;
@@ -71,6 +61,8 @@ export declare const actionClearCanvas: {
71
61
  name: boolean;
72
62
  outline: boolean;
73
63
  clip: boolean;
64
+ markerName: boolean;
65
+ markerEnabled: boolean;
74
66
  };
75
67
  frameColor: {
76
68
  stroke: string;
@@ -85,12 +77,14 @@ export declare const actionClearCanvas: {
85
77
  scrollY: number;
86
78
  viewModeEnabled: boolean;
87
79
  openDialog: {
88
- name: "help" | "imageExport" | "jsonExport";
80
+ name: "imageExport" | "help" | "jsonExport";
89
81
  } | {
90
82
  name: "ttd";
91
83
  tab: "mermaid" | "text-to-diagram";
92
84
  } | {
93
85
  name: "commandPalette";
86
+ } | {
87
+ name: "settings";
94
88
  } | {
95
89
  name: "elementLinkSelector";
96
90
  sourceElementId: string;
@@ -100,20 +94,19 @@ export declare const actionClearCanvas: {
100
94
  [id: string]: true;
101
95
  }>;
102
96
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
103
- pendingImageElementId: string | null;
104
97
  activeEmbeddable: {
105
98
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
106
99
  state: "active" | "hover";
107
100
  } | null;
108
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
109
101
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
110
102
  selectedGroupIds: {
111
103
  [groupId: string]: boolean;
112
104
  };
113
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
105
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
114
106
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
107
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
115
108
  isBindingEnabled: boolean;
116
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
109
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
117
110
  isRotating: boolean;
118
111
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
119
112
  collaborators: Map<import("../types").SocketId, Readonly<{
@@ -143,28 +136,24 @@ export declare const actionClearCanvas: {
143
136
  Bold: string;
144
137
  Regular: string;
145
138
  };
139
+ gridDirection: {
140
+ horizontal: boolean;
141
+ vertical: boolean;
142
+ };
146
143
  highlightSearchResult: boolean;
147
144
  isCropping: boolean;
148
145
  croppingElementId: string | null;
149
- searchMatches: readonly {
150
- id: string;
151
- focus: boolean;
152
- matchedLines: {
153
- offsetX: number;
154
- offsetY: number;
155
- width: number;
156
- height: number;
157
- }[];
158
- }[];
159
- objectsSnapModeEnabled: boolean;
160
- shouldCacheIgnoreZoom: boolean;
161
- exportScale: number;
162
- selectedElementsAreBeingDragged: boolean;
163
- linkOpacity: number;
164
- currentHoveredFontFamily: number | null;
146
+ searchMatches: Readonly<{
147
+ focusedId: string | null;
148
+ matches: readonly import("../types").SearchMatch[];
149
+ }> | null;
150
+ activeLockedId: string | null;
165
151
  hoveredElementIds: Readonly<{
166
152
  [id: string]: true;
167
153
  }>;
154
+ shouldCacheIgnoreZoom: boolean;
155
+ exportScale: number;
156
+ bindMode: import("@excalidraw/element/types").BindMode;
168
157
  contextMenu: {
169
158
  items: import("../components/ContextMenu").ContextMenuItems;
170
159
  top: number;
@@ -173,10 +162,13 @@ export declare const actionClearCanvas: {
173
162
  showWelcomeScreen: boolean;
174
163
  isLoading: boolean;
175
164
  errorMessage: import("react").ReactNode;
176
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
177
165
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
178
166
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
179
167
  editingFrame: string | null;
168
+ preferredSelectionTool: {
169
+ type: "selection" | "lasso";
170
+ initialized: boolean;
171
+ };
180
172
  exportWithDarkMode: boolean;
181
173
  currentItemStrokeColor: string;
182
174
  currentItemBackgroundColor: string;
@@ -190,13 +182,15 @@ export declare const actionClearCanvas: {
190
182
  currentItemTextAlign: string;
191
183
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
192
184
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
185
+ currentHoveredFontFamily: number | null;
193
186
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
194
187
  currentItemArrowType: "round" | "sharp" | "elbow";
188
+ currentItemFrameRole: ("marker" | null) | undefined;
195
189
  cursorButton: "up" | "down";
196
190
  scrolledOutside: boolean;
197
191
  isResizing: boolean;
198
- openMenu: "shape" | "canvas" | null;
199
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
192
+ openMenu: "canvas" | "shape" | null;
193
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
200
194
  openSidebar: {
201
195
  name: string;
202
196
  tab?: string | undefined;
@@ -206,6 +200,7 @@ export declare const actionClearCanvas: {
206
200
  previousSelectedElementIds: {
207
201
  [id: string]: true;
208
202
  };
203
+ selectedElementsAreBeingDragged: boolean;
209
204
  toast: {
210
205
  message: string;
211
206
  closable?: boolean | undefined;
@@ -213,7 +208,8 @@ export declare const actionClearCanvas: {
213
208
  } | null;
214
209
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
215
210
  currentChartType: import("@excalidraw/element/types").ChartType;
216
- showHyperlinkPopup: false | "editor" | "info";
211
+ showHyperlinkPopup: false | "info" | "editor";
212
+ linkOpacity: number;
217
213
  currentStrokeOptions?: any;
218
214
  resetCustomPen?: any;
219
215
  dynamicStyle: {
@@ -224,8 +220,12 @@ export declare const actionClearCanvas: {
224
220
  x: number;
225
221
  y: number;
226
222
  } | null;
223
+ objectsSnapModeEnabled: boolean;
227
224
  userToFollow: import("../types").UserToFollow | null;
228
225
  followedBy: Set<import("../types").SocketId>;
226
+ lockedMultiSelections: {
227
+ [groupId: string]: true;
228
+ };
229
229
  };
230
230
  captureUpdate: "IMMEDIATELY";
231
231
  };
@@ -240,7 +240,7 @@ export declare const actionZoomIn: {
240
240
  trackEvent: {
241
241
  category: "canvas";
242
242
  };
243
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
243
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
244
244
  appState: {
245
245
  userToFollow: null;
246
246
  scrollX: number;
@@ -266,23 +266,28 @@ export declare const actionZoomIn: {
266
266
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
267
267
  isBindingEnabled: boolean;
268
268
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
269
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
269
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
270
270
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
271
271
  frameRendering: {
272
272
  enabled: boolean;
273
273
  name: boolean;
274
274
  outline: boolean;
275
275
  clip: boolean;
276
+ markerName: boolean;
277
+ markerEnabled: boolean;
276
278
  };
277
279
  editingFrame: string | null;
278
280
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
279
281
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
280
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
281
282
  activeTool: {
282
283
  lastActiveTool: import("../types").ActiveTool | null;
283
284
  locked: boolean;
284
285
  fromSelection: boolean;
285
286
  } & import("../types").ActiveTool;
287
+ preferredSelectionTool: {
288
+ type: "selection" | "lasso";
289
+ initialized: boolean;
290
+ };
286
291
  penMode: boolean;
287
292
  penDetected: boolean;
288
293
  exportBackground: boolean;
@@ -304,25 +309,28 @@ export declare const actionZoomIn: {
304
309
  currentHoveredFontFamily: number | null;
305
310
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
306
311
  currentItemArrowType: "round" | "sharp" | "elbow";
312
+ currentItemFrameRole: ("marker" | null) | undefined;
307
313
  viewBackgroundColor: string;
308
314
  cursorButton: "up" | "down";
309
315
  scrolledOutside: boolean;
310
316
  name: string | null;
311
317
  isResizing: boolean;
312
318
  isRotating: boolean;
313
- openMenu: "shape" | "canvas" | null;
314
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
319
+ openMenu: "canvas" | "shape" | null;
320
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
315
321
  openSidebar: {
316
322
  name: string;
317
323
  tab?: string | undefined;
318
324
  } | null;
319
325
  openDialog: {
320
- name: "help" | "imageExport" | "jsonExport";
326
+ name: "imageExport" | "help" | "jsonExport";
321
327
  } | {
322
328
  name: "ttd";
323
329
  tab: "mermaid" | "text-to-diagram";
324
330
  } | {
325
331
  name: "commandPalette";
332
+ } | {
333
+ name: "settings";
326
334
  } | {
327
335
  name: "elementLinkSelector";
328
336
  sourceElementId: string;
@@ -392,10 +400,8 @@ export declare const actionZoomIn: {
392
400
  shown: true;
393
401
  data: import("../charts").Spreadsheet;
394
402
  };
395
- pendingImageElementId: string | null;
396
- showHyperlinkPopup: false | "editor" | "info";
403
+ showHyperlinkPopup: false | "info" | "editor";
397
404
  linkOpacity: number;
398
- trayModeEnabled: boolean;
399
405
  colorPalette?: {
400
406
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
401
407
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -408,6 +414,7 @@ export declare const actionZoomIn: {
408
414
  } | undefined;
409
415
  allowWheelZoom?: boolean | undefined;
410
416
  allowPinchZoom?: boolean | undefined;
417
+ disableContextMenu: boolean;
411
418
  pinnedScripts?: string[] | undefined;
412
419
  customPens?: any[] | undefined;
413
420
  currentStrokeOptions?: any;
@@ -416,6 +423,10 @@ export declare const actionZoomIn: {
416
423
  Bold: string;
417
424
  Regular: string;
418
425
  };
426
+ gridDirection: {
427
+ horizontal: boolean;
428
+ vertical: boolean;
429
+ };
419
430
  highlightSearchResult: boolean;
420
431
  dynamicStyle: {
421
432
  [x: string]: string;
@@ -426,7 +437,7 @@ export declare const actionZoomIn: {
426
437
  nameColor: string;
427
438
  };
428
439
  invertBindingBehaviour: boolean;
429
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
440
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
430
441
  snapLines: readonly import("../snapping").SnapLine[];
431
442
  originSnapOffset: {
432
443
  x: number;
@@ -436,16 +447,15 @@ export declare const actionZoomIn: {
436
447
  followedBy: Set<import("../types").SocketId>;
437
448
  isCropping: boolean;
438
449
  croppingElementId: string | null;
439
- searchMatches: readonly {
440
- id: string;
441
- focus: boolean;
442
- matchedLines: {
443
- offsetX: number;
444
- offsetY: number;
445
- width: number;
446
- height: number;
447
- }[];
448
- }[];
450
+ searchMatches: Readonly<{
451
+ focusedId: string | null;
452
+ matches: readonly import("../types").SearchMatch[];
453
+ }> | null;
454
+ activeLockedId: string | null;
455
+ lockedMultiSelections: {
456
+ [groupId: string]: true;
457
+ };
458
+ bindMode: import("@excalidraw/element/types").BindMode;
449
459
  };
450
460
  captureUpdate: "EVENTUALLY";
451
461
  };
@@ -462,7 +472,7 @@ export declare const actionZoomOut: {
462
472
  trackEvent: {
463
473
  category: "canvas";
464
474
  };
465
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
475
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
466
476
  appState: {
467
477
  userToFollow: null;
468
478
  scrollX: number;
@@ -488,23 +498,28 @@ export declare const actionZoomOut: {
488
498
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
489
499
  isBindingEnabled: boolean;
490
500
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
491
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
501
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
492
502
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
493
503
  frameRendering: {
494
504
  enabled: boolean;
495
505
  name: boolean;
496
506
  outline: boolean;
497
507
  clip: boolean;
508
+ markerName: boolean;
509
+ markerEnabled: boolean;
498
510
  };
499
511
  editingFrame: string | null;
500
512
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
501
513
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
502
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
503
514
  activeTool: {
504
515
  lastActiveTool: import("../types").ActiveTool | null;
505
516
  locked: boolean;
506
517
  fromSelection: boolean;
507
518
  } & import("../types").ActiveTool;
519
+ preferredSelectionTool: {
520
+ type: "selection" | "lasso";
521
+ initialized: boolean;
522
+ };
508
523
  penMode: boolean;
509
524
  penDetected: boolean;
510
525
  exportBackground: boolean;
@@ -526,25 +541,28 @@ export declare const actionZoomOut: {
526
541
  currentHoveredFontFamily: number | null;
527
542
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
528
543
  currentItemArrowType: "round" | "sharp" | "elbow";
544
+ currentItemFrameRole: ("marker" | null) | undefined;
529
545
  viewBackgroundColor: string;
530
546
  cursorButton: "up" | "down";
531
547
  scrolledOutside: boolean;
532
548
  name: string | null;
533
549
  isResizing: boolean;
534
550
  isRotating: boolean;
535
- openMenu: "shape" | "canvas" | null;
536
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
551
+ openMenu: "canvas" | "shape" | null;
552
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
537
553
  openSidebar: {
538
554
  name: string;
539
555
  tab?: string | undefined;
540
556
  } | null;
541
557
  openDialog: {
542
- name: "help" | "imageExport" | "jsonExport";
558
+ name: "imageExport" | "help" | "jsonExport";
543
559
  } | {
544
560
  name: "ttd";
545
561
  tab: "mermaid" | "text-to-diagram";
546
562
  } | {
547
563
  name: "commandPalette";
564
+ } | {
565
+ name: "settings";
548
566
  } | {
549
567
  name: "elementLinkSelector";
550
568
  sourceElementId: string;
@@ -614,10 +632,8 @@ export declare const actionZoomOut: {
614
632
  shown: true;
615
633
  data: import("../charts").Spreadsheet;
616
634
  };
617
- pendingImageElementId: string | null;
618
- showHyperlinkPopup: false | "editor" | "info";
635
+ showHyperlinkPopup: false | "info" | "editor";
619
636
  linkOpacity: number;
620
- trayModeEnabled: boolean;
621
637
  colorPalette?: {
622
638
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
623
639
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -630,6 +646,7 @@ export declare const actionZoomOut: {
630
646
  } | undefined;
631
647
  allowWheelZoom?: boolean | undefined;
632
648
  allowPinchZoom?: boolean | undefined;
649
+ disableContextMenu: boolean;
633
650
  pinnedScripts?: string[] | undefined;
634
651
  customPens?: any[] | undefined;
635
652
  currentStrokeOptions?: any;
@@ -638,6 +655,10 @@ export declare const actionZoomOut: {
638
655
  Bold: string;
639
656
  Regular: string;
640
657
  };
658
+ gridDirection: {
659
+ horizontal: boolean;
660
+ vertical: boolean;
661
+ };
641
662
  highlightSearchResult: boolean;
642
663
  dynamicStyle: {
643
664
  [x: string]: string;
@@ -648,7 +669,7 @@ export declare const actionZoomOut: {
648
669
  nameColor: string;
649
670
  };
650
671
  invertBindingBehaviour: boolean;
651
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
672
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
652
673
  snapLines: readonly import("../snapping").SnapLine[];
653
674
  originSnapOffset: {
654
675
  x: number;
@@ -658,16 +679,15 @@ export declare const actionZoomOut: {
658
679
  followedBy: Set<import("../types").SocketId>;
659
680
  isCropping: boolean;
660
681
  croppingElementId: string | null;
661
- searchMatches: readonly {
662
- id: string;
663
- focus: boolean;
664
- matchedLines: {
665
- offsetX: number;
666
- offsetY: number;
667
- width: number;
668
- height: number;
669
- }[];
670
- }[];
682
+ searchMatches: Readonly<{
683
+ focusedId: string | null;
684
+ matches: readonly import("../types").SearchMatch[];
685
+ }> | null;
686
+ activeLockedId: string | null;
687
+ lockedMultiSelections: {
688
+ [groupId: string]: true;
689
+ };
690
+ bindMode: import("@excalidraw/element/types").BindMode;
671
691
  };
672
692
  captureUpdate: "EVENTUALLY";
673
693
  };
@@ -684,7 +704,7 @@ export declare const actionResetZoom: {
684
704
  trackEvent: {
685
705
  category: "canvas";
686
706
  };
687
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
707
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
688
708
  appState: {
689
709
  userToFollow: null;
690
710
  scrollX: number;
@@ -710,23 +730,28 @@ export declare const actionResetZoom: {
710
730
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
711
731
  isBindingEnabled: boolean;
712
732
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
713
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
733
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
714
734
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
715
735
  frameRendering: {
716
736
  enabled: boolean;
717
737
  name: boolean;
718
738
  outline: boolean;
719
739
  clip: boolean;
740
+ markerName: boolean;
741
+ markerEnabled: boolean;
720
742
  };
721
743
  editingFrame: string | null;
722
744
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
723
745
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
724
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
725
746
  activeTool: {
726
747
  lastActiveTool: import("../types").ActiveTool | null;
727
748
  locked: boolean;
728
749
  fromSelection: boolean;
729
750
  } & import("../types").ActiveTool;
751
+ preferredSelectionTool: {
752
+ type: "selection" | "lasso";
753
+ initialized: boolean;
754
+ };
730
755
  penMode: boolean;
731
756
  penDetected: boolean;
732
757
  exportBackground: boolean;
@@ -748,25 +773,28 @@ export declare const actionResetZoom: {
748
773
  currentHoveredFontFamily: number | null;
749
774
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
750
775
  currentItemArrowType: "round" | "sharp" | "elbow";
776
+ currentItemFrameRole: ("marker" | null) | undefined;
751
777
  viewBackgroundColor: string;
752
778
  cursorButton: "up" | "down";
753
779
  scrolledOutside: boolean;
754
780
  name: string | null;
755
781
  isResizing: boolean;
756
782
  isRotating: boolean;
757
- openMenu: "shape" | "canvas" | null;
758
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
783
+ openMenu: "canvas" | "shape" | null;
784
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
759
785
  openSidebar: {
760
786
  name: string;
761
787
  tab?: string | undefined;
762
788
  } | null;
763
789
  openDialog: {
764
- name: "help" | "imageExport" | "jsonExport";
790
+ name: "imageExport" | "help" | "jsonExport";
765
791
  } | {
766
792
  name: "ttd";
767
793
  tab: "mermaid" | "text-to-diagram";
768
794
  } | {
769
795
  name: "commandPalette";
796
+ } | {
797
+ name: "settings";
770
798
  } | {
771
799
  name: "elementLinkSelector";
772
800
  sourceElementId: string;
@@ -836,10 +864,8 @@ export declare const actionResetZoom: {
836
864
  shown: true;
837
865
  data: import("../charts").Spreadsheet;
838
866
  };
839
- pendingImageElementId: string | null;
840
- showHyperlinkPopup: false | "editor" | "info";
867
+ showHyperlinkPopup: false | "info" | "editor";
841
868
  linkOpacity: number;
842
- trayModeEnabled: boolean;
843
869
  colorPalette?: {
844
870
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
845
871
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -852,6 +878,7 @@ export declare const actionResetZoom: {
852
878
  } | undefined;
853
879
  allowWheelZoom?: boolean | undefined;
854
880
  allowPinchZoom?: boolean | undefined;
881
+ disableContextMenu: boolean;
855
882
  pinnedScripts?: string[] | undefined;
856
883
  customPens?: any[] | undefined;
857
884
  currentStrokeOptions?: any;
@@ -860,6 +887,10 @@ export declare const actionResetZoom: {
860
887
  Bold: string;
861
888
  Regular: string;
862
889
  };
890
+ gridDirection: {
891
+ horizontal: boolean;
892
+ vertical: boolean;
893
+ };
863
894
  highlightSearchResult: boolean;
864
895
  dynamicStyle: {
865
896
  [x: string]: string;
@@ -870,7 +901,7 @@ export declare const actionResetZoom: {
870
901
  nameColor: string;
871
902
  };
872
903
  invertBindingBehaviour: boolean;
873
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
904
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
874
905
  snapLines: readonly import("../snapping").SnapLine[];
875
906
  originSnapOffset: {
876
907
  x: number;
@@ -880,16 +911,15 @@ export declare const actionResetZoom: {
880
911
  followedBy: Set<import("../types").SocketId>;
881
912
  isCropping: boolean;
882
913
  croppingElementId: string | null;
883
- searchMatches: readonly {
884
- id: string;
885
- focus: boolean;
886
- matchedLines: {
887
- offsetX: number;
888
- offsetY: number;
889
- width: number;
890
- height: number;
891
- }[];
892
- }[];
914
+ searchMatches: Readonly<{
915
+ focusedId: string | null;
916
+ matches: readonly import("../types").SearchMatch[];
917
+ }> | null;
918
+ activeLockedId: string | null;
919
+ lockedMultiSelections: {
920
+ [groupId: string]: true;
921
+ };
922
+ bindMode: import("@excalidraw/element/types").BindMode;
893
923
  };
894
924
  captureUpdate: "EVENTUALLY";
895
925
  };
@@ -938,23 +968,28 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
938
968
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
939
969
  isBindingEnabled: boolean;
940
970
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
941
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
971
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
942
972
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
943
973
  frameRendering: {
944
974
  enabled: boolean;
945
975
  name: boolean;
946
976
  outline: boolean;
947
977
  clip: boolean;
978
+ markerName: boolean;
979
+ markerEnabled: boolean;
948
980
  };
949
981
  editingFrame: string | null;
950
982
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
951
983
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
952
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
953
984
  activeTool: {
954
985
  lastActiveTool: import("../types").ActiveTool | null;
955
986
  locked: boolean;
956
987
  fromSelection: boolean;
957
988
  } & import("../types").ActiveTool;
989
+ preferredSelectionTool: {
990
+ type: "selection" | "lasso";
991
+ initialized: boolean;
992
+ };
958
993
  penMode: boolean;
959
994
  penDetected: boolean;
960
995
  exportBackground: boolean;
@@ -976,25 +1011,28 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
976
1011
  currentHoveredFontFamily: number | null;
977
1012
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
978
1013
  currentItemArrowType: "round" | "sharp" | "elbow";
1014
+ currentItemFrameRole: ("marker" | null) | undefined;
979
1015
  viewBackgroundColor: string;
980
1016
  cursorButton: "up" | "down";
981
1017
  scrolledOutside: boolean;
982
1018
  name: string | null;
983
1019
  isResizing: boolean;
984
1020
  isRotating: boolean;
985
- openMenu: "shape" | "canvas" | null;
986
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1021
+ openMenu: "canvas" | "shape" | null;
1022
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
987
1023
  openSidebar: {
988
1024
  name: string;
989
1025
  tab?: string | undefined;
990
1026
  } | null;
991
1027
  openDialog: {
992
- name: "help" | "imageExport" | "jsonExport";
1028
+ name: "imageExport" | "help" | "jsonExport";
993
1029
  } | {
994
1030
  name: "ttd";
995
1031
  tab: "mermaid" | "text-to-diagram";
996
1032
  } | {
997
1033
  name: "commandPalette";
1034
+ } | {
1035
+ name: "settings";
998
1036
  } | {
999
1037
  name: "elementLinkSelector";
1000
1038
  sourceElementId: string;
@@ -1064,10 +1102,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1064
1102
  shown: true;
1065
1103
  data: import("../charts").Spreadsheet;
1066
1104
  };
1067
- pendingImageElementId: string | null;
1068
- showHyperlinkPopup: false | "editor" | "info";
1105
+ showHyperlinkPopup: false | "info" | "editor";
1069
1106
  linkOpacity: number;
1070
- trayModeEnabled: boolean;
1071
1107
  colorPalette?: {
1072
1108
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1073
1109
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1080,6 +1116,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1080
1116
  } | undefined;
1081
1117
  allowWheelZoom?: boolean | undefined;
1082
1118
  allowPinchZoom?: boolean | undefined;
1119
+ disableContextMenu: boolean;
1083
1120
  pinnedScripts?: string[] | undefined;
1084
1121
  customPens?: any[] | undefined;
1085
1122
  currentStrokeOptions?: any;
@@ -1088,6 +1125,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1088
1125
  Bold: string;
1089
1126
  Regular: string;
1090
1127
  };
1128
+ gridDirection: {
1129
+ horizontal: boolean;
1130
+ vertical: boolean;
1131
+ };
1091
1132
  highlightSearchResult: boolean;
1092
1133
  dynamicStyle: {
1093
1134
  [x: string]: string;
@@ -1098,7 +1139,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1098
1139
  nameColor: string;
1099
1140
  };
1100
1141
  invertBindingBehaviour: boolean;
1101
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1142
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1102
1143
  snapLines: readonly import("../snapping").SnapLine[];
1103
1144
  originSnapOffset: {
1104
1145
  x: number;
@@ -1109,16 +1150,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1109
1150
  followedBy: Set<import("../types").SocketId>;
1110
1151
  isCropping: boolean;
1111
1152
  croppingElementId: string | null;
1112
- searchMatches: readonly {
1113
- id: string;
1114
- focus: boolean;
1115
- matchedLines: {
1116
- offsetX: number;
1117
- offsetY: number;
1118
- width: number;
1119
- height: number;
1120
- }[];
1121
- }[];
1153
+ searchMatches: Readonly<{
1154
+ focusedId: string | null;
1155
+ matches: readonly import("../types").SearchMatch[];
1156
+ }> | null;
1157
+ activeLockedId: string | null;
1158
+ lockedMultiSelections: {
1159
+ [groupId: string]: true;
1160
+ };
1161
+ bindMode: import("@excalidraw/element/types").BindMode;
1122
1162
  };
1123
1163
  captureUpdate: "EVENTUALLY";
1124
1164
  };
@@ -1162,23 +1202,28 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1162
1202
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1163
1203
  isBindingEnabled: boolean;
1164
1204
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1165
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1205
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1166
1206
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1167
1207
  frameRendering: {
1168
1208
  enabled: boolean;
1169
1209
  name: boolean;
1170
1210
  outline: boolean;
1171
1211
  clip: boolean;
1212
+ markerName: boolean;
1213
+ markerEnabled: boolean;
1172
1214
  };
1173
1215
  editingFrame: string | null;
1174
1216
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1175
1217
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1176
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1177
1218
  activeTool: {
1178
1219
  lastActiveTool: import("../types").ActiveTool | null;
1179
1220
  locked: boolean;
1180
1221
  fromSelection: boolean;
1181
1222
  } & import("../types").ActiveTool;
1223
+ preferredSelectionTool: {
1224
+ type: "selection" | "lasso";
1225
+ initialized: boolean;
1226
+ };
1182
1227
  penMode: boolean;
1183
1228
  penDetected: boolean;
1184
1229
  exportBackground: boolean;
@@ -1200,25 +1245,28 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1200
1245
  currentHoveredFontFamily: number | null;
1201
1246
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1202
1247
  currentItemArrowType: "round" | "sharp" | "elbow";
1248
+ currentItemFrameRole: ("marker" | null) | undefined;
1203
1249
  viewBackgroundColor: string;
1204
1250
  cursorButton: "up" | "down";
1205
1251
  scrolledOutside: boolean;
1206
1252
  name: string | null;
1207
1253
  isResizing: boolean;
1208
1254
  isRotating: boolean;
1209
- openMenu: "shape" | "canvas" | null;
1210
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1255
+ openMenu: "canvas" | "shape" | null;
1256
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1211
1257
  openSidebar: {
1212
1258
  name: string;
1213
1259
  tab?: string | undefined;
1214
1260
  } | null;
1215
1261
  openDialog: {
1216
- name: "help" | "imageExport" | "jsonExport";
1262
+ name: "imageExport" | "help" | "jsonExport";
1217
1263
  } | {
1218
1264
  name: "ttd";
1219
1265
  tab: "mermaid" | "text-to-diagram";
1220
1266
  } | {
1221
1267
  name: "commandPalette";
1268
+ } | {
1269
+ name: "settings";
1222
1270
  } | {
1223
1271
  name: "elementLinkSelector";
1224
1272
  sourceElementId: string;
@@ -1288,10 +1336,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1288
1336
  shown: true;
1289
1337
  data: import("../charts").Spreadsheet;
1290
1338
  };
1291
- pendingImageElementId: string | null;
1292
- showHyperlinkPopup: false | "editor" | "info";
1339
+ showHyperlinkPopup: false | "info" | "editor";
1293
1340
  linkOpacity: number;
1294
- trayModeEnabled: boolean;
1295
1341
  colorPalette?: {
1296
1342
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1297
1343
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1304,6 +1350,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1304
1350
  } | undefined;
1305
1351
  allowWheelZoom?: boolean | undefined;
1306
1352
  allowPinchZoom?: boolean | undefined;
1353
+ disableContextMenu: boolean;
1307
1354
  pinnedScripts?: string[] | undefined;
1308
1355
  customPens?: any[] | undefined;
1309
1356
  currentStrokeOptions?: any;
@@ -1312,6 +1359,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1312
1359
  Bold: string;
1313
1360
  Regular: string;
1314
1361
  };
1362
+ gridDirection: {
1363
+ horizontal: boolean;
1364
+ vertical: boolean;
1365
+ };
1315
1366
  highlightSearchResult: boolean;
1316
1367
  dynamicStyle: {
1317
1368
  [x: string]: string;
@@ -1322,7 +1373,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1322
1373
  nameColor: string;
1323
1374
  };
1324
1375
  invertBindingBehaviour: boolean;
1325
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1376
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1326
1377
  snapLines: readonly import("../snapping").SnapLine[];
1327
1378
  originSnapOffset: {
1328
1379
  x: number;
@@ -1333,16 +1384,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1333
1384
  followedBy: Set<import("../types").SocketId>;
1334
1385
  isCropping: boolean;
1335
1386
  croppingElementId: string | null;
1336
- searchMatches: readonly {
1337
- id: string;
1338
- focus: boolean;
1339
- matchedLines: {
1340
- offsetX: number;
1341
- offsetY: number;
1342
- width: number;
1343
- height: number;
1344
- }[];
1345
- }[];
1387
+ searchMatches: Readonly<{
1388
+ focusedId: string | null;
1389
+ matches: readonly import("../types").SearchMatch[];
1390
+ }> | null;
1391
+ activeLockedId: string | null;
1392
+ lockedMultiSelections: {
1393
+ [groupId: string]: true;
1394
+ };
1395
+ bindMode: import("@excalidraw/element/types").BindMode;
1346
1396
  };
1347
1397
  captureUpdate: "EVENTUALLY";
1348
1398
  };
@@ -1353,7 +1403,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1353
1403
  trackEvent: {
1354
1404
  category: "canvas";
1355
1405
  };
1356
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1406
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
1357
1407
  appState: {
1358
1408
  scrollX: number;
1359
1409
  scrollY: number;
@@ -1378,23 +1428,28 @@ export declare const actionZoomToFitSelectionInViewport: {
1378
1428
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1379
1429
  isBindingEnabled: boolean;
1380
1430
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1381
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1431
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1382
1432
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1383
1433
  frameRendering: {
1384
1434
  enabled: boolean;
1385
1435
  name: boolean;
1386
1436
  outline: boolean;
1387
1437
  clip: boolean;
1438
+ markerName: boolean;
1439
+ markerEnabled: boolean;
1388
1440
  };
1389
1441
  editingFrame: string | null;
1390
1442
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1391
1443
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1392
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1393
1444
  activeTool: {
1394
1445
  lastActiveTool: import("../types").ActiveTool | null;
1395
1446
  locked: boolean;
1396
1447
  fromSelection: boolean;
1397
1448
  } & import("../types").ActiveTool;
1449
+ preferredSelectionTool: {
1450
+ type: "selection" | "lasso";
1451
+ initialized: boolean;
1452
+ };
1398
1453
  penMode: boolean;
1399
1454
  penDetected: boolean;
1400
1455
  exportBackground: boolean;
@@ -1416,25 +1471,28 @@ export declare const actionZoomToFitSelectionInViewport: {
1416
1471
  currentHoveredFontFamily: number | null;
1417
1472
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1418
1473
  currentItemArrowType: "round" | "sharp" | "elbow";
1474
+ currentItemFrameRole: ("marker" | null) | undefined;
1419
1475
  viewBackgroundColor: string;
1420
1476
  cursorButton: "up" | "down";
1421
1477
  scrolledOutside: boolean;
1422
1478
  name: string | null;
1423
1479
  isResizing: boolean;
1424
1480
  isRotating: boolean;
1425
- openMenu: "shape" | "canvas" | null;
1426
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1481
+ openMenu: "canvas" | "shape" | null;
1482
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1427
1483
  openSidebar: {
1428
1484
  name: string;
1429
1485
  tab?: string | undefined;
1430
1486
  } | null;
1431
1487
  openDialog: {
1432
- name: "help" | "imageExport" | "jsonExport";
1488
+ name: "imageExport" | "help" | "jsonExport";
1433
1489
  } | {
1434
1490
  name: "ttd";
1435
1491
  tab: "mermaid" | "text-to-diagram";
1436
1492
  } | {
1437
1493
  name: "commandPalette";
1494
+ } | {
1495
+ name: "settings";
1438
1496
  } | {
1439
1497
  name: "elementLinkSelector";
1440
1498
  sourceElementId: string;
@@ -1504,10 +1562,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1504
1562
  shown: true;
1505
1563
  data: import("../charts").Spreadsheet;
1506
1564
  };
1507
- pendingImageElementId: string | null;
1508
- showHyperlinkPopup: false | "editor" | "info";
1565
+ showHyperlinkPopup: false | "info" | "editor";
1509
1566
  linkOpacity: number;
1510
- trayModeEnabled: boolean;
1511
1567
  colorPalette?: {
1512
1568
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1513
1569
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1520,6 +1576,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1520
1576
  } | undefined;
1521
1577
  allowWheelZoom?: boolean | undefined;
1522
1578
  allowPinchZoom?: boolean | undefined;
1579
+ disableContextMenu: boolean;
1523
1580
  pinnedScripts?: string[] | undefined;
1524
1581
  customPens?: any[] | undefined;
1525
1582
  currentStrokeOptions?: any;
@@ -1528,6 +1585,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1528
1585
  Bold: string;
1529
1586
  Regular: string;
1530
1587
  };
1588
+ gridDirection: {
1589
+ horizontal: boolean;
1590
+ vertical: boolean;
1591
+ };
1531
1592
  highlightSearchResult: boolean;
1532
1593
  dynamicStyle: {
1533
1594
  [x: string]: string;
@@ -1538,7 +1599,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1538
1599
  nameColor: string;
1539
1600
  };
1540
1601
  invertBindingBehaviour: boolean;
1541
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1602
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1542
1603
  snapLines: readonly import("../snapping").SnapLine[];
1543
1604
  originSnapOffset: {
1544
1605
  x: number;
@@ -1549,16 +1610,15 @@ export declare const actionZoomToFitSelectionInViewport: {
1549
1610
  followedBy: Set<import("../types").SocketId>;
1550
1611
  isCropping: boolean;
1551
1612
  croppingElementId: string | null;
1552
- searchMatches: readonly {
1553
- id: string;
1554
- focus: boolean;
1555
- matchedLines: {
1556
- offsetX: number;
1557
- offsetY: number;
1558
- width: number;
1559
- height: number;
1560
- }[];
1561
- }[];
1613
+ searchMatches: Readonly<{
1614
+ focusedId: string | null;
1615
+ matches: readonly import("../types").SearchMatch[];
1616
+ }> | null;
1617
+ activeLockedId: string | null;
1618
+ lockedMultiSelections: {
1619
+ [groupId: string]: true;
1620
+ };
1621
+ bindMode: import("@excalidraw/element/types").BindMode;
1562
1622
  };
1563
1623
  captureUpdate: "EVENTUALLY";
1564
1624
  };
@@ -1573,7 +1633,7 @@ export declare const actionZoomToFitSelection: {
1573
1633
  trackEvent: {
1574
1634
  category: "canvas";
1575
1635
  };
1576
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1636
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
1577
1637
  appState: {
1578
1638
  scrollX: number;
1579
1639
  scrollY: number;
@@ -1598,23 +1658,28 @@ export declare const actionZoomToFitSelection: {
1598
1658
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1599
1659
  isBindingEnabled: boolean;
1600
1660
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1601
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1661
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1602
1662
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1603
1663
  frameRendering: {
1604
1664
  enabled: boolean;
1605
1665
  name: boolean;
1606
1666
  outline: boolean;
1607
1667
  clip: boolean;
1668
+ markerName: boolean;
1669
+ markerEnabled: boolean;
1608
1670
  };
1609
1671
  editingFrame: string | null;
1610
1672
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1611
1673
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1612
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1613
1674
  activeTool: {
1614
1675
  lastActiveTool: import("../types").ActiveTool | null;
1615
1676
  locked: boolean;
1616
1677
  fromSelection: boolean;
1617
1678
  } & import("../types").ActiveTool;
1679
+ preferredSelectionTool: {
1680
+ type: "selection" | "lasso";
1681
+ initialized: boolean;
1682
+ };
1618
1683
  penMode: boolean;
1619
1684
  penDetected: boolean;
1620
1685
  exportBackground: boolean;
@@ -1636,25 +1701,28 @@ export declare const actionZoomToFitSelection: {
1636
1701
  currentHoveredFontFamily: number | null;
1637
1702
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1638
1703
  currentItemArrowType: "round" | "sharp" | "elbow";
1704
+ currentItemFrameRole: ("marker" | null) | undefined;
1639
1705
  viewBackgroundColor: string;
1640
1706
  cursorButton: "up" | "down";
1641
1707
  scrolledOutside: boolean;
1642
1708
  name: string | null;
1643
1709
  isResizing: boolean;
1644
1710
  isRotating: boolean;
1645
- openMenu: "shape" | "canvas" | null;
1646
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1711
+ openMenu: "canvas" | "shape" | null;
1712
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1647
1713
  openSidebar: {
1648
1714
  name: string;
1649
1715
  tab?: string | undefined;
1650
1716
  } | null;
1651
1717
  openDialog: {
1652
- name: "help" | "imageExport" | "jsonExport";
1718
+ name: "imageExport" | "help" | "jsonExport";
1653
1719
  } | {
1654
1720
  name: "ttd";
1655
1721
  tab: "mermaid" | "text-to-diagram";
1656
1722
  } | {
1657
1723
  name: "commandPalette";
1724
+ } | {
1725
+ name: "settings";
1658
1726
  } | {
1659
1727
  name: "elementLinkSelector";
1660
1728
  sourceElementId: string;
@@ -1724,10 +1792,8 @@ export declare const actionZoomToFitSelection: {
1724
1792
  shown: true;
1725
1793
  data: import("../charts").Spreadsheet;
1726
1794
  };
1727
- pendingImageElementId: string | null;
1728
- showHyperlinkPopup: false | "editor" | "info";
1795
+ showHyperlinkPopup: false | "info" | "editor";
1729
1796
  linkOpacity: number;
1730
- trayModeEnabled: boolean;
1731
1797
  colorPalette?: {
1732
1798
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1733
1799
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1740,6 +1806,7 @@ export declare const actionZoomToFitSelection: {
1740
1806
  } | undefined;
1741
1807
  allowWheelZoom?: boolean | undefined;
1742
1808
  allowPinchZoom?: boolean | undefined;
1809
+ disableContextMenu: boolean;
1743
1810
  pinnedScripts?: string[] | undefined;
1744
1811
  customPens?: any[] | undefined;
1745
1812
  currentStrokeOptions?: any;
@@ -1748,6 +1815,10 @@ export declare const actionZoomToFitSelection: {
1748
1815
  Bold: string;
1749
1816
  Regular: string;
1750
1817
  };
1818
+ gridDirection: {
1819
+ horizontal: boolean;
1820
+ vertical: boolean;
1821
+ };
1751
1822
  highlightSearchResult: boolean;
1752
1823
  dynamicStyle: {
1753
1824
  [x: string]: string;
@@ -1758,7 +1829,7 @@ export declare const actionZoomToFitSelection: {
1758
1829
  nameColor: string;
1759
1830
  };
1760
1831
  invertBindingBehaviour: boolean;
1761
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1832
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1762
1833
  snapLines: readonly import("../snapping").SnapLine[];
1763
1834
  originSnapOffset: {
1764
1835
  x: number;
@@ -1769,16 +1840,15 @@ export declare const actionZoomToFitSelection: {
1769
1840
  followedBy: Set<import("../types").SocketId>;
1770
1841
  isCropping: boolean;
1771
1842
  croppingElementId: string | null;
1772
- searchMatches: readonly {
1773
- id: string;
1774
- focus: boolean;
1775
- matchedLines: {
1776
- offsetX: number;
1777
- offsetY: number;
1778
- width: number;
1779
- height: number;
1780
- }[];
1781
- }[];
1843
+ searchMatches: Readonly<{
1844
+ focusedId: string | null;
1845
+ matches: readonly import("../types").SearchMatch[];
1846
+ }> | null;
1847
+ activeLockedId: string | null;
1848
+ lockedMultiSelections: {
1849
+ [groupId: string]: true;
1850
+ };
1851
+ bindMode: import("@excalidraw/element/types").BindMode;
1782
1852
  };
1783
1853
  captureUpdate: "EVENTUALLY";
1784
1854
  };
@@ -1794,7 +1864,7 @@ export declare const actionZoomToFit: {
1794
1864
  trackEvent: {
1795
1865
  category: "canvas";
1796
1866
  };
1797
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1867
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
1798
1868
  appState: {
1799
1869
  scrollX: number;
1800
1870
  scrollY: number;
@@ -1819,23 +1889,28 @@ export declare const actionZoomToFit: {
1819
1889
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1820
1890
  isBindingEnabled: boolean;
1821
1891
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1822
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1892
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1823
1893
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1824
1894
  frameRendering: {
1825
1895
  enabled: boolean;
1826
1896
  name: boolean;
1827
1897
  outline: boolean;
1828
1898
  clip: boolean;
1899
+ markerName: boolean;
1900
+ markerEnabled: boolean;
1829
1901
  };
1830
1902
  editingFrame: string | null;
1831
1903
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1832
1904
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1833
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1834
1905
  activeTool: {
1835
1906
  lastActiveTool: import("../types").ActiveTool | null;
1836
1907
  locked: boolean;
1837
1908
  fromSelection: boolean;
1838
1909
  } & import("../types").ActiveTool;
1910
+ preferredSelectionTool: {
1911
+ type: "selection" | "lasso";
1912
+ initialized: boolean;
1913
+ };
1839
1914
  penMode: boolean;
1840
1915
  penDetected: boolean;
1841
1916
  exportBackground: boolean;
@@ -1857,25 +1932,28 @@ export declare const actionZoomToFit: {
1857
1932
  currentHoveredFontFamily: number | null;
1858
1933
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1859
1934
  currentItemArrowType: "round" | "sharp" | "elbow";
1935
+ currentItemFrameRole: ("marker" | null) | undefined;
1860
1936
  viewBackgroundColor: string;
1861
1937
  cursorButton: "up" | "down";
1862
1938
  scrolledOutside: boolean;
1863
1939
  name: string | null;
1864
1940
  isResizing: boolean;
1865
1941
  isRotating: boolean;
1866
- openMenu: "shape" | "canvas" | null;
1867
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1942
+ openMenu: "canvas" | "shape" | null;
1943
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1868
1944
  openSidebar: {
1869
1945
  name: string;
1870
1946
  tab?: string | undefined;
1871
1947
  } | null;
1872
1948
  openDialog: {
1873
- name: "help" | "imageExport" | "jsonExport";
1949
+ name: "imageExport" | "help" | "jsonExport";
1874
1950
  } | {
1875
1951
  name: "ttd";
1876
1952
  tab: "mermaid" | "text-to-diagram";
1877
1953
  } | {
1878
1954
  name: "commandPalette";
1955
+ } | {
1956
+ name: "settings";
1879
1957
  } | {
1880
1958
  name: "elementLinkSelector";
1881
1959
  sourceElementId: string;
@@ -1945,10 +2023,8 @@ export declare const actionZoomToFit: {
1945
2023
  shown: true;
1946
2024
  data: import("../charts").Spreadsheet;
1947
2025
  };
1948
- pendingImageElementId: string | null;
1949
- showHyperlinkPopup: false | "editor" | "info";
2026
+ showHyperlinkPopup: false | "info" | "editor";
1950
2027
  linkOpacity: number;
1951
- trayModeEnabled: boolean;
1952
2028
  colorPalette?: {
1953
2029
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1954
2030
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1961,6 +2037,7 @@ export declare const actionZoomToFit: {
1961
2037
  } | undefined;
1962
2038
  allowWheelZoom?: boolean | undefined;
1963
2039
  allowPinchZoom?: boolean | undefined;
2040
+ disableContextMenu: boolean;
1964
2041
  pinnedScripts?: string[] | undefined;
1965
2042
  customPens?: any[] | undefined;
1966
2043
  currentStrokeOptions?: any;
@@ -1969,227 +2046,9 @@ export declare const actionZoomToFit: {
1969
2046
  Bold: string;
1970
2047
  Regular: string;
1971
2048
  };
1972
- highlightSearchResult: boolean;
1973
- dynamicStyle: {
1974
- [x: string]: string;
1975
- };
1976
- frameColor: {
1977
- stroke: string;
1978
- fill: string;
1979
- nameColor: string;
1980
- };
1981
- invertBindingBehaviour: boolean;
1982
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1983
- snapLines: readonly import("../snapping").SnapLine[];
1984
- originSnapOffset: {
1985
- x: number;
1986
- y: number;
1987
- } | null;
1988
- objectsSnapModeEnabled: boolean;
1989
- userToFollow: import("../types").UserToFollow | null;
1990
- followedBy: Set<import("../types").SocketId>;
1991
- isCropping: boolean;
1992
- croppingElementId: string | null;
1993
- searchMatches: readonly {
1994
- id: string;
1995
- focus: boolean;
1996
- matchedLines: {
1997
- offsetX: number;
1998
- offsetY: number;
1999
- width: number;
2000
- height: number;
2001
- }[];
2002
- }[];
2003
- };
2004
- captureUpdate: "EVENTUALLY";
2005
- };
2006
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2007
- } & {
2008
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2009
- };
2010
- export declare const actionToggleTheme: {
2011
- name: "toggleTheme";
2012
- label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
2013
- keywords: string[];
2014
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
2015
- viewMode: true;
2016
- trackEvent: {
2017
- category: "canvas";
2018
- };
2019
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2020
- appState: {
2021
- theme: any;
2022
- contextMenu: {
2023
- items: import("../components/ContextMenu").ContextMenuItems;
2024
- top: number;
2025
- left: number;
2026
- } | null;
2027
- showWelcomeScreen: boolean;
2028
- isLoading: boolean;
2029
- errorMessage: import("react").ReactNode;
2030
- activeEmbeddable: {
2031
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2032
- state: "active" | "hover";
2033
- } | null;
2034
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2035
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2036
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2037
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2038
- isBindingEnabled: boolean;
2039
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2040
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2041
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2042
- frameRendering: {
2043
- enabled: boolean;
2044
- name: boolean;
2045
- outline: boolean;
2046
- clip: boolean;
2047
- };
2048
- editingFrame: string | null;
2049
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2050
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2051
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2052
- activeTool: {
2053
- lastActiveTool: import("../types").ActiveTool | null;
2054
- locked: boolean;
2055
- fromSelection: boolean;
2056
- } & import("../types").ActiveTool;
2057
- penMode: boolean;
2058
- penDetected: boolean;
2059
- exportBackground: boolean;
2060
- exportEmbedScene: boolean;
2061
- exportWithDarkMode: boolean;
2062
- exportScale: number;
2063
- currentItemStrokeColor: string;
2064
- currentItemBackgroundColor: string;
2065
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2066
- currentItemStrokeWidth: number;
2067
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2068
- currentItemRoughness: number;
2069
- currentItemOpacity: number;
2070
- currentItemFontFamily: number;
2071
- currentItemFontSize: number;
2072
- currentItemTextAlign: string;
2073
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2074
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2075
- currentHoveredFontFamily: number | null;
2076
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2077
- currentItemArrowType: "round" | "sharp" | "elbow";
2078
- viewBackgroundColor: string;
2079
- scrollX: number;
2080
- scrollY: number;
2081
- cursorButton: "up" | "down";
2082
- scrolledOutside: boolean;
2083
- name: string | null;
2084
- isResizing: boolean;
2085
- isRotating: boolean;
2086
- zoom: Readonly<{
2087
- value: import("../types").NormalizedZoomValue;
2088
- }>;
2089
- openMenu: "shape" | "canvas" | null;
2090
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2091
- openSidebar: {
2092
- name: string;
2093
- tab?: string | undefined;
2094
- } | null;
2095
- openDialog: {
2096
- name: "help" | "imageExport" | "jsonExport";
2097
- } | {
2098
- name: "ttd";
2099
- tab: "mermaid" | "text-to-diagram";
2100
- } | {
2101
- name: "commandPalette";
2102
- } | {
2103
- name: "elementLinkSelector";
2104
- sourceElementId: string;
2105
- } | null;
2106
- defaultSidebarDockedPreference: boolean;
2107
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2108
- selectedElementIds: Readonly<{
2109
- [id: string]: true;
2110
- }>;
2111
- hoveredElementIds: Readonly<{
2112
- [id: string]: true;
2113
- }>;
2114
- previousSelectedElementIds: {
2115
- [id: string]: true;
2116
- };
2117
- selectedElementsAreBeingDragged: boolean;
2118
- shouldCacheIgnoreZoom: boolean;
2119
- toast: {
2120
- message: string;
2121
- closable?: boolean | undefined;
2122
- duration?: number | undefined;
2123
- } | null;
2124
- zenModeEnabled: boolean;
2125
- gridSize: number;
2126
- gridStep: number;
2127
- gridModeEnabled: boolean;
2128
- viewModeEnabled: boolean;
2129
- selectedGroupIds: {
2130
- [groupId: string]: boolean;
2131
- };
2132
- editingGroupId: string | null;
2133
- width: number;
2134
- height: number;
2135
- offsetTop: number;
2136
- offsetLeft: number;
2137
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2138
- collaborators: Map<import("../types").SocketId, Readonly<{
2139
- pointer?: import("../types").CollaboratorPointer | undefined;
2140
- button?: "up" | "down" | undefined;
2141
- selectedElementIds?: Readonly<{
2142
- [id: string]: true;
2143
- }> | undefined;
2144
- username?: string | null | undefined;
2145
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2146
- color?: {
2147
- background: string;
2148
- stroke: string;
2149
- } | undefined;
2150
- avatarUrl?: string | undefined;
2151
- id?: string | undefined;
2152
- socketId?: import("../types").SocketId | undefined;
2153
- isCurrentUser?: boolean | undefined;
2154
- isInCall?: boolean | undefined;
2155
- isSpeaking?: boolean | undefined;
2156
- isMuted?: boolean | undefined;
2157
- }>>;
2158
- stats: {
2159
- open: boolean;
2160
- panels: number;
2161
- };
2162
- currentChartType: import("@excalidraw/element/types").ChartType;
2163
- pasteDialog: {
2164
- shown: false;
2165
- data: null;
2166
- } | {
2167
- shown: true;
2168
- data: import("../charts").Spreadsheet;
2169
- };
2170
- pendingImageElementId: string | null;
2171
- showHyperlinkPopup: false | "editor" | "info";
2172
- linkOpacity: number;
2173
- trayModeEnabled: boolean;
2174
- colorPalette?: {
2175
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2176
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2177
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2178
- topPicks: {
2179
- canvasBackground: [string, string, string, string, string];
2180
- elementStroke: [string, string, string, string, string];
2181
- elementBackground: [string, string, string, string, string];
2182
- };
2183
- } | undefined;
2184
- allowWheelZoom?: boolean | undefined;
2185
- allowPinchZoom?: boolean | undefined;
2186
- pinnedScripts?: string[] | undefined;
2187
- customPens?: any[] | undefined;
2188
- currentStrokeOptions?: any;
2189
- resetCustomPen?: any;
2190
- gridColor: {
2191
- Bold: string;
2192
- Regular: string;
2049
+ gridDirection: {
2050
+ horizontal: boolean;
2051
+ vertical: boolean;
2193
2052
  };
2194
2053
  highlightSearchResult: boolean;
2195
2054
  dynamicStyle: {
@@ -2201,7 +2060,7 @@ export declare const actionToggleTheme: {
2201
2060
  nameColor: string;
2202
2061
  };
2203
2062
  invertBindingBehaviour: boolean;
2204
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2063
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2205
2064
  snapLines: readonly import("../snapping").SnapLine[];
2206
2065
  originSnapOffset: {
2207
2066
  x: number;
@@ -2212,31 +2071,32 @@ export declare const actionToggleTheme: {
2212
2071
  followedBy: Set<import("../types").SocketId>;
2213
2072
  isCropping: boolean;
2214
2073
  croppingElementId: string | null;
2215
- searchMatches: readonly {
2216
- id: string;
2217
- focus: boolean;
2218
- matchedLines: {
2219
- offsetX: number;
2220
- offsetY: number;
2221
- width: number;
2222
- height: number;
2223
- }[];
2224
- }[];
2074
+ searchMatches: Readonly<{
2075
+ focusedId: string | null;
2076
+ matches: readonly import("../types").SearchMatch[];
2077
+ }> | null;
2078
+ activeLockedId: string | null;
2079
+ lockedMultiSelections: {
2080
+ [groupId: string]: true;
2081
+ };
2082
+ bindMode: import("@excalidraw/element/types").BindMode;
2225
2083
  };
2226
2084
  captureUpdate: "EVENTUALLY";
2227
2085
  };
2228
2086
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2229
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
2230
2087
  } & {
2231
2088
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2232
2089
  };
2090
+ export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
2091
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2092
+ };
2233
2093
  export declare const actionToggleEraserTool: {
2234
2094
  name: "toggleEraserTool";
2235
2095
  label: string;
2236
2096
  trackEvent: {
2237
2097
  category: "toolbar";
2238
2098
  };
2239
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
2099
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
2240
2100
  appState: {
2241
2101
  selectedElementIds: {};
2242
2102
  selectedGroupIds: {};
@@ -2260,18 +2120,23 @@ export declare const actionToggleEraserTool: {
2260
2120
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2261
2121
  isBindingEnabled: boolean;
2262
2122
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2263
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2123
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2264
2124
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2265
2125
  frameRendering: {
2266
2126
  enabled: boolean;
2267
2127
  name: boolean;
2268
2128
  outline: boolean;
2269
2129
  clip: boolean;
2130
+ markerName: boolean;
2131
+ markerEnabled: boolean;
2270
2132
  };
2271
2133
  editingFrame: string | null;
2272
2134
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2273
2135
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2274
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2136
+ preferredSelectionTool: {
2137
+ type: "selection" | "lasso";
2138
+ initialized: boolean;
2139
+ };
2275
2140
  penMode: boolean;
2276
2141
  penDetected: boolean;
2277
2142
  exportBackground: boolean;
@@ -2293,6 +2158,7 @@ export declare const actionToggleEraserTool: {
2293
2158
  currentHoveredFontFamily: number | null;
2294
2159
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2295
2160
  currentItemArrowType: "round" | "sharp" | "elbow";
2161
+ currentItemFrameRole: ("marker" | null) | undefined;
2296
2162
  viewBackgroundColor: string;
2297
2163
  scrollX: number;
2298
2164
  scrollY: number;
@@ -2304,19 +2170,21 @@ export declare const actionToggleEraserTool: {
2304
2170
  zoom: Readonly<{
2305
2171
  value: import("../types").NormalizedZoomValue;
2306
2172
  }>;
2307
- openMenu: "shape" | "canvas" | null;
2308
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2173
+ openMenu: "canvas" | "shape" | null;
2174
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2309
2175
  openSidebar: {
2310
2176
  name: string;
2311
2177
  tab?: string | undefined;
2312
2178
  } | null;
2313
2179
  openDialog: {
2314
- name: "help" | "imageExport" | "jsonExport";
2180
+ name: "imageExport" | "help" | "jsonExport";
2315
2181
  } | {
2316
2182
  name: "ttd";
2317
2183
  tab: "mermaid" | "text-to-diagram";
2318
2184
  } | {
2319
2185
  name: "commandPalette";
2186
+ } | {
2187
+ name: "settings";
2320
2188
  } | {
2321
2189
  name: "elementLinkSelector";
2322
2190
  sourceElementId: string;
@@ -2380,10 +2248,8 @@ export declare const actionToggleEraserTool: {
2380
2248
  shown: true;
2381
2249
  data: import("../charts").Spreadsheet;
2382
2250
  };
2383
- pendingImageElementId: string | null;
2384
- showHyperlinkPopup: false | "editor" | "info";
2251
+ showHyperlinkPopup: false | "info" | "editor";
2385
2252
  linkOpacity: number;
2386
- trayModeEnabled: boolean;
2387
2253
  colorPalette?: {
2388
2254
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2389
2255
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -2396,6 +2262,7 @@ export declare const actionToggleEraserTool: {
2396
2262
  } | undefined;
2397
2263
  allowWheelZoom?: boolean | undefined;
2398
2264
  allowPinchZoom?: boolean | undefined;
2265
+ disableContextMenu: boolean;
2399
2266
  pinnedScripts?: string[] | undefined;
2400
2267
  customPens?: any[] | undefined;
2401
2268
  currentStrokeOptions?: any;
@@ -2404,6 +2271,10 @@ export declare const actionToggleEraserTool: {
2404
2271
  Bold: string;
2405
2272
  Regular: string;
2406
2273
  };
2274
+ gridDirection: {
2275
+ horizontal: boolean;
2276
+ vertical: boolean;
2277
+ };
2407
2278
  highlightSearchResult: boolean;
2408
2279
  dynamicStyle: {
2409
2280
  [x: string]: string;
@@ -2414,7 +2285,7 @@ export declare const actionToggleEraserTool: {
2414
2285
  nameColor: string;
2415
2286
  };
2416
2287
  invertBindingBehaviour: boolean;
2417
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2288
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2418
2289
  snapLines: readonly import("../snapping").SnapLine[];
2419
2290
  originSnapOffset: {
2420
2291
  x: number;
@@ -2425,16 +2296,15 @@ export declare const actionToggleEraserTool: {
2425
2296
  followedBy: Set<import("../types").SocketId>;
2426
2297
  isCropping: boolean;
2427
2298
  croppingElementId: string | null;
2428
- searchMatches: readonly {
2429
- id: string;
2430
- focus: boolean;
2431
- matchedLines: {
2432
- offsetX: number;
2433
- offsetY: number;
2434
- width: number;
2435
- height: number;
2436
- }[];
2437
- }[];
2299
+ searchMatches: Readonly<{
2300
+ focusedId: string | null;
2301
+ matches: readonly import("../types").SearchMatch[];
2302
+ }> | null;
2303
+ activeLockedId: string | null;
2304
+ lockedMultiSelections: {
2305
+ [groupId: string]: true;
2306
+ };
2307
+ bindMode: import("@excalidraw/element/types").BindMode;
2438
2308
  };
2439
2309
  captureUpdate: "IMMEDIATELY";
2440
2310
  };
@@ -2449,7 +2319,8 @@ export declare const actionToggleLassoTool: {
2449
2319
  trackEvent: {
2450
2320
  category: "toolbar";
2451
2321
  };
2452
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
2322
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
2323
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
2453
2324
  appState: {
2454
2325
  selectedElementIds: {};
2455
2326
  selectedGroupIds: {};
@@ -2473,18 +2344,23 @@ export declare const actionToggleLassoTool: {
2473
2344
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2474
2345
  isBindingEnabled: boolean;
2475
2346
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2476
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2347
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2477
2348
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2478
2349
  frameRendering: {
2479
2350
  enabled: boolean;
2480
2351
  name: boolean;
2481
2352
  outline: boolean;
2482
2353
  clip: boolean;
2354
+ markerName: boolean;
2355
+ markerEnabled: boolean;
2483
2356
  };
2484
2357
  editingFrame: string | null;
2485
2358
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2486
2359
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2487
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2360
+ preferredSelectionTool: {
2361
+ type: "selection" | "lasso";
2362
+ initialized: boolean;
2363
+ };
2488
2364
  penMode: boolean;
2489
2365
  penDetected: boolean;
2490
2366
  exportBackground: boolean;
@@ -2506,6 +2382,7 @@ export declare const actionToggleLassoTool: {
2506
2382
  currentHoveredFontFamily: number | null;
2507
2383
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2508
2384
  currentItemArrowType: "round" | "sharp" | "elbow";
2385
+ currentItemFrameRole: ("marker" | null) | undefined;
2509
2386
  viewBackgroundColor: string;
2510
2387
  scrollX: number;
2511
2388
  scrollY: number;
@@ -2517,19 +2394,21 @@ export declare const actionToggleLassoTool: {
2517
2394
  zoom: Readonly<{
2518
2395
  value: import("../types").NormalizedZoomValue;
2519
2396
  }>;
2520
- openMenu: "shape" | "canvas" | null;
2521
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2397
+ openMenu: "canvas" | "shape" | null;
2398
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2522
2399
  openSidebar: {
2523
2400
  name: string;
2524
2401
  tab?: string | undefined;
2525
2402
  } | null;
2526
2403
  openDialog: {
2527
- name: "help" | "imageExport" | "jsonExport";
2404
+ name: "imageExport" | "help" | "jsonExport";
2528
2405
  } | {
2529
2406
  name: "ttd";
2530
2407
  tab: "mermaid" | "text-to-diagram";
2531
2408
  } | {
2532
2409
  name: "commandPalette";
2410
+ } | {
2411
+ name: "settings";
2533
2412
  } | {
2534
2413
  name: "elementLinkSelector";
2535
2414
  sourceElementId: string;
@@ -2593,10 +2472,8 @@ export declare const actionToggleLassoTool: {
2593
2472
  shown: true;
2594
2473
  data: import("../charts").Spreadsheet;
2595
2474
  };
2596
- pendingImageElementId: string | null;
2597
- showHyperlinkPopup: false | "editor" | "info";
2475
+ showHyperlinkPopup: false | "info" | "editor";
2598
2476
  linkOpacity: number;
2599
- trayModeEnabled: boolean;
2600
2477
  colorPalette?: {
2601
2478
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2602
2479
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -2609,6 +2486,7 @@ export declare const actionToggleLassoTool: {
2609
2486
  } | undefined;
2610
2487
  allowWheelZoom?: boolean | undefined;
2611
2488
  allowPinchZoom?: boolean | undefined;
2489
+ disableContextMenu: boolean;
2612
2490
  pinnedScripts?: string[] | undefined;
2613
2491
  customPens?: any[] | undefined;
2614
2492
  currentStrokeOptions?: any;
@@ -2617,6 +2495,10 @@ export declare const actionToggleLassoTool: {
2617
2495
  Bold: string;
2618
2496
  Regular: string;
2619
2497
  };
2498
+ gridDirection: {
2499
+ horizontal: boolean;
2500
+ vertical: boolean;
2501
+ };
2620
2502
  highlightSearchResult: boolean;
2621
2503
  dynamicStyle: {
2622
2504
  [x: string]: string;
@@ -2627,7 +2509,7 @@ export declare const actionToggleLassoTool: {
2627
2509
  nameColor: string;
2628
2510
  };
2629
2511
  invertBindingBehaviour: boolean;
2630
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2512
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2631
2513
  snapLines: readonly import("../snapping").SnapLine[];
2632
2514
  originSnapOffset: {
2633
2515
  x: number;
@@ -2638,16 +2520,15 @@ export declare const actionToggleLassoTool: {
2638
2520
  followedBy: Set<import("../types").SocketId>;
2639
2521
  isCropping: boolean;
2640
2522
  croppingElementId: string | null;
2641
- searchMatches: readonly {
2642
- id: string;
2643
- focus: boolean;
2644
- matchedLines: {
2645
- offsetX: number;
2646
- offsetY: number;
2647
- width: number;
2648
- height: number;
2649
- }[];
2650
- }[];
2523
+ searchMatches: Readonly<{
2524
+ focusedId: string | null;
2525
+ matches: readonly import("../types").SearchMatch[];
2526
+ }> | null;
2527
+ activeLockedId: string | null;
2528
+ lockedMultiSelections: {
2529
+ [groupId: string]: true;
2530
+ };
2531
+ bindMode: import("@excalidraw/element/types").BindMode;
2651
2532
  };
2652
2533
  captureUpdate: "NEVER";
2653
2534
  };
@@ -2662,7 +2543,7 @@ export declare const actionToggleHandTool: {
2662
2543
  };
2663
2544
  icon: import("react/jsx-runtime").JSX.Element;
2664
2545
  viewMode: false;
2665
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
2546
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
2666
2547
  appState: {
2667
2548
  selectedElementIds: {};
2668
2549
  selectedGroupIds: {};
@@ -2686,18 +2567,23 @@ export declare const actionToggleHandTool: {
2686
2567
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2687
2568
  isBindingEnabled: boolean;
2688
2569
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2689
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2570
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2690
2571
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2691
2572
  frameRendering: {
2692
2573
  enabled: boolean;
2693
2574
  name: boolean;
2694
2575
  outline: boolean;
2695
2576
  clip: boolean;
2577
+ markerName: boolean;
2578
+ markerEnabled: boolean;
2696
2579
  };
2697
2580
  editingFrame: string | null;
2698
2581
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2699
2582
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2700
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2583
+ preferredSelectionTool: {
2584
+ type: "selection" | "lasso";
2585
+ initialized: boolean;
2586
+ };
2701
2587
  penMode: boolean;
2702
2588
  penDetected: boolean;
2703
2589
  exportBackground: boolean;
@@ -2719,6 +2605,7 @@ export declare const actionToggleHandTool: {
2719
2605
  currentHoveredFontFamily: number | null;
2720
2606
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2721
2607
  currentItemArrowType: "round" | "sharp" | "elbow";
2608
+ currentItemFrameRole: ("marker" | null) | undefined;
2722
2609
  viewBackgroundColor: string;
2723
2610
  scrollX: number;
2724
2611
  scrollY: number;
@@ -2730,19 +2617,21 @@ export declare const actionToggleHandTool: {
2730
2617
  zoom: Readonly<{
2731
2618
  value: import("../types").NormalizedZoomValue;
2732
2619
  }>;
2733
- openMenu: "shape" | "canvas" | null;
2734
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2620
+ openMenu: "canvas" | "shape" | null;
2621
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2735
2622
  openSidebar: {
2736
2623
  name: string;
2737
2624
  tab?: string | undefined;
2738
2625
  } | null;
2739
2626
  openDialog: {
2740
- name: "help" | "imageExport" | "jsonExport";
2627
+ name: "imageExport" | "help" | "jsonExport";
2741
2628
  } | {
2742
2629
  name: "ttd";
2743
2630
  tab: "mermaid" | "text-to-diagram";
2744
2631
  } | {
2745
2632
  name: "commandPalette";
2633
+ } | {
2634
+ name: "settings";
2746
2635
  } | {
2747
2636
  name: "elementLinkSelector";
2748
2637
  sourceElementId: string;
@@ -2806,10 +2695,8 @@ export declare const actionToggleHandTool: {
2806
2695
  shown: true;
2807
2696
  data: import("../charts").Spreadsheet;
2808
2697
  };
2809
- pendingImageElementId: string | null;
2810
- showHyperlinkPopup: false | "editor" | "info";
2698
+ showHyperlinkPopup: false | "info" | "editor";
2811
2699
  linkOpacity: number;
2812
- trayModeEnabled: boolean;
2813
2700
  colorPalette?: {
2814
2701
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2815
2702
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -2822,6 +2709,7 @@ export declare const actionToggleHandTool: {
2822
2709
  } | undefined;
2823
2710
  allowWheelZoom?: boolean | undefined;
2824
2711
  allowPinchZoom?: boolean | undefined;
2712
+ disableContextMenu: boolean;
2825
2713
  pinnedScripts?: string[] | undefined;
2826
2714
  customPens?: any[] | undefined;
2827
2715
  currentStrokeOptions?: any;
@@ -2830,6 +2718,10 @@ export declare const actionToggleHandTool: {
2830
2718
  Bold: string;
2831
2719
  Regular: string;
2832
2720
  };
2721
+ gridDirection: {
2722
+ horizontal: boolean;
2723
+ vertical: boolean;
2724
+ };
2833
2725
  highlightSearchResult: boolean;
2834
2726
  dynamicStyle: {
2835
2727
  [x: string]: string;
@@ -2840,7 +2732,7 @@ export declare const actionToggleHandTool: {
2840
2732
  nameColor: string;
2841
2733
  };
2842
2734
  invertBindingBehaviour: boolean;
2843
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2735
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2844
2736
  snapLines: readonly import("../snapping").SnapLine[];
2845
2737
  originSnapOffset: {
2846
2738
  x: number;
@@ -2851,16 +2743,15 @@ export declare const actionToggleHandTool: {
2851
2743
  followedBy: Set<import("../types").SocketId>;
2852
2744
  isCropping: boolean;
2853
2745
  croppingElementId: string | null;
2854
- searchMatches: readonly {
2855
- id: string;
2856
- focus: boolean;
2857
- matchedLines: {
2858
- offsetX: number;
2859
- offsetY: number;
2860
- width: number;
2861
- height: number;
2862
- }[];
2863
- }[];
2746
+ searchMatches: Readonly<{
2747
+ focusedId: string | null;
2748
+ matches: readonly import("../types").SearchMatch[];
2749
+ }> | null;
2750
+ activeLockedId: string | null;
2751
+ lockedMultiSelections: {
2752
+ [groupId: string]: true;
2753
+ };
2754
+ bindMode: import("@excalidraw/element/types").BindMode;
2864
2755
  };
2865
2756
  captureUpdate: "IMMEDIATELY";
2866
2757
  };
@@ -2874,7 +2765,7 @@ export declare const actionToggleLaserPointer: {
2874
2765
  trackEvent: {
2875
2766
  category: "menu";
2876
2767
  };
2877
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties): {
2768
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties): {
2878
2769
  appState: {
2879
2770
  selectedElementIds: {};
2880
2771
  selectedGroupIds: {};
@@ -2898,18 +2789,23 @@ export declare const actionToggleLaserPointer: {
2898
2789
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2899
2790
  isBindingEnabled: boolean;
2900
2791
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2901
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2792
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2902
2793
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2903
2794
  frameRendering: {
2904
2795
  enabled: boolean;
2905
2796
  name: boolean;
2906
2797
  outline: boolean;
2907
2798
  clip: boolean;
2799
+ markerName: boolean;
2800
+ markerEnabled: boolean;
2908
2801
  };
2909
2802
  editingFrame: string | null;
2910
2803
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2911
2804
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2912
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2805
+ preferredSelectionTool: {
2806
+ type: "selection" | "lasso";
2807
+ initialized: boolean;
2808
+ };
2913
2809
  penMode: boolean;
2914
2810
  penDetected: boolean;
2915
2811
  exportBackground: boolean;
@@ -2931,6 +2827,7 @@ export declare const actionToggleLaserPointer: {
2931
2827
  currentHoveredFontFamily: number | null;
2932
2828
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2933
2829
  currentItemArrowType: "round" | "sharp" | "elbow";
2830
+ currentItemFrameRole: ("marker" | null) | undefined;
2934
2831
  viewBackgroundColor: string;
2935
2832
  scrollX: number;
2936
2833
  scrollY: number;
@@ -2942,19 +2839,21 @@ export declare const actionToggleLaserPointer: {
2942
2839
  zoom: Readonly<{
2943
2840
  value: import("../types").NormalizedZoomValue;
2944
2841
  }>;
2945
- openMenu: "shape" | "canvas" | null;
2946
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2842
+ openMenu: "canvas" | "shape" | null;
2843
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2947
2844
  openSidebar: {
2948
2845
  name: string;
2949
2846
  tab?: string | undefined;
2950
2847
  } | null;
2951
2848
  openDialog: {
2952
- name: "help" | "imageExport" | "jsonExport";
2849
+ name: "imageExport" | "help" | "jsonExport";
2953
2850
  } | {
2954
2851
  name: "ttd";
2955
2852
  tab: "mermaid" | "text-to-diagram";
2956
2853
  } | {
2957
2854
  name: "commandPalette";
2855
+ } | {
2856
+ name: "settings";
2958
2857
  } | {
2959
2858
  name: "elementLinkSelector";
2960
2859
  sourceElementId: string;
@@ -3018,10 +2917,8 @@ export declare const actionToggleLaserPointer: {
3018
2917
  shown: true;
3019
2918
  data: import("../charts").Spreadsheet;
3020
2919
  };
3021
- pendingImageElementId: string | null;
3022
- showHyperlinkPopup: false | "editor" | "info";
2920
+ showHyperlinkPopup: false | "info" | "editor";
3023
2921
  linkOpacity: number;
3024
- trayModeEnabled: boolean;
3025
2922
  colorPalette?: {
3026
2923
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
3027
2924
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -3034,6 +2931,7 @@ export declare const actionToggleLaserPointer: {
3034
2931
  } | undefined;
3035
2932
  allowWheelZoom?: boolean | undefined;
3036
2933
  allowPinchZoom?: boolean | undefined;
2934
+ disableContextMenu: boolean;
3037
2935
  pinnedScripts?: string[] | undefined;
3038
2936
  customPens?: any[] | undefined;
3039
2937
  currentStrokeOptions?: any;
@@ -3042,6 +2940,10 @@ export declare const actionToggleLaserPointer: {
3042
2940
  Bold: string;
3043
2941
  Regular: string;
3044
2942
  };
2943
+ gridDirection: {
2944
+ horizontal: boolean;
2945
+ vertical: boolean;
2946
+ };
3045
2947
  highlightSearchResult: boolean;
3046
2948
  dynamicStyle: {
3047
2949
  [x: string]: string;
@@ -3052,7 +2954,7 @@ export declare const actionToggleLaserPointer: {
3052
2954
  nameColor: string;
3053
2955
  };
3054
2956
  invertBindingBehaviour: boolean;
3055
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2957
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
3056
2958
  snapLines: readonly import("../snapping").SnapLine[];
3057
2959
  originSnapOffset: {
3058
2960
  x: number;
@@ -3063,16 +2965,15 @@ export declare const actionToggleLaserPointer: {
3063
2965
  followedBy: Set<import("../types").SocketId>;
3064
2966
  isCropping: boolean;
3065
2967
  croppingElementId: string | null;
3066
- searchMatches: readonly {
3067
- id: string;
3068
- focus: boolean;
3069
- matchedLines: {
3070
- offsetX: number;
3071
- offsetY: number;
3072
- width: number;
3073
- height: number;
3074
- }[];
3075
- }[];
2968
+ searchMatches: Readonly<{
2969
+ focusedId: string | null;
2970
+ matches: readonly import("../types").SearchMatch[];
2971
+ }> | null;
2972
+ activeLockedId: string | null;
2973
+ lockedMultiSelections: {
2974
+ [groupId: string]: true;
2975
+ };
2976
+ bindMode: import("@excalidraw/element/types").BindMode;
3076
2977
  };
3077
2978
  captureUpdate: "NEVER";
3078
2979
  };
@@ -3107,23 +3008,28 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3107
3008
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3108
3009
  isBindingEnabled: boolean;
3109
3010
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
3110
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
3011
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
3111
3012
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
3112
3013
  frameRendering: {
3113
3014
  enabled: boolean;
3114
3015
  name: boolean;
3115
3016
  outline: boolean;
3116
3017
  clip: boolean;
3018
+ markerName: boolean;
3019
+ markerEnabled: boolean;
3117
3020
  };
3118
3021
  editingFrame: string | null;
3119
3022
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
3120
3023
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3121
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
3122
3024
  activeTool: {
3123
3025
  lastActiveTool: import("../types").ActiveTool | null;
3124
3026
  locked: boolean;
3125
3027
  fromSelection: boolean;
3126
3028
  } & import("../types").ActiveTool;
3029
+ preferredSelectionTool: {
3030
+ type: "selection" | "lasso";
3031
+ initialized: boolean;
3032
+ };
3127
3033
  penMode: boolean;
3128
3034
  penDetected: boolean;
3129
3035
  exportBackground: boolean;
@@ -3145,25 +3051,28 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3145
3051
  currentHoveredFontFamily: number | null;
3146
3052
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
3147
3053
  currentItemArrowType: "round" | "sharp" | "elbow";
3054
+ currentItemFrameRole: ("marker" | null) | undefined;
3148
3055
  viewBackgroundColor: string;
3149
3056
  cursorButton: "up" | "down";
3150
3057
  scrolledOutside: boolean;
3151
3058
  name: string | null;
3152
3059
  isResizing: boolean;
3153
3060
  isRotating: boolean;
3154
- openMenu: "shape" | "canvas" | null;
3155
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
3061
+ openMenu: "canvas" | "shape" | null;
3062
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
3156
3063
  openSidebar: {
3157
3064
  name: string;
3158
3065
  tab?: string | undefined;
3159
3066
  } | null;
3160
3067
  openDialog: {
3161
- name: "help" | "imageExport" | "jsonExport";
3068
+ name: "imageExport" | "help" | "jsonExport";
3162
3069
  } | {
3163
3070
  name: "ttd";
3164
3071
  tab: "mermaid" | "text-to-diagram";
3165
3072
  } | {
3166
3073
  name: "commandPalette";
3074
+ } | {
3075
+ name: "settings";
3167
3076
  } | {
3168
3077
  name: "elementLinkSelector";
3169
3078
  sourceElementId: string;
@@ -3233,10 +3142,8 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3233
3142
  shown: true;
3234
3143
  data: import("../charts").Spreadsheet;
3235
3144
  };
3236
- pendingImageElementId: string | null;
3237
- showHyperlinkPopup: false | "editor" | "info";
3145
+ showHyperlinkPopup: false | "info" | "editor";
3238
3146
  linkOpacity: number;
3239
- trayModeEnabled: boolean;
3240
3147
  colorPalette?: {
3241
3148
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
3242
3149
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -3249,6 +3156,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3249
3156
  } | undefined;
3250
3157
  allowWheelZoom?: boolean | undefined;
3251
3158
  allowPinchZoom?: boolean | undefined;
3159
+ disableContextMenu: boolean;
3252
3160
  pinnedScripts?: string[] | undefined;
3253
3161
  customPens?: any[] | undefined;
3254
3162
  currentStrokeOptions?: any;
@@ -3257,6 +3165,10 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3257
3165
  Bold: string;
3258
3166
  Regular: string;
3259
3167
  };
3168
+ gridDirection: {
3169
+ horizontal: boolean;
3170
+ vertical: boolean;
3171
+ };
3260
3172
  highlightSearchResult: boolean;
3261
3173
  dynamicStyle: {
3262
3174
  [x: string]: string;
@@ -3267,7 +3179,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3267
3179
  nameColor: string;
3268
3180
  };
3269
3181
  invertBindingBehaviour: boolean;
3270
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
3182
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
3271
3183
  snapLines: readonly import("../snapping").SnapLine[];
3272
3184
  originSnapOffset: {
3273
3185
  x: number;
@@ -3278,16 +3190,15 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3278
3190
  followedBy: Set<import("../types").SocketId>;
3279
3191
  isCropping: boolean;
3280
3192
  croppingElementId: string | null;
3281
- searchMatches: readonly {
3282
- id: string;
3283
- focus: boolean;
3284
- matchedLines: {
3285
- offsetX: number;
3286
- offsetY: number;
3287
- width: number;
3288
- height: number;
3289
- }[];
3290
- }[];
3193
+ searchMatches: Readonly<{
3194
+ focusedId: string | null;
3195
+ matches: readonly import("../types").SearchMatch[];
3196
+ }> | null;
3197
+ activeLockedId: string | null;
3198
+ lockedMultiSelections: {
3199
+ [groupId: string]: true;
3200
+ };
3201
+ bindMode: import("@excalidraw/element/types").BindMode;
3291
3202
  };
3292
3203
  commitToHistory: boolean;
3293
3204
  };