@zsviczian/excalidraw 0.18.0-24 → 0.18.0-26

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 (42) hide show
  1. package/dist/excalidraw.development.js +49 -38
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +4 -0
  4. package/dist/styles.production.css +2 -2
  5. package/package.json +8 -1
  6. package/types/common/src/constants.d.ts +1 -0
  7. package/types/element/src/align.d.ts +2 -1
  8. package/types/element/src/distribute.d.ts +2 -1
  9. package/types/element/src/groups.d.ts +1 -0
  10. package/types/element/src/linearElementEditor.d.ts +2 -1
  11. package/types/element/src/store.d.ts +2 -1
  12. package/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -3
  13. package/types/excalidraw/actions/actionBoundText.d.ts +0 -2
  14. package/types/excalidraw/actions/actionCanvas.d.ts +0 -15
  15. package/types/excalidraw/actions/actionClipboard.d.ts +3 -8
  16. package/types/excalidraw/actions/actionCropEditor.d.ts +0 -1
  17. package/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -6
  18. package/types/excalidraw/actions/actionElementLink.d.ts +0 -1
  19. package/types/excalidraw/actions/actionElementLock.d.ts +0 -2
  20. package/types/excalidraw/actions/actionEmbeddable.d.ts +0 -1
  21. package/types/excalidraw/actions/actionExport.d.ts +0 -9
  22. package/types/excalidraw/actions/actionFinalize.d.ts +2 -4
  23. package/types/excalidraw/actions/actionFrame.d.ts +0 -4
  24. package/types/excalidraw/actions/actionGroup.d.ts +0 -2
  25. package/types/excalidraw/actions/actionLinearEditor.d.ts +33 -3
  26. package/types/excalidraw/actions/actionLink.d.ts +0 -1
  27. package/types/excalidraw/actions/actionMenu.d.ts +0 -3
  28. package/types/excalidraw/actions/actionNavigate.d.ts +0 -2
  29. package/types/excalidraw/actions/actionProperties.d.ts +0 -15
  30. package/types/excalidraw/actions/actionSelectAll.d.ts +0 -1
  31. package/types/excalidraw/actions/actionStyles.d.ts +0 -1
  32. package/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -1
  33. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -1
  34. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -1
  35. package/types/excalidraw/actions/actionToggleStats.d.ts +0 -1
  36. package/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -1
  37. package/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -1
  38. package/types/excalidraw/components/Actions.d.ts +0 -4
  39. package/types/excalidraw/components/App.d.ts +9 -2
  40. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  41. package/types/excalidraw/index.d.ts +2 -0
  42. package/types/excalidraw/types.d.ts +1 -3
@@ -36,7 +36,6 @@ export declare const actionChangeProjectName: {
36
36
  editingFrame: string | null;
37
37
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
38
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
40
39
  activeTool: {
41
40
  lastActiveTool: import("../types").ActiveTool | null;
42
41
  locked: boolean;
@@ -257,7 +256,6 @@ export declare const actionChangeExportScale: {
257
256
  editingFrame: string | null;
258
257
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
259
258
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
260
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
261
259
  activeTool: {
262
260
  lastActiveTool: import("../types").ActiveTool | null;
263
261
  locked: boolean;
@@ -478,7 +476,6 @@ export declare const actionChangeExportBackground: {
478
476
  editingFrame: string | null;
479
477
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
480
478
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
481
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
482
479
  activeTool: {
483
480
  lastActiveTool: import("../types").ActiveTool | null;
484
481
  locked: boolean;
@@ -699,7 +696,6 @@ export declare const actionChangeExportEmbedScene: {
699
696
  editingFrame: string | null;
700
697
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
701
698
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
702
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
703
699
  activeTool: {
704
700
  lastActiveTool: import("../types").ActiveTool | null;
705
701
  locked: boolean;
@@ -925,7 +921,6 @@ export declare const actionSaveToActiveFile: {
925
921
  editingFrame: string | null;
926
922
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
927
923
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
928
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
929
924
  activeTool: {
930
925
  lastActiveTool: import("../types").ActiveTool | null;
931
926
  locked: boolean;
@@ -1149,7 +1144,6 @@ export declare const actionSaveFileToDisk: {
1149
1144
  editingFrame: string | null;
1150
1145
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1151
1146
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1152
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1153
1147
  activeTool: {
1154
1148
  lastActiveTool: import("../types").ActiveTool | null;
1155
1149
  locked: boolean;
@@ -1368,7 +1362,6 @@ export declare const actionLoadScene: {
1368
1362
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1369
1363
  state: "active" | "hover";
1370
1364
  } | null;
1371
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1372
1365
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1373
1366
  selectedGroupIds: {
1374
1367
  [groupId: string]: boolean;
@@ -1564,7 +1557,6 @@ export declare const actionLoadScene: {
1564
1557
  editingFrame: string | null;
1565
1558
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1566
1559
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1567
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1568
1560
  activeTool: {
1569
1561
  lastActiveTool: import("../types").ActiveTool | null;
1570
1562
  locked: boolean;
@@ -1787,7 +1779,6 @@ export declare const actionExportWithDarkMode: {
1787
1779
  editingFrame: string | null;
1788
1780
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1789
1781
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1790
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1791
1782
  activeTool: {
1792
1783
  lastActiveTool: import("../types").ActiveTool | null;
1793
1784
  locked: boolean;
@@ -40,6 +40,7 @@ export declare const actionFinalize: {
40
40
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
41
41
  elbowed: boolean;
42
42
  customLineAngle: number | null;
43
+ isEditing: boolean;
43
44
  };
44
45
  suggestedBindings: never[];
45
46
  contextMenu: {
@@ -70,7 +71,6 @@ export declare const actionFinalize: {
70
71
  editingFrame: string | null;
71
72
  elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
72
73
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
73
- editingLinearElement: LinearElementEditor | null;
74
74
  activeTool: {
75
75
  lastActiveTool: import("../types").ActiveTool | null;
76
76
  locked: boolean;
@@ -251,7 +251,7 @@ export declare const actionFinalize: {
251
251
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
252
252
  appState: {
253
253
  cursorButton: "up";
254
- editingLinearElement: null;
254
+ selectedLinearElement: LinearElementEditor;
255
255
  contextMenu: {
256
256
  items: import("../components/ContextMenu").ContextMenuItems;
257
257
  top: number;
@@ -436,7 +436,6 @@ export declare const actionFinalize: {
436
436
  nameColor: string;
437
437
  };
438
438
  invertBindingBehaviour: boolean;
439
- selectedLinearElement: LinearElementEditor | null;
440
439
  snapLines: readonly import("../snapping").SnapLine[];
441
440
  originSnapOffset: {
442
441
  x: number;
@@ -496,7 +495,6 @@ export declare const actionFinalize: {
496
495
  };
497
496
  editingFrame: string | null;
498
497
  elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
499
- editingLinearElement: LinearElementEditor | null;
500
498
  penMode: boolean;
501
499
  penDetected: boolean;
502
500
  exportBackground: boolean;
@@ -39,7 +39,6 @@ export declare const actionSelectAllElementsInFrame: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
42
  activeTool: {
44
43
  lastActiveTool: import("../types").ActiveTool | null;
45
44
  locked: boolean;
@@ -264,7 +263,6 @@ export declare const actionRemoveAllElementsFromFrame: {
264
263
  editingFrame: string | null;
265
264
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
266
265
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
267
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
268
266
  activeTool: {
269
267
  lastActiveTool: import("../types").ActiveTool | null;
270
268
  locked: boolean;
@@ -487,7 +485,6 @@ export declare const actionupdateFrameRendering: {
487
485
  editingFrame: string | null;
488
486
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
489
487
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
490
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
491
488
  activeTool: {
492
489
  lastActiveTool: import("../types").ActiveTool | null;
493
490
  locked: boolean;
@@ -715,7 +712,6 @@ export declare const actionSetFrameAsActiveTool: {
715
712
  editingFrame: string | null;
716
713
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
717
714
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
718
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
719
715
  penMode: boolean;
720
716
  penDetected: boolean;
721
717
  exportBackground: boolean;
@@ -49,7 +49,6 @@ export declare const actionGroup: {
49
49
  editingFrame: string | null;
50
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
51
51
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
53
52
  activeTool: {
54
53
  lastActiveTool: import("../types").ActiveTool | null;
55
54
  locked: boolean;
@@ -277,7 +276,6 @@ export declare const actionUngroup: {
277
276
  editingFrame: string | null;
278
277
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
279
278
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
280
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
281
279
  activeTool: {
282
280
  lastActiveTool: import("../types").ActiveTool | null;
283
281
  locked: boolean;
@@ -1,4 +1,3 @@
1
- import { LinearElementEditor } from "@excalidraw/element";
2
1
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
3
2
  export declare const actionToggleLinearEditor: {
4
3
  name: "toggleLinearEditor";
@@ -11,7 +10,39 @@ export declare const actionToggleLinearEditor: {
11
10
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
11
  perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
13
12
  appState: {
14
- editingLinearElement: LinearElementEditor | null;
13
+ selectedLinearElement: {
14
+ isEditing: boolean;
15
+ elementId: string & {
16
+ _brand: "excalidrawLinearElementId";
17
+ };
18
+ selectedPointsIndices: readonly number[] | null;
19
+ pointerDownState: Readonly<{
20
+ prevSelectedPointsIndices: readonly number[] | null;
21
+ lastClickedPoint: number;
22
+ lastClickedIsEndPoint: boolean;
23
+ origin: Readonly<{
24
+ x: number;
25
+ y: number;
26
+ }> | null;
27
+ segmentMidpoint: {
28
+ value: import("@excalidraw/math").GlobalPoint | null;
29
+ index: number | null;
30
+ added: boolean;
31
+ };
32
+ }>;
33
+ isDragging: boolean;
34
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
35
+ pointerOffset: Readonly<{
36
+ x: number;
37
+ y: number;
38
+ }>;
39
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
40
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
+ hoverPointIndex: number;
42
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
43
+ elbowed: boolean;
44
+ customLineAngle: number | null;
45
+ };
15
46
  contextMenu: {
16
47
  items: import("../components/ContextMenu").ContextMenuItems;
17
48
  top: number;
@@ -197,7 +228,6 @@ export declare const actionToggleLinearEditor: {
197
228
  nameColor: string;
198
229
  };
199
230
  invertBindingBehaviour: boolean;
200
- selectedLinearElement: LinearElementEditor | null;
201
231
  snapLines: readonly import("../snapping").SnapLine[];
202
232
  originSnapOffset: {
203
233
  x: number;
@@ -36,7 +36,6 @@ export declare const actionLink: {
36
36
  editingFrame: string | null;
37
37
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
38
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
40
39
  activeTool: {
41
40
  lastActiveTool: import("../types").ActiveTool | null;
42
41
  locked: boolean;
@@ -36,7 +36,6 @@ export declare const actionToggleCanvasMenu: {
36
36
  editingFrame: string | null;
37
37
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
38
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
40
39
  activeTool: {
41
40
  lastActiveTool: import("../types").ActiveTool | null;
42
41
  locked: boolean;
@@ -256,7 +255,6 @@ export declare const actionToggleEditMenu: {
256
255
  editingFrame: string | null;
257
256
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
258
257
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
260
258
  activeTool: {
261
259
  lastActiveTool: import("../types").ActiveTool | null;
262
260
  locked: boolean;
@@ -481,7 +479,6 @@ export declare const actionShortcuts: {
481
479
  editingFrame: string | null;
482
480
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
483
481
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
484
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
485
482
  activeTool: {
486
483
  lastActiveTool: import("../types").ActiveTool | null;
487
484
  locked: boolean;
@@ -38,7 +38,6 @@ export declare const actionGoToCollaborator: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
41
  activeTool: {
43
42
  lastActiveTool: import("../types").ActiveTool | null;
44
43
  locked: boolean;
@@ -251,7 +250,6 @@ export declare const actionGoToCollaborator: {
251
250
  editingFrame: string | null;
252
251
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
253
252
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
255
253
  activeTool: {
256
254
  lastActiveTool: import("../types").ActiveTool | null;
257
255
  locked: boolean;
@@ -66,7 +66,6 @@ export declare const actionChangeFillStyle: {
66
66
  editingFrame: string | null;
67
67
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
68
68
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
69
- editingLinearElement: LinearElementEditor | null;
70
69
  activeTool: {
71
70
  lastActiveTool: import("../types").ActiveTool | null;
72
71
  locked: boolean;
@@ -285,7 +284,6 @@ export declare const actionChangeStrokeWidth: {
285
284
  editingFrame: string | null;
286
285
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
287
286
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
288
- editingLinearElement: LinearElementEditor | null;
289
287
  activeTool: {
290
288
  lastActiveTool: import("../types").ActiveTool | null;
291
289
  locked: boolean;
@@ -504,7 +502,6 @@ export declare const actionChangeSloppiness: {
504
502
  editingFrame: string | null;
505
503
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
506
504
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
507
- editingLinearElement: LinearElementEditor | null;
508
505
  activeTool: {
509
506
  lastActiveTool: import("../types").ActiveTool | null;
510
507
  locked: boolean;
@@ -723,7 +720,6 @@ export declare const actionChangeStrokeStyle: {
723
720
  editingFrame: string | null;
724
721
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
725
722
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
726
- editingLinearElement: LinearElementEditor | null;
727
723
  activeTool: {
728
724
  lastActiveTool: import("../types").ActiveTool | null;
729
725
  locked: boolean;
@@ -942,7 +938,6 @@ export declare const actionChangeOpacity: {
942
938
  editingFrame: string | null;
943
939
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
944
940
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
945
- editingLinearElement: LinearElementEditor | null;
946
941
  activeTool: {
947
942
  lastActiveTool: import("../types").ActiveTool | null;
948
943
  locked: boolean;
@@ -1162,7 +1157,6 @@ export declare const actionChangeFontSize: {
1162
1157
  editingFrame: string | null;
1163
1158
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1164
1159
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1165
- editingLinearElement: LinearElementEditor | null;
1166
1160
  activeTool: {
1167
1161
  lastActiveTool: import("../types").ActiveTool | null;
1168
1162
  locked: boolean;
@@ -1382,7 +1376,6 @@ export declare const actionDecreaseFontSize: {
1382
1376
  editingFrame: string | null;
1383
1377
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1384
1378
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1385
- editingLinearElement: LinearElementEditor | null;
1386
1379
  activeTool: {
1387
1380
  lastActiveTool: import("../types").ActiveTool | null;
1388
1381
  locked: boolean;
@@ -1602,7 +1595,6 @@ export declare const actionIncreaseFontSize: {
1602
1595
  editingFrame: string | null;
1603
1596
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1604
1597
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1605
- editingLinearElement: LinearElementEditor | null;
1606
1598
  activeTool: {
1607
1599
  lastActiveTool: import("../types").ActiveTool | null;
1608
1600
  locked: boolean;
@@ -1822,7 +1814,6 @@ export declare const actionChangeFontFamily: {
1822
1814
  editingFrame: string | null;
1823
1815
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1824
1816
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1825
- editingLinearElement: LinearElementEditor | null;
1826
1817
  activeTool: {
1827
1818
  lastActiveTool: import("../types").ActiveTool | null;
1828
1819
  locked: boolean;
@@ -2032,7 +2023,6 @@ export declare const actionChangeFontFamily: {
2032
2023
  editingFrame: string | null;
2033
2024
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2034
2025
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2035
- editingLinearElement: LinearElementEditor | null;
2036
2026
  activeTool: {
2037
2027
  lastActiveTool: import("../types").ActiveTool | null;
2038
2028
  locked: boolean;
@@ -2249,7 +2239,6 @@ export declare const actionChangeTextAlign: {
2249
2239
  editingFrame: string | null;
2250
2240
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2251
2241
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2252
- editingLinearElement: LinearElementEditor | null;
2253
2242
  activeTool: {
2254
2243
  lastActiveTool: import("../types").ActiveTool | null;
2255
2244
  locked: boolean;
@@ -2469,7 +2458,6 @@ export declare const actionChangeVerticalAlign: {
2469
2458
  editingFrame: string | null;
2470
2459
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2471
2460
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2472
- editingLinearElement: LinearElementEditor | null;
2473
2461
  activeTool: {
2474
2462
  lastActiveTool: import("../types").ActiveTool | null;
2475
2463
  locked: boolean;
@@ -2689,7 +2677,6 @@ export declare const actionChangeRoundness: {
2689
2677
  editingFrame: string | null;
2690
2678
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2691
2679
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2692
- editingLinearElement: LinearElementEditor | null;
2693
2680
  activeTool: {
2694
2681
  lastActiveTool: import("../types").ActiveTool | null;
2695
2682
  locked: boolean;
@@ -2910,7 +2897,6 @@ export declare const actionChangeArrowhead: {
2910
2897
  editingFrame: string | null;
2911
2898
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2912
2899
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2913
- editingLinearElement: LinearElementEditor | null;
2914
2900
  activeTool: {
2915
2901
  lastActiveTool: import("../types").ActiveTool | null;
2916
2902
  locked: boolean;
@@ -3130,7 +3116,6 @@ export declare const actionChangeArrowType: {
3130
3116
  editingFrame: string | null;
3131
3117
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
3132
3118
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3133
- editingLinearElement: LinearElementEditor | null;
3134
3119
  activeTool: {
3135
3120
  lastActiveTool: import("../types").ActiveTool | null;
3136
3121
  locked: boolean;
@@ -47,7 +47,6 @@ export declare const actionSelectAll: {
47
47
  editingFrame: string | null;
48
48
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
49
49
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: LinearElementEditor | null;
51
50
  activeTool: {
52
51
  lastActiveTool: import("../types").ActiveTool | null;
53
52
  locked: boolean;
@@ -40,7 +40,6 @@ export declare const actionCopyStyles: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
@@ -42,7 +42,6 @@ export declare const actionToggleGridMode: {
42
42
  editingFrame: string | null;
43
43
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
44
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
46
45
  activeTool: {
47
46
  lastActiveTool: import("../types").ActiveTool | null;
48
47
  locked: boolean;
@@ -40,7 +40,6 @@ export declare const actionToggleObjectsSnapMode: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
@@ -46,7 +46,6 @@ export declare const actionToggleSearchMenu: {
46
46
  editingFrame: string | null;
47
47
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
48
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
50
49
  activeTool: {
51
50
  lastActiveTool: import("../types").ActiveTool | null;
52
51
  locked: boolean;
@@ -42,7 +42,6 @@ export declare const actionToggleStats: {
42
42
  editingFrame: string | null;
43
43
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
44
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
46
45
  activeTool: {
47
46
  lastActiveTool: import("../types").ActiveTool | null;
48
47
  locked: boolean;
@@ -39,7 +39,6 @@ export declare const actionToggleViewMode: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
42
  activeTool: {
44
43
  lastActiveTool: import("../types").ActiveTool | null;
45
44
  locked: boolean;
@@ -39,7 +39,6 @@ export declare const actionToggleZenMode: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
42
  activeTool: {
44
43
  lastActiveTool: import("../types").ActiveTool | null;
45
44
  locked: boolean;
@@ -29,7 +29,3 @@ export declare const ExitZenModeAction: ({ actionManager, showExitZenModeBtn, }:
29
29
  actionManager: ActionManager;
30
30
  showExitZenModeBtn: boolean;
31
31
  }) => import("react/jsx-runtime").JSX.Element;
32
- export declare const FinalizeAction: ({ renderAction, className, }: {
33
- renderAction: ActionManager["renderAction"];
34
- className?: string | undefined;
35
- }) => import("react/jsx-runtime").JSX.Element;
@@ -78,6 +78,7 @@ declare class App extends React.Component<AppProps, AppState> {
78
78
  /** embeds that have been inserted to DOM (as a perf optim, we don't want to
79
79
  * insert to DOM before user initially scrolls to them) */
80
80
  private initializedEmbeds;
81
+ private handleToastClose;
81
82
  private elementsPendingErasure;
82
83
  flowChartCreator: FlowChartCreator;
83
84
  private flowChartNavigator;
@@ -105,7 +106,10 @@ declare class App extends React.Component<AppProps, AppState> {
105
106
  fromSelection: boolean;
106
107
  } & import("../types").ActiveTool, pointerDownState: Readonly<{
107
108
  origin: Readonly<{
108
- x: number;
109
+ x: number; /**
110
+ * Returns gridSize taking into account `gridModeEnabled`.
111
+ * If disabled, returns null.
112
+ */
109
113
  y: number;
110
114
  }>;
111
115
  originInGrid: Readonly<{
@@ -174,7 +178,10 @@ declare class App extends React.Component<AppProps, AppState> {
174
178
  fromSelection: boolean;
175
179
  } & import("../types").ActiveTool, pointerDownState: Readonly<{
176
180
  origin: Readonly<{
177
- x: number;
181
+ x: number; /**
182
+ * Returns gridSize taking into account `gridModeEnabled`.
183
+ * If disabled, returns null.
184
+ */
178
185
  y: number;
179
186
  }>;
180
187
  originInGrid: Readonly<{
@@ -0,0 +1,3 @@
1
+ export declare const Ellipsify: ({ children, ...rest }: {
2
+ children: React.ReactNode;
3
+ } & import("react").HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
@@ -26,6 +26,7 @@ export { getBoundTextMaxWidth } from "@excalidraw/element/textElement";
26
26
  export { mermaidToExcalidraw } from "./components/TTDDialog/MermaidToExcalidrawLib";
27
27
  export { destroyObsidianUtils, registerLocalFont, getFontMetrics, getFontFamilies, registerFontsInCSS, getCSSFontDefinition, loadSceneFonts, getSharedMermaidInstance, loadMermaid, intersectElementWithLine, } from "../excalidraw/obsidianUtils";
28
28
  export { refreshTextDimensions } from "@excalidraw/element/newElement";
29
+ export { syncMovedIndices, syncInvalidIndices } from "@excalidraw/element";
29
30
  export { getContainerElement } from "@excalidraw/element/textElement";
30
31
  export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
31
32
  export { loadFromBlob, loadSceneOrLibraryFromBlob, loadLibraryFromBlob, } from "./data/blob";
@@ -42,6 +43,7 @@ export { Sidebar } from "./components/Sidebar/Sidebar";
42
43
  export { Button } from "./components/Button";
43
44
  export { Footer };
44
45
  export { MainMenu };
46
+ export { Ellipsify } from "./components/Ellipsify";
45
47
  export { useDevice } from "./components/App";
46
48
  export { WelcomeScreen };
47
49
  export { LiveCollaborationTrigger };
@@ -133,7 +133,6 @@ export type StaticCanvasAppState = Readonly<_CommonCanvasAppState & {
133
133
  }>;
134
134
  export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
135
135
  activeEmbeddable: AppState["activeEmbeddable"];
136
- editingLinearElement: AppState["editingLinearElement"];
137
136
  selectionElement: AppState["selectionElement"];
138
137
  selectedGroupIds: AppState["selectedGroupIds"];
139
138
  selectedLinearElement: AppState["selectedLinearElement"];
@@ -163,8 +162,8 @@ export type ObservedElementsAppState = {
163
162
  editingGroupId: AppState["editingGroupId"];
164
163
  selectedElementIds: AppState["selectedElementIds"];
165
164
  selectedGroupIds: AppState["selectedGroupIds"];
166
- editingLinearElementId: LinearElementEditor["elementId"] | null;
167
165
  selectedLinearElementId: LinearElementEditor["elementId"] | null;
166
+ selectedLinearElementIsEditing: boolean | null;
168
167
  croppingElementId: AppState["croppingElementId"];
169
168
  lockedMultiSelections: AppState["lockedMultiSelections"];
170
169
  activeLockedId: AppState["activeLockedId"];
@@ -218,7 +217,6 @@ export interface AppState {
218
217
  * set when a new text is created or when an existing text is being edited
219
218
  */
220
219
  editingTextElement: NonDeletedExcalidrawElement | null;
221
- editingLinearElement: LinearElementEditor | null;
222
220
  activeTool: {
223
221
  /**
224
222
  * indicates a previous tool we should revert back to if we deselect the