@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
@@ -25,23 +25,28 @@ export declare const actionLink: {
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
27
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
28
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
29
29
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
32
32
  name: boolean;
33
33
  outline: boolean;
34
34
  clip: boolean;
35
+ markerName: boolean;
36
+ markerEnabled: boolean;
35
37
  };
36
38
  editingFrame: string | null;
37
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
41
  activeTool: {
41
42
  lastActiveTool: import("../types").ActiveTool | null;
42
43
  locked: boolean;
43
44
  fromSelection: boolean;
44
45
  } & import("../types").ActiveTool;
46
+ preferredSelectionTool: {
47
+ type: "selection" | "lasso";
48
+ initialized: boolean;
49
+ };
45
50
  penMode: boolean;
46
51
  penDetected: boolean;
47
52
  exportBackground: boolean;
@@ -63,6 +68,7 @@ export declare const actionLink: {
63
68
  currentHoveredFontFamily: number | null;
64
69
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
70
  currentItemArrowType: "round" | "sharp" | "elbow";
71
+ currentItemFrameRole: ("marker" | null) | undefined;
66
72
  viewBackgroundColor: string;
67
73
  scrollX: number;
68
74
  scrollY: number;
@@ -74,7 +80,7 @@ export declare const actionLink: {
74
80
  zoom: Readonly<{
75
81
  value: import("../types").NormalizedZoomValue;
76
82
  }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
84
  openSidebar: {
79
85
  name: string;
80
86
  tab?: string | undefined;
@@ -155,9 +161,7 @@ export declare const actionLink: {
155
161
  shown: true;
156
162
  data: import("../charts").Spreadsheet;
157
163
  };
158
- pendingImageElementId: string | null;
159
164
  linkOpacity: number;
160
- trayModeEnabled: boolean;
161
165
  colorPalette?: {
162
166
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
163
167
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -170,6 +174,7 @@ export declare const actionLink: {
170
174
  } | undefined;
171
175
  allowWheelZoom?: boolean | undefined;
172
176
  allowPinchZoom?: boolean | undefined;
177
+ disableContextMenu: boolean;
173
178
  pinnedScripts?: string[] | undefined;
174
179
  customPens?: any[] | undefined;
175
180
  currentStrokeOptions?: any;
@@ -178,6 +183,10 @@ export declare const actionLink: {
178
183
  Bold: string;
179
184
  Regular: string;
180
185
  };
186
+ gridDirection: {
187
+ horizontal: boolean;
188
+ vertical: boolean;
189
+ };
181
190
  highlightSearchResult: boolean;
182
191
  dynamicStyle: {
183
192
  [x: string]: string;
@@ -188,7 +197,7 @@ export declare const actionLink: {
188
197
  nameColor: string;
189
198
  };
190
199
  invertBindingBehaviour: boolean;
191
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
200
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
192
201
  snapLines: readonly import("../snapping").SnapLine[];
193
202
  originSnapOffset: {
194
203
  x: number;
@@ -199,16 +208,14 @@ export declare const actionLink: {
199
208
  followedBy: Set<import("../types").SocketId>;
200
209
  isCropping: boolean;
201
210
  croppingElementId: string | null;
202
- searchMatches: readonly {
203
- id: string;
204
- focus: boolean;
205
- matchedLines: {
206
- offsetX: number;
207
- offsetY: number;
208
- width: number;
209
- height: number;
210
- }[];
211
- }[];
211
+ searchMatches: Readonly<{
212
+ focusedId: string | null;
213
+ matches: readonly import("../types").SearchMatch[];
214
+ }> | null;
215
+ activeLockedId: string | null;
216
+ lockedMultiSelections: {
217
+ [groupId: string]: true;
218
+ };
212
219
  };
213
220
  captureUpdate: "IMMEDIATELY";
214
221
  };
@@ -1,441 +1,3 @@
1
- export declare const actionToggleCanvasMenu: {
2
- name: "toggleCanvasMenu";
3
- label: string;
4
- trackEvent: {
5
- category: "menu";
6
- };
7
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
8
- appState: {
9
- openMenu: "canvas" | null;
10
- contextMenu: {
11
- items: import("../components/ContextMenu").ContextMenuItems;
12
- top: number;
13
- left: number;
14
- } | null;
15
- showWelcomeScreen: boolean;
16
- isLoading: boolean;
17
- errorMessage: import("react").ReactNode;
18
- activeEmbeddable: {
19
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
20
- state: "active" | "hover";
21
- } | null;
22
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
23
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
24
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
- isBindingEnabled: boolean;
27
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
- frameRendering: {
31
- enabled: boolean;
32
- name: boolean;
33
- outline: boolean;
34
- clip: boolean;
35
- };
36
- editingFrame: string | null;
37
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
- currentItemArrowType: "round" | "sharp" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- name: string | null;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
- openSidebar: {
79
- name: string;
80
- tab?: string | undefined;
81
- } | null;
82
- openDialog: {
83
- name: "help" | "imageExport" | "jsonExport";
84
- } | {
85
- name: "ttd";
86
- tab: "mermaid" | "text-to-diagram";
87
- } | {
88
- name: "commandPalette";
89
- } | {
90
- name: "elementLinkSelector";
91
- sourceElementId: string;
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
- selectedElementIds: Readonly<{
96
- [id: string]: true;
97
- }>;
98
- hoveredElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- previousSelectedElementIds: {
102
- [id: string]: true;
103
- };
104
- selectedElementsAreBeingDragged: boolean;
105
- shouldCacheIgnoreZoom: boolean;
106
- toast: {
107
- message: string;
108
- closable?: boolean | undefined;
109
- duration?: number | undefined;
110
- } | null;
111
- zenModeEnabled: boolean;
112
- theme: import("@excalidraw/element/types").Theme;
113
- gridSize: number;
114
- gridStep: number;
115
- gridModeEnabled: boolean;
116
- viewModeEnabled: boolean;
117
- selectedGroupIds: {
118
- [groupId: string]: boolean;
119
- };
120
- editingGroupId: string | null;
121
- width: number;
122
- height: number;
123
- offsetTop: number;
124
- offsetLeft: number;
125
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<import("../types").SocketId, Readonly<{
127
- pointer?: import("../types").CollaboratorPointer | undefined;
128
- button?: "up" | "down" | undefined;
129
- selectedElementIds?: Readonly<{
130
- [id: string]: true;
131
- }> | undefined;
132
- username?: string | null | undefined;
133
- userState?: import("@excalidraw/common").UserIdleState | undefined;
134
- color?: {
135
- background: string;
136
- stroke: string;
137
- } | undefined;
138
- avatarUrl?: string | undefined;
139
- id?: string | undefined;
140
- socketId?: import("../types").SocketId | undefined;
141
- isCurrentUser?: boolean | undefined;
142
- isInCall?: boolean | undefined;
143
- isSpeaking?: boolean | undefined;
144
- isMuted?: boolean | undefined;
145
- }>>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
160
- linkOpacity: number;
161
- trayModeEnabled: boolean;
162
- colorPalette?: {
163
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
165
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
166
- topPicks: {
167
- canvasBackground: [string, string, string, string, string];
168
- elementStroke: [string, string, string, string, string];
169
- elementBackground: [string, string, string, string, string];
170
- };
171
- } | undefined;
172
- allowWheelZoom?: boolean | undefined;
173
- allowPinchZoom?: boolean | undefined;
174
- pinnedScripts?: string[] | undefined;
175
- customPens?: any[] | undefined;
176
- currentStrokeOptions?: any;
177
- resetCustomPen?: any;
178
- gridColor: {
179
- Bold: string;
180
- Regular: string;
181
- };
182
- highlightSearchResult: boolean;
183
- dynamicStyle: {
184
- [x: string]: string;
185
- };
186
- frameColor: {
187
- stroke: string;
188
- fill: string;
189
- nameColor: string;
190
- };
191
- invertBindingBehaviour: boolean;
192
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
193
- snapLines: readonly import("../snapping").SnapLine[];
194
- originSnapOffset: {
195
- x: number;
196
- y: number;
197
- } | null;
198
- objectsSnapModeEnabled: boolean;
199
- userToFollow: import("../types").UserToFollow | null;
200
- followedBy: Set<import("../types").SocketId>;
201
- isCropping: boolean;
202
- 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
- }[];
213
- };
214
- captureUpdate: "EVENTUALLY";
215
- };
216
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
217
- } & {
218
- keyTest?: undefined;
219
- };
220
- export declare const actionToggleEditMenu: {
221
- name: "toggleEditMenu";
222
- label: string;
223
- trackEvent: {
224
- category: "menu";
225
- };
226
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
227
- appState: {
228
- openMenu: "shape" | null;
229
- contextMenu: {
230
- items: import("../components/ContextMenu").ContextMenuItems;
231
- top: number;
232
- left: number;
233
- } | null;
234
- showWelcomeScreen: boolean;
235
- isLoading: boolean;
236
- errorMessage: import("react").ReactNode;
237
- activeEmbeddable: {
238
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
239
- state: "active" | "hover";
240
- } | null;
241
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
242
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
243
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
244
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
245
- isBindingEnabled: boolean;
246
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
247
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
248
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
249
- frameRendering: {
250
- enabled: boolean;
251
- name: boolean;
252
- outline: boolean;
253
- clip: boolean;
254
- };
255
- editingFrame: string | null;
256
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
257
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
258
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
259
- activeTool: {
260
- lastActiveTool: import("../types").ActiveTool | null;
261
- locked: boolean;
262
- fromSelection: boolean;
263
- } & import("../types").ActiveTool;
264
- penMode: boolean;
265
- penDetected: boolean;
266
- exportBackground: boolean;
267
- exportEmbedScene: boolean;
268
- exportWithDarkMode: boolean;
269
- exportScale: number;
270
- currentItemStrokeColor: string;
271
- currentItemBackgroundColor: string;
272
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
273
- currentItemStrokeWidth: number;
274
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
275
- currentItemRoughness: number;
276
- currentItemOpacity: number;
277
- currentItemFontFamily: number;
278
- currentItemFontSize: number;
279
- currentItemTextAlign: string;
280
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
281
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
- currentHoveredFontFamily: number | null;
283
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
- currentItemArrowType: "round" | "sharp" | "elbow";
285
- viewBackgroundColor: string;
286
- scrollX: number;
287
- scrollY: number;
288
- cursorButton: "up" | "down";
289
- scrolledOutside: boolean;
290
- name: string | null;
291
- isResizing: boolean;
292
- isRotating: boolean;
293
- zoom: Readonly<{
294
- value: import("../types").NormalizedZoomValue;
295
- }>;
296
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
297
- openSidebar: {
298
- name: string;
299
- tab?: string | undefined;
300
- } | null;
301
- openDialog: {
302
- name: "help" | "imageExport" | "jsonExport";
303
- } | {
304
- name: "ttd";
305
- tab: "mermaid" | "text-to-diagram";
306
- } | {
307
- name: "commandPalette";
308
- } | {
309
- name: "elementLinkSelector";
310
- sourceElementId: string;
311
- } | null;
312
- defaultSidebarDockedPreference: boolean;
313
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
314
- selectedElementIds: Readonly<{
315
- [id: string]: true;
316
- }>;
317
- hoveredElementIds: Readonly<{
318
- [id: string]: true;
319
- }>;
320
- previousSelectedElementIds: {
321
- [id: string]: true;
322
- };
323
- selectedElementsAreBeingDragged: boolean;
324
- shouldCacheIgnoreZoom: boolean;
325
- toast: {
326
- message: string;
327
- closable?: boolean | undefined;
328
- duration?: number | undefined;
329
- } | null;
330
- zenModeEnabled: boolean;
331
- theme: import("@excalidraw/element/types").Theme;
332
- gridSize: number;
333
- gridStep: number;
334
- gridModeEnabled: boolean;
335
- viewModeEnabled: boolean;
336
- selectedGroupIds: {
337
- [groupId: string]: boolean;
338
- };
339
- editingGroupId: string | null;
340
- width: number;
341
- height: number;
342
- offsetTop: number;
343
- offsetLeft: number;
344
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
345
- collaborators: Map<import("../types").SocketId, Readonly<{
346
- pointer?: import("../types").CollaboratorPointer | undefined;
347
- button?: "up" | "down" | undefined;
348
- selectedElementIds?: Readonly<{
349
- [id: string]: true;
350
- }> | undefined;
351
- username?: string | null | undefined;
352
- userState?: import("@excalidraw/common").UserIdleState | undefined;
353
- color?: {
354
- background: string;
355
- stroke: string;
356
- } | undefined;
357
- avatarUrl?: string | undefined;
358
- id?: string | undefined;
359
- socketId?: import("../types").SocketId | undefined;
360
- isCurrentUser?: boolean | undefined;
361
- isInCall?: boolean | undefined;
362
- isSpeaking?: boolean | undefined;
363
- isMuted?: boolean | undefined;
364
- }>>;
365
- stats: {
366
- open: boolean;
367
- panels: number;
368
- };
369
- currentChartType: import("@excalidraw/element/types").ChartType;
370
- pasteDialog: {
371
- shown: false;
372
- data: null;
373
- } | {
374
- shown: true;
375
- data: import("../charts").Spreadsheet;
376
- };
377
- pendingImageElementId: string | null;
378
- showHyperlinkPopup: false | "editor" | "info";
379
- linkOpacity: number;
380
- trayModeEnabled: boolean;
381
- colorPalette?: {
382
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
383
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
384
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
385
- topPicks: {
386
- canvasBackground: [string, string, string, string, string];
387
- elementStroke: [string, string, string, string, string];
388
- elementBackground: [string, string, string, string, string];
389
- };
390
- } | undefined;
391
- allowWheelZoom?: boolean | undefined;
392
- allowPinchZoom?: boolean | undefined;
393
- pinnedScripts?: string[] | undefined;
394
- customPens?: any[] | undefined;
395
- currentStrokeOptions?: any;
396
- resetCustomPen?: any;
397
- gridColor: {
398
- Bold: string;
399
- Regular: string;
400
- };
401
- highlightSearchResult: boolean;
402
- dynamicStyle: {
403
- [x: string]: string;
404
- };
405
- frameColor: {
406
- stroke: string;
407
- fill: string;
408
- nameColor: string;
409
- };
410
- invertBindingBehaviour: boolean;
411
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
412
- snapLines: readonly import("../snapping").SnapLine[];
413
- originSnapOffset: {
414
- x: number;
415
- y: number;
416
- } | null;
417
- objectsSnapModeEnabled: boolean;
418
- userToFollow: import("../types").UserToFollow | null;
419
- followedBy: Set<import("../types").SocketId>;
420
- isCropping: boolean;
421
- croppingElementId: string | null;
422
- searchMatches: readonly {
423
- id: string;
424
- focus: boolean;
425
- matchedLines: {
426
- offsetX: number;
427
- offsetY: number;
428
- width: number;
429
- height: number;
430
- }[];
431
- }[];
432
- };
433
- captureUpdate: "EVENTUALLY";
434
- };
435
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
436
- } & {
437
- keyTest?: undefined;
438
- };
439
1
  export declare const actionShortcuts: {
440
2
  name: "toggleShortcuts";
441
3
  label: string;
@@ -450,6 +12,8 @@ export declare const actionShortcuts: {
450
12
  openDialog: {
451
13
  name: "help";
452
14
  } | null;
15
+ openMenu: null;
16
+ openPopup: null;
453
17
  contextMenu: {
454
18
  items: import("../components/ContextMenu").ContextMenuItems;
455
19
  top: number;
@@ -468,23 +32,28 @@ export declare const actionShortcuts: {
468
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
469
33
  isBindingEnabled: boolean;
470
34
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
471
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
35
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
472
36
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
473
37
  frameRendering: {
474
38
  enabled: boolean;
475
39
  name: boolean;
476
40
  outline: boolean;
477
41
  clip: boolean;
42
+ markerName: boolean;
43
+ markerEnabled: boolean;
478
44
  };
479
45
  editingFrame: string | null;
480
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
481
47
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
482
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
483
48
  activeTool: {
484
49
  lastActiveTool: import("../types").ActiveTool | null;
485
50
  locked: boolean;
486
51
  fromSelection: boolean;
487
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
488
57
  penMode: boolean;
489
58
  penDetected: boolean;
490
59
  exportBackground: boolean;
@@ -506,6 +75,7 @@ export declare const actionShortcuts: {
506
75
  currentHoveredFontFamily: number | null;
507
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
508
77
  currentItemArrowType: "round" | "sharp" | "elbow";
78
+ currentItemFrameRole: ("marker" | null) | undefined;
509
79
  viewBackgroundColor: string;
510
80
  scrollX: number;
511
81
  scrollY: number;
@@ -517,8 +87,6 @@ export declare const actionShortcuts: {
517
87
  zoom: Readonly<{
518
88
  value: import("../types").NormalizedZoomValue;
519
89
  }>;
520
- openMenu: "shape" | "canvas" | null;
521
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
522
90
  openSidebar: {
523
91
  name: string;
524
92
  tab?: string | undefined;
@@ -588,10 +156,8 @@ export declare const actionShortcuts: {
588
156
  shown: true;
589
157
  data: import("../charts").Spreadsheet;
590
158
  };
591
- pendingImageElementId: string | null;
592
- showHyperlinkPopup: false | "editor" | "info";
159
+ showHyperlinkPopup: false | "info" | "editor";
593
160
  linkOpacity: number;
594
- trayModeEnabled: boolean;
595
161
  colorPalette?: {
596
162
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
597
163
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -604,6 +170,7 @@ export declare const actionShortcuts: {
604
170
  } | undefined;
605
171
  allowWheelZoom?: boolean | undefined;
606
172
  allowPinchZoom?: boolean | undefined;
173
+ disableContextMenu: boolean;
607
174
  pinnedScripts?: string[] | undefined;
608
175
  customPens?: any[] | undefined;
609
176
  currentStrokeOptions?: any;
@@ -612,6 +179,10 @@ export declare const actionShortcuts: {
612
179
  Bold: string;
613
180
  Regular: string;
614
181
  };
182
+ gridDirection: {
183
+ horizontal: boolean;
184
+ vertical: boolean;
185
+ };
615
186
  highlightSearchResult: boolean;
616
187
  dynamicStyle: {
617
188
  [x: string]: string;
@@ -622,7 +193,7 @@ export declare const actionShortcuts: {
622
193
  nameColor: string;
623
194
  };
624
195
  invertBindingBehaviour: boolean;
625
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
196
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
626
197
  snapLines: readonly import("../snapping").SnapLine[];
627
198
  originSnapOffset: {
628
199
  x: number;
@@ -633,16 +204,14 @@ export declare const actionShortcuts: {
633
204
  followedBy: Set<import("../types").SocketId>;
634
205
  isCropping: boolean;
635
206
  croppingElementId: string | null;
636
- searchMatches: readonly {
637
- id: string;
638
- focus: boolean;
639
- matchedLines: {
640
- offsetX: number;
641
- offsetY: number;
642
- width: number;
643
- height: number;
644
- }[];
645
- }[];
207
+ searchMatches: Readonly<{
208
+ focusedId: string | null;
209
+ matches: readonly import("../types").SearchMatch[];
210
+ }> | null;
211
+ activeLockedId: string | null;
212
+ lockedMultiSelections: {
213
+ [groupId: string]: true;
214
+ };
646
215
  };
647
216
  captureUpdate: "EVENTUALLY";
648
217
  };