@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60

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 (199) hide show
  1. package/dist/excalidraw.development.js +757 -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 +15 -4
  7. package/types/common/src/commonObsidianUtils.d.ts +20 -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 +4 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +25 -6
  15. package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
  16. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  17. package/types/element/src/align.d.ts +4 -3
  18. package/types/element/src/binding.d.ts +62 -41
  19. package/types/element/src/bounds.d.ts +14 -6
  20. package/types/element/src/collision.d.ts +23 -13
  21. package/types/element/src/cropElement.d.ts +1 -1
  22. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  23. package/types/element/src/distance.d.ts +2 -2
  24. package/types/element/src/distribute.d.ts +2 -1
  25. package/types/element/src/dragElements.d.ts +3 -2
  26. package/types/element/src/duplicate.d.ts +10 -13
  27. package/types/element/src/elbowArrow.d.ts +1 -1
  28. package/types/element/src/flowchart.d.ts +3 -2
  29. package/types/element/src/fractionalIndex.d.ts +9 -3
  30. package/types/element/src/frame.d.ts +5 -4
  31. package/types/element/src/groups.d.ts +1 -0
  32. package/types/element/src/index.d.ts +44 -5
  33. package/types/element/src/linearElementEditor.d.ts +34 -50
  34. package/types/element/src/mutateElement.d.ts +11 -3
  35. package/types/element/src/newElement.d.ts +6 -4
  36. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  37. package/types/element/src/renderElement.d.ts +5 -2
  38. package/types/element/src/resizeElements.d.ts +6 -5
  39. package/types/element/src/resizeTest.d.ts +5 -4
  40. package/types/element/src/selection.d.ts +11 -5
  41. package/types/element/src/shape.d.ts +42 -0
  42. package/types/element/src/sizeHelpers.d.ts +2 -2
  43. package/types/element/src/store.d.ts +237 -0
  44. package/types/element/src/textElement.d.ts +4 -3
  45. package/types/element/src/transformHandles.d.ts +5 -4
  46. package/types/element/src/typeChecks.d.ts +20 -3
  47. package/types/element/src/types.d.ts +31 -12
  48. package/types/element/src/utils.d.ts +17 -6
  49. package/types/element/src/zindex.d.ts +8 -2
  50. package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
  51. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  52. package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
  53. package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
  54. package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
  55. package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
  56. package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
  57. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  58. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  59. package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
  60. package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
  61. package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
  62. package/types/excalidraw/actions/actionExport.d.ts +142 -1185
  63. package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
  64. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  65. package/types/excalidraw/actions/actionFrame.d.ts +176 -129
  66. package/types/excalidraw/actions/actionGroup.d.ts +60 -40
  67. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  68. package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
  69. package/types/excalidraw/actions/actionLink.d.ts +27 -17
  70. package/types/excalidraw/actions/actionMenu.d.ts +27 -457
  71. package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
  72. package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
  73. package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
  74. package/types/excalidraw/actions/actionStyles.d.ts +31 -21
  75. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  76. package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
  77. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
  78. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
  79. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  80. package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
  81. package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
  82. package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
  83. package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
  84. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  85. package/types/excalidraw/actions/index.d.ts +4 -2
  86. package/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/types/excalidraw/actions/register.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +7 -6
  89. package/types/excalidraw/appState.d.ts +22 -7
  90. package/types/excalidraw/clipboard.d.ts +68 -5
  91. package/types/excalidraw/components/Actions.d.ts +20 -7
  92. package/types/excalidraw/components/App.d.ts +68 -46
  93. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  94. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  95. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  96. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  97. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  98. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  99. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  100. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  101. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  104. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  105. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  106. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  107. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  108. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  109. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  110. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  111. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  112. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  113. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  114. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  115. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  116. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  117. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  118. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  119. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  120. package/types/excalidraw/components/Popover.d.ts +2 -1
  121. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  122. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  123. package/types/excalidraw/components/Range.d.ts +3 -3
  124. package/types/excalidraw/components/Section.d.ts +1 -0
  125. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  129. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  130. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  131. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  132. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  133. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  134. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  135. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  136. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  137. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  138. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  139. package/types/excalidraw/components/TextField.d.ts +1 -0
  140. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  141. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  142. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  143. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  144. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  145. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  146. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  147. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  148. package/types/excalidraw/components/icons.d.ts +17 -0
  149. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  150. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  151. package/types/excalidraw/components/shapes.d.ts +115 -5
  152. package/types/excalidraw/data/blob.d.ts +3 -7
  153. package/types/excalidraw/data/reconcile.d.ts +1 -0
  154. package/types/excalidraw/data/restore.d.ts +7 -2
  155. package/types/excalidraw/data/transform.d.ts +1 -1
  156. package/types/excalidraw/data/types.d.ts +4 -1
  157. package/types/excalidraw/editor-jotai.d.ts +6 -6
  158. package/types/excalidraw/eraser/index.d.ts +0 -2
  159. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  160. package/types/excalidraw/history.d.ts +30 -22
  161. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  162. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  163. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  164. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  165. package/types/excalidraw/index.d.ts +16 -15
  166. package/types/excalidraw/lasso/index.d.ts +1 -0
  167. package/types/excalidraw/lasso/utils.d.ts +2 -1
  168. package/types/excalidraw/obsidianUtils.d.ts +22 -9
  169. package/types/excalidraw/renderer/animation.d.ts +12 -0
  170. package/types/excalidraw/renderer/helpers.d.ts +3 -2
  171. package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  172. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  173. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  174. package/types/excalidraw/scene/index.d.ts +2 -2
  175. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  176. package/types/excalidraw/scene/types.d.ts +17 -3
  177. package/types/excalidraw/shortcut.d.ts +1 -0
  178. package/types/excalidraw/snapping.d.ts +2 -2
  179. package/types/excalidraw/types.d.ts +83 -33
  180. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  181. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  182. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  183. package/types/math/src/angle.d.ts +2 -0
  184. package/types/math/src/constants.d.ts +3 -0
  185. package/types/math/src/curve.d.ts +34 -0
  186. package/types/math/src/index.d.ts +1 -0
  187. package/types/math/src/point.d.ts +1 -1
  188. package/types/math/src/rectangle.d.ts +2 -0
  189. package/types/math/src/segment.d.ts +1 -0
  190. package/types/math/src/vector.d.ts +8 -2
  191. package/types/utils/src/bbox.d.ts +1 -1
  192. package/types/utils/src/index.d.ts +1 -1
  193. package/types/utils/src/withinBounds.d.ts +1 -1
  194. package/types/element/src/Shape.d.ts +0 -17
  195. package/types/element/src/ShapeCache.d.ts +0 -25
  196. package/types/element/src/shapes.d.ts +0 -23
  197. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  198. package/types/excalidraw/store.d.ts +0 -129
  199. package/types/utils/src/collision.d.ts +0 -8
@@ -1,881 +1,17 @@
1
1
  import type { Theme } from "@excalidraw/element/types";
2
2
  import "../components/ToolIcon.scss";
3
- export declare const actionChangeProjectName: {
4
- name: "changeProjectName";
5
- label: string;
6
- trackEvent: false;
7
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
- appState: {
9
- name: any;
10
- contextMenu: {
11
- items: import("../components/ContextMenu").ContextMenuItems;
12
- top: number;
13
- left: number;
14
- } | null;
15
- showWelcomeScreen: boolean;
16
- isLoading: boolean;
17
- errorMessage: import("react").ReactNode;
18
- activeEmbeddable: {
19
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
20
- state: "active" | "hover";
21
- } | null;
22
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
23
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
24
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
- isBindingEnabled: boolean;
27
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
- frameRendering: {
31
- enabled: boolean;
32
- name: boolean;
33
- outline: boolean;
34
- clip: boolean;
35
- };
36
- editingFrame: string | null;
37
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
- currentItemArrowType: "round" | "sharp" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- isResizing: boolean;
72
- isRotating: boolean;
73
- zoom: Readonly<{
74
- value: import("../types").NormalizedZoomValue;
75
- }>;
76
- openMenu: "shape" | "canvas" | null;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
- openSidebar: {
79
- name: string;
80
- tab?: string | undefined;
81
- } | null;
82
- openDialog: {
83
- name: "help" | "imageExport" | "jsonExport";
84
- } | {
85
- name: "ttd";
86
- tab: "mermaid" | "text-to-diagram";
87
- } | {
88
- name: "commandPalette";
89
- } | {
90
- name: "elementLinkSelector";
91
- sourceElementId: string;
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
- selectedElementIds: Readonly<{
96
- [id: string]: true;
97
- }>;
98
- hoveredElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- previousSelectedElementIds: {
102
- [id: string]: true;
103
- };
104
- selectedElementsAreBeingDragged: boolean;
105
- shouldCacheIgnoreZoom: boolean;
106
- toast: {
107
- message: string;
108
- closable?: boolean | undefined;
109
- duration?: number | undefined;
110
- } | null;
111
- zenModeEnabled: boolean;
112
- theme: Theme;
113
- gridSize: number;
114
- gridStep: number;
115
- gridModeEnabled: boolean;
116
- viewModeEnabled: boolean;
117
- selectedGroupIds: {
118
- [groupId: string]: boolean;
119
- };
120
- editingGroupId: string | null;
121
- width: number;
122
- height: number;
123
- offsetTop: number;
124
- offsetLeft: number;
125
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<import("../types").SocketId, Readonly<{
127
- pointer?: import("../types").CollaboratorPointer | undefined;
128
- button?: "up" | "down" | undefined;
129
- selectedElementIds?: Readonly<{
130
- [id: string]: true;
131
- }> | undefined;
132
- username?: string | null | undefined;
133
- userState?: import("@excalidraw/common").UserIdleState | undefined;
134
- color?: {
135
- background: string;
136
- stroke: string;
137
- } | undefined;
138
- avatarUrl?: string | undefined;
139
- id?: string | undefined;
140
- socketId?: import("../types").SocketId | undefined;
141
- isCurrentUser?: boolean | undefined;
142
- isInCall?: boolean | undefined;
143
- isSpeaking?: boolean | undefined;
144
- isMuted?: boolean | undefined;
145
- }>>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
160
- linkOpacity: number;
161
- trayModeEnabled: boolean;
162
- colorPalette?: {
163
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
165
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
166
- topPicks: {
167
- canvasBackground: [string, string, string, string, string];
168
- elementStroke: [string, string, string, string, string];
169
- elementBackground: [string, string, string, string, string];
170
- };
171
- } | undefined;
172
- allowWheelZoom?: boolean | undefined;
173
- allowPinchZoom?: boolean | undefined;
174
- pinnedScripts?: string[] | undefined;
175
- customPens?: any[] | undefined;
176
- currentStrokeOptions?: any;
177
- resetCustomPen?: any;
178
- gridColor: {
179
- Bold: string;
180
- Regular: string;
181
- };
182
- highlightSearchResult: boolean;
183
- dynamicStyle: {
184
- [x: string]: string;
185
- };
186
- frameColor: {
187
- stroke: string;
188
- fill: string;
189
- nameColor: string;
190
- };
191
- invertBindingBehaviour: boolean;
192
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
193
- snapLines: readonly import("../snapping").SnapLine[];
194
- originSnapOffset: {
195
- x: number;
196
- y: number;
197
- } | null;
198
- objectsSnapModeEnabled: boolean;
199
- userToFollow: import("../types").UserToFollow | null;
200
- followedBy: Set<import("../types").SocketId>;
201
- isCropping: boolean;
202
- croppingElementId: string | null;
203
- searchMatches: readonly {
204
- id: string;
205
- focus: boolean;
206
- matchedLines: {
207
- offsetX: number;
208
- offsetY: number;
209
- width: number;
210
- height: number;
211
- }[];
212
- }[];
213
- };
214
- captureUpdate: "EVENTUALLY";
215
- };
216
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
217
- } & {
218
- keyTest?: undefined;
219
- };
220
- export declare const actionChangeExportScale: {
221
- name: "changeExportScale";
222
- label: string;
223
- trackEvent: {
224
- category: "export";
225
- action: string;
226
- };
227
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
228
- appState: {
229
- exportScale: any;
230
- contextMenu: {
231
- items: import("../components/ContextMenu").ContextMenuItems;
232
- top: number;
233
- left: number;
234
- } | null;
235
- showWelcomeScreen: boolean;
236
- isLoading: boolean;
237
- errorMessage: import("react").ReactNode;
238
- activeEmbeddable: {
239
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
240
- state: "active" | "hover";
241
- } | null;
242
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
243
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
245
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
246
- isBindingEnabled: boolean;
247
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
248
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
249
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
250
- frameRendering: {
251
- enabled: boolean;
252
- name: boolean;
253
- outline: boolean;
254
- clip: boolean;
255
- };
256
- editingFrame: string | null;
257
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
258
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
260
- activeTool: {
261
- lastActiveTool: import("../types").ActiveTool | null;
262
- locked: boolean;
263
- fromSelection: boolean;
264
- } & import("../types").ActiveTool;
265
- penMode: boolean;
266
- penDetected: boolean;
267
- exportBackground: boolean;
268
- exportEmbedScene: boolean;
269
- exportWithDarkMode: boolean;
270
- currentItemStrokeColor: string;
271
- currentItemBackgroundColor: string;
272
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
273
- currentItemStrokeWidth: number;
274
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
275
- currentItemRoughness: number;
276
- currentItemOpacity: number;
277
- currentItemFontFamily: number;
278
- currentItemFontSize: number;
279
- currentItemTextAlign: string;
280
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
281
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
- currentHoveredFontFamily: number | null;
283
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
- currentItemArrowType: "round" | "sharp" | "elbow";
285
- viewBackgroundColor: string;
286
- scrollX: number;
287
- scrollY: number;
288
- cursorButton: "up" | "down";
289
- scrolledOutside: boolean;
290
- name: string | null;
291
- isResizing: boolean;
292
- isRotating: boolean;
293
- zoom: Readonly<{
294
- value: import("../types").NormalizedZoomValue;
295
- }>;
296
- openMenu: "shape" | "canvas" | null;
297
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
298
- openSidebar: {
299
- name: string;
300
- tab?: string | undefined;
301
- } | null;
302
- openDialog: {
303
- name: "help" | "imageExport" | "jsonExport";
304
- } | {
305
- name: "ttd";
306
- tab: "mermaid" | "text-to-diagram";
307
- } | {
308
- name: "commandPalette";
309
- } | {
310
- name: "elementLinkSelector";
311
- sourceElementId: string;
312
- } | null;
313
- defaultSidebarDockedPreference: boolean;
314
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
315
- selectedElementIds: Readonly<{
316
- [id: string]: true;
317
- }>;
318
- hoveredElementIds: Readonly<{
319
- [id: string]: true;
320
- }>;
321
- previousSelectedElementIds: {
322
- [id: string]: true;
323
- };
324
- selectedElementsAreBeingDragged: boolean;
325
- shouldCacheIgnoreZoom: boolean;
326
- toast: {
327
- message: string;
328
- closable?: boolean | undefined;
329
- duration?: number | undefined;
330
- } | null;
331
- zenModeEnabled: boolean;
332
- theme: Theme;
333
- gridSize: number;
334
- gridStep: number;
335
- gridModeEnabled: boolean;
336
- viewModeEnabled: boolean;
337
- selectedGroupIds: {
338
- [groupId: string]: boolean;
339
- };
340
- editingGroupId: string | null;
341
- width: number;
342
- height: number;
343
- offsetTop: number;
344
- offsetLeft: number;
345
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
346
- collaborators: Map<import("../types").SocketId, Readonly<{
347
- pointer?: import("../types").CollaboratorPointer | undefined;
348
- button?: "up" | "down" | undefined;
349
- selectedElementIds?: Readonly<{
350
- [id: string]: true;
351
- }> | undefined;
352
- username?: string | null | undefined;
353
- userState?: import("@excalidraw/common").UserIdleState | undefined;
354
- color?: {
355
- background: string;
356
- stroke: string;
357
- } | undefined;
358
- avatarUrl?: string | undefined;
359
- id?: string | undefined;
360
- socketId?: import("../types").SocketId | undefined;
361
- isCurrentUser?: boolean | undefined;
362
- isInCall?: boolean | undefined;
363
- isSpeaking?: boolean | undefined;
364
- isMuted?: boolean | undefined;
365
- }>>;
366
- stats: {
367
- open: boolean;
368
- panels: number;
369
- };
370
- currentChartType: import("@excalidraw/element/types").ChartType;
371
- pasteDialog: {
372
- shown: false;
373
- data: null;
374
- } | {
375
- shown: true;
376
- data: import("../charts").Spreadsheet;
377
- };
378
- pendingImageElementId: string | null;
379
- showHyperlinkPopup: false | "editor" | "info";
380
- linkOpacity: number;
381
- trayModeEnabled: boolean;
382
- colorPalette?: {
383
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
384
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
385
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
386
- topPicks: {
387
- canvasBackground: [string, string, string, string, string];
388
- elementStroke: [string, string, string, string, string];
389
- elementBackground: [string, string, string, string, string];
390
- };
391
- } | undefined;
392
- allowWheelZoom?: boolean | undefined;
393
- allowPinchZoom?: boolean | undefined;
394
- pinnedScripts?: string[] | undefined;
395
- customPens?: any[] | undefined;
396
- currentStrokeOptions?: any;
397
- resetCustomPen?: any;
398
- gridColor: {
399
- Bold: string;
400
- Regular: string;
401
- };
402
- highlightSearchResult: boolean;
403
- dynamicStyle: {
404
- [x: string]: string;
405
- };
406
- frameColor: {
407
- stroke: string;
408
- fill: string;
409
- nameColor: string;
410
- };
411
- invertBindingBehaviour: boolean;
412
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
413
- snapLines: readonly import("../snapping").SnapLine[];
414
- originSnapOffset: {
415
- x: number;
416
- y: number;
417
- } | null;
418
- objectsSnapModeEnabled: boolean;
419
- userToFollow: import("../types").UserToFollow | null;
420
- followedBy: Set<import("../types").SocketId>;
421
- isCropping: boolean;
422
- croppingElementId: string | null;
423
- searchMatches: readonly {
424
- id: string;
425
- focus: boolean;
426
- matchedLines: {
427
- offsetX: number;
428
- offsetY: number;
429
- width: number;
430
- height: number;
431
- }[];
432
- }[];
433
- };
434
- captureUpdate: "EVENTUALLY";
435
- };
436
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
437
- } & {
438
- keyTest?: undefined;
439
- };
440
- export declare const actionChangeExportBackground: {
441
- name: "changeExportBackground";
442
- label: string;
443
- trackEvent: {
444
- category: "export";
445
- action: string;
446
- };
447
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
448
- appState: {
449
- exportBackground: any;
450
- contextMenu: {
451
- items: import("../components/ContextMenu").ContextMenuItems;
452
- top: number;
453
- left: number;
454
- } | null;
455
- showWelcomeScreen: boolean;
456
- isLoading: boolean;
457
- errorMessage: import("react").ReactNode;
458
- activeEmbeddable: {
459
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
460
- state: "active" | "hover";
461
- } | null;
462
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
463
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
464
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
465
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
466
- isBindingEnabled: boolean;
467
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
468
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
469
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
470
- frameRendering: {
471
- enabled: boolean;
472
- name: boolean;
473
- outline: boolean;
474
- clip: boolean;
475
- };
476
- editingFrame: string | null;
477
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
478
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
479
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
480
- activeTool: {
481
- lastActiveTool: import("../types").ActiveTool | null;
482
- locked: boolean;
483
- fromSelection: boolean;
484
- } & import("../types").ActiveTool;
485
- penMode: boolean;
486
- penDetected: boolean;
487
- exportEmbedScene: boolean;
488
- exportWithDarkMode: boolean;
489
- exportScale: number;
490
- currentItemStrokeColor: string;
491
- currentItemBackgroundColor: string;
492
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
493
- currentItemStrokeWidth: number;
494
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
495
- currentItemRoughness: number;
496
- currentItemOpacity: number;
497
- currentItemFontFamily: number;
498
- currentItemFontSize: number;
499
- currentItemTextAlign: string;
500
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
501
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
502
- currentHoveredFontFamily: number | null;
503
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
504
- currentItemArrowType: "round" | "sharp" | "elbow";
505
- viewBackgroundColor: string;
506
- scrollX: number;
507
- scrollY: number;
508
- cursorButton: "up" | "down";
509
- scrolledOutside: boolean;
510
- name: string | null;
511
- isResizing: boolean;
512
- isRotating: boolean;
513
- zoom: Readonly<{
514
- value: import("../types").NormalizedZoomValue;
515
- }>;
516
- openMenu: "shape" | "canvas" | null;
517
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
518
- openSidebar: {
519
- name: string;
520
- tab?: string | undefined;
521
- } | null;
522
- openDialog: {
523
- name: "help" | "imageExport" | "jsonExport";
524
- } | {
525
- name: "ttd";
526
- tab: "mermaid" | "text-to-diagram";
527
- } | {
528
- name: "commandPalette";
529
- } | {
530
- name: "elementLinkSelector";
531
- sourceElementId: string;
532
- } | null;
533
- defaultSidebarDockedPreference: boolean;
534
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
535
- selectedElementIds: Readonly<{
536
- [id: string]: true;
537
- }>;
538
- hoveredElementIds: Readonly<{
539
- [id: string]: true;
540
- }>;
541
- previousSelectedElementIds: {
542
- [id: string]: true;
543
- };
544
- selectedElementsAreBeingDragged: boolean;
545
- shouldCacheIgnoreZoom: boolean;
546
- toast: {
547
- message: string;
548
- closable?: boolean | undefined;
549
- duration?: number | undefined;
550
- } | null;
551
- zenModeEnabled: boolean;
552
- theme: Theme;
553
- gridSize: number;
554
- gridStep: number;
555
- gridModeEnabled: boolean;
556
- viewModeEnabled: boolean;
557
- selectedGroupIds: {
558
- [groupId: string]: boolean;
559
- };
560
- editingGroupId: string | null;
561
- width: number;
562
- height: number;
563
- offsetTop: number;
564
- offsetLeft: number;
565
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
566
- collaborators: Map<import("../types").SocketId, Readonly<{
567
- pointer?: import("../types").CollaboratorPointer | undefined;
568
- button?: "up" | "down" | undefined;
569
- selectedElementIds?: Readonly<{
570
- [id: string]: true;
571
- }> | undefined;
572
- username?: string | null | undefined;
573
- userState?: import("@excalidraw/common").UserIdleState | undefined;
574
- color?: {
575
- background: string;
576
- stroke: string;
577
- } | undefined;
578
- avatarUrl?: string | undefined;
579
- id?: string | undefined;
580
- socketId?: import("../types").SocketId | undefined;
581
- isCurrentUser?: boolean | undefined;
582
- isInCall?: boolean | undefined;
583
- isSpeaking?: boolean | undefined;
584
- isMuted?: boolean | undefined;
585
- }>>;
586
- stats: {
587
- open: boolean;
588
- panels: number;
589
- };
590
- currentChartType: import("@excalidraw/element/types").ChartType;
591
- pasteDialog: {
592
- shown: false;
593
- data: null;
594
- } | {
595
- shown: true;
596
- data: import("../charts").Spreadsheet;
597
- };
598
- pendingImageElementId: string | null;
599
- showHyperlinkPopup: false | "editor" | "info";
600
- linkOpacity: number;
601
- trayModeEnabled: boolean;
602
- colorPalette?: {
603
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
604
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
605
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
606
- topPicks: {
607
- canvasBackground: [string, string, string, string, string];
608
- elementStroke: [string, string, string, string, string];
609
- elementBackground: [string, string, string, string, string];
610
- };
611
- } | undefined;
612
- allowWheelZoom?: boolean | undefined;
613
- allowPinchZoom?: boolean | undefined;
614
- pinnedScripts?: string[] | undefined;
615
- customPens?: any[] | undefined;
616
- currentStrokeOptions?: any;
617
- resetCustomPen?: any;
618
- gridColor: {
619
- Bold: string;
620
- Regular: string;
621
- };
622
- highlightSearchResult: boolean;
623
- dynamicStyle: {
624
- [x: string]: string;
625
- };
626
- frameColor: {
627
- stroke: string;
628
- fill: string;
629
- nameColor: string;
630
- };
631
- invertBindingBehaviour: boolean;
632
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
633
- snapLines: readonly import("../snapping").SnapLine[];
634
- originSnapOffset: {
635
- x: number;
636
- y: number;
637
- } | null;
638
- objectsSnapModeEnabled: boolean;
639
- userToFollow: import("../types").UserToFollow | null;
640
- followedBy: Set<import("../types").SocketId>;
641
- isCropping: boolean;
642
- croppingElementId: string | null;
643
- searchMatches: readonly {
644
- id: string;
645
- focus: boolean;
646
- matchedLines: {
647
- offsetX: number;
648
- offsetY: number;
649
- width: number;
650
- height: number;
651
- }[];
652
- }[];
653
- };
654
- captureUpdate: "EVENTUALLY";
655
- };
656
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
657
- } & {
658
- keyTest?: undefined;
659
- };
660
- export declare const actionChangeExportEmbedScene: {
661
- name: "changeExportEmbedScene";
662
- label: string;
663
- trackEvent: {
664
- category: "export";
665
- action: string;
666
- };
667
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
668
- appState: {
669
- exportEmbedScene: any;
670
- contextMenu: {
671
- items: import("../components/ContextMenu").ContextMenuItems;
672
- top: number;
673
- left: number;
674
- } | null;
675
- showWelcomeScreen: boolean;
676
- isLoading: boolean;
677
- errorMessage: import("react").ReactNode;
678
- activeEmbeddable: {
679
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
680
- state: "active" | "hover";
681
- } | null;
682
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
683
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
684
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
685
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
686
- isBindingEnabled: boolean;
687
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
688
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
689
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
690
- frameRendering: {
691
- enabled: boolean;
692
- name: boolean;
693
- outline: boolean;
694
- clip: boolean;
695
- };
696
- editingFrame: string | null;
697
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
698
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
699
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
700
- activeTool: {
701
- lastActiveTool: import("../types").ActiveTool | null;
702
- locked: boolean;
703
- fromSelection: boolean;
704
- } & import("../types").ActiveTool;
705
- penMode: boolean;
706
- penDetected: boolean;
707
- exportBackground: boolean;
708
- exportWithDarkMode: boolean;
709
- exportScale: number;
710
- currentItemStrokeColor: string;
711
- currentItemBackgroundColor: string;
712
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
713
- currentItemStrokeWidth: number;
714
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
715
- currentItemRoughness: number;
716
- currentItemOpacity: number;
717
- currentItemFontFamily: number;
718
- currentItemFontSize: number;
719
- currentItemTextAlign: string;
720
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
721
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
722
- currentHoveredFontFamily: number | null;
723
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
724
- currentItemArrowType: "round" | "sharp" | "elbow";
725
- viewBackgroundColor: string;
726
- scrollX: number;
727
- scrollY: number;
728
- cursorButton: "up" | "down";
729
- scrolledOutside: boolean;
730
- name: string | null;
731
- isResizing: boolean;
732
- isRotating: boolean;
733
- zoom: Readonly<{
734
- value: import("../types").NormalizedZoomValue;
735
- }>;
736
- openMenu: "shape" | "canvas" | null;
737
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
738
- openSidebar: {
739
- name: string;
740
- tab?: string | undefined;
741
- } | null;
742
- openDialog: {
743
- name: "help" | "imageExport" | "jsonExport";
744
- } | {
745
- name: "ttd";
746
- tab: "mermaid" | "text-to-diagram";
747
- } | {
748
- name: "commandPalette";
749
- } | {
750
- name: "elementLinkSelector";
751
- sourceElementId: string;
752
- } | null;
753
- defaultSidebarDockedPreference: boolean;
754
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
755
- selectedElementIds: Readonly<{
756
- [id: string]: true;
757
- }>;
758
- hoveredElementIds: Readonly<{
759
- [id: string]: true;
760
- }>;
761
- previousSelectedElementIds: {
762
- [id: string]: true;
763
- };
764
- selectedElementsAreBeingDragged: boolean;
765
- shouldCacheIgnoreZoom: boolean;
766
- toast: {
767
- message: string;
768
- closable?: boolean | undefined;
769
- duration?: number | undefined;
770
- } | null;
771
- zenModeEnabled: boolean;
772
- theme: Theme;
773
- gridSize: number;
774
- gridStep: number;
775
- gridModeEnabled: boolean;
776
- viewModeEnabled: boolean;
777
- selectedGroupIds: {
778
- [groupId: string]: boolean;
779
- };
780
- editingGroupId: string | null;
781
- width: number;
782
- height: number;
783
- offsetTop: number;
784
- offsetLeft: number;
785
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
786
- collaborators: Map<import("../types").SocketId, Readonly<{
787
- pointer?: import("../types").CollaboratorPointer | undefined;
788
- button?: "up" | "down" | undefined;
789
- selectedElementIds?: Readonly<{
790
- [id: string]: true;
791
- }> | undefined;
792
- username?: string | null | undefined;
793
- userState?: import("@excalidraw/common").UserIdleState | undefined;
794
- color?: {
795
- background: string;
796
- stroke: string;
797
- } | undefined;
798
- avatarUrl?: string | undefined;
799
- id?: string | undefined;
800
- socketId?: import("../types").SocketId | undefined;
801
- isCurrentUser?: boolean | undefined;
802
- isInCall?: boolean | undefined;
803
- isSpeaking?: boolean | undefined;
804
- isMuted?: boolean | undefined;
805
- }>>;
806
- stats: {
807
- open: boolean;
808
- panels: number;
809
- };
810
- currentChartType: import("@excalidraw/element/types").ChartType;
811
- pasteDialog: {
812
- shown: false;
813
- data: null;
814
- } | {
815
- shown: true;
816
- data: import("../charts").Spreadsheet;
817
- };
818
- pendingImageElementId: string | null;
819
- showHyperlinkPopup: false | "editor" | "info";
820
- linkOpacity: number;
821
- trayModeEnabled: boolean;
822
- colorPalette?: {
823
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
824
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
825
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
826
- topPicks: {
827
- canvasBackground: [string, string, string, string, string];
828
- elementStroke: [string, string, string, string, string];
829
- elementBackground: [string, string, string, string, string];
830
- };
831
- } | undefined;
832
- allowWheelZoom?: boolean | undefined;
833
- allowPinchZoom?: boolean | undefined;
834
- pinnedScripts?: string[] | undefined;
835
- customPens?: any[] | undefined;
836
- currentStrokeOptions?: any;
837
- resetCustomPen?: any;
838
- gridColor: {
839
- Bold: string;
840
- Regular: string;
841
- };
842
- highlightSearchResult: boolean;
843
- dynamicStyle: {
844
- [x: string]: string;
845
- };
846
- frameColor: {
847
- stroke: string;
848
- fill: string;
849
- nameColor: string;
850
- };
851
- invertBindingBehaviour: boolean;
852
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
853
- snapLines: readonly import("../snapping").SnapLine[];
854
- originSnapOffset: {
855
- x: number;
856
- y: number;
857
- } | null;
858
- objectsSnapModeEnabled: boolean;
859
- userToFollow: import("../types").UserToFollow | null;
860
- followedBy: Set<import("../types").SocketId>;
861
- isCropping: boolean;
862
- croppingElementId: string | null;
863
- searchMatches: readonly {
864
- id: string;
865
- focus: boolean;
866
- matchedLines: {
867
- offsetX: number;
868
- offsetY: number;
869
- width: number;
870
- height: number;
871
- }[];
872
- }[];
873
- };
874
- captureUpdate: "EVENTUALLY";
875
- };
876
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
877
- } & {
878
- keyTest?: undefined;
3
+ import type { AppState } from "../types";
4
+ export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
+ };
7
+ export declare const actionChangeExportScale: import("./types").Action<number> & {
8
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
9
+ };
10
+ export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
12
+ };
13
+ export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
879
15
  };
880
16
  export declare const actionSaveToActiveFile: {
881
17
  name: "saveToActiveFile";
@@ -884,8 +20,8 @@ export declare const actionSaveToActiveFile: {
884
20
  trackEvent: {
885
21
  category: "export";
886
22
  };
887
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
888
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
23
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
24
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
889
25
  captureUpdate: "EVENTUALLY";
890
26
  appState: {
891
27
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -910,23 +46,28 @@ export declare const actionSaveToActiveFile: {
910
46
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
911
47
  isBindingEnabled: boolean;
912
48
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
913
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
49
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
914
50
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
915
51
  frameRendering: {
916
52
  enabled: boolean;
917
53
  name: boolean;
918
54
  outline: boolean;
919
55
  clip: boolean;
56
+ markerName: boolean;
57
+ markerEnabled: boolean;
920
58
  };
921
59
  editingFrame: string | null;
922
60
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
923
61
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
924
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
925
62
  activeTool: {
926
63
  lastActiveTool: import("../types").ActiveTool | null;
927
64
  locked: boolean;
928
65
  fromSelection: boolean;
929
66
  } & import("../types").ActiveTool;
67
+ preferredSelectionTool: {
68
+ type: "selection" | "lasso";
69
+ initialized: boolean;
70
+ };
930
71
  penMode: boolean;
931
72
  penDetected: boolean;
932
73
  exportBackground: boolean;
@@ -948,6 +89,7 @@ export declare const actionSaveToActiveFile: {
948
89
  currentHoveredFontFamily: number | null;
949
90
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
950
91
  currentItemArrowType: "round" | "sharp" | "elbow";
92
+ currentItemFrameRole: ("marker" | null) | undefined;
951
93
  viewBackgroundColor: string;
952
94
  scrollX: number;
953
95
  scrollY: number;
@@ -959,19 +101,21 @@ export declare const actionSaveToActiveFile: {
959
101
  zoom: Readonly<{
960
102
  value: import("../types").NormalizedZoomValue;
961
103
  }>;
962
- openMenu: "shape" | "canvas" | null;
963
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
104
+ openMenu: "canvas" | "shape" | null;
105
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
964
106
  openSidebar: {
965
107
  name: string;
966
108
  tab?: string | undefined;
967
109
  } | null;
968
110
  openDialog: {
969
- name: "help" | "imageExport" | "jsonExport";
111
+ name: "imageExport" | "help" | "jsonExport";
970
112
  } | {
971
113
  name: "ttd";
972
114
  tab: "mermaid" | "text-to-diagram";
973
115
  } | {
974
116
  name: "commandPalette";
117
+ } | {
118
+ name: "settings";
975
119
  } | {
976
120
  name: "elementLinkSelector";
977
121
  sourceElementId: string;
@@ -1035,10 +179,8 @@ export declare const actionSaveToActiveFile: {
1035
179
  shown: true;
1036
180
  data: import("../charts").Spreadsheet;
1037
181
  };
1038
- pendingImageElementId: string | null;
1039
- showHyperlinkPopup: false | "editor" | "info";
182
+ showHyperlinkPopup: false | "info" | "editor";
1040
183
  linkOpacity: number;
1041
- trayModeEnabled: boolean;
1042
184
  colorPalette?: {
1043
185
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1044
186
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1051,6 +193,7 @@ export declare const actionSaveToActiveFile: {
1051
193
  } | undefined;
1052
194
  allowWheelZoom?: boolean | undefined;
1053
195
  allowPinchZoom?: boolean | undefined;
196
+ disableContextMenu: boolean;
1054
197
  pinnedScripts?: string[] | undefined;
1055
198
  customPens?: any[] | undefined;
1056
199
  currentStrokeOptions?: any;
@@ -1059,6 +202,10 @@ export declare const actionSaveToActiveFile: {
1059
202
  Bold: string;
1060
203
  Regular: string;
1061
204
  };
205
+ gridDirection: {
206
+ horizontal: boolean;
207
+ vertical: boolean;
208
+ };
1062
209
  highlightSearchResult: boolean;
1063
210
  dynamicStyle: {
1064
211
  [x: string]: string;
@@ -1069,7 +216,7 @@ export declare const actionSaveToActiveFile: {
1069
216
  nameColor: string;
1070
217
  };
1071
218
  invertBindingBehaviour: boolean;
1072
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
219
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1073
220
  snapLines: readonly import("../snapping").SnapLine[];
1074
221
  originSnapOffset: {
1075
222
  x: number;
@@ -1080,16 +227,15 @@ export declare const actionSaveToActiveFile: {
1080
227
  followedBy: Set<import("../types").SocketId>;
1081
228
  isCropping: boolean;
1082
229
  croppingElementId: string | null;
1083
- searchMatches: readonly {
1084
- id: string;
1085
- focus: boolean;
1086
- matchedLines: {
1087
- offsetX: number;
1088
- offsetY: number;
1089
- width: number;
1090
- height: number;
1091
- }[];
1092
- }[];
230
+ searchMatches: Readonly<{
231
+ focusedId: string | null;
232
+ matches: readonly import("../types").SearchMatch[];
233
+ }> | null;
234
+ activeLockedId: string | null;
235
+ lockedMultiSelections: {
236
+ [groupId: string]: true;
237
+ };
238
+ bindMode: import("@excalidraw/element/types").BindMode;
1093
239
  };
1094
240
  } | {
1095
241
  captureUpdate: "EVENTUALLY";
@@ -1107,7 +253,7 @@ export declare const actionSaveFileToDisk: {
1107
253
  trackEvent: {
1108
254
  category: "export";
1109
255
  };
1110
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
256
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
1111
257
  captureUpdate: "EVENTUALLY";
1112
258
  appState: {
1113
259
  openDialog: null;
@@ -1133,23 +279,28 @@ export declare const actionSaveFileToDisk: {
1133
279
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1134
280
  isBindingEnabled: boolean;
1135
281
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1136
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
282
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1137
283
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1138
284
  frameRendering: {
1139
285
  enabled: boolean;
1140
286
  name: boolean;
1141
287
  outline: boolean;
1142
288
  clip: boolean;
289
+ markerName: boolean;
290
+ markerEnabled: boolean;
1143
291
  };
1144
292
  editingFrame: string | null;
1145
293
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1146
294
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1147
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1148
295
  activeTool: {
1149
296
  lastActiveTool: import("../types").ActiveTool | null;
1150
297
  locked: boolean;
1151
298
  fromSelection: boolean;
1152
299
  } & import("../types").ActiveTool;
300
+ preferredSelectionTool: {
301
+ type: "selection" | "lasso";
302
+ initialized: boolean;
303
+ };
1153
304
  penMode: boolean;
1154
305
  penDetected: boolean;
1155
306
  exportBackground: boolean;
@@ -1171,6 +322,7 @@ export declare const actionSaveFileToDisk: {
1171
322
  currentHoveredFontFamily: number | null;
1172
323
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1173
324
  currentItemArrowType: "round" | "sharp" | "elbow";
325
+ currentItemFrameRole: ("marker" | null) | undefined;
1174
326
  viewBackgroundColor: string;
1175
327
  scrollX: number;
1176
328
  scrollY: number;
@@ -1182,8 +334,8 @@ export declare const actionSaveFileToDisk: {
1182
334
  zoom: Readonly<{
1183
335
  value: import("../types").NormalizedZoomValue;
1184
336
  }>;
1185
- openMenu: "shape" | "canvas" | null;
1186
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
337
+ openMenu: "canvas" | "shape" | null;
338
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1187
339
  openSidebar: {
1188
340
  name: string;
1189
341
  tab?: string | undefined;
@@ -1247,10 +399,8 @@ export declare const actionSaveFileToDisk: {
1247
399
  shown: true;
1248
400
  data: import("../charts").Spreadsheet;
1249
401
  };
1250
- pendingImageElementId: string | null;
1251
- showHyperlinkPopup: false | "editor" | "info";
402
+ showHyperlinkPopup: false | "info" | "editor";
1252
403
  linkOpacity: number;
1253
- trayModeEnabled: boolean;
1254
404
  colorPalette?: {
1255
405
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1256
406
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1263,6 +413,7 @@ export declare const actionSaveFileToDisk: {
1263
413
  } | undefined;
1264
414
  allowWheelZoom?: boolean | undefined;
1265
415
  allowPinchZoom?: boolean | undefined;
416
+ disableContextMenu: boolean;
1266
417
  pinnedScripts?: string[] | undefined;
1267
418
  customPens?: any[] | undefined;
1268
419
  currentStrokeOptions?: any;
@@ -1271,6 +422,10 @@ export declare const actionSaveFileToDisk: {
1271
422
  Bold: string;
1272
423
  Regular: string;
1273
424
  };
425
+ gridDirection: {
426
+ horizontal: boolean;
427
+ vertical: boolean;
428
+ };
1274
429
  highlightSearchResult: boolean;
1275
430
  dynamicStyle: {
1276
431
  [x: string]: string;
@@ -1281,7 +436,7 @@ export declare const actionSaveFileToDisk: {
1281
436
  nameColor: string;
1282
437
  };
1283
438
  invertBindingBehaviour: boolean;
1284
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
439
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1285
440
  snapLines: readonly import("../snapping").SnapLine[];
1286
441
  originSnapOffset: {
1287
442
  x: number;
@@ -1292,16 +447,15 @@ export declare const actionSaveFileToDisk: {
1292
447
  followedBy: Set<import("../types").SocketId>;
1293
448
  isCropping: boolean;
1294
449
  croppingElementId: string | null;
1295
- searchMatches: readonly {
1296
- id: string;
1297
- focus: boolean;
1298
- matchedLines: {
1299
- offsetX: number;
1300
- offsetY: number;
1301
- width: number;
1302
- height: number;
1303
- }[];
1304
- }[];
450
+ searchMatches: Readonly<{
451
+ focusedId: string | null;
452
+ matches: readonly import("../types").SearchMatch[];
453
+ }> | null;
454
+ activeLockedId: string | null;
455
+ lockedMultiSelections: {
456
+ [groupId: string]: true;
457
+ };
458
+ bindMode: import("@excalidraw/element/types").BindMode;
1305
459
  };
1306
460
  } | {
1307
461
  captureUpdate: "EVENTUALLY";
@@ -1318,8 +472,8 @@ export declare const actionLoadScene: {
1318
472
  trackEvent: {
1319
473
  category: "export";
1320
474
  };
1321
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1322
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
475
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
476
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
1323
477
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1324
478
  appState: {
1325
479
  viewBackgroundColor: string;
@@ -1328,6 +482,8 @@ export declare const actionLoadScene: {
1328
482
  name: boolean;
1329
483
  outline: boolean;
1330
484
  clip: boolean;
485
+ markerName: boolean;
486
+ markerEnabled: boolean;
1331
487
  };
1332
488
  frameColor: {
1333
489
  stroke: string;
@@ -1342,12 +498,14 @@ export declare const actionLoadScene: {
1342
498
  scrollY: number;
1343
499
  viewModeEnabled: boolean;
1344
500
  openDialog: {
1345
- name: "help" | "imageExport" | "jsonExport";
501
+ name: "imageExport" | "help" | "jsonExport";
1346
502
  } | {
1347
503
  name: "ttd";
1348
504
  tab: "mermaid" | "text-to-diagram";
1349
505
  } | {
1350
506
  name: "commandPalette";
507
+ } | {
508
+ name: "settings";
1351
509
  } | {
1352
510
  name: "elementLinkSelector";
1353
511
  sourceElementId: string;
@@ -1358,20 +516,19 @@ export declare const actionLoadScene: {
1358
516
  }>;
1359
517
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1360
518
  theme: Theme;
1361
- pendingImageElementId: string | null;
1362
519
  activeEmbeddable: {
1363
520
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1364
521
  state: "active" | "hover";
1365
522
  } | null;
1366
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1367
523
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1368
524
  selectedGroupIds: {
1369
525
  [groupId: string]: boolean;
1370
526
  };
1371
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
527
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1372
528
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
529
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1373
530
  isBindingEnabled: boolean;
1374
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
531
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1375
532
  isRotating: boolean;
1376
533
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1377
534
  collaborators: Map<import("../types").SocketId, Readonly<{
@@ -1401,31 +558,25 @@ export declare const actionLoadScene: {
1401
558
  Bold: string;
1402
559
  Regular: string;
1403
560
  };
561
+ gridDirection: {
562
+ horizontal: boolean;
563
+ vertical: boolean;
564
+ };
1404
565
  highlightSearchResult: boolean;
1405
566
  isCropping: boolean;
1406
567
  croppingElementId: string | null;
1407
- searchMatches: readonly {
1408
- id: string;
1409
- focus: boolean;
1410
- matchedLines: {
1411
- offsetX: number;
1412
- offsetY: number;
1413
- width: number;
1414
- height: number;
1415
- }[];
1416
- }[];
1417
- gridModeEnabled: boolean;
1418
- objectsSnapModeEnabled: boolean;
1419
- shouldCacheIgnoreZoom: boolean;
1420
- exportScale: number;
1421
- selectedElementsAreBeingDragged: boolean;
1422
- gridSize: number;
1423
- gridStep: number;
1424
- linkOpacity: number;
1425
- currentHoveredFontFamily: number | null;
568
+ searchMatches: Readonly<{
569
+ focusedId: string | null;
570
+ matches: readonly import("../types").SearchMatch[];
571
+ }> | null;
572
+ activeLockedId: string | null;
1426
573
  hoveredElementIds: Readonly<{
1427
574
  [id: string]: true;
1428
575
  }>;
576
+ shouldCacheIgnoreZoom: boolean;
577
+ exportScale: number;
578
+ bindMode: import("@excalidraw/element/types").BindMode;
579
+ gridSize: number;
1429
580
  contextMenu: {
1430
581
  items: import("../components/ContextMenu").ContextMenuItems;
1431
582
  top: number;
@@ -1434,7 +585,6 @@ export declare const actionLoadScene: {
1434
585
  showWelcomeScreen: boolean;
1435
586
  isLoading: boolean;
1436
587
  errorMessage: import("react").ReactNode;
1437
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1438
588
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1439
589
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1440
590
  editingFrame: string | null;
@@ -1443,6 +593,10 @@ export declare const actionLoadScene: {
1443
593
  locked: boolean;
1444
594
  fromSelection: boolean;
1445
595
  } & import("../types").ActiveTool;
596
+ preferredSelectionTool: {
597
+ type: "selection" | "lasso";
598
+ initialized: boolean;
599
+ };
1446
600
  penMode: boolean;
1447
601
  penDetected: boolean;
1448
602
  exportBackground: boolean;
@@ -1460,13 +614,15 @@ export declare const actionLoadScene: {
1460
614
  currentItemTextAlign: string;
1461
615
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1462
616
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
617
+ currentHoveredFontFamily: number | null;
1463
618
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1464
619
  currentItemArrowType: "round" | "sharp" | "elbow";
620
+ currentItemFrameRole: ("marker" | null) | undefined;
1465
621
  cursorButton: "up" | "down";
1466
622
  scrolledOutside: boolean;
1467
623
  isResizing: boolean;
1468
- openMenu: "shape" | "canvas" | null;
1469
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
624
+ openMenu: "canvas" | "shape" | null;
625
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1470
626
  openSidebar: {
1471
627
  name: string;
1472
628
  tab?: string | undefined;
@@ -1476,11 +632,14 @@ export declare const actionLoadScene: {
1476
632
  previousSelectedElementIds: {
1477
633
  [id: string]: true;
1478
634
  };
635
+ selectedElementsAreBeingDragged: boolean;
1479
636
  toast: {
1480
637
  message: string;
1481
638
  closable?: boolean | undefined;
1482
639
  duration?: number | undefined;
1483
640
  } | null;
641
+ gridStep: number;
642
+ gridModeEnabled: boolean;
1484
643
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1485
644
  stats: {
1486
645
  open: boolean;
@@ -1494,8 +653,8 @@ export declare const actionLoadScene: {
1494
653
  shown: true;
1495
654
  data: import("../charts").Spreadsheet;
1496
655
  };
1497
- showHyperlinkPopup: false | "editor" | "info";
1498
- trayModeEnabled: boolean;
656
+ showHyperlinkPopup: false | "info" | "editor";
657
+ linkOpacity: number;
1499
658
  colorPalette?: {
1500
659
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1501
660
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1508,6 +667,7 @@ export declare const actionLoadScene: {
1508
667
  } | undefined;
1509
668
  allowWheelZoom?: boolean | undefined;
1510
669
  allowPinchZoom?: boolean | undefined;
670
+ disableContextMenu: boolean;
1511
671
  pinnedScripts?: string[] | undefined;
1512
672
  customPens?: any[] | undefined;
1513
673
  currentStrokeOptions?: any;
@@ -1520,8 +680,12 @@ export declare const actionLoadScene: {
1520
680
  x: number;
1521
681
  y: number;
1522
682
  } | null;
683
+ objectsSnapModeEnabled: boolean;
1523
684
  userToFollow: import("../types").UserToFollow | null;
1524
685
  followedBy: Set<import("../types").SocketId>;
686
+ lockedMultiSelections: {
687
+ [groupId: string]: true;
688
+ };
1525
689
  };
1526
690
  files: import("../types").BinaryFiles;
1527
691
  captureUpdate: "IMMEDIATELY";
@@ -1546,23 +710,28 @@ export declare const actionLoadScene: {
1546
710
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1547
711
  isBindingEnabled: boolean;
1548
712
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1549
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
713
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1550
714
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1551
715
  frameRendering: {
1552
716
  enabled: boolean;
1553
717
  name: boolean;
1554
718
  outline: boolean;
1555
719
  clip: boolean;
720
+ markerName: boolean;
721
+ markerEnabled: boolean;
1556
722
  };
1557
723
  editingFrame: string | null;
1558
724
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1559
725
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1560
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1561
726
  activeTool: {
1562
727
  lastActiveTool: import("../types").ActiveTool | null;
1563
728
  locked: boolean;
1564
729
  fromSelection: boolean;
1565
730
  } & import("../types").ActiveTool;
731
+ preferredSelectionTool: {
732
+ type: "selection" | "lasso";
733
+ initialized: boolean;
734
+ };
1566
735
  penMode: boolean;
1567
736
  penDetected: boolean;
1568
737
  exportBackground: boolean;
@@ -1584,6 +753,7 @@ export declare const actionLoadScene: {
1584
753
  currentHoveredFontFamily: number | null;
1585
754
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1586
755
  currentItemArrowType: "round" | "sharp" | "elbow";
756
+ currentItemFrameRole: ("marker" | null) | undefined;
1587
757
  viewBackgroundColor: string;
1588
758
  scrollX: number;
1589
759
  scrollY: number;
@@ -1595,19 +765,21 @@ export declare const actionLoadScene: {
1595
765
  zoom: Readonly<{
1596
766
  value: import("../types").NormalizedZoomValue;
1597
767
  }>;
1598
- openMenu: "shape" | "canvas" | null;
1599
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
768
+ openMenu: "canvas" | "shape" | null;
769
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1600
770
  openSidebar: {
1601
771
  name: string;
1602
772
  tab?: string | undefined;
1603
773
  } | null;
1604
774
  openDialog: {
1605
- name: "help" | "imageExport" | "jsonExport";
775
+ name: "imageExport" | "help" | "jsonExport";
1606
776
  } | {
1607
777
  name: "ttd";
1608
778
  tab: "mermaid" | "text-to-diagram";
1609
779
  } | {
1610
780
  name: "commandPalette";
781
+ } | {
782
+ name: "settings";
1611
783
  } | {
1612
784
  name: "elementLinkSelector";
1613
785
  sourceElementId: string;
@@ -1677,10 +849,8 @@ export declare const actionLoadScene: {
1677
849
  shown: true;
1678
850
  data: import("../charts").Spreadsheet;
1679
851
  };
1680
- pendingImageElementId: string | null;
1681
- showHyperlinkPopup: false | "editor" | "info";
852
+ showHyperlinkPopup: false | "info" | "editor";
1682
853
  linkOpacity: number;
1683
- trayModeEnabled: boolean;
1684
854
  colorPalette?: {
1685
855
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1686
856
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1693,6 +863,7 @@ export declare const actionLoadScene: {
1693
863
  } | undefined;
1694
864
  allowWheelZoom?: boolean | undefined;
1695
865
  allowPinchZoom?: boolean | undefined;
866
+ disableContextMenu: boolean;
1696
867
  pinnedScripts?: string[] | undefined;
1697
868
  customPens?: any[] | undefined;
1698
869
  currentStrokeOptions?: any;
@@ -1701,6 +872,10 @@ export declare const actionLoadScene: {
1701
872
  Bold: string;
1702
873
  Regular: string;
1703
874
  };
875
+ gridDirection: {
876
+ horizontal: boolean;
877
+ vertical: boolean;
878
+ };
1704
879
  highlightSearchResult: boolean;
1705
880
  dynamicStyle: {
1706
881
  [x: string]: string;
@@ -1711,7 +886,7 @@ export declare const actionLoadScene: {
1711
886
  nameColor: string;
1712
887
  };
1713
888
  invertBindingBehaviour: boolean;
1714
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
889
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1715
890
  snapLines: readonly import("../snapping").SnapLine[];
1716
891
  originSnapOffset: {
1717
892
  x: number;
@@ -1722,16 +897,15 @@ export declare const actionLoadScene: {
1722
897
  followedBy: Set<import("../types").SocketId>;
1723
898
  isCropping: boolean;
1724
899
  croppingElementId: string | null;
1725
- searchMatches: readonly {
1726
- id: string;
1727
- focus: boolean;
1728
- matchedLines: {
1729
- offsetX: number;
1730
- offsetY: number;
1731
- width: number;
1732
- height: number;
1733
- }[];
1734
- }[];
900
+ searchMatches: Readonly<{
901
+ focusedId: string | null;
902
+ matches: readonly import("../types").SearchMatch[];
903
+ }> | null;
904
+ activeLockedId: string | null;
905
+ lockedMultiSelections: {
906
+ [groupId: string]: true;
907
+ };
908
+ bindMode: import("@excalidraw/element/types").BindMode;
1735
909
  };
1736
910
  files: import("../types").BinaryFiles;
1737
911
  captureUpdate: "EVENTUALLY";
@@ -1740,223 +914,6 @@ export declare const actionLoadScene: {
1740
914
  } & {
1741
915
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1742
916
  };
1743
- export declare const actionExportWithDarkMode: {
1744
- name: "exportWithDarkMode";
1745
- label: string;
1746
- trackEvent: {
1747
- category: "export";
1748
- action: string;
1749
- };
1750
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1751
- appState: {
1752
- exportWithDarkMode: any;
1753
- contextMenu: {
1754
- items: import("../components/ContextMenu").ContextMenuItems;
1755
- top: number;
1756
- left: number;
1757
- } | null;
1758
- showWelcomeScreen: boolean;
1759
- isLoading: boolean;
1760
- errorMessage: import("react").ReactNode;
1761
- activeEmbeddable: {
1762
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1763
- state: "active" | "hover";
1764
- } | null;
1765
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1766
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1767
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1768
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1769
- isBindingEnabled: boolean;
1770
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1771
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1772
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1773
- frameRendering: {
1774
- enabled: boolean;
1775
- name: boolean;
1776
- outline: boolean;
1777
- clip: boolean;
1778
- };
1779
- editingFrame: string | null;
1780
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1781
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1782
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1783
- activeTool: {
1784
- lastActiveTool: import("../types").ActiveTool | null;
1785
- locked: boolean;
1786
- fromSelection: boolean;
1787
- } & import("../types").ActiveTool;
1788
- penMode: boolean;
1789
- penDetected: boolean;
1790
- exportBackground: boolean;
1791
- exportEmbedScene: boolean;
1792
- exportScale: number;
1793
- currentItemStrokeColor: string;
1794
- currentItemBackgroundColor: string;
1795
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1796
- currentItemStrokeWidth: number;
1797
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1798
- currentItemRoughness: number;
1799
- currentItemOpacity: number;
1800
- currentItemFontFamily: number;
1801
- currentItemFontSize: number;
1802
- currentItemTextAlign: string;
1803
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1804
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1805
- currentHoveredFontFamily: number | null;
1806
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1807
- currentItemArrowType: "round" | "sharp" | "elbow";
1808
- viewBackgroundColor: string;
1809
- scrollX: number;
1810
- scrollY: number;
1811
- cursorButton: "up" | "down";
1812
- scrolledOutside: boolean;
1813
- name: string | null;
1814
- isResizing: boolean;
1815
- isRotating: boolean;
1816
- zoom: Readonly<{
1817
- value: import("../types").NormalizedZoomValue;
1818
- }>;
1819
- openMenu: "shape" | "canvas" | null;
1820
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1821
- openSidebar: {
1822
- name: string;
1823
- tab?: string | undefined;
1824
- } | null;
1825
- openDialog: {
1826
- name: "help" | "imageExport" | "jsonExport";
1827
- } | {
1828
- name: "ttd";
1829
- tab: "mermaid" | "text-to-diagram";
1830
- } | {
1831
- name: "commandPalette";
1832
- } | {
1833
- name: "elementLinkSelector";
1834
- sourceElementId: string;
1835
- } | null;
1836
- defaultSidebarDockedPreference: boolean;
1837
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1838
- selectedElementIds: Readonly<{
1839
- [id: string]: true;
1840
- }>;
1841
- hoveredElementIds: Readonly<{
1842
- [id: string]: true;
1843
- }>;
1844
- previousSelectedElementIds: {
1845
- [id: string]: true;
1846
- };
1847
- selectedElementsAreBeingDragged: boolean;
1848
- shouldCacheIgnoreZoom: boolean;
1849
- toast: {
1850
- message: string;
1851
- closable?: boolean | undefined;
1852
- duration?: number | undefined;
1853
- } | null;
1854
- zenModeEnabled: boolean;
1855
- theme: Theme;
1856
- gridSize: number;
1857
- gridStep: number;
1858
- gridModeEnabled: boolean;
1859
- viewModeEnabled: boolean;
1860
- selectedGroupIds: {
1861
- [groupId: string]: boolean;
1862
- };
1863
- editingGroupId: string | null;
1864
- width: number;
1865
- height: number;
1866
- offsetTop: number;
1867
- offsetLeft: number;
1868
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1869
- collaborators: Map<import("../types").SocketId, Readonly<{
1870
- pointer?: import("../types").CollaboratorPointer | undefined;
1871
- button?: "up" | "down" | undefined;
1872
- selectedElementIds?: Readonly<{
1873
- [id: string]: true;
1874
- }> | undefined;
1875
- username?: string | null | undefined;
1876
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1877
- color?: {
1878
- background: string;
1879
- stroke: string;
1880
- } | undefined;
1881
- avatarUrl?: string | undefined;
1882
- id?: string | undefined;
1883
- socketId?: import("../types").SocketId | undefined;
1884
- isCurrentUser?: boolean | undefined;
1885
- isInCall?: boolean | undefined;
1886
- isSpeaking?: boolean | undefined;
1887
- isMuted?: boolean | undefined;
1888
- }>>;
1889
- stats: {
1890
- open: boolean;
1891
- panels: number;
1892
- };
1893
- currentChartType: import("@excalidraw/element/types").ChartType;
1894
- pasteDialog: {
1895
- shown: false;
1896
- data: null;
1897
- } | {
1898
- shown: true;
1899
- data: import("../charts").Spreadsheet;
1900
- };
1901
- pendingImageElementId: string | null;
1902
- showHyperlinkPopup: false | "editor" | "info";
1903
- linkOpacity: number;
1904
- trayModeEnabled: boolean;
1905
- colorPalette?: {
1906
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1907
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1908
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1909
- topPicks: {
1910
- canvasBackground: [string, string, string, string, string];
1911
- elementStroke: [string, string, string, string, string];
1912
- elementBackground: [string, string, string, string, string];
1913
- };
1914
- } | undefined;
1915
- allowWheelZoom?: boolean | undefined;
1916
- allowPinchZoom?: boolean | undefined;
1917
- pinnedScripts?: string[] | undefined;
1918
- customPens?: any[] | undefined;
1919
- currentStrokeOptions?: any;
1920
- resetCustomPen?: any;
1921
- gridColor: {
1922
- Bold: string;
1923
- Regular: string;
1924
- };
1925
- highlightSearchResult: boolean;
1926
- dynamicStyle: {
1927
- [x: string]: string;
1928
- };
1929
- frameColor: {
1930
- stroke: string;
1931
- fill: string;
1932
- nameColor: string;
1933
- };
1934
- invertBindingBehaviour: boolean;
1935
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1936
- snapLines: readonly import("../snapping").SnapLine[];
1937
- originSnapOffset: {
1938
- x: number;
1939
- y: number;
1940
- } | null;
1941
- objectsSnapModeEnabled: boolean;
1942
- userToFollow: import("../types").UserToFollow | null;
1943
- followedBy: Set<import("../types").SocketId>;
1944
- isCropping: boolean;
1945
- croppingElementId: string | null;
1946
- searchMatches: readonly {
1947
- id: string;
1948
- focus: boolean;
1949
- matchedLines: {
1950
- offsetX: number;
1951
- offsetY: number;
1952
- width: number;
1953
- height: number;
1954
- }[];
1955
- }[];
1956
- };
1957
- captureUpdate: "EVENTUALLY";
1958
- };
1959
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1960
- } & {
1961
- keyTest?: undefined;
917
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
918
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1962
919
  };