@zsviczian/excalidraw 0.18.0-53 → 0.18.0-55

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 (67) hide show
  1. package/dist/excalidraw.development.js +56 -56
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/common/src/commonObsidianUtils.d.ts +6 -0
  5. package/types/common/src/constants.d.ts +1 -0
  6. package/types/common/src/editorInterface.d.ts +1 -1
  7. package/types/common/src/index.d.ts +1 -0
  8. package/types/common/src/utils.d.ts +7 -2
  9. package/types/common/src/visualdebug.d.ts +1 -1
  10. package/types/element/src/binding.d.ts +55 -44
  11. package/types/element/src/collision.d.ts +6 -2
  12. package/types/element/src/index.d.ts +0 -3
  13. package/types/element/src/linearElementEditor.d.ts +15 -18
  14. package/types/element/src/renderElement.d.ts +1 -1
  15. package/types/element/src/typeChecks.d.ts +2 -3
  16. package/types/element/src/types.d.ts +7 -11
  17. package/types/element/src/utils.d.ts +2 -1
  18. package/types/element/src/zindex.d.ts +7 -1
  19. package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -7
  20. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  21. package/types/excalidraw/actions/actionBoundText.d.ts +13 -7
  22. package/types/excalidraw/actions/actionCanvas.d.ts +91 -286
  23. package/types/excalidraw/actions/actionClipboard.d.ts +34 -941
  24. package/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
  25. package/types/excalidraw/actions/actionDeleteSelected.d.ts +23 -16
  26. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  27. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  28. package/types/excalidraw/actions/actionElementLink.d.ts +4 -3
  29. package/types/excalidraw/actions/actionElementLock.d.ts +11 -5
  30. package/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
  31. package/types/excalidraw/actions/actionExport.d.ts +43 -1149
  32. package/types/excalidraw/actions/actionFinalize.d.ts +10 -688
  33. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  34. package/types/excalidraw/actions/actionFrame.d.ts +26 -16
  35. package/types/excalidraw/actions/actionGroup.d.ts +12 -6
  36. package/types/excalidraw/actions/actionLinearEditor.d.ts +15 -16
  37. package/types/excalidraw/actions/actionLink.d.ts +5 -2
  38. package/types/excalidraw/actions/actionMenu.d.ts +3 -2
  39. package/types/excalidraw/actions/actionNavigate.d.ts +21 -445
  40. package/types/excalidraw/actions/actionProperties.d.ts +79 -2968
  41. package/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
  42. package/types/excalidraw/actions/actionStyles.d.ts +7 -4
  43. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  44. package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
  45. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
  46. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -2
  47. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  48. package/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
  49. package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
  50. package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
  51. package/types/excalidraw/actions/actionTrayMenu.d.ts +5 -2
  52. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  53. package/types/excalidraw/actions/manager.d.ts +1 -1
  54. package/types/excalidraw/actions/register.d.ts +1 -1
  55. package/types/excalidraw/actions/types.d.ts +3 -3
  56. package/types/excalidraw/appState.d.ts +4 -3
  57. package/types/excalidraw/components/App.d.ts +7 -3
  58. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  59. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  60. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  61. package/types/excalidraw/data/restore.d.ts +3 -3
  62. package/types/excalidraw/index.d.ts +3 -3
  63. package/types/excalidraw/obsidianUtils.d.ts +0 -5
  64. package/types/excalidraw/renderer/helpers.d.ts +1 -5
  65. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  66. package/types/excalidraw/scene/types.d.ts +4 -0
  67. package/types/excalidraw/types.d.ts +15 -5
@@ -7,7 +7,7 @@ export declare const actionFlipHorizontal: {
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
11
  elements: ExcalidrawElement[];
12
12
  appState: Readonly<AppState>;
13
13
  captureUpdate: "IMMEDIATELY";
@@ -23,7 +23,7 @@ export declare const actionFlipVertical: {
23
23
  trackEvent: {
24
24
  category: "element";
25
25
  };
26
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
26
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
27
27
  elements: ExcalidrawElement[];
28
28
  appState: Readonly<AppState>;
29
29
  captureUpdate: "IMMEDIATELY";
@@ -6,7 +6,7 @@ export declare const actionSelectAllElementsInFrame: {
6
6
  trackEvent: {
7
7
  category: "canvas";
8
8
  };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
10
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
11
  appState: {
12
12
  selectedElementIds: Record<string, true>;
@@ -28,7 +28,7 @@ export declare const actionSelectAllElementsInFrame: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
@@ -90,12 +90,14 @@ export declare const actionSelectAllElementsInFrame: {
90
90
  tab?: string | undefined;
91
91
  } | null;
92
92
  openDialog: {
93
- name: "help" | "imageExport" | "jsonExport";
93
+ name: "imageExport" | "help" | "jsonExport";
94
94
  } | {
95
95
  name: "ttd";
96
96
  tab: "mermaid" | "text-to-diagram";
97
97
  } | {
98
98
  name: "commandPalette";
99
+ } | {
100
+ name: "settings";
99
101
  } | {
100
102
  name: "elementLinkSelector";
101
103
  sourceElementId: string;
@@ -218,6 +220,7 @@ export declare const actionSelectAllElementsInFrame: {
218
220
  lockedMultiSelections: {
219
221
  [groupId: string]: true;
220
222
  };
223
+ bindMode: import("@excalidraw/element/types").BindMode;
221
224
  };
222
225
  captureUpdate: "IMMEDIATELY";
223
226
  } | {
@@ -235,7 +238,7 @@ export declare const actionRemoveAllElementsFromFrame: {
235
238
  trackEvent: {
236
239
  category: "history";
237
240
  };
238
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
241
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
239
242
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
240
243
  appState: {
241
244
  selectedElementIds: {
@@ -259,7 +262,7 @@ export declare const actionRemoveAllElementsFromFrame: {
259
262
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
260
263
  isBindingEnabled: boolean;
261
264
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
262
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
265
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
263
266
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
264
267
  frameRendering: {
265
268
  enabled: boolean;
@@ -321,12 +324,14 @@ export declare const actionRemoveAllElementsFromFrame: {
321
324
  tab?: string | undefined;
322
325
  } | null;
323
326
  openDialog: {
324
- name: "help" | "imageExport" | "jsonExport";
327
+ name: "imageExport" | "help" | "jsonExport";
325
328
  } | {
326
329
  name: "ttd";
327
330
  tab: "mermaid" | "text-to-diagram";
328
331
  } | {
329
332
  name: "commandPalette";
333
+ } | {
334
+ name: "settings";
330
335
  } | {
331
336
  name: "elementLinkSelector";
332
337
  sourceElementId: string;
@@ -449,6 +454,7 @@ export declare const actionRemoveAllElementsFromFrame: {
449
454
  lockedMultiSelections: {
450
455
  [groupId: string]: true;
451
456
  };
457
+ bindMode: import("@excalidraw/element/types").BindMode;
452
458
  };
453
459
  captureUpdate: "IMMEDIATELY";
454
460
  } | {
@@ -496,7 +502,7 @@ export declare const actionupdateFrameRendering: {
496
502
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
497
503
  isBindingEnabled: boolean;
498
504
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
499
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
505
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
500
506
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
501
507
  editingFrame: string | null;
502
508
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -550,12 +556,14 @@ export declare const actionupdateFrameRendering: {
550
556
  tab?: string | undefined;
551
557
  } | null;
552
558
  openDialog: {
553
- name: "help" | "imageExport" | "jsonExport";
559
+ name: "imageExport" | "help" | "jsonExport";
554
560
  } | {
555
561
  name: "ttd";
556
562
  tab: "mermaid" | "text-to-diagram";
557
563
  } | {
558
564
  name: "commandPalette";
565
+ } | {
566
+ name: "settings";
559
567
  } | {
560
568
  name: "elementLinkSelector";
561
569
  sourceElementId: string;
@@ -681,6 +689,7 @@ export declare const actionupdateFrameRendering: {
681
689
  lockedMultiSelections: {
682
690
  [groupId: string]: true;
683
691
  };
692
+ bindMode: import("@excalidraw/element/types").BindMode;
684
693
  };
685
694
  captureUpdate: "EVENTUALLY";
686
695
  };
@@ -696,7 +705,7 @@ export declare const actionSetFrameAsActiveTool: {
696
705
  };
697
706
  icon: import("react/jsx-runtime").JSX.Element;
698
707
  viewMode: false;
699
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
708
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
700
709
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
701
710
  appState: {
702
711
  activeTool: {
@@ -722,7 +731,7 @@ export declare const actionSetFrameAsActiveTool: {
722
731
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
723
732
  isBindingEnabled: boolean;
724
733
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
725
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
734
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
726
735
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
727
736
  frameRendering: {
728
737
  enabled: boolean;
@@ -779,12 +788,14 @@ export declare const actionSetFrameAsActiveTool: {
779
788
  tab?: string | undefined;
780
789
  } | null;
781
790
  openDialog: {
782
- name: "help" | "imageExport" | "jsonExport";
791
+ name: "imageExport" | "help" | "jsonExport";
783
792
  } | {
784
793
  name: "ttd";
785
794
  tab: "mermaid" | "text-to-diagram";
786
795
  } | {
787
796
  name: "commandPalette";
797
+ } | {
798
+ name: "settings";
788
799
  } | {
789
800
  name: "elementLinkSelector";
790
801
  sourceElementId: string;
@@ -910,6 +921,7 @@ export declare const actionSetFrameAsActiveTool: {
910
921
  lockedMultiSelections: {
911
922
  [groupId: string]: true;
912
923
  };
924
+ bindMode: import("@excalidraw/element/types").BindMode;
913
925
  };
914
926
  captureUpdate: "EVENTUALLY";
915
927
  };
@@ -924,7 +936,7 @@ export declare const actionWrapSelectionInFrame: {
924
936
  category: "element";
925
937
  };
926
938
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
927
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
939
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
928
940
  elements: ((Readonly<{
929
941
  id: string;
930
942
  x: number;
@@ -961,9 +973,8 @@ export declare const actionWrapSelectionInFrame: {
961
973
  }> & Readonly<{
962
974
  type: "line" | "arrow";
963
975
  points: readonly import("@excalidraw/math").LocalPoint[];
964
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
965
- startBinding: import("@excalidraw/element/types").PointBinding | null;
966
- endBinding: import("@excalidraw/element/types").PointBinding | null;
976
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
977
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
967
978
  startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
968
979
  endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
969
980
  }> & {
@@ -1408,7 +1419,6 @@ export declare const actionWrapSelectionInFrame: {
1408
1419
  points: readonly import("@excalidraw/math").LocalPoint[];
1409
1420
  pressures: readonly number[];
1410
1421
  simulatePressure: boolean;
1411
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1412
1422
  }> & {
1413
1423
  index: import("@excalidraw/element/types").FractionalIndex;
1414
1424
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
@@ -7,7 +7,7 @@ export declare const actionGroup: {
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
11
  appState: Readonly<AppState>;
12
12
  elements: readonly OrderedExcalidrawElement[];
13
13
  captureUpdate: "EVENTUALLY";
@@ -38,7 +38,7 @@ export declare const actionGroup: {
38
38
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
39
  isBindingEnabled: boolean;
40
40
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
41
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
41
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
42
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
43
43
  frameRendering: {
44
44
  enabled: boolean;
@@ -100,12 +100,14 @@ export declare const actionGroup: {
100
100
  tab?: string | undefined;
101
101
  } | null;
102
102
  openDialog: {
103
- name: "help" | "imageExport" | "jsonExport";
103
+ name: "imageExport" | "help" | "jsonExport";
104
104
  } | {
105
105
  name: "ttd";
106
106
  tab: "mermaid" | "text-to-diagram";
107
107
  } | {
108
108
  name: "commandPalette";
109
+ } | {
110
+ name: "settings";
109
111
  } | {
110
112
  name: "elementLinkSelector";
111
113
  sourceElementId: string;
@@ -224,6 +226,7 @@ export declare const actionGroup: {
224
226
  lockedMultiSelections: {
225
227
  [groupId: string]: true;
226
228
  };
229
+ bindMode: import("@excalidraw/element/types").BindMode;
227
230
  };
228
231
  elements: OrderedExcalidrawElement[];
229
232
  captureUpdate: "IMMEDIATELY";
@@ -241,7 +244,7 @@ export declare const actionUngroup: {
241
244
  trackEvent: {
242
245
  category: "element";
243
246
  };
244
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
247
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
245
248
  appState: Readonly<AppState>;
246
249
  elements: readonly OrderedExcalidrawElement[];
247
250
  captureUpdate: "EVENTUALLY";
@@ -272,7 +275,7 @@ export declare const actionUngroup: {
272
275
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
273
276
  isBindingEnabled: boolean;
274
277
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
275
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
278
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
276
279
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
277
280
  frameRendering: {
278
281
  enabled: boolean;
@@ -334,12 +337,14 @@ export declare const actionUngroup: {
334
337
  tab?: string | undefined;
335
338
  } | null;
336
339
  openDialog: {
337
- name: "help" | "imageExport" | "jsonExport";
340
+ name: "imageExport" | "help" | "jsonExport";
338
341
  } | {
339
342
  name: "ttd";
340
343
  tab: "mermaid" | "text-to-diagram";
341
344
  } | {
342
345
  name: "commandPalette";
346
+ } | {
347
+ name: "settings";
343
348
  } | {
344
349
  name: "elementLinkSelector";
345
350
  sourceElementId: string;
@@ -458,6 +463,7 @@ export declare const actionUngroup: {
458
463
  lockedMultiSelections: {
459
464
  [groupId: string]: true;
460
465
  };
466
+ bindMode: import("@excalidraw/element/types").BindMode;
461
467
  };
462
468
  elements: OrderedExcalidrawElement[];
463
469
  captureUpdate: "IMMEDIATELY";
@@ -8,7 +8,7 @@ export declare const actionToggleLinearEditor: {
8
8
  category: "element";
9
9
  };
10
10
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
12
12
  appState: {
13
13
  selectedLinearElement: {
14
14
  isEditing: boolean;
@@ -16,32 +16,30 @@ export declare const actionToggleLinearEditor: {
16
16
  _brand: "excalidrawLinearElementId";
17
17
  };
18
18
  selectedPointsIndices: readonly number[] | null;
19
- pointerDownState: Readonly<{
19
+ initialState: Readonly<{
20
20
  prevSelectedPointsIndices: readonly number[] | null;
21
21
  lastClickedPoint: number;
22
- lastClickedIsEndPoint: boolean;
23
- origin: Readonly<{
24
- x: number;
25
- y: number;
26
- }> | null;
22
+ origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
27
23
  segmentMidpoint: {
28
24
  value: import("@excalidraw/math").GlobalPoint | null;
29
25
  index: number | null;
30
26
  added: boolean;
31
27
  };
28
+ arrowStartIsInside: boolean;
29
+ altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
32
30
  }>;
33
31
  isDragging: boolean;
34
32
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
33
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
35
34
  pointerOffset: Readonly<{
36
35
  x: number;
37
36
  y: number;
38
37
  }>;
39
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
40
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
38
  hoverPointIndex: number;
42
39
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
43
40
  elbowed: boolean;
44
41
  customLineAngle: number | null;
42
+ pointerDownState: never;
45
43
  };
46
44
  contextMenu: {
47
45
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -61,7 +59,7 @@ export declare const actionToggleLinearEditor: {
61
59
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
60
  isBindingEnabled: boolean;
63
61
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
64
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
62
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
65
63
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
66
64
  frameRendering: {
67
65
  enabled: boolean;
@@ -123,12 +121,14 @@ export declare const actionToggleLinearEditor: {
123
121
  tab?: string | undefined;
124
122
  } | null;
125
123
  openDialog: {
126
- name: "help" | "imageExport" | "jsonExport";
124
+ name: "imageExport" | "help" | "jsonExport";
127
125
  } | {
128
126
  name: "ttd";
129
127
  tab: "mermaid" | "text-to-diagram";
130
128
  } | {
131
129
  name: "commandPalette";
130
+ } | {
131
+ name: "settings";
132
132
  } | {
133
133
  name: "elementLinkSelector";
134
134
  sourceElementId: string;
@@ -253,6 +253,7 @@ export declare const actionToggleLinearEditor: {
253
253
  lockedMultiSelections: {
254
254
  [groupId: string]: true;
255
255
  };
256
+ bindMode: import("@excalidraw/element/types").BindMode;
256
257
  };
257
258
  captureUpdate: "IMMEDIATELY";
258
259
  };
@@ -270,7 +271,7 @@ export declare const actionTogglePolygon: {
270
271
  category: "element";
271
272
  };
272
273
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
273
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
274
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
274
275
  elements: ((Readonly<{
275
276
  id: string;
276
277
  x: number;
@@ -307,9 +308,8 @@ export declare const actionTogglePolygon: {
307
308
  }> & Readonly<{
308
309
  type: "line" | "arrow";
309
310
  points: readonly import("@excalidraw/math").LocalPoint[];
310
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
311
- startBinding: import("@excalidraw/element/types").PointBinding | null;
312
- endBinding: import("@excalidraw/element/types").PointBinding | null;
311
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
312
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
313
313
  startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
314
314
  endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
315
315
  }> & {
@@ -754,7 +754,6 @@ export declare const actionTogglePolygon: {
754
754
  points: readonly import("@excalidraw/math").LocalPoint[];
755
755
  pressures: readonly number[];
756
756
  simulatePressure: boolean;
757
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
758
757
  }> & {
759
758
  index: import("@excalidraw/element/types").FractionalIndex;
760
759
  }))[];
@@ -25,7 +25,7 @@ export declare const actionLink: {
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
27
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
28
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
29
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
@@ -86,12 +86,14 @@ export declare const actionLink: {
86
86
  tab?: string | undefined;
87
87
  } | null;
88
88
  openDialog: {
89
- name: "help" | "imageExport" | "jsonExport";
89
+ name: "imageExport" | "help" | "jsonExport";
90
90
  } | {
91
91
  name: "ttd";
92
92
  tab: "mermaid" | "text-to-diagram";
93
93
  } | {
94
94
  name: "commandPalette";
95
+ } | {
96
+ name: "settings";
95
97
  } | {
96
98
  name: "elementLinkSelector";
97
99
  sourceElementId: string;
@@ -216,6 +218,7 @@ export declare const actionLink: {
216
218
  lockedMultiSelections: {
217
219
  [groupId: string]: true;
218
220
  };
221
+ bindMode: import("@excalidraw/element/types").BindMode;
219
222
  };
220
223
  captureUpdate: "IMMEDIATELY";
221
224
  };
@@ -7,7 +7,7 @@ export declare const actionShortcuts: {
7
7
  category: "menu";
8
8
  action: string;
9
9
  };
10
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
10
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, { focusContainer }: import("../types").AppClassProperties) => {
11
11
  appState: {
12
12
  openDialog: {
13
13
  name: "help";
@@ -32,7 +32,7 @@ export declare const actionShortcuts: {
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
34
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
35
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
36
36
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
37
  frameRendering: {
38
38
  enabled: boolean;
@@ -212,6 +212,7 @@ export declare const actionShortcuts: {
212
212
  lockedMultiSelections: {
213
213
  [groupId: string]: true;
214
214
  };
215
+ bindMode: import("@excalidraw/element/types").BindMode;
215
216
  };
216
217
  captureUpdate: "EVENTUALLY";
217
218
  };