@excalidraw/element 0.18.0-0457ac9 → 0.18.0-063e025

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 (123) hide show
  1. package/dist/dev/index.js +1305 -895
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +18 -18
  4. package/dist/types/common/src/colors.d.ts +1 -1
  5. package/dist/types/common/src/constants.d.ts +9 -7
  6. package/dist/types/common/src/utils.d.ts +0 -42
  7. package/dist/types/element/src/Scene.d.ts +1 -1
  8. package/dist/types/element/src/align.d.ts +2 -2
  9. package/dist/types/element/src/binding.d.ts +6 -6
  10. package/dist/types/element/src/bounds.d.ts +19 -6
  11. package/dist/types/element/src/collision.d.ts +1 -1
  12. package/dist/types/element/src/comparisons.d.ts +1 -0
  13. package/dist/types/element/src/distribute.d.ts +2 -2
  14. package/dist/types/element/src/duplicate.d.ts +3 -3
  15. package/dist/types/element/src/embeddable.d.ts +2 -2
  16. package/dist/types/element/src/flowchart.d.ts +3 -3
  17. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  18. package/dist/types/element/src/frame.d.ts +4 -4
  19. package/dist/types/element/src/groups.d.ts +9 -9
  20. package/dist/types/element/src/index.d.ts +1 -1
  21. package/dist/types/element/src/linearElementEditor.d.ts +10 -10
  22. package/dist/types/element/src/newElement.d.ts +1 -0
  23. package/dist/types/element/src/renderElement.d.ts +0 -3
  24. package/dist/types/element/src/resizeElements.d.ts +2 -2
  25. package/dist/types/element/src/selection.d.ts +5 -5
  26. package/dist/types/element/src/textElement.d.ts +7 -7
  27. package/dist/types/element/src/transform.d.ts +2 -2
  28. package/dist/types/element/src/typeChecks.d.ts +25 -25
  29. package/dist/types/element/src/types.d.ts +8 -1
  30. package/dist/types/element/src/visualdebug.d.ts +1 -2
  31. package/dist/types/element/src/zindex.d.ts +2 -2
  32. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -6
  33. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  34. package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -4
  35. package/dist/types/excalidraw/actions/actionCanvas.d.ts +61 -389
  36. package/dist/types/excalidraw/actions/actionClipboard.d.ts +8 -4
  37. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -2
  38. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +13 -7
  39. package/dist/types/excalidraw/actions/actionDeselect.d.ts +4 -2
  40. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  41. package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -2
  42. package/dist/types/excalidraw/actions/actionElementLock.d.ts +9 -5
  43. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -2
  44. package/dist/types/excalidraw/actions/actionExport.d.ts +8 -4
  45. package/dist/types/excalidraw/actions/actionFrame.d.ts +29 -20
  46. package/dist/types/excalidraw/actions/actionGroup.d.ts +23 -19
  47. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -4
  48. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -3
  49. package/dist/types/excalidraw/actions/actionMenu.d.ts +4 -2
  50. package/dist/types/excalidraw/actions/actionProperties.d.ts +35 -22
  51. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +9 -7
  52. package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -2
  53. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +5 -3
  54. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -7
  55. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +5 -3
  56. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -3
  57. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -7
  58. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  59. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -3
  60. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -3
  61. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -3
  62. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  63. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  64. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  65. package/dist/types/excalidraw/appState.d.ts +2 -1
  66. package/dist/types/excalidraw/components/Actions.d.ts +2 -3
  67. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  68. package/dist/types/excalidraw/components/App.d.ts +61 -32
  69. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  70. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  71. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  72. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  73. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  74. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  75. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  76. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  77. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  78. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  79. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  80. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  81. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  82. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  83. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  84. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  85. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  86. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  87. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  88. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  89. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  90. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  91. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  92. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  93. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +6 -3
  94. package/dist/types/excalidraw/data/blob.d.ts +8 -4
  95. package/dist/types/excalidraw/data/index.d.ts +4 -4
  96. package/dist/types/excalidraw/data/json.d.ts +10 -8
  97. package/dist/types/excalidraw/data/library.d.ts +1 -1
  98. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  99. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  100. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  101. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  102. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  103. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  104. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
  105. package/dist/types/excalidraw/scene/Renderer.d.ts +12 -11
  106. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  107. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  108. package/dist/types/excalidraw/scene/types.d.ts +1 -3
  109. package/dist/types/excalidraw/snapping.d.ts +7 -7
  110. package/dist/types/excalidraw/types.d.ts +168 -11
  111. package/dist/types/excalidraw/viewport.d.ts +316 -0
  112. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  113. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  114. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  115. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  116. package/dist/types/laser-pointer/src/state.d.ts +35 -0
  117. package/dist/types/utils/src/export.d.ts +3 -3
  118. package/dist/types/utils/src/index.d.ts +1 -2
  119. package/package.json +4 -4
  120. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  121. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  122. package/dist/types/utils/src/bbox.d.ts +0 -9
  123. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -42,7 +42,7 @@ export declare const actionPaste: {
42
42
  clip: boolean;
43
43
  };
44
44
  editingFrame: string | null;
45
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
46
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
47
  activeTool: {
48
48
  lastActiveTool: import("../types").ActiveTool | null;
@@ -62,9 +62,10 @@ export declare const actionPaste: {
62
62
  currentItemStrokeColor: string;
63
63
  currentItemBackgroundColor: string;
64
64
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
65
- currentItemStrokeWidth: number;
65
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
66
66
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
67
67
  currentItemRoughness: number;
68
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
68
69
  currentItemOpacity: number;
69
70
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
70
71
  currentItemFontSize: number;
@@ -77,6 +78,7 @@ export declare const actionPaste: {
77
78
  viewBackgroundColor: string;
78
79
  scrollX: number;
79
80
  scrollY: number;
81
+ scrollConstraints: import("../types").ScrollConstraints | null;
80
82
  cursorButton: "up" | "down";
81
83
  scrolledOutside: boolean;
82
84
  name: string | null;
@@ -251,7 +253,7 @@ export declare const actionCopyAsPng: {
251
253
  clip: boolean;
252
254
  };
253
255
  editingFrame: string | null;
254
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
256
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
255
257
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
256
258
  activeTool: {
257
259
  lastActiveTool: import("../types").ActiveTool | null;
@@ -271,9 +273,10 @@ export declare const actionCopyAsPng: {
271
273
  currentItemStrokeColor: string;
272
274
  currentItemBackgroundColor: string;
273
275
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
274
- currentItemStrokeWidth: number;
276
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
275
277
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
276
278
  currentItemRoughness: number;
279
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
277
280
  currentItemOpacity: number;
278
281
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
279
282
  currentItemFontSize: number;
@@ -286,6 +289,7 @@ export declare const actionCopyAsPng: {
286
289
  viewBackgroundColor: string;
287
290
  scrollX: number;
288
291
  scrollY: number;
292
+ scrollConstraints: import("../types").ScrollConstraints | null;
289
293
  cursorButton: "up" | "down";
290
294
  scrolledOutside: boolean;
291
295
  name: string | null;
@@ -43,7 +43,7 @@ export declare const actionToggleCropEditor: {
43
43
  clip: boolean;
44
44
  };
45
45
  editingFrame: string | null;
46
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
46
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
47
47
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
48
48
  activeTool: {
49
49
  lastActiveTool: import("../types").ActiveTool | null;
@@ -63,9 +63,10 @@ export declare const actionToggleCropEditor: {
63
63
  currentItemStrokeColor: string;
64
64
  currentItemBackgroundColor: string;
65
65
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
66
- currentItemStrokeWidth: number;
66
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
67
67
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
68
68
  currentItemRoughness: number;
69
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
69
70
  currentItemOpacity: number;
70
71
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
71
72
  currentItemFontSize: number;
@@ -78,6 +79,7 @@ export declare const actionToggleCropEditor: {
78
79
  viewBackgroundColor: string;
79
80
  scrollX: number;
80
81
  scrollY: number;
82
+ scrollConstraints: import("../types").ScrollConstraints | null;
81
83
  cursorButton: "up" | "down";
82
84
  scrolledOutside: boolean;
83
85
  name: string | null;
@@ -44,7 +44,7 @@ export declare const actionDeleteSelected: {
44
44
  clip: boolean;
45
45
  };
46
46
  editingFrame: string | null;
47
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
47
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
48
48
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
49
49
  activeTool: {
50
50
  lastActiveTool: import("../types").ActiveTool | null;
@@ -64,9 +64,10 @@ export declare const actionDeleteSelected: {
64
64
  currentItemStrokeColor: string;
65
65
  currentItemBackgroundColor: string;
66
66
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
67
- currentItemStrokeWidth: number;
67
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
68
68
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
69
69
  currentItemRoughness: number;
70
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
70
71
  currentItemOpacity: number;
71
72
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
72
73
  currentItemFontSize: number;
@@ -79,6 +80,7 @@ export declare const actionDeleteSelected: {
79
80
  viewBackgroundColor: string;
80
81
  scrollX: number;
81
82
  scrollY: number;
83
+ scrollConstraints: import("../types").ScrollConstraints | null;
82
84
  cursorButton: "up" | "down";
83
85
  scrolledOutside: boolean;
84
86
  name: string | null;
@@ -236,7 +238,7 @@ export declare const actionDeleteSelected: {
236
238
  clip: boolean;
237
239
  };
238
240
  editingFrame: string | null;
239
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
241
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
240
242
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
241
243
  activeTool: {
242
244
  lastActiveTool: import("../types").ActiveTool | null;
@@ -256,9 +258,10 @@ export declare const actionDeleteSelected: {
256
258
  currentItemStrokeColor: string;
257
259
  currentItemBackgroundColor: string;
258
260
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
259
- currentItemStrokeWidth: number;
261
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
260
262
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
261
263
  currentItemRoughness: number;
264
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
262
265
  currentItemOpacity: number;
263
266
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
264
267
  currentItemFontSize: number;
@@ -271,6 +274,7 @@ export declare const actionDeleteSelected: {
271
274
  viewBackgroundColor: string;
272
275
  scrollX: number;
273
276
  scrollY: number;
277
+ scrollConstraints: import("../types").ScrollConstraints | null;
274
278
  cursorButton: "up" | "down";
275
279
  scrolledOutside: boolean;
276
280
  name: string | null;
@@ -361,7 +365,7 @@ export declare const actionDeleteSelected: {
361
365
  };
362
366
  captureUpdate: "IMMEDIATELY";
363
367
  } | {
364
- elements: ExcalidrawElement[];
368
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
365
369
  appState: {
366
370
  activeTool: {
367
371
  lastActiveTool: import("../types").ActiveTool | null;
@@ -401,7 +405,7 @@ export declare const actionDeleteSelected: {
401
405
  clip: boolean;
402
406
  };
403
407
  editingFrame: string | null;
404
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
408
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
405
409
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
406
410
  preferredSelectionTool: {
407
411
  type: "selection" | "lasso";
@@ -416,9 +420,10 @@ export declare const actionDeleteSelected: {
416
420
  currentItemStrokeColor: string;
417
421
  currentItemBackgroundColor: string;
418
422
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
419
- currentItemStrokeWidth: number;
423
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
420
424
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
421
425
  currentItemRoughness: number;
426
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
422
427
  currentItemOpacity: number;
423
428
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
424
429
  currentItemFontSize: number;
@@ -431,6 +436,7 @@ export declare const actionDeleteSelected: {
431
436
  viewBackgroundColor: string;
432
437
  scrollX: number;
433
438
  scrollY: number;
439
+ scrollConstraints: import("../types").ScrollConstraints | null;
434
440
  cursorButton: "up" | "down";
435
441
  scrolledOutside: boolean;
436
442
  name: string | null;
@@ -41,7 +41,7 @@ export declare const actionDeselect: {
41
41
  clip: boolean;
42
42
  };
43
43
  editingFrame: string | null;
44
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
45
45
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
46
46
  preferredSelectionTool: {
47
47
  type: "selection" | "lasso";
@@ -56,9 +56,10 @@ export declare const actionDeselect: {
56
56
  currentItemStrokeColor: string;
57
57
  currentItemBackgroundColor: string;
58
58
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
59
- currentItemStrokeWidth: number;
59
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
60
60
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
61
61
  currentItemRoughness: number;
62
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
62
63
  currentItemOpacity: number;
63
64
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
64
65
  currentItemFontSize: number;
@@ -71,6 +72,7 @@ export declare const actionDeselect: {
71
72
  viewBackgroundColor: string;
72
73
  scrollX: number;
73
74
  scrollY: number;
75
+ scrollConstraints: import("../types").ScrollConstraints | null;
74
76
  cursorButton: "up" | "down";
75
77
  scrolledOutside: boolean;
76
78
  name: string | null;
@@ -1,4 +1,3 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
1
  import type { AppClassProperties, AppState } from "../types";
3
2
  export declare const distributeHorizontally: {
4
3
  name: "distributeHorizontally";
@@ -8,7 +7,7 @@ export declare const distributeHorizontally: {
8
7
  };
9
8
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
9
  appState: Readonly<AppState>;
11
- elements: ExcalidrawElement[];
10
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
12
11
  captureUpdate: "IMMEDIATELY";
13
12
  };
14
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -24,7 +23,7 @@ export declare const distributeVertically: {
24
23
  };
25
24
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
26
25
  appState: Readonly<AppState>;
27
- elements: ExcalidrawElement[];
26
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
28
27
  captureUpdate: "IMMEDIATELY";
29
28
  };
30
29
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -72,7 +72,7 @@ export declare const actionLinkToElement: {
72
72
  clip: boolean;
73
73
  };
74
74
  editingFrame: string | null;
75
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
75
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
76
76
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
77
77
  activeTool: {
78
78
  lastActiveTool: import("../types").ActiveTool | null;
@@ -92,9 +92,10 @@ export declare const actionLinkToElement: {
92
92
  currentItemStrokeColor: string;
93
93
  currentItemBackgroundColor: string;
94
94
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
95
- currentItemStrokeWidth: number;
95
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
96
96
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
97
97
  currentItemRoughness: number;
98
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
98
99
  currentItemOpacity: number;
99
100
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
100
101
  currentItemFontSize: number;
@@ -107,6 +108,7 @@ export declare const actionLinkToElement: {
107
108
  viewBackgroundColor: string;
108
109
  scrollX: number;
109
110
  scrollY: number;
111
+ scrollConstraints: import("../types").ScrollConstraints | null;
110
112
  cursorButton: "up" | "down";
111
113
  scrolledOutside: boolean;
112
114
  name: string | null;
@@ -2,7 +2,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppState } from "../types";
3
3
  export declare const actionToggleElementLock: {
4
4
  name: "toggleElementLock";
5
- label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
5
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
6
6
  icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
@@ -54,7 +54,7 @@ export declare const actionToggleElementLock: {
54
54
  clip: boolean;
55
55
  };
56
56
  editingFrame: string | null;
57
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
57
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
58
58
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
59
59
  activeTool: {
60
60
  lastActiveTool: import("../types").ActiveTool | null;
@@ -74,9 +74,10 @@ export declare const actionToggleElementLock: {
74
74
  currentItemStrokeColor: string;
75
75
  currentItemBackgroundColor: string;
76
76
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
77
- currentItemStrokeWidth: number;
77
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
78
78
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
79
79
  currentItemRoughness: number;
80
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
80
81
  currentItemOpacity: number;
81
82
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
82
83
  currentItemFontSize: number;
@@ -89,6 +90,7 @@ export declare const actionToggleElementLock: {
89
90
  viewBackgroundColor: string;
90
91
  scrollX: number;
91
92
  scrollY: number;
93
+ scrollConstraints: import("../types").ScrollConstraints | null;
92
94
  cursorButton: "up" | "down";
93
95
  scrolledOutside: boolean;
94
96
  name: string | null;
@@ -224,7 +226,7 @@ export declare const actionUnlockAllElements: {
224
226
  clip: boolean;
225
227
  };
226
228
  editingFrame: string | null;
227
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
229
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
228
230
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
229
231
  activeTool: {
230
232
  lastActiveTool: import("../types").ActiveTool | null;
@@ -244,9 +246,10 @@ export declare const actionUnlockAllElements: {
244
246
  currentItemStrokeColor: string;
245
247
  currentItemBackgroundColor: string;
246
248
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
247
- currentItemStrokeWidth: number;
249
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
248
250
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
249
251
  currentItemRoughness: number;
252
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
250
253
  currentItemOpacity: number;
251
254
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
252
255
  currentItemFontSize: number;
@@ -259,6 +262,7 @@ export declare const actionUnlockAllElements: {
259
262
  viewBackgroundColor: string;
260
263
  scrollX: number;
261
264
  scrollY: number;
265
+ scrollConstraints: import("../types").ScrollConstraints | null;
262
266
  cursorButton: "up" | "down";
263
267
  scrolledOutside: boolean;
264
268
  name: string | null;
@@ -45,7 +45,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
45
45
  clip: boolean;
46
46
  };
47
47
  editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
49
49
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
50
50
  preferredSelectionTool: {
51
51
  type: "selection" | "lasso";
@@ -60,9 +60,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
60
60
  currentItemStrokeColor: string;
61
61
  currentItemBackgroundColor: string;
62
62
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
63
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
64
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
65
  currentItemRoughness: number;
66
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
67
  currentItemOpacity: number;
67
68
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
69
  currentItemFontSize: number;
@@ -75,6 +76,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
75
76
  viewBackgroundColor: string;
76
77
  scrollX: number;
77
78
  scrollY: number;
79
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
80
  cursorButton: "up" | "down";
79
81
  scrolledOutside: boolean;
80
82
  name: string | null;
@@ -140,7 +140,7 @@ export declare const actionLoadScene: {
140
140
  midPoint?: import("@excalidraw/math").GlobalPoint;
141
141
  } | null;
142
142
  isRotating: boolean;
143
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
143
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
144
144
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
145
145
  snapLines: readonly import("../snapping").SnapLine[];
146
146
  zenModeEnabled: boolean;
@@ -184,9 +184,10 @@ export declare const actionLoadScene: {
184
184
  currentItemStrokeColor: string;
185
185
  currentItemBackgroundColor: string;
186
186
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
187
- currentItemStrokeWidth: number;
187
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
188
188
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
189
189
  currentItemRoughness: number;
190
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
190
191
  currentItemOpacity: number;
191
192
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
192
193
  currentItemFontSize: number;
@@ -195,6 +196,7 @@ export declare const actionLoadScene: {
195
196
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
196
197
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
197
198
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
199
+ scrollConstraints: import("../types").ScrollConstraints | null;
198
200
  cursorButton: "up" | "down";
199
201
  scrolledOutside: boolean;
200
202
  isResizing: boolean;
@@ -271,7 +273,7 @@ export declare const actionLoadScene: {
271
273
  clip: boolean;
272
274
  };
273
275
  editingFrame: string | null;
274
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
276
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
275
277
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
276
278
  activeTool: {
277
279
  lastActiveTool: import("../types").ActiveTool | null;
@@ -291,9 +293,10 @@ export declare const actionLoadScene: {
291
293
  currentItemStrokeColor: string;
292
294
  currentItemBackgroundColor: string;
293
295
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
294
- currentItemStrokeWidth: number;
296
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
295
297
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
296
298
  currentItemRoughness: number;
299
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
297
300
  currentItemOpacity: number;
298
301
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
299
302
  currentItemFontSize: number;
@@ -306,6 +309,7 @@ export declare const actionLoadScene: {
306
309
  viewBackgroundColor: string;
307
310
  scrollX: number;
308
311
  scrollY: number;
312
+ scrollConstraints: import("../types").ScrollConstraints | null;
309
313
  cursorButton: "up" | "down";
310
314
  scrolledOutside: boolean;
311
315
  name: string | null;
@@ -1,12 +1,12 @@
1
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
3
3
  export declare const actionSelectAllElementsInFrame: {
4
4
  name: "selectAllElementsInFrame";
5
5
  label: string;
6
6
  trackEvent: {
7
7
  category: "canvas";
8
8
  };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
10
10
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
11
  appState: {
12
12
  selectedElementIds: Record<string, true>;
@@ -42,7 +42,7 @@ export declare const actionSelectAllElementsInFrame: {
42
42
  clip: boolean;
43
43
  };
44
44
  editingFrame: string | null;
45
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
45
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
46
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
47
  activeTool: {
48
48
  lastActiveTool: import("../types").ActiveTool | null;
@@ -62,9 +62,10 @@ export declare const actionSelectAllElementsInFrame: {
62
62
  currentItemStrokeColor: string;
63
63
  currentItemBackgroundColor: string;
64
64
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
65
- currentItemStrokeWidth: number;
65
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
66
66
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
67
67
  currentItemRoughness: number;
68
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
68
69
  currentItemOpacity: number;
69
70
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
70
71
  currentItemFontSize: number;
@@ -77,6 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
77
78
  viewBackgroundColor: string;
78
79
  scrollX: number;
79
80
  scrollY: number;
81
+ scrollConstraints: import("../types").ScrollConstraints | null;
80
82
  cursorButton: "up" | "down";
81
83
  scrolledOutside: boolean;
82
84
  name: string | null;
@@ -166,10 +168,10 @@ export declare const actionSelectAllElementsInFrame: {
166
168
  captureUpdate: "IMMEDIATELY";
167
169
  } | {
168
170
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
169
- appState: Readonly<AppState>;
171
+ appState: Readonly<import("../types").AppState>;
170
172
  captureUpdate: "EVENTUALLY";
171
173
  };
172
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
174
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
173
175
  } & {
174
176
  keyTest?: undefined;
175
177
  };
@@ -179,7 +181,7 @@ export declare const actionRemoveAllElementsFromFrame: {
179
181
  trackEvent: {
180
182
  category: "history";
181
183
  };
182
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
184
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
183
185
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
184
186
  appState: {
185
187
  selectedElementIds: {
@@ -217,7 +219,7 @@ export declare const actionRemoveAllElementsFromFrame: {
217
219
  clip: boolean;
218
220
  };
219
221
  editingFrame: string | null;
220
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
222
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
221
223
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
222
224
  activeTool: {
223
225
  lastActiveTool: import("../types").ActiveTool | null;
@@ -237,9 +239,10 @@ export declare const actionRemoveAllElementsFromFrame: {
237
239
  currentItemStrokeColor: string;
238
240
  currentItemBackgroundColor: string;
239
241
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
240
- currentItemStrokeWidth: number;
242
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
241
243
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
242
244
  currentItemRoughness: number;
245
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
243
246
  currentItemOpacity: number;
244
247
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
245
248
  currentItemFontSize: number;
@@ -252,6 +255,7 @@ export declare const actionRemoveAllElementsFromFrame: {
252
255
  viewBackgroundColor: string;
253
256
  scrollX: number;
254
257
  scrollY: number;
258
+ scrollConstraints: import("../types").ScrollConstraints | null;
255
259
  cursorButton: "up" | "down";
256
260
  scrolledOutside: boolean;
257
261
  name: string | null;
@@ -341,10 +345,10 @@ export declare const actionRemoveAllElementsFromFrame: {
341
345
  captureUpdate: "IMMEDIATELY";
342
346
  } | {
343
347
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
344
- appState: Readonly<AppState>;
348
+ appState: Readonly<import("../types").AppState>;
345
349
  captureUpdate: "EVENTUALLY";
346
350
  };
347
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
351
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
348
352
  } & {
349
353
  keyTest?: undefined;
350
354
  };
@@ -355,7 +359,7 @@ export declare const actionupdateFrameRendering: {
355
359
  trackEvent: {
356
360
  category: "canvas";
357
361
  };
358
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
362
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
359
363
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
360
364
  appState: {
361
365
  frameRendering: {
@@ -390,7 +394,7 @@ export declare const actionupdateFrameRendering: {
390
394
  } | null;
391
395
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
392
396
  editingFrame: string | null;
393
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
397
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
394
398
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
395
399
  activeTool: {
396
400
  lastActiveTool: import("../types").ActiveTool | null;
@@ -410,9 +414,10 @@ export declare const actionupdateFrameRendering: {
410
414
  currentItemStrokeColor: string;
411
415
  currentItemBackgroundColor: string;
412
416
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
413
- currentItemStrokeWidth: number;
417
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
414
418
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
415
419
  currentItemRoughness: number;
420
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
416
421
  currentItemOpacity: number;
417
422
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
418
423
  currentItemFontSize: number;
@@ -425,6 +430,7 @@ export declare const actionupdateFrameRendering: {
425
430
  viewBackgroundColor: string;
426
431
  scrollX: number;
427
432
  scrollY: number;
433
+ scrollConstraints: import("../types").ScrollConstraints | null;
428
434
  cursorButton: "up" | "down";
429
435
  scrolledOutside: boolean;
430
436
  name: string | null;
@@ -516,7 +522,7 @@ export declare const actionupdateFrameRendering: {
516
522
  };
517
523
  captureUpdate: "EVENTUALLY";
518
524
  };
519
- checked: (appState: AppState) => boolean;
525
+ checked: (appState: Readonly<UIAppState>) => boolean;
520
526
  } & {
521
527
  keyTest?: undefined;
522
528
  };
@@ -528,7 +534,7 @@ export declare const actionSetFrameAsActiveTool: {
528
534
  };
529
535
  icon: import("react/jsx-runtime").JSX.Element;
530
536
  viewMode: false;
531
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
537
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
532
538
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
533
539
  appState: {
534
540
  activeTool: {
@@ -568,7 +574,7 @@ export declare const actionSetFrameAsActiveTool: {
568
574
  clip: boolean;
569
575
  };
570
576
  editingFrame: string | null;
571
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
577
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
572
578
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
573
579
  preferredSelectionTool: {
574
580
  type: "selection" | "lasso";
@@ -583,9 +589,10 @@ export declare const actionSetFrameAsActiveTool: {
583
589
  currentItemStrokeColor: string;
584
590
  currentItemBackgroundColor: string;
585
591
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
586
- currentItemStrokeWidth: number;
592
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
587
593
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
588
594
  currentItemRoughness: number;
595
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
589
596
  currentItemOpacity: number;
590
597
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
591
598
  currentItemFontSize: number;
@@ -598,6 +605,7 @@ export declare const actionSetFrameAsActiveTool: {
598
605
  viewBackgroundColor: string;
599
606
  scrollX: number;
600
607
  scrollY: number;
608
+ scrollConstraints: import("../types").ScrollConstraints | null;
601
609
  cursorButton: "up" | "down";
602
610
  scrolledOutside: boolean;
603
611
  name: string | null;
@@ -699,8 +707,8 @@ export declare const actionWrapSelectionInFrame: {
699
707
  trackEvent: {
700
708
  category: "element";
701
709
  };
702
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
703
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
710
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
711
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
704
712
  elements: ((Readonly<{
705
713
  id: string;
706
714
  x: number;
@@ -1135,6 +1143,7 @@ export declare const actionWrapSelectionInFrame: {
1135
1143
  points: readonly import("@excalidraw/math").LocalPoint[];
1136
1144
  pressures: readonly number[];
1137
1145
  simulatePressure: boolean;
1146
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
1138
1147
  }> & {
1139
1148
  index: import("@excalidraw/element/types").FractionalIndex;
1140
1149
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];