@excalidraw/excalidraw 0.18.0-a30e1b2 → 0.18.0-a8acc82

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 (175) hide show
  1. package/dist/dev/chunk-6MX365WZ.js +5666 -0
  2. package/dist/dev/chunk-6MX365WZ.js.map +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js +7 -0
  4. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  5. package/dist/dev/{chunk-CARD3WJZ.js → chunk-QF5FRM6O.js} +7 -2
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-AYLHSOBV.js → image-GQCFJKGM.js} +3 -3
  8. package/dist/dev/index.css +187 -21
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +15073 -16288
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-E3O5XSXJ.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  17. package/dist/prod/chunk-R2M7VUMD.js +4 -0
  18. package/dist/prod/data/image-JWK7QZ22.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +27 -20
  21. package/dist/prod/locales/{en-44IKVKYT.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +38 -7
  25. package/dist/types/common/src/utils.d.ts +7 -5
  26. package/dist/types/element/src/Scene.d.ts +10 -6
  27. package/dist/types/element/src/align.d.ts +3 -2
  28. package/dist/types/element/src/binding.d.ts +11 -8
  29. package/dist/types/element/src/bounds.d.ts +12 -4
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +41 -9
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/dragElements.d.ts +1 -1
  36. package/dist/types/element/src/flowchart.d.ts +1 -1
  37. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  38. package/dist/types/element/src/frame.d.ts +2 -2
  39. package/dist/types/element/src/groups.d.ts +1 -0
  40. package/dist/types/element/src/index.d.ts +42 -0
  41. package/dist/types/element/src/linearElementEditor.d.ts +15 -24
  42. package/dist/types/element/src/mutateElement.d.ts +1 -1
  43. package/dist/types/element/src/newElement.d.ts +3 -2
  44. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  45. package/dist/types/element/src/renderElement.d.ts +4 -1
  46. package/dist/types/element/src/resizeElements.d.ts +2 -1
  47. package/dist/types/element/src/selection.d.ts +0 -5
  48. package/dist/types/element/src/shape.d.ts +42 -0
  49. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  50. package/dist/types/element/src/store.d.ts +19 -9
  51. package/dist/types/element/src/textElement.d.ts +2 -2
  52. package/dist/types/element/src/transformHandles.d.ts +2 -2
  53. package/dist/types/element/src/typeChecks.d.ts +16 -1
  54. package/dist/types/element/src/types.d.ts +10 -4
  55. package/dist/types/element/src/utils.d.ts +16 -6
  56. package/dist/types/element/src/zindex.d.ts +3 -3
  57. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -15
  58. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -10
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +134 -94
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +53 -33
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -5
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -17
  64. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  65. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  66. package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -5
  67. package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -26
  68. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -5
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +94 -67
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +66 -19
  71. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +81 -69
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -14
  74. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +534 -7
  75. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -7
  76. package/dist/types/excalidraw/actions/actionMenu.d.ts +26 -17
  77. package/dist/types/excalidraw/actions/actionNavigate.d.ts +16 -10
  78. package/dist/types/excalidraw/actions/actionProperties.d.ts +145 -83
  79. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -7
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -9
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -7
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -7
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -7
  84. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -7
  85. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -7
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -7
  87. package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
  88. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +3 -2
  90. package/dist/types/excalidraw/appState.d.ts +20 -10
  91. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  92. package/dist/types/excalidraw/components/Actions.d.ts +8 -5
  93. package/dist/types/excalidraw/components/App.d.ts +22 -21
  94. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  95. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  96. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +7 -2
  97. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  98. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  99. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  100. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  101. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  105. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  107. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  108. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  109. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  110. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  111. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  112. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  116. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  123. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  124. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  125. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  126. package/dist/types/excalidraw/components/icons.d.ts +9 -0
  127. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  128. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  129. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  130. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  131. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  132. package/dist/types/excalidraw/data/types.d.ts +4 -1
  133. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  134. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  135. package/dist/types/excalidraw/history.d.ts +21 -5
  136. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  137. package/dist/types/excalidraw/index.d.ts +11 -10
  138. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  139. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  140. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  141. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  142. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  143. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  144. package/dist/types/excalidraw/snapping.d.ts +2 -2
  145. package/dist/types/excalidraw/types.d.ts +24 -13
  146. package/dist/types/math/src/angle.d.ts +2 -0
  147. package/dist/types/math/src/constants.d.ts +3 -0
  148. package/dist/types/math/src/curve.d.ts +32 -0
  149. package/dist/types/math/src/index.d.ts +1 -0
  150. package/dist/types/math/src/point.d.ts +1 -1
  151. package/dist/types/math/src/rectangle.d.ts +2 -0
  152. package/dist/types/math/src/segment.d.ts +1 -0
  153. package/dist/types/math/src/vector.d.ts +4 -2
  154. package/dist/types/utils/src/bbox.d.ts +1 -1
  155. package/dist/types/utils/src/index.d.ts +1 -1
  156. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  157. package/history.ts +108 -45
  158. package/package.json +13 -10
  159. package/dist/dev/chunk-CARD3WJZ.js.map +0 -7
  160. package/dist/dev/chunk-ETWEPOFC.js +0 -18701
  161. package/dist/dev/chunk-ETWEPOFC.js.map +0 -7
  162. package/dist/dev/chunk-RS23HYC4.js +0 -7
  163. package/dist/dev/chunk-RS23HYC4.js.map +0 -7
  164. package/dist/prod/chunk-6BSJPDKJ.js +0 -33
  165. package/dist/prod/chunk-FGHASORR.js +0 -12
  166. package/dist/prod/chunk-SBKTMZM7.js +0 -7
  167. package/dist/prod/data/image-VAYKYPXV.js +0 -1
  168. package/dist/types/element/src/Shape.d.ts +0 -17
  169. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  170. package/dist/types/element/src/shapes.d.ts +0 -23
  171. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  172. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  173. package/dist/types/utils/src/collision.d.ts +0 -8
  174. /package/dist/dev/data/{image-AYLHSOBV.js.map → image-GQCFJKGM.js.map} +0 -0
  175. /package/dist/dev/locales/{en-E3O5XSXJ.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
3
2
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
4
3
  export declare const actionToggleLinearEditor: {
5
4
  name: "toggleLinearEditor";
@@ -12,7 +11,39 @@ export declare const actionToggleLinearEditor: {
12
11
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
13
12
  perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
14
13
  appState: {
15
- editingLinearElement: LinearElementEditor | null;
14
+ selectedLinearElement: {
15
+ isEditing: boolean;
16
+ elementId: string & {
17
+ _brand: "excalidrawLinearElementId";
18
+ };
19
+ selectedPointsIndices: readonly number[] | null;
20
+ pointerDownState: Readonly<{
21
+ prevSelectedPointsIndices: readonly number[] | null;
22
+ lastClickedPoint: number;
23
+ lastClickedIsEndPoint: boolean;
24
+ origin: Readonly<{
25
+ x: number;
26
+ y: number;
27
+ }> | null;
28
+ segmentMidpoint: {
29
+ value: import("@excalidraw/math").GlobalPoint | null;
30
+ index: number | null;
31
+ added: boolean;
32
+ };
33
+ }>;
34
+ isDragging: boolean;
35
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
36
+ pointerOffset: Readonly<{
37
+ x: number;
38
+ y: number;
39
+ }>;
40
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
42
+ hoverPointIndex: number;
43
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
44
+ elbowed: boolean;
45
+ customLineAngle: number | null;
46
+ };
16
47
  contextMenu: {
17
48
  items: import("../components/ContextMenu").ContextMenuItems;
18
49
  top: number;
@@ -31,7 +62,7 @@ export declare const actionToggleLinearEditor: {
31
62
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
63
  isBindingEnabled: boolean;
33
64
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
65
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
35
66
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
67
  frameRendering: {
37
68
  enabled: boolean;
@@ -80,7 +111,7 @@ export declare const actionToggleLinearEditor: {
80
111
  value: import("../types").NormalizedZoomValue;
81
112
  }>;
82
113
  openMenu: "canvas" | "shape" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
114
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
115
  openSidebar: {
85
116
  name: string;
86
117
  tab?: string | undefined;
@@ -161,9 +192,7 @@ export declare const actionToggleLinearEditor: {
161
192
  shown: true;
162
193
  data: import("../charts").Spreadsheet;
163
194
  };
164
- pendingImageElementId: string | null;
165
195
  showHyperlinkPopup: false | "editor" | "info";
166
- selectedLinearElement: LinearElementEditor | null;
167
196
  snapLines: readonly import("../snapping").SnapLine[];
168
197
  originSnapOffset: {
169
198
  x: number;
@@ -178,10 +207,508 @@ export declare const actionToggleLinearEditor: {
178
207
  focusedId: string | null;
179
208
  matches: readonly import("../types").SearchMatch[];
180
209
  }> | null;
210
+ activeLockedId: string | null;
211
+ lockedMultiSelections: {
212
+ [groupId: string]: true;
213
+ };
214
+ stylesPanelMode: "compact" | "full";
181
215
  };
182
216
  captureUpdate: "IMMEDIATELY";
183
217
  };
184
- PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
218
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
219
+ } & {
220
+ keyTest?: undefined;
221
+ };
222
+ export declare const actionTogglePolygon: {
223
+ name: "togglePolygon";
224
+ category: string;
225
+ icon: import("react/jsx-runtime").JSX.Element;
226
+ keywords: string[];
227
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
228
+ trackEvent: {
229
+ category: "element";
230
+ };
231
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
232
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
233
+ elements: ((Readonly<{
234
+ id: string;
235
+ x: number;
236
+ y: number;
237
+ strokeColor: string;
238
+ backgroundColor: string;
239
+ fillStyle: import("@excalidraw/element/types").FillStyle;
240
+ strokeWidth: number;
241
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
242
+ roundness: {
243
+ type: import("@excalidraw/element/types").RoundnessType;
244
+ value?: number | undefined;
245
+ } | null;
246
+ roughness: number;
247
+ opacity: number;
248
+ width: number;
249
+ height: number;
250
+ angle: import("@excalidraw/math").Radians;
251
+ seed: number;
252
+ version: number;
253
+ versionNonce: number;
254
+ index: import("@excalidraw/element/types").FractionalIndex | null;
255
+ isDeleted: boolean;
256
+ groupIds: readonly string[];
257
+ frameId: string | null;
258
+ boundElements: readonly Readonly<{
259
+ id: string;
260
+ type: "arrow" | "text";
261
+ }>[] | null;
262
+ updated: number;
263
+ link: string | null;
264
+ locked: boolean;
265
+ customData?: Record<string, any> | undefined;
266
+ }> & Readonly<{
267
+ type: "line" | "arrow";
268
+ points: readonly import("@excalidraw/math").LocalPoint[];
269
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
270
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
271
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
272
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
273
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
274
+ }> & {
275
+ index: import("@excalidraw/element/types").FractionalIndex;
276
+ }) | (Readonly<{
277
+ id: string;
278
+ x: number;
279
+ y: number;
280
+ strokeColor: string;
281
+ backgroundColor: string;
282
+ fillStyle: import("@excalidraw/element/types").FillStyle;
283
+ strokeWidth: number;
284
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
285
+ roundness: {
286
+ type: import("@excalidraw/element/types").RoundnessType;
287
+ value?: number | undefined;
288
+ } | null;
289
+ roughness: number;
290
+ opacity: number;
291
+ width: number;
292
+ height: number;
293
+ angle: import("@excalidraw/math").Radians;
294
+ seed: number;
295
+ version: number;
296
+ versionNonce: number;
297
+ index: import("@excalidraw/element/types").FractionalIndex | null;
298
+ isDeleted: boolean;
299
+ groupIds: readonly string[];
300
+ frameId: string | null;
301
+ boundElements: readonly Readonly<{
302
+ id: string;
303
+ type: "arrow" | "text";
304
+ }>[] | null;
305
+ updated: number;
306
+ link: string | null;
307
+ locked: boolean;
308
+ customData?: Record<string, any> | undefined;
309
+ }> & {
310
+ type: "selection";
311
+ } & {
312
+ index: import("@excalidraw/element/types").FractionalIndex;
313
+ }) | (Readonly<{
314
+ id: string;
315
+ x: number;
316
+ y: number;
317
+ strokeColor: string;
318
+ backgroundColor: string;
319
+ fillStyle: import("@excalidraw/element/types").FillStyle;
320
+ strokeWidth: number;
321
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
322
+ roundness: {
323
+ type: import("@excalidraw/element/types").RoundnessType;
324
+ value?: number | undefined;
325
+ } | null;
326
+ roughness: number;
327
+ opacity: number;
328
+ width: number;
329
+ height: number;
330
+ angle: import("@excalidraw/math").Radians;
331
+ seed: number;
332
+ version: number;
333
+ versionNonce: number;
334
+ index: import("@excalidraw/element/types").FractionalIndex | null;
335
+ isDeleted: boolean;
336
+ groupIds: readonly string[];
337
+ frameId: string | null;
338
+ boundElements: readonly Readonly<{
339
+ id: string;
340
+ type: "arrow" | "text";
341
+ }>[] | null;
342
+ updated: number;
343
+ link: string | null;
344
+ locked: boolean;
345
+ customData?: Record<string, any> | undefined;
346
+ }> & {
347
+ type: "rectangle";
348
+ } & {
349
+ index: import("@excalidraw/element/types").FractionalIndex;
350
+ }) | (Readonly<{
351
+ id: string;
352
+ x: number;
353
+ y: number;
354
+ strokeColor: string;
355
+ backgroundColor: string;
356
+ fillStyle: import("@excalidraw/element/types").FillStyle;
357
+ strokeWidth: number;
358
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
359
+ roundness: {
360
+ type: import("@excalidraw/element/types").RoundnessType;
361
+ value?: number | undefined;
362
+ } | null;
363
+ roughness: number;
364
+ opacity: number;
365
+ width: number;
366
+ height: number;
367
+ angle: import("@excalidraw/math").Radians;
368
+ seed: number;
369
+ version: number;
370
+ versionNonce: number;
371
+ index: import("@excalidraw/element/types").FractionalIndex | null;
372
+ isDeleted: boolean;
373
+ groupIds: readonly string[];
374
+ frameId: string | null;
375
+ boundElements: readonly Readonly<{
376
+ id: string;
377
+ type: "arrow" | "text";
378
+ }>[] | null;
379
+ updated: number;
380
+ link: string | null;
381
+ locked: boolean;
382
+ customData?: Record<string, any> | undefined;
383
+ }> & {
384
+ type: "diamond";
385
+ } & {
386
+ index: import("@excalidraw/element/types").FractionalIndex;
387
+ }) | (Readonly<{
388
+ id: string;
389
+ x: number;
390
+ y: number;
391
+ strokeColor: string;
392
+ backgroundColor: string;
393
+ fillStyle: import("@excalidraw/element/types").FillStyle;
394
+ strokeWidth: number;
395
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
396
+ roundness: {
397
+ type: import("@excalidraw/element/types").RoundnessType;
398
+ value?: number | undefined;
399
+ } | null;
400
+ roughness: number;
401
+ opacity: number;
402
+ width: number;
403
+ height: number;
404
+ angle: import("@excalidraw/math").Radians;
405
+ seed: number;
406
+ version: number;
407
+ versionNonce: number;
408
+ index: import("@excalidraw/element/types").FractionalIndex | null;
409
+ isDeleted: boolean;
410
+ groupIds: readonly string[];
411
+ frameId: string | null;
412
+ boundElements: readonly Readonly<{
413
+ id: string;
414
+ type: "arrow" | "text";
415
+ }>[] | null;
416
+ updated: number;
417
+ link: string | null;
418
+ locked: boolean;
419
+ customData?: Record<string, any> | undefined;
420
+ }> & {
421
+ type: "ellipse";
422
+ } & {
423
+ index: import("@excalidraw/element/types").FractionalIndex;
424
+ }) | (Readonly<{
425
+ id: string;
426
+ x: number;
427
+ y: number;
428
+ strokeColor: string;
429
+ backgroundColor: string;
430
+ fillStyle: import("@excalidraw/element/types").FillStyle;
431
+ strokeWidth: number;
432
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
433
+ roundness: {
434
+ type: import("@excalidraw/element/types").RoundnessType;
435
+ value?: number | undefined;
436
+ } | null;
437
+ roughness: number;
438
+ opacity: number;
439
+ width: number;
440
+ height: number;
441
+ angle: import("@excalidraw/math").Radians;
442
+ seed: number;
443
+ version: number;
444
+ versionNonce: number;
445
+ index: import("@excalidraw/element/types").FractionalIndex | null;
446
+ isDeleted: boolean;
447
+ groupIds: readonly string[];
448
+ frameId: string | null;
449
+ boundElements: readonly Readonly<{
450
+ id: string;
451
+ type: "arrow" | "text";
452
+ }>[] | null;
453
+ updated: number;
454
+ link: string | null;
455
+ locked: boolean;
456
+ customData?: Record<string, any> | undefined;
457
+ }> & Readonly<{
458
+ type: "embeddable";
459
+ }> & {
460
+ index: import("@excalidraw/element/types").FractionalIndex;
461
+ }) | (Readonly<{
462
+ id: string;
463
+ x: number;
464
+ y: number;
465
+ strokeColor: string;
466
+ backgroundColor: string;
467
+ fillStyle: import("@excalidraw/element/types").FillStyle;
468
+ strokeWidth: number;
469
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
470
+ roundness: {
471
+ type: import("@excalidraw/element/types").RoundnessType;
472
+ value?: number | undefined;
473
+ } | null;
474
+ roughness: number;
475
+ opacity: number;
476
+ width: number;
477
+ height: number;
478
+ angle: import("@excalidraw/math").Radians;
479
+ seed: number;
480
+ version: number;
481
+ versionNonce: number;
482
+ index: import("@excalidraw/element/types").FractionalIndex | null;
483
+ isDeleted: boolean;
484
+ groupIds: readonly string[];
485
+ frameId: string | null;
486
+ boundElements: readonly Readonly<{
487
+ id: string;
488
+ type: "arrow" | "text";
489
+ }>[] | null;
490
+ updated: number;
491
+ link: string | null;
492
+ locked: boolean;
493
+ customData?: Record<string, any> | undefined;
494
+ }> & Readonly<{
495
+ type: "iframe";
496
+ customData?: {
497
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
498
+ } | undefined;
499
+ }> & {
500
+ index: import("@excalidraw/element/types").FractionalIndex;
501
+ }) | (Readonly<{
502
+ id: string;
503
+ x: number;
504
+ y: number;
505
+ strokeColor: string;
506
+ backgroundColor: string;
507
+ fillStyle: import("@excalidraw/element/types").FillStyle;
508
+ strokeWidth: number;
509
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
510
+ roundness: {
511
+ type: import("@excalidraw/element/types").RoundnessType;
512
+ value?: number | undefined;
513
+ } | null;
514
+ roughness: number;
515
+ opacity: number;
516
+ width: number;
517
+ height: number;
518
+ angle: import("@excalidraw/math").Radians;
519
+ seed: number;
520
+ version: number;
521
+ versionNonce: number;
522
+ index: import("@excalidraw/element/types").FractionalIndex | null;
523
+ isDeleted: boolean;
524
+ groupIds: readonly string[];
525
+ frameId: string | null;
526
+ boundElements: readonly Readonly<{
527
+ id: string;
528
+ type: "arrow" | "text";
529
+ }>[] | null;
530
+ updated: number;
531
+ link: string | null;
532
+ locked: boolean;
533
+ customData?: Record<string, any> | undefined;
534
+ }> & Readonly<{
535
+ type: "image";
536
+ fileId: import("@excalidraw/element/types").FileId | null;
537
+ status: "pending" | "error" | "saved";
538
+ scale: [number, number];
539
+ crop: import("@excalidraw/element/types").ImageCrop | null;
540
+ }> & {
541
+ index: import("@excalidraw/element/types").FractionalIndex;
542
+ }) | (Readonly<{
543
+ id: string;
544
+ x: number;
545
+ y: number;
546
+ strokeColor: string;
547
+ backgroundColor: string;
548
+ fillStyle: import("@excalidraw/element/types").FillStyle;
549
+ strokeWidth: number;
550
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
551
+ roundness: {
552
+ type: import("@excalidraw/element/types").RoundnessType;
553
+ value?: number | undefined;
554
+ } | null;
555
+ roughness: number;
556
+ opacity: number;
557
+ width: number;
558
+ height: number;
559
+ angle: import("@excalidraw/math").Radians;
560
+ seed: number;
561
+ version: number;
562
+ versionNonce: number;
563
+ index: import("@excalidraw/element/types").FractionalIndex | null;
564
+ isDeleted: boolean;
565
+ groupIds: readonly string[];
566
+ frameId: string | null;
567
+ boundElements: readonly Readonly<{
568
+ id: string;
569
+ type: "arrow" | "text";
570
+ }>[] | null;
571
+ updated: number;
572
+ link: string | null;
573
+ locked: boolean;
574
+ customData?: Record<string, any> | undefined;
575
+ }> & {
576
+ type: "frame";
577
+ name: string | null;
578
+ } & {
579
+ index: import("@excalidraw/element/types").FractionalIndex;
580
+ }) | (Readonly<{
581
+ id: string;
582
+ x: number;
583
+ y: number;
584
+ strokeColor: string;
585
+ backgroundColor: string;
586
+ fillStyle: import("@excalidraw/element/types").FillStyle;
587
+ strokeWidth: number;
588
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
589
+ roundness: {
590
+ type: import("@excalidraw/element/types").RoundnessType;
591
+ value?: number | undefined;
592
+ } | null;
593
+ roughness: number;
594
+ opacity: number;
595
+ width: number;
596
+ height: number;
597
+ angle: import("@excalidraw/math").Radians;
598
+ seed: number;
599
+ version: number;
600
+ versionNonce: number;
601
+ index: import("@excalidraw/element/types").FractionalIndex | null;
602
+ isDeleted: boolean;
603
+ groupIds: readonly string[];
604
+ frameId: string | null;
605
+ boundElements: readonly Readonly<{
606
+ id: string;
607
+ type: "arrow" | "text";
608
+ }>[] | null;
609
+ updated: number;
610
+ link: string | null;
611
+ locked: boolean;
612
+ customData?: Record<string, any> | undefined;
613
+ }> & {
614
+ type: "magicframe";
615
+ name: string | null;
616
+ } & {
617
+ index: import("@excalidraw/element/types").FractionalIndex;
618
+ }) | (Readonly<{
619
+ id: string;
620
+ x: number;
621
+ y: number;
622
+ strokeColor: string;
623
+ backgroundColor: string;
624
+ fillStyle: import("@excalidraw/element/types").FillStyle;
625
+ strokeWidth: number;
626
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
627
+ roundness: {
628
+ type: import("@excalidraw/element/types").RoundnessType;
629
+ value?: number | undefined;
630
+ } | null;
631
+ roughness: number;
632
+ opacity: number;
633
+ width: number;
634
+ height: number;
635
+ angle: import("@excalidraw/math").Radians;
636
+ seed: number;
637
+ version: number;
638
+ versionNonce: number;
639
+ index: import("@excalidraw/element/types").FractionalIndex | null;
640
+ isDeleted: boolean;
641
+ groupIds: readonly string[];
642
+ frameId: string | null;
643
+ boundElements: readonly Readonly<{
644
+ id: string;
645
+ type: "arrow" | "text";
646
+ }>[] | null;
647
+ updated: number;
648
+ link: string | null;
649
+ locked: boolean;
650
+ customData?: Record<string, any> | undefined;
651
+ }> & Readonly<{
652
+ type: "text";
653
+ fontSize: number;
654
+ fontFamily: number;
655
+ text: string;
656
+ textAlign: string;
657
+ verticalAlign: string;
658
+ containerId: string | null;
659
+ originalText: string;
660
+ autoResize: boolean;
661
+ lineHeight: number & {
662
+ _brand: "unitlessLineHeight";
663
+ };
664
+ }> & {
665
+ index: import("@excalidraw/element/types").FractionalIndex;
666
+ }) | (Readonly<{
667
+ id: string;
668
+ x: number;
669
+ y: number;
670
+ strokeColor: string;
671
+ backgroundColor: string;
672
+ fillStyle: import("@excalidraw/element/types").FillStyle;
673
+ strokeWidth: number;
674
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
675
+ roundness: {
676
+ type: import("@excalidraw/element/types").RoundnessType;
677
+ value?: number | undefined;
678
+ } | null;
679
+ roughness: number;
680
+ opacity: number;
681
+ width: number;
682
+ height: number;
683
+ angle: import("@excalidraw/math").Radians;
684
+ seed: number;
685
+ version: number;
686
+ versionNonce: number;
687
+ index: import("@excalidraw/element/types").FractionalIndex | null;
688
+ isDeleted: boolean;
689
+ groupIds: readonly string[];
690
+ frameId: string | null;
691
+ boundElements: readonly Readonly<{
692
+ id: string;
693
+ type: "arrow" | "text";
694
+ }>[] | null;
695
+ updated: number;
696
+ link: string | null;
697
+ locked: boolean;
698
+ customData?: Record<string, any> | undefined;
699
+ }> & Readonly<{
700
+ type: "freedraw";
701
+ points: readonly import("@excalidraw/math").LocalPoint[];
702
+ pressures: readonly number[];
703
+ simulatePressure: boolean;
704
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
705
+ }> & {
706
+ index: import("@excalidraw/element/types").FractionalIndex;
707
+ }))[];
708
+ appState: Readonly<import("../types").AppState>;
709
+ captureUpdate: "IMMEDIATELY";
710
+ };
711
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
185
712
  } & {
186
713
  keyTest?: undefined;
187
714
  };
@@ -26,7 +26,7 @@ export declare const actionLink: {
26
26
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
30
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
@@ -37,7 +37,6 @@ export declare const actionLink: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
@@ -75,7 +74,7 @@ export declare const actionLink: {
75
74
  zoom: Readonly<{
76
75
  value: import("../types").NormalizedZoomValue;
77
76
  }>;
78
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
77
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
79
78
  openSidebar: {
80
79
  name: string;
81
80
  tab?: string | undefined;
@@ -156,8 +155,7 @@ export declare const actionLink: {
156
155
  shown: true;
157
156
  data: import("../charts").Spreadsheet;
158
157
  };
159
- pendingImageElementId: string | null;
160
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
158
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
159
  snapLines: readonly import("../snapping").SnapLine[];
162
160
  originSnapOffset: {
163
161
  x: number;
@@ -172,6 +170,11 @@ export declare const actionLink: {
172
170
  focusedId: string | null;
173
171
  matches: readonly import("../types").SearchMatch[];
174
172
  }> | null;
173
+ activeLockedId: string | null;
174
+ lockedMultiSelections: {
175
+ [groupId: string]: true;
176
+ };
177
+ stylesPanelMode: "compact" | "full";
175
178
  };
176
179
  captureUpdate: "IMMEDIATELY";
177
180
  };
@@ -179,9 +182,9 @@ export declare const actionLink: {
179
182
  category: "hyperlink";
180
183
  action: string;
181
184
  };
182
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
185
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
183
186
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
184
187
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
185
188
  } & {
186
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
189
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
187
190
  };