@zsviczian/excalidraw 0.18.0-5 → 0.18.0-50

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 (188) hide show
  1. package/dist/excalidraw.development.js +745 -503
  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 +1062 -429
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +14 -3
  7. package/types/common/src/commonObsidianUtils.d.ts +13 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +2 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +20 -5
  15. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  16. package/types/element/src/align.d.ts +4 -3
  17. package/types/element/src/binding.d.ts +27 -17
  18. package/types/element/src/bounds.d.ts +14 -6
  19. package/types/element/src/collision.d.ts +18 -12
  20. package/types/element/src/cropElement.d.ts +1 -1
  21. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  22. package/types/element/src/distance.d.ts +2 -2
  23. package/types/element/src/distribute.d.ts +2 -1
  24. package/types/element/src/dragElements.d.ts +3 -2
  25. package/types/element/src/duplicate.d.ts +10 -13
  26. package/types/element/src/elbowArrow.d.ts +1 -1
  27. package/types/element/src/flowchart.d.ts +3 -2
  28. package/types/element/src/fractionalIndex.d.ts +9 -3
  29. package/types/element/src/frame.d.ts +5 -4
  30. package/types/element/src/groups.d.ts +1 -0
  31. package/types/element/src/index.d.ts +44 -2
  32. package/types/element/src/linearElementEditor.d.ts +23 -36
  33. package/types/element/src/mutateElement.d.ts +11 -3
  34. package/types/element/src/newElement.d.ts +6 -4
  35. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  36. package/types/element/src/renderElement.d.ts +4 -1
  37. package/types/element/src/resizeElements.d.ts +6 -5
  38. package/types/element/src/resizeTest.d.ts +5 -4
  39. package/types/element/src/selection.d.ts +11 -5
  40. package/types/element/src/shape.d.ts +42 -0
  41. package/types/element/src/sizeHelpers.d.ts +2 -2
  42. package/types/element/src/store.d.ts +237 -0
  43. package/types/element/src/textElement.d.ts +5 -3
  44. package/types/element/src/transformHandles.d.ts +5 -4
  45. package/types/element/src/typeChecks.d.ts +19 -1
  46. package/types/element/src/types.d.ts +25 -2
  47. package/types/element/src/utils.d.ts +16 -6
  48. package/types/element/src/zindex.d.ts +1 -1
  49. package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
  50. package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
  51. package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
  52. package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
  53. package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
  54. package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
  55. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  56. package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
  57. package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
  58. package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
  59. package/types/excalidraw/actions/actionExport.d.ts +237 -174
  60. package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
  61. package/types/excalidraw/actions/actionFrame.d.ts +157 -120
  62. package/types/excalidraw/actions/actionGroup.d.ts +50 -36
  63. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  64. package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
  65. package/types/excalidraw/actions/actionLink.d.ts +23 -16
  66. package/types/excalidraw/actions/actionMenu.d.ts +25 -456
  67. package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
  68. package/types/excalidraw/actions/actionProperties.d.ts +629 -273
  69. package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
  70. package/types/excalidraw/actions/actionStyles.d.ts +25 -18
  71. package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
  72. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
  73. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
  74. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  75. package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
  76. package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
  77. package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
  78. package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
  79. package/types/excalidraw/actions/index.d.ts +4 -2
  80. package/types/excalidraw/actions/types.d.ts +4 -3
  81. package/types/excalidraw/appState.d.ts +24 -10
  82. package/types/excalidraw/clipboard.d.ts +68 -5
  83. package/types/excalidraw/components/Actions.d.ts +20 -7
  84. package/types/excalidraw/components/App.d.ts +63 -38
  85. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  86. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  87. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  88. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  89. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  90. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  91. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  92. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  93. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  96. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  97. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  98. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  99. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  100. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  101. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  102. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  103. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  104. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  105. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  106. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  107. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  108. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  109. package/types/excalidraw/components/Popover.d.ts +2 -1
  110. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  111. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  112. package/types/excalidraw/components/Range.d.ts +3 -3
  113. package/types/excalidraw/components/Section.d.ts +1 -0
  114. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  115. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  116. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  117. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  118. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  119. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  120. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  121. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  122. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  123. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  124. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  125. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  127. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  128. package/types/excalidraw/components/TextField.d.ts +1 -0
  129. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  130. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  131. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  132. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  133. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  134. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  135. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  136. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  137. package/types/excalidraw/components/icons.d.ts +13 -0
  138. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  139. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  140. package/types/excalidraw/components/shapes.d.ts +115 -5
  141. package/types/excalidraw/data/blob.d.ts +3 -7
  142. package/types/excalidraw/data/reconcile.d.ts +1 -0
  143. package/types/excalidraw/data/restore.d.ts +6 -1
  144. package/types/excalidraw/data/transform.d.ts +1 -1
  145. package/types/excalidraw/data/types.d.ts +4 -1
  146. package/types/excalidraw/editor-jotai.d.ts +6 -6
  147. package/types/excalidraw/eraser/index.d.ts +12 -0
  148. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  149. package/types/excalidraw/history.d.ts +30 -22
  150. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  151. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  152. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  153. package/types/excalidraw/index.d.ts +15 -14
  154. package/types/excalidraw/lasso/index.d.ts +1 -0
  155. package/types/excalidraw/lasso/utils.d.ts +3 -3
  156. package/types/excalidraw/obsidianUtils.d.ts +22 -4
  157. package/types/excalidraw/renderer/helpers.d.ts +7 -2
  158. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  159. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  160. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  161. package/types/excalidraw/scene/index.d.ts +2 -2
  162. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  163. package/types/excalidraw/scene/types.d.ts +5 -3
  164. package/types/excalidraw/shortcut.d.ts +1 -0
  165. package/types/excalidraw/snapping.d.ts +2 -2
  166. package/types/excalidraw/types.d.ts +68 -30
  167. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  168. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  169. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  170. package/types/math/src/angle.d.ts +2 -0
  171. package/types/math/src/constants.d.ts +3 -0
  172. package/types/math/src/curve.d.ts +34 -0
  173. package/types/math/src/index.d.ts +1 -0
  174. package/types/math/src/point.d.ts +1 -1
  175. package/types/math/src/rectangle.d.ts +2 -0
  176. package/types/math/src/segment.d.ts +1 -0
  177. package/types/math/src/types.d.ts +1 -0
  178. package/types/math/src/vector.d.ts +8 -2
  179. package/types/utils/src/bbox.d.ts +1 -1
  180. package/types/utils/src/index.d.ts +1 -1
  181. package/types/utils/src/withinBounds.d.ts +1 -1
  182. package/types/element/src/Shape.d.ts +0 -17
  183. package/types/element/src/ShapeCache.d.ts +0 -25
  184. package/types/element/src/shapes.d.ts +0 -23
  185. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  186. package/types/excalidraw/store.d.ts +0 -129
  187. package/types/excalidraw/visualdebug.d.ts +0 -41
  188. package/types/utils/src/collision.d.ts +0 -8
@@ -1,4 +1,3 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
1
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
3
2
  export declare const actionToggleLinearEditor: {
4
3
  name: "toggleLinearEditor";
@@ -11,7 +10,39 @@ export declare const actionToggleLinearEditor: {
11
10
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
11
  perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
13
12
  appState: {
14
- editingLinearElement: LinearElementEditor | null;
13
+ selectedLinearElement: {
14
+ isEditing: boolean;
15
+ elementId: string & {
16
+ _brand: "excalidrawLinearElementId";
17
+ };
18
+ selectedPointsIndices: readonly number[] | null;
19
+ pointerDownState: Readonly<{
20
+ prevSelectedPointsIndices: readonly number[] | null;
21
+ lastClickedPoint: number;
22
+ lastClickedIsEndPoint: boolean;
23
+ origin: Readonly<{
24
+ x: number;
25
+ y: number;
26
+ }> | null;
27
+ segmentMidpoint: {
28
+ value: import("@excalidraw/math").GlobalPoint | null;
29
+ index: number | null;
30
+ added: boolean;
31
+ };
32
+ }>;
33
+ isDragging: boolean;
34
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
35
+ pointerOffset: Readonly<{
36
+ x: number;
37
+ y: number;
38
+ }>;
39
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
40
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
+ hoverPointIndex: number;
42
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
43
+ elbowed: boolean;
44
+ customLineAngle: number | null;
45
+ };
15
46
  contextMenu: {
16
47
  items: import("../components/ContextMenu").ContextMenuItems;
17
48
  top: number;
@@ -30,13 +61,15 @@ export declare const actionToggleLinearEditor: {
30
61
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
62
  isBindingEnabled: boolean;
32
63
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
64
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
65
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
66
  frameRendering: {
36
67
  enabled: boolean;
37
68
  name: boolean;
38
69
  outline: boolean;
39
70
  clip: boolean;
71
+ markerName: boolean;
72
+ markerEnabled: boolean;
40
73
  };
41
74
  editingFrame: string | null;
42
75
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -46,6 +79,10 @@ export declare const actionToggleLinearEditor: {
46
79
  locked: boolean;
47
80
  fromSelection: boolean;
48
81
  } & import("../types").ActiveTool;
82
+ preferredSelectionTool: {
83
+ type: "selection" | "lasso";
84
+ initialized: boolean;
85
+ };
49
86
  penMode: boolean;
50
87
  penDetected: boolean;
51
88
  exportBackground: boolean;
@@ -67,6 +104,7 @@ export declare const actionToggleLinearEditor: {
67
104
  currentHoveredFontFamily: number | null;
68
105
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
106
  currentItemArrowType: "round" | "sharp" | "elbow";
107
+ currentItemFrameRole: ("marker" | null) | undefined;
70
108
  viewBackgroundColor: string;
71
109
  scrollX: number;
72
110
  scrollY: number;
@@ -78,8 +116,8 @@ export declare const actionToggleLinearEditor: {
78
116
  zoom: Readonly<{
79
117
  value: import("../types").NormalizedZoomValue;
80
118
  }>;
81
- openMenu: "shape" | "canvas" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
119
+ openMenu: "canvas" | "shape" | null;
120
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
121
  openSidebar: {
84
122
  name: string;
85
123
  tab?: string | undefined;
@@ -160,10 +198,8 @@ export declare const actionToggleLinearEditor: {
160
198
  shown: true;
161
199
  data: import("../charts").Spreadsheet;
162
200
  };
163
- pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
201
+ showHyperlinkPopup: false | "info" | "editor";
165
202
  linkOpacity: number;
166
- trayModeEnabled: boolean;
167
203
  colorPalette?: {
168
204
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
169
205
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -176,6 +212,7 @@ export declare const actionToggleLinearEditor: {
176
212
  } | undefined;
177
213
  allowWheelZoom?: boolean | undefined;
178
214
  allowPinchZoom?: boolean | undefined;
215
+ disableContextMenu: boolean;
179
216
  pinnedScripts?: string[] | undefined;
180
217
  customPens?: any[] | undefined;
181
218
  currentStrokeOptions?: any;
@@ -184,6 +221,10 @@ export declare const actionToggleLinearEditor: {
184
221
  Bold: string;
185
222
  Regular: string;
186
223
  };
224
+ gridDirection: {
225
+ horizontal: boolean;
226
+ vertical: boolean;
227
+ };
187
228
  highlightSearchResult: boolean;
188
229
  dynamicStyle: {
189
230
  [x: string]: string;
@@ -194,7 +235,6 @@ export declare const actionToggleLinearEditor: {
194
235
  nameColor: string;
195
236
  };
196
237
  invertBindingBehaviour: boolean;
197
- selectedLinearElement: LinearElementEditor | null;
198
238
  snapLines: readonly import("../snapping").SnapLine[];
199
239
  originSnapOffset: {
200
240
  x: number;
@@ -205,20 +245,523 @@ export declare const actionToggleLinearEditor: {
205
245
  followedBy: Set<import("../types").SocketId>;
206
246
  isCropping: boolean;
207
247
  croppingElementId: string | null;
208
- searchMatches: readonly {
209
- id: string;
210
- focus: boolean;
211
- matchedLines: {
212
- offsetX: number;
213
- offsetY: number;
214
- width: number;
215
- height: number;
216
- }[];
217
- }[];
248
+ searchMatches: Readonly<{
249
+ focusedId: string | null;
250
+ matches: readonly import("../types").SearchMatch[];
251
+ }> | null;
252
+ activeLockedId: string | null;
253
+ lockedMultiSelections: {
254
+ [groupId: string]: true;
255
+ };
218
256
  };
219
257
  captureUpdate: "IMMEDIATELY";
220
258
  };
221
- PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
259
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
260
+ } & {
261
+ keyTest?: undefined;
262
+ };
263
+ export declare const actionTogglePolygon: {
264
+ name: "togglePolygon";
265
+ category: string;
266
+ icon: import("react/jsx-runtime").JSX.Element;
267
+ keywords: string[];
268
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
269
+ trackEvent: {
270
+ category: "element";
271
+ };
272
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
273
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
274
+ elements: ((Readonly<{
275
+ id: string;
276
+ x: number;
277
+ y: number;
278
+ strokeColor: string;
279
+ backgroundColor: string;
280
+ fillStyle: import("@excalidraw/element/types").FillStyle;
281
+ strokeWidth: number;
282
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
283
+ roundness: {
284
+ type: import("@excalidraw/element/types").RoundnessType;
285
+ value?: number | undefined;
286
+ } | null;
287
+ roughness: number;
288
+ opacity: number;
289
+ width: number;
290
+ height: number;
291
+ angle: import("@excalidraw/math").Radians;
292
+ seed: number;
293
+ version: number;
294
+ versionNonce: number;
295
+ index: import("@excalidraw/element/types").FractionalIndex | null;
296
+ isDeleted: boolean;
297
+ groupIds: readonly string[];
298
+ frameId: string | null;
299
+ boundElements: readonly Readonly<{
300
+ id: string;
301
+ type: "arrow" | "text";
302
+ }>[] | null;
303
+ updated: number;
304
+ link: string | null;
305
+ locked: boolean;
306
+ customData?: Record<string, any> | undefined;
307
+ }> & Readonly<{
308
+ type: "line" | "arrow";
309
+ points: readonly import("@excalidraw/math").LocalPoint[];
310
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
311
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
312
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
313
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
314
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
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: "selection";
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: "rectangle";
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: "diamond";
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
+ }> & {
462
+ type: "ellipse";
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: "embeddable";
500
+ scale: [number, number];
501
+ }> & {
502
+ index: import("@excalidraw/element/types").FractionalIndex;
503
+ }) | (Readonly<{
504
+ id: string;
505
+ x: number;
506
+ y: number;
507
+ strokeColor: string;
508
+ backgroundColor: string;
509
+ fillStyle: import("@excalidraw/element/types").FillStyle;
510
+ strokeWidth: number;
511
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
512
+ roundness: {
513
+ type: import("@excalidraw/element/types").RoundnessType;
514
+ value?: number | undefined;
515
+ } | null;
516
+ roughness: number;
517
+ opacity: number;
518
+ width: number;
519
+ height: number;
520
+ angle: import("@excalidraw/math").Radians;
521
+ seed: number;
522
+ version: number;
523
+ versionNonce: number;
524
+ index: import("@excalidraw/element/types").FractionalIndex | null;
525
+ isDeleted: boolean;
526
+ groupIds: readonly string[];
527
+ frameId: string | null;
528
+ boundElements: readonly Readonly<{
529
+ id: string;
530
+ type: "arrow" | "text";
531
+ }>[] | null;
532
+ updated: number;
533
+ link: string | null;
534
+ locked: boolean;
535
+ customData?: Record<string, any> | undefined;
536
+ }> & Readonly<{
537
+ type: "iframe";
538
+ customData?: {
539
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
540
+ } | undefined;
541
+ scale: [number, number];
542
+ }> & {
543
+ index: import("@excalidraw/element/types").FractionalIndex;
544
+ }) | (Readonly<{
545
+ id: string;
546
+ x: number;
547
+ y: number;
548
+ strokeColor: string;
549
+ backgroundColor: string;
550
+ fillStyle: import("@excalidraw/element/types").FillStyle;
551
+ strokeWidth: number;
552
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
553
+ roundness: {
554
+ type: import("@excalidraw/element/types").RoundnessType;
555
+ value?: number | undefined;
556
+ } | null;
557
+ roughness: number;
558
+ opacity: number;
559
+ width: number;
560
+ height: number;
561
+ angle: import("@excalidraw/math").Radians;
562
+ seed: number;
563
+ version: number;
564
+ versionNonce: number;
565
+ index: import("@excalidraw/element/types").FractionalIndex | null;
566
+ isDeleted: boolean;
567
+ groupIds: readonly string[];
568
+ frameId: string | null;
569
+ boundElements: readonly Readonly<{
570
+ id: string;
571
+ type: "arrow" | "text";
572
+ }>[] | null;
573
+ updated: number;
574
+ link: string | null;
575
+ locked: boolean;
576
+ customData?: Record<string, any> | undefined;
577
+ }> & Readonly<{
578
+ type: "image";
579
+ fileId: import("@excalidraw/element/types").FileId | null;
580
+ status: "pending" | "error" | "saved";
581
+ scale: [number, number];
582
+ crop: import("@excalidraw/element/types").ImageCrop | null;
583
+ }> & {
584
+ index: import("@excalidraw/element/types").FractionalIndex;
585
+ }) | (Readonly<{
586
+ id: string;
587
+ x: number;
588
+ y: number;
589
+ strokeColor: string;
590
+ backgroundColor: string;
591
+ fillStyle: import("@excalidraw/element/types").FillStyle;
592
+ strokeWidth: number;
593
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
594
+ roundness: {
595
+ type: import("@excalidraw/element/types").RoundnessType;
596
+ value?: number | undefined;
597
+ } | null;
598
+ roughness: number;
599
+ opacity: number;
600
+ width: number;
601
+ height: number;
602
+ angle: import("@excalidraw/math").Radians;
603
+ seed: number;
604
+ version: number;
605
+ versionNonce: number;
606
+ index: import("@excalidraw/element/types").FractionalIndex | null;
607
+ isDeleted: boolean;
608
+ groupIds: readonly string[];
609
+ frameId: string | null;
610
+ boundElements: readonly Readonly<{
611
+ id: string;
612
+ type: "arrow" | "text";
613
+ }>[] | null;
614
+ updated: number;
615
+ link: string | null;
616
+ locked: boolean;
617
+ customData?: Record<string, any> | undefined;
618
+ }> & {
619
+ type: "frame";
620
+ name: string | null;
621
+ frameRole?: ("marker" | null) | undefined;
622
+ customData?: {
623
+ frameColor?: {
624
+ fill: string;
625
+ stroke: string;
626
+ nameColor: string;
627
+ } | undefined;
628
+ } | undefined;
629
+ } & {
630
+ index: import("@excalidraw/element/types").FractionalIndex;
631
+ }) | (Readonly<{
632
+ id: string;
633
+ x: number;
634
+ y: number;
635
+ strokeColor: string;
636
+ backgroundColor: string;
637
+ fillStyle: import("@excalidraw/element/types").FillStyle;
638
+ strokeWidth: number;
639
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
640
+ roundness: {
641
+ type: import("@excalidraw/element/types").RoundnessType;
642
+ value?: number | undefined;
643
+ } | null;
644
+ roughness: number;
645
+ opacity: number;
646
+ width: number;
647
+ height: number;
648
+ angle: import("@excalidraw/math").Radians;
649
+ seed: number;
650
+ version: number;
651
+ versionNonce: number;
652
+ index: import("@excalidraw/element/types").FractionalIndex | null;
653
+ isDeleted: boolean;
654
+ groupIds: readonly string[];
655
+ frameId: string | null;
656
+ boundElements: readonly Readonly<{
657
+ id: string;
658
+ type: "arrow" | "text";
659
+ }>[] | null;
660
+ updated: number;
661
+ link: string | null;
662
+ locked: boolean;
663
+ customData?: Record<string, any> | undefined;
664
+ }> & {
665
+ type: "magicframe";
666
+ name: string | null;
667
+ frameRole?: ("marker" | null) | undefined;
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: "text";
705
+ fontSize: number;
706
+ fontFamily: number;
707
+ text: string;
708
+ rawText: string;
709
+ textAlign: string;
710
+ verticalAlign: string;
711
+ containerId: string | null;
712
+ originalText: string;
713
+ autoResize: boolean;
714
+ lineHeight: number & {
715
+ _brand: "unitlessLineHeight";
716
+ };
717
+ }> & {
718
+ index: import("@excalidraw/element/types").FractionalIndex;
719
+ }) | (Readonly<{
720
+ id: string;
721
+ x: number;
722
+ y: number;
723
+ strokeColor: string;
724
+ backgroundColor: string;
725
+ fillStyle: import("@excalidraw/element/types").FillStyle;
726
+ strokeWidth: number;
727
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
728
+ roundness: {
729
+ type: import("@excalidraw/element/types").RoundnessType;
730
+ value?: number | undefined;
731
+ } | null;
732
+ roughness: number;
733
+ opacity: number;
734
+ width: number;
735
+ height: number;
736
+ angle: import("@excalidraw/math").Radians;
737
+ seed: number;
738
+ version: number;
739
+ versionNonce: number;
740
+ index: import("@excalidraw/element/types").FractionalIndex | null;
741
+ isDeleted: boolean;
742
+ groupIds: readonly string[];
743
+ frameId: string | null;
744
+ boundElements: readonly Readonly<{
745
+ id: string;
746
+ type: "arrow" | "text";
747
+ }>[] | null;
748
+ updated: number;
749
+ link: string | null;
750
+ locked: boolean;
751
+ customData?: Record<string, any> | undefined;
752
+ }> & Readonly<{
753
+ type: "freedraw";
754
+ points: readonly import("@excalidraw/math").LocalPoint[];
755
+ pressures: readonly number[];
756
+ simulatePressure: boolean;
757
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
758
+ }> & {
759
+ index: import("@excalidraw/element/types").FractionalIndex;
760
+ }))[];
761
+ appState: Readonly<import("../types").AppState>;
762
+ captureUpdate: "IMMEDIATELY";
763
+ };
764
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
222
765
  } & {
223
766
  keyTest?: undefined;
224
767
  };