@zsviczian/excalidraw 0.15.3-obsidian → 0.16.1-obsidian-1

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 (148) hide show
  1. package/dist/excalidraw.development.js +318 -87
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -9
  4. package/package.json +3 -3
  5. package/types/actions/actionAddToLibrary.d.ts +24 -3
  6. package/types/actions/actionAlign.d.ts +6 -6
  7. package/types/actions/actionBoundText.d.ts +16 -2
  8. package/types/actions/actionCanvas.d.ts +100 -16
  9. package/types/actions/actionClipboard.d.ts +40 -5
  10. package/types/actions/actionDeleteSelected.d.ts +25 -4
  11. package/types/actions/actionDistribute.d.ts +2 -2
  12. package/types/actions/actionDuplicateSelection.d.ts +1 -1
  13. package/types/actions/actionElementLock.d.ts +16 -2
  14. package/types/actions/actionExport.d.ts +78 -15
  15. package/types/actions/actionFinalize.d.ts +17 -3
  16. package/types/actions/actionFrame.d.ts +24 -3
  17. package/types/actions/actionGroup.d.ts +18 -4
  18. package/types/actions/actionLinearEditor.d.ts +8 -1
  19. package/types/actions/actionMenu.d.ts +26 -5
  20. package/types/actions/actionNavigate.d.ts +1 -1
  21. package/types/actions/actionProperties.d.ts +119 -26
  22. package/types/actions/actionSelectAll.d.ts +8 -1
  23. package/types/actions/actionStyles.d.ts +8 -1
  24. package/types/actions/actionToggleGridMode.d.ts +8 -1
  25. package/types/actions/actionToggleObjectsSnapMode.d.ts +169 -0
  26. package/types/actions/actionToggleStats.d.ts +8 -1
  27. package/types/actions/actionToggleViewMode.d.ts +8 -1
  28. package/types/actions/actionToggleZenMode.d.ts +8 -1
  29. package/types/actions/actionZindex.d.ts +4 -4
  30. package/types/actions/index.d.ts +1 -0
  31. package/types/actions/manager.d.ts +1 -1
  32. package/types/actions/shortcuts.d.ts +1 -1
  33. package/types/actions/types.d.ts +1 -1
  34. package/types/appState.d.ts +2 -1
  35. package/types/components/Actions.d.ts +6 -6
  36. package/types/components/ActiveConfirmDialog.d.ts +1 -1
  37. package/types/components/App.d.ts +22 -4
  38. package/types/components/Avatar.d.ts +1 -1
  39. package/types/components/BraveMeasureTextError.d.ts +1 -1
  40. package/types/components/Button.d.ts +1 -1
  41. package/types/components/ButtonIconSelect.d.ts +1 -1
  42. package/types/components/ColorPicker/ColorInput.d.ts +3 -1
  43. package/types/components/ColorPicker/ColorPicker.d.ts +1 -1
  44. package/types/components/ColorPicker/CustomColorList.d.ts +1 -1
  45. package/types/components/ColorPicker/HotkeyLabel.d.ts +1 -1
  46. package/types/components/ColorPicker/Picker.d.ts +1 -1
  47. package/types/components/ColorPicker/PickerColorList.d.ts +1 -1
  48. package/types/components/ColorPicker/PickerHeading.d.ts +1 -1
  49. package/types/components/ColorPicker/ShadeList.d.ts +1 -1
  50. package/types/components/ColorPicker/TopPicks.d.ts +1 -1
  51. package/types/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  52. package/types/components/ConfirmDialog.d.ts +1 -1
  53. package/types/components/ContextMenu.d.ts +1 -1
  54. package/types/components/DarkModeToggle.d.ts +1 -1
  55. package/types/components/DefaultSidebar.d.ts +1 -1
  56. package/types/components/Dialog.d.ts +1 -1
  57. package/types/components/DialogActionButton.d.ts +1 -1
  58. package/types/components/ErrorDialog.d.ts +1 -1
  59. package/types/components/ExcalidrawLogo.d.ts +15 -0
  60. package/types/components/EyeDropper.d.ts +18 -7
  61. package/types/components/FixedSideContainer.d.ts +1 -1
  62. package/types/components/HandButton.d.ts +1 -1
  63. package/types/components/HelpButton.d.ts +1 -1
  64. package/types/components/HelpDialog.d.ts +1 -1
  65. package/types/components/HintViewer.d.ts +1 -1
  66. package/types/components/IconPicker.d.ts +1 -1
  67. package/types/components/ImageExportDialog.d.ts +2 -2
  68. package/types/components/InitializeApp.d.ts +1 -1
  69. package/types/components/JSONExportDialog.d.ts +1 -1
  70. package/types/components/LayerUI.d.ts +1 -1
  71. package/types/components/LibraryMenu.d.ts +2 -2
  72. package/types/components/LibraryMenuBrowseButton.d.ts +1 -1
  73. package/types/components/LibraryMenuControlButtons.d.ts +1 -1
  74. package/types/components/LibraryMenuHeaderContent.d.ts +1 -1
  75. package/types/components/LibraryMenuItems.d.ts +1 -1
  76. package/types/components/LibraryMenuSection.d.ts +2 -2
  77. package/types/components/LibraryUnit.d.ts +2 -2
  78. package/types/components/LockButton.d.ts +1 -1
  79. package/types/components/MermaidToExcalidraw.d.ts +12 -0
  80. package/types/components/MobileMenu.d.ts +1 -1
  81. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
  82. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
  83. package/types/components/PasteChartDialog.d.ts +1 -1
  84. package/types/components/PenModeButton.d.ts +1 -1
  85. package/types/components/Popover.d.ts +1 -1
  86. package/types/components/ProjectName.d.ts +1 -1
  87. package/types/components/PublishLibrary.d.ts +1 -1
  88. package/types/components/RadioGroup.d.ts +1 -1
  89. package/types/components/Sidebar/Sidebar.d.ts +8 -8
  90. package/types/components/Sidebar/SidebarHeader.d.ts +1 -1
  91. package/types/components/Sidebar/SidebarTab.d.ts +1 -1
  92. package/types/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
  93. package/types/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
  94. package/types/components/Sidebar/SidebarTabs.d.ts +1 -1
  95. package/types/components/Sidebar/SidebarTrigger.d.ts +1 -1
  96. package/types/components/Spinner.d.ts +1 -1
  97. package/types/components/Stack.d.ts +2 -2
  98. package/types/components/Stats.d.ts +1 -1
  99. package/types/components/Switch.d.ts +1 -1
  100. package/types/components/Toast.d.ts +1 -1
  101. package/types/components/Tooltip.d.ts +1 -1
  102. package/types/components/canvases/InteractiveCanvas.d.ts +1 -1
  103. package/types/components/canvases/StaticCanvas.d.ts +1 -1
  104. package/types/components/dropdownMenu/DropdownMenu.d.ts +8 -8
  105. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
  106. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
  107. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  108. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +1 -1
  109. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
  110. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  111. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -1
  112. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  113. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
  114. package/types/components/footer/Footer.d.ts +1 -1
  115. package/types/components/footer/FooterCenter.d.ts +1 -1
  116. package/types/components/icons.d.ts +128 -126
  117. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  118. package/types/components/main-menu/DefaultItems.d.ts +10 -10
  119. package/types/components/main-menu/MainMenu.d.ts +6 -6
  120. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +9 -9
  121. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -3
  122. package/types/components/welcome-screen/WelcomeScreen.d.ts +13 -13
  123. package/types/constants.d.ts +5 -0
  124. package/types/data/transform.d.ts +3 -1
  125. package/types/element/Hyperlink.d.ts +10 -3
  126. package/types/element/bounds.d.ts +4 -5
  127. package/types/element/dragElements.d.ts +11 -2
  128. package/types/element/embeddable.d.ts +8 -1
  129. package/types/element/linearElementEditor.d.ts +9 -2
  130. package/types/element/resizeElements.d.ts +2 -2
  131. package/types/frame.d.ts +1 -1
  132. package/types/hooks/useStable.d.ts +1 -0
  133. package/types/keys.d.ts +1 -0
  134. package/types/math.d.ts +2 -0
  135. package/types/packages/excalidraw/example/App.d.ts +1 -1
  136. package/types/packages/excalidraw/example/CustomFooter.d.ts +1 -1
  137. package/types/packages/excalidraw/example/MobileFooter.d.ts +1 -1
  138. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +1 -1
  139. package/types/packages/excalidraw/index.d.ts +1 -1
  140. package/types/packages/excalidraw/webpack.dev.config.d.ts +11 -0
  141. package/types/packages/excalidraw/webpack.prod.config.d.ts +11 -0
  142. package/types/packages/utils.d.ts +1 -0
  143. package/types/renderer/renderSnaps.d.ts +2 -0
  144. package/types/scene/selection.d.ts +1 -0
  145. package/types/shapes.d.ts +10 -10
  146. package/types/snapping.d.ts +108 -0
  147. package/types/types.d.ts +26 -3
  148. package/types/utils.d.ts +1 -1
@@ -43,13 +43,4 @@ https://github.com/nodeca/pica
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
 
46
- /** @license React v17.0.2
47
- * react-jsx-runtime.production.min.js
48
- *
49
- * Copyright (c) Facebook, Inc. and its affiliates.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */
54
-
55
46
  //!device.isMobile && //zsviczian
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.15.3-obsidian",
3
+ "version": "0.16.1-obsidian-1",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -52,7 +52,7 @@
52
52
  "@babel/preset-env": "7.18.6",
53
53
  "@babel/preset-react": "7.18.6",
54
54
  "@babel/preset-typescript": "7.18.6",
55
- "@size-limit/preset-big-lib": "8.2.6",
55
+ "@size-limit/preset-big-lib": "9.0.0",
56
56
  "autoprefixer": "10.4.7",
57
57
  "babel-loader": "8.2.5",
58
58
  "babel-plugin-transform-class-properties": "6.24.1",
@@ -63,7 +63,7 @@
63
63
  "mini-css-extract-plugin": "2.6.1",
64
64
  "postcss-loader": "7.0.1",
65
65
  "sass-loader": "13.0.2",
66
- "size-limit": "8.2.4",
66
+ "size-limit": "9.0.0",
67
67
  "style-loader": "3.3.3",
68
68
  "terser-webpack-plugin": "5.3.3",
69
69
  "ts-loader": "9.3.1",
@@ -43,7 +43,7 @@ export declare const actionAddToLibrary: {
43
43
  lastActiveTool: import("../types").LastActiveTool;
44
44
  locked: boolean;
45
45
  } & ({
46
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
46
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
47
47
  customType: null;
48
48
  } | {
49
49
  type: "custom";
@@ -143,10 +143,17 @@ export declare const actionAddToLibrary: {
143
143
  gridColor: {
144
144
  Bold: string;
145
145
  Regular: string;
146
+ MajorGridFrequency?: number | undefined;
146
147
  };
147
148
  dynamicStyle: string;
148
149
  invertBindingBehaviour: boolean;
149
150
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
151
+ snapLines: import("../snapping").SnapLine[];
152
+ originSnapOffset: {
153
+ x: number;
154
+ y: number;
155
+ } | null;
156
+ objectsSnapModeEnabled: boolean;
150
157
  };
151
158
  } | {
152
159
  commitToHistory: false;
@@ -185,7 +192,7 @@ export declare const actionAddToLibrary: {
185
192
  lastActiveTool: import("../types").LastActiveTool;
186
193
  locked: boolean;
187
194
  } & ({
188
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
195
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
189
196
  customType: null;
190
197
  } | {
191
198
  type: "custom";
@@ -290,10 +297,17 @@ export declare const actionAddToLibrary: {
290
297
  gridColor: {
291
298
  Bold: string;
292
299
  Regular: string;
300
+ MajorGridFrequency?: number | undefined;
293
301
  };
294
302
  dynamicStyle: string;
295
303
  invertBindingBehaviour: boolean;
296
304
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
305
+ snapLines: import("../snapping").SnapLine[];
306
+ originSnapOffset: {
307
+ x: number;
308
+ y: number;
309
+ } | null;
310
+ objectsSnapModeEnabled: boolean;
297
311
  };
298
312
  }> | {
299
313
  commitToHistory: false;
@@ -332,7 +346,7 @@ export declare const actionAddToLibrary: {
332
346
  lastActiveTool: import("../types").LastActiveTool;
333
347
  locked: boolean;
334
348
  } & ({
335
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
349
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
336
350
  customType: null;
337
351
  } | {
338
352
  type: "custom";
@@ -437,10 +451,17 @@ export declare const actionAddToLibrary: {
437
451
  gridColor: {
438
452
  Bold: string;
439
453
  Regular: string;
454
+ MajorGridFrequency?: number | undefined;
440
455
  };
441
456
  dynamicStyle: string;
442
457
  invertBindingBehaviour: boolean;
443
458
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
459
+ snapLines: import("../snapping").SnapLine[];
460
+ originSnapOffset: {
461
+ x: number;
462
+ y: number;
463
+ } | null;
464
+ objectsSnapModeEnabled: boolean;
444
465
  };
445
466
  };
446
467
  contextItemLabel: string;
@@ -12,7 +12,7 @@ export declare const actionAlignTop: {
12
12
  commitToHistory: true;
13
13
  };
14
14
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
15
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
16
  } & {
17
17
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
18
  };
@@ -28,7 +28,7 @@ export declare const actionAlignBottom: {
28
28
  commitToHistory: true;
29
29
  };
30
30
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
31
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
31
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
32
32
  } & {
33
33
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
34
34
  };
@@ -44,7 +44,7 @@ export declare const actionAlignLeft: {
44
44
  commitToHistory: true;
45
45
  };
46
46
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
47
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
47
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
48
48
  } & {
49
49
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
50
50
  };
@@ -60,7 +60,7 @@ export declare const actionAlignRight: {
60
60
  commitToHistory: true;
61
61
  };
62
62
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
63
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
63
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
64
64
  } & {
65
65
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
66
66
  };
@@ -75,7 +75,7 @@ export declare const actionAlignVerticallyCentered: {
75
75
  elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
76
76
  commitToHistory: true;
77
77
  };
78
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
78
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
79
79
  } & {
80
80
  keyTest?: undefined;
81
81
  };
@@ -90,7 +90,7 @@ export declare const actionAlignHorizontallyCentered: {
90
90
  elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
91
91
  commitToHistory: true;
92
92
  };
93
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
93
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
94
94
  } & {
95
95
  keyTest?: undefined;
96
96
  };
@@ -63,7 +63,7 @@ export declare const actionBindText: {
63
63
  lastActiveTool: import("../types").LastActiveTool;
64
64
  locked: boolean;
65
65
  } & ({
66
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
66
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
67
67
  customType: null;
68
68
  } | {
69
69
  type: "custom";
@@ -165,10 +165,17 @@ export declare const actionBindText: {
165
165
  gridColor: {
166
166
  Bold: string;
167
167
  Regular: string;
168
+ MajorGridFrequency?: number | undefined;
168
169
  };
169
170
  dynamicStyle: string;
170
171
  invertBindingBehaviour: boolean;
171
172
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
173
+ snapLines: import("../snapping").SnapLine[];
174
+ originSnapOffset: {
175
+ x: number;
176
+ y: number;
177
+ } | null;
178
+ objectsSnapModeEnabled: boolean;
172
179
  };
173
180
  commitToHistory: true;
174
181
  };
@@ -222,7 +229,7 @@ export declare const actionWrapTextInContainer: {
222
229
  lastActiveTool: import("../types").LastActiveTool;
223
230
  locked: boolean;
224
231
  } & ({
225
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
232
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
226
233
  customType: null;
227
234
  } | {
228
235
  type: "custom";
@@ -324,10 +331,17 @@ export declare const actionWrapTextInContainer: {
324
331
  gridColor: {
325
332
  Bold: string;
326
333
  Regular: string;
334
+ MajorGridFrequency?: number | undefined;
327
335
  };
328
336
  dynamicStyle: string;
329
337
  invertBindingBehaviour: boolean;
330
338
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
339
+ snapLines: import("../snapping").SnapLine[];
340
+ originSnapOffset: {
341
+ x: number;
342
+ y: number;
343
+ } | null;
344
+ objectsSnapModeEnabled: boolean;
331
345
  };
332
346
  commitToHistory: true;
333
347
  };
@@ -8,7 +8,7 @@ export declare const actionChangeViewBackgroundColor: {
8
8
  appState: any;
9
9
  commitToHistory: boolean;
10
10
  };
11
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
12
  } & {
13
13
  keyTest?: undefined;
14
14
  };
@@ -40,7 +40,7 @@ export declare const actionClearCanvas: {
40
40
  lastActiveTool: import("../types").LastActiveTool;
41
41
  locked: boolean;
42
42
  } & ({
43
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
43
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
44
44
  customType: null;
45
45
  } | {
46
46
  type: "custom";
@@ -157,10 +157,17 @@ export declare const actionClearCanvas: {
157
157
  gridColor: {
158
158
  Bold: string;
159
159
  Regular: string;
160
+ MajorGridFrequency?: number | undefined;
160
161
  };
161
162
  dynamicStyle: string;
162
163
  invertBindingBehaviour: boolean;
163
164
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
165
+ snapLines: import("../snapping").SnapLine[];
166
+ originSnapOffset: {
167
+ x: number;
168
+ y: number;
169
+ } | null;
170
+ objectsSnapModeEnabled: boolean;
164
171
  };
165
172
  commitToHistory: true;
166
173
  };
@@ -214,7 +221,7 @@ export declare const actionZoomIn: {
214
221
  lastActiveTool: import("../types").LastActiveTool;
215
222
  locked: boolean;
216
223
  } & ({
217
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
224
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
218
225
  customType: null;
219
226
  } | {
220
227
  type: "custom";
@@ -314,14 +321,21 @@ export declare const actionZoomIn: {
314
321
  gridColor: {
315
322
  Bold: string;
316
323
  Regular: string;
324
+ MajorGridFrequency?: number | undefined;
317
325
  };
318
326
  dynamicStyle: string;
319
327
  invertBindingBehaviour: boolean;
320
328
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
329
+ snapLines: import("../snapping").SnapLine[];
330
+ originSnapOffset: {
331
+ x: number;
332
+ y: number;
333
+ } | null;
334
+ objectsSnapModeEnabled: boolean;
321
335
  };
322
336
  commitToHistory: false;
323
337
  };
324
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
338
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
325
339
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
326
340
  } & {
327
341
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -373,7 +387,7 @@ export declare const actionZoomOut: {
373
387
  lastActiveTool: import("../types").LastActiveTool;
374
388
  locked: boolean;
375
389
  } & ({
376
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
390
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
377
391
  customType: null;
378
392
  } | {
379
393
  type: "custom";
@@ -473,14 +487,21 @@ export declare const actionZoomOut: {
473
487
  gridColor: {
474
488
  Bold: string;
475
489
  Regular: string;
490
+ MajorGridFrequency?: number | undefined;
476
491
  };
477
492
  dynamicStyle: string;
478
493
  invertBindingBehaviour: boolean;
479
494
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
495
+ snapLines: import("../snapping").SnapLine[];
496
+ originSnapOffset: {
497
+ x: number;
498
+ y: number;
499
+ } | null;
500
+ objectsSnapModeEnabled: boolean;
480
501
  };
481
502
  commitToHistory: false;
482
503
  };
483
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
504
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
484
505
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
485
506
  } & {
486
507
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -532,7 +553,7 @@ export declare const actionResetZoom: {
532
553
  lastActiveTool: import("../types").LastActiveTool;
533
554
  locked: boolean;
534
555
  } & ({
535
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
556
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
536
557
  customType: null;
537
558
  } | {
538
559
  type: "custom";
@@ -632,14 +653,21 @@ export declare const actionResetZoom: {
632
653
  gridColor: {
633
654
  Bold: string;
634
655
  Regular: string;
656
+ MajorGridFrequency?: number | undefined;
635
657
  };
636
658
  dynamicStyle: string;
637
659
  invertBindingBehaviour: boolean;
638
660
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
661
+ snapLines: import("../snapping").SnapLine[];
662
+ originSnapOffset: {
663
+ x: number;
664
+ y: number;
665
+ } | null;
666
+ objectsSnapModeEnabled: boolean;
639
667
  };
640
668
  commitToHistory: false;
641
669
  };
642
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
670
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
643
671
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
644
672
  } & {
645
673
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -692,7 +720,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
692
720
  lastActiveTool: import("../types").LastActiveTool;
693
721
  locked: boolean;
694
722
  } & ({
695
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
723
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
696
724
  customType: null;
697
725
  } | {
698
726
  type: "custom";
@@ -792,10 +820,17 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
792
820
  gridColor: {
793
821
  Bold: string;
794
822
  Regular: string;
823
+ MajorGridFrequency?: number | undefined;
795
824
  };
796
825
  dynamicStyle: string;
797
826
  invertBindingBehaviour: boolean;
798
827
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
828
+ snapLines: import("../snapping").SnapLine[];
829
+ originSnapOffset: {
830
+ x: number;
831
+ y: number;
832
+ } | null;
833
+ objectsSnapModeEnabled: boolean;
799
834
  };
800
835
  commitToHistory: boolean;
801
836
  };
@@ -845,7 +880,7 @@ export declare const actionZoomToFitSelectionInViewport: {
845
880
  lastActiveTool: import("../types").LastActiveTool;
846
881
  locked: boolean;
847
882
  } & ({
848
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
883
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
849
884
  customType: null;
850
885
  } | {
851
886
  type: "custom";
@@ -945,10 +980,17 @@ export declare const actionZoomToFitSelectionInViewport: {
945
980
  gridColor: {
946
981
  Bold: string;
947
982
  Regular: string;
983
+ MajorGridFrequency?: number | undefined;
948
984
  };
949
985
  dynamicStyle: string;
950
986
  invertBindingBehaviour: boolean;
951
987
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
988
+ snapLines: import("../snapping").SnapLine[];
989
+ originSnapOffset: {
990
+ x: number;
991
+ y: number;
992
+ } | null;
993
+ objectsSnapModeEnabled: boolean;
952
994
  };
953
995
  commitToHistory: boolean;
954
996
  };
@@ -1002,7 +1044,7 @@ export declare const actionZoomToFitSelection: {
1002
1044
  lastActiveTool: import("../types").LastActiveTool;
1003
1045
  locked: boolean;
1004
1046
  } & ({
1005
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1047
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1006
1048
  customType: null;
1007
1049
  } | {
1008
1050
  type: "custom";
@@ -1102,10 +1144,17 @@ export declare const actionZoomToFitSelection: {
1102
1144
  gridColor: {
1103
1145
  Bold: string;
1104
1146
  Regular: string;
1147
+ MajorGridFrequency?: number | undefined;
1105
1148
  };
1106
1149
  dynamicStyle: string;
1107
1150
  invertBindingBehaviour: boolean;
1108
1151
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1152
+ snapLines: import("../snapping").SnapLine[];
1153
+ originSnapOffset: {
1154
+ x: number;
1155
+ y: number;
1156
+ } | null;
1157
+ objectsSnapModeEnabled: boolean;
1109
1158
  };
1110
1159
  commitToHistory: boolean;
1111
1160
  };
@@ -1160,7 +1209,7 @@ export declare const actionZoomToFit: {
1160
1209
  lastActiveTool: import("../types").LastActiveTool;
1161
1210
  locked: boolean;
1162
1211
  } & ({
1163
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1212
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1164
1213
  customType: null;
1165
1214
  } | {
1166
1215
  type: "custom";
@@ -1260,10 +1309,17 @@ export declare const actionZoomToFit: {
1260
1309
  gridColor: {
1261
1310
  Bold: string;
1262
1311
  Regular: string;
1312
+ MajorGridFrequency?: number | undefined;
1263
1313
  };
1264
1314
  dynamicStyle: string;
1265
1315
  invertBindingBehaviour: boolean;
1266
1316
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1317
+ snapLines: import("../snapping").SnapLine[];
1318
+ originSnapOffset: {
1319
+ x: number;
1320
+ y: number;
1321
+ } | null;
1322
+ objectsSnapModeEnabled: boolean;
1267
1323
  };
1268
1324
  commitToHistory: boolean;
1269
1325
  };
@@ -1314,7 +1370,7 @@ export declare const actionToggleTheme: {
1314
1370
  lastActiveTool: import("../types").LastActiveTool;
1315
1371
  locked: boolean;
1316
1372
  } & ({
1317
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1373
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1318
1374
  customType: null;
1319
1375
  } | {
1320
1376
  type: "custom";
@@ -1418,10 +1474,17 @@ export declare const actionToggleTheme: {
1418
1474
  gridColor: {
1419
1475
  Bold: string;
1420
1476
  Regular: string;
1477
+ MajorGridFrequency?: number | undefined;
1421
1478
  };
1422
1479
  dynamicStyle: string;
1423
1480
  invertBindingBehaviour: boolean;
1424
1481
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1482
+ snapLines: import("../snapping").SnapLine[];
1483
+ originSnapOffset: {
1484
+ x: number;
1485
+ y: number;
1486
+ } | null;
1487
+ objectsSnapModeEnabled: boolean;
1425
1488
  };
1426
1489
  commitToHistory: false;
1427
1490
  };
@@ -1444,7 +1507,7 @@ export declare const actionToggleEraserTool: {
1444
1507
  lastActiveTool: import("../types").LastActiveTool;
1445
1508
  locked: boolean;
1446
1509
  } & ({
1447
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1510
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1448
1511
  customType: null;
1449
1512
  } | {
1450
1513
  type: "custom";
@@ -1569,10 +1632,17 @@ export declare const actionToggleEraserTool: {
1569
1632
  gridColor: {
1570
1633
  Bold: string;
1571
1634
  Regular: string;
1635
+ MajorGridFrequency?: number | undefined;
1572
1636
  };
1573
1637
  dynamicStyle: string;
1574
1638
  invertBindingBehaviour: boolean;
1575
1639
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1640
+ snapLines: import("../snapping").SnapLine[];
1641
+ originSnapOffset: {
1642
+ x: number;
1643
+ y: number;
1644
+ } | null;
1645
+ objectsSnapModeEnabled: boolean;
1576
1646
  };
1577
1647
  commitToHistory: true;
1578
1648
  };
@@ -1594,7 +1664,7 @@ export declare const actionToggleHandTool: {
1594
1664
  lastActiveTool: import("../types").LastActiveTool;
1595
1665
  locked: boolean;
1596
1666
  } & ({
1597
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1667
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1598
1668
  customType: null;
1599
1669
  } | {
1600
1670
  type: "custom";
@@ -1719,10 +1789,17 @@ export declare const actionToggleHandTool: {
1719
1789
  gridColor: {
1720
1790
  Bold: string;
1721
1791
  Regular: string;
1792
+ MajorGridFrequency?: number | undefined;
1722
1793
  };
1723
1794
  dynamicStyle: string;
1724
1795
  invertBindingBehaviour: boolean;
1725
1796
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1797
+ snapLines: import("../snapping").SnapLine[];
1798
+ originSnapOffset: {
1799
+ x: number;
1800
+ y: number;
1801
+ } | null;
1802
+ objectsSnapModeEnabled: boolean;
1726
1803
  };
1727
1804
  commitToHistory: true;
1728
1805
  };
@@ -1771,7 +1848,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
1771
1848
  lastActiveTool: import("../types").LastActiveTool;
1772
1849
  locked: boolean;
1773
1850
  } & ({
1774
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1851
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1775
1852
  customType: null;
1776
1853
  } | {
1777
1854
  type: "custom";
@@ -1871,10 +1948,17 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
1871
1948
  gridColor: {
1872
1949
  Bold: string;
1873
1950
  Regular: string;
1951
+ MajorGridFrequency?: number | undefined;
1874
1952
  };
1875
1953
  dynamicStyle: string;
1876
1954
  invertBindingBehaviour: boolean;
1877
1955
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1956
+ snapLines: import("../snapping").SnapLine[];
1957
+ originSnapOffset: {
1958
+ x: number;
1959
+ y: number;
1960
+ } | null;
1961
+ objectsSnapModeEnabled: boolean;
1878
1962
  };
1879
1963
  commitToHistory: boolean;
1880
1964
  };