@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/excalidraw.development.js +757 -504
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1080 -437
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +15 -4
  7. package/types/common/src/commonObsidianUtils.d.ts +20 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +4 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +25 -6
  15. package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
  16. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  17. package/types/element/src/align.d.ts +4 -3
  18. package/types/element/src/binding.d.ts +62 -41
  19. package/types/element/src/bounds.d.ts +14 -6
  20. package/types/element/src/collision.d.ts +23 -13
  21. package/types/element/src/cropElement.d.ts +1 -1
  22. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  23. package/types/element/src/distance.d.ts +2 -2
  24. package/types/element/src/distribute.d.ts +2 -1
  25. package/types/element/src/dragElements.d.ts +3 -2
  26. package/types/element/src/duplicate.d.ts +10 -13
  27. package/types/element/src/elbowArrow.d.ts +1 -1
  28. package/types/element/src/flowchart.d.ts +3 -2
  29. package/types/element/src/fractionalIndex.d.ts +9 -3
  30. package/types/element/src/frame.d.ts +5 -4
  31. package/types/element/src/groups.d.ts +1 -0
  32. package/types/element/src/index.d.ts +44 -5
  33. package/types/element/src/linearElementEditor.d.ts +34 -50
  34. package/types/element/src/mutateElement.d.ts +11 -3
  35. package/types/element/src/newElement.d.ts +6 -4
  36. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  37. package/types/element/src/renderElement.d.ts +5 -2
  38. package/types/element/src/resizeElements.d.ts +6 -5
  39. package/types/element/src/resizeTest.d.ts +5 -4
  40. package/types/element/src/selection.d.ts +11 -5
  41. package/types/element/src/shape.d.ts +42 -0
  42. package/types/element/src/sizeHelpers.d.ts +2 -2
  43. package/types/element/src/store.d.ts +237 -0
  44. package/types/element/src/textElement.d.ts +4 -3
  45. package/types/element/src/transformHandles.d.ts +5 -4
  46. package/types/element/src/typeChecks.d.ts +20 -3
  47. package/types/element/src/types.d.ts +31 -12
  48. package/types/element/src/utils.d.ts +17 -6
  49. package/types/element/src/zindex.d.ts +8 -2
  50. package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
  51. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  52. package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
  53. package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
  54. package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
  55. package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
  56. package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
  57. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  58. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  59. package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
  60. package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
  61. package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
  62. package/types/excalidraw/actions/actionExport.d.ts +142 -1185
  63. package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
  64. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  65. package/types/excalidraw/actions/actionFrame.d.ts +176 -129
  66. package/types/excalidraw/actions/actionGroup.d.ts +60 -40
  67. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  68. package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
  69. package/types/excalidraw/actions/actionLink.d.ts +27 -17
  70. package/types/excalidraw/actions/actionMenu.d.ts +27 -457
  71. package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
  72. package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
  73. package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
  74. package/types/excalidraw/actions/actionStyles.d.ts +31 -21
  75. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  76. package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
  77. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
  78. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
  79. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  80. package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
  81. package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
  82. package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
  83. package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
  84. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  85. package/types/excalidraw/actions/index.d.ts +4 -2
  86. package/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/types/excalidraw/actions/register.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +7 -6
  89. package/types/excalidraw/appState.d.ts +22 -7
  90. package/types/excalidraw/clipboard.d.ts +68 -5
  91. package/types/excalidraw/components/Actions.d.ts +20 -7
  92. package/types/excalidraw/components/App.d.ts +68 -46
  93. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  94. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  95. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  96. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  97. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  98. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  99. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  100. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  101. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  104. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  105. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  106. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  107. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  108. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  109. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  110. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  111. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  112. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  113. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  114. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  115. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  116. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  117. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  118. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  119. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  120. package/types/excalidraw/components/Popover.d.ts +2 -1
  121. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  122. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  123. package/types/excalidraw/components/Range.d.ts +3 -3
  124. package/types/excalidraw/components/Section.d.ts +1 -0
  125. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  129. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  130. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  131. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  132. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  133. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  134. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  135. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  136. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  137. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  138. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  139. package/types/excalidraw/components/TextField.d.ts +1 -0
  140. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  141. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  142. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  143. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  144. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  145. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  146. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  147. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  148. package/types/excalidraw/components/icons.d.ts +17 -0
  149. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  150. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  151. package/types/excalidraw/components/shapes.d.ts +115 -5
  152. package/types/excalidraw/data/blob.d.ts +3 -7
  153. package/types/excalidraw/data/reconcile.d.ts +1 -0
  154. package/types/excalidraw/data/restore.d.ts +7 -2
  155. package/types/excalidraw/data/transform.d.ts +1 -1
  156. package/types/excalidraw/data/types.d.ts +4 -1
  157. package/types/excalidraw/editor-jotai.d.ts +6 -6
  158. package/types/excalidraw/eraser/index.d.ts +0 -2
  159. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  160. package/types/excalidraw/history.d.ts +30 -22
  161. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  162. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  163. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  164. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  165. package/types/excalidraw/index.d.ts +16 -15
  166. package/types/excalidraw/lasso/index.d.ts +1 -0
  167. package/types/excalidraw/lasso/utils.d.ts +2 -1
  168. package/types/excalidraw/obsidianUtils.d.ts +22 -9
  169. package/types/excalidraw/renderer/animation.d.ts +12 -0
  170. package/types/excalidraw/renderer/helpers.d.ts +3 -2
  171. package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  172. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  173. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  174. package/types/excalidraw/scene/index.d.ts +2 -2
  175. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  176. package/types/excalidraw/scene/types.d.ts +17 -3
  177. package/types/excalidraw/shortcut.d.ts +1 -0
  178. package/types/excalidraw/snapping.d.ts +2 -2
  179. package/types/excalidraw/types.d.ts +83 -33
  180. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  181. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  182. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  183. package/types/math/src/angle.d.ts +2 -0
  184. package/types/math/src/constants.d.ts +3 -0
  185. package/types/math/src/curve.d.ts +34 -0
  186. package/types/math/src/index.d.ts +1 -0
  187. package/types/math/src/point.d.ts +1 -1
  188. package/types/math/src/rectangle.d.ts +2 -0
  189. package/types/math/src/segment.d.ts +1 -0
  190. package/types/math/src/vector.d.ts +8 -2
  191. package/types/utils/src/bbox.d.ts +1 -1
  192. package/types/utils/src/index.d.ts +1 -1
  193. package/types/utils/src/withinBounds.d.ts +1 -1
  194. package/types/element/src/Shape.d.ts +0 -17
  195. package/types/element/src/ShapeCache.d.ts +0 -25
  196. package/types/element/src/shapes.d.ts +0 -23
  197. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  198. package/types/excalidraw/store.d.ts +0 -129
  199. package/types/utils/src/collision.d.ts +0 -8
@@ -1,4 +1,4 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
1
+ import { LinearElementEditor } from "@excalidraw/element";
2
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
3
  export declare const actionSelectAll: {
4
4
  name: "selectAll";
@@ -8,7 +8,7 @@ export declare const actionSelectAll: {
8
8
  category: "canvas";
9
9
  };
10
10
  viewMode: false;
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
12
12
  appState: {
13
13
  selectedLinearElement: LinearElementEditor | null;
14
14
  editingGroupId: string | null;
@@ -36,23 +36,28 @@ export declare const actionSelectAll: {
36
36
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
37
  isBindingEnabled: boolean;
38
38
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
39
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
40
40
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
41
  frameRendering: {
42
42
  enabled: boolean;
43
43
  name: boolean;
44
44
  outline: boolean;
45
45
  clip: boolean;
46
+ markerName: boolean;
47
+ markerEnabled: boolean;
46
48
  };
47
49
  editingFrame: string | null;
48
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
49
51
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: LinearElementEditor | null;
51
52
  activeTool: {
52
53
  lastActiveTool: import("../types").ActiveTool | null;
53
54
  locked: boolean;
54
55
  fromSelection: boolean;
55
56
  } & import("../types").ActiveTool;
57
+ preferredSelectionTool: {
58
+ type: "selection" | "lasso";
59
+ initialized: boolean;
60
+ };
56
61
  penMode: boolean;
57
62
  penDetected: boolean;
58
63
  exportBackground: boolean;
@@ -74,6 +79,7 @@ export declare const actionSelectAll: {
74
79
  currentHoveredFontFamily: number | null;
75
80
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
81
  currentItemArrowType: "round" | "sharp" | "elbow";
82
+ currentItemFrameRole: ("marker" | null) | undefined;
77
83
  viewBackgroundColor: string;
78
84
  scrollX: number;
79
85
  scrollY: number;
@@ -85,19 +91,21 @@ export declare const actionSelectAll: {
85
91
  zoom: Readonly<{
86
92
  value: import("../types").NormalizedZoomValue;
87
93
  }>;
88
- openMenu: "shape" | "canvas" | null;
89
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
94
+ openMenu: "canvas" | "shape" | null;
95
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
90
96
  openSidebar: {
91
97
  name: string;
92
98
  tab?: string | undefined;
93
99
  } | null;
94
100
  openDialog: {
95
- name: "help" | "imageExport" | "jsonExport";
101
+ name: "imageExport" | "help" | "jsonExport";
96
102
  } | {
97
103
  name: "ttd";
98
104
  tab: "mermaid" | "text-to-diagram";
99
105
  } | {
100
106
  name: "commandPalette";
107
+ } | {
108
+ name: "settings";
101
109
  } | {
102
110
  name: "elementLinkSelector";
103
111
  sourceElementId: string;
@@ -160,10 +168,8 @@ export declare const actionSelectAll: {
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 actionSelectAll: {
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 actionSelectAll: {
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;
@@ -204,16 +215,15 @@ export declare const actionSelectAll: {
204
215
  followedBy: Set<import("../types").SocketId>;
205
216
  isCropping: boolean;
206
217
  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
- }[];
218
+ searchMatches: Readonly<{
219
+ focusedId: string | null;
220
+ matches: readonly import("../types").SearchMatch[];
221
+ }> | null;
222
+ activeLockedId: string | null;
223
+ lockedMultiSelections: {
224
+ [groupId: string]: true;
225
+ };
226
+ bindMode: import("@excalidraw/element/types").BindMode;
217
227
  };
218
228
  captureUpdate: "IMMEDIATELY";
219
229
  };
@@ -6,7 +6,7 @@ export declare const actionCopyStyles: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => {
10
10
  appState: {
11
11
  toast: {
12
12
  message: string;
@@ -29,23 +29,28 @@ export declare const actionCopyStyles: {
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 actionCopyStyles: {
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 actionCopyStyles: {
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;
@@ -155,10 +163,8 @@ export declare const actionCopyStyles: {
155
163
  shown: true;
156
164
  data: import("../charts").Spreadsheet;
157
165
  };
158
- pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
166
+ showHyperlinkPopup: false | "info" | "editor";
160
167
  linkOpacity: number;
161
- trayModeEnabled: boolean;
162
168
  colorPalette?: {
163
169
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
170
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -171,6 +177,7 @@ export declare const actionCopyStyles: {
171
177
  } | undefined;
172
178
  allowWheelZoom?: boolean | undefined;
173
179
  allowPinchZoom?: boolean | undefined;
180
+ disableContextMenu: boolean;
174
181
  pinnedScripts?: string[] | undefined;
175
182
  customPens?: any[] | undefined;
176
183
  currentStrokeOptions?: any;
@@ -179,6 +186,10 @@ export declare const actionCopyStyles: {
179
186
  Bold: string;
180
187
  Regular: string;
181
188
  };
189
+ gridDirection: {
190
+ horizontal: boolean;
191
+ vertical: boolean;
192
+ };
182
193
  highlightSearchResult: boolean;
183
194
  dynamicStyle: {
184
195
  [x: string]: string;
@@ -189,7 +200,7 @@ export declare const actionCopyStyles: {
189
200
  nameColor: string;
190
201
  };
191
202
  invertBindingBehaviour: boolean;
192
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
203
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
193
204
  snapLines: readonly import("../snapping").SnapLine[];
194
205
  originSnapOffset: {
195
206
  x: number;
@@ -200,16 +211,15 @@ export declare const actionCopyStyles: {
200
211
  followedBy: Set<import("../types").SocketId>;
201
212
  isCropping: boolean;
202
213
  croppingElementId: string | null;
203
- searchMatches: readonly {
204
- id: string;
205
- focus: boolean;
206
- matchedLines: {
207
- offsetX: number;
208
- offsetY: number;
209
- width: number;
210
- height: number;
211
- }[];
212
- }[];
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
+ };
222
+ bindMode: import("@excalidraw/element/types").BindMode;
213
223
  };
214
224
  captureUpdate: "EVENTUALLY";
215
225
  };
@@ -224,7 +234,7 @@ export declare const actionPasteStyles: {
224
234
  trackEvent: {
225
235
  category: "element";
226
236
  };
227
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
237
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => {
228
238
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
229
239
  captureUpdate: "EVENTUALLY";
230
240
  } | {
@@ -7,7 +7,7 @@ export declare const actionTextAutoResize: {
7
7
  category: "element";
8
8
  };
9
9
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: AppClassProperties) => {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
11
11
  appState: Readonly<import("../types").AppState>;
12
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
13
  captureUpdate: "IMMEDIATELY";
@@ -31,23 +31,28 @@ export declare const actionToggleGridMode: {
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;
46
47
  activeTool: {
47
48
  lastActiveTool: import("../types").ActiveTool | null;
48
49
  locked: boolean;
49
50
  fromSelection: boolean;
50
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
51
56
  penMode: boolean;
52
57
  penDetected: boolean;
53
58
  exportBackground: boolean;
@@ -69,6 +74,7 @@ export declare const actionToggleGridMode: {
69
74
  currentHoveredFontFamily: number | null;
70
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
71
76
  currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemFrameRole: ("marker" | null) | undefined;
72
78
  viewBackgroundColor: string;
73
79
  scrollX: number;
74
80
  scrollY: number;
@@ -80,19 +86,21 @@ export declare const actionToggleGridMode: {
80
86
  zoom: Readonly<{
81
87
  value: import("../types").NormalizedZoomValue;
82
88
  }>;
83
- openMenu: "shape" | "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
89
+ openMenu: "canvas" | "shape" | null;
90
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
91
  openSidebar: {
86
92
  name: string;
87
93
  tab?: string | undefined;
88
94
  } | null;
89
95
  openDialog: {
90
- name: "help" | "imageExport" | "jsonExport";
96
+ name: "imageExport" | "help" | "jsonExport";
91
97
  } | {
92
98
  name: "ttd";
93
99
  tab: "mermaid" | "text-to-diagram";
94
100
  } | {
95
101
  name: "commandPalette";
102
+ } | {
103
+ name: "settings";
96
104
  } | {
97
105
  name: "elementLinkSelector";
98
106
  sourceElementId: string;
@@ -161,10 +169,8 @@ export declare const actionToggleGridMode: {
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 actionToggleGridMode: {
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 actionToggleGridMode: {
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,7 @@ export declare const actionToggleGridMode: {
195
206
  nameColor: string;
196
207
  };
197
208
  invertBindingBehaviour: boolean;
198
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
209
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
199
210
  snapLines: readonly import("../snapping").SnapLine[];
200
211
  originSnapOffset: {
201
212
  x: number;
@@ -205,16 +216,15 @@ export declare const actionToggleGridMode: {
205
216
  followedBy: Set<import("../types").SocketId>;
206
217
  isCropping: boolean;
207
218
  croppingElementId: string | null;
208
- searchMatches: readonly {
209
- id: string;
210
- focus: boolean;
211
- matchedLines: {
212
- offsetX: number;
213
- offsetY: number;
214
- width: number;
215
- height: number;
216
- }[];
217
- }[];
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;
218
228
  };
219
229
  captureUpdate: "EVENTUALLY";
220
230
  };
@@ -29,23 +29,28 @@ export declare const actionToggleObjectsSnapMode: {
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 actionToggleObjectsSnapMode: {
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 actionToggleObjectsSnapMode: {
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;
@@ -159,10 +167,8 @@ export declare const actionToggleObjectsSnapMode: {
159
167
  shown: true;
160
168
  data: import("../charts").Spreadsheet;
161
169
  };
162
- pendingImageElementId: string | null;
163
- showHyperlinkPopup: false | "editor" | "info";
170
+ showHyperlinkPopup: false | "info" | "editor";
164
171
  linkOpacity: number;
165
- trayModeEnabled: boolean;
166
172
  colorPalette?: {
167
173
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
168
174
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -175,6 +181,7 @@ export declare const actionToggleObjectsSnapMode: {
175
181
  } | undefined;
176
182
  allowWheelZoom?: boolean | undefined;
177
183
  allowPinchZoom?: boolean | undefined;
184
+ disableContextMenu: boolean;
178
185
  pinnedScripts?: string[] | undefined;
179
186
  customPens?: any[] | undefined;
180
187
  currentStrokeOptions?: any;
@@ -183,6 +190,10 @@ export declare const actionToggleObjectsSnapMode: {
183
190
  Bold: string;
184
191
  Regular: string;
185
192
  };
193
+ gridDirection: {
194
+ horizontal: boolean;
195
+ vertical: boolean;
196
+ };
186
197
  highlightSearchResult: boolean;
187
198
  dynamicStyle: {
188
199
  [x: string]: string;
@@ -193,7 +204,7 @@ export declare const actionToggleObjectsSnapMode: {
193
204
  nameColor: string;
194
205
  };
195
206
  invertBindingBehaviour: boolean;
196
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
207
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
197
208
  snapLines: readonly import("../snapping").SnapLine[];
198
209
  originSnapOffset: {
199
210
  x: number;
@@ -203,16 +214,15 @@ export declare const actionToggleObjectsSnapMode: {
203
214
  followedBy: Set<import("../types").SocketId>;
204
215
  isCropping: boolean;
205
216
  croppingElementId: string | null;
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: "EVENTUALLY";
218
228
  };