@zsviczian/excalidraw 0.18.0-5 → 0.18.0-51

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 (191) hide show
  1. package/dist/excalidraw.development.js +746 -504
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1080 -437
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +14 -3
  7. package/types/common/src/commonObsidianUtils.d.ts +13 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +2 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +20 -5
  15. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  16. package/types/element/src/align.d.ts +4 -3
  17. package/types/element/src/binding.d.ts +27 -17
  18. package/types/element/src/bounds.d.ts +14 -6
  19. package/types/element/src/collision.d.ts +18 -12
  20. package/types/element/src/cropElement.d.ts +1 -1
  21. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  22. package/types/element/src/distance.d.ts +2 -2
  23. package/types/element/src/distribute.d.ts +2 -1
  24. package/types/element/src/dragElements.d.ts +3 -2
  25. package/types/element/src/duplicate.d.ts +10 -13
  26. package/types/element/src/elbowArrow.d.ts +1 -1
  27. package/types/element/src/flowchart.d.ts +3 -2
  28. package/types/element/src/fractionalIndex.d.ts +9 -3
  29. package/types/element/src/frame.d.ts +5 -4
  30. package/types/element/src/groups.d.ts +1 -0
  31. package/types/element/src/index.d.ts +44 -2
  32. package/types/element/src/linearElementEditor.d.ts +23 -36
  33. package/types/element/src/mutateElement.d.ts +11 -3
  34. package/types/element/src/newElement.d.ts +6 -4
  35. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  36. package/types/element/src/renderElement.d.ts +4 -1
  37. package/types/element/src/resizeElements.d.ts +6 -5
  38. package/types/element/src/resizeTest.d.ts +5 -4
  39. package/types/element/src/selection.d.ts +11 -5
  40. package/types/element/src/shape.d.ts +42 -0
  41. package/types/element/src/sizeHelpers.d.ts +2 -2
  42. package/types/element/src/store.d.ts +237 -0
  43. package/types/element/src/textElement.d.ts +5 -3
  44. package/types/element/src/transformHandles.d.ts +5 -4
  45. package/types/element/src/typeChecks.d.ts +19 -1
  46. package/types/element/src/types.d.ts +25 -2
  47. package/types/element/src/utils.d.ts +16 -6
  48. package/types/element/src/zindex.d.ts +1 -1
  49. package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
  50. package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
  51. package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
  52. package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
  53. package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
  54. package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
  55. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  56. package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
  57. package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
  58. package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
  59. package/types/excalidraw/actions/actionExport.d.ts +237 -174
  60. package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
  61. package/types/excalidraw/actions/actionFrame.d.ts +157 -120
  62. package/types/excalidraw/actions/actionGroup.d.ts +50 -36
  63. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  64. package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
  65. package/types/excalidraw/actions/actionLink.d.ts +23 -16
  66. package/types/excalidraw/actions/actionMenu.d.ts +25 -456
  67. package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
  68. package/types/excalidraw/actions/actionProperties.d.ts +629 -273
  69. package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
  70. package/types/excalidraw/actions/actionStyles.d.ts +25 -18
  71. package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
  72. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
  73. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
  74. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  75. package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
  76. package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
  77. package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
  78. package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
  79. package/types/excalidraw/actions/index.d.ts +4 -2
  80. package/types/excalidraw/actions/types.d.ts +4 -3
  81. package/types/excalidraw/appState.d.ts +24 -10
  82. package/types/excalidraw/clipboard.d.ts +68 -5
  83. package/types/excalidraw/components/Actions.d.ts +20 -7
  84. package/types/excalidraw/components/App.d.ts +63 -38
  85. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  86. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  87. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  88. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  89. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  90. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  91. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  92. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  93. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  96. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  97. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  98. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  99. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  100. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  101. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  102. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  103. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  104. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  105. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  106. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  107. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  108. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  109. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  110. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  111. package/types/excalidraw/components/Popover.d.ts +2 -1
  112. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  113. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  114. package/types/excalidraw/components/Range.d.ts +3 -3
  115. package/types/excalidraw/components/Section.d.ts +1 -0
  116. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  117. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  118. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  119. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  120. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  121. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  122. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  123. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  124. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  125. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  129. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  130. package/types/excalidraw/components/TextField.d.ts +1 -0
  131. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  132. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  133. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  134. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  135. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  136. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  137. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  138. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  139. package/types/excalidraw/components/icons.d.ts +17 -0
  140. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  141. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  142. package/types/excalidraw/components/shapes.d.ts +115 -5
  143. package/types/excalidraw/data/blob.d.ts +3 -7
  144. package/types/excalidraw/data/reconcile.d.ts +1 -0
  145. package/types/excalidraw/data/restore.d.ts +6 -1
  146. package/types/excalidraw/data/transform.d.ts +1 -1
  147. package/types/excalidraw/data/types.d.ts +4 -1
  148. package/types/excalidraw/editor-jotai.d.ts +6 -6
  149. package/types/excalidraw/eraser/index.d.ts +12 -0
  150. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  151. package/types/excalidraw/history.d.ts +30 -22
  152. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  153. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  154. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  155. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  156. package/types/excalidraw/index.d.ts +15 -14
  157. package/types/excalidraw/lasso/index.d.ts +1 -0
  158. package/types/excalidraw/lasso/utils.d.ts +3 -3
  159. package/types/excalidraw/obsidianUtils.d.ts +22 -4
  160. package/types/excalidraw/renderer/helpers.d.ts +7 -2
  161. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  162. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  163. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  164. package/types/excalidraw/scene/index.d.ts +2 -2
  165. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  166. package/types/excalidraw/scene/types.d.ts +5 -3
  167. package/types/excalidraw/shortcut.d.ts +1 -0
  168. package/types/excalidraw/snapping.d.ts +2 -2
  169. package/types/excalidraw/types.d.ts +68 -30
  170. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  171. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  172. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  173. package/types/math/src/angle.d.ts +2 -0
  174. package/types/math/src/constants.d.ts +3 -0
  175. package/types/math/src/curve.d.ts +34 -0
  176. package/types/math/src/index.d.ts +1 -0
  177. package/types/math/src/point.d.ts +1 -1
  178. package/types/math/src/rectangle.d.ts +2 -0
  179. package/types/math/src/segment.d.ts +1 -0
  180. package/types/math/src/types.d.ts +1 -0
  181. package/types/math/src/vector.d.ts +8 -2
  182. package/types/utils/src/bbox.d.ts +1 -1
  183. package/types/utils/src/index.d.ts +1 -1
  184. package/types/utils/src/withinBounds.d.ts +1 -1
  185. package/types/element/src/Shape.d.ts +0 -17
  186. package/types/element/src/ShapeCache.d.ts +0 -25
  187. package/types/element/src/shapes.d.ts +0 -23
  188. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  189. package/types/excalidraw/store.d.ts +0 -129
  190. package/types/excalidraw/visualdebug.d.ts +0 -41
  191. package/types/utils/src/collision.d.ts +0 -8
@@ -11,211 +11,6 @@ export declare const actionToggleSearchMenu: {
11
11
  predicate: (appState: Readonly<AppState>) => boolean;
12
12
  };
13
13
  perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
14
- appState: {
15
- openSidebar: null;
16
- contextMenu: {
17
- items: import("../components/ContextMenu").ContextMenuItems;
18
- top: number;
19
- left: number;
20
- } | null;
21
- showWelcomeScreen: boolean;
22
- isLoading: boolean;
23
- errorMessage: import("react").ReactNode;
24
- activeEmbeddable: {
25
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
26
- state: "active" | "hover";
27
- } | null;
28
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
- isBindingEnabled: boolean;
33
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
35
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
- frameRendering: {
37
- enabled: boolean;
38
- name: boolean;
39
- outline: boolean;
40
- clip: boolean;
41
- };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
46
- activeTool: {
47
- lastActiveTool: import("../types").ActiveTool | null;
48
- locked: boolean;
49
- fromSelection: boolean;
50
- } & import("../types").ActiveTool;
51
- penMode: boolean;
52
- penDetected: boolean;
53
- exportBackground: boolean;
54
- exportEmbedScene: boolean;
55
- exportWithDarkMode: boolean;
56
- exportScale: number;
57
- currentItemStrokeColor: string;
58
- currentItemBackgroundColor: string;
59
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
60
- currentItemStrokeWidth: number;
61
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
62
- currentItemRoughness: number;
63
- currentItemOpacity: number;
64
- currentItemFontFamily: number;
65
- currentItemFontSize: number;
66
- currentItemTextAlign: string;
67
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
- currentHoveredFontFamily: number | null;
70
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
71
- currentItemArrowType: "round" | "sharp" | "elbow";
72
- viewBackgroundColor: string;
73
- scrollX: number;
74
- scrollY: number;
75
- cursorButton: "up" | "down";
76
- scrolledOutside: boolean;
77
- name: string | null;
78
- isResizing: boolean;
79
- isRotating: boolean;
80
- zoom: Readonly<{
81
- value: import("../types").NormalizedZoomValue;
82
- }>;
83
- openMenu: "shape" | "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
- openDialog: {
86
- name: "help" | "imageExport" | "jsonExport";
87
- } | {
88
- name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
90
- } | {
91
- name: "commandPalette";
92
- } | {
93
- name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
96
- defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
- selectedElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- hoveredElementIds: Readonly<{
102
- [id: string]: true;
103
- }>;
104
- previousSelectedElementIds: {
105
- [id: string]: true;
106
- };
107
- selectedElementsAreBeingDragged: boolean;
108
- shouldCacheIgnoreZoom: boolean;
109
- toast: {
110
- message: string;
111
- closable?: boolean | undefined;
112
- duration?: number | undefined;
113
- } | null;
114
- zenModeEnabled: boolean;
115
- theme: import("@excalidraw/element/types").Theme;
116
- gridSize: number;
117
- gridStep: number;
118
- gridModeEnabled: boolean;
119
- viewModeEnabled: boolean;
120
- selectedGroupIds: {
121
- [groupId: string]: boolean;
122
- };
123
- editingGroupId: string | null;
124
- width: number;
125
- height: number;
126
- offsetTop: number;
127
- offsetLeft: number;
128
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
129
- collaborators: Map<import("../types").SocketId, Readonly<{
130
- pointer?: import("../types").CollaboratorPointer | undefined;
131
- button?: "up" | "down" | undefined;
132
- selectedElementIds?: Readonly<{
133
- [id: string]: true;
134
- }> | undefined;
135
- username?: string | null | undefined;
136
- userState?: import("@excalidraw/common").UserIdleState | undefined;
137
- color?: {
138
- background: string;
139
- stroke: string;
140
- } | undefined;
141
- avatarUrl?: string | undefined;
142
- id?: string | undefined;
143
- socketId?: import("../types").SocketId | undefined;
144
- isCurrentUser?: boolean | undefined;
145
- isInCall?: boolean | undefined;
146
- isSpeaking?: boolean | undefined;
147
- isMuted?: boolean | undefined;
148
- }>>;
149
- stats: {
150
- open: boolean;
151
- panels: number;
152
- };
153
- currentChartType: import("@excalidraw/element/types").ChartType;
154
- pasteDialog: {
155
- shown: false;
156
- data: null;
157
- } | {
158
- shown: true;
159
- data: import("../charts").Spreadsheet;
160
- };
161
- pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
163
- linkOpacity: number;
164
- trayModeEnabled: boolean;
165
- colorPalette?: {
166
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
167
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
168
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
169
- topPicks: {
170
- canvasBackground: [string, string, string, string, string];
171
- elementStroke: [string, string, string, string, string];
172
- elementBackground: [string, string, string, string, string];
173
- };
174
- } | undefined;
175
- allowWheelZoom?: boolean | undefined;
176
- allowPinchZoom?: boolean | undefined;
177
- pinnedScripts?: string[] | undefined;
178
- customPens?: any[] | undefined;
179
- currentStrokeOptions?: any;
180
- resetCustomPen?: any;
181
- gridColor: {
182
- Bold: string;
183
- Regular: string;
184
- };
185
- highlightSearchResult: boolean;
186
- dynamicStyle: {
187
- [x: string]: string;
188
- };
189
- frameColor: {
190
- stroke: string;
191
- fill: string;
192
- nameColor: string;
193
- };
194
- invertBindingBehaviour: boolean;
195
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
196
- snapLines: readonly import("../snapping").SnapLine[];
197
- originSnapOffset: {
198
- x: number;
199
- y: number;
200
- } | null;
201
- objectsSnapModeEnabled: boolean;
202
- userToFollow: import("../types").UserToFollow | null;
203
- followedBy: Set<import("../types").SocketId>;
204
- isCropping: boolean;
205
- croppingElementId: string | null;
206
- searchMatches: readonly {
207
- id: string;
208
- focus: boolean;
209
- matchedLines: {
210
- offsetX: number;
211
- offsetY: number;
212
- width: number;
213
- height: number;
214
- }[];
215
- }[];
216
- };
217
- captureUpdate: "EVENTUALLY";
218
- } | {
219
14
  appState: {
220
15
  openSidebar: {
221
16
  name: "default";
@@ -240,23 +35,28 @@ export declare const actionToggleSearchMenu: {
240
35
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
241
36
  isBindingEnabled: boolean;
242
37
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
243
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
38
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
244
39
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
245
40
  frameRendering: {
246
41
  enabled: boolean;
247
42
  name: boolean;
248
43
  outline: boolean;
249
44
  clip: boolean;
45
+ markerName: boolean;
46
+ markerEnabled: boolean;
250
47
  };
251
48
  editingFrame: string | null;
252
49
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
253
50
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
255
51
  activeTool: {
256
52
  lastActiveTool: import("../types").ActiveTool | null;
257
53
  locked: boolean;
258
54
  fromSelection: boolean;
259
55
  } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
260
60
  penMode: boolean;
261
61
  penDetected: boolean;
262
62
  exportBackground: boolean;
@@ -278,6 +78,7 @@ export declare const actionToggleSearchMenu: {
278
78
  currentHoveredFontFamily: number | null;
279
79
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
280
80
  currentItemArrowType: "round" | "sharp" | "elbow";
81
+ currentItemFrameRole: ("marker" | null) | undefined;
281
82
  viewBackgroundColor: string;
282
83
  scrollX: number;
283
84
  scrollY: number;
@@ -289,8 +90,8 @@ export declare const actionToggleSearchMenu: {
289
90
  zoom: Readonly<{
290
91
  value: import("../types").NormalizedZoomValue;
291
92
  }>;
292
- openMenu: "shape" | "canvas" | null;
293
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
93
+ openMenu: "canvas" | "shape" | null;
94
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
294
95
  defaultSidebarDockedPreference: boolean;
295
96
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
296
97
  selectedElementIds: Readonly<{
@@ -356,10 +157,8 @@ export declare const actionToggleSearchMenu: {
356
157
  shown: true;
357
158
  data: import("../charts").Spreadsheet;
358
159
  };
359
- pendingImageElementId: string | null;
360
- showHyperlinkPopup: false | "editor" | "info";
160
+ showHyperlinkPopup: false | "info" | "editor";
361
161
  linkOpacity: number;
362
- trayModeEnabled: boolean;
363
162
  colorPalette?: {
364
163
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
365
164
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -372,6 +171,7 @@ export declare const actionToggleSearchMenu: {
372
171
  } | undefined;
373
172
  allowWheelZoom?: boolean | undefined;
374
173
  allowPinchZoom?: boolean | undefined;
174
+ disableContextMenu: boolean;
375
175
  pinnedScripts?: string[] | undefined;
376
176
  customPens?: any[] | undefined;
377
177
  currentStrokeOptions?: any;
@@ -380,6 +180,10 @@ export declare const actionToggleSearchMenu: {
380
180
  Bold: string;
381
181
  Regular: string;
382
182
  };
183
+ gridDirection: {
184
+ horizontal: boolean;
185
+ vertical: boolean;
186
+ };
383
187
  highlightSearchResult: boolean;
384
188
  dynamicStyle: {
385
189
  [x: string]: string;
@@ -390,7 +194,7 @@ export declare const actionToggleSearchMenu: {
390
194
  nameColor: string;
391
195
  };
392
196
  invertBindingBehaviour: boolean;
393
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
197
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
394
198
  snapLines: readonly import("../snapping").SnapLine[];
395
199
  originSnapOffset: {
396
200
  x: number;
@@ -401,16 +205,14 @@ export declare const actionToggleSearchMenu: {
401
205
  followedBy: Set<import("../types").SocketId>;
402
206
  isCropping: boolean;
403
207
  croppingElementId: string | null;
404
- searchMatches: readonly {
405
- id: string;
406
- focus: boolean;
407
- matchedLines: {
408
- offsetX: number;
409
- offsetY: number;
410
- width: number;
411
- height: number;
412
- }[];
413
- }[];
208
+ searchMatches: Readonly<{
209
+ focusedId: string | null;
210
+ matches: readonly import("../types").SearchMatch[];
211
+ }> | null;
212
+ activeLockedId: string | null;
213
+ lockedMultiSelections: {
214
+ [groupId: string]: true;
215
+ };
414
216
  };
415
217
  captureUpdate: "EVENTUALLY";
416
218
  };
@@ -0,0 +1,19 @@
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ export declare const actionToggleShapeSwitch: {
3
+ name: "toggleShapeSwitch";
4
+ label: string;
5
+ icon: () => null;
6
+ viewMode: true;
7
+ trackEvent: {
8
+ category: "shape_switch";
9
+ action: string;
10
+ };
11
+ keywords: string[];
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
13
+ captureUpdate: "NEVER";
14
+ };
15
+ checked: (appState: Readonly<import("../types").AppState>) => boolean;
16
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
17
+ } & {
18
+ keyTest?: undefined;
19
+ };
@@ -31,23 +31,28 @@ export declare const actionToggleStats: {
31
31
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
32
  isBindingEnabled: boolean;
33
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
34
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
35
35
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
36
  frameRendering: {
37
37
  enabled: boolean;
38
38
  name: boolean;
39
39
  outline: boolean;
40
40
  clip: boolean;
41
+ markerName: boolean;
42
+ markerEnabled: boolean;
41
43
  };
42
44
  editingFrame: string | null;
43
45
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
46
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
46
47
  activeTool: {
47
48
  lastActiveTool: import("../types").ActiveTool | null;
48
49
  locked: boolean;
49
50
  fromSelection: boolean;
50
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
51
56
  penMode: boolean;
52
57
  penDetected: boolean;
53
58
  exportBackground: boolean;
@@ -69,6 +74,7 @@ export declare const actionToggleStats: {
69
74
  currentHoveredFontFamily: number | null;
70
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
71
76
  currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemFrameRole: ("marker" | null) | undefined;
72
78
  viewBackgroundColor: string;
73
79
  scrollX: number;
74
80
  scrollY: number;
@@ -80,8 +86,8 @@ export declare const actionToggleStats: {
80
86
  zoom: Readonly<{
81
87
  value: import("../types").NormalizedZoomValue;
82
88
  }>;
83
- openMenu: "shape" | "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
89
+ openMenu: "canvas" | "shape" | null;
90
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
91
  openSidebar: {
86
92
  name: string;
87
93
  tab?: string | undefined;
@@ -158,10 +164,8 @@ export declare const actionToggleStats: {
158
164
  shown: true;
159
165
  data: import("../charts").Spreadsheet;
160
166
  };
161
- pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
167
+ showHyperlinkPopup: false | "info" | "editor";
163
168
  linkOpacity: number;
164
- trayModeEnabled: boolean;
165
169
  colorPalette?: {
166
170
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
167
171
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -174,6 +178,7 @@ export declare const actionToggleStats: {
174
178
  } | undefined;
175
179
  allowWheelZoom?: boolean | undefined;
176
180
  allowPinchZoom?: boolean | undefined;
181
+ disableContextMenu: boolean;
177
182
  pinnedScripts?: string[] | undefined;
178
183
  customPens?: any[] | undefined;
179
184
  currentStrokeOptions?: any;
@@ -182,6 +187,10 @@ export declare const actionToggleStats: {
182
187
  Bold: string;
183
188
  Regular: string;
184
189
  };
190
+ gridDirection: {
191
+ horizontal: boolean;
192
+ vertical: boolean;
193
+ };
185
194
  highlightSearchResult: boolean;
186
195
  dynamicStyle: {
187
196
  [x: string]: string;
@@ -192,7 +201,7 @@ export declare const actionToggleStats: {
192
201
  nameColor: string;
193
202
  };
194
203
  invertBindingBehaviour: boolean;
195
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
204
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
196
205
  snapLines: readonly import("../snapping").SnapLine[];
197
206
  originSnapOffset: {
198
207
  x: number;
@@ -203,16 +212,14 @@ export declare const actionToggleStats: {
203
212
  followedBy: Set<import("../types").SocketId>;
204
213
  isCropping: boolean;
205
214
  croppingElementId: string | null;
206
- searchMatches: readonly {
207
- id: string;
208
- focus: boolean;
209
- matchedLines: {
210
- offsetX: number;
211
- offsetY: number;
212
- width: number;
213
- height: number;
214
- }[];
215
- }[];
215
+ searchMatches: Readonly<{
216
+ focusedId: string | null;
217
+ matches: readonly import("../types").SearchMatch[];
218
+ }> | null;
219
+ activeLockedId: string | null;
220
+ lockedMultiSelections: {
221
+ [groupId: string]: true;
222
+ };
216
223
  };
217
224
  captureUpdate: "EVENTUALLY";
218
225
  };
@@ -28,23 +28,28 @@ export declare const actionToggleViewMode: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
35
35
  name: boolean;
36
36
  outline: boolean;
37
37
  clip: boolean;
38
+ markerName: boolean;
39
+ markerEnabled: boolean;
38
40
  };
39
41
  editingFrame: string | null;
40
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
43
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
43
44
  activeTool: {
44
45
  lastActiveTool: import("../types").ActiveTool | null;
45
46
  locked: boolean;
46
47
  fromSelection: boolean;
47
48
  } & import("../types").ActiveTool;
49
+ preferredSelectionTool: {
50
+ type: "selection" | "lasso";
51
+ initialized: boolean;
52
+ };
48
53
  penMode: boolean;
49
54
  penDetected: boolean;
50
55
  exportBackground: boolean;
@@ -66,6 +71,7 @@ export declare const actionToggleViewMode: {
66
71
  currentHoveredFontFamily: number | null;
67
72
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
73
  currentItemArrowType: "round" | "sharp" | "elbow";
74
+ currentItemFrameRole: ("marker" | null) | undefined;
69
75
  viewBackgroundColor: string;
70
76
  scrollX: number;
71
77
  scrollY: number;
@@ -77,8 +83,8 @@ export declare const actionToggleViewMode: {
77
83
  zoom: Readonly<{
78
84
  value: import("../types").NormalizedZoomValue;
79
85
  }>;
80
- openMenu: "shape" | "canvas" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
+ openMenu: "canvas" | "shape" | null;
87
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
88
  openSidebar: {
83
89
  name: string;
84
90
  tab?: string | undefined;
@@ -158,10 +164,8 @@ export declare const actionToggleViewMode: {
158
164
  shown: true;
159
165
  data: import("../charts").Spreadsheet;
160
166
  };
161
- pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
167
+ showHyperlinkPopup: false | "info" | "editor";
163
168
  linkOpacity: number;
164
- trayModeEnabled: boolean;
165
169
  colorPalette?: {
166
170
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
167
171
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -174,6 +178,7 @@ export declare const actionToggleViewMode: {
174
178
  } | undefined;
175
179
  allowWheelZoom?: boolean | undefined;
176
180
  allowPinchZoom?: boolean | undefined;
181
+ disableContextMenu: boolean;
177
182
  pinnedScripts?: string[] | undefined;
178
183
  customPens?: any[] | undefined;
179
184
  currentStrokeOptions?: any;
@@ -182,6 +187,10 @@ export declare const actionToggleViewMode: {
182
187
  Bold: string;
183
188
  Regular: string;
184
189
  };
190
+ gridDirection: {
191
+ horizontal: boolean;
192
+ vertical: boolean;
193
+ };
185
194
  highlightSearchResult: boolean;
186
195
  dynamicStyle: {
187
196
  [x: string]: string;
@@ -192,7 +201,7 @@ export declare const actionToggleViewMode: {
192
201
  nameColor: string;
193
202
  };
194
203
  invertBindingBehaviour: boolean;
195
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
204
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
196
205
  snapLines: readonly import("../snapping").SnapLine[];
197
206
  originSnapOffset: {
198
207
  x: number;
@@ -203,16 +212,14 @@ export declare const actionToggleViewMode: {
203
212
  followedBy: Set<import("../types").SocketId>;
204
213
  isCropping: boolean;
205
214
  croppingElementId: string | null;
206
- searchMatches: readonly {
207
- id: string;
208
- focus: boolean;
209
- matchedLines: {
210
- offsetX: number;
211
- offsetY: number;
212
- width: number;
213
- height: number;
214
- }[];
215
- }[];
215
+ searchMatches: Readonly<{
216
+ focusedId: string | null;
217
+ matches: readonly import("../types").SearchMatch[];
218
+ }> | null;
219
+ activeLockedId: string | null;
220
+ lockedMultiSelections: {
221
+ [groupId: string]: true;
222
+ };
216
223
  };
217
224
  captureUpdate: "EVENTUALLY";
218
225
  };