@zsviczian/excalidraw 0.17.1-obsidian-47 → 0.17.1-obsidian-48

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 (73) hide show
  1. package/dist/excalidraw.development.js +248 -127
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
  5. package/types/excalidraw/actions/actionBoundText.d.ts +2 -2
  6. package/types/excalidraw/actions/actionCanvas.d.ts +18 -18
  7. package/types/excalidraw/actions/actionClipboard.d.ts +10 -10
  8. package/types/excalidraw/actions/actionDeleteSelected.d.ts +6 -6
  9. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  10. package/types/excalidraw/actions/actionElementLock.d.ts +2 -2
  11. package/types/excalidraw/actions/actionExport.d.ts +15 -15
  12. package/types/excalidraw/actions/actionFinalize.d.ts +2 -2
  13. package/types/excalidraw/actions/actionFrame.d.ts +4 -4
  14. package/types/excalidraw/actions/actionGroup.d.ts +2 -2
  15. package/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
  16. package/types/excalidraw/actions/actionLink.d.ts +1 -1
  17. package/types/excalidraw/actions/actionMenu.d.ts +3 -3
  18. package/types/excalidraw/actions/actionNavigate.d.ts +2 -2
  19. package/types/excalidraw/actions/actionProperties.d.ts +14 -14
  20. package/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
  21. package/types/excalidraw/actions/actionStyles.d.ts +1 -1
  22. package/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
  23. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
  24. package/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
  25. package/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
  26. package/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
  27. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  28. package/types/excalidraw/appState.d.ts +8 -8
  29. package/types/excalidraw/clipboard.d.ts +2 -2
  30. package/types/excalidraw/components/App.d.ts +2 -2
  31. package/types/excalidraw/components/hyperlink/helpers.d.ts +4 -3
  32. package/types/excalidraw/element/binding.d.ts +12 -10
  33. package/types/excalidraw/element/bounds.d.ts +6 -4
  34. package/types/excalidraw/element/collision.d.ts +6 -5
  35. package/types/excalidraw/element/embeddable.d.ts +1 -1
  36. package/types/excalidraw/element/heading.d.ts +5 -4
  37. package/types/excalidraw/element/linearElementEditor.d.ts +20 -237
  38. package/types/excalidraw/element/resizeElements.d.ts +1 -2
  39. package/types/excalidraw/element/resizeTest.d.ts +3 -2
  40. package/types/excalidraw/element/routing.d.ts +2 -2
  41. package/types/excalidraw/element/textElement.d.ts +1 -1
  42. package/types/excalidraw/element/transformHandles.d.ts +4 -3
  43. package/types/excalidraw/element/typeChecks.d.ts +0 -3
  44. package/types/excalidraw/element/types.d.ts +7 -6
  45. package/types/excalidraw/obsidianUtils.d.ts +1 -0
  46. package/types/excalidraw/points.d.ts +3 -3
  47. package/types/excalidraw/shapes.d.ts +19 -4
  48. package/types/excalidraw/snapping.d.ts +13 -10
  49. package/types/excalidraw/types.d.ts +0 -2
  50. package/types/excalidraw/utils.d.ts +3 -4
  51. package/types/excalidraw/visualdebug.d.ts +4 -3
  52. package/types/excalidraw/zindex.d.ts +2 -2
  53. package/types/math/angle.d.ts +17 -0
  54. package/types/math/arc.d.ts +6 -0
  55. package/types/math/curve.d.ts +32 -0
  56. package/types/math/ga/ga.d.ts +63 -0
  57. package/types/math/ga/gadirections.d.ts +8 -0
  58. package/types/math/ga/galines.d.ts +22 -0
  59. package/types/math/ga/gapoints.d.ts +7 -0
  60. package/types/math/ga/gatransforms.d.ts +10 -0
  61. package/types/math/index.d.ts +12 -0
  62. package/types/math/line.d.ts +26 -0
  63. package/types/math/point.d.ts +140 -0
  64. package/types/math/polygon.d.ts +5 -0
  65. package/types/math/range.d.ts +44 -0
  66. package/types/math/segment.d.ts +32 -0
  67. package/types/math/triangle.d.ts +11 -0
  68. package/types/math/types.d.ts +96 -0
  69. package/types/math/utils.d.ts +5 -0
  70. package/types/math/vector.d.ts +88 -0
  71. package/types/utils/bbox.d.ts +7 -9
  72. package/types/utils/collision.d.ts +9 -4
  73. package/types/utils/geometry/shape.d.ts +38 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.17.1-obsidian-47",
3
+ "version": "0.17.1-obsidian-48",
4
4
  "main": "main.js",
5
5
  "types": "types/excalidraw/index.d.ts",
6
6
  "files": [
@@ -63,7 +63,7 @@ export declare const actionAddToLibrary: {
63
63
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
64
64
  currentHoveredFontFamily: number | null;
65
65
  currentItemRoundness: import("../element/types").StrokeRoundness;
66
- currentItemArrowType: "sharp" | "round" | "elbow";
66
+ currentItemArrowType: "round" | "sharp" | "elbow";
67
67
  viewBackgroundColor: string;
68
68
  scrollX: number;
69
69
  scrollY: number;
@@ -247,7 +247,7 @@ export declare const actionAddToLibrary: {
247
247
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
248
248
  currentHoveredFontFamily: number | null;
249
249
  currentItemRoundness: import("../element/types").StrokeRoundness;
250
- currentItemArrowType: "sharp" | "round" | "elbow";
250
+ currentItemArrowType: "round" | "sharp" | "elbow";
251
251
  viewBackgroundColor: string;
252
252
  scrollX: number;
253
253
  scrollY: number;
@@ -436,7 +436,7 @@ export declare const actionAddToLibrary: {
436
436
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
437
437
  currentHoveredFontFamily: number | null;
438
438
  currentItemRoundness: import("../element/types").StrokeRoundness;
439
- currentItemArrowType: "sharp" | "round" | "elbow";
439
+ currentItemArrowType: "round" | "sharp" | "elbow";
440
440
  viewBackgroundColor: string;
441
441
  scrollX: number;
442
442
  scrollY: number;
@@ -83,7 +83,7 @@ export declare const actionBindText: {
83
83
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
84
84
  currentHoveredFontFamily: number | null;
85
85
  currentItemRoundness: import("../element/types").StrokeRoundness;
86
- currentItemArrowType: "sharp" | "round" | "elbow";
86
+ currentItemArrowType: "round" | "sharp" | "elbow";
87
87
  viewBackgroundColor: string;
88
88
  scrollX: number;
89
89
  scrollY: number;
@@ -284,7 +284,7 @@ export declare const actionWrapTextInContainer: {
284
284
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
285
285
  currentHoveredFontFamily: number | null;
286
286
  currentItemRoundness: import("../element/types").StrokeRoundness;
287
- currentItemArrowType: "sharp" | "round" | "elbow";
287
+ currentItemArrowType: "round" | "sharp" | "elbow";
288
288
  viewBackgroundColor: string;
289
289
  scrollX: number;
290
290
  scrollY: number;
@@ -66,11 +66,6 @@ export declare const actionClearCanvas: {
66
66
  allowWheelZoom: boolean | undefined;
67
67
  pinnedScripts: string[] | undefined;
68
68
  customPens: any[] | undefined;
69
- viewModeEnabled: boolean;
70
- zenModeEnabled: boolean;
71
- objectsSnapModeEnabled: boolean;
72
- name: string | null;
73
- currentItemArrowType: "sharp" | "round" | "elbow";
74
69
  contextMenu: {
75
70
  items: import("../components/ContextMenu").ContextMenuItems;
76
71
  top: number;
@@ -117,11 +112,13 @@ export declare const actionClearCanvas: {
117
112
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
118
113
  currentHoveredFontFamily: number | null;
119
114
  currentItemRoundness: import("../element/types").StrokeRoundness;
115
+ currentItemArrowType: "round" | "sharp" | "elbow";
120
116
  viewBackgroundColor: string;
121
117
  scrollX: number;
122
118
  scrollY: number;
123
119
  cursorButton: "up" | "down";
124
120
  scrolledOutside: boolean;
121
+ name: string | null;
125
122
  isResizing: boolean;
126
123
  isRotating: boolean;
127
124
  zoom: Readonly<{
@@ -156,6 +153,8 @@ export declare const actionClearCanvas: {
156
153
  closable?: boolean | undefined;
157
154
  duration?: number | undefined;
158
155
  } | null;
156
+ zenModeEnabled: boolean;
157
+ viewModeEnabled: boolean;
159
158
  selectedGroupIds: {
160
159
  [groupId: string]: boolean;
161
160
  };
@@ -207,6 +206,7 @@ export declare const actionClearCanvas: {
207
206
  x: number;
208
207
  y: number;
209
208
  } | null;
209
+ objectsSnapModeEnabled: boolean;
210
210
  userToFollow: import("../types").UserToFollow | null;
211
211
  followedBy: Set<import("../types").SocketId>;
212
212
  };
@@ -285,7 +285,7 @@ export declare const actionZoomIn: {
285
285
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
286
286
  currentHoveredFontFamily: number | null;
287
287
  currentItemRoundness: import("../element/types").StrokeRoundness;
288
- currentItemArrowType: "sharp" | "round" | "elbow";
288
+ currentItemArrowType: "round" | "sharp" | "elbow";
289
289
  viewBackgroundColor: string;
290
290
  cursorButton: "up" | "down";
291
291
  scrolledOutside: boolean;
@@ -488,7 +488,7 @@ export declare const actionZoomOut: {
488
488
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
489
489
  currentHoveredFontFamily: number | null;
490
490
  currentItemRoundness: import("../element/types").StrokeRoundness;
491
- currentItemArrowType: "sharp" | "round" | "elbow";
491
+ currentItemArrowType: "round" | "sharp" | "elbow";
492
492
  viewBackgroundColor: string;
493
493
  cursorButton: "up" | "down";
494
494
  scrolledOutside: boolean;
@@ -691,7 +691,7 @@ export declare const actionResetZoom: {
691
691
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
692
692
  currentHoveredFontFamily: number | null;
693
693
  currentItemRoundness: import("../element/types").StrokeRoundness;
694
- currentItemArrowType: "sharp" | "round" | "elbow";
694
+ currentItemArrowType: "round" | "sharp" | "elbow";
695
695
  viewBackgroundColor: string;
696
696
  cursorButton: "up" | "down";
697
697
  scrolledOutside: boolean;
@@ -892,7 +892,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
892
892
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
893
893
  currentHoveredFontFamily: number | null;
894
894
  currentItemRoundness: import("../element/types").StrokeRoundness;
895
- currentItemArrowType: "sharp" | "round" | "elbow";
895
+ currentItemArrowType: "round" | "sharp" | "elbow";
896
896
  viewBackgroundColor: string;
897
897
  cursorButton: "up" | "down";
898
898
  scrolledOutside: boolean;
@@ -1089,7 +1089,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
1089
1089
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1090
1090
  currentHoveredFontFamily: number | null;
1091
1091
  currentItemRoundness: import("../element/types").StrokeRoundness;
1092
- currentItemArrowType: "sharp" | "round" | "elbow";
1092
+ currentItemArrowType: "round" | "sharp" | "elbow";
1093
1093
  viewBackgroundColor: string;
1094
1094
  cursorButton: "up" | "down";
1095
1095
  scrolledOutside: boolean;
@@ -1286,7 +1286,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1286
1286
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1287
1287
  currentHoveredFontFamily: number | null;
1288
1288
  currentItemRoundness: import("../element/types").StrokeRoundness;
1289
- currentItemArrowType: "sharp" | "round" | "elbow";
1289
+ currentItemArrowType: "round" | "sharp" | "elbow";
1290
1290
  viewBackgroundColor: string;
1291
1291
  cursorButton: "up" | "down";
1292
1292
  scrolledOutside: boolean;
@@ -1487,7 +1487,7 @@ export declare const actionZoomToFitSelection: {
1487
1487
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1488
1488
  currentHoveredFontFamily: number | null;
1489
1489
  currentItemRoundness: import("../element/types").StrokeRoundness;
1490
- currentItemArrowType: "sharp" | "round" | "elbow";
1490
+ currentItemArrowType: "round" | "sharp" | "elbow";
1491
1491
  viewBackgroundColor: string;
1492
1492
  cursorButton: "up" | "down";
1493
1493
  scrolledOutside: boolean;
@@ -1689,7 +1689,7 @@ export declare const actionZoomToFit: {
1689
1689
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1690
1690
  currentHoveredFontFamily: number | null;
1691
1691
  currentItemRoundness: import("../element/types").StrokeRoundness;
1692
- currentItemArrowType: "sharp" | "round" | "elbow";
1692
+ currentItemArrowType: "round" | "sharp" | "elbow";
1693
1693
  viewBackgroundColor: string;
1694
1694
  cursorButton: "up" | "down";
1695
1695
  scrolledOutside: boolean;
@@ -1888,7 +1888,7 @@ export declare const actionToggleTheme: {
1888
1888
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1889
1889
  currentHoveredFontFamily: number | null;
1890
1890
  currentItemRoundness: import("../element/types").StrokeRoundness;
1891
- currentItemArrowType: "sharp" | "round" | "elbow";
1891
+ currentItemArrowType: "round" | "sharp" | "elbow";
1892
1892
  viewBackgroundColor: string;
1893
1893
  scrollX: number;
1894
1894
  scrollY: number;
@@ -2087,7 +2087,7 @@ export declare const actionToggleEraserTool: {
2087
2087
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2088
2088
  currentHoveredFontFamily: number | null;
2089
2089
  currentItemRoundness: import("../element/types").StrokeRoundness;
2090
- currentItemArrowType: "sharp" | "round" | "elbow";
2090
+ currentItemArrowType: "round" | "sharp" | "elbow";
2091
2091
  viewBackgroundColor: string;
2092
2092
  scrollX: number;
2093
2093
  scrollY: number;
@@ -2283,7 +2283,7 @@ export declare const actionToggleHandTool: {
2283
2283
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2284
2284
  currentHoveredFontFamily: number | null;
2285
2285
  currentItemRoundness: import("../element/types").StrokeRoundness;
2286
- currentItemArrowType: "sharp" | "round" | "elbow";
2286
+ currentItemArrowType: "round" | "sharp" | "elbow";
2287
2287
  viewBackgroundColor: string;
2288
2288
  scrollX: number;
2289
2289
  scrollY: number;
@@ -2476,7 +2476,7 @@ export declare const actionToggleLaserPointer: {
2476
2476
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2477
2477
  currentHoveredFontFamily: number | null;
2478
2478
  currentItemRoundness: import("../element/types").StrokeRoundness;
2479
- currentItemArrowType: "sharp" | "round" | "elbow";
2479
+ currentItemArrowType: "round" | "sharp" | "elbow";
2480
2480
  viewBackgroundColor: string;
2481
2481
  scrollX: number;
2482
2482
  scrollY: number;
@@ -2671,7 +2671,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2671
2671
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2672
2672
  currentHoveredFontFamily: number | null;
2673
2673
  currentItemRoundness: import("../element/types").StrokeRoundness;
2674
- currentItemArrowType: "sharp" | "round" | "elbow";
2674
+ currentItemArrowType: "round" | "sharp" | "elbow";
2675
2675
  viewBackgroundColor: string;
2676
2676
  cursorButton: "up" | "down";
2677
2677
  scrolledOutside: boolean;
@@ -62,7 +62,7 @@ export declare const actionCopy: {
62
62
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
63
63
  currentHoveredFontFamily: number | null;
64
64
  currentItemRoundness: import("../element/types").StrokeRoundness;
65
- currentItemArrowType: "sharp" | "round" | "elbow";
65
+ currentItemArrowType: "round" | "sharp" | "elbow";
66
66
  viewBackgroundColor: string;
67
67
  scrollX: number;
68
68
  scrollY: number;
@@ -265,7 +265,7 @@ export declare const actionPaste: {
265
265
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
266
266
  currentHoveredFontFamily: number | null;
267
267
  currentItemRoundness: import("../element/types").StrokeRoundness;
268
- currentItemArrowType: "sharp" | "round" | "elbow";
268
+ currentItemArrowType: "round" | "sharp" | "elbow";
269
269
  viewBackgroundColor: string;
270
270
  scrollX: number;
271
271
  scrollY: number;
@@ -469,7 +469,7 @@ export declare const actionCut: {
469
469
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
470
470
  currentHoveredFontFamily: number | null;
471
471
  currentItemRoundness: import("../element/types").StrokeRoundness;
472
- currentItemArrowType: "sharp" | "round" | "elbow";
472
+ currentItemArrowType: "round" | "sharp" | "elbow";
473
473
  viewBackgroundColor: string;
474
474
  scrollX: number;
475
475
  scrollY: number;
@@ -621,19 +621,19 @@ export declare const actionCut: {
621
621
  y: number;
622
622
  }> | null;
623
623
  segmentMidpoint: {
624
- value: readonly [number, number] | null;
624
+ value: import("../../math").GlobalPoint | null;
625
625
  index: number | null;
626
626
  added: boolean;
627
627
  };
628
628
  }>;
629
629
  isDragging: boolean;
630
- lastUncommittedPoint: readonly [number, number] | null;
630
+ lastUncommittedPoint: import("../../math").LocalPoint | null;
631
631
  pointerOffset: Readonly<{
632
632
  x: number;
633
633
  y: number;
634
634
  }>;
635
635
  hoverPointIndex: number;
636
- segmentMidPointHoveredCoords: readonly [number, number] | null;
636
+ segmentMidPointHoveredCoords: import("../../math").GlobalPoint | null;
637
637
  };
638
638
  contextMenu: {
639
639
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -688,7 +688,7 @@ export declare const actionCut: {
688
688
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
689
689
  currentHoveredFontFamily: number | null;
690
690
  currentItemRoundness: import("../element/types").StrokeRoundness;
691
- currentItemArrowType: "sharp" | "round" | "elbow";
691
+ currentItemArrowType: "round" | "sharp" | "elbow";
692
692
  viewBackgroundColor: string;
693
693
  scrollX: number;
694
694
  scrollY: number;
@@ -877,7 +877,7 @@ export declare const actionCut: {
877
877
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
878
878
  currentHoveredFontFamily: number | null;
879
879
  currentItemRoundness: import("../element/types").StrokeRoundness;
880
- currentItemArrowType: "sharp" | "round" | "elbow";
880
+ currentItemArrowType: "round" | "sharp" | "elbow";
881
881
  viewBackgroundColor: string;
882
882
  scrollX: number;
883
883
  scrollY: number;
@@ -1075,7 +1075,7 @@ export declare const actionCopyAsSvg: {
1075
1075
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1076
1076
  currentHoveredFontFamily: number | null;
1077
1077
  currentItemRoundness: import("../element/types").StrokeRoundness;
1078
- currentItemArrowType: "sharp" | "round" | "elbow";
1078
+ currentItemArrowType: "round" | "sharp" | "elbow";
1079
1079
  viewBackgroundColor: string;
1080
1080
  scrollX: number;
1081
1081
  scrollY: number;
@@ -1280,7 +1280,7 @@ export declare const actionCopyAsPng: {
1280
1280
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1281
1281
  currentHoveredFontFamily: number | null;
1282
1282
  currentItemRoundness: import("../element/types").StrokeRoundness;
1283
- currentItemArrowType: "sharp" | "round" | "elbow";
1283
+ currentItemArrowType: "round" | "sharp" | "elbow";
1284
1284
  viewBackgroundColor: string;
1285
1285
  scrollX: number;
1286
1286
  scrollY: number;
@@ -66,7 +66,7 @@ export declare const actionDeleteSelected: {
66
66
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
67
67
  currentHoveredFontFamily: number | null;
68
68
  currentItemRoundness: import("../element/types").StrokeRoundness;
69
- currentItemArrowType: "sharp" | "round" | "elbow";
69
+ currentItemArrowType: "round" | "sharp" | "elbow";
70
70
  viewBackgroundColor: string;
71
71
  scrollX: number;
72
72
  scrollY: number;
@@ -218,19 +218,19 @@ export declare const actionDeleteSelected: {
218
218
  y: number;
219
219
  }> | null;
220
220
  segmentMidpoint: {
221
- value: readonly [number, number] | null;
221
+ value: import("../../math").GlobalPoint | null;
222
222
  index: number | null;
223
223
  added: boolean;
224
224
  };
225
225
  }>;
226
226
  isDragging: boolean;
227
- lastUncommittedPoint: readonly [number, number] | null;
227
+ lastUncommittedPoint: import("../../math").LocalPoint | null;
228
228
  pointerOffset: Readonly<{
229
229
  x: number;
230
230
  y: number;
231
231
  }>;
232
232
  hoverPointIndex: number;
233
- segmentMidPointHoveredCoords: readonly [number, number] | null;
233
+ segmentMidPointHoveredCoords: import("../../math").GlobalPoint | null;
234
234
  };
235
235
  contextMenu: {
236
236
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -285,7 +285,7 @@ export declare const actionDeleteSelected: {
285
285
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
286
286
  currentHoveredFontFamily: number | null;
287
287
  currentItemRoundness: import("../element/types").StrokeRoundness;
288
- currentItemArrowType: "sharp" | "round" | "elbow";
288
+ currentItemArrowType: "round" | "sharp" | "elbow";
289
289
  viewBackgroundColor: string;
290
290
  scrollX: number;
291
291
  scrollY: number;
@@ -474,7 +474,7 @@ export declare const actionDeleteSelected: {
474
474
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
475
475
  currentHoveredFontFamily: number | null;
476
476
  currentItemRoundness: import("../element/types").StrokeRoundness;
477
- currentItemArrowType: "sharp" | "round" | "elbow";
477
+ currentItemArrowType: "round" | "sharp" | "elbow";
478
478
  viewBackgroundColor: string;
479
479
  scrollX: number;
480
480
  scrollY: number;
@@ -10,7 +10,7 @@ export declare const actionDuplicateSelection: {
10
10
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
11
11
  storeAction: "capture";
12
12
  elements?: readonly ExcalidrawElement[] | null | undefined;
13
- appState?: import("../utility-types").MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
13
+ appState?: import("../utility-types").MarkOptional<AppState, "offsetTop" | "offsetLeft" | "width" | "height"> | null | undefined;
14
14
  files?: import("../types").BinaryFiles | null | undefined;
15
15
  replaceFiles?: boolean | undefined;
16
16
  };
@@ -65,7 +65,7 @@ export declare const actionToggleElementLock: {
65
65
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
66
66
  currentHoveredFontFamily: number | null;
67
67
  currentItemRoundness: import("../element/types").StrokeRoundness;
68
- currentItemArrowType: "sharp" | "round" | "elbow";
68
+ currentItemArrowType: "round" | "sharp" | "elbow";
69
69
  viewBackgroundColor: string;
70
70
  scrollX: number;
71
71
  scrollY: number;
@@ -271,7 +271,7 @@ export declare const actionUnlockAllElements: {
271
271
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
272
272
  currentHoveredFontFamily: number | null;
273
273
  currentItemRoundness: import("../element/types").StrokeRoundness;
274
- currentItemArrowType: "sharp" | "round" | "elbow";
274
+ currentItemArrowType: "round" | "sharp" | "elbow";
275
275
  viewBackgroundColor: string;
276
276
  scrollX: number;
277
277
  scrollY: number;
@@ -61,7 +61,7 @@ export declare const actionChangeProjectName: {
61
61
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
62
  currentHoveredFontFamily: number | null;
63
63
  currentItemRoundness: import("../element/types").StrokeRoundness;
64
- currentItemArrowType: "sharp" | "round" | "elbow";
64
+ currentItemArrowType: "round" | "sharp" | "elbow";
65
65
  viewBackgroundColor: string;
66
66
  scrollX: number;
67
67
  scrollY: number;
@@ -261,7 +261,7 @@ export declare const actionChangeExportScale: {
261
261
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
262
262
  currentHoveredFontFamily: number | null;
263
263
  currentItemRoundness: import("../element/types").StrokeRoundness;
264
- currentItemArrowType: "sharp" | "round" | "elbow";
264
+ currentItemArrowType: "round" | "sharp" | "elbow";
265
265
  viewBackgroundColor: string;
266
266
  scrollX: number;
267
267
  scrollY: number;
@@ -462,7 +462,7 @@ export declare const actionChangeExportBackground: {
462
462
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
463
463
  currentHoveredFontFamily: number | null;
464
464
  currentItemRoundness: import("../element/types").StrokeRoundness;
465
- currentItemArrowType: "sharp" | "round" | "elbow";
465
+ currentItemArrowType: "round" | "sharp" | "elbow";
466
466
  viewBackgroundColor: string;
467
467
  scrollX: number;
468
468
  scrollY: number;
@@ -663,7 +663,7 @@ export declare const actionChangeExportEmbedScene: {
663
663
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
664
664
  currentHoveredFontFamily: number | null;
665
665
  currentItemRoundness: import("../element/types").StrokeRoundness;
666
- currentItemArrowType: "sharp" | "round" | "elbow";
666
+ currentItemArrowType: "round" | "sharp" | "elbow";
667
667
  viewBackgroundColor: string;
668
668
  scrollX: number;
669
669
  scrollY: number;
@@ -870,7 +870,7 @@ export declare const actionSaveToActiveFile: {
870
870
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
871
871
  currentHoveredFontFamily: number | null;
872
872
  currentItemRoundness: import("../element/types").StrokeRoundness;
873
- currentItemArrowType: "sharp" | "round" | "elbow";
873
+ currentItemArrowType: "round" | "sharp" | "elbow";
874
874
  viewBackgroundColor: string;
875
875
  scrollX: number;
876
876
  scrollY: number;
@@ -1074,7 +1074,7 @@ export declare const actionSaveFileToDisk: {
1074
1074
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1075
1075
  currentHoveredFontFamily: number | null;
1076
1076
  currentItemRoundness: import("../element/types").StrokeRoundness;
1077
- currentItemArrowType: "sharp" | "round" | "elbow";
1077
+ currentItemArrowType: "round" | "sharp" | "elbow";
1078
1078
  viewBackgroundColor: string;
1079
1079
  scrollX: number;
1080
1080
  scrollY: number;
@@ -1211,13 +1211,6 @@ export declare const actionLoadScene: {
1211
1211
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1212
1212
  elements: import("../element/types").OrderedExcalidrawElement[];
1213
1213
  appState: {
1214
- viewModeEnabled: boolean;
1215
- zenModeEnabled: boolean;
1216
- gridModeEnabled: boolean;
1217
- objectsSnapModeEnabled: boolean;
1218
- theme: Theme;
1219
- name: string | null;
1220
- currentItemArrowType: "sharp" | "round" | "elbow";
1221
1214
  contextMenu: {
1222
1215
  items: import("../components/ContextMenu").ContextMenuItems;
1223
1216
  top: number;
@@ -1272,11 +1265,13 @@ export declare const actionLoadScene: {
1272
1265
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1273
1266
  currentHoveredFontFamily: number | null;
1274
1267
  currentItemRoundness: import("../element/types").StrokeRoundness;
1268
+ currentItemArrowType: "round" | "sharp" | "elbow";
1275
1269
  viewBackgroundColor: string;
1276
1270
  scrollX: number;
1277
1271
  scrollY: number;
1278
1272
  cursorButton: "up" | "down";
1279
1273
  scrolledOutside: boolean;
1274
+ name: string | null;
1280
1275
  isResizing: boolean;
1281
1276
  isRotating: boolean;
1282
1277
  zoom: Readonly<{
@@ -1311,8 +1306,12 @@ export declare const actionLoadScene: {
1311
1306
  closable?: boolean | undefined;
1312
1307
  duration?: number | undefined;
1313
1308
  } | null;
1309
+ zenModeEnabled: boolean;
1310
+ theme: Theme;
1314
1311
  gridSize: number;
1315
1312
  gridStep: number;
1313
+ gridModeEnabled: boolean;
1314
+ viewModeEnabled: boolean;
1316
1315
  selectedGroupIds: {
1317
1316
  [groupId: string]: boolean;
1318
1317
  };
@@ -1390,6 +1389,7 @@ export declare const actionLoadScene: {
1390
1389
  x: number;
1391
1390
  y: number;
1392
1391
  } | null;
1392
+ objectsSnapModeEnabled: boolean;
1393
1393
  userToFollow: import("../types").UserToFollow | null;
1394
1394
  followedBy: Set<import("../types").SocketId>;
1395
1395
  };
@@ -1452,7 +1452,7 @@ export declare const actionLoadScene: {
1452
1452
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1453
1453
  currentHoveredFontFamily: number | null;
1454
1454
  currentItemRoundness: import("../element/types").StrokeRoundness;
1455
- currentItemArrowType: "sharp" | "round" | "elbow";
1455
+ currentItemArrowType: "round" | "sharp" | "elbow";
1456
1456
  viewBackgroundColor: string;
1457
1457
  scrollX: number;
1458
1458
  scrollY: number;
@@ -1654,7 +1654,7 @@ export declare const actionExportWithDarkMode: {
1654
1654
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1655
1655
  currentHoveredFontFamily: number | null;
1656
1656
  currentItemRoundness: import("../element/types").StrokeRoundness;
1657
- currentItemArrowType: "sharp" | "round" | "elbow";
1657
+ currentItemArrowType: "round" | "sharp" | "elbow";
1658
1658
  viewBackgroundColor: string;
1659
1659
  scrollX: number;
1660
1660
  scrollY: number;
@@ -62,7 +62,7 @@ export declare const actionFinalize: {
62
62
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
63
63
  currentHoveredFontFamily: number | null;
64
64
  currentItemRoundness: import("../element/types").StrokeRoundness;
65
- currentItemArrowType: "sharp" | "round" | "elbow";
65
+ currentItemArrowType: "round" | "sharp" | "elbow";
66
66
  viewBackgroundColor: string;
67
67
  scrollX: number;
68
68
  scrollY: number;
@@ -254,7 +254,7 @@ export declare const actionFinalize: {
254
254
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
255
255
  currentHoveredFontFamily: number | null;
256
256
  currentItemRoundness: import("../element/types").StrokeRoundness;
257
- currentItemArrowType: "sharp" | "round" | "elbow";
257
+ currentItemArrowType: "round" | "sharp" | "elbow";
258
258
  viewBackgroundColor: string;
259
259
  scrollX: number;
260
260
  scrollY: number;
@@ -64,7 +64,7 @@ export declare const actionSelectAllElementsInFrame: {
64
64
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
65
  currentHoveredFontFamily: number | null;
66
66
  currentItemRoundness: import("../element/types").StrokeRoundness;
67
- currentItemArrowType: "sharp" | "round" | "elbow";
67
+ currentItemArrowType: "round" | "sharp" | "elbow";
68
68
  viewBackgroundColor: string;
69
69
  scrollX: number;
70
70
  scrollY: number;
@@ -269,7 +269,7 @@ export declare const actionRemoveAllElementsFromFrame: {
269
269
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
270
270
  currentHoveredFontFamily: number | null;
271
271
  currentItemRoundness: import("../element/types").StrokeRoundness;
272
- currentItemArrowType: "sharp" | "round" | "elbow";
272
+ currentItemArrowType: "round" | "sharp" | "elbow";
273
273
  viewBackgroundColor: string;
274
274
  scrollX: number;
275
275
  scrollY: number;
@@ -472,7 +472,7 @@ export declare const actionupdateFrameRendering: {
472
472
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
473
473
  currentHoveredFontFamily: number | null;
474
474
  currentItemRoundness: import("../element/types").StrokeRoundness;
475
- currentItemArrowType: "sharp" | "round" | "elbow";
475
+ currentItemArrowType: "round" | "sharp" | "elbow";
476
476
  viewBackgroundColor: string;
477
477
  scrollX: number;
478
478
  scrollY: number;
@@ -675,7 +675,7 @@ export declare const actionSetFrameAsActiveTool: {
675
675
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
676
676
  currentHoveredFontFamily: number | null;
677
677
  currentItemRoundness: import("../element/types").StrokeRoundness;
678
- currentItemArrowType: "sharp" | "round" | "elbow";
678
+ currentItemArrowType: "round" | "sharp" | "elbow";
679
679
  viewBackgroundColor: string;
680
680
  scrollX: number;
681
681
  scrollY: number;
@@ -74,7 +74,7 @@ export declare const actionGroup: {
74
74
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
75
75
  currentHoveredFontFamily: number | null;
76
76
  currentItemRoundness: import("../element/types").StrokeRoundness;
77
- currentItemArrowType: "sharp" | "round" | "elbow";
77
+ currentItemArrowType: "round" | "sharp" | "elbow";
78
78
  viewBackgroundColor: string;
79
79
  scrollX: number;
80
80
  scrollY: number;
@@ -282,7 +282,7 @@ export declare const actionUngroup: {
282
282
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
283
283
  currentHoveredFontFamily: number | null;
284
284
  currentItemRoundness: import("../element/types").StrokeRoundness;
285
- currentItemArrowType: "sharp" | "round" | "elbow";
285
+ currentItemArrowType: "round" | "sharp" | "elbow";
286
286
  viewBackgroundColor: string;
287
287
  scrollX: number;
288
288
  scrollY: number;
@@ -65,7 +65,7 @@ export declare const actionToggleLinearEditor: {
65
65
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
66
66
  currentHoveredFontFamily: number | null;
67
67
  currentItemRoundness: import("../element/types").StrokeRoundness;
68
- currentItemArrowType: "sharp" | "round" | "elbow";
68
+ currentItemArrowType: "round" | "sharp" | "elbow";
69
69
  viewBackgroundColor: string;
70
70
  scrollX: number;
71
71
  scrollY: number;
@@ -61,7 +61,7 @@ export declare const actionLink: {
61
61
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
62
  currentHoveredFontFamily: number | null;
63
63
  currentItemRoundness: import("../element/types").StrokeRoundness;
64
- currentItemArrowType: "sharp" | "round" | "elbow";
64
+ currentItemArrowType: "round" | "sharp" | "elbow";
65
65
  viewBackgroundColor: string;
66
66
  scrollX: number;
67
67
  scrollY: number;
@@ -61,7 +61,7 @@ export declare const actionToggleCanvasMenu: {
61
61
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
62
  currentHoveredFontFamily: number | null;
63
63
  currentItemRoundness: import("../element/types").StrokeRoundness;
64
- currentItemArrowType: "sharp" | "round" | "elbow";
64
+ currentItemArrowType: "round" | "sharp" | "elbow";
65
65
  viewBackgroundColor: string;
66
66
  scrollX: number;
67
67
  scrollY: number;
@@ -261,7 +261,7 @@ export declare const actionToggleEditMenu: {
261
261
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
262
262
  currentHoveredFontFamily: number | null;
263
263
  currentItemRoundness: import("../element/types").StrokeRoundness;
264
- currentItemArrowType: "sharp" | "round" | "elbow";
264
+ currentItemArrowType: "round" | "sharp" | "elbow";
265
265
  viewBackgroundColor: string;
266
266
  scrollX: number;
267
267
  scrollY: number;
@@ -466,7 +466,7 @@ export declare const actionShortcuts: {
466
466
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
467
467
  currentHoveredFontFamily: number | null;
468
468
  currentItemRoundness: import("../element/types").StrokeRoundness;
469
- currentItemArrowType: "sharp" | "round" | "elbow";
469
+ currentItemArrowType: "round" | "sharp" | "elbow";
470
470
  viewBackgroundColor: string;
471
471
  scrollX: number;
472
472
  scrollY: number;
@@ -63,7 +63,7 @@ export declare const actionGoToCollaborator: {
63
63
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
64
64
  currentHoveredFontFamily: number | null;
65
65
  currentItemRoundness: import("../element/types").StrokeRoundness;
66
- currentItemArrowType: "sharp" | "round" | "elbow";
66
+ currentItemArrowType: "round" | "sharp" | "elbow";
67
67
  viewBackgroundColor: string;
68
68
  scrollX: number;
69
69
  scrollY: number;
@@ -256,7 +256,7 @@ export declare const actionGoToCollaborator: {
256
256
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
257
257
  currentHoveredFontFamily: number | null;
258
258
  currentItemRoundness: import("../element/types").StrokeRoundness;
259
- currentItemArrowType: "sharp" | "round" | "elbow";
259
+ currentItemArrowType: "round" | "sharp" | "elbow";
260
260
  viewBackgroundColor: string;
261
261
  scrollX: number;
262
262
  scrollY: number;