@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
@@ -8,7 +8,9 @@ export declare const actionChangeViewBackgroundColor: {
8
8
  appState: any;
9
9
  commitToHistory: boolean;
10
10
  };
11
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
12
+ isInHamburgerMenu: boolean;
13
+ }) => JSX.Element;
12
14
  } & {
13
15
  keyTest?: undefined;
14
16
  };
@@ -51,13 +53,9 @@ export declare const actionClearCanvas: {
51
53
  elementBackground?: string[] | undefined;
52
54
  elementStroke?: string[] | undefined;
53
55
  };
54
- scrollX: number;
55
- scrollY: number;
56
- viewBackgroundColor: string;
57
- zoom: Readonly<{
58
- value: NormalizedZoomValue;
59
- }>;
60
- shouldCacheIgnoreZoom: boolean;
56
+ trayModeEnabled: boolean;
57
+ name: string;
58
+ showWelcomeScreen: boolean;
61
59
  isLoading: boolean;
62
60
  errorMessage: string | null;
63
61
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -81,18 +79,23 @@ export declare const actionClearCanvas: {
81
79
  currentItemFontFamily: number;
82
80
  currentItemFontSize: number;
83
81
  currentItemTextAlign: string;
84
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
85
82
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
86
83
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
87
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
84
+ currentItemRoundness: import("../element/types").StrokeRoundness;
85
+ viewBackgroundColor: string;
86
+ scrollX: number;
87
+ scrollY: number;
88
88
  cursorButton: "up" | "down";
89
89
  scrolledOutside: boolean;
90
- name: string;
91
90
  isResizing: boolean;
92
91
  isRotating: boolean;
92
+ zoom: Readonly<{
93
+ value: NormalizedZoomValue;
94
+ }>;
93
95
  openMenu: "canvas" | "shape" | null;
94
96
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
95
97
  openSidebar: "library" | "customSidebar" | null;
98
+ openDialog: "imageExport" | "help" | null;
96
99
  isSidebarDocked: boolean;
97
100
  lastPointerDownWith: import("../element/types").PointerType;
98
101
  selectedElementIds: {
@@ -101,7 +104,7 @@ export declare const actionClearCanvas: {
101
104
  previousSelectedElementIds: {
102
105
  [id: string]: boolean;
103
106
  };
104
- showHelpDialog: boolean;
107
+ shouldCacheIgnoreZoom: boolean;
105
108
  toast: {
106
109
  message: string;
107
110
  closable?: boolean | undefined;
@@ -119,17 +122,19 @@ export declare const actionClearCanvas: {
119
122
  pendingImageElementId: string | null;
120
123
  showHyperlinkPopup: false | "info" | "editor";
121
124
  linkOpacity: number;
122
- trayModeEnabled: boolean;
123
125
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
124
126
  };
125
127
  commitToHistory: true;
126
128
  };
127
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
129
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
130
+ isInHamburgerMenu: boolean;
131
+ }) => JSX.Element;
128
132
  } & {
129
133
  keyTest?: undefined;
130
134
  };
131
135
  export declare const actionZoomIn: {
132
136
  name: "zoomIn";
137
+ viewMode: true;
133
138
  trackEvent: {
134
139
  category: "canvas";
135
140
  };
@@ -140,6 +145,7 @@ export declare const actionZoomIn: {
140
145
  zoom: {
141
146
  value: NormalizedZoomValue;
142
147
  };
148
+ showWelcomeScreen: boolean;
143
149
  isLoading: boolean;
144
150
  errorMessage: string | null;
145
151
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -178,10 +184,9 @@ export declare const actionZoomIn: {
178
184
  currentItemFontFamily: number;
179
185
  currentItemFontSize: number;
180
186
  currentItemTextAlign: string;
181
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
182
187
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
183
188
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
184
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
189
+ currentItemRoundness: import("../element/types").StrokeRoundness;
185
190
  viewBackgroundColor: string;
186
191
  cursorButton: "up" | "down";
187
192
  scrolledOutside: boolean;
@@ -191,6 +196,7 @@ export declare const actionZoomIn: {
191
196
  openMenu: "canvas" | "shape" | null;
192
197
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
193
198
  openSidebar: "library" | "customSidebar" | null;
199
+ openDialog: "imageExport" | "help" | null;
194
200
  isSidebarDocked: boolean;
195
201
  lastPointerDownWith: import("../element/types").PointerType;
196
202
  selectedElementIds: {
@@ -200,7 +206,6 @@ export declare const actionZoomIn: {
200
206
  [id: string]: boolean;
201
207
  };
202
208
  shouldCacheIgnoreZoom: boolean;
203
- showHelpDialog: boolean;
204
209
  toast: {
205
210
  message: string;
206
211
  closable?: boolean | undefined;
@@ -242,13 +247,16 @@ export declare const actionZoomIn: {
242
247
  };
243
248
  commitToHistory: false;
244
249
  };
245
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
250
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
251
+ isInHamburgerMenu: boolean;
252
+ }) => JSX.Element;
246
253
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
247
254
  } & {
248
255
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
249
256
  };
250
257
  export declare const actionZoomOut: {
251
258
  name: "zoomOut";
259
+ viewMode: true;
252
260
  trackEvent: {
253
261
  category: "canvas";
254
262
  };
@@ -259,6 +267,7 @@ export declare const actionZoomOut: {
259
267
  zoom: {
260
268
  value: NormalizedZoomValue;
261
269
  };
270
+ showWelcomeScreen: boolean;
262
271
  isLoading: boolean;
263
272
  errorMessage: string | null;
264
273
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -297,10 +306,9 @@ export declare const actionZoomOut: {
297
306
  currentItemFontFamily: number;
298
307
  currentItemFontSize: number;
299
308
  currentItemTextAlign: string;
300
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
301
309
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
302
310
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
303
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
311
+ currentItemRoundness: import("../element/types").StrokeRoundness;
304
312
  viewBackgroundColor: string;
305
313
  cursorButton: "up" | "down";
306
314
  scrolledOutside: boolean;
@@ -310,6 +318,7 @@ export declare const actionZoomOut: {
310
318
  openMenu: "canvas" | "shape" | null;
311
319
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
312
320
  openSidebar: "library" | "customSidebar" | null;
321
+ openDialog: "imageExport" | "help" | null;
313
322
  isSidebarDocked: boolean;
314
323
  lastPointerDownWith: import("../element/types").PointerType;
315
324
  selectedElementIds: {
@@ -319,7 +328,6 @@ export declare const actionZoomOut: {
319
328
  [id: string]: boolean;
320
329
  };
321
330
  shouldCacheIgnoreZoom: boolean;
322
- showHelpDialog: boolean;
323
331
  toast: {
324
332
  message: string;
325
333
  closable?: boolean | undefined;
@@ -361,13 +369,16 @@ export declare const actionZoomOut: {
361
369
  };
362
370
  commitToHistory: false;
363
371
  };
364
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
372
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
373
+ isInHamburgerMenu: boolean;
374
+ }) => JSX.Element;
365
375
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
366
376
  } & {
367
377
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
368
378
  };
369
379
  export declare const actionResetZoom: {
370
380
  name: "resetZoom";
381
+ viewMode: true;
371
382
  trackEvent: {
372
383
  category: "canvas";
373
384
  };
@@ -378,6 +389,7 @@ export declare const actionResetZoom: {
378
389
  zoom: {
379
390
  value: NormalizedZoomValue;
380
391
  };
392
+ showWelcomeScreen: boolean;
381
393
  isLoading: boolean;
382
394
  errorMessage: string | null;
383
395
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -416,10 +428,9 @@ export declare const actionResetZoom: {
416
428
  currentItemFontFamily: number;
417
429
  currentItemFontSize: number;
418
430
  currentItemTextAlign: string;
419
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
420
431
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
421
432
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
422
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
433
+ currentItemRoundness: import("../element/types").StrokeRoundness;
423
434
  viewBackgroundColor: string;
424
435
  cursorButton: "up" | "down";
425
436
  scrolledOutside: boolean;
@@ -429,6 +440,7 @@ export declare const actionResetZoom: {
429
440
  openMenu: "canvas" | "shape" | null;
430
441
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
431
442
  openSidebar: "library" | "customSidebar" | null;
443
+ openDialog: "imageExport" | "help" | null;
432
444
  isSidebarDocked: boolean;
433
445
  lastPointerDownWith: import("../element/types").PointerType;
434
446
  selectedElementIds: {
@@ -438,7 +450,6 @@ export declare const actionResetZoom: {
438
450
  [id: string]: boolean;
439
451
  };
440
452
  shouldCacheIgnoreZoom: boolean;
441
- showHelpDialog: boolean;
442
453
  toast: {
443
454
  message: string;
444
455
  closable?: boolean | undefined;
@@ -480,7 +491,9 @@ export declare const actionResetZoom: {
480
491
  };
481
492
  commitToHistory: false;
482
493
  };
483
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
494
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps & {
495
+ isInHamburgerMenu: boolean;
496
+ }) => JSX.Element;
484
497
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
485
498
  } & {
486
499
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -492,6 +505,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
492
505
  };
493
506
  scrollX: number;
494
507
  scrollY: number;
508
+ showWelcomeScreen: boolean;
495
509
  isLoading: boolean;
496
510
  errorMessage: string | null;
497
511
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -530,10 +544,9 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
530
544
  currentItemFontFamily: number;
531
545
  currentItemFontSize: number;
532
546
  currentItemTextAlign: string;
533
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
534
547
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
535
548
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
536
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
549
+ currentItemRoundness: import("../element/types").StrokeRoundness;
537
550
  viewBackgroundColor: string;
538
551
  cursorButton: "up" | "down";
539
552
  scrolledOutside: boolean;
@@ -543,6 +556,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
543
556
  openMenu: "canvas" | "shape" | null;
544
557
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
545
558
  openSidebar: "library" | "customSidebar" | null;
559
+ openDialog: "imageExport" | "help" | null;
546
560
  isSidebarDocked: boolean;
547
561
  lastPointerDownWith: import("../element/types").PointerType;
548
562
  selectedElementIds: {
@@ -552,7 +566,6 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
552
566
  [id: string]: boolean;
553
567
  };
554
568
  shouldCacheIgnoreZoom: boolean;
555
- showHelpDialog: boolean;
556
569
  toast: {
557
570
  message: string;
558
571
  closable?: boolean | undefined;
@@ -606,6 +619,7 @@ export declare const actionZoomToSelected: {
606
619
  };
607
620
  scrollX: number;
608
621
  scrollY: number;
622
+ showWelcomeScreen: boolean;
609
623
  isLoading: boolean;
610
624
  errorMessage: string | null;
611
625
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -644,10 +658,9 @@ export declare const actionZoomToSelected: {
644
658
  currentItemFontFamily: number;
645
659
  currentItemFontSize: number;
646
660
  currentItemTextAlign: string;
647
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
648
661
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
649
662
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
650
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
663
+ currentItemRoundness: import("../element/types").StrokeRoundness;
651
664
  viewBackgroundColor: string;
652
665
  cursorButton: "up" | "down";
653
666
  scrolledOutside: boolean;
@@ -657,6 +670,7 @@ export declare const actionZoomToSelected: {
657
670
  openMenu: "canvas" | "shape" | null;
658
671
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
659
672
  openSidebar: "library" | "customSidebar" | null;
673
+ openDialog: "imageExport" | "help" | null;
660
674
  isSidebarDocked: boolean;
661
675
  lastPointerDownWith: import("../element/types").PointerType;
662
676
  selectedElementIds: {
@@ -666,7 +680,6 @@ export declare const actionZoomToSelected: {
666
680
  [id: string]: boolean;
667
681
  };
668
682
  shouldCacheIgnoreZoom: boolean;
669
- showHelpDialog: boolean;
670
683
  toast: {
671
684
  message: string;
672
685
  closable?: boolean | undefined;
@@ -714,6 +727,7 @@ export declare const actionZoomToSelected: {
714
727
  };
715
728
  export declare const actionZoomToFit: {
716
729
  name: "zoomToFit";
730
+ viewMode: true;
717
731
  trackEvent: {
718
732
  category: "canvas";
719
733
  };
@@ -724,6 +738,7 @@ export declare const actionZoomToFit: {
724
738
  };
725
739
  scrollX: number;
726
740
  scrollY: number;
741
+ showWelcomeScreen: boolean;
727
742
  isLoading: boolean;
728
743
  errorMessage: string | null;
729
744
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -762,10 +777,9 @@ export declare const actionZoomToFit: {
762
777
  currentItemFontFamily: number;
763
778
  currentItemFontSize: number;
764
779
  currentItemTextAlign: string;
765
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
766
780
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
767
781
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
768
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
782
+ currentItemRoundness: import("../element/types").StrokeRoundness;
769
783
  viewBackgroundColor: string;
770
784
  cursorButton: "up" | "down";
771
785
  scrolledOutside: boolean;
@@ -775,6 +789,7 @@ export declare const actionZoomToFit: {
775
789
  openMenu: "canvas" | "shape" | null;
776
790
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
777
791
  openSidebar: "library" | "customSidebar" | null;
792
+ openDialog: "imageExport" | "help" | null;
778
793
  isSidebarDocked: boolean;
779
794
  lastPointerDownWith: import("../element/types").PointerType;
780
795
  selectedElementIds: {
@@ -784,7 +799,6 @@ export declare const actionZoomToFit: {
784
799
  [id: string]: boolean;
785
800
  };
786
801
  shouldCacheIgnoreZoom: boolean;
787
- showHelpDialog: boolean;
788
802
  toast: {
789
803
  message: string;
790
804
  closable?: boolean | undefined;
@@ -832,12 +846,14 @@ export declare const actionZoomToFit: {
832
846
  };
833
847
  export declare const actionToggleTheme: {
834
848
  name: "toggleTheme";
849
+ viewMode: true;
835
850
  trackEvent: {
836
851
  category: "canvas";
837
852
  };
838
853
  perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../types").AppClassProperties) => {
839
854
  appState: {
840
855
  theme: any;
856
+ showWelcomeScreen: boolean;
841
857
  isLoading: boolean;
842
858
  errorMessage: string | null;
843
859
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -876,10 +892,9 @@ export declare const actionToggleTheme: {
876
892
  currentItemFontFamily: number;
877
893
  currentItemFontSize: number;
878
894
  currentItemTextAlign: string;
879
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
880
895
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
881
896
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
882
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
897
+ currentItemRoundness: import("../element/types").StrokeRoundness;
883
898
  viewBackgroundColor: string;
884
899
  scrollX: number;
885
900
  scrollY: number;
@@ -894,6 +909,7 @@ export declare const actionToggleTheme: {
894
909
  openMenu: "canvas" | "shape" | null;
895
910
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
896
911
  openSidebar: "library" | "customSidebar" | null;
912
+ openDialog: "imageExport" | "help" | null;
897
913
  isSidebarDocked: boolean;
898
914
  lastPointerDownWith: import("../element/types").PointerType;
899
915
  selectedElementIds: {
@@ -903,7 +919,6 @@ export declare const actionToggleTheme: {
903
919
  [id: string]: boolean;
904
920
  };
905
921
  shouldCacheIgnoreZoom: boolean;
906
- showHelpDialog: boolean;
907
922
  toast: {
908
923
  message: string;
909
924
  closable?: boolean | undefined;
@@ -944,7 +959,9 @@ export declare const actionToggleTheme: {
944
959
  };
945
960
  commitToHistory: false;
946
961
  };
947
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
962
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
963
+ isInHamburgerMenu: boolean;
964
+ }) => JSX.Element;
948
965
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
949
966
  } & {
950
967
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -969,6 +986,7 @@ export declare const actionErase: {
969
986
  lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
970
987
  locked: boolean;
971
988
  };
989
+ showWelcomeScreen: boolean;
972
990
  isLoading: boolean;
973
991
  errorMessage: string | null;
974
992
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -996,10 +1014,9 @@ export declare const actionErase: {
996
1014
  currentItemFontFamily: number;
997
1015
  currentItemFontSize: number;
998
1016
  currentItemTextAlign: string;
999
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1000
1017
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1001
1018
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1002
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1019
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1003
1020
  viewBackgroundColor: string;
1004
1021
  scrollX: number;
1005
1022
  scrollY: number;
@@ -1014,13 +1031,13 @@ export declare const actionErase: {
1014
1031
  openMenu: "canvas" | "shape" | null;
1015
1032
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1016
1033
  openSidebar: "library" | "customSidebar" | null;
1034
+ openDialog: "imageExport" | "help" | null;
1017
1035
  isSidebarDocked: boolean;
1018
1036
  lastPointerDownWith: import("../element/types").PointerType;
1019
1037
  previousSelectedElementIds: {
1020
1038
  [id: string]: boolean;
1021
1039
  };
1022
1040
  shouldCacheIgnoreZoom: boolean;
1023
- showHelpDialog: boolean;
1024
1041
  toast: {
1025
1042
  message: string;
1026
1043
  closable?: boolean | undefined;
@@ -1060,7 +1077,9 @@ export declare const actionErase: {
1060
1077
  commitToHistory: true;
1061
1078
  };
1062
1079
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1063
- PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
1080
+ PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps & {
1081
+ isInHamburgerMenu: boolean;
1082
+ }) => JSX.Element;
1064
1083
  } & {
1065
1084
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1066
1085
  };
@@ -21,6 +21,7 @@ export declare const actionCut: {
21
21
  elements: import("../element/types").ExcalidrawElement[];
22
22
  appState: {
23
23
  editingLinearElement: null;
24
+ showWelcomeScreen: boolean;
24
25
  isLoading: boolean;
25
26
  errorMessage: string | null;
26
27
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -58,10 +59,9 @@ export declare const actionCut: {
58
59
  currentItemFontFamily: number;
59
60
  currentItemFontSize: number;
60
61
  currentItemTextAlign: string;
61
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
62
62
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
63
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
64
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
64
+ currentItemRoundness: import("../element/types").StrokeRoundness;
65
65
  viewBackgroundColor: string;
66
66
  scrollX: number;
67
67
  scrollY: number;
@@ -76,6 +76,7 @@ export declare const actionCut: {
76
76
  openMenu: "canvas" | "shape" | null;
77
77
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
78
78
  openSidebar: "library" | "customSidebar" | null;
79
+ openDialog: "imageExport" | "help" | null;
79
80
  isSidebarDocked: boolean;
80
81
  lastPointerDownWith: import("../element/types").PointerType;
81
82
  selectedElementIds: {
@@ -85,7 +86,6 @@ export declare const actionCut: {
85
86
  [id: string]: boolean;
86
87
  };
87
88
  shouldCacheIgnoreZoom: boolean;
88
- showHelpDialog: boolean;
89
89
  toast: {
90
90
  message: string;
91
91
  closable?: boolean | undefined;
@@ -139,6 +139,15 @@ export declare const actionCut: {
139
139
  pointerDownState: Readonly<{
140
140
  prevSelectedPointsIndices: readonly number[] | null;
141
141
  lastClickedPoint: number;
142
+ origin: Readonly<{
143
+ x: number;
144
+ y: number;
145
+ }> | null;
146
+ segmentMidpoint: {
147
+ value: readonly [number, number] | null;
148
+ index: number | null;
149
+ added: boolean;
150
+ };
142
151
  }>;
143
152
  isDragging: boolean;
144
153
  lastUncommittedPoint: readonly [number, number] | null;
@@ -149,6 +158,7 @@ export declare const actionCut: {
149
158
  hoverPointIndex: number;
150
159
  segmentMidPointHoveredCoords: readonly [number, number] | null;
151
160
  };
161
+ showWelcomeScreen: boolean;
152
162
  isLoading: boolean;
153
163
  errorMessage: string | null;
154
164
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -186,10 +196,9 @@ export declare const actionCut: {
186
196
  currentItemFontFamily: number;
187
197
  currentItemFontSize: number;
188
198
  currentItemTextAlign: string;
189
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
190
199
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
191
200
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
192
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
201
+ currentItemRoundness: import("../element/types").StrokeRoundness;
193
202
  viewBackgroundColor: string;
194
203
  scrollX: number;
195
204
  scrollY: number;
@@ -204,6 +213,7 @@ export declare const actionCut: {
204
213
  openMenu: "canvas" | "shape" | null;
205
214
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
206
215
  openSidebar: "library" | "customSidebar" | null;
216
+ openDialog: "imageExport" | "help" | null;
207
217
  isSidebarDocked: boolean;
208
218
  lastPointerDownWith: import("../element/types").PointerType;
209
219
  selectedElementIds: {
@@ -213,7 +223,6 @@ export declare const actionCut: {
213
223
  [id: string]: boolean;
214
224
  };
215
225
  shouldCacheIgnoreZoom: boolean;
216
- showHelpDialog: boolean;
217
226
  toast: {
218
227
  message: string;
219
228
  closable?: boolean | undefined;
@@ -270,6 +279,7 @@ export declare const actionCut: {
270
279
  };
271
280
  multiElement: null;
272
281
  selectedElementIds: {};
282
+ showWelcomeScreen: boolean;
273
283
  isLoading: boolean;
274
284
  errorMessage: string | null;
275
285
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -296,10 +306,9 @@ export declare const actionCut: {
296
306
  currentItemFontFamily: number;
297
307
  currentItemFontSize: number;
298
308
  currentItemTextAlign: string;
299
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
300
309
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
301
310
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
302
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
311
+ currentItemRoundness: import("../element/types").StrokeRoundness;
303
312
  viewBackgroundColor: string;
304
313
  scrollX: number;
305
314
  scrollY: number;
@@ -314,13 +323,13 @@ export declare const actionCut: {
314
323
  openMenu: "canvas" | "shape" | null;
315
324
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
316
325
  openSidebar: "library" | "customSidebar" | null;
326
+ openDialog: "imageExport" | "help" | null;
317
327
  isSidebarDocked: boolean;
318
328
  lastPointerDownWith: import("../element/types").PointerType;
319
329
  previousSelectedElementIds: {
320
330
  [id: string]: boolean;
321
331
  };
322
332
  shouldCacheIgnoreZoom: boolean;
323
- showHelpDialog: boolean;
324
333
  toast: {
325
334
  message: string;
326
335
  closable?: boolean | undefined;
@@ -378,6 +387,7 @@ export declare const actionCopyAsSvg: {
378
387
  } | {
379
388
  appState: {
380
389
  errorMessage: any;
390
+ showWelcomeScreen: boolean;
381
391
  isLoading: boolean;
382
392
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
383
393
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -415,10 +425,9 @@ export declare const actionCopyAsSvg: {
415
425
  currentItemFontFamily: number;
416
426
  currentItemFontSize: number;
417
427
  currentItemTextAlign: string;
418
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
419
428
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
420
429
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
421
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
430
+ currentItemRoundness: import("../element/types").StrokeRoundness;
422
431
  viewBackgroundColor: string;
423
432
  scrollX: number;
424
433
  scrollY: number;
@@ -433,6 +442,7 @@ export declare const actionCopyAsSvg: {
433
442
  openMenu: "canvas" | "shape" | null;
434
443
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
435
444
  openSidebar: "library" | "customSidebar" | null;
445
+ openDialog: "imageExport" | "help" | null;
436
446
  isSidebarDocked: boolean;
437
447
  lastPointerDownWith: import("../element/types").PointerType;
438
448
  selectedElementIds: {
@@ -442,7 +452,6 @@ export declare const actionCopyAsSvg: {
442
452
  [id: string]: boolean;
443
453
  };
444
454
  shouldCacheIgnoreZoom: boolean;
445
- showHelpDialog: boolean;
446
455
  toast: {
447
456
  message: string;
448
457
  closable?: boolean | undefined;
@@ -499,6 +508,7 @@ export declare const actionCopyAsPng: {
499
508
  } | {
500
509
  appState: {
501
510
  errorMessage: any;
511
+ showWelcomeScreen: boolean;
502
512
  isLoading: boolean;
503
513
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
504
514
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -536,10 +546,9 @@ export declare const actionCopyAsPng: {
536
546
  currentItemFontFamily: number;
537
547
  currentItemFontSize: number;
538
548
  currentItemTextAlign: string;
539
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
540
549
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
541
550
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
542
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
551
+ currentItemRoundness: import("../element/types").StrokeRoundness;
543
552
  viewBackgroundColor: string;
544
553
  scrollX: number;
545
554
  scrollY: number;
@@ -554,6 +563,7 @@ export declare const actionCopyAsPng: {
554
563
  openMenu: "canvas" | "shape" | null;
555
564
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
556
565
  openSidebar: "library" | "customSidebar" | null;
566
+ openDialog: "imageExport" | "help" | null;
557
567
  isSidebarDocked: boolean;
558
568
  lastPointerDownWith: import("../element/types").PointerType;
559
569
  selectedElementIds: {
@@ -563,7 +573,6 @@ export declare const actionCopyAsPng: {
563
573
  [id: string]: boolean;
564
574
  };
565
575
  shouldCacheIgnoreZoom: boolean;
566
- showHelpDialog: boolean;
567
576
  toast: {
568
577
  message: string;
569
578
  closable?: boolean | undefined;