@zsviczian/excalidraw 0.18.0-5 → 0.18.0-50

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 (188) hide show
  1. package/dist/excalidraw.development.js +745 -503
  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 +1062 -429
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +14 -3
  7. package/types/common/src/commonObsidianUtils.d.ts +13 -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 +2 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +20 -5
  15. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  16. package/types/element/src/align.d.ts +4 -3
  17. package/types/element/src/binding.d.ts +27 -17
  18. package/types/element/src/bounds.d.ts +14 -6
  19. package/types/element/src/collision.d.ts +18 -12
  20. package/types/element/src/cropElement.d.ts +1 -1
  21. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  22. package/types/element/src/distance.d.ts +2 -2
  23. package/types/element/src/distribute.d.ts +2 -1
  24. package/types/element/src/dragElements.d.ts +3 -2
  25. package/types/element/src/duplicate.d.ts +10 -13
  26. package/types/element/src/elbowArrow.d.ts +1 -1
  27. package/types/element/src/flowchart.d.ts +3 -2
  28. package/types/element/src/fractionalIndex.d.ts +9 -3
  29. package/types/element/src/frame.d.ts +5 -4
  30. package/types/element/src/groups.d.ts +1 -0
  31. package/types/element/src/index.d.ts +44 -2
  32. package/types/element/src/linearElementEditor.d.ts +23 -36
  33. package/types/element/src/mutateElement.d.ts +11 -3
  34. package/types/element/src/newElement.d.ts +6 -4
  35. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  36. package/types/element/src/renderElement.d.ts +4 -1
  37. package/types/element/src/resizeElements.d.ts +6 -5
  38. package/types/element/src/resizeTest.d.ts +5 -4
  39. package/types/element/src/selection.d.ts +11 -5
  40. package/types/element/src/shape.d.ts +42 -0
  41. package/types/element/src/sizeHelpers.d.ts +2 -2
  42. package/types/element/src/store.d.ts +237 -0
  43. package/types/element/src/textElement.d.ts +5 -3
  44. package/types/element/src/transformHandles.d.ts +5 -4
  45. package/types/element/src/typeChecks.d.ts +19 -1
  46. package/types/element/src/types.d.ts +25 -2
  47. package/types/element/src/utils.d.ts +16 -6
  48. package/types/element/src/zindex.d.ts +1 -1
  49. package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
  50. package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
  51. package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
  52. package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
  53. package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
  54. package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
  55. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  56. package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
  57. package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
  58. package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
  59. package/types/excalidraw/actions/actionExport.d.ts +237 -174
  60. package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
  61. package/types/excalidraw/actions/actionFrame.d.ts +157 -120
  62. package/types/excalidraw/actions/actionGroup.d.ts +50 -36
  63. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  64. package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
  65. package/types/excalidraw/actions/actionLink.d.ts +23 -16
  66. package/types/excalidraw/actions/actionMenu.d.ts +25 -456
  67. package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
  68. package/types/excalidraw/actions/actionProperties.d.ts +629 -273
  69. package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
  70. package/types/excalidraw/actions/actionStyles.d.ts +25 -18
  71. package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
  72. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
  73. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
  74. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  75. package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
  76. package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
  77. package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
  78. package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
  79. package/types/excalidraw/actions/index.d.ts +4 -2
  80. package/types/excalidraw/actions/types.d.ts +4 -3
  81. package/types/excalidraw/appState.d.ts +24 -10
  82. package/types/excalidraw/clipboard.d.ts +68 -5
  83. package/types/excalidraw/components/Actions.d.ts +20 -7
  84. package/types/excalidraw/components/App.d.ts +63 -38
  85. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  86. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  87. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  88. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  89. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  90. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  91. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  92. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  93. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  96. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  97. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  98. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  99. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  100. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  101. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  102. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  103. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  104. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  105. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  106. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  107. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  108. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  109. package/types/excalidraw/components/Popover.d.ts +2 -1
  110. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  111. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  112. package/types/excalidraw/components/Range.d.ts +3 -3
  113. package/types/excalidraw/components/Section.d.ts +1 -0
  114. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  115. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  116. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  117. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  118. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  119. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  120. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  121. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  122. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  123. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  124. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  125. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  127. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  128. package/types/excalidraw/components/TextField.d.ts +1 -0
  129. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  130. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  131. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  132. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  133. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  134. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  135. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  136. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  137. package/types/excalidraw/components/icons.d.ts +13 -0
  138. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  139. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  140. package/types/excalidraw/components/shapes.d.ts +115 -5
  141. package/types/excalidraw/data/blob.d.ts +3 -7
  142. package/types/excalidraw/data/reconcile.d.ts +1 -0
  143. package/types/excalidraw/data/restore.d.ts +6 -1
  144. package/types/excalidraw/data/transform.d.ts +1 -1
  145. package/types/excalidraw/data/types.d.ts +4 -1
  146. package/types/excalidraw/editor-jotai.d.ts +6 -6
  147. package/types/excalidraw/eraser/index.d.ts +12 -0
  148. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  149. package/types/excalidraw/history.d.ts +30 -22
  150. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  151. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  152. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  153. package/types/excalidraw/index.d.ts +15 -14
  154. package/types/excalidraw/lasso/index.d.ts +1 -0
  155. package/types/excalidraw/lasso/utils.d.ts +3 -3
  156. package/types/excalidraw/obsidianUtils.d.ts +22 -4
  157. package/types/excalidraw/renderer/helpers.d.ts +7 -2
  158. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  159. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  160. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  161. package/types/excalidraw/scene/index.d.ts +2 -2
  162. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  163. package/types/excalidraw/scene/types.d.ts +5 -3
  164. package/types/excalidraw/shortcut.d.ts +1 -0
  165. package/types/excalidraw/snapping.d.ts +2 -2
  166. package/types/excalidraw/types.d.ts +68 -30
  167. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  168. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  169. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  170. package/types/math/src/angle.d.ts +2 -0
  171. package/types/math/src/constants.d.ts +3 -0
  172. package/types/math/src/curve.d.ts +34 -0
  173. package/types/math/src/index.d.ts +1 -0
  174. package/types/math/src/point.d.ts +1 -1
  175. package/types/math/src/rectangle.d.ts +2 -0
  176. package/types/math/src/segment.d.ts +1 -0
  177. package/types/math/src/types.d.ts +1 -0
  178. package/types/math/src/vector.d.ts +8 -2
  179. package/types/utils/src/bbox.d.ts +1 -1
  180. package/types/utils/src/index.d.ts +1 -1
  181. package/types/utils/src/withinBounds.d.ts +1 -1
  182. package/types/element/src/Shape.d.ts +0 -17
  183. package/types/element/src/ShapeCache.d.ts +0 -25
  184. package/types/element/src/shapes.d.ts +0 -23
  185. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  186. package/types/excalidraw/store.d.ts +0 -129
  187. package/types/excalidraw/visualdebug.d.ts +0 -41
  188. package/types/utils/src/collision.d.ts +0 -8
@@ -1,16 +1,27 @@
1
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { AppState } from "../types";
2
3
  export declare const actionToggleElementLock: {
3
4
  name: "toggleElementLock";
4
- label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
5
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
5
6
  icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
6
7
  trackEvent: {
7
8
  category: "element";
8
9
  };
9
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
10
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
13
  appState: {
13
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
14
+ selectedElementIds: Readonly<{
15
+ [id: string]: true;
16
+ }>;
17
+ selectedGroupIds: {
18
+ [groupId: string]: boolean;
19
+ };
20
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
21
+ lockedMultiSelections: {
22
+ [x: string]: true;
23
+ };
24
+ activeLockedId: string | null;
14
25
  contextMenu: {
15
26
  items: import("../components/ContextMenu").ContextMenuItems;
16
27
  top: number;
@@ -29,23 +40,28 @@ export declare const actionToggleElementLock: {
29
40
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
41
  isBindingEnabled: boolean;
31
42
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
43
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
44
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
45
  frameRendering: {
35
46
  enabled: boolean;
36
47
  name: boolean;
37
48
  outline: boolean;
38
49
  clip: boolean;
50
+ markerName: boolean;
51
+ markerEnabled: boolean;
39
52
  };
40
53
  editingFrame: string | null;
41
54
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
55
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
56
  activeTool: {
45
57
  lastActiveTool: import("../types").ActiveTool | null;
46
58
  locked: boolean;
47
59
  fromSelection: boolean;
48
60
  } & import("../types").ActiveTool;
61
+ preferredSelectionTool: {
62
+ type: "selection" | "lasso";
63
+ initialized: boolean;
64
+ };
49
65
  penMode: boolean;
50
66
  penDetected: boolean;
51
67
  exportBackground: boolean;
@@ -67,6 +83,7 @@ export declare const actionToggleElementLock: {
67
83
  currentHoveredFontFamily: number | null;
68
84
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
85
  currentItemArrowType: "round" | "sharp" | "elbow";
86
+ currentItemFrameRole: ("marker" | null) | undefined;
70
87
  viewBackgroundColor: string;
71
88
  scrollX: number;
72
89
  scrollY: number;
@@ -78,8 +95,8 @@ export declare const actionToggleElementLock: {
78
95
  zoom: Readonly<{
79
96
  value: import("../types").NormalizedZoomValue;
80
97
  }>;
81
- openMenu: "shape" | "canvas" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
98
+ openMenu: "canvas" | "shape" | null;
99
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
100
  openSidebar: {
84
101
  name: string;
85
102
  tab?: string | undefined;
@@ -97,9 +114,6 @@ export declare const actionToggleElementLock: {
97
114
  } | null;
98
115
  defaultSidebarDockedPreference: boolean;
99
116
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
- selectedElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
117
  hoveredElementIds: Readonly<{
104
118
  [id: string]: true;
105
119
  }>;
@@ -119,9 +133,6 @@ export declare const actionToggleElementLock: {
119
133
  gridStep: number;
120
134
  gridModeEnabled: boolean;
121
135
  viewModeEnabled: boolean;
122
- selectedGroupIds: {
123
- [groupId: string]: boolean;
124
- };
125
136
  editingGroupId: string | null;
126
137
  width: number;
127
138
  height: number;
@@ -160,10 +171,8 @@ export declare const actionToggleElementLock: {
160
171
  shown: true;
161
172
  data: import("../charts").Spreadsheet;
162
173
  };
163
- pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
174
+ showHyperlinkPopup: false | "info" | "editor";
165
175
  linkOpacity: number;
166
- trayModeEnabled: boolean;
167
176
  colorPalette?: {
168
177
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
169
178
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -176,6 +185,7 @@ export declare const actionToggleElementLock: {
176
185
  } | undefined;
177
186
  allowWheelZoom?: boolean | undefined;
178
187
  allowPinchZoom?: boolean | undefined;
188
+ disableContextMenu: boolean;
179
189
  pinnedScripts?: string[] | undefined;
180
190
  customPens?: any[] | undefined;
181
191
  currentStrokeOptions?: any;
@@ -184,6 +194,10 @@ export declare const actionToggleElementLock: {
184
194
  Bold: string;
185
195
  Regular: string;
186
196
  };
197
+ gridDirection: {
198
+ horizontal: boolean;
199
+ vertical: boolean;
200
+ };
187
201
  highlightSearchResult: boolean;
188
202
  dynamicStyle: {
189
203
  [x: string]: string;
@@ -204,22 +218,16 @@ export declare const actionToggleElementLock: {
204
218
  followedBy: Set<import("../types").SocketId>;
205
219
  isCropping: boolean;
206
220
  croppingElementId: string | null;
207
- searchMatches: readonly {
208
- id: string;
209
- focus: boolean;
210
- matchedLines: {
211
- offsetX: number;
212
- offsetY: number;
213
- width: number;
214
- height: number;
215
- }[];
216
- }[];
221
+ searchMatches: Readonly<{
222
+ focusedId: string | null;
223
+ matches: readonly import("../types").SearchMatch[];
224
+ }> | null;
217
225
  };
218
226
  captureUpdate: "IMMEDIATELY";
219
227
  };
220
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
228
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
221
229
  } & {
222
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
230
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
223
231
  };
224
232
  export declare const actionUnlockAllElements: {
225
233
  name: "unlockAllElements";
@@ -228,13 +236,18 @@ export declare const actionUnlockAllElements: {
228
236
  };
229
237
  viewMode: false;
230
238
  icon: import("react/jsx-runtime").JSX.Element;
231
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
232
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
239
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
240
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
233
241
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
234
242
  appState: {
235
243
  selectedElementIds: {
236
244
  [k: string]: true;
237
245
  };
246
+ selectedGroupIds: {
247
+ [groupId: string]: boolean;
248
+ };
249
+ lockedMultiSelections: {};
250
+ activeLockedId: null;
238
251
  contextMenu: {
239
252
  items: import("../components/ContextMenu").ContextMenuItems;
240
253
  top: number;
@@ -253,23 +266,28 @@ export declare const actionUnlockAllElements: {
253
266
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
267
  isBindingEnabled: boolean;
255
268
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
256
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
269
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
257
270
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
258
271
  frameRendering: {
259
272
  enabled: boolean;
260
273
  name: boolean;
261
274
  outline: boolean;
262
275
  clip: boolean;
276
+ markerName: boolean;
277
+ markerEnabled: boolean;
263
278
  };
264
279
  editingFrame: string | null;
265
280
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
266
281
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
267
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
268
282
  activeTool: {
269
283
  lastActiveTool: import("../types").ActiveTool | null;
270
284
  locked: boolean;
271
285
  fromSelection: boolean;
272
286
  } & import("../types").ActiveTool;
287
+ preferredSelectionTool: {
288
+ type: "selection" | "lasso";
289
+ initialized: boolean;
290
+ };
273
291
  penMode: boolean;
274
292
  penDetected: boolean;
275
293
  exportBackground: boolean;
@@ -291,6 +309,7 @@ export declare const actionUnlockAllElements: {
291
309
  currentHoveredFontFamily: number | null;
292
310
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
293
311
  currentItemArrowType: "round" | "sharp" | "elbow";
312
+ currentItemFrameRole: ("marker" | null) | undefined;
294
313
  viewBackgroundColor: string;
295
314
  scrollX: number;
296
315
  scrollY: number;
@@ -302,8 +321,8 @@ export declare const actionUnlockAllElements: {
302
321
  zoom: Readonly<{
303
322
  value: import("../types").NormalizedZoomValue;
304
323
  }>;
305
- openMenu: "shape" | "canvas" | null;
306
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
324
+ openMenu: "canvas" | "shape" | null;
325
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
307
326
  openSidebar: {
308
327
  name: string;
309
328
  tab?: string | undefined;
@@ -340,9 +359,6 @@ export declare const actionUnlockAllElements: {
340
359
  gridStep: number;
341
360
  gridModeEnabled: boolean;
342
361
  viewModeEnabled: boolean;
343
- selectedGroupIds: {
344
- [groupId: string]: boolean;
345
- };
346
362
  editingGroupId: string | null;
347
363
  width: number;
348
364
  height: number;
@@ -381,10 +397,8 @@ export declare const actionUnlockAllElements: {
381
397
  shown: true;
382
398
  data: import("../charts").Spreadsheet;
383
399
  };
384
- pendingImageElementId: string | null;
385
- showHyperlinkPopup: false | "editor" | "info";
400
+ showHyperlinkPopup: false | "info" | "editor";
386
401
  linkOpacity: number;
387
- trayModeEnabled: boolean;
388
402
  colorPalette?: {
389
403
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
390
404
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -397,6 +411,7 @@ export declare const actionUnlockAllElements: {
397
411
  } | undefined;
398
412
  allowWheelZoom?: boolean | undefined;
399
413
  allowPinchZoom?: boolean | undefined;
414
+ disableContextMenu: boolean;
400
415
  pinnedScripts?: string[] | undefined;
401
416
  customPens?: any[] | undefined;
402
417
  currentStrokeOptions?: any;
@@ -405,6 +420,10 @@ export declare const actionUnlockAllElements: {
405
420
  Bold: string;
406
421
  Regular: string;
407
422
  };
423
+ gridDirection: {
424
+ horizontal: boolean;
425
+ vertical: boolean;
426
+ };
408
427
  highlightSearchResult: boolean;
409
428
  dynamicStyle: {
410
429
  [x: string]: string;
@@ -415,7 +434,7 @@ export declare const actionUnlockAllElements: {
415
434
  nameColor: string;
416
435
  };
417
436
  invertBindingBehaviour: boolean;
418
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
437
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
419
438
  snapLines: readonly import("../snapping").SnapLine[];
420
439
  originSnapOffset: {
421
440
  x: number;
@@ -426,16 +445,10 @@ export declare const actionUnlockAllElements: {
426
445
  followedBy: Set<import("../types").SocketId>;
427
446
  isCropping: boolean;
428
447
  croppingElementId: string | null;
429
- searchMatches: readonly {
430
- id: string;
431
- focus: boolean;
432
- matchedLines: {
433
- offsetX: number;
434
- offsetY: number;
435
- width: number;
436
- height: number;
437
- }[];
438
- }[];
448
+ searchMatches: Readonly<{
449
+ focusedId: string | null;
450
+ matches: readonly import("../types").SearchMatch[];
451
+ }> | null;
439
452
  };
440
453
  captureUpdate: "IMMEDIATELY";
441
454
  };
@@ -31,18 +31,23 @@ export declare const actionSetEmbeddableAsActiveTool: {
31
31
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
32
  isBindingEnabled: boolean;
33
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
34
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
35
35
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
36
  frameRendering: {
37
37
  enabled: boolean;
38
38
  name: boolean;
39
39
  outline: boolean;
40
40
  clip: boolean;
41
+ markerName: boolean;
42
+ markerEnabled: boolean;
41
43
  };
42
44
  editingFrame: string | null;
43
45
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
46
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
47
+ preferredSelectionTool: {
48
+ type: "selection" | "lasso";
49
+ initialized: boolean;
50
+ };
46
51
  penMode: boolean;
47
52
  penDetected: boolean;
48
53
  exportBackground: boolean;
@@ -64,6 +69,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
64
69
  currentHoveredFontFamily: number | null;
65
70
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
71
  currentItemArrowType: "round" | "sharp" | "elbow";
72
+ currentItemFrameRole: ("marker" | null) | undefined;
67
73
  viewBackgroundColor: string;
68
74
  scrollX: number;
69
75
  scrollY: number;
@@ -75,8 +81,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
75
81
  zoom: Readonly<{
76
82
  value: import("../types").NormalizedZoomValue;
77
83
  }>;
78
- openMenu: "shape" | "canvas" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | "shape" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
86
  openSidebar: {
81
87
  name: string;
82
88
  tab?: string | undefined;
@@ -157,10 +163,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
157
163
  shown: true;
158
164
  data: import("../charts").Spreadsheet;
159
165
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
166
+ showHyperlinkPopup: false | "info" | "editor";
162
167
  linkOpacity: number;
163
- trayModeEnabled: boolean;
164
168
  colorPalette?: {
165
169
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
166
170
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -173,6 +177,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
173
177
  } | undefined;
174
178
  allowWheelZoom?: boolean | undefined;
175
179
  allowPinchZoom?: boolean | undefined;
180
+ disableContextMenu: boolean;
176
181
  pinnedScripts?: string[] | undefined;
177
182
  customPens?: any[] | undefined;
178
183
  currentStrokeOptions?: any;
@@ -181,6 +186,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
181
186
  Bold: string;
182
187
  Regular: string;
183
188
  };
189
+ gridDirection: {
190
+ horizontal: boolean;
191
+ vertical: boolean;
192
+ };
184
193
  highlightSearchResult: boolean;
185
194
  dynamicStyle: {
186
195
  [x: string]: string;
@@ -191,7 +200,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
191
200
  nameColor: string;
192
201
  };
193
202
  invertBindingBehaviour: boolean;
194
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
203
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
195
204
  snapLines: readonly import("../snapping").SnapLine[];
196
205
  originSnapOffset: {
197
206
  x: number;
@@ -202,16 +211,14 @@ export declare const actionSetEmbeddableAsActiveTool: {
202
211
  followedBy: Set<import("../types").SocketId>;
203
212
  isCropping: boolean;
204
213
  croppingElementId: string | null;
205
- searchMatches: readonly {
206
- id: string;
207
- focus: boolean;
208
- matchedLines: {
209
- offsetX: number;
210
- offsetY: number;
211
- width: number;
212
- height: number;
213
- }[];
214
- }[];
214
+ searchMatches: Readonly<{
215
+ focusedId: string | null;
216
+ matches: readonly import("../types").SearchMatch[];
217
+ }> | null;
218
+ activeLockedId: string | null;
219
+ lockedMultiSelections: {
220
+ [groupId: string]: true;
221
+ };
215
222
  };
216
223
  captureUpdate: "EVENTUALLY";
217
224
  };