@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
@@ -5,7 +5,7 @@ export declare const actionCopyElementLink: {
5
5
  trackEvent: {
6
6
  category: "element";
7
7
  };
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
9
9
  appState: {
10
10
  toast: {
11
11
  message: string;
@@ -29,7 +29,7 @@ export declare const actionLinkToElement: {
29
29
  name: "linkToElement";
30
30
  label: string;
31
31
  icon: import("react/jsx-runtime").JSX.Element;
32
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
32
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
33
33
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
34
34
  appState: Readonly<import("../types").AppState>;
35
35
  app: import("../types").AppClassProperties;
@@ -58,23 +58,28 @@ export declare const actionLinkToElement: {
58
58
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
59
59
  isBindingEnabled: boolean;
60
60
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
61
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
61
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
62
62
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
63
63
  frameRendering: {
64
64
  enabled: boolean;
65
65
  name: boolean;
66
66
  outline: boolean;
67
67
  clip: boolean;
68
+ markerName: boolean;
69
+ markerEnabled: boolean;
68
70
  };
69
71
  editingFrame: string | null;
70
72
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
71
73
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
72
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
73
74
  activeTool: {
74
75
  lastActiveTool: import("../types").ActiveTool | null;
75
76
  locked: boolean;
76
77
  fromSelection: boolean;
77
78
  } & import("../types").ActiveTool;
79
+ preferredSelectionTool: {
80
+ type: "selection" | "lasso";
81
+ initialized: boolean;
82
+ };
78
83
  penMode: boolean;
79
84
  penDetected: boolean;
80
85
  exportBackground: boolean;
@@ -96,6 +101,7 @@ export declare const actionLinkToElement: {
96
101
  currentHoveredFontFamily: number | null;
97
102
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
98
103
  currentItemArrowType: "round" | "sharp" | "elbow";
104
+ currentItemFrameRole: ("marker" | null) | undefined;
99
105
  viewBackgroundColor: string;
100
106
  scrollX: number;
101
107
  scrollY: number;
@@ -107,8 +113,8 @@ export declare const actionLinkToElement: {
107
113
  zoom: Readonly<{
108
114
  value: import("../types").NormalizedZoomValue;
109
115
  }>;
110
- openMenu: "shape" | "canvas" | null;
111
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
116
+ openMenu: "canvas" | "shape" | null;
117
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
112
118
  openSidebar: {
113
119
  name: string;
114
120
  tab?: string | undefined;
@@ -178,10 +184,8 @@ export declare const actionLinkToElement: {
178
184
  shown: true;
179
185
  data: import("../charts").Spreadsheet;
180
186
  };
181
- pendingImageElementId: string | null;
182
- showHyperlinkPopup: false | "editor" | "info";
187
+ showHyperlinkPopup: false | "info" | "editor";
183
188
  linkOpacity: number;
184
- trayModeEnabled: boolean;
185
189
  colorPalette?: {
186
190
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
187
191
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -194,6 +198,7 @@ export declare const actionLinkToElement: {
194
198
  } | undefined;
195
199
  allowWheelZoom?: boolean | undefined;
196
200
  allowPinchZoom?: boolean | undefined;
201
+ disableContextMenu: boolean;
197
202
  pinnedScripts?: string[] | undefined;
198
203
  customPens?: any[] | undefined;
199
204
  currentStrokeOptions?: any;
@@ -202,6 +207,10 @@ export declare const actionLinkToElement: {
202
207
  Bold: string;
203
208
  Regular: string;
204
209
  };
210
+ gridDirection: {
211
+ horizontal: boolean;
212
+ vertical: boolean;
213
+ };
205
214
  highlightSearchResult: boolean;
206
215
  dynamicStyle: {
207
216
  [x: string]: string;
@@ -212,7 +221,7 @@ export declare const actionLinkToElement: {
212
221
  nameColor: string;
213
222
  };
214
223
  invertBindingBehaviour: boolean;
215
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
224
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
216
225
  snapLines: readonly import("../snapping").SnapLine[];
217
226
  originSnapOffset: {
218
227
  x: number;
@@ -223,16 +232,15 @@ export declare const actionLinkToElement: {
223
232
  followedBy: Set<import("../types").SocketId>;
224
233
  isCropping: boolean;
225
234
  croppingElementId: string | null;
226
- searchMatches: readonly {
227
- id: string;
228
- focus: boolean;
229
- matchedLines: {
230
- offsetX: number;
231
- offsetY: number;
232
- width: number;
233
- height: number;
234
- }[];
235
- }[];
235
+ searchMatches: Readonly<{
236
+ focusedId: string | null;
237
+ matches: readonly import("../types").SearchMatch[];
238
+ }> | null;
239
+ activeLockedId: string | null;
240
+ lockedMultiSelections: {
241
+ [groupId: string]: true;
242
+ };
243
+ bindMode: import("@excalidraw/element/types").BindMode;
236
244
  };
237
245
  captureUpdate: "IMMEDIATELY";
238
246
  elements?: undefined;
@@ -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>, _: unknown, 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
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
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,28 +95,27 @@ 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;
86
103
  } | null;
87
104
  openDialog: {
88
- name: "help" | "imageExport" | "jsonExport";
105
+ name: "imageExport" | "help" | "jsonExport";
89
106
  } | {
90
107
  name: "ttd";
91
108
  tab: "mermaid" | "text-to-diagram";
92
109
  } | {
93
110
  name: "commandPalette";
111
+ } | {
112
+ name: "settings";
94
113
  } | {
95
114
  name: "elementLinkSelector";
96
115
  sourceElementId: string;
97
116
  } | null;
98
117
  defaultSidebarDockedPreference: boolean;
99
118
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
- selectedElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
119
  hoveredElementIds: Readonly<{
104
120
  [id: string]: true;
105
121
  }>;
@@ -119,9 +135,6 @@ export declare const actionToggleElementLock: {
119
135
  gridStep: number;
120
136
  gridModeEnabled: boolean;
121
137
  viewModeEnabled: boolean;
122
- selectedGroupIds: {
123
- [groupId: string]: boolean;
124
- };
125
138
  editingGroupId: string | null;
126
139
  width: number;
127
140
  height: number;
@@ -160,10 +173,8 @@ export declare const actionToggleElementLock: {
160
173
  shown: true;
161
174
  data: import("../charts").Spreadsheet;
162
175
  };
163
- pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
176
+ showHyperlinkPopup: false | "info" | "editor";
165
177
  linkOpacity: number;
166
- trayModeEnabled: boolean;
167
178
  colorPalette?: {
168
179
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
169
180
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -176,6 +187,7 @@ export declare const actionToggleElementLock: {
176
187
  } | undefined;
177
188
  allowWheelZoom?: boolean | undefined;
178
189
  allowPinchZoom?: boolean | undefined;
190
+ disableContextMenu: boolean;
179
191
  pinnedScripts?: string[] | undefined;
180
192
  customPens?: any[] | undefined;
181
193
  currentStrokeOptions?: any;
@@ -184,6 +196,10 @@ export declare const actionToggleElementLock: {
184
196
  Bold: string;
185
197
  Regular: string;
186
198
  };
199
+ gridDirection: {
200
+ horizontal: boolean;
201
+ vertical: boolean;
202
+ };
187
203
  highlightSearchResult: boolean;
188
204
  dynamicStyle: {
189
205
  [x: string]: string;
@@ -204,22 +220,17 @@ export declare const actionToggleElementLock: {
204
220
  followedBy: Set<import("../types").SocketId>;
205
221
  isCropping: boolean;
206
222
  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
- }[];
223
+ searchMatches: Readonly<{
224
+ focusedId: string | null;
225
+ matches: readonly import("../types").SearchMatch[];
226
+ }> | null;
227
+ bindMode: import("@excalidraw/element/types").BindMode;
217
228
  };
218
229
  captureUpdate: "IMMEDIATELY";
219
230
  };
220
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
231
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
221
232
  } & {
222
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
233
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
223
234
  };
224
235
  export declare const actionUnlockAllElements: {
225
236
  name: "unlockAllElements";
@@ -228,13 +239,18 @@ export declare const actionUnlockAllElements: {
228
239
  };
229
240
  viewMode: false;
230
241
  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>) => {
242
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
243
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
233
244
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
234
245
  appState: {
235
246
  selectedElementIds: {
236
247
  [k: string]: true;
237
248
  };
249
+ selectedGroupIds: {
250
+ [groupId: string]: boolean;
251
+ };
252
+ lockedMultiSelections: {};
253
+ activeLockedId: null;
238
254
  contextMenu: {
239
255
  items: import("../components/ContextMenu").ContextMenuItems;
240
256
  top: number;
@@ -253,23 +269,28 @@ export declare const actionUnlockAllElements: {
253
269
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
270
  isBindingEnabled: boolean;
255
271
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
256
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
272
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
257
273
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
258
274
  frameRendering: {
259
275
  enabled: boolean;
260
276
  name: boolean;
261
277
  outline: boolean;
262
278
  clip: boolean;
279
+ markerName: boolean;
280
+ markerEnabled: boolean;
263
281
  };
264
282
  editingFrame: string | null;
265
283
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
266
284
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
267
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
268
285
  activeTool: {
269
286
  lastActiveTool: import("../types").ActiveTool | null;
270
287
  locked: boolean;
271
288
  fromSelection: boolean;
272
289
  } & import("../types").ActiveTool;
290
+ preferredSelectionTool: {
291
+ type: "selection" | "lasso";
292
+ initialized: boolean;
293
+ };
273
294
  penMode: boolean;
274
295
  penDetected: boolean;
275
296
  exportBackground: boolean;
@@ -291,6 +312,7 @@ export declare const actionUnlockAllElements: {
291
312
  currentHoveredFontFamily: number | null;
292
313
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
293
314
  currentItemArrowType: "round" | "sharp" | "elbow";
315
+ currentItemFrameRole: ("marker" | null) | undefined;
294
316
  viewBackgroundColor: string;
295
317
  scrollX: number;
296
318
  scrollY: number;
@@ -302,19 +324,21 @@ export declare const actionUnlockAllElements: {
302
324
  zoom: Readonly<{
303
325
  value: import("../types").NormalizedZoomValue;
304
326
  }>;
305
- openMenu: "shape" | "canvas" | null;
306
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
327
+ openMenu: "canvas" | "shape" | null;
328
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
307
329
  openSidebar: {
308
330
  name: string;
309
331
  tab?: string | undefined;
310
332
  } | null;
311
333
  openDialog: {
312
- name: "help" | "imageExport" | "jsonExport";
334
+ name: "imageExport" | "help" | "jsonExport";
313
335
  } | {
314
336
  name: "ttd";
315
337
  tab: "mermaid" | "text-to-diagram";
316
338
  } | {
317
339
  name: "commandPalette";
340
+ } | {
341
+ name: "settings";
318
342
  } | {
319
343
  name: "elementLinkSelector";
320
344
  sourceElementId: string;
@@ -340,9 +364,6 @@ export declare const actionUnlockAllElements: {
340
364
  gridStep: number;
341
365
  gridModeEnabled: boolean;
342
366
  viewModeEnabled: boolean;
343
- selectedGroupIds: {
344
- [groupId: string]: boolean;
345
- };
346
367
  editingGroupId: string | null;
347
368
  width: number;
348
369
  height: number;
@@ -381,10 +402,8 @@ export declare const actionUnlockAllElements: {
381
402
  shown: true;
382
403
  data: import("../charts").Spreadsheet;
383
404
  };
384
- pendingImageElementId: string | null;
385
- showHyperlinkPopup: false | "editor" | "info";
405
+ showHyperlinkPopup: false | "info" | "editor";
386
406
  linkOpacity: number;
387
- trayModeEnabled: boolean;
388
407
  colorPalette?: {
389
408
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
390
409
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -397,6 +416,7 @@ export declare const actionUnlockAllElements: {
397
416
  } | undefined;
398
417
  allowWheelZoom?: boolean | undefined;
399
418
  allowPinchZoom?: boolean | undefined;
419
+ disableContextMenu: boolean;
400
420
  pinnedScripts?: string[] | undefined;
401
421
  customPens?: any[] | undefined;
402
422
  currentStrokeOptions?: any;
@@ -405,6 +425,10 @@ export declare const actionUnlockAllElements: {
405
425
  Bold: string;
406
426
  Regular: string;
407
427
  };
428
+ gridDirection: {
429
+ horizontal: boolean;
430
+ vertical: boolean;
431
+ };
408
432
  highlightSearchResult: boolean;
409
433
  dynamicStyle: {
410
434
  [x: string]: string;
@@ -415,7 +439,7 @@ export declare const actionUnlockAllElements: {
415
439
  nameColor: string;
416
440
  };
417
441
  invertBindingBehaviour: boolean;
418
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
442
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
419
443
  snapLines: readonly import("../snapping").SnapLine[];
420
444
  originSnapOffset: {
421
445
  x: number;
@@ -426,16 +450,11 @@ export declare const actionUnlockAllElements: {
426
450
  followedBy: Set<import("../types").SocketId>;
427
451
  isCropping: boolean;
428
452
  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
- }[];
453
+ searchMatches: Readonly<{
454
+ focusedId: string | null;
455
+ matches: readonly import("../types").SearchMatch[];
456
+ }> | null;
457
+ bindMode: import("@excalidraw/element/types").BindMode;
439
458
  };
440
459
  captureUpdate: "IMMEDIATELY";
441
460
  };
@@ -5,7 +5,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
5
5
  };
6
6
  target: string;
7
7
  label: string;
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
9
9
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
10
10
  appState: {
11
11
  activeTool: {
@@ -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
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
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,19 +81,21 @@ 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;
83
89
  } | null;
84
90
  openDialog: {
85
- name: "help" | "imageExport" | "jsonExport";
91
+ name: "imageExport" | "help" | "jsonExport";
86
92
  } | {
87
93
  name: "ttd";
88
94
  tab: "mermaid" | "text-to-diagram";
89
95
  } | {
90
96
  name: "commandPalette";
97
+ } | {
98
+ name: "settings";
91
99
  } | {
92
100
  name: "elementLinkSelector";
93
101
  sourceElementId: string;
@@ -157,10 +165,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
157
165
  shown: true;
158
166
  data: import("../charts").Spreadsheet;
159
167
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
168
+ showHyperlinkPopup: false | "info" | "editor";
162
169
  linkOpacity: number;
163
- trayModeEnabled: boolean;
164
170
  colorPalette?: {
165
171
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
166
172
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -173,6 +179,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
173
179
  } | undefined;
174
180
  allowWheelZoom?: boolean | undefined;
175
181
  allowPinchZoom?: boolean | undefined;
182
+ disableContextMenu: boolean;
176
183
  pinnedScripts?: string[] | undefined;
177
184
  customPens?: any[] | undefined;
178
185
  currentStrokeOptions?: any;
@@ -181,6 +188,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
181
188
  Bold: string;
182
189
  Regular: string;
183
190
  };
191
+ gridDirection: {
192
+ horizontal: boolean;
193
+ vertical: boolean;
194
+ };
184
195
  highlightSearchResult: boolean;
185
196
  dynamicStyle: {
186
197
  [x: string]: string;
@@ -191,7 +202,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
191
202
  nameColor: string;
192
203
  };
193
204
  invertBindingBehaviour: boolean;
194
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
205
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
195
206
  snapLines: readonly import("../snapping").SnapLine[];
196
207
  originSnapOffset: {
197
208
  x: number;
@@ -202,16 +213,15 @@ export declare const actionSetEmbeddableAsActiveTool: {
202
213
  followedBy: Set<import("../types").SocketId>;
203
214
  isCropping: boolean;
204
215
  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
- }[];
216
+ searchMatches: Readonly<{
217
+ focusedId: string | null;
218
+ matches: readonly import("../types").SearchMatch[];
219
+ }> | null;
220
+ activeLockedId: string | null;
221
+ lockedMultiSelections: {
222
+ [groupId: string]: true;
223
+ };
224
+ bindMode: import("@excalidraw/element/types").BindMode;
215
225
  };
216
226
  captureUpdate: "EVENTUALLY";
217
227
  };