@dwelle/excalidraw 0.4.0-d8d86cf → 0.4.0-e3bee83

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 (89) hide show
  1. package/CHANGELOG.md +189 -0
  2. package/README.md +417 -19
  3. package/dist/excalidraw.development.js +427 -229
  4. package/dist/excalidraw.production.min.js +1 -1
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +21 -9
  7. package/types/actions/actionAlign.d.ts +6 -18
  8. package/types/actions/actionBoundText.d.ts +9 -5
  9. package/types/actions/actionCanvas.d.ts +69 -45
  10. package/types/actions/actionClipboard.d.ts +54 -16
  11. package/types/actions/actionDeleteSelected.d.ts +22 -12
  12. package/types/actions/actionDistribute.d.ts +2 -6
  13. package/types/actions/actionDuplicateSelection.d.ts +1 -3
  14. package/types/actions/actionExport.d.ts +72 -51
  15. package/types/actions/actionFinalize.d.ts +15 -9
  16. package/types/actions/actionFlip.d.ts +2 -2
  17. package/types/actions/actionGroup.d.ts +4 -8
  18. package/types/actions/actionLinearEditor.d.ts +8 -4
  19. package/types/actions/actionMenu.d.ts +24 -17
  20. package/types/actions/actionNavigate.d.ts +2 -3
  21. package/types/actions/actionProperties.d.ts +106 -80
  22. package/types/actions/actionStyles.d.ts +7 -3
  23. package/types/actions/actionToggleGridMode.d.ts +9 -3
  24. package/types/actions/actionToggleLock.d.ts +7 -3
  25. package/types/actions/actionToggleStats.d.ts +8 -3
  26. package/types/actions/actionToggleViewMode.d.ts +9 -3
  27. package/types/actions/actionToggleZenMode.d.ts +9 -3
  28. package/types/actions/actionZindex.d.ts +4 -12
  29. package/types/actions/manager.d.ts +2 -1
  30. package/types/actions/types.d.ts +6 -5
  31. package/types/appState.d.ts +3 -4
  32. package/types/components/App.d.ts +7 -50
  33. package/types/components/Button.d.ts +15 -0
  34. package/types/components/Card.d.ts +7 -0
  35. package/types/components/ContextMenu.d.ts +8 -21
  36. package/types/components/JSONExportDialog.d.ts +3 -1
  37. package/types/components/LayerUI.d.ts +3 -5
  38. package/types/components/LibraryMenuHeaderContent.d.ts +23 -0
  39. package/types/components/MobileMenu.d.ts +5 -8
  40. package/types/components/UserList.d.ts +0 -2
  41. package/types/components/dropdownMenu/DropdownMenu.d.ts +64 -0
  42. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +11 -0
  43. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
  44. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +13 -0
  45. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -0
  46. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -0
  47. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +12 -0
  48. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  49. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -0
  50. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
  51. package/types/components/footer/Footer.d.ts +13 -0
  52. package/types/components/footer/FooterCenter.d.ts +8 -0
  53. package/types/components/icons.d.ts +1 -1
  54. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -0
  55. package/types/components/main-menu/DefaultItems.d.ts +47 -0
  56. package/types/components/main-menu/MainMenu.d.ts +55 -0
  57. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
  58. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
  59. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -0
  60. package/types/constants.d.ts +11 -8
  61. package/types/data/index.d.ts +1 -1
  62. package/types/element/Hyperlink.d.ts +9 -7
  63. package/types/element/bounds.d.ts +1 -1
  64. package/types/element/linearElementEditor.d.ts +8 -4
  65. package/types/element/textElement.d.ts +7 -0
  66. package/types/element/textWysiwyg.d.ts +6 -1
  67. package/types/element/typeChecks.d.ts +9 -1
  68. package/types/element/types.d.ts +9 -5
  69. package/types/keys.d.ts +2 -0
  70. package/types/math.d.ts +2 -1
  71. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -0
  72. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -0
  73. package/types/packages/excalidraw/index.d.ts +12 -1
  74. package/types/packages/utils.d.ts +22 -25
  75. package/types/renderer/renderScene.d.ts +1 -3
  76. package/types/scene/comparisons.d.ts +1 -1
  77. package/types/scene/export.d.ts +143 -9
  78. package/types/scene/index.d.ts +1 -1
  79. package/types/scene/types.d.ts +9 -1
  80. package/types/types.d.ts +44 -24
  81. package/types/utils.d.ts +17 -0
  82. package/types/components/ActiveFile.d.ts +0 -7
  83. package/types/components/ClearCanvas.d.ts +0 -4
  84. package/types/components/CollabButton.d.ts +0 -6
  85. package/types/components/Footer.d.ts +0 -10
  86. package/types/components/MenuItem.d.ts +0 -11
  87. package/types/components/MenuUtils.d.ts +0 -1
  88. package/types/components/WelcomeScreen.d.ts +0 -10
  89. package/types/components/WelcomeScreenDecor.d.ts +0 -6
@@ -6,6 +6,11 @@ export declare const actionChangeProjectName: {
6
6
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
7
7
  appState: {
8
8
  name: any;
9
+ contextMenu: {
10
+ items: import("../components/ContextMenu").ContextMenuItems;
11
+ top: number;
12
+ left: number;
13
+ } | null;
9
14
  showWelcomeScreen: boolean;
10
15
  isLoading: boolean;
11
16
  errorMessage: string | null;
@@ -45,10 +50,9 @@ export declare const actionChangeProjectName: {
45
50
  currentItemFontFamily: number;
46
51
  currentItemFontSize: number;
47
52
  currentItemTextAlign: string;
48
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
49
53
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
50
54
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
51
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
55
+ currentItemRoundness: import("../element/types").StrokeRoundness;
52
56
  viewBackgroundColor: string;
53
57
  scrollX: number;
54
58
  scrollY: number;
@@ -62,7 +66,7 @@ export declare const actionChangeProjectName: {
62
66
  openMenu: "canvas" | "shape" | null;
63
67
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
64
68
  openSidebar: "library" | "customSidebar" | null;
65
- openDialog: "imageExport" | "help" | null;
69
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
66
70
  isSidebarDocked: boolean;
67
71
  lastPointerDownWith: import("../element/types").PointerType;
68
72
  selectedElementIds: {
@@ -106,9 +110,7 @@ export declare const actionChangeProjectName: {
106
110
  };
107
111
  commitToHistory: false;
108
112
  };
109
- PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps & {
110
- isInHamburgerMenu: boolean;
111
- }) => JSX.Element;
113
+ PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
112
114
  } & {
113
115
  keyTest?: undefined;
114
116
  };
@@ -121,6 +123,11 @@ export declare const actionChangeExportScale: {
121
123
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
122
124
  appState: {
123
125
  exportScale: any;
126
+ contextMenu: {
127
+ items: import("../components/ContextMenu").ContextMenuItems;
128
+ top: number;
129
+ left: number;
130
+ } | null;
124
131
  showWelcomeScreen: boolean;
125
132
  isLoading: boolean;
126
133
  errorMessage: string | null;
@@ -159,10 +166,9 @@ export declare const actionChangeExportScale: {
159
166
  currentItemFontFamily: number;
160
167
  currentItemFontSize: number;
161
168
  currentItemTextAlign: string;
162
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
163
169
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
164
170
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
165
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
171
+ currentItemRoundness: import("../element/types").StrokeRoundness;
166
172
  viewBackgroundColor: string;
167
173
  scrollX: number;
168
174
  scrollY: number;
@@ -177,7 +183,7 @@ export declare const actionChangeExportScale: {
177
183
  openMenu: "canvas" | "shape" | null;
178
184
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
179
185
  openSidebar: "library" | "customSidebar" | null;
180
- openDialog: "imageExport" | "help" | null;
186
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
181
187
  isSidebarDocked: boolean;
182
188
  lastPointerDownWith: import("../element/types").PointerType;
183
189
  selectedElementIds: {
@@ -221,9 +227,7 @@ export declare const actionChangeExportScale: {
221
227
  };
222
228
  commitToHistory: false;
223
229
  };
224
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps & {
225
- isInHamburgerMenu: boolean;
226
- }) => JSX.Element;
230
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
227
231
  } & {
228
232
  keyTest?: undefined;
229
233
  };
@@ -236,6 +240,11 @@ export declare const actionChangeExportBackground: {
236
240
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
237
241
  appState: {
238
242
  exportBackground: any;
243
+ contextMenu: {
244
+ items: import("../components/ContextMenu").ContextMenuItems;
245
+ top: number;
246
+ left: number;
247
+ } | null;
239
248
  showWelcomeScreen: boolean;
240
249
  isLoading: boolean;
241
250
  errorMessage: string | null;
@@ -274,10 +283,9 @@ export declare const actionChangeExportBackground: {
274
283
  currentItemFontFamily: number;
275
284
  currentItemFontSize: number;
276
285
  currentItemTextAlign: string;
277
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
278
286
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
279
287
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
280
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
288
+ currentItemRoundness: import("../element/types").StrokeRoundness;
281
289
  viewBackgroundColor: string;
282
290
  scrollX: number;
283
291
  scrollY: number;
@@ -292,7 +300,7 @@ export declare const actionChangeExportBackground: {
292
300
  openMenu: "canvas" | "shape" | null;
293
301
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
294
302
  openSidebar: "library" | "customSidebar" | null;
295
- openDialog: "imageExport" | "help" | null;
303
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
296
304
  isSidebarDocked: boolean;
297
305
  lastPointerDownWith: import("../element/types").PointerType;
298
306
  selectedElementIds: {
@@ -336,9 +344,7 @@ export declare const actionChangeExportBackground: {
336
344
  };
337
345
  commitToHistory: false;
338
346
  };
339
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
340
- isInHamburgerMenu: boolean;
341
- }) => JSX.Element;
347
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
342
348
  } & {
343
349
  keyTest?: undefined;
344
350
  };
@@ -351,6 +357,11 @@ export declare const actionChangeExportEmbedScene: {
351
357
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
352
358
  appState: {
353
359
  exportEmbedScene: any;
360
+ contextMenu: {
361
+ items: import("../components/ContextMenu").ContextMenuItems;
362
+ top: number;
363
+ left: number;
364
+ } | null;
354
365
  showWelcomeScreen: boolean;
355
366
  isLoading: boolean;
356
367
  errorMessage: string | null;
@@ -389,10 +400,9 @@ export declare const actionChangeExportEmbedScene: {
389
400
  currentItemFontFamily: number;
390
401
  currentItemFontSize: number;
391
402
  currentItemTextAlign: string;
392
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
393
403
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
394
404
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
395
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
405
+ currentItemRoundness: import("../element/types").StrokeRoundness;
396
406
  viewBackgroundColor: string;
397
407
  scrollX: number;
398
408
  scrollY: number;
@@ -407,7 +417,7 @@ export declare const actionChangeExportEmbedScene: {
407
417
  openMenu: "canvas" | "shape" | null;
408
418
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
409
419
  openSidebar: "library" | "customSidebar" | null;
410
- openDialog: "imageExport" | "help" | null;
420
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
411
421
  isSidebarDocked: boolean;
412
422
  lastPointerDownWith: import("../element/types").PointerType;
413
423
  selectedElementIds: {
@@ -451,9 +461,7 @@ export declare const actionChangeExportEmbedScene: {
451
461
  };
452
462
  commitToHistory: false;
453
463
  };
454
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
455
- isInHamburgerMenu: boolean;
456
- }) => JSX.Element;
464
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
457
465
  } & {
458
466
  keyTest?: undefined;
459
467
  };
@@ -462,6 +470,7 @@ export declare const actionSaveToActiveFile: {
462
470
  trackEvent: {
463
471
  category: "export";
464
472
  };
473
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
465
474
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
466
475
  commitToHistory: false;
467
476
  appState: {
@@ -469,6 +478,11 @@ export declare const actionSaveToActiveFile: {
469
478
  toast: {
470
479
  message: string;
471
480
  } | null;
481
+ contextMenu: {
482
+ items: import("../components/ContextMenu").ContextMenuItems;
483
+ top: number;
484
+ left: number;
485
+ } | null;
472
486
  showWelcomeScreen: boolean;
473
487
  isLoading: boolean;
474
488
  errorMessage: string | null;
@@ -508,10 +522,9 @@ export declare const actionSaveToActiveFile: {
508
522
  currentItemFontFamily: number;
509
523
  currentItemFontSize: number;
510
524
  currentItemTextAlign: string;
511
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
512
525
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
513
526
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
514
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
527
+ currentItemRoundness: import("../element/types").StrokeRoundness;
515
528
  viewBackgroundColor: string;
516
529
  scrollX: number;
517
530
  scrollY: number;
@@ -526,7 +539,7 @@ export declare const actionSaveToActiveFile: {
526
539
  openMenu: "canvas" | "shape" | null;
527
540
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
528
541
  openSidebar: "library" | "customSidebar" | null;
529
- openDialog: "imageExport" | "help" | null;
542
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
530
543
  isSidebarDocked: boolean;
531
544
  lastPointerDownWith: import("../element/types").PointerType;
532
545
  selectedElementIds: {
@@ -567,14 +580,12 @@ export declare const actionSaveToActiveFile: {
567
580
  appState?: undefined;
568
581
  }>;
569
582
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
570
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps & {
571
- isInHamburgerMenu: boolean;
572
- }) => JSX.Element;
573
583
  } & {
574
584
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
575
585
  };
576
586
  export declare const actionSaveFileToDisk: {
577
587
  name: "saveFileToDisk";
588
+ viewMode: true;
578
589
  trackEvent: {
579
590
  category: "export";
580
591
  };
@@ -582,6 +593,11 @@ export declare const actionSaveFileToDisk: {
582
593
  commitToHistory: false;
583
594
  appState: {
584
595
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
596
+ contextMenu: {
597
+ items: import("../components/ContextMenu").ContextMenuItems;
598
+ top: number;
599
+ left: number;
600
+ } | null;
585
601
  showWelcomeScreen: boolean;
586
602
  isLoading: boolean;
587
603
  errorMessage: string | null;
@@ -621,10 +637,9 @@ export declare const actionSaveFileToDisk: {
621
637
  currentItemFontFamily: number;
622
638
  currentItemFontSize: number;
623
639
  currentItemTextAlign: string;
624
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
625
640
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
626
641
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
627
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
642
+ currentItemRoundness: import("../element/types").StrokeRoundness;
628
643
  viewBackgroundColor: string;
629
644
  scrollX: number;
630
645
  scrollY: number;
@@ -639,7 +654,7 @@ export declare const actionSaveFileToDisk: {
639
654
  openMenu: "canvas" | "shape" | null;
640
655
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
641
656
  openSidebar: "library" | "customSidebar" | null;
642
- openDialog: "imageExport" | "help" | null;
657
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
643
658
  isSidebarDocked: boolean;
644
659
  lastPointerDownWith: import("../element/types").PointerType;
645
660
  selectedElementIds: {
@@ -685,9 +700,7 @@ export declare const actionSaveFileToDisk: {
685
700
  appState?: undefined;
686
701
  }>;
687
702
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
688
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
689
- isInHamburgerMenu: boolean;
690
- }) => JSX.Element;
703
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
691
704
  } & {
692
705
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
693
706
  };
@@ -696,6 +709,7 @@ export declare const actionLoadScene: {
696
709
  trackEvent: {
697
710
  category: "export";
698
711
  };
712
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
699
713
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
700
714
  elements: import("../element/types").ExcalidrawElement[];
701
715
  appState: {
@@ -712,6 +726,11 @@ export declare const actionLoadScene: {
712
726
  lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
713
727
  locked: boolean;
714
728
  };
729
+ contextMenu: {
730
+ items: import("../components/ContextMenu").ContextMenuItems;
731
+ top: number;
732
+ left: number;
733
+ } | null;
715
734
  showWelcomeScreen: boolean;
716
735
  isLoading: boolean;
717
736
  errorMessage: string | null;
@@ -740,10 +759,9 @@ export declare const actionLoadScene: {
740
759
  currentItemFontFamily: number;
741
760
  currentItemFontSize: number;
742
761
  currentItemTextAlign: string;
743
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
744
762
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
745
763
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
746
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
764
+ currentItemRoundness: import("../element/types").StrokeRoundness;
747
765
  viewBackgroundColor: string;
748
766
  scrollX: number;
749
767
  scrollY: number;
@@ -757,7 +775,7 @@ export declare const actionLoadScene: {
757
775
  openMenu: "canvas" | "shape" | null;
758
776
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
759
777
  openSidebar: "library" | "customSidebar" | null;
760
- openDialog: "imageExport" | "help" | null;
778
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
761
779
  isSidebarDocked: boolean;
762
780
  lastPointerDownWith: import("../element/types").PointerType;
763
781
  selectedElementIds: {
@@ -800,6 +818,11 @@ export declare const actionLoadScene: {
800
818
  elements: readonly import("../element/types").ExcalidrawElement[];
801
819
  appState: {
802
820
  errorMessage: any;
821
+ contextMenu: {
822
+ items: import("../components/ContextMenu").ContextMenuItems;
823
+ top: number;
824
+ left: number;
825
+ } | null;
803
826
  showWelcomeScreen: boolean;
804
827
  isLoading: boolean;
805
828
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -838,10 +861,9 @@ export declare const actionLoadScene: {
838
861
  currentItemFontFamily: number;
839
862
  currentItemFontSize: number;
840
863
  currentItemTextAlign: string;
841
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
842
864
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
843
865
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
844
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
866
+ currentItemRoundness: import("../element/types").StrokeRoundness;
845
867
  viewBackgroundColor: string;
846
868
  scrollX: number;
847
869
  scrollY: number;
@@ -856,7 +878,7 @@ export declare const actionLoadScene: {
856
878
  openMenu: "canvas" | "shape" | null;
857
879
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
858
880
  openSidebar: "library" | "customSidebar" | null;
859
- openDialog: "imageExport" | "help" | null;
881
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
860
882
  isSidebarDocked: boolean;
861
883
  lastPointerDownWith: import("../element/types").PointerType;
862
884
  selectedElementIds: {
@@ -902,9 +924,6 @@ export declare const actionLoadScene: {
902
924
  commitToHistory: false;
903
925
  }>;
904
926
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
905
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
906
- isInHamburgerMenu: boolean;
907
- }) => JSX.Element;
908
927
  } & {
909
928
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
910
929
  };
@@ -917,6 +936,11 @@ export declare const actionExportWithDarkMode: {
917
936
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
918
937
  appState: {
919
938
  exportWithDarkMode: any;
939
+ contextMenu: {
940
+ items: import("../components/ContextMenu").ContextMenuItems;
941
+ top: number;
942
+ left: number;
943
+ } | null;
920
944
  showWelcomeScreen: boolean;
921
945
  isLoading: boolean;
922
946
  errorMessage: string | null;
@@ -955,10 +979,9 @@ export declare const actionExportWithDarkMode: {
955
979
  currentItemFontFamily: number;
956
980
  currentItemFontSize: number;
957
981
  currentItemTextAlign: string;
958
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
959
982
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
960
983
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
961
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
984
+ currentItemRoundness: import("../element/types").StrokeRoundness;
962
985
  viewBackgroundColor: string;
963
986
  scrollX: number;
964
987
  scrollY: number;
@@ -973,7 +996,7 @@ export declare const actionExportWithDarkMode: {
973
996
  openMenu: "canvas" | "shape" | null;
974
997
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
975
998
  openSidebar: "library" | "customSidebar" | null;
976
- openDialog: "imageExport" | "help" | null;
999
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
977
1000
  isSidebarDocked: boolean;
978
1001
  lastPointerDownWith: import("../element/types").PointerType;
979
1002
  selectedElementIds: {
@@ -1017,9 +1040,7 @@ export declare const actionExportWithDarkMode: {
1017
1040
  };
1018
1041
  commitToHistory: false;
1019
1042
  };
1020
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
1021
- isInHamburgerMenu: boolean;
1022
- }) => JSX.Element;
1043
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1023
1044
  } & {
1024
1045
  keyTest?: undefined;
1025
1046
  };
@@ -9,6 +9,11 @@ export declare const actionFinalize: {
9
9
  appState: {
10
10
  cursorButton: "up";
11
11
  editingLinearElement: null;
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
12
17
  showWelcomeScreen: boolean;
13
18
  isLoading: boolean;
14
19
  errorMessage: string | null;
@@ -47,10 +52,9 @@ export declare const actionFinalize: {
47
52
  currentItemFontFamily: number;
48
53
  currentItemFontSize: number;
49
54
  currentItemTextAlign: string;
50
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
51
55
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
52
56
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
53
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
57
+ currentItemRoundness: import("../element/types").StrokeRoundness;
54
58
  viewBackgroundColor: string;
55
59
  scrollX: number;
56
60
  scrollY: number;
@@ -64,7 +68,7 @@ export declare const actionFinalize: {
64
68
  openMenu: "canvas" | "shape" | null;
65
69
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
66
70
  openSidebar: "library" | "customSidebar" | null;
67
- openDialog: "imageExport" | "help" | null;
71
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
68
72
  isSidebarDocked: boolean;
69
73
  lastPointerDownWith: import("../element/types").PointerType;
70
74
  selectedElementIds: {
@@ -132,6 +136,11 @@ export declare const actionFinalize: {
132
136
  };
133
137
  selectedLinearElement: LinearElementEditor | null;
134
138
  pendingImageElementId: null;
139
+ contextMenu: {
140
+ items: import("../components/ContextMenu").ContextMenuItems;
141
+ top: number;
142
+ left: number;
143
+ } | null;
135
144
  showWelcomeScreen: boolean;
136
145
  isLoading: boolean;
137
146
  errorMessage: string | null;
@@ -155,10 +164,9 @@ export declare const actionFinalize: {
155
164
  currentItemFontFamily: number;
156
165
  currentItemFontSize: number;
157
166
  currentItemTextAlign: string;
158
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
159
167
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
160
168
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
161
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
169
+ currentItemRoundness: import("../element/types").StrokeRoundness;
162
170
  viewBackgroundColor: string;
163
171
  scrollX: number;
164
172
  scrollY: number;
@@ -172,7 +180,7 @@ export declare const actionFinalize: {
172
180
  openMenu: "canvas" | "shape" | null;
173
181
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
174
182
  openSidebar: "library" | "customSidebar" | null;
175
- openDialog: "imageExport" | "help" | null;
183
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
176
184
  isSidebarDocked: boolean;
177
185
  lastPointerDownWith: import("../element/types").PointerType;
178
186
  previousSelectedElementIds: {
@@ -212,9 +220,7 @@ export declare const actionFinalize: {
212
220
  commitToHistory: boolean;
213
221
  };
214
222
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
215
- PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps & {
216
- isInHamburgerMenu: boolean;
217
- }) => JSX.Element;
223
+ PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
218
224
  } & {
219
225
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
220
226
  };
@@ -13,7 +13,7 @@ export declare const actionFlipHorizontal: {
13
13
  };
14
14
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
15
  contextItemLabel: string;
16
- contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
16
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
17
17
  } & {
18
18
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
19
19
  };
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
29
29
  };
30
30
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
31
31
  contextItemLabel: string;
32
- contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
32
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
33
33
  } & {
34
34
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
35
35
  };
@@ -16,11 +16,9 @@ export declare const actionGroup: {
16
16
  commitToHistory: true;
17
17
  };
18
18
  contextItemLabel: string;
19
- contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
19
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
20
20
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
21
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
22
- isInHamburgerMenu: boolean;
23
- }) => JSX.Element;
21
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
24
22
  } & {
25
23
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
26
24
  };
@@ -40,10 +38,8 @@ export declare const actionUngroup: {
40
38
  };
41
39
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
42
40
  contextItemLabel: string;
43
- contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
44
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
45
- isInHamburgerMenu: boolean;
46
- }) => JSX.Element;
41
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
42
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
47
43
  } & {
48
44
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
49
45
  };
@@ -5,10 +5,15 @@ export declare const actionToggleLinearEditor: {
5
5
  trackEvent: {
6
6
  category: "element";
7
7
  };
8
- contextItemPredicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
8
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
9
9
  perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
10
10
  appState: {
11
11
  editingLinearElement: LinearElementEditor | null;
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
12
17
  showWelcomeScreen: boolean;
13
18
  isLoading: boolean;
14
19
  errorMessage: string | null;
@@ -47,10 +52,9 @@ export declare const actionToggleLinearEditor: {
47
52
  currentItemFontFamily: number;
48
53
  currentItemFontSize: number;
49
54
  currentItemTextAlign: string;
50
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
51
55
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
52
56
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
53
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
57
+ currentItemRoundness: import("../element/types").StrokeRoundness;
54
58
  viewBackgroundColor: string;
55
59
  scrollX: number;
56
60
  scrollY: number;
@@ -65,7 +69,7 @@ export declare const actionToggleLinearEditor: {
65
69
  openMenu: "canvas" | "shape" | null;
66
70
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
67
71
  openSidebar: "library" | "customSidebar" | null;
68
- openDialog: "imageExport" | "help" | null;
72
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
69
73
  isSidebarDocked: boolean;
70
74
  lastPointerDownWith: import("../element/types").PointerType;
71
75
  selectedElementIds: {