@zsviczian/excalidraw 0.13.0-obsidian → 0.13.0-obsidian-2

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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/excalidraw.development.js +1149 -166
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +104 -0
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +9 -9
  7. package/types/actions/actionAlign.d.ts +18 -6
  8. package/types/actions/actionBoundText.d.ts +3 -3
  9. package/types/actions/actionCanvas.d.ts +62 -43
  10. package/types/actions/actionClipboard.d.ts +24 -15
  11. package/types/actions/actionDeleteSelected.d.ts +21 -10
  12. package/types/actions/actionDistribute.d.ts +6 -2
  13. package/types/actions/actionDuplicateSelection.d.ts +3 -1
  14. package/types/actions/actionExport.d.ts +61 -44
  15. package/types/actions/actionFinalize.d.ts +9 -7
  16. package/types/actions/actionGroup.d.ts +6 -2
  17. package/types/actions/actionLinearEditor.d.ts +3 -3
  18. package/types/actions/actionMenu.d.ts +20 -12
  19. package/types/actions/actionNavigate.d.ts +4 -1
  20. package/types/actions/actionProperties.d.ts +80 -54
  21. package/types/actions/actionStyles.d.ts +3 -3
  22. package/types/actions/actionToggleGridMode.d.ts +4 -3
  23. package/types/actions/actionToggleLock.d.ts +3 -3
  24. package/types/actions/actionToggleStats.d.ts +4 -3
  25. package/types/actions/actionToggleViewMode.d.ts +4 -3
  26. package/types/actions/actionToggleZenMode.d.ts +4 -3
  27. package/types/actions/actionZindex.d.ts +12 -4
  28. package/types/actions/manager.d.ts +1 -1
  29. package/types/actions/shortcuts.d.ts +1 -1
  30. package/types/actions/types.d.ts +7 -2
  31. package/types/appState.d.ts +11 -11
  32. package/types/bug-issue-template.d.ts +2 -0
  33. package/types/clients.d.ts +1 -1
  34. package/types/clipboard.d.ts +6 -1
  35. package/types/components/Actions.d.ts +1 -0
  36. package/types/components/App.d.ts +47 -1
  37. package/types/components/Avatar.d.ts +1 -1
  38. package/types/components/CollabButton.d.ts +2 -1
  39. package/types/components/ContextMenu.d.ts +9 -10
  40. package/types/components/DialogActionButton.d.ts +10 -0
  41. package/types/components/EncryptedIcon.d.ts +2 -0
  42. package/types/components/Footer.d.ts +2 -1
  43. package/types/components/HelpButton.d.ts +8 -0
  44. package/types/components/ImageExportDialog.d.ts +3 -1
  45. package/types/components/LayerUI.d.ts +2 -1
  46. package/types/components/LibraryButton.d.ts +1 -0
  47. package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
  48. package/types/components/LibraryMenuItems.d.ts +5 -2
  49. package/types/components/MenuItem.d.ts +11 -0
  50. package/types/components/MenuUtils.d.ts +2 -0
  51. package/types/components/MobileMenu.d.ts +2 -1
  52. package/types/components/Sidebar/Sidebar.d.ts +1 -1
  53. package/types/components/Sidebar/common.d.ts +1 -0
  54. package/types/components/TopErrorBoundary.d.ts +15 -0
  55. package/types/components/WelcomeScreen.d.ts +8 -0
  56. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  57. package/types/components/icons.d.ts +83 -124
  58. package/types/constants.d.ts +8 -5
  59. package/types/element/Hyperlink.d.ts +6 -4
  60. package/types/element/bounds.d.ts +3 -2
  61. package/types/element/linearElementEditor.d.ts +34 -6
  62. package/types/element/newElement.d.ts +2 -2
  63. package/types/element/resizeElements.d.ts +0 -1
  64. package/types/element/textElement.d.ts +17 -2
  65. package/types/element/transformHandles.d.ts +3 -4
  66. package/types/element/typeChecks.d.ts +10 -1
  67. package/types/element/types.d.ts +11 -4
  68. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  69. package/types/excalidraw-app/app_constants.d.ts +32 -0
  70. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  71. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  72. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  73. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  74. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  75. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  76. package/types/excalidraw-app/components/icons.d.ts +1 -0
  77. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  78. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  79. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  80. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  81. package/types/excalidraw-app/data/index.d.ts +185 -0
  82. package/types/excalidraw-app/data/localStorage.d.ts +111 -0
  83. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  84. package/types/excalidraw-app/index.d.ts +26 -0
  85. package/types/hooks/useOutsideClick.d.ts +2 -0
  86. package/types/keys.d.ts +10 -0
  87. package/types/math.d.ts +2 -1
  88. package/types/packages/excalidraw/index.d.ts +3 -0
  89. package/types/packages/utils.d.ts +3 -1
  90. package/types/renderer/renderElement.d.ts +4 -3
  91. package/types/renderer/renderScene.d.ts +1 -1
  92. package/types/scene/Fonts.d.ts +21 -0
  93. package/types/scene/Scene.d.ts +15 -0
  94. package/types/scene/comparisons.d.ts +2 -3
  95. package/types/scene/index.d.ts +1 -1
  96. package/types/scene/types.d.ts +1 -0
  97. package/types/shapes.d.ts +27 -3
  98. package/types/types.d.ts +15 -4
@@ -5,7 +5,9 @@ export declare const actionChangeStrokeColor: {
5
5
  name: "changeStrokeColor";
6
6
  trackEvent: false;
7
7
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
8
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
9
+ isInHamburgerMenu: boolean;
10
+ }) => JSX.Element;
9
11
  } & {
10
12
  keyTest?: undefined;
11
13
  };
@@ -13,7 +15,9 @@ export declare const actionChangeBackgroundColor: {
13
15
  name: "changeBackgroundColor";
14
16
  trackEvent: false;
15
17
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
16
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
18
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
19
+ isInHamburgerMenu: boolean;
20
+ }) => JSX.Element;
17
21
  } & {
18
22
  keyTest?: undefined;
19
23
  };
@@ -24,6 +28,7 @@ export declare const actionChangeFillStyle: {
24
28
  elements: ExcalidrawElement[];
25
29
  appState: {
26
30
  currentItemFillStyle: any;
31
+ showWelcomeScreen: boolean;
27
32
  isLoading: boolean;
28
33
  errorMessage: string | null;
29
34
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -61,10 +66,9 @@ export declare const actionChangeFillStyle: {
61
66
  currentItemFontFamily: number;
62
67
  currentItemFontSize: number;
63
68
  currentItemTextAlign: string;
64
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
65
69
  currentItemStartArrowhead: Arrowhead | null;
66
70
  currentItemEndArrowhead: Arrowhead | null;
67
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
71
+ currentItemRoundness: import("../element/types").StrokeRoundness;
68
72
  viewBackgroundColor: string;
69
73
  scrollX: number;
70
74
  scrollY: number;
@@ -79,6 +83,7 @@ export declare const actionChangeFillStyle: {
79
83
  openMenu: "canvas" | "shape" | null;
80
84
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
81
85
  openSidebar: "library" | "customSidebar" | null;
86
+ openDialog: "imageExport" | "help" | null;
82
87
  isSidebarDocked: boolean;
83
88
  lastPointerDownWith: import("../element/types").PointerType;
84
89
  selectedElementIds: {
@@ -88,7 +93,6 @@ export declare const actionChangeFillStyle: {
88
93
  [id: string]: boolean;
89
94
  };
90
95
  shouldCacheIgnoreZoom: boolean;
91
- showHelpDialog: boolean;
92
96
  toast: {
93
97
  message: string;
94
98
  closable?: boolean | undefined;
@@ -130,7 +134,9 @@ export declare const actionChangeFillStyle: {
130
134
  };
131
135
  commitToHistory: true;
132
136
  };
133
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
137
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
138
+ isInHamburgerMenu: boolean;
139
+ }) => JSX.Element;
134
140
  } & {
135
141
  keyTest?: undefined;
136
142
  };
@@ -141,6 +147,7 @@ export declare const actionChangeStrokeWidth: {
141
147
  elements: ExcalidrawElement[];
142
148
  appState: {
143
149
  currentItemStrokeWidth: any;
150
+ showWelcomeScreen: boolean;
144
151
  isLoading: boolean;
145
152
  errorMessage: string | null;
146
153
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -178,10 +185,9 @@ export declare const actionChangeStrokeWidth: {
178
185
  currentItemFontFamily: number;
179
186
  currentItemFontSize: number;
180
187
  currentItemTextAlign: string;
181
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
182
188
  currentItemStartArrowhead: Arrowhead | null;
183
189
  currentItemEndArrowhead: Arrowhead | null;
184
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
190
+ currentItemRoundness: import("../element/types").StrokeRoundness;
185
191
  viewBackgroundColor: string;
186
192
  scrollX: number;
187
193
  scrollY: number;
@@ -196,6 +202,7 @@ export declare const actionChangeStrokeWidth: {
196
202
  openMenu: "canvas" | "shape" | null;
197
203
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
198
204
  openSidebar: "library" | "customSidebar" | null;
205
+ openDialog: "imageExport" | "help" | null;
199
206
  isSidebarDocked: boolean;
200
207
  lastPointerDownWith: import("../element/types").PointerType;
201
208
  selectedElementIds: {
@@ -205,7 +212,6 @@ export declare const actionChangeStrokeWidth: {
205
212
  [id: string]: boolean;
206
213
  };
207
214
  shouldCacheIgnoreZoom: boolean;
208
- showHelpDialog: boolean;
209
215
  toast: {
210
216
  message: string;
211
217
  closable?: boolean | undefined;
@@ -247,7 +253,9 @@ export declare const actionChangeStrokeWidth: {
247
253
  };
248
254
  commitToHistory: true;
249
255
  };
250
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
256
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
257
+ isInHamburgerMenu: boolean;
258
+ }) => JSX.Element;
251
259
  } & {
252
260
  keyTest?: undefined;
253
261
  };
@@ -258,6 +266,7 @@ export declare const actionChangeSloppiness: {
258
266
  elements: ExcalidrawElement[];
259
267
  appState: {
260
268
  currentItemRoughness: any;
269
+ showWelcomeScreen: boolean;
261
270
  isLoading: boolean;
262
271
  errorMessage: string | null;
263
272
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -295,10 +304,9 @@ export declare const actionChangeSloppiness: {
295
304
  currentItemFontFamily: number;
296
305
  currentItemFontSize: number;
297
306
  currentItemTextAlign: string;
298
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
299
307
  currentItemStartArrowhead: Arrowhead | null;
300
308
  currentItemEndArrowhead: Arrowhead | null;
301
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
309
+ currentItemRoundness: import("../element/types").StrokeRoundness;
302
310
  viewBackgroundColor: string;
303
311
  scrollX: number;
304
312
  scrollY: number;
@@ -313,6 +321,7 @@ export declare const actionChangeSloppiness: {
313
321
  openMenu: "canvas" | "shape" | null;
314
322
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
315
323
  openSidebar: "library" | "customSidebar" | null;
324
+ openDialog: "imageExport" | "help" | null;
316
325
  isSidebarDocked: boolean;
317
326
  lastPointerDownWith: import("../element/types").PointerType;
318
327
  selectedElementIds: {
@@ -322,7 +331,6 @@ export declare const actionChangeSloppiness: {
322
331
  [id: string]: boolean;
323
332
  };
324
333
  shouldCacheIgnoreZoom: boolean;
325
- showHelpDialog: boolean;
326
334
  toast: {
327
335
  message: string;
328
336
  closable?: boolean | undefined;
@@ -364,7 +372,9 @@ export declare const actionChangeSloppiness: {
364
372
  };
365
373
  commitToHistory: true;
366
374
  };
367
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
375
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
376
+ isInHamburgerMenu: boolean;
377
+ }) => JSX.Element;
368
378
  } & {
369
379
  keyTest?: undefined;
370
380
  };
@@ -375,6 +385,7 @@ export declare const actionChangeStrokeStyle: {
375
385
  elements: ExcalidrawElement[];
376
386
  appState: {
377
387
  currentItemStrokeStyle: any;
388
+ showWelcomeScreen: boolean;
378
389
  isLoading: boolean;
379
390
  errorMessage: string | null;
380
391
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -412,10 +423,9 @@ export declare const actionChangeStrokeStyle: {
412
423
  currentItemFontFamily: number;
413
424
  currentItemFontSize: number;
414
425
  currentItemTextAlign: string;
415
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
416
426
  currentItemStartArrowhead: Arrowhead | null;
417
427
  currentItemEndArrowhead: Arrowhead | null;
418
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
428
+ currentItemRoundness: import("../element/types").StrokeRoundness;
419
429
  viewBackgroundColor: string;
420
430
  scrollX: number;
421
431
  scrollY: number;
@@ -430,6 +440,7 @@ export declare const actionChangeStrokeStyle: {
430
440
  openMenu: "canvas" | "shape" | null;
431
441
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
432
442
  openSidebar: "library" | "customSidebar" | null;
443
+ openDialog: "imageExport" | "help" | null;
433
444
  isSidebarDocked: boolean;
434
445
  lastPointerDownWith: import("../element/types").PointerType;
435
446
  selectedElementIds: {
@@ -439,7 +450,6 @@ export declare const actionChangeStrokeStyle: {
439
450
  [id: string]: boolean;
440
451
  };
441
452
  shouldCacheIgnoreZoom: boolean;
442
- showHelpDialog: boolean;
443
453
  toast: {
444
454
  message: string;
445
455
  closable?: boolean | undefined;
@@ -481,7 +491,9 @@ export declare const actionChangeStrokeStyle: {
481
491
  };
482
492
  commitToHistory: true;
483
493
  };
484
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
494
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
495
+ isInHamburgerMenu: boolean;
496
+ }) => JSX.Element;
485
497
  } & {
486
498
  keyTest?: undefined;
487
499
  };
@@ -492,6 +504,7 @@ export declare const actionChangeOpacity: {
492
504
  elements: ExcalidrawElement[];
493
505
  appState: {
494
506
  currentItemOpacity: any;
507
+ showWelcomeScreen: boolean;
495
508
  isLoading: boolean;
496
509
  errorMessage: string | null;
497
510
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -529,10 +542,9 @@ export declare const actionChangeOpacity: {
529
542
  currentItemFontFamily: number;
530
543
  currentItemFontSize: number;
531
544
  currentItemTextAlign: string;
532
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
533
545
  currentItemStartArrowhead: Arrowhead | null;
534
546
  currentItemEndArrowhead: Arrowhead | null;
535
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
547
+ currentItemRoundness: import("../element/types").StrokeRoundness;
536
548
  viewBackgroundColor: string;
537
549
  scrollX: number;
538
550
  scrollY: number;
@@ -547,6 +559,7 @@ export declare const actionChangeOpacity: {
547
559
  openMenu: "canvas" | "shape" | null;
548
560
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
549
561
  openSidebar: "library" | "customSidebar" | null;
562
+ openDialog: "imageExport" | "help" | null;
550
563
  isSidebarDocked: boolean;
551
564
  lastPointerDownWith: import("../element/types").PointerType;
552
565
  selectedElementIds: {
@@ -556,7 +569,6 @@ export declare const actionChangeOpacity: {
556
569
  [id: string]: boolean;
557
570
  };
558
571
  shouldCacheIgnoreZoom: boolean;
559
- showHelpDialog: boolean;
560
572
  toast: {
561
573
  message: string;
562
574
  closable?: boolean | undefined;
@@ -598,7 +610,9 @@ export declare const actionChangeOpacity: {
598
610
  };
599
611
  commitToHistory: true;
600
612
  };
601
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
613
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
614
+ isInHamburgerMenu: boolean;
615
+ }) => JSX.Element;
602
616
  } & {
603
617
  keyTest?: undefined;
604
618
  };
@@ -609,6 +623,7 @@ export declare const actionChangeFontSize: {
609
623
  elements: ExcalidrawElement[];
610
624
  appState: {
611
625
  currentItemFontSize: number;
626
+ showWelcomeScreen: boolean;
612
627
  isLoading: boolean;
613
628
  errorMessage: string | null;
614
629
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -646,10 +661,9 @@ export declare const actionChangeFontSize: {
646
661
  currentItemOpacity: number;
647
662
  currentItemFontFamily: number;
648
663
  currentItemTextAlign: string;
649
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
650
664
  currentItemStartArrowhead: Arrowhead | null;
651
665
  currentItemEndArrowhead: Arrowhead | null;
652
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
666
+ currentItemRoundness: import("../element/types").StrokeRoundness;
653
667
  viewBackgroundColor: string;
654
668
  scrollX: number;
655
669
  scrollY: number;
@@ -664,6 +678,7 @@ export declare const actionChangeFontSize: {
664
678
  openMenu: "canvas" | "shape" | null;
665
679
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
666
680
  openSidebar: "library" | "customSidebar" | null;
681
+ openDialog: "imageExport" | "help" | null;
667
682
  isSidebarDocked: boolean;
668
683
  lastPointerDownWith: import("../element/types").PointerType;
669
684
  selectedElementIds: {
@@ -673,7 +688,6 @@ export declare const actionChangeFontSize: {
673
688
  [id: string]: boolean;
674
689
  };
675
690
  shouldCacheIgnoreZoom: boolean;
676
- showHelpDialog: boolean;
677
691
  toast: {
678
692
  message: string;
679
693
  closable?: boolean | undefined;
@@ -715,7 +729,9 @@ export declare const actionChangeFontSize: {
715
729
  };
716
730
  commitToHistory: boolean;
717
731
  };
718
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
732
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
733
+ isInHamburgerMenu: boolean;
734
+ }) => JSX.Element;
719
735
  } & {
720
736
  keyTest?: undefined;
721
737
  };
@@ -726,6 +742,7 @@ export declare const actionDecreaseFontSize: {
726
742
  elements: ExcalidrawElement[];
727
743
  appState: {
728
744
  currentItemFontSize: number;
745
+ showWelcomeScreen: boolean;
729
746
  isLoading: boolean;
730
747
  errorMessage: string | null;
731
748
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -763,10 +780,9 @@ export declare const actionDecreaseFontSize: {
763
780
  currentItemOpacity: number;
764
781
  currentItemFontFamily: number;
765
782
  currentItemTextAlign: string;
766
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
767
783
  currentItemStartArrowhead: Arrowhead | null;
768
784
  currentItemEndArrowhead: Arrowhead | null;
769
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
785
+ currentItemRoundness: import("../element/types").StrokeRoundness;
770
786
  viewBackgroundColor: string;
771
787
  scrollX: number;
772
788
  scrollY: number;
@@ -781,6 +797,7 @@ export declare const actionDecreaseFontSize: {
781
797
  openMenu: "canvas" | "shape" | null;
782
798
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
783
799
  openSidebar: "library" | "customSidebar" | null;
800
+ openDialog: "imageExport" | "help" | null;
784
801
  isSidebarDocked: boolean;
785
802
  lastPointerDownWith: import("../element/types").PointerType;
786
803
  selectedElementIds: {
@@ -790,7 +807,6 @@ export declare const actionDecreaseFontSize: {
790
807
  [id: string]: boolean;
791
808
  };
792
809
  shouldCacheIgnoreZoom: boolean;
793
- showHelpDialog: boolean;
794
810
  toast: {
795
811
  message: string;
796
812
  closable?: boolean | undefined;
@@ -843,6 +859,7 @@ export declare const actionIncreaseFontSize: {
843
859
  elements: ExcalidrawElement[];
844
860
  appState: {
845
861
  currentItemFontSize: number;
862
+ showWelcomeScreen: boolean;
846
863
  isLoading: boolean;
847
864
  errorMessage: string | null;
848
865
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -880,10 +897,9 @@ export declare const actionIncreaseFontSize: {
880
897
  currentItemOpacity: number;
881
898
  currentItemFontFamily: number;
882
899
  currentItemTextAlign: string;
883
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
884
900
  currentItemStartArrowhead: Arrowhead | null;
885
901
  currentItemEndArrowhead: Arrowhead | null;
886
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
902
+ currentItemRoundness: import("../element/types").StrokeRoundness;
887
903
  viewBackgroundColor: string;
888
904
  scrollX: number;
889
905
  scrollY: number;
@@ -898,6 +914,7 @@ export declare const actionIncreaseFontSize: {
898
914
  openMenu: "canvas" | "shape" | null;
899
915
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
900
916
  openSidebar: "library" | "customSidebar" | null;
917
+ openDialog: "imageExport" | "help" | null;
901
918
  isSidebarDocked: boolean;
902
919
  lastPointerDownWith: import("../element/types").PointerType;
903
920
  selectedElementIds: {
@@ -907,7 +924,6 @@ export declare const actionIncreaseFontSize: {
907
924
  [id: string]: boolean;
908
925
  };
909
926
  shouldCacheIgnoreZoom: boolean;
910
- showHelpDialog: boolean;
911
927
  toast: {
912
928
  message: string;
913
929
  closable?: boolean | undefined;
@@ -960,6 +976,7 @@ export declare const actionChangeFontFamily: {
960
976
  elements: ExcalidrawElement[];
961
977
  appState: {
962
978
  currentItemFontFamily: any;
979
+ showWelcomeScreen: boolean;
963
980
  isLoading: boolean;
964
981
  errorMessage: string | null;
965
982
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -997,10 +1014,9 @@ export declare const actionChangeFontFamily: {
997
1014
  currentItemOpacity: number;
998
1015
  currentItemFontSize: number;
999
1016
  currentItemTextAlign: string;
1000
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1001
1017
  currentItemStartArrowhead: Arrowhead | null;
1002
1018
  currentItemEndArrowhead: Arrowhead | null;
1003
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1019
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1004
1020
  viewBackgroundColor: string;
1005
1021
  scrollX: number;
1006
1022
  scrollY: number;
@@ -1015,6 +1031,7 @@ export declare const actionChangeFontFamily: {
1015
1031
  openMenu: "canvas" | "shape" | null;
1016
1032
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1017
1033
  openSidebar: "library" | "customSidebar" | null;
1034
+ openDialog: "imageExport" | "help" | null;
1018
1035
  isSidebarDocked: boolean;
1019
1036
  lastPointerDownWith: import("../element/types").PointerType;
1020
1037
  selectedElementIds: {
@@ -1024,7 +1041,6 @@ export declare const actionChangeFontFamily: {
1024
1041
  [id: string]: boolean;
1025
1042
  };
1026
1043
  shouldCacheIgnoreZoom: boolean;
1027
- showHelpDialog: boolean;
1028
1044
  toast: {
1029
1045
  message: string;
1030
1046
  closable?: boolean | undefined;
@@ -1066,7 +1082,9 @@ export declare const actionChangeFontFamily: {
1066
1082
  };
1067
1083
  commitToHistory: true;
1068
1084
  };
1069
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1085
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1086
+ isInHamburgerMenu: boolean;
1087
+ }) => JSX.Element;
1070
1088
  } & {
1071
1089
  keyTest?: undefined;
1072
1090
  };
@@ -1077,6 +1095,7 @@ export declare const actionChangeTextAlign: {
1077
1095
  elements: ExcalidrawElement[];
1078
1096
  appState: {
1079
1097
  currentItemTextAlign: any;
1098
+ showWelcomeScreen: boolean;
1080
1099
  isLoading: boolean;
1081
1100
  errorMessage: string | null;
1082
1101
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1114,10 +1133,9 @@ export declare const actionChangeTextAlign: {
1114
1133
  currentItemOpacity: number;
1115
1134
  currentItemFontFamily: number;
1116
1135
  currentItemFontSize: number;
1117
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1118
1136
  currentItemStartArrowhead: Arrowhead | null;
1119
1137
  currentItemEndArrowhead: Arrowhead | null;
1120
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1138
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1121
1139
  viewBackgroundColor: string;
1122
1140
  scrollX: number;
1123
1141
  scrollY: number;
@@ -1132,6 +1150,7 @@ export declare const actionChangeTextAlign: {
1132
1150
  openMenu: "canvas" | "shape" | null;
1133
1151
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1134
1152
  openSidebar: "library" | "customSidebar" | null;
1153
+ openDialog: "imageExport" | "help" | null;
1135
1154
  isSidebarDocked: boolean;
1136
1155
  lastPointerDownWith: import("../element/types").PointerType;
1137
1156
  selectedElementIds: {
@@ -1141,7 +1160,6 @@ export declare const actionChangeTextAlign: {
1141
1160
  [id: string]: boolean;
1142
1161
  };
1143
1162
  shouldCacheIgnoreZoom: boolean;
1144
- showHelpDialog: boolean;
1145
1163
  toast: {
1146
1164
  message: string;
1147
1165
  closable?: boolean | undefined;
@@ -1183,7 +1201,9 @@ export declare const actionChangeTextAlign: {
1183
1201
  };
1184
1202
  commitToHistory: true;
1185
1203
  };
1186
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1204
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1205
+ isInHamburgerMenu: boolean;
1206
+ }) => JSX.Element;
1187
1207
  } & {
1188
1208
  keyTest?: undefined;
1189
1209
  };
@@ -1195,6 +1215,7 @@ export declare const actionChangeVerticalAlign: {
1195
1215
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1196
1216
  elements: ExcalidrawElement[];
1197
1217
  appState: {
1218
+ showWelcomeScreen: boolean;
1198
1219
  isLoading: boolean;
1199
1220
  errorMessage: string | null;
1200
1221
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1233,10 +1254,9 @@ export declare const actionChangeVerticalAlign: {
1233
1254
  currentItemFontFamily: number;
1234
1255
  currentItemFontSize: number;
1235
1256
  currentItemTextAlign: string;
1236
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1237
1257
  currentItemStartArrowhead: Arrowhead | null;
1238
1258
  currentItemEndArrowhead: Arrowhead | null;
1239
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1259
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1240
1260
  viewBackgroundColor: string;
1241
1261
  scrollX: number;
1242
1262
  scrollY: number;
@@ -1251,6 +1271,7 @@ export declare const actionChangeVerticalAlign: {
1251
1271
  openMenu: "canvas" | "shape" | null;
1252
1272
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1253
1273
  openSidebar: "library" | "customSidebar" | null;
1274
+ openDialog: "imageExport" | "help" | null;
1254
1275
  isSidebarDocked: boolean;
1255
1276
  lastPointerDownWith: import("../element/types").PointerType;
1256
1277
  selectedElementIds: {
@@ -1260,7 +1281,6 @@ export declare const actionChangeVerticalAlign: {
1260
1281
  [id: string]: boolean;
1261
1282
  };
1262
1283
  shouldCacheIgnoreZoom: boolean;
1263
- showHelpDialog: boolean;
1264
1284
  toast: {
1265
1285
  message: string;
1266
1286
  closable?: boolean | undefined;
@@ -1302,18 +1322,20 @@ export declare const actionChangeVerticalAlign: {
1302
1322
  };
1303
1323
  commitToHistory: true;
1304
1324
  };
1305
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1325
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1326
+ isInHamburgerMenu: boolean;
1327
+ }) => JSX.Element;
1306
1328
  } & {
1307
1329
  keyTest?: undefined;
1308
1330
  };
1309
- export declare const actionChangeSharpness: {
1310
- name: "changeSharpness";
1331
+ export declare const actionChangeRoundness: {
1332
+ name: "changeRoundness";
1311
1333
  trackEvent: false;
1312
1334
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1313
1335
  elements: ExcalidrawElement[];
1314
1336
  appState: {
1315
- currentItemStrokeSharpness: any;
1316
- currentItemLinearStrokeSharpness: any;
1337
+ currentItemRoundness: any;
1338
+ showWelcomeScreen: boolean;
1317
1339
  isLoading: boolean;
1318
1340
  errorMessage: string | null;
1319
1341
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1368,6 +1390,7 @@ export declare const actionChangeSharpness: {
1368
1390
  openMenu: "canvas" | "shape" | null;
1369
1391
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1370
1392
  openSidebar: "library" | "customSidebar" | null;
1393
+ openDialog: "imageExport" | "help" | null;
1371
1394
  isSidebarDocked: boolean;
1372
1395
  lastPointerDownWith: import("../element/types").PointerType;
1373
1396
  selectedElementIds: {
@@ -1377,7 +1400,6 @@ export declare const actionChangeSharpness: {
1377
1400
  [id: string]: boolean;
1378
1401
  };
1379
1402
  shouldCacheIgnoreZoom: boolean;
1380
- showHelpDialog: boolean;
1381
1403
  toast: {
1382
1404
  message: string;
1383
1405
  closable?: boolean | undefined;
@@ -1419,7 +1441,9 @@ export declare const actionChangeSharpness: {
1419
1441
  };
1420
1442
  commitToHistory: true;
1421
1443
  };
1422
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1444
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1445
+ isInHamburgerMenu: boolean;
1446
+ }) => JSX.Element;
1423
1447
  } & {
1424
1448
  keyTest?: undefined;
1425
1449
  };
@@ -1432,6 +1456,7 @@ export declare const actionChangeArrowhead: {
1432
1456
  }) => {
1433
1457
  elements: ExcalidrawElement[];
1434
1458
  appState: {
1459
+ showWelcomeScreen: boolean;
1435
1460
  isLoading: boolean;
1436
1461
  errorMessage: string | null;
1437
1462
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1470,10 +1495,9 @@ export declare const actionChangeArrowhead: {
1470
1495
  currentItemFontFamily: number;
1471
1496
  currentItemFontSize: number;
1472
1497
  currentItemTextAlign: string;
1473
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1474
1498
  currentItemStartArrowhead: Arrowhead | null;
1475
1499
  currentItemEndArrowhead: Arrowhead | null;
1476
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1500
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1477
1501
  viewBackgroundColor: string;
1478
1502
  scrollX: number;
1479
1503
  scrollY: number;
@@ -1488,6 +1512,7 @@ export declare const actionChangeArrowhead: {
1488
1512
  openMenu: "canvas" | "shape" | null;
1489
1513
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1490
1514
  openSidebar: "library" | "customSidebar" | null;
1515
+ openDialog: "imageExport" | "help" | null;
1491
1516
  isSidebarDocked: boolean;
1492
1517
  lastPointerDownWith: import("../element/types").PointerType;
1493
1518
  selectedElementIds: {
@@ -1497,7 +1522,6 @@ export declare const actionChangeArrowhead: {
1497
1522
  [id: string]: boolean;
1498
1523
  };
1499
1524
  shouldCacheIgnoreZoom: boolean;
1500
- showHelpDialog: boolean;
1501
1525
  toast: {
1502
1526
  message: string;
1503
1527
  closable?: boolean | undefined;
@@ -1539,7 +1563,9 @@ export declare const actionChangeArrowhead: {
1539
1563
  };
1540
1564
  commitToHistory: true;
1541
1565
  };
1542
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1566
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1567
+ isInHamburgerMenu: boolean;
1568
+ }) => JSX.Element;
1543
1569
  } & {
1544
1570
  keyTest?: undefined;
1545
1571
  };
@@ -10,6 +10,7 @@ export declare const actionCopyStyles: {
10
10
  toast: {
11
11
  message: string;
12
12
  };
13
+ showWelcomeScreen: boolean;
13
14
  isLoading: boolean;
14
15
  errorMessage: string | null;
15
16
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -48,10 +49,9 @@ export declare const actionCopyStyles: {
48
49
  currentItemFontFamily: number;
49
50
  currentItemFontSize: number;
50
51
  currentItemTextAlign: string;
51
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
52
52
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
53
53
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
54
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
54
+ currentItemRoundness: import("../element/types").StrokeRoundness;
55
55
  viewBackgroundColor: string;
56
56
  scrollX: number;
57
57
  scrollY: number;
@@ -66,6 +66,7 @@ export declare const actionCopyStyles: {
66
66
  openMenu: "canvas" | "shape" | null;
67
67
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
68
68
  openSidebar: "library" | "customSidebar" | null;
69
+ openDialog: "imageExport" | "help" | null;
69
70
  isSidebarDocked: boolean;
70
71
  lastPointerDownWith: import("../element/types").PointerType;
71
72
  selectedElementIds: {
@@ -75,7 +76,6 @@ export declare const actionCopyStyles: {
75
76
  [id: string]: boolean;
76
77
  };
77
78
  shouldCacheIgnoreZoom: boolean;
78
- showHelpDialog: boolean;
79
79
  zenModeEnabled: boolean;
80
80
  theme: string;
81
81
  gridSize: number | null;
@@ -2,6 +2,7 @@
2
2
  import { AppState } from "../types";
3
3
  export declare const actionToggleGridMode: {
4
4
  name: "gridMode";
5
+ viewMode: true;
5
6
  trackEvent: {
6
7
  category: "canvas";
7
8
  predicate: (appState: Readonly<AppState>) => boolean;
@@ -9,6 +10,7 @@ export declare const actionToggleGridMode: {
9
10
  perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>): {
10
11
  appState: {
11
12
  gridSize: number | null;
13
+ showWelcomeScreen: boolean;
12
14
  isLoading: boolean;
13
15
  errorMessage: string | null;
14
16
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -47,10 +49,9 @@ export declare const actionToggleGridMode: {
47
49
  currentItemFontFamily: number;
48
50
  currentItemFontSize: number;
49
51
  currentItemTextAlign: string;
50
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
51
52
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
52
53
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
53
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
54
+ currentItemRoundness: import("../element/types").StrokeRoundness;
54
55
  viewBackgroundColor: string;
55
56
  scrollX: number;
56
57
  scrollY: number;
@@ -65,6 +66,7 @@ export declare const actionToggleGridMode: {
65
66
  openMenu: "canvas" | "shape" | null;
66
67
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
67
68
  openSidebar: "library" | "customSidebar" | null;
69
+ openDialog: "imageExport" | "help" | null;
68
70
  isSidebarDocked: boolean;
69
71
  lastPointerDownWith: import("../element/types").PointerType;
70
72
  selectedElementIds: {
@@ -74,7 +76,6 @@ export declare const actionToggleGridMode: {
74
76
  [id: string]: boolean;
75
77
  };
76
78
  shouldCacheIgnoreZoom: boolean;
77
- showHelpDialog: boolean;
78
79
  toast: {
79
80
  message: string;
80
81
  closable?: boolean | undefined;