@excalidraw/excalidraw 0.18.0-58f7d33 → 0.18.0-5fffc47

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