@zsviczian/excalidraw 0.15.3-obsidian-1 → 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 +21 -3
  6. package/types/actions/actionAlign.d.ts +6 -6
  7. package/types/actions/actionBoundText.d.ts +14 -2
  8. package/types/actions/actionCanvas.d.ts +88 -16
  9. package/types/actions/actionClipboard.d.ts +35 -5
  10. package/types/actions/actionDeleteSelected.d.ts +22 -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 +14 -2
  14. package/types/actions/actionExport.d.ts +69 -15
  15. package/types/actions/actionFinalize.d.ts +15 -3
  16. package/types/actions/actionFrame.d.ts +21 -3
  17. package/types/actions/actionGroup.d.ts +16 -4
  18. package/types/actions/actionLinearEditor.d.ts +7 -1
  19. package/types/actions/actionMenu.d.ts +23 -5
  20. package/types/actions/actionNavigate.d.ts +1 -1
  21. package/types/actions/actionProperties.d.ts +106 -26
  22. package/types/actions/actionSelectAll.d.ts +7 -1
  23. package/types/actions/actionStyles.d.ts +7 -1
  24. package/types/actions/actionToggleGridMode.d.ts +7 -1
  25. package/types/actions/actionToggleObjectsSnapMode.d.ts +169 -0
  26. package/types/actions/actionToggleStats.d.ts +7 -1
  27. package/types/actions/actionToggleViewMode.d.ts +7 -1
  28. package/types/actions/actionToggleZenMode.d.ts +7 -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 +9 -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 +7 -1
  129. package/types/element/linearElementEditor.d.ts +8 -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 +25 -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-1",
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";
@@ -148,6 +148,12 @@ export declare const actionAddToLibrary: {
148
148
  dynamicStyle: string;
149
149
  invertBindingBehaviour: boolean;
150
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;
151
157
  };
152
158
  } | {
153
159
  commitToHistory: false;
@@ -186,7 +192,7 @@ export declare const actionAddToLibrary: {
186
192
  lastActiveTool: import("../types").LastActiveTool;
187
193
  locked: boolean;
188
194
  } & ({
189
- 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";
190
196
  customType: null;
191
197
  } | {
192
198
  type: "custom";
@@ -296,6 +302,12 @@ export declare const actionAddToLibrary: {
296
302
  dynamicStyle: string;
297
303
  invertBindingBehaviour: boolean;
298
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;
299
311
  };
300
312
  }> | {
301
313
  commitToHistory: false;
@@ -334,7 +346,7 @@ export declare const actionAddToLibrary: {
334
346
  lastActiveTool: import("../types").LastActiveTool;
335
347
  locked: boolean;
336
348
  } & ({
337
- 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";
338
350
  customType: null;
339
351
  } | {
340
352
  type: "custom";
@@ -444,6 +456,12 @@ export declare const actionAddToLibrary: {
444
456
  dynamicStyle: string;
445
457
  invertBindingBehaviour: boolean;
446
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;
447
465
  };
448
466
  };
449
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";
@@ -170,6 +170,12 @@ export declare const actionBindText: {
170
170
  dynamicStyle: string;
171
171
  invertBindingBehaviour: boolean;
172
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;
173
179
  };
174
180
  commitToHistory: true;
175
181
  };
@@ -223,7 +229,7 @@ export declare const actionWrapTextInContainer: {
223
229
  lastActiveTool: import("../types").LastActiveTool;
224
230
  locked: boolean;
225
231
  } & ({
226
- 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";
227
233
  customType: null;
228
234
  } | {
229
235
  type: "custom";
@@ -330,6 +336,12 @@ export declare const actionWrapTextInContainer: {
330
336
  dynamicStyle: string;
331
337
  invertBindingBehaviour: boolean;
332
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;
333
345
  };
334
346
  commitToHistory: true;
335
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";
@@ -162,6 +162,12 @@ export declare const actionClearCanvas: {
162
162
  dynamicStyle: string;
163
163
  invertBindingBehaviour: boolean;
164
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;
165
171
  };
166
172
  commitToHistory: true;
167
173
  };
@@ -215,7 +221,7 @@ export declare const actionZoomIn: {
215
221
  lastActiveTool: import("../types").LastActiveTool;
216
222
  locked: boolean;
217
223
  } & ({
218
- 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";
219
225
  customType: null;
220
226
  } | {
221
227
  type: "custom";
@@ -320,10 +326,16 @@ export declare const actionZoomIn: {
320
326
  dynamicStyle: string;
321
327
  invertBindingBehaviour: boolean;
322
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;
323
335
  };
324
336
  commitToHistory: false;
325
337
  };
326
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
338
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
327
339
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
328
340
  } & {
329
341
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -375,7 +387,7 @@ export declare const actionZoomOut: {
375
387
  lastActiveTool: import("../types").LastActiveTool;
376
388
  locked: boolean;
377
389
  } & ({
378
- 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";
379
391
  customType: null;
380
392
  } | {
381
393
  type: "custom";
@@ -480,10 +492,16 @@ export declare const actionZoomOut: {
480
492
  dynamicStyle: string;
481
493
  invertBindingBehaviour: boolean;
482
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;
483
501
  };
484
502
  commitToHistory: false;
485
503
  };
486
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
504
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
487
505
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
488
506
  } & {
489
507
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -535,7 +553,7 @@ export declare const actionResetZoom: {
535
553
  lastActiveTool: import("../types").LastActiveTool;
536
554
  locked: boolean;
537
555
  } & ({
538
- 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";
539
557
  customType: null;
540
558
  } | {
541
559
  type: "custom";
@@ -640,10 +658,16 @@ export declare const actionResetZoom: {
640
658
  dynamicStyle: string;
641
659
  invertBindingBehaviour: boolean;
642
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;
643
667
  };
644
668
  commitToHistory: false;
645
669
  };
646
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
670
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
647
671
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
648
672
  } & {
649
673
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -696,7 +720,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
696
720
  lastActiveTool: import("../types").LastActiveTool;
697
721
  locked: boolean;
698
722
  } & ({
699
- 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";
700
724
  customType: null;
701
725
  } | {
702
726
  type: "custom";
@@ -801,6 +825,12 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
801
825
  dynamicStyle: string;
802
826
  invertBindingBehaviour: boolean;
803
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;
804
834
  };
805
835
  commitToHistory: boolean;
806
836
  };
@@ -850,7 +880,7 @@ export declare const actionZoomToFitSelectionInViewport: {
850
880
  lastActiveTool: import("../types").LastActiveTool;
851
881
  locked: boolean;
852
882
  } & ({
853
- 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";
854
884
  customType: null;
855
885
  } | {
856
886
  type: "custom";
@@ -955,6 +985,12 @@ export declare const actionZoomToFitSelectionInViewport: {
955
985
  dynamicStyle: string;
956
986
  invertBindingBehaviour: boolean;
957
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;
958
994
  };
959
995
  commitToHistory: boolean;
960
996
  };
@@ -1008,7 +1044,7 @@ export declare const actionZoomToFitSelection: {
1008
1044
  lastActiveTool: import("../types").LastActiveTool;
1009
1045
  locked: boolean;
1010
1046
  } & ({
1011
- 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";
1012
1048
  customType: null;
1013
1049
  } | {
1014
1050
  type: "custom";
@@ -1113,6 +1149,12 @@ export declare const actionZoomToFitSelection: {
1113
1149
  dynamicStyle: string;
1114
1150
  invertBindingBehaviour: boolean;
1115
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;
1116
1158
  };
1117
1159
  commitToHistory: boolean;
1118
1160
  };
@@ -1167,7 +1209,7 @@ export declare const actionZoomToFit: {
1167
1209
  lastActiveTool: import("../types").LastActiveTool;
1168
1210
  locked: boolean;
1169
1211
  } & ({
1170
- 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";
1171
1213
  customType: null;
1172
1214
  } | {
1173
1215
  type: "custom";
@@ -1272,6 +1314,12 @@ export declare const actionZoomToFit: {
1272
1314
  dynamicStyle: string;
1273
1315
  invertBindingBehaviour: boolean;
1274
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;
1275
1323
  };
1276
1324
  commitToHistory: boolean;
1277
1325
  };
@@ -1322,7 +1370,7 @@ export declare const actionToggleTheme: {
1322
1370
  lastActiveTool: import("../types").LastActiveTool;
1323
1371
  locked: boolean;
1324
1372
  } & ({
1325
- 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";
1326
1374
  customType: null;
1327
1375
  } | {
1328
1376
  type: "custom";
@@ -1431,6 +1479,12 @@ export declare const actionToggleTheme: {
1431
1479
  dynamicStyle: string;
1432
1480
  invertBindingBehaviour: boolean;
1433
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;
1434
1488
  };
1435
1489
  commitToHistory: false;
1436
1490
  };
@@ -1453,7 +1507,7 @@ export declare const actionToggleEraserTool: {
1453
1507
  lastActiveTool: import("../types").LastActiveTool;
1454
1508
  locked: boolean;
1455
1509
  } & ({
1456
- 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";
1457
1511
  customType: null;
1458
1512
  } | {
1459
1513
  type: "custom";
@@ -1583,6 +1637,12 @@ export declare const actionToggleEraserTool: {
1583
1637
  dynamicStyle: string;
1584
1638
  invertBindingBehaviour: boolean;
1585
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;
1586
1646
  };
1587
1647
  commitToHistory: true;
1588
1648
  };
@@ -1604,7 +1664,7 @@ export declare const actionToggleHandTool: {
1604
1664
  lastActiveTool: import("../types").LastActiveTool;
1605
1665
  locked: boolean;
1606
1666
  } & ({
1607
- 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";
1608
1668
  customType: null;
1609
1669
  } | {
1610
1670
  type: "custom";
@@ -1734,6 +1794,12 @@ export declare const actionToggleHandTool: {
1734
1794
  dynamicStyle: string;
1735
1795
  invertBindingBehaviour: boolean;
1736
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;
1737
1803
  };
1738
1804
  commitToHistory: true;
1739
1805
  };
@@ -1782,7 +1848,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
1782
1848
  lastActiveTool: import("../types").LastActiveTool;
1783
1849
  locked: boolean;
1784
1850
  } & ({
1785
- 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";
1786
1852
  customType: null;
1787
1853
  } | {
1788
1854
  type: "custom";
@@ -1887,6 +1953,12 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
1887
1953
  dynamicStyle: string;
1888
1954
  invertBindingBehaviour: boolean;
1889
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;
1890
1962
  };
1891
1963
  commitToHistory: boolean;
1892
1964
  };
@@ -68,7 +68,7 @@ export declare const actionCut: {
68
68
  lastActiveTool: import("../types").LastActiveTool;
69
69
  locked: boolean;
70
70
  } & ({
71
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
71
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
72
72
  customType: null;
73
73
  } | {
74
74
  type: "custom";
@@ -178,6 +178,12 @@ export declare const actionCut: {
178
178
  dynamicStyle: string;
179
179
  invertBindingBehaviour: boolean;
180
180
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
181
+ snapLines: import("../snapping").SnapLine[];
182
+ originSnapOffset: {
183
+ x: number;
184
+ y: number;
185
+ } | null;
186
+ objectsSnapModeEnabled: boolean;
181
187
  };
182
188
  commitToHistory: false;
183
189
  } | {
@@ -245,7 +251,7 @@ export declare const actionCut: {
245
251
  lastActiveTool: import("../types").LastActiveTool;
246
252
  locked: boolean;
247
253
  } & ({
248
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
254
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
249
255
  customType: null;
250
256
  } | {
251
257
  type: "custom";
@@ -355,6 +361,12 @@ export declare const actionCut: {
355
361
  dynamicStyle: string;
356
362
  invertBindingBehaviour: boolean;
357
363
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
364
+ snapLines: import("../snapping").SnapLine[];
365
+ originSnapOffset: {
366
+ x: number;
367
+ y: number;
368
+ } | null;
369
+ objectsSnapModeEnabled: boolean;
358
370
  };
359
371
  commitToHistory: true;
360
372
  } | {
@@ -364,7 +376,7 @@ export declare const actionCut: {
364
376
  lastActiveTool: import("../types").LastActiveTool;
365
377
  locked: boolean;
366
378
  } & ({
367
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
379
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
368
380
  customType: null;
369
381
  } | {
370
382
  type: "custom";
@@ -499,6 +511,12 @@ export declare const actionCut: {
499
511
  dynamicStyle: string;
500
512
  invertBindingBehaviour: boolean;
501
513
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
514
+ snapLines: import("../snapping").SnapLine[];
515
+ originSnapOffset: {
516
+ x: number;
517
+ y: number;
518
+ } | null;
519
+ objectsSnapModeEnabled: boolean;
502
520
  };
503
521
  commitToHistory: boolean;
504
522
  };
@@ -552,7 +570,7 @@ export declare const actionCopyAsSvg: {
552
570
  lastActiveTool: import("../types").LastActiveTool;
553
571
  locked: boolean;
554
572
  } & ({
555
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
573
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
556
574
  customType: null;
557
575
  } | {
558
576
  type: "custom";
@@ -662,6 +680,12 @@ export declare const actionCopyAsSvg: {
662
680
  dynamicStyle: string;
663
681
  invertBindingBehaviour: boolean;
664
682
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
683
+ snapLines: import("../snapping").SnapLine[];
684
+ originSnapOffset: {
685
+ x: number;
686
+ y: number;
687
+ } | null;
688
+ objectsSnapModeEnabled: boolean;
665
689
  };
666
690
  commitToHistory: false;
667
691
  }>;
@@ -714,7 +738,7 @@ export declare const actionCopyAsPng: {
714
738
  lastActiveTool: import("../types").LastActiveTool;
715
739
  locked: boolean;
716
740
  } & ({
717
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
741
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
718
742
  customType: null;
719
743
  } | {
720
744
  type: "custom";
@@ -824,6 +848,12 @@ export declare const actionCopyAsPng: {
824
848
  dynamicStyle: string;
825
849
  invertBindingBehaviour: boolean;
826
850
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
851
+ snapLines: import("../snapping").SnapLine[];
852
+ originSnapOffset: {
853
+ x: number;
854
+ y: number;
855
+ } | null;
856
+ objectsSnapModeEnabled: boolean;
827
857
  };
828
858
  commitToHistory: false;
829
859
  }>;