@zsviczian/excalidraw 0.18.0-5 → 0.18.0-50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/excalidraw.development.js +745 -503
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1062 -429
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +14 -3
  7. package/types/common/src/commonObsidianUtils.d.ts +13 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +2 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +20 -5
  15. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  16. package/types/element/src/align.d.ts +4 -3
  17. package/types/element/src/binding.d.ts +27 -17
  18. package/types/element/src/bounds.d.ts +14 -6
  19. package/types/element/src/collision.d.ts +18 -12
  20. package/types/element/src/cropElement.d.ts +1 -1
  21. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  22. package/types/element/src/distance.d.ts +2 -2
  23. package/types/element/src/distribute.d.ts +2 -1
  24. package/types/element/src/dragElements.d.ts +3 -2
  25. package/types/element/src/duplicate.d.ts +10 -13
  26. package/types/element/src/elbowArrow.d.ts +1 -1
  27. package/types/element/src/flowchart.d.ts +3 -2
  28. package/types/element/src/fractionalIndex.d.ts +9 -3
  29. package/types/element/src/frame.d.ts +5 -4
  30. package/types/element/src/groups.d.ts +1 -0
  31. package/types/element/src/index.d.ts +44 -2
  32. package/types/element/src/linearElementEditor.d.ts +23 -36
  33. package/types/element/src/mutateElement.d.ts +11 -3
  34. package/types/element/src/newElement.d.ts +6 -4
  35. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  36. package/types/element/src/renderElement.d.ts +4 -1
  37. package/types/element/src/resizeElements.d.ts +6 -5
  38. package/types/element/src/resizeTest.d.ts +5 -4
  39. package/types/element/src/selection.d.ts +11 -5
  40. package/types/element/src/shape.d.ts +42 -0
  41. package/types/element/src/sizeHelpers.d.ts +2 -2
  42. package/types/element/src/store.d.ts +237 -0
  43. package/types/element/src/textElement.d.ts +5 -3
  44. package/types/element/src/transformHandles.d.ts +5 -4
  45. package/types/element/src/typeChecks.d.ts +19 -1
  46. package/types/element/src/types.d.ts +25 -2
  47. package/types/element/src/utils.d.ts +16 -6
  48. package/types/element/src/zindex.d.ts +1 -1
  49. package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
  50. package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
  51. package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
  52. package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
  53. package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
  54. package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
  55. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  56. package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
  57. package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
  58. package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
  59. package/types/excalidraw/actions/actionExport.d.ts +237 -174
  60. package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
  61. package/types/excalidraw/actions/actionFrame.d.ts +157 -120
  62. package/types/excalidraw/actions/actionGroup.d.ts +50 -36
  63. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  64. package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
  65. package/types/excalidraw/actions/actionLink.d.ts +23 -16
  66. package/types/excalidraw/actions/actionMenu.d.ts +25 -456
  67. package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
  68. package/types/excalidraw/actions/actionProperties.d.ts +629 -273
  69. package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
  70. package/types/excalidraw/actions/actionStyles.d.ts +25 -18
  71. package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
  72. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
  73. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
  74. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  75. package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
  76. package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
  77. package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
  78. package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
  79. package/types/excalidraw/actions/index.d.ts +4 -2
  80. package/types/excalidraw/actions/types.d.ts +4 -3
  81. package/types/excalidraw/appState.d.ts +24 -10
  82. package/types/excalidraw/clipboard.d.ts +68 -5
  83. package/types/excalidraw/components/Actions.d.ts +20 -7
  84. package/types/excalidraw/components/App.d.ts +63 -38
  85. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  86. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  87. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  88. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  89. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  90. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  91. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  92. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  93. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  96. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  97. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  98. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  99. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  100. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  101. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  102. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  103. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  104. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  105. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  106. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  107. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  108. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  109. package/types/excalidraw/components/Popover.d.ts +2 -1
  110. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  111. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  112. package/types/excalidraw/components/Range.d.ts +3 -3
  113. package/types/excalidraw/components/Section.d.ts +1 -0
  114. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  115. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  116. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  117. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  118. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  119. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  120. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  121. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  122. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  123. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  124. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  125. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  127. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  128. package/types/excalidraw/components/TextField.d.ts +1 -0
  129. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  130. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  131. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  132. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  133. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  134. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  135. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  136. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  137. package/types/excalidraw/components/icons.d.ts +13 -0
  138. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  139. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  140. package/types/excalidraw/components/shapes.d.ts +115 -5
  141. package/types/excalidraw/data/blob.d.ts +3 -7
  142. package/types/excalidraw/data/reconcile.d.ts +1 -0
  143. package/types/excalidraw/data/restore.d.ts +6 -1
  144. package/types/excalidraw/data/transform.d.ts +1 -1
  145. package/types/excalidraw/data/types.d.ts +4 -1
  146. package/types/excalidraw/editor-jotai.d.ts +6 -6
  147. package/types/excalidraw/eraser/index.d.ts +12 -0
  148. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  149. package/types/excalidraw/history.d.ts +30 -22
  150. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  151. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  152. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  153. package/types/excalidraw/index.d.ts +15 -14
  154. package/types/excalidraw/lasso/index.d.ts +1 -0
  155. package/types/excalidraw/lasso/utils.d.ts +3 -3
  156. package/types/excalidraw/obsidianUtils.d.ts +22 -4
  157. package/types/excalidraw/renderer/helpers.d.ts +7 -2
  158. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  159. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  160. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  161. package/types/excalidraw/scene/index.d.ts +2 -2
  162. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  163. package/types/excalidraw/scene/types.d.ts +5 -3
  164. package/types/excalidraw/shortcut.d.ts +1 -0
  165. package/types/excalidraw/snapping.d.ts +2 -2
  166. package/types/excalidraw/types.d.ts +68 -30
  167. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  168. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  169. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  170. package/types/math/src/angle.d.ts +2 -0
  171. package/types/math/src/constants.d.ts +3 -0
  172. package/types/math/src/curve.d.ts +34 -0
  173. package/types/math/src/index.d.ts +1 -0
  174. package/types/math/src/point.d.ts +1 -1
  175. package/types/math/src/rectangle.d.ts +2 -0
  176. package/types/math/src/segment.d.ts +1 -0
  177. package/types/math/src/types.d.ts +1 -0
  178. package/types/math/src/vector.d.ts +8 -2
  179. package/types/utils/src/bbox.d.ts +1 -1
  180. package/types/utils/src/index.d.ts +1 -1
  181. package/types/utils/src/withinBounds.d.ts +1 -1
  182. package/types/element/src/Shape.d.ts +0 -17
  183. package/types/element/src/ShapeCache.d.ts +0 -25
  184. package/types/element/src/shapes.d.ts +0 -23
  185. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  186. package/types/excalidraw/store.d.ts +0 -129
  187. package/types/excalidraw/visualdebug.d.ts +0 -41
  188. package/types/utils/src/collision.d.ts +0 -8
@@ -1,21 +1,31 @@
1
1
  import { type GlobalPoint } from "@excalidraw/math";
2
2
  import type { Curve, LineSegment } from "@excalidraw/math";
3
- import type { ExcalidrawDiamondElement, ExcalidrawRectanguloidElement } from "./types";
3
+ import type { Zoom } from "@excalidraw/excalidraw/types";
4
+ import type { ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
5
+ /**
6
+ * Returns the **rotated** components of freedraw, line or arrow elements.
7
+ *
8
+ * @param element The linear element to deconstruct
9
+ * @returns The rotated in components.
10
+ */
11
+ export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
4
12
  /**
5
13
  * Get the building components of a rectanguloid element in the form of
6
- * line segments and curves.
14
+ * line segments and curves **unrotated**.
7
15
  *
8
16
  * @param element Target rectanguloid element
9
17
  * @param offset Optional offset to expand the rectanguloid shape
10
- * @returns Tuple of line segments (0) and curves (1)
18
+ * @returns Tuple of **unrotated** line segments (0) and curves (1)
11
19
  */
12
20
  export declare function deconstructRectanguloidElement(element: ExcalidrawRectanguloidElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
13
21
  /**
14
- * Get the building components of a diamond element in the form of
15
- * line segments and curves as a tuple, in this order.
22
+ * Get the **unrotated** building components of a diamond element
23
+ * in the form of line segments and curves as a tuple, in this order.
16
24
  *
17
25
  * @param element The element to deconstruct
18
26
  * @param offset An optional offset
19
- * @returns Tuple of line segments (0) and curves (1)
27
+ * @returns Tuple of line **unrotated** segments (0) and curves (1)
20
28
  */
21
29
  export declare function deconstructDiamondElement(element: ExcalidrawDiamondElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
30
+ export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
31
+ export declare const getCornerRadius: (x: number, element: ExcalidrawElement) => number;
@@ -1,5 +1,5 @@
1
1
  import type { AppState } from "@excalidraw/excalidraw/types";
2
- import type Scene from "@excalidraw/excalidraw/scene/Scene";
2
+ import type { Scene } from "./Scene";
3
3
  import type { ExcalidrawElement } from "./types";
4
4
  export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
5
5
  export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
@@ -27,23 +27,28 @@ export declare const actionAddToLibrary: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
34
34
  name: boolean;
35
35
  outline: boolean;
36
36
  clip: boolean;
37
+ markerName: boolean;
38
+ markerEnabled: boolean;
37
39
  };
38
40
  editingFrame: string | null;
39
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
43
  activeTool: {
43
44
  lastActiveTool: import("../types").ActiveTool | null;
44
45
  locked: boolean;
45
46
  fromSelection: boolean;
46
47
  } & import("../types").ActiveTool;
48
+ preferredSelectionTool: {
49
+ type: "selection" | "lasso";
50
+ initialized: boolean;
51
+ };
47
52
  penMode: boolean;
48
53
  penDetected: boolean;
49
54
  exportBackground: boolean;
@@ -65,6 +70,7 @@ export declare const actionAddToLibrary: {
65
70
  currentHoveredFontFamily: number | null;
66
71
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
72
  currentItemArrowType: "round" | "sharp" | "elbow";
73
+ currentItemFrameRole: ("marker" | null) | undefined;
68
74
  viewBackgroundColor: string;
69
75
  scrollX: number;
70
76
  scrollY: number;
@@ -76,8 +82,8 @@ export declare const actionAddToLibrary: {
76
82
  zoom: Readonly<{
77
83
  value: import("../types").NormalizedZoomValue;
78
84
  }>;
79
- openMenu: "shape" | "canvas" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
+ openMenu: "canvas" | "shape" | null;
86
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
87
  openSidebar: {
82
88
  name: string;
83
89
  tab?: string | undefined;
@@ -153,10 +159,8 @@ export declare const actionAddToLibrary: {
153
159
  shown: true;
154
160
  data: import("../charts").Spreadsheet;
155
161
  };
156
- pendingImageElementId: string | null;
157
- showHyperlinkPopup: false | "editor" | "info";
162
+ showHyperlinkPopup: false | "info" | "editor";
158
163
  linkOpacity: number;
159
- trayModeEnabled: boolean;
160
164
  colorPalette?: {
161
165
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
162
166
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -169,6 +173,7 @@ export declare const actionAddToLibrary: {
169
173
  } | undefined;
170
174
  allowWheelZoom?: boolean | undefined;
171
175
  allowPinchZoom?: boolean | undefined;
176
+ disableContextMenu: boolean;
172
177
  pinnedScripts?: string[] | undefined;
173
178
  customPens?: any[] | undefined;
174
179
  currentStrokeOptions?: any;
@@ -177,6 +182,10 @@ export declare const actionAddToLibrary: {
177
182
  Bold: string;
178
183
  Regular: string;
179
184
  };
185
+ gridDirection: {
186
+ horizontal: boolean;
187
+ vertical: boolean;
188
+ };
180
189
  highlightSearchResult: boolean;
181
190
  dynamicStyle: {
182
191
  [x: string]: string;
@@ -187,7 +196,7 @@ export declare const actionAddToLibrary: {
187
196
  nameColor: string;
188
197
  };
189
198
  invertBindingBehaviour: boolean;
190
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
199
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
191
200
  snapLines: readonly import("../snapping").SnapLine[];
192
201
  originSnapOffset: {
193
202
  x: number;
@@ -198,16 +207,14 @@ export declare const actionAddToLibrary: {
198
207
  followedBy: Set<import("../types").SocketId>;
199
208
  isCropping: boolean;
200
209
  croppingElementId: string | null;
201
- searchMatches: readonly {
202
- id: string;
203
- focus: boolean;
204
- matchedLines: {
205
- offsetX: number;
206
- offsetY: number;
207
- width: number;
208
- height: number;
209
- }[];
210
- }[];
210
+ searchMatches: Readonly<{
211
+ focusedId: string | null;
212
+ matches: readonly import("../types").SearchMatch[];
213
+ }> | null;
214
+ activeLockedId: string | null;
215
+ lockedMultiSelections: {
216
+ [groupId: string]: true;
217
+ };
211
218
  };
212
219
  } | {
213
220
  captureUpdate: "EVENTUALLY";
@@ -230,23 +237,28 @@ export declare const actionAddToLibrary: {
230
237
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
238
  isBindingEnabled: boolean;
232
239
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
233
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
240
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
234
241
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
235
242
  frameRendering: {
236
243
  enabled: boolean;
237
244
  name: boolean;
238
245
  outline: boolean;
239
246
  clip: boolean;
247
+ markerName: boolean;
248
+ markerEnabled: boolean;
240
249
  };
241
250
  editingFrame: string | null;
242
251
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
243
252
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
245
253
  activeTool: {
246
254
  lastActiveTool: import("../types").ActiveTool | null;
247
255
  locked: boolean;
248
256
  fromSelection: boolean;
249
257
  } & import("../types").ActiveTool;
258
+ preferredSelectionTool: {
259
+ type: "selection" | "lasso";
260
+ initialized: boolean;
261
+ };
250
262
  penMode: boolean;
251
263
  penDetected: boolean;
252
264
  exportBackground: boolean;
@@ -268,6 +280,7 @@ export declare const actionAddToLibrary: {
268
280
  currentHoveredFontFamily: number | null;
269
281
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
270
282
  currentItemArrowType: "round" | "sharp" | "elbow";
283
+ currentItemFrameRole: ("marker" | null) | undefined;
271
284
  viewBackgroundColor: string;
272
285
  scrollX: number;
273
286
  scrollY: number;
@@ -279,8 +292,8 @@ export declare const actionAddToLibrary: {
279
292
  zoom: Readonly<{
280
293
  value: import("../types").NormalizedZoomValue;
281
294
  }>;
282
- openMenu: "shape" | "canvas" | null;
283
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
295
+ openMenu: "canvas" | "shape" | null;
296
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
284
297
  openSidebar: {
285
298
  name: string;
286
299
  tab?: string | undefined;
@@ -361,10 +374,8 @@ export declare const actionAddToLibrary: {
361
374
  shown: true;
362
375
  data: import("../charts").Spreadsheet;
363
376
  };
364
- pendingImageElementId: string | null;
365
- showHyperlinkPopup: false | "editor" | "info";
377
+ showHyperlinkPopup: false | "info" | "editor";
366
378
  linkOpacity: number;
367
- trayModeEnabled: boolean;
368
379
  colorPalette?: {
369
380
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
370
381
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -377,6 +388,7 @@ export declare const actionAddToLibrary: {
377
388
  } | undefined;
378
389
  allowWheelZoom?: boolean | undefined;
379
390
  allowPinchZoom?: boolean | undefined;
391
+ disableContextMenu: boolean;
380
392
  pinnedScripts?: string[] | undefined;
381
393
  customPens?: any[] | undefined;
382
394
  currentStrokeOptions?: any;
@@ -385,6 +397,10 @@ export declare const actionAddToLibrary: {
385
397
  Bold: string;
386
398
  Regular: string;
387
399
  };
400
+ gridDirection: {
401
+ horizontal: boolean;
402
+ vertical: boolean;
403
+ };
388
404
  highlightSearchResult: boolean;
389
405
  dynamicStyle: {
390
406
  [x: string]: string;
@@ -395,7 +411,7 @@ export declare const actionAddToLibrary: {
395
411
  nameColor: string;
396
412
  };
397
413
  invertBindingBehaviour: boolean;
398
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
414
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
399
415
  snapLines: readonly import("../snapping").SnapLine[];
400
416
  originSnapOffset: {
401
417
  x: number;
@@ -406,16 +422,14 @@ export declare const actionAddToLibrary: {
406
422
  followedBy: Set<import("../types").SocketId>;
407
423
  isCropping: boolean;
408
424
  croppingElementId: string | null;
409
- searchMatches: readonly {
410
- id: string;
411
- focus: boolean;
412
- matchedLines: {
413
- offsetX: number;
414
- offsetY: number;
415
- width: number;
416
- height: number;
417
- }[];
418
- }[];
425
+ searchMatches: Readonly<{
426
+ focusedId: string | null;
427
+ matches: readonly import("../types").SearchMatch[];
428
+ }> | null;
429
+ activeLockedId: string | null;
430
+ lockedMultiSelections: {
431
+ [groupId: string]: true;
432
+ };
419
433
  };
420
434
  }> | {
421
435
  captureUpdate: "EVENTUALLY";
@@ -438,23 +452,28 @@ export declare const actionAddToLibrary: {
438
452
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
439
453
  isBindingEnabled: boolean;
440
454
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
441
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
455
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
442
456
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
443
457
  frameRendering: {
444
458
  enabled: boolean;
445
459
  name: boolean;
446
460
  outline: boolean;
447
461
  clip: boolean;
462
+ markerName: boolean;
463
+ markerEnabled: boolean;
448
464
  };
449
465
  editingFrame: string | null;
450
466
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
451
467
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
452
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
453
468
  activeTool: {
454
469
  lastActiveTool: import("../types").ActiveTool | null;
455
470
  locked: boolean;
456
471
  fromSelection: boolean;
457
472
  } & import("../types").ActiveTool;
473
+ preferredSelectionTool: {
474
+ type: "selection" | "lasso";
475
+ initialized: boolean;
476
+ };
458
477
  penMode: boolean;
459
478
  penDetected: boolean;
460
479
  exportBackground: boolean;
@@ -476,6 +495,7 @@ export declare const actionAddToLibrary: {
476
495
  currentHoveredFontFamily: number | null;
477
496
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
478
497
  currentItemArrowType: "round" | "sharp" | "elbow";
498
+ currentItemFrameRole: ("marker" | null) | undefined;
479
499
  viewBackgroundColor: string;
480
500
  scrollX: number;
481
501
  scrollY: number;
@@ -487,8 +507,8 @@ export declare const actionAddToLibrary: {
487
507
  zoom: Readonly<{
488
508
  value: import("../types").NormalizedZoomValue;
489
509
  }>;
490
- openMenu: "shape" | "canvas" | null;
491
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
510
+ openMenu: "canvas" | "shape" | null;
511
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
492
512
  openSidebar: {
493
513
  name: string;
494
514
  tab?: string | undefined;
@@ -569,10 +589,8 @@ export declare const actionAddToLibrary: {
569
589
  shown: true;
570
590
  data: import("../charts").Spreadsheet;
571
591
  };
572
- pendingImageElementId: string | null;
573
- showHyperlinkPopup: false | "editor" | "info";
592
+ showHyperlinkPopup: false | "info" | "editor";
574
593
  linkOpacity: number;
575
- trayModeEnabled: boolean;
576
594
  colorPalette?: {
577
595
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
578
596
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -585,6 +603,7 @@ export declare const actionAddToLibrary: {
585
603
  } | undefined;
586
604
  allowWheelZoom?: boolean | undefined;
587
605
  allowPinchZoom?: boolean | undefined;
606
+ disableContextMenu: boolean;
588
607
  pinnedScripts?: string[] | undefined;
589
608
  customPens?: any[] | undefined;
590
609
  currentStrokeOptions?: any;
@@ -593,6 +612,10 @@ export declare const actionAddToLibrary: {
593
612
  Bold: string;
594
613
  Regular: string;
595
614
  };
615
+ gridDirection: {
616
+ horizontal: boolean;
617
+ vertical: boolean;
618
+ };
596
619
  highlightSearchResult: boolean;
597
620
  dynamicStyle: {
598
621
  [x: string]: string;
@@ -603,7 +626,7 @@ export declare const actionAddToLibrary: {
603
626
  nameColor: string;
604
627
  };
605
628
  invertBindingBehaviour: boolean;
606
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
629
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
607
630
  snapLines: readonly import("../snapping").SnapLine[];
608
631
  originSnapOffset: {
609
632
  x: number;
@@ -614,16 +637,14 @@ export declare const actionAddToLibrary: {
614
637
  followedBy: Set<import("../types").SocketId>;
615
638
  isCropping: boolean;
616
639
  croppingElementId: string | null;
617
- searchMatches: readonly {
618
- id: string;
619
- focus: boolean;
620
- matchedLines: {
621
- offsetX: number;
622
- offsetY: number;
623
- width: number;
624
- height: number;
625
- }[];
626
- }[];
640
+ searchMatches: Readonly<{
641
+ focusedId: string | null;
642
+ matches: readonly import("../types").SearchMatch[];
643
+ }> | null;
644
+ activeLockedId: string | null;
645
+ lockedMultiSelections: {
646
+ [groupId: string]: true;
647
+ };
627
648
  };
628
649
  };
629
650
  label: string;
@@ -47,23 +47,28 @@ export declare const actionBindText: {
47
47
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
48
  isBindingEnabled: boolean;
49
49
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
50
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
51
51
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
52
52
  frameRendering: {
53
53
  enabled: boolean;
54
54
  name: boolean;
55
55
  outline: boolean;
56
56
  clip: boolean;
57
+ markerName: boolean;
58
+ markerEnabled: boolean;
57
59
  };
58
60
  editingFrame: string | null;
59
61
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
60
62
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
61
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
62
63
  activeTool: {
63
64
  lastActiveTool: import("../types").ActiveTool | null;
64
65
  locked: boolean;
65
66
  fromSelection: boolean;
66
67
  } & import("../types").ActiveTool;
68
+ preferredSelectionTool: {
69
+ type: "selection" | "lasso";
70
+ initialized: boolean;
71
+ };
67
72
  penMode: boolean;
68
73
  penDetected: boolean;
69
74
  exportBackground: boolean;
@@ -85,6 +90,7 @@ export declare const actionBindText: {
85
90
  currentHoveredFontFamily: number | null;
86
91
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
87
92
  currentItemArrowType: "round" | "sharp" | "elbow";
93
+ currentItemFrameRole: ("marker" | null) | undefined;
88
94
  viewBackgroundColor: string;
89
95
  scrollX: number;
90
96
  scrollY: number;
@@ -96,8 +102,8 @@ export declare const actionBindText: {
96
102
  zoom: Readonly<{
97
103
  value: import("../types").NormalizedZoomValue;
98
104
  }>;
99
- openMenu: "shape" | "canvas" | null;
100
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
105
+ openMenu: "canvas" | "shape" | null;
106
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
101
107
  openSidebar: {
102
108
  name: string;
103
109
  tab?: string | undefined;
@@ -175,10 +181,8 @@ export declare const actionBindText: {
175
181
  shown: true;
176
182
  data: import("../charts").Spreadsheet;
177
183
  };
178
- pendingImageElementId: string | null;
179
- showHyperlinkPopup: false | "editor" | "info";
184
+ showHyperlinkPopup: false | "info" | "editor";
180
185
  linkOpacity: number;
181
- trayModeEnabled: boolean;
182
186
  colorPalette?: {
183
187
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
184
188
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -191,6 +195,7 @@ export declare const actionBindText: {
191
195
  } | undefined;
192
196
  allowWheelZoom?: boolean | undefined;
193
197
  allowPinchZoom?: boolean | undefined;
198
+ disableContextMenu: boolean;
194
199
  pinnedScripts?: string[] | undefined;
195
200
  customPens?: any[] | undefined;
196
201
  currentStrokeOptions?: any;
@@ -199,6 +204,10 @@ export declare const actionBindText: {
199
204
  Bold: string;
200
205
  Regular: string;
201
206
  };
207
+ gridDirection: {
208
+ horizontal: boolean;
209
+ vertical: boolean;
210
+ };
202
211
  highlightSearchResult: boolean;
203
212
  dynamicStyle: {
204
213
  [x: string]: string;
@@ -209,7 +218,7 @@ export declare const actionBindText: {
209
218
  nameColor: string;
210
219
  };
211
220
  invertBindingBehaviour: boolean;
212
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
221
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
213
222
  snapLines: readonly import("../snapping").SnapLine[];
214
223
  originSnapOffset: {
215
224
  x: number;
@@ -220,16 +229,14 @@ export declare const actionBindText: {
220
229
  followedBy: Set<import("../types").SocketId>;
221
230
  isCropping: boolean;
222
231
  croppingElementId: string | null;
223
- searchMatches: readonly {
224
- id: string;
225
- focus: boolean;
226
- matchedLines: {
227
- offsetX: number;
228
- offsetY: number;
229
- width: number;
230
- height: number;
231
- }[];
232
- }[];
232
+ searchMatches: Readonly<{
233
+ focusedId: string | null;
234
+ matches: readonly import("../types").SearchMatch[];
235
+ }> | null;
236
+ activeLockedId: string | null;
237
+ lockedMultiSelections: {
238
+ [groupId: string]: true;
239
+ };
233
240
  };
234
241
  captureUpdate: "IMMEDIATELY";
235
242
  };
@@ -267,23 +274,28 @@ export declare const actionWrapTextInContainer: {
267
274
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
268
275
  isBindingEnabled: boolean;
269
276
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
270
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
277
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
271
278
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
272
279
  frameRendering: {
273
280
  enabled: boolean;
274
281
  name: boolean;
275
282
  outline: boolean;
276
283
  clip: boolean;
284
+ markerName: boolean;
285
+ markerEnabled: boolean;
277
286
  };
278
287
  editingFrame: string | null;
279
288
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
280
289
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
281
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
282
290
  activeTool: {
283
291
  lastActiveTool: import("../types").ActiveTool | null;
284
292
  locked: boolean;
285
293
  fromSelection: boolean;
286
294
  } & import("../types").ActiveTool;
295
+ preferredSelectionTool: {
296
+ type: "selection" | "lasso";
297
+ initialized: boolean;
298
+ };
287
299
  penMode: boolean;
288
300
  penDetected: boolean;
289
301
  exportBackground: boolean;
@@ -305,6 +317,7 @@ export declare const actionWrapTextInContainer: {
305
317
  currentHoveredFontFamily: number | null;
306
318
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
307
319
  currentItemArrowType: "round" | "sharp" | "elbow";
320
+ currentItemFrameRole: ("marker" | null) | undefined;
308
321
  viewBackgroundColor: string;
309
322
  scrollX: number;
310
323
  scrollY: number;
@@ -316,8 +329,8 @@ export declare const actionWrapTextInContainer: {
316
329
  zoom: Readonly<{
317
330
  value: import("../types").NormalizedZoomValue;
318
331
  }>;
319
- openMenu: "shape" | "canvas" | null;
320
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
332
+ openMenu: "canvas" | "shape" | null;
333
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
321
334
  openSidebar: {
322
335
  name: string;
323
336
  tab?: string | undefined;
@@ -395,10 +408,8 @@ export declare const actionWrapTextInContainer: {
395
408
  shown: true;
396
409
  data: import("../charts").Spreadsheet;
397
410
  };
398
- pendingImageElementId: string | null;
399
- showHyperlinkPopup: false | "editor" | "info";
411
+ showHyperlinkPopup: false | "info" | "editor";
400
412
  linkOpacity: number;
401
- trayModeEnabled: boolean;
402
413
  colorPalette?: {
403
414
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
404
415
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -411,6 +422,7 @@ export declare const actionWrapTextInContainer: {
411
422
  } | undefined;
412
423
  allowWheelZoom?: boolean | undefined;
413
424
  allowPinchZoom?: boolean | undefined;
425
+ disableContextMenu: boolean;
414
426
  pinnedScripts?: string[] | undefined;
415
427
  customPens?: any[] | undefined;
416
428
  currentStrokeOptions?: any;
@@ -419,6 +431,10 @@ export declare const actionWrapTextInContainer: {
419
431
  Bold: string;
420
432
  Regular: string;
421
433
  };
434
+ gridDirection: {
435
+ horizontal: boolean;
436
+ vertical: boolean;
437
+ };
422
438
  highlightSearchResult: boolean;
423
439
  dynamicStyle: {
424
440
  [x: string]: string;
@@ -429,7 +445,7 @@ export declare const actionWrapTextInContainer: {
429
445
  nameColor: string;
430
446
  };
431
447
  invertBindingBehaviour: boolean;
432
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
448
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
433
449
  snapLines: readonly import("../snapping").SnapLine[];
434
450
  originSnapOffset: {
435
451
  x: number;
@@ -440,16 +456,14 @@ export declare const actionWrapTextInContainer: {
440
456
  followedBy: Set<import("../types").SocketId>;
441
457
  isCropping: boolean;
442
458
  croppingElementId: string | null;
443
- searchMatches: readonly {
444
- id: string;
445
- focus: boolean;
446
- matchedLines: {
447
- offsetX: number;
448
- offsetY: number;
449
- width: number;
450
- height: number;
451
- }[];
452
- }[];
459
+ searchMatches: Readonly<{
460
+ focusedId: string | null;
461
+ matches: readonly import("../types").SearchMatch[];
462
+ }> | null;
463
+ activeLockedId: string | null;
464
+ lockedMultiSelections: {
465
+ [groupId: string]: true;
466
+ };
453
467
  };
454
468
  captureUpdate: "IMMEDIATELY";
455
469
  };