@dwelle/excalidraw 0.4.0-8a7de60 → 0.4.0-92bc9f4

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 (202) hide show
  1. package/CHANGELOG.md +271 -1
  2. package/README.md +4 -0
  3. package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js → vendor-d415b28e9024dee4bb1b.js} +2 -2
  4. package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
  5. package/dist/excalidraw.development.js +2932 -1613
  6. package/dist/excalidraw.production.min.js +1 -1
  7. package/package.json +8 -3
  8. package/types/actions/actionAddToLibrary.d.ts +102 -52
  9. package/types/actions/actionAlign.d.ts +33 -28
  10. package/types/actions/actionBoundText.d.ts +72 -38
  11. package/types/actions/actionCanvas.d.ts +497 -195
  12. package/types/actions/actionClipboard.d.ts +170 -89
  13. package/types/actions/actionDeleteSelected.d.ts +98 -51
  14. package/types/actions/actionDistribute.d.ts +11 -12
  15. package/types/actions/actionDuplicateSelection.d.ts +2 -3
  16. package/types/actions/actionElementLock.d.ts +271 -0
  17. package/types/actions/actionExport.d.ts +358 -205
  18. package/types/actions/actionFinalize.d.ts +68 -38
  19. package/types/actions/actionFlip.d.ts +8 -11
  20. package/types/actions/actionFrame.d.ts +423 -0
  21. package/types/actions/actionGroup.d.ts +250 -13
  22. package/types/actions/actionHistory.d.ts +1 -1
  23. package/types/actions/actionLinearEditor.d.ts +36 -20
  24. package/types/actions/actionMenu.d.ts +105 -56
  25. package/types/actions/actionNavigate.d.ts +1 -1
  26. package/types/actions/actionProperties.d.ts +450 -228
  27. package/types/actions/actionSelectAll.d.ts +123 -4
  28. package/types/actions/actionStyles.d.ts +38 -22
  29. package/types/actions/actionToggleGridMode.d.ts +36 -20
  30. package/types/actions/{actionToggleLock.d.ts → actionToggleObjectsSnapMode.d.ts} +48 -30
  31. package/types/actions/actionToggleStats.d.ts +36 -20
  32. package/types/actions/actionToggleViewMode.d.ts +36 -20
  33. package/types/actions/actionToggleZenMode.d.ts +36 -20
  34. package/types/actions/actionZindex.d.ts +12 -12
  35. package/types/actions/index.d.ts +2 -1
  36. package/types/actions/manager.d.ts +1 -1
  37. package/types/actions/shortcuts.d.ts +1 -1
  38. package/types/actions/types.d.ts +10 -9
  39. package/types/appState.d.ts +15 -17
  40. package/types/charts.d.ts +2 -2
  41. package/types/clients.d.ts +5 -6
  42. package/types/clipboard.d.ts +1 -0
  43. package/types/colors.d.ts +60 -5
  44. package/types/components/Actions.d.ts +7 -8
  45. package/types/components/ActiveConfirmDialog.d.ts +1 -21
  46. package/types/components/App.d.ts +76 -32
  47. package/types/components/Avatar.d.ts +1 -2
  48. package/types/components/Button.d.ts +3 -2
  49. package/types/components/Card.d.ts +0 -1
  50. package/types/components/ColorPicker/ColorInput.d.ts +9 -0
  51. package/types/components/ColorPicker/ColorPicker.d.ts +19 -0
  52. package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
  53. package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
  54. package/types/components/ColorPicker/Picker.d.ts +18 -0
  55. package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
  56. package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
  57. package/types/components/ColorPicker/ShadeList.d.ts +8 -0
  58. package/types/components/ColorPicker/TopPicks.d.ts +9 -0
  59. package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -0
  60. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +20 -0
  61. package/types/components/ContextMenu.d.ts +3 -3
  62. package/types/components/DefaultSidebar.d.ts +29 -0
  63. package/types/components/Dialog.d.ts +3 -4
  64. package/types/components/ExcalidrawLogo.d.ts +15 -0
  65. package/types/components/EyeDropper.d.ts +28 -0
  66. package/types/components/FilledButton.d.ts +17 -0
  67. package/types/components/FixedSideContainer.d.ts +1 -1
  68. package/types/components/HandButton.d.ts +1 -1
  69. package/types/components/HelpButton.d.ts +1 -1
  70. package/types/components/HintViewer.d.ts +4 -5
  71. package/types/components/HomeButton.d.ts +1 -1
  72. package/types/components/ImageExportDialog.d.ts +8 -13
  73. package/types/components/Island.d.ts +1 -1
  74. package/types/components/JSONExportDialog.d.ts +5 -5
  75. package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
  76. package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
  77. package/types/components/LaserTool/LaserTool.d.ts +7 -0
  78. package/types/components/LayerUI.d.ts +9 -11
  79. package/types/components/LibraryMenu.d.ts +13 -14
  80. package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
  81. package/types/components/LibraryMenuControlButtons.d.ts +9 -0
  82. package/types/components/LibraryMenuHeaderContent.d.ts +10 -28
  83. package/types/components/LibraryMenuItems.d.ts +6 -7
  84. package/types/components/LibraryMenuSection.d.ts +22 -0
  85. package/types/components/LibraryUnit.d.ts +6 -3
  86. package/types/components/LoadingMessage.d.ts +0 -1
  87. package/types/components/LockButton.d.ts +1 -1
  88. package/types/components/MobileMenu.d.ts +7 -6
  89. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  90. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  91. package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  92. package/types/components/PasteChartDialog.d.ts +4 -5
  93. package/types/components/PenModeButton.d.ts +1 -1
  94. package/types/components/Popover.d.ts +1 -1
  95. package/types/components/ProjectName.d.ts +2 -1
  96. package/types/components/PublishLibrary.d.ts +2 -2
  97. package/types/components/RadioGroup.d.ts +12 -0
  98. package/types/components/Section.d.ts +1 -1
  99. package/types/components/Sidebar/Sidebar.d.ts +66 -63
  100. package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
  101. package/types/components/Sidebar/SidebarTab.d.ts +8 -0
  102. package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -0
  103. package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -0
  104. package/types/components/Sidebar/SidebarTabs.d.ts +6 -0
  105. package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
  106. package/types/components/Sidebar/common.d.ts +24 -7
  107. package/types/components/Spinner.d.ts +2 -1
  108. package/types/components/Stack.d.ts +4 -3
  109. package/types/components/Stats.d.ts +3 -3
  110. package/types/components/Switch.d.ts +9 -0
  111. package/types/components/ToolButton.d.ts +5 -4
  112. package/types/components/Tooltip.d.ts +1 -1
  113. package/types/components/Trans.d.ts +9 -0
  114. package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
  115. package/types/components/canvases/StaticCanvas.d.ts +18 -0
  116. package/types/components/canvases/index.d.ts +3 -0
  117. package/types/components/dropdownMenu/DropdownMenu.d.ts +9 -5
  118. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -1
  119. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
  120. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
  121. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -2
  122. package/types/components/dropdownMenu/common.d.ts +1 -1
  123. package/types/components/footer/Footer.d.ts +2 -2
  124. package/types/components/icons.d.ts +14 -1
  125. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
  126. package/types/components/main-menu/MainMenu.d.ts +9 -5
  127. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
  128. package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
  129. package/types/constants.d.ts +46 -3
  130. package/types/context/tunnels.d.ts +19 -0
  131. package/types/context/ui-appState.d.ts +4 -0
  132. package/types/data/encode.d.ts +1 -1
  133. package/types/data/filesystem.d.ts +1 -1
  134. package/types/data/library.d.ts +3 -45
  135. package/types/data/restore.d.ts +2 -2
  136. package/types/data/transform.d.ts +71 -0
  137. package/types/data/types.d.ts +3 -5
  138. package/types/data/url.d.ts +7 -0
  139. package/types/element/Hyperlink.d.ts +47 -27
  140. package/types/element/binding.d.ts +4 -3
  141. package/types/element/bounds.d.ts +30 -6
  142. package/types/element/collision.d.ts +7 -7
  143. package/types/element/dragElements.d.ts +12 -2
  144. package/types/element/embeddable.d.ts +153 -0
  145. package/types/element/index.d.ts +3 -2
  146. package/types/element/linearElementEditor.d.ts +39 -23
  147. package/types/element/mutateElement.d.ts +1 -1
  148. package/types/element/newElement.d.ts +15 -6
  149. package/types/element/resizeElements.d.ts +3 -2
  150. package/types/element/showSelectedShapeActions.d.ts +2 -2
  151. package/types/element/sizeHelpers.d.ts +8 -1
  152. package/types/element/textElement.d.ts +6 -8
  153. package/types/element/textWysiwyg.d.ts +1 -1
  154. package/types/element/transformHandles.d.ts +15 -8
  155. package/types/element/typeChecks.d.ts +3 -1
  156. package/types/element/types.d.ts +51 -35
  157. package/types/emitter.d.ts +1 -1
  158. package/types/errors.d.ts +1 -1
  159. package/types/frame.d.ts +40 -0
  160. package/types/ga.d.ts +5 -5
  161. package/types/groups.d.ts +15 -11
  162. package/types/history.d.ts +3 -3
  163. package/types/hooks/useCreatePortalContainer.d.ts +4 -0
  164. package/types/hooks/useLibraryItemSvg.d.ts +11 -0
  165. package/types/hooks/useOutsideClick.d.ts +19 -2
  166. package/types/hooks/useScrollPosition.d.ts +1 -0
  167. package/types/hooks/useStable.d.ts +1 -0
  168. package/types/hooks/useTransition.d.ts +2 -0
  169. package/types/i18n.d.ts +7 -4
  170. package/types/jotai.d.ts +16 -104
  171. package/types/keys.d.ts +5 -1
  172. package/types/math.d.ts +3 -0
  173. package/types/packages/excalidraw/example/initialData.d.ts +182 -64
  174. package/types/packages/excalidraw/index.d.ts +5 -2
  175. package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
  176. package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
  177. package/types/packages/utils.d.ts +5 -2
  178. package/types/renderer/renderElement.d.ts +11 -22
  179. package/types/renderer/renderScene.d.ts +19 -27
  180. package/types/renderer/renderSnaps.d.ts +2 -0
  181. package/types/renderer/roundRect.d.ts +1 -1
  182. package/types/scene/Renderer.d.ts +25 -0
  183. package/types/scene/Scene.d.ts +27 -5
  184. package/types/scene/Shape.d.ts +12 -0
  185. package/types/scene/ShapeCache.d.ts +20 -0
  186. package/types/scene/export.d.ts +37 -11
  187. package/types/scene/scroll.d.ts +1 -1
  188. package/types/scene/scrollbars.d.ts +2 -6
  189. package/types/scene/selection.d.ts +27 -6
  190. package/types/scene/types.d.ts +69 -34
  191. package/types/snapping.d.ts +108 -0
  192. package/types/types.d.ts +177 -65
  193. package/types/utility-types.d.ts +16 -14
  194. package/types/utils.d.ts +66 -27
  195. package/types/zindex.d.ts +4 -4
  196. package/types/components/ColorPicker.d.ts +0 -14
  197. package/types/components/LibraryButton.d.ts +0 -8
  198. package/types/components/context/tunnels.d.ts +0 -16
  199. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
  200. /package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js.LICENSE.txt → vendor-d415b28e9024dee4bb1b.js.LICENSE.txt} +0 -0
  201. /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.d.ts → vendor-d415b28e9024dee4bb1b.d.ts} +0 -0
  202. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
@@ -1,14 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
3
2
  import { AppState } from "../types";
3
+ import { Mutable } from "../utility-types";
4
4
  export declare const actionUnbindText: {
5
5
  name: "unbindText";
6
6
  contextItemLabel: string;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
11
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
10
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
12
12
  elements: readonly ExcalidrawElement[];
13
13
  appState: Readonly<AppState>;
14
14
  commitToHistory: true;
@@ -22,8 +22,8 @@ export declare const actionBindText: {
22
22
  trackEvent: {
23
23
  category: "element";
24
24
  };
25
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
26
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
25
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
26
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
27
27
  elements: ExcalidrawElement[];
28
28
  appState: {
29
29
  selectedElementIds: {
@@ -37,6 +37,10 @@ export declare const actionBindText: {
37
37
  showWelcomeScreen: boolean;
38
38
  isLoading: boolean;
39
39
  errorMessage: import("react").ReactNode;
40
+ activeEmbeddable: {
41
+ element: import("../element/types").NonDeletedExcalidrawElement;
42
+ state: "active" | "hover";
43
+ } | null;
40
44
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
45
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
46
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -44,18 +48,21 @@ export declare const actionBindText: {
44
48
  isBindingEnabled: boolean;
45
49
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
46
50
  suggestedBindings: import("../element/binding").SuggestedBinding[];
51
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
52
+ frameRendering: {
53
+ enabled: boolean;
54
+ name: boolean;
55
+ outline: boolean;
56
+ clip: boolean;
57
+ };
58
+ editingFrame: string | null;
59
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
47
60
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
61
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
49
62
  activeTool: {
50
- lastActiveTool: import("../types").LastActiveTool;
63
+ lastActiveTool: import("../types").ActiveTool | null;
51
64
  locked: boolean;
52
- } & ({
53
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
54
- customType: null;
55
- } | {
56
- type: "custom";
57
- customType: string;
58
- });
65
+ } & import("../types").ActiveTool;
59
66
  penMode: boolean;
60
67
  penDetected: boolean;
61
68
  exportBackground: boolean;
@@ -87,14 +94,18 @@ export declare const actionBindText: {
87
94
  value: import("../types").NormalizedZoomValue;
88
95
  }>;
89
96
  openMenu: "canvas" | "shape" | null;
90
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
91
- openSidebar: "library" | "customSidebar" | null;
97
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
98
+ openSidebar: {
99
+ name: string;
100
+ tab?: string | undefined;
101
+ } | null;
92
102
  openDialog: "imageExport" | "help" | "jsonExport" | null;
93
- isSidebarDocked: boolean;
103
+ defaultSidebarDockedPreference: boolean;
94
104
  lastPointerDownWith: import("../element/types").PointerType;
95
105
  previousSelectedElementIds: {
96
- [id: string]: boolean;
106
+ [id: string]: true;
97
107
  };
108
+ selectedElementsAreBeingDragged: boolean;
98
109
  shouldCacheIgnoreZoom: boolean;
99
110
  toast: {
100
111
  message: string;
@@ -102,7 +113,7 @@ export declare const actionBindText: {
102
113
  duration?: number | undefined;
103
114
  } | null;
104
115
  zenModeEnabled: boolean;
105
- theme: string;
116
+ theme: import("../element/types").Theme;
106
117
  gridSize: number | null;
107
118
  viewModeEnabled: boolean;
108
119
  selectedGroupIds: {
@@ -125,8 +136,14 @@ export declare const actionBindText: {
125
136
  data: import("../charts").Spreadsheet;
126
137
  };
127
138
  pendingImageElementId: string | null;
128
- showHyperlinkPopup: false | "info" | "editor";
139
+ showHyperlinkPopup: false | "editor" | "info";
129
140
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
141
+ snapLines: readonly import("../snapping").SnapLine[];
142
+ originSnapOffset: {
143
+ x: number;
144
+ y: number;
145
+ } | null;
146
+ objectsSnapModeEnabled: boolean;
130
147
  };
131
148
  commitToHistory: true;
132
149
  };
@@ -139,13 +156,13 @@ export declare const actionWrapTextInContainer: {
139
156
  trackEvent: {
140
157
  category: "element";
141
158
  };
142
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
143
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
159
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
160
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
144
161
  elements: readonly ExcalidrawElement[];
145
162
  appState: {
146
- selectedElementIds: {
147
- [id: string]: boolean;
148
- };
163
+ selectedElementIds: Mutable<Readonly<{
164
+ [id: string]: true;
165
+ }>>;
149
166
  contextMenu: {
150
167
  items: import("../components/ContextMenu").ContextMenuItems;
151
168
  top: number;
@@ -154,6 +171,10 @@ export declare const actionWrapTextInContainer: {
154
171
  showWelcomeScreen: boolean;
155
172
  isLoading: boolean;
156
173
  errorMessage: import("react").ReactNode;
174
+ activeEmbeddable: {
175
+ element: import("../element/types").NonDeletedExcalidrawElement;
176
+ state: "active" | "hover";
177
+ } | null;
157
178
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
158
179
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
159
180
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -161,18 +182,21 @@ export declare const actionWrapTextInContainer: {
161
182
  isBindingEnabled: boolean;
162
183
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
163
184
  suggestedBindings: import("../element/binding").SuggestedBinding[];
185
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
186
+ frameRendering: {
187
+ enabled: boolean;
188
+ name: boolean;
189
+ outline: boolean;
190
+ clip: boolean;
191
+ };
192
+ editingFrame: string | null;
193
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
164
194
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
195
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
196
  activeTool: {
167
- lastActiveTool: import("../types").LastActiveTool;
197
+ lastActiveTool: import("../types").ActiveTool | null;
168
198
  locked: boolean;
169
- } & ({
170
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
171
- customType: null;
172
- } | {
173
- type: "custom";
174
- customType: string;
175
- });
199
+ } & import("../types").ActiveTool;
176
200
  penMode: boolean;
177
201
  penDetected: boolean;
178
202
  exportBackground: boolean;
@@ -204,14 +228,18 @@ export declare const actionWrapTextInContainer: {
204
228
  value: import("../types").NormalizedZoomValue;
205
229
  }>;
206
230
  openMenu: "canvas" | "shape" | null;
207
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
208
- openSidebar: "library" | "customSidebar" | null;
231
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
232
+ openSidebar: {
233
+ name: string;
234
+ tab?: string | undefined;
235
+ } | null;
209
236
  openDialog: "imageExport" | "help" | "jsonExport" | null;
210
- isSidebarDocked: boolean;
237
+ defaultSidebarDockedPreference: boolean;
211
238
  lastPointerDownWith: import("../element/types").PointerType;
212
239
  previousSelectedElementIds: {
213
- [id: string]: boolean;
240
+ [id: string]: true;
214
241
  };
242
+ selectedElementsAreBeingDragged: boolean;
215
243
  shouldCacheIgnoreZoom: boolean;
216
244
  toast: {
217
245
  message: string;
@@ -219,7 +247,7 @@ export declare const actionWrapTextInContainer: {
219
247
  duration?: number | undefined;
220
248
  } | null;
221
249
  zenModeEnabled: boolean;
222
- theme: string;
250
+ theme: import("../element/types").Theme;
223
251
  gridSize: number | null;
224
252
  viewModeEnabled: boolean;
225
253
  selectedGroupIds: {
@@ -242,8 +270,14 @@ export declare const actionWrapTextInContainer: {
242
270
  data: import("../charts").Spreadsheet;
243
271
  };
244
272
  pendingImageElementId: string | null;
245
- showHyperlinkPopup: false | "info" | "editor";
273
+ showHyperlinkPopup: false | "editor" | "info";
246
274
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
275
+ snapLines: readonly import("../snapping").SnapLine[];
276
+ originSnapOffset: {
277
+ x: number;
278
+ y: number;
279
+ } | null;
280
+ objectsSnapModeEnabled: boolean;
247
281
  };
248
282
  commitToHistory: true;
249
283
  };