@myoc/common 0.19.518 → 0.19.520

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 (66) hide show
  1. package/dist/dev/index.js +33 -65
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/colors.d.ts +1 -1
  5. package/dist/types/common/src/constants.d.ts +8 -5
  6. package/dist/types/common/src/utils.d.ts +0 -42
  7. package/dist/types/element/src/bounds.d.ts +18 -1
  8. package/dist/types/element/src/comparisons.d.ts +1 -0
  9. package/dist/types/element/src/image.d.ts +5 -0
  10. package/dist/types/element/src/newElement.d.ts +2 -0
  11. package/dist/types/element/src/types.d.ts +8 -0
  12. package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -2
  13. package/dist/types/excalidraw/actions/actionCanvas.d.ts +33 -11
  14. package/dist/types/excalidraw/actions/actionClipboard.d.ts +6 -2
  15. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -1
  16. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -3
  17. package/dist/types/excalidraw/actions/actionDeselect.d.ts +3 -1
  18. package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -1
  19. package/dist/types/excalidraw/actions/actionElementLock.d.ts +6 -2
  20. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +3 -1
  21. package/dist/types/excalidraw/actions/actionExport.d.ts +6 -2
  22. package/dist/types/excalidraw/actions/actionFrame.d.ts +14 -4
  23. package/dist/types/excalidraw/actions/actionGroup.d.ts +6 -2
  24. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +5 -1
  25. package/dist/types/excalidraw/actions/actionLink.d.ts +3 -1
  26. package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -1
  27. package/dist/types/excalidraw/actions/actionProperties.d.ts +18 -5
  28. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -1
  29. package/dist/types/excalidraw/actions/actionStyles.d.ts +3 -1
  30. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +3 -1
  31. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +3 -1
  32. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +3 -1
  33. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +3 -1
  34. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -1
  35. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +3 -1
  36. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -3
  37. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +3 -1
  38. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  39. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  40. package/dist/types/excalidraw/appState.d.ts +2 -1
  41. package/dist/types/excalidraw/components/App.d.ts +13 -28
  42. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  43. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
  44. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  45. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  46. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  47. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  48. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +2 -1
  49. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  50. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +7 -4
  51. package/dist/types/excalidraw/data/blob.d.ts +3 -1
  52. package/dist/types/excalidraw/data/json.d.ts +3 -1
  53. package/dist/types/excalidraw/renderer/animation.d.ts +1 -0
  54. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -0
  55. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  56. package/dist/types/excalidraw/scene/types.d.ts +1 -0
  57. package/dist/types/excalidraw/scroll.d.ts +46 -0
  58. package/dist/types/excalidraw/types.d.ts +24 -3
  59. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  60. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  61. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  62. package/dist/types/laser-pointer/src/state.d.ts +35 -0
  63. package/dist/types/utils/src/index.d.ts +1 -2
  64. package/package.json +1 -1
  65. package/dist/types/utils/src/bbox.d.ts +0 -9
  66. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -84,9 +84,10 @@ export declare const actionZoomIn: {
84
84
  currentItemStrokeColor: string;
85
85
  currentItemBackgroundColor: string;
86
86
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
87
- currentItemStrokeWidth: number;
87
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
88
88
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
89
89
  currentItemRoughness: number;
90
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
90
91
  currentItemOpacity: number;
91
92
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
92
93
  currentItemFontSize: number;
@@ -144,6 +145,7 @@ export declare const actionZoomIn: {
144
145
  gridStep: number;
145
146
  gridModeEnabled: boolean;
146
147
  viewModeEnabled: boolean;
148
+ viewModeOnly: boolean;
147
149
  selectedGroupIds: {
148
150
  [groupId: string]: boolean;
149
151
  };
@@ -266,9 +268,10 @@ export declare const actionZoomOut: {
266
268
  currentItemStrokeColor: string;
267
269
  currentItemBackgroundColor: string;
268
270
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
269
- currentItemStrokeWidth: number;
271
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
270
272
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
271
273
  currentItemRoughness: number;
274
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
272
275
  currentItemOpacity: number;
273
276
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
274
277
  currentItemFontSize: number;
@@ -326,6 +329,7 @@ export declare const actionZoomOut: {
326
329
  gridStep: number;
327
330
  gridModeEnabled: boolean;
328
331
  viewModeEnabled: boolean;
332
+ viewModeOnly: boolean;
329
333
  selectedGroupIds: {
330
334
  [groupId: string]: boolean;
331
335
  };
@@ -448,9 +452,10 @@ export declare const actionResetZoom: {
448
452
  currentItemStrokeColor: string;
449
453
  currentItemBackgroundColor: string;
450
454
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
451
- currentItemStrokeWidth: number;
455
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
452
456
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
453
457
  currentItemRoughness: number;
458
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
454
459
  currentItemOpacity: number;
455
460
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
456
461
  currentItemFontSize: number;
@@ -508,6 +513,7 @@ export declare const actionResetZoom: {
508
513
  gridStep: number;
509
514
  gridModeEnabled: boolean;
510
515
  viewModeEnabled: boolean;
516
+ viewModeOnly: boolean;
511
517
  selectedGroupIds: {
512
518
  [groupId: string]: boolean;
513
519
  };
@@ -631,9 +637,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
631
637
  currentItemStrokeColor: string;
632
638
  currentItemBackgroundColor: string;
633
639
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
634
- currentItemStrokeWidth: number;
640
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
635
641
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
636
642
  currentItemRoughness: number;
643
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
637
644
  currentItemOpacity: number;
638
645
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
639
646
  currentItemFontSize: number;
@@ -691,6 +698,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
691
698
  gridStep: number;
692
699
  gridModeEnabled: boolean;
693
700
  viewModeEnabled: boolean;
701
+ viewModeOnly: boolean;
694
702
  selectedGroupIds: {
695
703
  [groupId: string]: boolean;
696
704
  };
@@ -810,9 +818,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
810
818
  currentItemStrokeColor: string;
811
819
  currentItemBackgroundColor: string;
812
820
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
813
- currentItemStrokeWidth: number;
821
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
814
822
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
815
823
  currentItemRoughness: number;
824
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
816
825
  currentItemOpacity: number;
817
826
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
818
827
  currentItemFontSize: number;
@@ -870,6 +879,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
870
879
  gridStep: number;
871
880
  gridModeEnabled: boolean;
872
881
  viewModeEnabled: boolean;
882
+ viewModeOnly: boolean;
873
883
  selectedGroupIds: {
874
884
  [groupId: string]: boolean;
875
885
  };
@@ -986,9 +996,10 @@ export declare const actionZoomToFitSelectionInViewport: {
986
996
  currentItemStrokeColor: string;
987
997
  currentItemBackgroundColor: string;
988
998
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
989
- currentItemStrokeWidth: number;
999
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
990
1000
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
991
1001
  currentItemRoughness: number;
1002
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
992
1003
  currentItemOpacity: number;
993
1004
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
994
1005
  currentItemFontSize: number;
@@ -1046,6 +1057,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1046
1057
  gridStep: number;
1047
1058
  gridModeEnabled: boolean;
1048
1059
  viewModeEnabled: boolean;
1060
+ viewModeOnly: boolean;
1049
1061
  selectedGroupIds: {
1050
1062
  [groupId: string]: boolean;
1051
1063
  };
@@ -1166,9 +1178,10 @@ export declare const actionZoomToFitSelection: {
1166
1178
  currentItemStrokeColor: string;
1167
1179
  currentItemBackgroundColor: string;
1168
1180
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
1169
- currentItemStrokeWidth: number;
1181
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1170
1182
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1171
1183
  currentItemRoughness: number;
1184
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1172
1185
  currentItemOpacity: number;
1173
1186
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1174
1187
  currentItemFontSize: number;
@@ -1226,6 +1239,7 @@ export declare const actionZoomToFitSelection: {
1226
1239
  gridStep: number;
1227
1240
  gridModeEnabled: boolean;
1228
1241
  viewModeEnabled: boolean;
1242
+ viewModeOnly: boolean;
1229
1243
  selectedGroupIds: {
1230
1244
  [groupId: string]: boolean;
1231
1245
  };
@@ -1347,9 +1361,10 @@ export declare const actionZoomToFit: {
1347
1361
  currentItemStrokeColor: string;
1348
1362
  currentItemBackgroundColor: string;
1349
1363
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
1350
- currentItemStrokeWidth: number;
1364
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1351
1365
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1352
1366
  currentItemRoughness: number;
1367
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1353
1368
  currentItemOpacity: number;
1354
1369
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1355
1370
  currentItemFontSize: number;
@@ -1407,6 +1422,7 @@ export declare const actionZoomToFit: {
1407
1422
  gridStep: number;
1408
1423
  gridModeEnabled: boolean;
1409
1424
  viewModeEnabled: boolean;
1425
+ viewModeOnly: boolean;
1410
1426
  selectedGroupIds: {
1411
1427
  [groupId: string]: boolean;
1412
1428
  };
@@ -1523,9 +1539,10 @@ export declare const actionToggleEraserTool: {
1523
1539
  currentItemStrokeColor: string;
1524
1540
  currentItemBackgroundColor: string;
1525
1541
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
1526
- currentItemStrokeWidth: number;
1542
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1527
1543
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1528
1544
  currentItemRoughness: number;
1545
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1529
1546
  currentItemOpacity: number;
1530
1547
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1531
1548
  currentItemFontSize: number;
@@ -1583,6 +1600,7 @@ export declare const actionToggleEraserTool: {
1583
1600
  gridStep: number;
1584
1601
  gridModeEnabled: boolean;
1585
1602
  viewModeEnabled: boolean;
1603
+ viewModeOnly: boolean;
1586
1604
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
1587
1605
  width: number;
1588
1606
  height: number;
@@ -1695,9 +1713,10 @@ export declare const actionToggleLassoTool: {
1695
1713
  currentItemStrokeColor: string;
1696
1714
  currentItemBackgroundColor: string;
1697
1715
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
1698
- currentItemStrokeWidth: number;
1716
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1699
1717
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1700
1718
  currentItemRoughness: number;
1719
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1701
1720
  currentItemOpacity: number;
1702
1721
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1703
1722
  currentItemFontSize: number;
@@ -1755,6 +1774,7 @@ export declare const actionToggleLassoTool: {
1755
1774
  gridStep: number;
1756
1775
  gridModeEnabled: boolean;
1757
1776
  viewModeEnabled: boolean;
1777
+ viewModeOnly: boolean;
1758
1778
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
1759
1779
  width: number;
1760
1780
  height: number;
@@ -1866,9 +1886,10 @@ export declare const actionToggleHandTool: {
1866
1886
  currentItemStrokeColor: string;
1867
1887
  currentItemBackgroundColor: string;
1868
1888
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
1869
- currentItemStrokeWidth: number;
1889
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1870
1890
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1871
1891
  currentItemRoughness: number;
1892
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1872
1893
  currentItemOpacity: number;
1873
1894
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1874
1895
  currentItemFontSize: number;
@@ -1926,6 +1947,7 @@ export declare const actionToggleHandTool: {
1926
1947
  gridStep: number;
1927
1948
  gridModeEnabled: boolean;
1928
1949
  viewModeEnabled: boolean;
1950
+ viewModeOnly: boolean;
1929
1951
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
1930
1952
  width: number;
1931
1953
  height: number;
@@ -74,9 +74,10 @@ export declare const actionPaste: {
74
74
  currentItemStrokeColor: string;
75
75
  currentItemBackgroundColor: string;
76
76
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
77
- currentItemStrokeWidth: number;
77
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
78
78
  currentItemStrokeStyle: import("@excalidraw/element/types").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;
@@ -137,6 +138,7 @@ export declare const actionPaste: {
137
138
  gridStep: number;
138
139
  gridModeEnabled: boolean;
139
140
  viewModeEnabled: boolean;
141
+ viewModeOnly: boolean;
140
142
  selectedGroupIds: {
141
143
  [groupId: string]: boolean;
142
144
  };
@@ -290,9 +292,10 @@ export declare const actionCopyAsPng: {
290
292
  currentItemStrokeColor: string;
291
293
  currentItemBackgroundColor: string;
292
294
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
293
- currentItemStrokeWidth: number;
295
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
294
296
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
295
297
  currentItemRoughness: number;
298
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
296
299
  currentItemOpacity: number;
297
300
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
298
301
  currentItemFontSize: number;
@@ -353,6 +356,7 @@ export declare const actionCopyAsPng: {
353
356
  gridStep: number;
354
357
  gridModeEnabled: boolean;
355
358
  viewModeEnabled: boolean;
359
+ viewModeOnly: boolean;
356
360
  selectedGroupIds: {
357
361
  [groupId: string]: boolean;
358
362
  };
@@ -75,9 +75,10 @@ export declare const actionToggleCropEditor: {
75
75
  currentItemStrokeColor: string;
76
76
  currentItemBackgroundColor: string;
77
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
78
- currentItemStrokeWidth: number;
78
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
79
79
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
80
80
  currentItemRoughness: number;
81
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
81
82
  currentItemOpacity: number;
82
83
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
83
84
  currentItemFontSize: number;
@@ -138,6 +139,7 @@ export declare const actionToggleCropEditor: {
138
139
  gridStep: number;
139
140
  gridModeEnabled: boolean;
140
141
  viewModeEnabled: boolean;
142
+ viewModeOnly: boolean;
141
143
  selectedGroupIds: {
142
144
  [groupId: string]: boolean;
143
145
  };
@@ -76,9 +76,10 @@ export declare const actionDeleteSelected: {
76
76
  currentItemStrokeColor: string;
77
77
  currentItemBackgroundColor: string;
78
78
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
79
- currentItemStrokeWidth: number;
79
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
80
80
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
81
81
  currentItemRoughness: number;
82
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
82
83
  currentItemOpacity: number;
83
84
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
84
85
  currentItemFontSize: number;
@@ -139,6 +140,7 @@ export declare const actionDeleteSelected: {
139
140
  gridStep: number;
140
141
  gridModeEnabled: boolean;
141
142
  viewModeEnabled: boolean;
143
+ viewModeOnly: boolean;
142
144
  selectedGroupIds: {
143
145
  [groupId: string]: boolean;
144
146
  };
@@ -275,9 +277,10 @@ export declare const actionDeleteSelected: {
275
277
  currentItemStrokeColor: string;
276
278
  currentItemBackgroundColor: string;
277
279
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
278
- currentItemStrokeWidth: number;
280
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
279
281
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
280
282
  currentItemRoughness: number;
283
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
281
284
  currentItemOpacity: number;
282
285
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
283
286
  currentItemFontSize: number;
@@ -338,6 +341,7 @@ export declare const actionDeleteSelected: {
338
341
  gridStep: number;
339
342
  gridModeEnabled: boolean;
340
343
  viewModeEnabled: boolean;
344
+ viewModeOnly: boolean;
341
345
  selectedGroupIds: {
342
346
  [groupId: string]: boolean;
343
347
  };
@@ -442,9 +446,10 @@ export declare const actionDeleteSelected: {
442
446
  currentItemStrokeColor: string;
443
447
  currentItemBackgroundColor: string;
444
448
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
445
- currentItemStrokeWidth: number;
449
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
446
450
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
447
451
  currentItemRoughness: number;
452
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
448
453
  currentItemOpacity: number;
449
454
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
450
455
  currentItemFontSize: number;
@@ -502,6 +507,7 @@ export declare const actionDeleteSelected: {
502
507
  gridStep: number;
503
508
  gridModeEnabled: boolean;
504
509
  viewModeEnabled: boolean;
510
+ viewModeOnly: boolean;
505
511
  width: number;
506
512
  height: number;
507
513
  offsetTop: number;
@@ -68,9 +68,10 @@ export declare const actionDeselect: {
68
68
  currentItemStrokeColor: string;
69
69
  currentItemBackgroundColor: string;
70
70
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
71
- currentItemStrokeWidth: number;
71
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
72
72
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
73
73
  currentItemRoughness: number;
74
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
74
75
  currentItemOpacity: number;
75
76
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
76
77
  currentItemFontSize: number;
@@ -128,6 +129,7 @@ export declare const actionDeselect: {
128
129
  gridStep: number;
129
130
  gridModeEnabled: boolean;
130
131
  viewModeEnabled: boolean;
132
+ viewModeOnly: boolean;
131
133
  width: number;
132
134
  height: number;
133
135
  offsetTop: number;
@@ -104,9 +104,10 @@ export declare const actionLinkToElement: {
104
104
  currentItemStrokeColor: string;
105
105
  currentItemBackgroundColor: string;
106
106
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
107
- currentItemStrokeWidth: number;
107
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
108
108
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
109
109
  currentItemRoughness: number;
110
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
110
111
  currentItemOpacity: number;
111
112
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
112
113
  currentItemFontSize: number;
@@ -155,6 +156,7 @@ export declare const actionLinkToElement: {
155
156
  gridStep: number;
156
157
  gridModeEnabled: boolean;
157
158
  viewModeEnabled: boolean;
159
+ viewModeOnly: boolean;
158
160
  selectedGroupIds: {
159
161
  [groupId: string]: boolean;
160
162
  };
@@ -86,9 +86,10 @@ export declare const actionToggleElementLock: {
86
86
  currentItemStrokeColor: string;
87
87
  currentItemBackgroundColor: string;
88
88
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
89
- currentItemStrokeWidth: number;
89
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
90
90
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
91
91
  currentItemRoughness: number;
92
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
92
93
  currentItemOpacity: number;
93
94
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
94
95
  currentItemFontSize: number;
@@ -146,6 +147,7 @@ export declare const actionToggleElementLock: {
146
147
  gridStep: number;
147
148
  gridModeEnabled: boolean;
148
149
  viewModeEnabled: boolean;
150
+ viewModeOnly: boolean;
149
151
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
150
152
  width: number;
151
153
  height: number;
@@ -263,9 +265,10 @@ export declare const actionUnlockAllElements: {
263
265
  currentItemStrokeColor: string;
264
266
  currentItemBackgroundColor: string;
265
267
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
266
- currentItemStrokeWidth: number;
268
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
267
269
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
268
270
  currentItemRoughness: number;
271
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
269
272
  currentItemOpacity: number;
270
273
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
271
274
  currentItemFontSize: number;
@@ -323,6 +326,7 @@ export declare const actionUnlockAllElements: {
323
326
  gridStep: number;
324
327
  gridModeEnabled: boolean;
325
328
  viewModeEnabled: boolean;
329
+ viewModeOnly: boolean;
326
330
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
327
331
  width: number;
328
332
  height: number;
@@ -72,9 +72,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
72
72
  currentItemStrokeColor: string;
73
73
  currentItemBackgroundColor: string;
74
74
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
75
- currentItemStrokeWidth: number;
75
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
76
76
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
77
77
  currentItemRoughness: number;
78
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
78
79
  currentItemOpacity: number;
79
80
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
80
81
  currentItemFontSize: number;
@@ -135,6 +136,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
135
136
  gridStep: number;
136
137
  gridModeEnabled: boolean;
137
138
  viewModeEnabled: boolean;
139
+ viewModeOnly: boolean;
138
140
  selectedGroupIds: {
139
141
  [groupId: string]: boolean;
140
142
  };
@@ -83,6 +83,7 @@ export declare const actionLoadScene: {
83
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
84
84
  appState: {
85
85
  viewModeEnabled: boolean;
86
+ viewModeOnly: boolean;
86
87
  zenModeEnabled: boolean;
87
88
  gridModeEnabled: boolean;
88
89
  objectsSnapModeEnabled: boolean;
@@ -154,9 +155,10 @@ export declare const actionLoadScene: {
154
155
  currentItemStrokeColor: string;
155
156
  currentItemBackgroundColor: string;
156
157
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
157
- currentItemStrokeWidth: number;
158
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
158
159
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
159
160
  currentItemRoughness: number;
161
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
160
162
  currentItemOpacity: number;
161
163
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
162
164
  currentItemFontSize: number;
@@ -310,9 +312,10 @@ export declare const actionLoadScene: {
310
312
  currentItemStrokeColor: string;
311
313
  currentItemBackgroundColor: string;
312
314
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
313
- currentItemStrokeWidth: number;
315
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
314
316
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
315
317
  currentItemRoughness: number;
318
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
316
319
  currentItemOpacity: number;
317
320
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
318
321
  currentItemFontSize: number;
@@ -373,6 +376,7 @@ export declare const actionLoadScene: {
373
376
  gridStep: number;
374
377
  gridModeEnabled: boolean;
375
378
  viewModeEnabled: boolean;
379
+ viewModeOnly: boolean;
376
380
  selectedGroupIds: {
377
381
  [groupId: string]: boolean;
378
382
  };
@@ -74,9 +74,10 @@ export declare const actionSelectAllElementsInFrame: {
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;
@@ -134,6 +135,7 @@ export declare const actionSelectAllElementsInFrame: {
134
135
  gridStep: number;
135
136
  gridModeEnabled: boolean;
136
137
  viewModeEnabled: boolean;
138
+ viewModeOnly: boolean;
137
139
  selectedGroupIds: {
138
140
  [groupId: string]: boolean;
139
141
  };
@@ -256,9 +258,10 @@ export declare const actionRemoveAllElementsFromFrame: {
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;
@@ -316,6 +319,7 @@ export declare const actionRemoveAllElementsFromFrame: {
316
319
  gridStep: number;
317
320
  gridModeEnabled: boolean;
318
321
  viewModeEnabled: boolean;
322
+ viewModeOnly: boolean;
319
323
  selectedGroupIds: {
320
324
  [groupId: string]: boolean;
321
325
  };
@@ -436,9 +440,10 @@ export declare const actionupdateFrameRendering: {
436
440
  currentItemStrokeColor: string;
437
441
  currentItemBackgroundColor: string;
438
442
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
439
- currentItemStrokeWidth: number;
443
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
440
444
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
441
445
  currentItemRoughness: number;
446
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
442
447
  currentItemOpacity: number;
443
448
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
444
449
  currentItemFontSize: number;
@@ -499,6 +504,7 @@ export declare const actionupdateFrameRendering: {
499
504
  gridStep: number;
500
505
  gridModeEnabled: boolean;
501
506
  viewModeEnabled: boolean;
507
+ viewModeOnly: boolean;
502
508
  selectedGroupIds: {
503
509
  [groupId: string]: boolean;
504
510
  };
@@ -616,9 +622,10 @@ export declare const actionSetFrameAsActiveTool: {
616
622
  currentItemStrokeColor: string;
617
623
  currentItemBackgroundColor: string;
618
624
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
619
- currentItemStrokeWidth: number;
625
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
620
626
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
621
627
  currentItemRoughness: number;
628
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
622
629
  currentItemOpacity: number;
623
630
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
624
631
  currentItemFontSize: number;
@@ -679,6 +686,7 @@ export declare const actionSetFrameAsActiveTool: {
679
686
  gridStep: number;
680
687
  gridModeEnabled: boolean;
681
688
  viewModeEnabled: boolean;
689
+ viewModeOnly: boolean;
682
690
  selectedGroupIds: {
683
691
  [groupId: string]: boolean;
684
692
  };
@@ -1009,6 +1017,7 @@ export declare const actionWrapSelectionInFrame: {
1009
1017
  type: "image";
1010
1018
  fileId: import("@excalidraw/element/types").FileId | null;
1011
1019
  fileName: string | null;
1020
+ thumbHash: string | null;
1012
1021
  status: "pending" | "saved" | "error";
1013
1022
  scale: [number, number];
1014
1023
  crop: import("@excalidraw/element/types").ImageCrop | null;
@@ -1164,6 +1173,7 @@ export declare const actionWrapSelectionInFrame: {
1164
1173
  points: readonly import("@excalidraw/math").LocalPoint[];
1165
1174
  pressures: readonly number[];
1166
1175
  simulatePressure: boolean;
1176
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
1167
1177
  }> & {
1168
1178
  index: import("@excalidraw/element/types").FractionalIndex;
1169
1179
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
@@ -80,9 +80,10 @@ export declare const actionGroup: {
80
80
  currentItemStrokeColor: string;
81
81
  currentItemBackgroundColor: string;
82
82
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
83
- currentItemStrokeWidth: number;
83
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
84
84
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
85
85
  currentItemRoughness: number;
86
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
86
87
  currentItemOpacity: number;
87
88
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
88
89
  currentItemFontSize: number;
@@ -140,6 +141,7 @@ export declare const actionGroup: {
140
141
  gridStep: number;
141
142
  gridModeEnabled: boolean;
142
143
  viewModeEnabled: boolean;
144
+ viewModeOnly: boolean;
143
145
  width: number;
144
146
  height: number;
145
147
  offsetTop: number;
@@ -261,9 +263,10 @@ export declare const actionUngroup: {
261
263
  currentItemStrokeColor: string;
262
264
  currentItemBackgroundColor: string;
263
265
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
264
- currentItemStrokeWidth: number;
266
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
265
267
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
266
268
  currentItemRoughness: number;
269
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
267
270
  currentItemOpacity: number;
268
271
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
269
272
  currentItemFontSize: number;
@@ -321,6 +324,7 @@ export declare const actionUngroup: {
321
324
  gridStep: number;
322
325
  gridModeEnabled: boolean;
323
326
  viewModeEnabled: boolean;
327
+ viewModeOnly: boolean;
324
328
  width: number;
325
329
  height: number;
326
330
  offsetTop: number;
@@ -106,9 +106,10 @@ export declare const actionToggleLinearEditor: {
106
106
  currentItemStrokeColor: string;
107
107
  currentItemBackgroundColor: string;
108
108
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
109
- currentItemStrokeWidth: number;
109
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
110
110
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
111
111
  currentItemRoughness: number;
112
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
112
113
  currentItemOpacity: number;
113
114
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
114
115
  currentItemFontSize: number;
@@ -169,6 +170,7 @@ export declare const actionToggleLinearEditor: {
169
170
  gridStep: number;
170
171
  gridModeEnabled: boolean;
171
172
  viewModeEnabled: boolean;
173
+ viewModeOnly: boolean;
172
174
  selectedGroupIds: {
173
175
  [groupId: string]: boolean;
174
176
  };
@@ -500,6 +502,7 @@ export declare const actionTogglePolygon: {
500
502
  type: "image";
501
503
  fileId: import("@excalidraw/element/types").FileId | null;
502
504
  fileName: string | null;
505
+ thumbHash: string | null;
503
506
  status: "pending" | "saved" | "error";
504
507
  scale: [number, number];
505
508
  crop: import("@excalidraw/element/types").ImageCrop | null;
@@ -655,6 +658,7 @@ export declare const actionTogglePolygon: {
655
658
  points: readonly import("@excalidraw/math").LocalPoint[];
656
659
  pressures: readonly number[];
657
660
  simulatePressure: boolean;
661
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
658
662
  }> & {
659
663
  index: import("@excalidraw/element/types").FractionalIndex;
660
664
  }))[];