@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
@@ -44,7 +44,7 @@ export declare const actionDeleteSelected: {
44
44
  lastActiveTool: import("../types").LastActiveTool;
45
45
  locked: boolean;
46
46
  } & ({
47
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
47
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
48
48
  customType: null;
49
49
  } | {
50
50
  type: "custom";
@@ -154,6 +154,12 @@ export declare const actionDeleteSelected: {
154
154
  dynamicStyle: string;
155
155
  invertBindingBehaviour: boolean;
156
156
  selectedLinearElement: LinearElementEditor | null;
157
+ snapLines: import("../snapping").SnapLine[];
158
+ originSnapOffset: {
159
+ x: number;
160
+ y: number;
161
+ } | null;
162
+ objectsSnapModeEnabled: boolean;
157
163
  };
158
164
  commitToHistory: false;
159
165
  } | {
@@ -221,7 +227,7 @@ export declare const actionDeleteSelected: {
221
227
  lastActiveTool: import("../types").LastActiveTool;
222
228
  locked: boolean;
223
229
  } & ({
224
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
230
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
225
231
  customType: null;
226
232
  } | {
227
233
  type: "custom";
@@ -331,6 +337,12 @@ export declare const actionDeleteSelected: {
331
337
  dynamicStyle: string;
332
338
  invertBindingBehaviour: boolean;
333
339
  selectedLinearElement: LinearElementEditor | null;
340
+ snapLines: import("../snapping").SnapLine[];
341
+ originSnapOffset: {
342
+ x: number;
343
+ y: number;
344
+ } | null;
345
+ objectsSnapModeEnabled: boolean;
334
346
  };
335
347
  commitToHistory: true;
336
348
  } | {
@@ -340,7 +352,7 @@ export declare const actionDeleteSelected: {
340
352
  lastActiveTool: import("../types").LastActiveTool;
341
353
  locked: boolean;
342
354
  } & ({
343
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
355
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
344
356
  customType: null;
345
357
  } | {
346
358
  type: "custom";
@@ -475,12 +487,18 @@ export declare const actionDeleteSelected: {
475
487
  dynamicStyle: string;
476
488
  invertBindingBehaviour: boolean;
477
489
  selectedLinearElement: LinearElementEditor | null;
490
+ snapLines: import("../snapping").SnapLine[];
491
+ originSnapOffset: {
492
+ x: number;
493
+ y: number;
494
+ } | null;
495
+ objectsSnapModeEnabled: boolean;
478
496
  };
479
497
  commitToHistory: boolean;
480
498
  };
481
499
  contextItemLabel: string;
482
500
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
483
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
501
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
484
502
  } & {
485
503
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
486
504
  };
@@ -11,7 +11,7 @@ export declare const distributeHorizontally: {
11
11
  commitToHistory: true;
12
12
  };
13
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
14
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
14
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
15
  } & {
16
16
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
17
17
  };
@@ -26,7 +26,7 @@ export declare const distributeVertically: {
26
26
  commitToHistory: true;
27
27
  };
28
28
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
29
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
29
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
30
30
  } & {
31
31
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
32
32
  };
@@ -15,7 +15,7 @@ export declare const actionDuplicateSelection: {
15
15
  };
16
16
  contextItemLabel: string;
17
17
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
18
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
18
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
19
19
  } & {
20
20
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
21
21
  };
@@ -43,7 +43,7 @@ export declare const actionToggleElementLock: {
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";
@@ -152,6 +152,12 @@ export declare const actionToggleElementLock: {
152
152
  };
153
153
  dynamicStyle: string;
154
154
  invertBindingBehaviour: boolean;
155
+ snapLines: import("../snapping").SnapLine[];
156
+ originSnapOffset: {
157
+ x: number;
158
+ y: number;
159
+ } | null;
160
+ objectsSnapModeEnabled: boolean;
155
161
  };
156
162
  commitToHistory: true;
157
163
  };
@@ -207,7 +213,7 @@ export declare const actionUnlockAllElements: {
207
213
  lastActiveTool: import("../types").LastActiveTool;
208
214
  locked: boolean;
209
215
  } & ({
210
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
216
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
211
217
  customType: null;
212
218
  } | {
213
219
  type: "custom";
@@ -314,6 +320,12 @@ export declare const actionUnlockAllElements: {
314
320
  dynamicStyle: string;
315
321
  invertBindingBehaviour: boolean;
316
322
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
323
+ snapLines: import("../snapping").SnapLine[];
324
+ originSnapOffset: {
325
+ x: number;
326
+ y: number;
327
+ } | null;
328
+ objectsSnapModeEnabled: boolean;
317
329
  };
318
330
  commitToHistory: true;
319
331
  };
@@ -40,7 +40,7 @@ export declare const actionChangeProjectName: {
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";
@@ -149,10 +149,16 @@ export declare const actionChangeProjectName: {
149
149
  dynamicStyle: string;
150
150
  invertBindingBehaviour: boolean;
151
151
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
152
+ snapLines: import("../snapping").SnapLine[];
153
+ originSnapOffset: {
154
+ x: number;
155
+ y: number;
156
+ } | null;
157
+ objectsSnapModeEnabled: boolean;
152
158
  };
153
159
  commitToHistory: false;
154
160
  };
155
- PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => JSX.Element;
161
+ PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
156
162
  } & {
157
163
  keyTest?: undefined;
158
164
  };
@@ -199,7 +205,7 @@ export declare const actionChangeExportScale: {
199
205
  lastActiveTool: import("../types").LastActiveTool;
200
206
  locked: boolean;
201
207
  } & ({
202
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
208
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
203
209
  customType: null;
204
210
  } | {
205
211
  type: "custom";
@@ -308,10 +314,16 @@ export declare const actionChangeExportScale: {
308
314
  dynamicStyle: string;
309
315
  invertBindingBehaviour: boolean;
310
316
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
317
+ snapLines: import("../snapping").SnapLine[];
318
+ originSnapOffset: {
319
+ x: number;
320
+ y: number;
321
+ } | null;
322
+ objectsSnapModeEnabled: boolean;
311
323
  };
312
324
  commitToHistory: false;
313
325
  };
314
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
326
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
315
327
  } & {
316
328
  keyTest?: undefined;
317
329
  };
@@ -358,7 +370,7 @@ export declare const actionChangeExportBackground: {
358
370
  lastActiveTool: import("../types").LastActiveTool;
359
371
  locked: boolean;
360
372
  } & ({
361
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
373
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
362
374
  customType: null;
363
375
  } | {
364
376
  type: "custom";
@@ -467,10 +479,16 @@ export declare const actionChangeExportBackground: {
467
479
  dynamicStyle: string;
468
480
  invertBindingBehaviour: boolean;
469
481
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
482
+ snapLines: import("../snapping").SnapLine[];
483
+ originSnapOffset: {
484
+ x: number;
485
+ y: number;
486
+ } | null;
487
+ objectsSnapModeEnabled: boolean;
470
488
  };
471
489
  commitToHistory: false;
472
490
  };
473
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
491
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
474
492
  } & {
475
493
  keyTest?: undefined;
476
494
  };
@@ -517,7 +535,7 @@ export declare const actionChangeExportEmbedScene: {
517
535
  lastActiveTool: import("../types").LastActiveTool;
518
536
  locked: boolean;
519
537
  } & ({
520
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
538
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
521
539
  customType: null;
522
540
  } | {
523
541
  type: "custom";
@@ -626,10 +644,16 @@ export declare const actionChangeExportEmbedScene: {
626
644
  dynamicStyle: string;
627
645
  invertBindingBehaviour: boolean;
628
646
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
647
+ snapLines: import("../snapping").SnapLine[];
648
+ originSnapOffset: {
649
+ x: number;
650
+ y: number;
651
+ } | null;
652
+ objectsSnapModeEnabled: boolean;
629
653
  };
630
654
  commitToHistory: false;
631
655
  };
632
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
656
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
633
657
  } & {
634
658
  keyTest?: undefined;
635
659
  };
@@ -680,7 +704,7 @@ export declare const actionSaveToActiveFile: {
680
704
  lastActiveTool: import("../types").LastActiveTool;
681
705
  locked: boolean;
682
706
  } & ({
683
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
707
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
684
708
  customType: null;
685
709
  } | {
686
710
  type: "custom";
@@ -784,6 +808,12 @@ export declare const actionSaveToActiveFile: {
784
808
  dynamicStyle: string;
785
809
  invertBindingBehaviour: boolean;
786
810
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
811
+ snapLines: import("../snapping").SnapLine[];
812
+ originSnapOffset: {
813
+ x: number;
814
+ y: number;
815
+ } | null;
816
+ objectsSnapModeEnabled: boolean;
787
817
  };
788
818
  } | {
789
819
  commitToHistory: false;
@@ -837,7 +867,7 @@ export declare const actionSaveFileToDisk: {
837
867
  lastActiveTool: import("../types").LastActiveTool;
838
868
  locked: boolean;
839
869
  } & ({
840
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
870
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
841
871
  customType: null;
842
872
  } | {
843
873
  type: "custom";
@@ -946,13 +976,19 @@ export declare const actionSaveFileToDisk: {
946
976
  dynamicStyle: string;
947
977
  invertBindingBehaviour: boolean;
948
978
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
979
+ snapLines: import("../snapping").SnapLine[];
980
+ originSnapOffset: {
981
+ x: number;
982
+ y: number;
983
+ } | null;
984
+ objectsSnapModeEnabled: boolean;
949
985
  };
950
986
  } | {
951
987
  commitToHistory: false;
952
988
  appState?: undefined;
953
989
  }>;
954
990
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
955
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
991
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
956
992
  } & {
957
993
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
958
994
  };
@@ -971,7 +1007,7 @@ export declare const actionLoadScene: {
971
1007
  lastActiveTool: import("../types").LastActiveTool;
972
1008
  locked: boolean;
973
1009
  } & ({
974
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1010
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
975
1011
  customType: null;
976
1012
  } | {
977
1013
  type: "custom";
@@ -1105,6 +1141,12 @@ export declare const actionLoadScene: {
1105
1141
  dynamicStyle: string;
1106
1142
  invertBindingBehaviour: boolean;
1107
1143
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1144
+ snapLines: import("../snapping").SnapLine[];
1145
+ originSnapOffset: {
1146
+ x: number;
1147
+ y: number;
1148
+ } | null;
1149
+ objectsSnapModeEnabled: boolean;
1108
1150
  };
1109
1151
  files: import("../types").BinaryFiles;
1110
1152
  commitToHistory: true;
@@ -1145,7 +1187,7 @@ export declare const actionLoadScene: {
1145
1187
  lastActiveTool: import("../types").LastActiveTool;
1146
1188
  locked: boolean;
1147
1189
  } & ({
1148
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1190
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1149
1191
  customType: null;
1150
1192
  } | {
1151
1193
  type: "custom";
@@ -1255,6 +1297,12 @@ export declare const actionLoadScene: {
1255
1297
  dynamicStyle: string;
1256
1298
  invertBindingBehaviour: boolean;
1257
1299
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1300
+ snapLines: import("../snapping").SnapLine[];
1301
+ originSnapOffset: {
1302
+ x: number;
1303
+ y: number;
1304
+ } | null;
1305
+ objectsSnapModeEnabled: boolean;
1258
1306
  };
1259
1307
  files: import("../types").BinaryFiles;
1260
1308
  commitToHistory: false;
@@ -1306,7 +1354,7 @@ export declare const actionExportWithDarkMode: {
1306
1354
  lastActiveTool: import("../types").LastActiveTool;
1307
1355
  locked: boolean;
1308
1356
  } & ({
1309
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1357
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
1310
1358
  customType: null;
1311
1359
  } | {
1312
1360
  type: "custom";
@@ -1415,10 +1463,16 @@ export declare const actionExportWithDarkMode: {
1415
1463
  dynamicStyle: string;
1416
1464
  invertBindingBehaviour: boolean;
1417
1465
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1466
+ snapLines: import("../snapping").SnapLine[];
1467
+ originSnapOffset: {
1468
+ x: number;
1469
+ y: number;
1470
+ } | null;
1471
+ objectsSnapModeEnabled: boolean;
1418
1472
  };
1419
1473
  commitToHistory: false;
1420
1474
  };
1421
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1475
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1422
1476
  } & {
1423
1477
  keyTest?: undefined;
1424
1478
  };
@@ -41,7 +41,7 @@ export declare const actionFinalize: {
41
41
  lastActiveTool: import("../types").LastActiveTool;
42
42
  locked: boolean;
43
43
  } & ({
44
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
44
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
45
45
  customType: null;
46
46
  } | {
47
47
  type: "custom";
@@ -150,6 +150,12 @@ export declare const actionFinalize: {
150
150
  dynamicStyle: string;
151
151
  invertBindingBehaviour: boolean;
152
152
  selectedLinearElement: LinearElementEditor | null;
153
+ snapLines: import("../snapping").SnapLine[];
154
+ originSnapOffset: {
155
+ x: number;
156
+ y: number;
157
+ } | null;
158
+ objectsSnapModeEnabled: boolean;
153
159
  };
154
160
  commitToHistory: true;
155
161
  } | {
@@ -160,7 +166,7 @@ export declare const actionFinalize: {
160
166
  lastActiveTool: import("../types").LastActiveTool;
161
167
  locked: boolean;
162
168
  } & ({
163
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
169
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
164
170
  customType: null;
165
171
  } | {
166
172
  type: "custom";
@@ -296,11 +302,17 @@ export declare const actionFinalize: {
296
302
  };
297
303
  dynamicStyle: string;
298
304
  invertBindingBehaviour: boolean;
305
+ snapLines: import("../snapping").SnapLine[];
306
+ originSnapOffset: {
307
+ x: number;
308
+ y: number;
309
+ } | null;
310
+ objectsSnapModeEnabled: boolean;
299
311
  };
300
312
  commitToHistory: boolean;
301
313
  };
302
314
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
303
- PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
315
+ PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
304
316
  } & {
305
317
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
306
318
  };
@@ -60,7 +60,7 @@ export declare const actionRemoveAllElementsFromFrame: {
60
60
  lastActiveTool: import("../types").LastActiveTool;
61
61
  locked: boolean;
62
62
  } & ({
63
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
63
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
64
64
  customType: null;
65
65
  } | {
66
66
  type: "custom";
@@ -167,6 +167,12 @@ export declare const actionRemoveAllElementsFromFrame: {
167
167
  dynamicStyle: string;
168
168
  invertBindingBehaviour: boolean;
169
169
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
170
+ snapLines: import("../snapping").SnapLine[];
171
+ originSnapOffset: {
172
+ x: number;
173
+ y: number;
174
+ } | null;
175
+ objectsSnapModeEnabled: boolean;
170
176
  };
171
177
  commitToHistory: true;
172
178
  } | {
@@ -222,7 +228,7 @@ export declare const actionupdateFrameRendering: {
222
228
  lastActiveTool: import("../types").LastActiveTool;
223
229
  locked: boolean;
224
230
  } & ({
225
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
231
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
226
232
  customType: null;
227
233
  } | {
228
234
  type: "custom";
@@ -332,6 +338,12 @@ export declare const actionupdateFrameRendering: {
332
338
  dynamicStyle: string;
333
339
  invertBindingBehaviour: boolean;
334
340
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
341
+ snapLines: import("../snapping").SnapLine[];
342
+ originSnapOffset: {
343
+ x: number;
344
+ y: number;
345
+ } | null;
346
+ objectsSnapModeEnabled: boolean;
335
347
  };
336
348
  commitToHistory: false;
337
349
  };
@@ -352,7 +364,7 @@ export declare const actionSetFrameAsActiveTool: {
352
364
  lastActiveTool: import("../types").LastActiveTool;
353
365
  locked: boolean;
354
366
  } & ({
355
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
367
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
356
368
  customType: null;
357
369
  } | {
358
370
  type: "custom";
@@ -492,6 +504,12 @@ export declare const actionSetFrameAsActiveTool: {
492
504
  dynamicStyle: string;
493
505
  invertBindingBehaviour: boolean;
494
506
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
507
+ snapLines: import("../snapping").SnapLine[];
508
+ originSnapOffset: {
509
+ x: number;
510
+ y: number;
511
+ } | null;
512
+ objectsSnapModeEnabled: boolean;
495
513
  };
496
514
  commitToHistory: false;
497
515
  };
@@ -52,7 +52,7 @@ export declare const actionGroup: {
52
52
  lastActiveTool: import("../types").LastActiveTool;
53
53
  locked: boolean;
54
54
  } & ({
55
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
55
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
56
56
  customType: null;
57
57
  } | {
58
58
  type: "custom";
@@ -155,6 +155,12 @@ export declare const actionGroup: {
155
155
  dynamicStyle: string;
156
156
  invertBindingBehaviour: boolean;
157
157
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
158
+ snapLines: import("../snapping").SnapLine[];
159
+ originSnapOffset: {
160
+ x: number;
161
+ y: number;
162
+ } | null;
163
+ objectsSnapModeEnabled: boolean;
158
164
  };
159
165
  elements: ExcalidrawElement[];
160
166
  commitToHistory: true;
@@ -162,7 +168,7 @@ export declare const actionGroup: {
162
168
  contextItemLabel: string;
163
169
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
164
170
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
165
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
171
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
166
172
  } & {
167
173
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
168
174
  };
@@ -218,7 +224,7 @@ export declare const actionUngroup: {
218
224
  lastActiveTool: import("../types").LastActiveTool;
219
225
  locked: boolean;
220
226
  } & ({
221
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
227
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
222
228
  customType: null;
223
229
  } | {
224
230
  type: "custom";
@@ -321,6 +327,12 @@ export declare const actionUngroup: {
321
327
  dynamicStyle: string;
322
328
  invertBindingBehaviour: boolean;
323
329
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
330
+ snapLines: import("../snapping").SnapLine[];
331
+ originSnapOffset: {
332
+ x: number;
333
+ y: number;
334
+ } | null;
335
+ objectsSnapModeEnabled: boolean;
324
336
  };
325
337
  elements: ExcalidrawElement[];
326
338
  commitToHistory: true;
@@ -328,7 +340,7 @@ export declare const actionUngroup: {
328
340
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
329
341
  contextItemLabel: string;
330
342
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
331
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
343
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
332
344
  } & {
333
345
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
334
346
  };
@@ -42,7 +42,7 @@ export declare const actionToggleLinearEditor: {
42
42
  lastActiveTool: import("../types").LastActiveTool;
43
43
  locked: boolean;
44
44
  } & ({
45
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
45
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
46
46
  customType: null;
47
47
  } | {
48
48
  type: "custom";
@@ -152,6 +152,12 @@ export declare const actionToggleLinearEditor: {
152
152
  dynamicStyle: string;
153
153
  invertBindingBehaviour: boolean;
154
154
  selectedLinearElement: LinearElementEditor | null;
155
+ snapLines: import("../snapping").SnapLine[];
156
+ originSnapOffset: {
157
+ x: number;
158
+ y: number;
159
+ } | null;
160
+ objectsSnapModeEnabled: boolean;
155
161
  };
156
162
  commitToHistory: false;
157
163
  };