@zsviczian/excalidraw 0.18.0-23 → 0.18.0-25

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 (68) hide show
  1. package/dist/excalidraw.development.js +25 -25
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/common/src/constants.d.ts +1 -1
  5. package/types/common/src/points.d.ts +1 -1
  6. package/types/common/src/utils.d.ts +2 -2
  7. package/types/element/src/Scene.d.ts +1 -1
  8. package/types/element/src/binding.d.ts +4 -0
  9. package/types/element/src/bounds.d.ts +3 -1
  10. package/types/element/src/elbowArrow.d.ts +1 -1
  11. package/types/element/src/frame.d.ts +2 -2
  12. package/types/element/src/heading.d.ts +2 -2
  13. package/types/element/src/linearElementEditor.d.ts +1 -4
  14. package/types/element/src/resizeTest.d.ts +2 -2
  15. package/types/element/src/selection.d.ts +1 -1
  16. package/types/element/src/shape.d.ts +2 -2
  17. package/types/element/src/store.d.ts +1 -1
  18. package/types/element/src/transformHandles.d.ts +4 -4
  19. package/types/element/src/utils.d.ts +11 -5
  20. package/types/excalidraw/actions/actionAddToLibrary.d.ts +6 -6
  21. package/types/excalidraw/actions/actionAlign.d.ts +8 -8
  22. package/types/excalidraw/actions/actionBoundText.d.ts +4 -4
  23. package/types/excalidraw/actions/actionCanvas.d.ts +137 -137
  24. package/types/excalidraw/actions/actionClipboard.d.ts +17 -17
  25. package/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
  26. package/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -9
  27. package/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  28. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  29. package/types/excalidraw/actions/actionElementLink.d.ts +2 -2
  30. package/types/excalidraw/actions/actionElementLock.d.ts +6 -6
  31. package/types/excalidraw/actions/actionEmbeddable.d.ts +2 -2
  32. package/types/excalidraw/actions/actionExport.d.ts +121 -121
  33. package/types/excalidraw/actions/actionFinalize.d.ts +8 -8
  34. package/types/excalidraw/actions/actionFlip.d.ts +4 -4
  35. package/types/excalidraw/actions/actionFrame.d.ts +61 -61
  36. package/types/excalidraw/actions/actionGroup.d.ts +10 -10
  37. package/types/excalidraw/actions/actionLinearEditor.d.ts +53 -53
  38. package/types/excalidraw/actions/actionLink.d.ts +3 -3
  39. package/types/excalidraw/actions/actionMenu.d.ts +8 -8
  40. package/types/excalidraw/actions/actionNavigate.d.ts +4 -4
  41. package/types/excalidraw/actions/actionProperties.d.ts +33 -33
  42. package/types/excalidraw/actions/actionSelectAll.d.ts +5 -5
  43. package/types/excalidraw/actions/actionStyles.d.ts +6 -6
  44. package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -4
  45. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
  46. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -4
  47. package/types/excalidraw/actions/actionToggleStats.d.ts +4 -4
  48. package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
  49. package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
  50. package/types/excalidraw/actions/actionZindex.d.ts +8 -8
  51. package/types/excalidraw/appState.d.ts +21 -21
  52. package/types/excalidraw/components/App.d.ts +8 -4
  53. package/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  54. package/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  55. package/types/excalidraw/components/shapes.d.ts +1 -1
  56. package/types/excalidraw/data/blob.d.ts +1 -1
  57. package/types/excalidraw/data/library.d.ts +1 -1
  58. package/types/excalidraw/index.d.ts +1 -0
  59. package/types/math/src/angle.d.ts +1 -1
  60. package/types/math/src/curve.d.ts +1 -1
  61. package/types/math/src/ellipse.d.ts +3 -3
  62. package/types/math/src/point.d.ts +2 -2
  63. package/types/math/src/polygon.d.ts +2 -2
  64. package/types/math/src/rectangle.d.ts +2 -0
  65. package/types/math/src/segment.d.ts +5 -5
  66. package/types/math/src/utils.d.ts +0 -2
  67. package/types/utils/src/shape.d.ts +12 -12
  68. package/types/excalidraw/visualdebug.d.ts +0 -41
@@ -65,70 +65,25 @@ export declare const actionClearCanvas: {
65
65
  allowWheelZoom: boolean | undefined;
66
66
  pinnedScripts: string[] | undefined;
67
67
  customPens: any[] | undefined;
68
- contextMenu: {
69
- items: import("../components/ContextMenu").ContextMenuItems;
70
- top: number;
71
- left: number;
72
- } | null;
73
- exportWithDarkMode: boolean;
74
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
75
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
76
- cursorButton: "up" | "down";
77
- scrollX: number;
78
- scrollY: number;
79
- showWelcomeScreen: boolean;
80
- isLoading: boolean;
81
- errorMessage: import("react").ReactNode;
82
- activeEmbeddable: {
83
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
84
- state: "active" | "hover";
85
- } | null;
86
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
87
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
88
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
89
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
90
- isBindingEnabled: boolean;
91
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
68
+ viewBackgroundColor: string;
92
69
  frameRendering: {
93
70
  enabled: boolean;
94
71
  name: boolean;
95
72
  outline: boolean;
96
73
  clip: boolean;
97
74
  };
98
- editingFrame: string | null;
99
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
100
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
101
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
102
- exportScale: number;
103
- currentItemStrokeColor: string;
104
- currentItemBackgroundColor: string;
105
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
106
- currentItemStrokeWidth: number;
107
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
108
- currentItemRoughness: number;
109
- currentItemOpacity: number;
110
- currentItemFontFamily: number;
111
- currentItemFontSize: number;
112
- currentItemTextAlign: string;
113
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
114
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
115
- currentHoveredFontFamily: number | null;
116
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
117
- currentItemArrowType: "sharp" | "round" | "elbow";
118
- viewBackgroundColor: string;
119
- scrolledOutside: boolean;
75
+ frameColor: {
76
+ stroke: string;
77
+ fill: string;
78
+ nameColor: string;
79
+ };
120
80
  name: string | null;
121
- isResizing: boolean;
122
- isRotating: boolean;
123
81
  zoom: Readonly<{
124
82
  value: import("../types").NormalizedZoomValue;
125
83
  }>;
126
- openMenu: "canvas" | "shape" | null;
127
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
128
- openSidebar: {
129
- name: string;
130
- tab?: string | undefined;
131
- } | null;
84
+ scrollX: number;
85
+ scrollY: number;
86
+ viewModeEnabled: boolean;
132
87
  openDialog: {
133
88
  name: "help" | "imageExport" | "jsonExport";
134
89
  } | {
@@ -140,31 +95,26 @@ export declare const actionClearCanvas: {
140
95
  name: "elementLinkSelector";
141
96
  sourceElementId: string;
142
97
  } | null;
143
- defaultSidebarDockedPreference: boolean;
144
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
+ editingGroupId: string | null;
145
99
  selectedElementIds: Readonly<{
146
100
  [id: string]: true;
147
101
  }>;
148
- hoveredElementIds: Readonly<{
149
- [id: string]: true;
150
- }>;
151
- previousSelectedElementIds: {
152
- [id: string]: true;
153
- };
154
- selectedElementsAreBeingDragged: boolean;
155
- shouldCacheIgnoreZoom: boolean;
156
- toast: {
157
- message: string;
158
- closable?: boolean | undefined;
159
- duration?: number | undefined;
102
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
103
+ activeEmbeddable: {
104
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
105
+ state: "active" | "hover";
160
106
  } | null;
161
- zenModeEnabled: boolean;
162
- viewModeEnabled: boolean;
107
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
108
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
163
109
  selectedGroupIds: {
164
110
  [groupId: string]: boolean;
165
111
  };
166
- editingGroupId: string | null;
167
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
112
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
113
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
114
+ isBindingEnabled: boolean;
115
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
116
+ isRotating: boolean;
117
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
168
118
  collaborators: Map<import("../types").SocketId, Readonly<{
169
119
  pointer?: import("../types").CollaboratorPointer | undefined;
170
120
  button?: "up" | "down" | undefined;
@@ -185,11 +135,9 @@ export declare const actionClearCanvas: {
185
135
  isSpeaking?: boolean | undefined;
186
136
  isMuted?: boolean | undefined;
187
137
  }>>;
188
- currentChartType: import("@excalidraw/element/types").ChartType;
189
- showHyperlinkPopup: false | "info" | "editor";
190
- linkOpacity: number;
191
- currentStrokeOptions?: any;
192
- resetCustomPen?: any;
138
+ snapLines: readonly import("../snapping").SnapLine[];
139
+ zenModeEnabled: boolean;
140
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
193
141
  gridColor: {
194
142
  Bold: string;
195
143
  Regular: string;
@@ -199,17 +147,76 @@ export declare const actionClearCanvas: {
199
147
  vertical: boolean;
200
148
  };
201
149
  highlightSearchResult: boolean;
150
+ isCropping: boolean;
151
+ croppingElementId: string | null;
152
+ searchMatches: Readonly<{
153
+ focusedId: string | null;
154
+ matches: readonly import("../types").SearchMatch[];
155
+ }> | null;
156
+ activeLockedId: string | null;
157
+ contextMenu: {
158
+ items: import("../components/ContextMenu").ContextMenuItems;
159
+ top: number;
160
+ left: number;
161
+ } | null;
162
+ showWelcomeScreen: boolean;
163
+ isLoading: boolean;
164
+ errorMessage: import("react").ReactNode;
165
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
166
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
167
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
168
+ editingFrame: string | null;
169
+ exportWithDarkMode: boolean;
170
+ exportScale: number;
171
+ currentItemStrokeColor: string;
172
+ currentItemBackgroundColor: string;
173
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
174
+ currentItemStrokeWidth: number;
175
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
176
+ currentItemRoughness: number;
177
+ currentItemOpacity: number;
178
+ currentItemFontFamily: number;
179
+ currentItemFontSize: number;
180
+ currentItemTextAlign: string;
181
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
182
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
183
+ currentHoveredFontFamily: number | null;
184
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
185
+ currentItemArrowType: "round" | "sharp" | "elbow";
186
+ cursorButton: "up" | "down";
187
+ scrolledOutside: boolean;
188
+ isResizing: boolean;
189
+ openMenu: "canvas" | "shape" | null;
190
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
191
+ openSidebar: {
192
+ name: string;
193
+ tab?: string | undefined;
194
+ } | null;
195
+ defaultSidebarDockedPreference: boolean;
196
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
197
+ hoveredElementIds: Readonly<{
198
+ [id: string]: true;
199
+ }>;
200
+ previousSelectedElementIds: {
201
+ [id: string]: true;
202
+ };
203
+ selectedElementsAreBeingDragged: boolean;
204
+ shouldCacheIgnoreZoom: boolean;
205
+ toast: {
206
+ message: string;
207
+ closable?: boolean | undefined;
208
+ duration?: number | undefined;
209
+ } | null;
210
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
211
+ currentChartType: import("@excalidraw/element/types").ChartType;
212
+ showHyperlinkPopup: false | "editor" | "info";
213
+ linkOpacity: number;
214
+ currentStrokeOptions?: any;
215
+ resetCustomPen?: any;
202
216
  dynamicStyle: {
203
217
  [x: string]: string;
204
218
  };
205
- frameColor: {
206
- stroke: string;
207
- fill: string;
208
- nameColor: string;
209
- };
210
219
  invertBindingBehaviour: boolean;
211
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
212
- snapLines: readonly import("../snapping").SnapLine[];
213
220
  originSnapOffset: {
214
221
  x: number;
215
222
  y: number;
@@ -217,13 +224,6 @@ export declare const actionClearCanvas: {
217
224
  objectsSnapModeEnabled: boolean;
218
225
  userToFollow: import("../types").UserToFollow | null;
219
226
  followedBy: Set<import("../types").SocketId>;
220
- isCropping: boolean;
221
- croppingElementId: string | null;
222
- searchMatches: Readonly<{
223
- focusedId: string | null;
224
- matches: readonly import("../types").SearchMatch[];
225
- }> | null;
226
- activeLockedId: string | null;
227
227
  lockedMultiSelections: {
228
228
  [groupId: string]: true;
229
229
  };
@@ -304,7 +304,7 @@ export declare const actionZoomIn: {
304
304
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
305
305
  currentHoveredFontFamily: number | null;
306
306
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
307
- currentItemArrowType: "sharp" | "round" | "elbow";
307
+ currentItemArrowType: "round" | "sharp" | "elbow";
308
308
  viewBackgroundColor: string;
309
309
  cursorButton: "up" | "down";
310
310
  scrolledOutside: boolean;
@@ -393,7 +393,7 @@ export declare const actionZoomIn: {
393
393
  shown: true;
394
394
  data: import("../charts").Spreadsheet;
395
395
  };
396
- showHyperlinkPopup: false | "info" | "editor";
396
+ showHyperlinkPopup: false | "editor" | "info";
397
397
  linkOpacity: number;
398
398
  trayModeEnabled: boolean;
399
399
  colorPalette?: {
@@ -452,9 +452,9 @@ export declare const actionZoomIn: {
452
452
  captureUpdate: "EVENTUALLY";
453
453
  };
454
454
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
455
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
455
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
456
456
  } & {
457
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
457
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
458
458
  };
459
459
  export declare const actionZoomOut: {
460
460
  name: "zoomOut";
@@ -527,7 +527,7 @@ export declare const actionZoomOut: {
527
527
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
528
528
  currentHoveredFontFamily: number | null;
529
529
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
530
- currentItemArrowType: "sharp" | "round" | "elbow";
530
+ currentItemArrowType: "round" | "sharp" | "elbow";
531
531
  viewBackgroundColor: string;
532
532
  cursorButton: "up" | "down";
533
533
  scrolledOutside: boolean;
@@ -616,7 +616,7 @@ export declare const actionZoomOut: {
616
616
  shown: true;
617
617
  data: import("../charts").Spreadsheet;
618
618
  };
619
- showHyperlinkPopup: false | "info" | "editor";
619
+ showHyperlinkPopup: false | "editor" | "info";
620
620
  linkOpacity: number;
621
621
  trayModeEnabled: boolean;
622
622
  colorPalette?: {
@@ -675,9 +675,9 @@ export declare const actionZoomOut: {
675
675
  captureUpdate: "EVENTUALLY";
676
676
  };
677
677
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
678
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
678
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
679
679
  } & {
680
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
680
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
681
681
  };
682
682
  export declare const actionResetZoom: {
683
683
  name: "resetZoom";
@@ -750,7 +750,7 @@ export declare const actionResetZoom: {
750
750
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
751
751
  currentHoveredFontFamily: number | null;
752
752
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
753
- currentItemArrowType: "sharp" | "round" | "elbow";
753
+ currentItemArrowType: "round" | "sharp" | "elbow";
754
754
  viewBackgroundColor: string;
755
755
  cursorButton: "up" | "down";
756
756
  scrolledOutside: boolean;
@@ -839,7 +839,7 @@ export declare const actionResetZoom: {
839
839
  shown: true;
840
840
  data: import("../charts").Spreadsheet;
841
841
  };
842
- showHyperlinkPopup: false | "info" | "editor";
842
+ showHyperlinkPopup: false | "editor" | "info";
843
843
  linkOpacity: number;
844
844
  trayModeEnabled: boolean;
845
845
  colorPalette?: {
@@ -898,9 +898,9 @@ export declare const actionResetZoom: {
898
898
  captureUpdate: "EVENTUALLY";
899
899
  };
900
900
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
901
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
901
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
902
902
  } & {
903
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
903
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
904
904
  };
905
905
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
906
906
  bounds: SceneBounds;
@@ -979,7 +979,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
979
979
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
980
980
  currentHoveredFontFamily: number | null;
981
981
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
982
- currentItemArrowType: "sharp" | "round" | "elbow";
982
+ currentItemArrowType: "round" | "sharp" | "elbow";
983
983
  viewBackgroundColor: string;
984
984
  cursorButton: "up" | "down";
985
985
  scrolledOutside: boolean;
@@ -1068,7 +1068,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1068
1068
  shown: true;
1069
1069
  data: import("../charts").Spreadsheet;
1070
1070
  };
1071
- showHyperlinkPopup: false | "info" | "editor";
1071
+ showHyperlinkPopup: false | "editor" | "info";
1072
1072
  linkOpacity: number;
1073
1073
  trayModeEnabled: boolean;
1074
1074
  colorPalette?: {
@@ -1204,7 +1204,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1204
1204
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1205
1205
  currentHoveredFontFamily: number | null;
1206
1206
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1207
- currentItemArrowType: "sharp" | "round" | "elbow";
1207
+ currentItemArrowType: "round" | "sharp" | "elbow";
1208
1208
  viewBackgroundColor: string;
1209
1209
  cursorButton: "up" | "down";
1210
1210
  scrolledOutside: boolean;
@@ -1293,7 +1293,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1293
1293
  shown: true;
1294
1294
  data: import("../charts").Spreadsheet;
1295
1295
  };
1296
- showHyperlinkPopup: false | "info" | "editor";
1296
+ showHyperlinkPopup: false | "editor" | "info";
1297
1297
  linkOpacity: number;
1298
1298
  trayModeEnabled: boolean;
1299
1299
  colorPalette?: {
@@ -1421,7 +1421,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1421
1421
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1422
1422
  currentHoveredFontFamily: number | null;
1423
1423
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1424
- currentItemArrowType: "sharp" | "round" | "elbow";
1424
+ currentItemArrowType: "round" | "sharp" | "elbow";
1425
1425
  viewBackgroundColor: string;
1426
1426
  cursorButton: "up" | "down";
1427
1427
  scrolledOutside: boolean;
@@ -1510,7 +1510,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1510
1510
  shown: true;
1511
1511
  data: import("../charts").Spreadsheet;
1512
1512
  };
1513
- showHyperlinkPopup: false | "info" | "editor";
1513
+ showHyperlinkPopup: false | "editor" | "info";
1514
1514
  linkOpacity: number;
1515
1515
  trayModeEnabled: boolean;
1516
1516
  colorPalette?: {
@@ -1569,9 +1569,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1569
1569
  };
1570
1570
  captureUpdate: "EVENTUALLY";
1571
1571
  };
1572
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1572
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1573
1573
  } & {
1574
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1574
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1575
1575
  };
1576
1576
  export declare const actionZoomToFitSelection: {
1577
1577
  name: "zoomToFitSelection";
@@ -1642,7 +1642,7 @@ export declare const actionZoomToFitSelection: {
1642
1642
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1643
1643
  currentHoveredFontFamily: number | null;
1644
1644
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1645
- currentItemArrowType: "sharp" | "round" | "elbow";
1645
+ currentItemArrowType: "round" | "sharp" | "elbow";
1646
1646
  viewBackgroundColor: string;
1647
1647
  cursorButton: "up" | "down";
1648
1648
  scrolledOutside: boolean;
@@ -1731,7 +1731,7 @@ export declare const actionZoomToFitSelection: {
1731
1731
  shown: true;
1732
1732
  data: import("../charts").Spreadsheet;
1733
1733
  };
1734
- showHyperlinkPopup: false | "info" | "editor";
1734
+ showHyperlinkPopup: false | "editor" | "info";
1735
1735
  linkOpacity: number;
1736
1736
  trayModeEnabled: boolean;
1737
1737
  colorPalette?: {
@@ -1790,9 +1790,9 @@ export declare const actionZoomToFitSelection: {
1790
1790
  };
1791
1791
  captureUpdate: "EVENTUALLY";
1792
1792
  };
1793
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1793
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1794
1794
  } & {
1795
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1795
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1796
1796
  };
1797
1797
  export declare const actionZoomToFit: {
1798
1798
  name: "zoomToFit";
@@ -1864,7 +1864,7 @@ export declare const actionZoomToFit: {
1864
1864
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1865
1865
  currentHoveredFontFamily: number | null;
1866
1866
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1867
- currentItemArrowType: "sharp" | "round" | "elbow";
1867
+ currentItemArrowType: "round" | "sharp" | "elbow";
1868
1868
  viewBackgroundColor: string;
1869
1869
  cursorButton: "up" | "down";
1870
1870
  scrolledOutside: boolean;
@@ -1953,7 +1953,7 @@ export declare const actionZoomToFit: {
1953
1953
  shown: true;
1954
1954
  data: import("../charts").Spreadsheet;
1955
1955
  };
1956
- showHyperlinkPopup: false | "info" | "editor";
1956
+ showHyperlinkPopup: false | "editor" | "info";
1957
1957
  linkOpacity: number;
1958
1958
  trayModeEnabled: boolean;
1959
1959
  colorPalette?: {
@@ -2012,9 +2012,9 @@ export declare const actionZoomToFit: {
2012
2012
  };
2013
2013
  captureUpdate: "EVENTUALLY";
2014
2014
  };
2015
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2015
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2016
2016
  } & {
2017
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2017
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2018
2018
  };
2019
2019
  export declare const actionToggleTheme: {
2020
2020
  name: "toggleTheme";
@@ -2083,7 +2083,7 @@ export declare const actionToggleTheme: {
2083
2083
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2084
2084
  currentHoveredFontFamily: number | null;
2085
2085
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2086
- currentItemArrowType: "sharp" | "round" | "elbow";
2086
+ currentItemArrowType: "round" | "sharp" | "elbow";
2087
2087
  viewBackgroundColor: string;
2088
2088
  scrollX: number;
2089
2089
  scrollY: number;
@@ -2176,7 +2176,7 @@ export declare const actionToggleTheme: {
2176
2176
  shown: true;
2177
2177
  data: import("../charts").Spreadsheet;
2178
2178
  };
2179
- showHyperlinkPopup: false | "info" | "editor";
2179
+ showHyperlinkPopup: false | "editor" | "info";
2180
2180
  linkOpacity: number;
2181
2181
  trayModeEnabled: boolean;
2182
2182
  colorPalette?: {
@@ -2235,10 +2235,10 @@ export declare const actionToggleTheme: {
2235
2235
  };
2236
2236
  captureUpdate: "EVENTUALLY";
2237
2237
  };
2238
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2238
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2239
2239
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
2240
2240
  } & {
2241
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2241
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2242
2242
  };
2243
2243
  export declare const actionToggleEraserTool: {
2244
2244
  name: "toggleEraserTool";
@@ -2302,7 +2302,7 @@ export declare const actionToggleEraserTool: {
2302
2302
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2303
2303
  currentHoveredFontFamily: number | null;
2304
2304
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2305
- currentItemArrowType: "sharp" | "round" | "elbow";
2305
+ currentItemArrowType: "round" | "sharp" | "elbow";
2306
2306
  viewBackgroundColor: string;
2307
2307
  scrollX: number;
2308
2308
  scrollY: number;
@@ -2390,7 +2390,7 @@ export declare const actionToggleEraserTool: {
2390
2390
  shown: true;
2391
2391
  data: import("../charts").Spreadsheet;
2392
2392
  };
2393
- showHyperlinkPopup: false | "info" | "editor";
2393
+ showHyperlinkPopup: false | "editor" | "info";
2394
2394
  linkOpacity: number;
2395
2395
  trayModeEnabled: boolean;
2396
2396
  colorPalette?: {
@@ -2449,9 +2449,9 @@ export declare const actionToggleEraserTool: {
2449
2449
  };
2450
2450
  captureUpdate: "IMMEDIATELY";
2451
2451
  };
2452
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2452
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2453
2453
  } & {
2454
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2454
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2455
2455
  };
2456
2456
  export declare const actionToggleLassoTool: {
2457
2457
  name: "toggleLassoTool";
@@ -2516,7 +2516,7 @@ export declare const actionToggleLassoTool: {
2516
2516
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2517
2517
  currentHoveredFontFamily: number | null;
2518
2518
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2519
- currentItemArrowType: "sharp" | "round" | "elbow";
2519
+ currentItemArrowType: "round" | "sharp" | "elbow";
2520
2520
  viewBackgroundColor: string;
2521
2521
  scrollX: number;
2522
2522
  scrollY: number;
@@ -2604,7 +2604,7 @@ export declare const actionToggleLassoTool: {
2604
2604
  shown: true;
2605
2605
  data: import("../charts").Spreadsheet;
2606
2606
  };
2607
- showHyperlinkPopup: false | "info" | "editor";
2607
+ showHyperlinkPopup: false | "editor" | "info";
2608
2608
  linkOpacity: number;
2609
2609
  trayModeEnabled: boolean;
2610
2610
  colorPalette?: {
@@ -2730,7 +2730,7 @@ export declare const actionToggleHandTool: {
2730
2730
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2731
2731
  currentHoveredFontFamily: number | null;
2732
2732
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2733
- currentItemArrowType: "sharp" | "round" | "elbow";
2733
+ currentItemArrowType: "round" | "sharp" | "elbow";
2734
2734
  viewBackgroundColor: string;
2735
2735
  scrollX: number;
2736
2736
  scrollY: number;
@@ -2818,7 +2818,7 @@ export declare const actionToggleHandTool: {
2818
2818
  shown: true;
2819
2819
  data: import("../charts").Spreadsheet;
2820
2820
  };
2821
- showHyperlinkPopup: false | "info" | "editor";
2821
+ showHyperlinkPopup: false | "editor" | "info";
2822
2822
  linkOpacity: number;
2823
2823
  trayModeEnabled: boolean;
2824
2824
  colorPalette?: {
@@ -2877,9 +2877,9 @@ export declare const actionToggleHandTool: {
2877
2877
  };
2878
2878
  captureUpdate: "IMMEDIATELY";
2879
2879
  };
2880
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2880
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2881
2881
  } & {
2882
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2882
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2883
2883
  };
2884
2884
  export declare const actionToggleLaserPointer: {
2885
2885
  name: "toggleLaserPointerTool";
@@ -2943,7 +2943,7 @@ export declare const actionToggleLaserPointer: {
2943
2943
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2944
2944
  currentHoveredFontFamily: number | null;
2945
2945
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2946
- currentItemArrowType: "sharp" | "round" | "elbow";
2946
+ currentItemArrowType: "round" | "sharp" | "elbow";
2947
2947
  viewBackgroundColor: string;
2948
2948
  scrollX: number;
2949
2949
  scrollY: number;
@@ -3031,7 +3031,7 @@ export declare const actionToggleLaserPointer: {
3031
3031
  shown: true;
3032
3032
  data: import("../charts").Spreadsheet;
3033
3033
  };
3034
- showHyperlinkPopup: false | "info" | "editor";
3034
+ showHyperlinkPopup: false | "editor" | "info";
3035
3035
  linkOpacity: number;
3036
3036
  trayModeEnabled: boolean;
3037
3037
  colorPalette?: {
@@ -3158,7 +3158,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3158
3158
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
3159
3159
  currentHoveredFontFamily: number | null;
3160
3160
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
3161
- currentItemArrowType: "sharp" | "round" | "elbow";
3161
+ currentItemArrowType: "round" | "sharp" | "elbow";
3162
3162
  viewBackgroundColor: string;
3163
3163
  cursorButton: "up" | "down";
3164
3164
  scrolledOutside: boolean;
@@ -3247,7 +3247,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3247
3247
  shown: true;
3248
3248
  data: import("../charts").Spreadsheet;
3249
3249
  };
3250
- showHyperlinkPopup: false | "info" | "editor";
3250
+ showHyperlinkPopup: false | "editor" | "info";
3251
3251
  linkOpacity: number;
3252
3252
  trayModeEnabled: boolean;
3253
3253
  colorPalette?: {