@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
@@ -7,7 +7,7 @@ export declare const actionToggleCropEditor: {
7
7
  category: "menu";
8
8
  };
9
9
  keywords: string[];
10
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
10
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
11
11
  appState: {
12
12
  isCropping: false;
13
13
  croppingElementId: string;
@@ -29,23 +29,28 @@ export declare const actionToggleCropEditor: {
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
33
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
36
36
  name: boolean;
37
37
  outline: boolean;
38
38
  clip: boolean;
39
+ markerName: boolean;
40
+ markerEnabled: boolean;
39
41
  };
40
42
  editingFrame: string | null;
41
43
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
44
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
45
  activeTool: {
45
46
  lastActiveTool: import("../types").ActiveTool | null;
46
47
  locked: boolean;
47
48
  fromSelection: boolean;
48
49
  } & import("../types").ActiveTool;
50
+ preferredSelectionTool: {
51
+ type: "selection" | "lasso";
52
+ initialized: boolean;
53
+ };
49
54
  penMode: boolean;
50
55
  penDetected: boolean;
51
56
  exportBackground: boolean;
@@ -67,6 +72,7 @@ export declare const actionToggleCropEditor: {
67
72
  currentHoveredFontFamily: number | null;
68
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
74
  currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemFrameRole: ("marker" | null) | undefined;
70
76
  viewBackgroundColor: string;
71
77
  scrollX: number;
72
78
  scrollY: number;
@@ -78,19 +84,21 @@ export declare const actionToggleCropEditor: {
78
84
  zoom: Readonly<{
79
85
  value: import("../types").NormalizedZoomValue;
80
86
  }>;
81
- openMenu: "shape" | "canvas" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
87
+ openMenu: "canvas" | "shape" | null;
88
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
89
  openSidebar: {
84
90
  name: string;
85
91
  tab?: string | undefined;
86
92
  } | null;
87
93
  openDialog: {
88
- name: "help" | "imageExport" | "jsonExport";
94
+ name: "imageExport" | "help" | "jsonExport";
89
95
  } | {
90
96
  name: "ttd";
91
97
  tab: "mermaid" | "text-to-diagram";
92
98
  } | {
93
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
94
102
  } | {
95
103
  name: "elementLinkSelector";
96
104
  sourceElementId: string;
@@ -160,10 +168,8 @@ export declare const actionToggleCropEditor: {
160
168
  shown: true;
161
169
  data: import("../charts").Spreadsheet;
162
170
  };
163
- pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
171
+ showHyperlinkPopup: false | "info" | "editor";
165
172
  linkOpacity: number;
166
- trayModeEnabled: boolean;
167
173
  colorPalette?: {
168
174
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
169
175
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -176,6 +182,7 @@ export declare const actionToggleCropEditor: {
176
182
  } | undefined;
177
183
  allowWheelZoom?: boolean | undefined;
178
184
  allowPinchZoom?: boolean | undefined;
185
+ disableContextMenu: boolean;
179
186
  pinnedScripts?: string[] | undefined;
180
187
  customPens?: any[] | undefined;
181
188
  currentStrokeOptions?: any;
@@ -184,6 +191,10 @@ export declare const actionToggleCropEditor: {
184
191
  Bold: string;
185
192
  Regular: string;
186
193
  };
194
+ gridDirection: {
195
+ horizontal: boolean;
196
+ vertical: boolean;
197
+ };
187
198
  highlightSearchResult: boolean;
188
199
  dynamicStyle: {
189
200
  [x: string]: string;
@@ -194,7 +205,7 @@ export declare const actionToggleCropEditor: {
194
205
  nameColor: string;
195
206
  };
196
207
  invertBindingBehaviour: boolean;
197
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
208
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
198
209
  snapLines: readonly import("../snapping").SnapLine[];
199
210
  originSnapOffset: {
200
211
  x: number;
@@ -203,16 +214,15 @@ export declare const actionToggleCropEditor: {
203
214
  objectsSnapModeEnabled: boolean;
204
215
  userToFollow: import("../types").UserToFollow | null;
205
216
  followedBy: Set<import("../types").SocketId>;
206
- searchMatches: readonly {
207
- id: string;
208
- focus: boolean;
209
- matchedLines: {
210
- offsetX: number;
211
- offsetY: number;
212
- width: number;
213
- height: number;
214
- }[];
215
- }[];
217
+ searchMatches: Readonly<{
218
+ focusedId: string | null;
219
+ matches: readonly import("../types").SearchMatch[];
220
+ }> | null;
221
+ activeLockedId: string | null;
222
+ lockedMultiSelections: {
223
+ [groupId: string]: true;
224
+ };
225
+ bindMode: import("@excalidraw/element/types").BindMode;
216
226
  };
217
227
  captureUpdate: "IMMEDIATELY";
218
228
  };
@@ -1,4 +1,3 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionDeleteSelected: {
@@ -9,10 +8,10 @@ export declare const actionDeleteSelected: {
9
8
  category: "element";
10
9
  action: string;
11
10
  };
12
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
13
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
14
13
  appState: {
15
- editingLinearElement: null;
14
+ selectedLinearElement: null;
16
15
  contextMenu: {
17
16
  items: import("../components/ContextMenu").ContextMenuItems;
18
17
  top: number;
@@ -31,13 +30,15 @@ export declare const actionDeleteSelected: {
31
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
31
  isBindingEnabled: boolean;
33
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
35
  frameRendering: {
37
36
  enabled: boolean;
38
37
  name: boolean;
39
38
  outline: boolean;
40
39
  clip: boolean;
40
+ markerName: boolean;
41
+ markerEnabled: boolean;
41
42
  };
42
43
  editingFrame: string | null;
43
44
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -47,6 +48,10 @@ export declare const actionDeleteSelected: {
47
48
  locked: boolean;
48
49
  fromSelection: boolean;
49
50
  } & import("../types").ActiveTool;
51
+ preferredSelectionTool: {
52
+ type: "selection" | "lasso";
53
+ initialized: boolean;
54
+ };
50
55
  penMode: boolean;
51
56
  penDetected: boolean;
52
57
  exportBackground: boolean;
@@ -68,6 +73,7 @@ export declare const actionDeleteSelected: {
68
73
  currentHoveredFontFamily: number | null;
69
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
70
75
  currentItemArrowType: "round" | "sharp" | "elbow";
76
+ currentItemFrameRole: ("marker" | null) | undefined;
71
77
  viewBackgroundColor: string;
72
78
  scrollX: number;
73
79
  scrollY: number;
@@ -79,19 +85,21 @@ export declare const actionDeleteSelected: {
79
85
  zoom: Readonly<{
80
86
  value: import("../types").NormalizedZoomValue;
81
87
  }>;
82
- openMenu: "shape" | "canvas" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
88
+ openMenu: "canvas" | "shape" | null;
89
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
90
  openSidebar: {
85
91
  name: string;
86
92
  tab?: string | undefined;
87
93
  } | null;
88
94
  openDialog: {
89
- name: "help" | "imageExport" | "jsonExport";
95
+ name: "imageExport" | "help" | "jsonExport";
90
96
  } | {
91
97
  name: "ttd";
92
98
  tab: "mermaid" | "text-to-diagram";
93
99
  } | {
94
100
  name: "commandPalette";
101
+ } | {
102
+ name: "settings";
95
103
  } | {
96
104
  name: "elementLinkSelector";
97
105
  sourceElementId: string;
@@ -161,10 +169,8 @@ export declare const actionDeleteSelected: {
161
169
  shown: true;
162
170
  data: import("../charts").Spreadsheet;
163
171
  };
164
- pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "editor" | "info";
172
+ showHyperlinkPopup: false | "info" | "editor";
166
173
  linkOpacity: number;
167
- trayModeEnabled: boolean;
168
174
  colorPalette?: {
169
175
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
170
176
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -177,6 +183,7 @@ export declare const actionDeleteSelected: {
177
183
  } | undefined;
178
184
  allowWheelZoom?: boolean | undefined;
179
185
  allowPinchZoom?: boolean | undefined;
186
+ disableContextMenu: boolean;
180
187
  pinnedScripts?: string[] | undefined;
181
188
  customPens?: any[] | undefined;
182
189
  currentStrokeOptions?: any;
@@ -185,6 +192,10 @@ export declare const actionDeleteSelected: {
185
192
  Bold: string;
186
193
  Regular: string;
187
194
  };
195
+ gridDirection: {
196
+ horizontal: boolean;
197
+ vertical: boolean;
198
+ };
188
199
  highlightSearchResult: boolean;
189
200
  dynamicStyle: {
190
201
  [x: string]: string;
@@ -195,7 +206,6 @@ export declare const actionDeleteSelected: {
195
206
  nameColor: string;
196
207
  };
197
208
  invertBindingBehaviour: boolean;
198
- selectedLinearElement: LinearElementEditor | null;
199
209
  snapLines: readonly import("../snapping").SnapLine[];
200
210
  originSnapOffset: {
201
211
  x: number;
@@ -206,44 +216,40 @@ export declare const actionDeleteSelected: {
206
216
  followedBy: Set<import("../types").SocketId>;
207
217
  isCropping: boolean;
208
218
  croppingElementId: string | null;
209
- searchMatches: readonly {
210
- id: string;
211
- focus: boolean;
212
- matchedLines: {
213
- offsetX: number;
214
- offsetY: number;
215
- width: number;
216
- height: number;
217
- }[];
218
- }[];
219
+ searchMatches: Readonly<{
220
+ focusedId: string | null;
221
+ matches: readonly import("../types").SearchMatch[];
222
+ }> | null;
223
+ activeLockedId: string | null;
224
+ lockedMultiSelections: {
225
+ [groupId: string]: true;
226
+ };
227
+ bindMode: import("@excalidraw/element/types").BindMode;
219
228
  };
220
229
  captureUpdate: "IMMEDIATELY";
221
230
  } | {
222
231
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
223
232
  appState: {
224
- editingLinearElement: {
233
+ selectedLinearElement: {
225
234
  selectedPointsIndices: number[];
226
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
227
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
228
235
  elementId: string & {
229
236
  _brand: "excalidrawLinearElementId";
230
237
  };
231
- pointerDownState: Readonly<{
238
+ initialState: Readonly<{
232
239
  prevSelectedPointsIndices: readonly number[] | null;
233
240
  lastClickedPoint: number;
234
- lastClickedIsEndPoint: boolean;
235
- origin: Readonly<{
236
- x: number;
237
- y: number;
238
- }> | null;
241
+ origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
239
242
  segmentMidpoint: {
240
243
  value: import("@excalidraw/math").GlobalPoint | null;
241
244
  index: number | null;
242
245
  added: boolean;
243
246
  };
247
+ arrowStartIsInside: boolean;
248
+ altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
244
249
  }>;
245
250
  isDragging: boolean;
246
251
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
252
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
247
253
  pointerOffset: Readonly<{
248
254
  x: number;
249
255
  y: number;
@@ -251,6 +257,9 @@ export declare const actionDeleteSelected: {
251
257
  hoverPointIndex: number;
252
258
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
253
259
  elbowed: boolean;
260
+ customLineAngle: number | null;
261
+ isEditing: boolean;
262
+ pointerDownState: never;
254
263
  };
255
264
  contextMenu: {
256
265
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -270,13 +279,15 @@ export declare const actionDeleteSelected: {
270
279
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
271
280
  isBindingEnabled: boolean;
272
281
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
273
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
282
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
274
283
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
275
284
  frameRendering: {
276
285
  enabled: boolean;
277
286
  name: boolean;
278
287
  outline: boolean;
279
288
  clip: boolean;
289
+ markerName: boolean;
290
+ markerEnabled: boolean;
280
291
  };
281
292
  editingFrame: string | null;
282
293
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -286,6 +297,10 @@ export declare const actionDeleteSelected: {
286
297
  locked: boolean;
287
298
  fromSelection: boolean;
288
299
  } & import("../types").ActiveTool;
300
+ preferredSelectionTool: {
301
+ type: "selection" | "lasso";
302
+ initialized: boolean;
303
+ };
289
304
  penMode: boolean;
290
305
  penDetected: boolean;
291
306
  exportBackground: boolean;
@@ -307,6 +322,7 @@ export declare const actionDeleteSelected: {
307
322
  currentHoveredFontFamily: number | null;
308
323
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
309
324
  currentItemArrowType: "round" | "sharp" | "elbow";
325
+ currentItemFrameRole: ("marker" | null) | undefined;
310
326
  viewBackgroundColor: string;
311
327
  scrollX: number;
312
328
  scrollY: number;
@@ -318,19 +334,21 @@ export declare const actionDeleteSelected: {
318
334
  zoom: Readonly<{
319
335
  value: import("../types").NormalizedZoomValue;
320
336
  }>;
321
- openMenu: "shape" | "canvas" | null;
322
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
337
+ openMenu: "canvas" | "shape" | null;
338
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
323
339
  openSidebar: {
324
340
  name: string;
325
341
  tab?: string | undefined;
326
342
  } | null;
327
343
  openDialog: {
328
- name: "help" | "imageExport" | "jsonExport";
344
+ name: "imageExport" | "help" | "jsonExport";
329
345
  } | {
330
346
  name: "ttd";
331
347
  tab: "mermaid" | "text-to-diagram";
332
348
  } | {
333
349
  name: "commandPalette";
350
+ } | {
351
+ name: "settings";
334
352
  } | {
335
353
  name: "elementLinkSelector";
336
354
  sourceElementId: string;
@@ -400,10 +418,8 @@ export declare const actionDeleteSelected: {
400
418
  shown: true;
401
419
  data: import("../charts").Spreadsheet;
402
420
  };
403
- pendingImageElementId: string | null;
404
- showHyperlinkPopup: false | "editor" | "info";
421
+ showHyperlinkPopup: false | "info" | "editor";
405
422
  linkOpacity: number;
406
- trayModeEnabled: boolean;
407
423
  colorPalette?: {
408
424
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
409
425
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -416,6 +432,7 @@ export declare const actionDeleteSelected: {
416
432
  } | undefined;
417
433
  allowWheelZoom?: boolean | undefined;
418
434
  allowPinchZoom?: boolean | undefined;
435
+ disableContextMenu: boolean;
419
436
  pinnedScripts?: string[] | undefined;
420
437
  customPens?: any[] | undefined;
421
438
  currentStrokeOptions?: any;
@@ -424,6 +441,10 @@ export declare const actionDeleteSelected: {
424
441
  Bold: string;
425
442
  Regular: string;
426
443
  };
444
+ gridDirection: {
445
+ horizontal: boolean;
446
+ vertical: boolean;
447
+ };
427
448
  highlightSearchResult: boolean;
428
449
  dynamicStyle: {
429
450
  [x: string]: string;
@@ -434,7 +455,6 @@ export declare const actionDeleteSelected: {
434
455
  nameColor: string;
435
456
  };
436
457
  invertBindingBehaviour: boolean;
437
- selectedLinearElement: LinearElementEditor | null;
438
458
  snapLines: readonly import("../snapping").SnapLine[];
439
459
  originSnapOffset: {
440
460
  x: number;
@@ -445,16 +465,15 @@ export declare const actionDeleteSelected: {
445
465
  followedBy: Set<import("../types").SocketId>;
446
466
  isCropping: boolean;
447
467
  croppingElementId: string | null;
448
- searchMatches: readonly {
449
- id: string;
450
- focus: boolean;
451
- matchedLines: {
452
- offsetX: number;
453
- offsetY: number;
454
- width: number;
455
- height: number;
456
- }[];
457
- }[];
468
+ searchMatches: Readonly<{
469
+ focusedId: string | null;
470
+ matches: readonly import("../types").SearchMatch[];
471
+ }> | null;
472
+ activeLockedId: string | null;
473
+ lockedMultiSelections: {
474
+ [groupId: string]: true;
475
+ };
476
+ bindMode: import("@excalidraw/element/types").BindMode;
458
477
  };
459
478
  captureUpdate: "IMMEDIATELY";
460
479
  } | {
@@ -466,6 +485,7 @@ export declare const actionDeleteSelected: {
466
485
  fromSelection: boolean;
467
486
  } & import("../types").ActiveTool;
468
487
  multiElement: null;
488
+ newElement: null;
469
489
  activeEmbeddable: null;
470
490
  selectedLinearElement: null;
471
491
  editingGroupId: string | null;
@@ -483,23 +503,27 @@ export declare const actionDeleteSelected: {
483
503
  showWelcomeScreen: boolean;
484
504
  isLoading: boolean;
485
505
  errorMessage: import("react").ReactNode;
486
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
487
506
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
488
507
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
489
508
  isBindingEnabled: boolean;
490
509
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
491
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
510
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
492
511
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
493
512
  frameRendering: {
494
513
  enabled: boolean;
495
514
  name: boolean;
496
515
  outline: boolean;
497
516
  clip: boolean;
517
+ markerName: boolean;
518
+ markerEnabled: boolean;
498
519
  };
499
520
  editingFrame: string | null;
500
521
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
501
522
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
502
- editingLinearElement: LinearElementEditor | null;
523
+ preferredSelectionTool: {
524
+ type: "selection" | "lasso";
525
+ initialized: boolean;
526
+ };
503
527
  penMode: boolean;
504
528
  penDetected: boolean;
505
529
  exportBackground: boolean;
@@ -521,6 +545,7 @@ export declare const actionDeleteSelected: {
521
545
  currentHoveredFontFamily: number | null;
522
546
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
523
547
  currentItemArrowType: "round" | "sharp" | "elbow";
548
+ currentItemFrameRole: ("marker" | null) | undefined;
524
549
  viewBackgroundColor: string;
525
550
  scrollX: number;
526
551
  scrollY: number;
@@ -532,19 +557,21 @@ export declare const actionDeleteSelected: {
532
557
  zoom: Readonly<{
533
558
  value: import("../types").NormalizedZoomValue;
534
559
  }>;
535
- openMenu: "shape" | "canvas" | null;
536
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
560
+ openMenu: "canvas" | "shape" | null;
561
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
537
562
  openSidebar: {
538
563
  name: string;
539
564
  tab?: string | undefined;
540
565
  } | null;
541
566
  openDialog: {
542
- name: "help" | "imageExport" | "jsonExport";
567
+ name: "imageExport" | "help" | "jsonExport";
543
568
  } | {
544
569
  name: "ttd";
545
570
  tab: "mermaid" | "text-to-diagram";
546
571
  } | {
547
572
  name: "commandPalette";
573
+ } | {
574
+ name: "settings";
548
575
  } | {
549
576
  name: "elementLinkSelector";
550
577
  sourceElementId: string;
@@ -607,10 +634,8 @@ export declare const actionDeleteSelected: {
607
634
  shown: true;
608
635
  data: import("../charts").Spreadsheet;
609
636
  };
610
- pendingImageElementId: string | null;
611
- showHyperlinkPopup: false | "editor" | "info";
637
+ showHyperlinkPopup: false | "info" | "editor";
612
638
  linkOpacity: number;
613
- trayModeEnabled: boolean;
614
639
  colorPalette?: {
615
640
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
616
641
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -623,6 +648,7 @@ export declare const actionDeleteSelected: {
623
648
  } | undefined;
624
649
  allowWheelZoom?: boolean | undefined;
625
650
  allowPinchZoom?: boolean | undefined;
651
+ disableContextMenu: boolean;
626
652
  pinnedScripts?: string[] | undefined;
627
653
  customPens?: any[] | undefined;
628
654
  currentStrokeOptions?: any;
@@ -631,6 +657,10 @@ export declare const actionDeleteSelected: {
631
657
  Bold: string;
632
658
  Regular: string;
633
659
  };
660
+ gridDirection: {
661
+ horizontal: boolean;
662
+ vertical: boolean;
663
+ };
634
664
  highlightSearchResult: boolean;
635
665
  dynamicStyle: {
636
666
  [x: string]: string;
@@ -651,21 +681,20 @@ export declare const actionDeleteSelected: {
651
681
  followedBy: Set<import("../types").SocketId>;
652
682
  isCropping: boolean;
653
683
  croppingElementId: string | null;
654
- searchMatches: readonly {
655
- id: string;
656
- focus: boolean;
657
- matchedLines: {
658
- offsetX: number;
659
- offsetY: number;
660
- width: number;
661
- height: number;
662
- }[];
663
- }[];
684
+ searchMatches: Readonly<{
685
+ focusedId: string | null;
686
+ matches: readonly import("../types").SearchMatch[];
687
+ }> | null;
688
+ activeLockedId: string | null;
689
+ lockedMultiSelections: {
690
+ [groupId: string]: true;
691
+ };
692
+ bindMode: import("@excalidraw/element/types").BindMode;
664
693
  };
665
694
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
666
695
  };
667
696
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
668
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
697
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
669
698
  } & {
670
699
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
671
700
  };
@@ -6,7 +6,7 @@ export declare const distributeHorizontally: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
10
  appState: Readonly<AppState>;
11
11
  elements: ExcalidrawElement[];
12
12
  captureUpdate: "IMMEDIATELY";
@@ -22,7 +22,7 @@ export declare const distributeVertically: {
22
22
  trackEvent: {
23
23
  category: "element";
24
24
  };
25
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
25
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
26
26
  appState: Readonly<AppState>;
27
27
  elements: ExcalidrawElement[];
28
28
  captureUpdate: "IMMEDIATELY";
@@ -5,13 +5,13 @@ export declare const actionDuplicateSelection: {
5
5
  trackEvent: {
6
6
  category: "element";
7
7
  };
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
9
9
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
10
10
  appState: import("../types").AppState;
11
11
  captureUpdate: "IMMEDIATELY";
12
12
  };
13
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
14
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
14
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
15
  } & {
16
16
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
17
17
  };