@zsviczian/excalidraw 0.16.1-obsidian-7 → 0.16.1-obsidian-8

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 (50) hide show
  1. package/dist/excalidraw.development.js +82 -38
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +24 -6
  5. package/types/actions/actionBoundText.d.ts +16 -4
  6. package/types/actions/actionCanvas.d.ts +104 -26
  7. package/types/actions/actionClipboard.d.ts +355 -18
  8. package/types/actions/actionDeleteSelected.d.ts +24 -6
  9. package/types/actions/actionElementLock.d.ts +16 -4
  10. package/types/actions/actionExport.d.ts +71 -17
  11. package/types/actions/actionFinalize.d.ts +16 -4
  12. package/types/actions/actionFrame.d.ts +24 -6
  13. package/types/actions/actionGroup.d.ts +16 -4
  14. package/types/actions/actionLinearEditor.d.ts +8 -2
  15. package/types/actions/actionMenu.d.ts +23 -5
  16. package/types/actions/actionProperties.d.ts +104 -26
  17. package/types/actions/actionSelectAll.d.ts +8 -2
  18. package/types/actions/actionStyles.d.ts +8 -2
  19. package/types/actions/actionToggleGridMode.d.ts +8 -2
  20. package/types/actions/actionToggleObjectsSnapMode.d.ts +8 -2
  21. package/types/actions/actionToggleStats.d.ts +8 -2
  22. package/types/actions/actionToggleViewMode.d.ts +8 -2
  23. package/types/actions/actionToggleZenMode.d.ts +8 -2
  24. package/types/actions/actionZindex.d.ts +2 -2
  25. package/types/actions/manager.d.ts +1 -1
  26. package/types/clipboard.d.ts +21 -3
  27. package/types/components/App.d.ts +2 -3
  28. package/types/components/ContextMenu.d.ts +2 -1
  29. package/types/components/MermaidToExcalidraw.d.ts +1 -1
  30. package/types/components/Modal.d.ts +3 -1
  31. package/types/constants.d.ts +1 -0
  32. package/types/data/transform.d.ts +7 -3
  33. package/types/element/Hyperlink.d.ts +9 -3
  34. package/types/element/bounds.d.ts +11 -5
  35. package/types/element/embeddable.d.ts +8 -2
  36. package/types/element/linearElementEditor.d.ts +10 -3
  37. package/types/element/newElement.d.ts +3 -1
  38. package/types/element/resizeTest.d.ts +2 -1
  39. package/types/element/transformHandles.d.ts +2 -1
  40. package/types/frame.d.ts +1 -0
  41. package/types/hooks/useCreatePortalContainer.d.ts +6 -4
  42. package/types/math.d.ts +1 -0
  43. package/types/packages/bbox.d.ts +11 -0
  44. package/types/packages/excalidraw/index.d.ts +1 -0
  45. package/types/packages/utils.d.ts +2 -0
  46. package/types/packages/withinBounds.d.ts +19 -0
  47. package/types/scene/export.d.ts +0 -1
  48. package/types/types.d.ts +11 -3
  49. package/types/utils.d.ts +2 -0
  50. package/types/zindex.d.ts +4 -4
@@ -75,7 +75,7 @@ export declare const actionChangeProjectName: {
75
75
  name: string;
76
76
  tab?: string | undefined;
77
77
  } | null;
78
- openDialog: "imageExport" | "help" | "jsonExport" | null;
78
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
79
79
  defaultSidebarDockedPreference: boolean;
80
80
  lastPointerDownWith: import("../element/types").PointerType;
81
81
  selectedElementIds: Readonly<{
@@ -140,7 +140,13 @@ export declare const actionChangeProjectName: {
140
140
  Regular: string;
141
141
  MajorGridFrequency?: number | undefined;
142
142
  };
143
- dynamicStyle: string;
143
+ dynamicStyle: {
144
+ [x: string]: string;
145
+ };
146
+ frameColor: {
147
+ stroke: string;
148
+ fill: string;
149
+ };
144
150
  invertBindingBehaviour: boolean;
145
151
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
146
152
  snapLines: readonly import("../snapping").SnapLine[];
@@ -234,7 +240,7 @@ export declare const actionChangeExportScale: {
234
240
  name: string;
235
241
  tab?: string | undefined;
236
242
  } | null;
237
- openDialog: "imageExport" | "help" | "jsonExport" | null;
243
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
238
244
  defaultSidebarDockedPreference: boolean;
239
245
  lastPointerDownWith: import("../element/types").PointerType;
240
246
  selectedElementIds: Readonly<{
@@ -299,7 +305,13 @@ export declare const actionChangeExportScale: {
299
305
  Regular: string;
300
306
  MajorGridFrequency?: number | undefined;
301
307
  };
302
- dynamicStyle: string;
308
+ dynamicStyle: {
309
+ [x: string]: string;
310
+ };
311
+ frameColor: {
312
+ stroke: string;
313
+ fill: string;
314
+ };
303
315
  invertBindingBehaviour: boolean;
304
316
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
305
317
  snapLines: readonly import("../snapping").SnapLine[];
@@ -393,7 +405,7 @@ export declare const actionChangeExportBackground: {
393
405
  name: string;
394
406
  tab?: string | undefined;
395
407
  } | null;
396
- openDialog: "imageExport" | "help" | "jsonExport" | null;
408
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
397
409
  defaultSidebarDockedPreference: boolean;
398
410
  lastPointerDownWith: import("../element/types").PointerType;
399
411
  selectedElementIds: Readonly<{
@@ -458,7 +470,13 @@ export declare const actionChangeExportBackground: {
458
470
  Regular: string;
459
471
  MajorGridFrequency?: number | undefined;
460
472
  };
461
- dynamicStyle: string;
473
+ dynamicStyle: {
474
+ [x: string]: string;
475
+ };
476
+ frameColor: {
477
+ stroke: string;
478
+ fill: string;
479
+ };
462
480
  invertBindingBehaviour: boolean;
463
481
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
464
482
  snapLines: readonly import("../snapping").SnapLine[];
@@ -552,7 +570,7 @@ export declare const actionChangeExportEmbedScene: {
552
570
  name: string;
553
571
  tab?: string | undefined;
554
572
  } | null;
555
- openDialog: "imageExport" | "help" | "jsonExport" | null;
573
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
556
574
  defaultSidebarDockedPreference: boolean;
557
575
  lastPointerDownWith: import("../element/types").PointerType;
558
576
  selectedElementIds: Readonly<{
@@ -617,7 +635,13 @@ export declare const actionChangeExportEmbedScene: {
617
635
  Regular: string;
618
636
  MajorGridFrequency?: number | undefined;
619
637
  };
620
- dynamicStyle: string;
638
+ dynamicStyle: {
639
+ [x: string]: string;
640
+ };
641
+ frameColor: {
642
+ stroke: string;
643
+ fill: string;
644
+ };
621
645
  invertBindingBehaviour: boolean;
622
646
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
623
647
  snapLines: readonly import("../snapping").SnapLine[];
@@ -716,7 +740,7 @@ export declare const actionSaveToActiveFile: {
716
740
  name: string;
717
741
  tab?: string | undefined;
718
742
  } | null;
719
- openDialog: "imageExport" | "help" | "jsonExport" | null;
743
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
720
744
  defaultSidebarDockedPreference: boolean;
721
745
  lastPointerDownWith: import("../element/types").PointerType;
722
746
  selectedElementIds: Readonly<{
@@ -775,7 +799,13 @@ export declare const actionSaveToActiveFile: {
775
799
  Regular: string;
776
800
  MajorGridFrequency?: number | undefined;
777
801
  };
778
- dynamicStyle: string;
802
+ dynamicStyle: {
803
+ [x: string]: string;
804
+ };
805
+ frameColor: {
806
+ stroke: string;
807
+ fill: string;
808
+ };
779
809
  invertBindingBehaviour: boolean;
780
810
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
781
811
  snapLines: readonly import("../snapping").SnapLine[];
@@ -935,7 +965,13 @@ export declare const actionSaveFileToDisk: {
935
965
  Regular: string;
936
966
  MajorGridFrequency?: number | undefined;
937
967
  };
938
- dynamicStyle: string;
968
+ dynamicStyle: {
969
+ [x: string]: string;
970
+ };
971
+ frameColor: {
972
+ stroke: string;
973
+ fill: string;
974
+ };
939
975
  invertBindingBehaviour: boolean;
940
976
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
941
977
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1033,7 +1069,7 @@ export declare const actionLoadScene: {
1033
1069
  name: string;
1034
1070
  tab?: string | undefined;
1035
1071
  } | null;
1036
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1072
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1037
1073
  defaultSidebarDockedPreference: boolean;
1038
1074
  lastPointerDownWith: import("../element/types").PointerType;
1039
1075
  selectedElementIds: Readonly<{
@@ -1094,7 +1130,13 @@ export declare const actionLoadScene: {
1094
1130
  Regular: string;
1095
1131
  MajorGridFrequency?: number | undefined;
1096
1132
  };
1097
- dynamicStyle: string;
1133
+ dynamicStyle: {
1134
+ [x: string]: string;
1135
+ };
1136
+ frameColor: {
1137
+ stroke: string;
1138
+ fill: string;
1139
+ };
1098
1140
  invertBindingBehaviour: boolean;
1099
1141
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1100
1142
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1179,7 +1221,7 @@ export declare const actionLoadScene: {
1179
1221
  name: string;
1180
1222
  tab?: string | undefined;
1181
1223
  } | null;
1182
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1224
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1183
1225
  defaultSidebarDockedPreference: boolean;
1184
1226
  lastPointerDownWith: import("../element/types").PointerType;
1185
1227
  selectedElementIds: Readonly<{
@@ -1244,7 +1286,13 @@ export declare const actionLoadScene: {
1244
1286
  Regular: string;
1245
1287
  MajorGridFrequency?: number | undefined;
1246
1288
  };
1247
- dynamicStyle: string;
1289
+ dynamicStyle: {
1290
+ [x: string]: string;
1291
+ };
1292
+ frameColor: {
1293
+ stroke: string;
1294
+ fill: string;
1295
+ };
1248
1296
  invertBindingBehaviour: boolean;
1249
1297
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1250
1298
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1339,7 +1387,7 @@ export declare const actionExportWithDarkMode: {
1339
1387
  name: string;
1340
1388
  tab?: string | undefined;
1341
1389
  } | null;
1342
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1390
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1343
1391
  defaultSidebarDockedPreference: boolean;
1344
1392
  lastPointerDownWith: import("../element/types").PointerType;
1345
1393
  selectedElementIds: Readonly<{
@@ -1404,7 +1452,13 @@ export declare const actionExportWithDarkMode: {
1404
1452
  Regular: string;
1405
1453
  MajorGridFrequency?: number | undefined;
1406
1454
  };
1407
- dynamicStyle: string;
1455
+ dynamicStyle: {
1456
+ [x: string]: string;
1457
+ };
1458
+ frameColor: {
1459
+ stroke: string;
1460
+ fill: string;
1461
+ };
1408
1462
  invertBindingBehaviour: boolean;
1409
1463
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1410
1464
  snapLines: readonly import("../snapping").SnapLine[];
@@ -76,7 +76,7 @@ export declare const actionFinalize: {
76
76
  name: string;
77
77
  tab?: string | undefined;
78
78
  } | null;
79
- openDialog: "imageExport" | "help" | "jsonExport" | null;
79
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
80
80
  defaultSidebarDockedPreference: boolean;
81
81
  lastPointerDownWith: import("../element/types").PointerType;
82
82
  selectedElementIds: Readonly<{
@@ -141,7 +141,13 @@ export declare const actionFinalize: {
141
141
  Regular: string;
142
142
  MajorGridFrequency?: number | undefined;
143
143
  };
144
- dynamicStyle: string;
144
+ dynamicStyle: {
145
+ [x: string]: string;
146
+ };
147
+ frameColor: {
148
+ stroke: string;
149
+ fill: string;
150
+ };
145
151
  invertBindingBehaviour: boolean;
146
152
  selectedLinearElement: LinearElementEditor | null;
147
153
  snapLines: readonly import("../snapping").SnapLine[];
@@ -227,7 +233,7 @@ export declare const actionFinalize: {
227
233
  name: string;
228
234
  tab?: string | undefined;
229
235
  } | null;
230
- openDialog: "imageExport" | "help" | "jsonExport" | null;
236
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
231
237
  defaultSidebarDockedPreference: boolean;
232
238
  lastPointerDownWith: import("../element/types").PointerType;
233
239
  previousSelectedElementIds: {
@@ -288,7 +294,13 @@ export declare const actionFinalize: {
288
294
  Regular: string;
289
295
  MajorGridFrequency?: number | undefined;
290
296
  };
291
- dynamicStyle: string;
297
+ dynamicStyle: {
298
+ [x: string]: string;
299
+ };
300
+ frameColor: {
301
+ stroke: string;
302
+ fill: string;
303
+ };
292
304
  invertBindingBehaviour: boolean;
293
305
  snapLines: readonly import("../snapping").SnapLine[];
294
306
  originSnapOffset: {
@@ -96,7 +96,7 @@ export declare const actionRemoveAllElementsFromFrame: {
96
96
  name: string;
97
97
  tab?: string | undefined;
98
98
  } | null;
99
- openDialog: "imageExport" | "help" | "jsonExport" | null;
99
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
100
100
  defaultSidebarDockedPreference: boolean;
101
101
  lastPointerDownWith: import("../element/types").PointerType;
102
102
  previousSelectedElementIds: {
@@ -158,7 +158,13 @@ export declare const actionRemoveAllElementsFromFrame: {
158
158
  Regular: string;
159
159
  MajorGridFrequency?: number | undefined;
160
160
  };
161
- dynamicStyle: string;
161
+ dynamicStyle: {
162
+ [x: string]: string;
163
+ };
164
+ frameColor: {
165
+ stroke: string;
166
+ fill: string;
167
+ };
162
168
  invertBindingBehaviour: boolean;
163
169
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
164
170
  snapLines: readonly import("../snapping").SnapLine[];
@@ -258,7 +264,7 @@ export declare const actionupdateFrameRendering: {
258
264
  name: string;
259
265
  tab?: string | undefined;
260
266
  } | null;
261
- openDialog: "imageExport" | "help" | "jsonExport" | null;
267
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
262
268
  defaultSidebarDockedPreference: boolean;
263
269
  lastPointerDownWith: import("../element/types").PointerType;
264
270
  selectedElementIds: Readonly<{
@@ -323,7 +329,13 @@ export declare const actionupdateFrameRendering: {
323
329
  Regular: string;
324
330
  MajorGridFrequency?: number | undefined;
325
331
  };
326
- dynamicStyle: string;
332
+ dynamicStyle: {
333
+ [x: string]: string;
334
+ };
335
+ frameColor: {
336
+ stroke: string;
337
+ fill: string;
338
+ };
327
339
  invertBindingBehaviour: boolean;
328
340
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
329
341
  snapLines: readonly import("../snapping").SnapLine[];
@@ -418,7 +430,7 @@ export declare const actionSetFrameAsActiveTool: {
418
430
  name: string;
419
431
  tab?: string | undefined;
420
432
  } | null;
421
- openDialog: "imageExport" | "help" | "jsonExport" | null;
433
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
422
434
  defaultSidebarDockedPreference: boolean;
423
435
  lastPointerDownWith: import("../element/types").PointerType;
424
436
  selectedElementIds: Readonly<{
@@ -483,7 +495,13 @@ export declare const actionSetFrameAsActiveTool: {
483
495
  Regular: string;
484
496
  MajorGridFrequency?: number | undefined;
485
497
  };
486
- dynamicStyle: string;
498
+ dynamicStyle: {
499
+ [x: string]: string;
500
+ };
501
+ frameColor: {
502
+ stroke: string;
503
+ fill: string;
504
+ };
487
505
  invertBindingBehaviour: boolean;
488
506
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
489
507
  snapLines: readonly import("../snapping").SnapLine[];
@@ -88,7 +88,7 @@ export declare const actionGroup: {
88
88
  name: string;
89
89
  tab?: string | undefined;
90
90
  } | null;
91
- openDialog: "imageExport" | "help" | "jsonExport" | null;
91
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
92
92
  defaultSidebarDockedPreference: boolean;
93
93
  lastPointerDownWith: import("../element/types").PointerType;
94
94
  previousSelectedElementIds: {
@@ -146,7 +146,13 @@ export declare const actionGroup: {
146
146
  Regular: string;
147
147
  MajorGridFrequency?: number | undefined;
148
148
  };
149
- dynamicStyle: string;
149
+ dynamicStyle: {
150
+ [x: string]: string;
151
+ };
152
+ frameColor: {
153
+ stroke: string;
154
+ fill: string;
155
+ };
150
156
  invertBindingBehaviour: boolean;
151
157
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
152
158
  snapLines: readonly import("../snapping").SnapLine[];
@@ -254,7 +260,7 @@ export declare const actionUngroup: {
254
260
  name: string;
255
261
  tab?: string | undefined;
256
262
  } | null;
257
- openDialog: "imageExport" | "help" | "jsonExport" | null;
263
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
258
264
  defaultSidebarDockedPreference: boolean;
259
265
  lastPointerDownWith: import("../element/types").PointerType;
260
266
  previousSelectedElementIds: {
@@ -312,7 +318,13 @@ export declare const actionUngroup: {
312
318
  Regular: string;
313
319
  MajorGridFrequency?: number | undefined;
314
320
  };
315
- dynamicStyle: string;
321
+ dynamicStyle: {
322
+ [x: string]: string;
323
+ };
324
+ frameColor: {
325
+ stroke: string;
326
+ fill: string;
327
+ };
316
328
  invertBindingBehaviour: boolean;
317
329
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
318
330
  snapLines: readonly import("../snapping").SnapLine[];
@@ -78,7 +78,7 @@ export declare const actionToggleLinearEditor: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "imageExport" | "help" | "jsonExport" | null;
81
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
82
82
  defaultSidebarDockedPreference: boolean;
83
83
  lastPointerDownWith: import("../element/types").PointerType;
84
84
  selectedElementIds: Readonly<{
@@ -143,7 +143,13 @@ export declare const actionToggleLinearEditor: {
143
143
  Regular: string;
144
144
  MajorGridFrequency?: number | undefined;
145
145
  };
146
- dynamicStyle: string;
146
+ dynamicStyle: {
147
+ [x: string]: string;
148
+ };
149
+ frameColor: {
150
+ stroke: string;
151
+ fill: string;
152
+ };
147
153
  invertBindingBehaviour: boolean;
148
154
  selectedLinearElement: LinearElementEditor | null;
149
155
  snapLines: readonly import("../snapping").SnapLine[];
@@ -75,7 +75,7 @@ export declare const actionToggleCanvasMenu: {
75
75
  name: string;
76
76
  tab?: string | undefined;
77
77
  } | null;
78
- openDialog: "imageExport" | "help" | "jsonExport" | null;
78
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
79
79
  defaultSidebarDockedPreference: boolean;
80
80
  lastPointerDownWith: import("../element/types").PointerType;
81
81
  selectedElementIds: Readonly<{
@@ -140,7 +140,13 @@ export declare const actionToggleCanvasMenu: {
140
140
  Regular: string;
141
141
  MajorGridFrequency?: number | undefined;
142
142
  };
143
- dynamicStyle: string;
143
+ dynamicStyle: {
144
+ [x: string]: string;
145
+ };
146
+ frameColor: {
147
+ stroke: string;
148
+ fill: string;
149
+ };
144
150
  invertBindingBehaviour: boolean;
145
151
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
146
152
  snapLines: readonly import("../snapping").SnapLine[];
@@ -233,7 +239,7 @@ export declare const actionToggleEditMenu: {
233
239
  name: string;
234
240
  tab?: string | undefined;
235
241
  } | null;
236
- openDialog: "imageExport" | "help" | "jsonExport" | null;
242
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
237
243
  defaultSidebarDockedPreference: boolean;
238
244
  lastPointerDownWith: import("../element/types").PointerType;
239
245
  selectedElementIds: Readonly<{
@@ -298,7 +304,13 @@ export declare const actionToggleEditMenu: {
298
304
  Regular: string;
299
305
  MajorGridFrequency?: number | undefined;
300
306
  };
301
- dynamicStyle: string;
307
+ dynamicStyle: {
308
+ [x: string]: string;
309
+ };
310
+ frameColor: {
311
+ stroke: string;
312
+ fill: string;
313
+ };
302
314
  invertBindingBehaviour: boolean;
303
315
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
304
316
  snapLines: readonly import("../snapping").SnapLine[];
@@ -472,7 +484,13 @@ export declare const actionShortcuts: {
472
484
  Regular: string;
473
485
  MajorGridFrequency?: number | undefined;
474
486
  };
475
- dynamicStyle: string;
487
+ dynamicStyle: {
488
+ [x: string]: string;
489
+ };
490
+ frameColor: {
491
+ stroke: string;
492
+ fill: string;
493
+ };
476
494
  invertBindingBehaviour: boolean;
477
495
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
478
496
  snapLines: readonly import("../snapping").SnapLine[];