@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.16.1-obsidian-7",
3
+ "version": "0.16.1-obsidian-8",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -79,7 +79,7 @@ export declare const actionAddToLibrary: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "imageExport" | "help" | "jsonExport" | null;
82
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
83
83
  defaultSidebarDockedPreference: boolean;
84
84
  lastPointerDownWith: import("../element/types").PointerType;
85
85
  selectedElementIds: Readonly<{
@@ -139,7 +139,13 @@ export declare const actionAddToLibrary: {
139
139
  Regular: string;
140
140
  MajorGridFrequency?: number | undefined;
141
141
  };
142
- dynamicStyle: string;
142
+ dynamicStyle: {
143
+ [x: string]: string;
144
+ };
145
+ frameColor: {
146
+ stroke: string;
147
+ fill: string;
148
+ };
143
149
  invertBindingBehaviour: boolean;
144
150
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
145
151
  snapLines: readonly import("../snapping").SnapLine[];
@@ -222,7 +228,7 @@ export declare const actionAddToLibrary: {
222
228
  name: string;
223
229
  tab?: string | undefined;
224
230
  } | null;
225
- openDialog: "imageExport" | "help" | "jsonExport" | null;
231
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
226
232
  defaultSidebarDockedPreference: boolean;
227
233
  lastPointerDownWith: import("../element/types").PointerType;
228
234
  selectedElementIds: Readonly<{
@@ -287,7 +293,13 @@ export declare const actionAddToLibrary: {
287
293
  Regular: string;
288
294
  MajorGridFrequency?: number | undefined;
289
295
  };
290
- dynamicStyle: string;
296
+ dynamicStyle: {
297
+ [x: string]: string;
298
+ };
299
+ frameColor: {
300
+ stroke: string;
301
+ fill: string;
302
+ };
291
303
  invertBindingBehaviour: boolean;
292
304
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
293
305
  snapLines: readonly import("../snapping").SnapLine[];
@@ -370,7 +382,7 @@ export declare const actionAddToLibrary: {
370
382
  name: string;
371
383
  tab?: string | undefined;
372
384
  } | null;
373
- openDialog: "imageExport" | "help" | "jsonExport" | null;
385
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
374
386
  defaultSidebarDockedPreference: boolean;
375
387
  lastPointerDownWith: import("../element/types").PointerType;
376
388
  selectedElementIds: Readonly<{
@@ -435,7 +447,13 @@ export declare const actionAddToLibrary: {
435
447
  Regular: string;
436
448
  MajorGridFrequency?: number | undefined;
437
449
  };
438
- dynamicStyle: string;
450
+ dynamicStyle: {
451
+ [x: string]: string;
452
+ };
453
+ frameColor: {
454
+ stroke: string;
455
+ fill: string;
456
+ };
439
457
  invertBindingBehaviour: boolean;
440
458
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
441
459
  snapLines: readonly import("../snapping").SnapLine[];
@@ -99,7 +99,7 @@ export declare const actionBindText: {
99
99
  name: string;
100
100
  tab?: string | undefined;
101
101
  } | null;
102
- openDialog: "imageExport" | "help" | "jsonExport" | null;
102
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
103
103
  defaultSidebarDockedPreference: boolean;
104
104
  lastPointerDownWith: import("../element/types").PointerType;
105
105
  previousSelectedElementIds: {
@@ -161,7 +161,13 @@ export declare const actionBindText: {
161
161
  Regular: string;
162
162
  MajorGridFrequency?: number | undefined;
163
163
  };
164
- dynamicStyle: string;
164
+ dynamicStyle: {
165
+ [x: string]: string;
166
+ };
167
+ frameColor: {
168
+ stroke: string;
169
+ fill: string;
170
+ };
165
171
  invertBindingBehaviour: boolean;
166
172
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
167
173
  snapLines: readonly import("../snapping").SnapLine[];
@@ -259,7 +265,7 @@ export declare const actionWrapTextInContainer: {
259
265
  name: string;
260
266
  tab?: string | undefined;
261
267
  } | null;
262
- openDialog: "imageExport" | "help" | "jsonExport" | null;
268
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
263
269
  defaultSidebarDockedPreference: boolean;
264
270
  lastPointerDownWith: import("../element/types").PointerType;
265
271
  previousSelectedElementIds: {
@@ -321,7 +327,13 @@ export declare const actionWrapTextInContainer: {
321
327
  Regular: string;
322
328
  MajorGridFrequency?: number | undefined;
323
329
  };
324
- dynamicStyle: string;
330
+ dynamicStyle: {
331
+ [x: string]: string;
332
+ };
333
+ frameColor: {
334
+ stroke: string;
335
+ fill: string;
336
+ };
325
337
  invertBindingBehaviour: boolean;
326
338
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
327
339
  snapLines: readonly import("../snapping").SnapLine[];
@@ -117,7 +117,7 @@ export declare const actionClearCanvas: {
117
117
  name: string;
118
118
  tab?: string | undefined;
119
119
  } | null;
120
- openDialog: "imageExport" | "help" | "jsonExport" | null;
120
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
121
121
  defaultSidebarDockedPreference: boolean;
122
122
  lastPointerDownWith: import("../element/types").PointerType;
123
123
  selectedElementIds: Readonly<{
@@ -153,7 +153,13 @@ export declare const actionClearCanvas: {
153
153
  Regular: string;
154
154
  MajorGridFrequency?: number | undefined;
155
155
  };
156
- dynamicStyle: string;
156
+ dynamicStyle: {
157
+ [x: string]: string;
158
+ };
159
+ frameColor: {
160
+ stroke: string;
161
+ fill: string;
162
+ };
157
163
  invertBindingBehaviour: boolean;
158
164
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
159
165
  snapLines: readonly import("../snapping").SnapLine[];
@@ -246,7 +252,7 @@ export declare const actionZoomIn: {
246
252
  name: string;
247
253
  tab?: string | undefined;
248
254
  } | null;
249
- openDialog: "imageExport" | "help" | "jsonExport" | null;
255
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
250
256
  defaultSidebarDockedPreference: boolean;
251
257
  lastPointerDownWith: import("../element/types").PointerType;
252
258
  selectedElementIds: Readonly<{
@@ -311,7 +317,13 @@ export declare const actionZoomIn: {
311
317
  Regular: string;
312
318
  MajorGridFrequency?: number | undefined;
313
319
  };
314
- dynamicStyle: string;
320
+ dynamicStyle: {
321
+ [x: string]: string;
322
+ };
323
+ frameColor: {
324
+ stroke: string;
325
+ fill: string;
326
+ };
315
327
  invertBindingBehaviour: boolean;
316
328
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
317
329
  snapLines: readonly import("../snapping").SnapLine[];
@@ -406,7 +418,7 @@ export declare const actionZoomOut: {
406
418
  name: string;
407
419
  tab?: string | undefined;
408
420
  } | null;
409
- openDialog: "imageExport" | "help" | "jsonExport" | null;
421
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
410
422
  defaultSidebarDockedPreference: boolean;
411
423
  lastPointerDownWith: import("../element/types").PointerType;
412
424
  selectedElementIds: Readonly<{
@@ -471,7 +483,13 @@ export declare const actionZoomOut: {
471
483
  Regular: string;
472
484
  MajorGridFrequency?: number | undefined;
473
485
  };
474
- dynamicStyle: string;
486
+ dynamicStyle: {
487
+ [x: string]: string;
488
+ };
489
+ frameColor: {
490
+ stroke: string;
491
+ fill: string;
492
+ };
475
493
  invertBindingBehaviour: boolean;
476
494
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
477
495
  snapLines: readonly import("../snapping").SnapLine[];
@@ -566,7 +584,7 @@ export declare const actionResetZoom: {
566
584
  name: string;
567
585
  tab?: string | undefined;
568
586
  } | null;
569
- openDialog: "imageExport" | "help" | "jsonExport" | null;
587
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
570
588
  defaultSidebarDockedPreference: boolean;
571
589
  lastPointerDownWith: import("../element/types").PointerType;
572
590
  selectedElementIds: Readonly<{
@@ -631,7 +649,13 @@ export declare const actionResetZoom: {
631
649
  Regular: string;
632
650
  MajorGridFrequency?: number | undefined;
633
651
  };
634
- dynamicStyle: string;
652
+ dynamicStyle: {
653
+ [x: string]: string;
654
+ };
655
+ frameColor: {
656
+ stroke: string;
657
+ fill: string;
658
+ };
635
659
  invertBindingBehaviour: boolean;
636
660
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
637
661
  snapLines: readonly import("../snapping").SnapLine[];
@@ -727,7 +751,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
727
751
  name: string;
728
752
  tab?: string | undefined;
729
753
  } | null;
730
- openDialog: "imageExport" | "help" | "jsonExport" | null;
754
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
731
755
  defaultSidebarDockedPreference: boolean;
732
756
  lastPointerDownWith: import("../element/types").PointerType;
733
757
  selectedElementIds: Readonly<{
@@ -792,7 +816,13 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
792
816
  Regular: string;
793
817
  MajorGridFrequency?: number | undefined;
794
818
  };
795
- dynamicStyle: string;
819
+ dynamicStyle: {
820
+ [x: string]: string;
821
+ };
822
+ frameColor: {
823
+ stroke: string;
824
+ fill: string;
825
+ };
796
826
  invertBindingBehaviour: boolean;
797
827
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
798
828
  snapLines: readonly import("../snapping").SnapLine[];
@@ -881,7 +911,7 @@ export declare const actionZoomToFitSelectionInViewport: {
881
911
  name: string;
882
912
  tab?: string | undefined;
883
913
  } | null;
884
- openDialog: "imageExport" | "help" | "jsonExport" | null;
914
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
885
915
  defaultSidebarDockedPreference: boolean;
886
916
  lastPointerDownWith: import("../element/types").PointerType;
887
917
  selectedElementIds: Readonly<{
@@ -946,7 +976,13 @@ export declare const actionZoomToFitSelectionInViewport: {
946
976
  Regular: string;
947
977
  MajorGridFrequency?: number | undefined;
948
978
  };
949
- dynamicStyle: string;
979
+ dynamicStyle: {
980
+ [x: string]: string;
981
+ };
982
+ frameColor: {
983
+ stroke: string;
984
+ fill: string;
985
+ };
950
986
  invertBindingBehaviour: boolean;
951
987
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
952
988
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1039,7 +1075,7 @@ export declare const actionZoomToFitSelection: {
1039
1075
  name: string;
1040
1076
  tab?: string | undefined;
1041
1077
  } | null;
1042
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1078
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1043
1079
  defaultSidebarDockedPreference: boolean;
1044
1080
  lastPointerDownWith: import("../element/types").PointerType;
1045
1081
  selectedElementIds: Readonly<{
@@ -1104,7 +1140,13 @@ export declare const actionZoomToFitSelection: {
1104
1140
  Regular: string;
1105
1141
  MajorGridFrequency?: number | undefined;
1106
1142
  };
1107
- dynamicStyle: string;
1143
+ dynamicStyle: {
1144
+ [x: string]: string;
1145
+ };
1146
+ frameColor: {
1147
+ stroke: string;
1148
+ fill: string;
1149
+ };
1108
1150
  invertBindingBehaviour: boolean;
1109
1151
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1110
1152
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1198,7 +1240,7 @@ export declare const actionZoomToFit: {
1198
1240
  name: string;
1199
1241
  tab?: string | undefined;
1200
1242
  } | null;
1201
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1243
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1202
1244
  defaultSidebarDockedPreference: boolean;
1203
1245
  lastPointerDownWith: import("../element/types").PointerType;
1204
1246
  selectedElementIds: Readonly<{
@@ -1263,7 +1305,13 @@ export declare const actionZoomToFit: {
1263
1305
  Regular: string;
1264
1306
  MajorGridFrequency?: number | undefined;
1265
1307
  };
1266
- dynamicStyle: string;
1308
+ dynamicStyle: {
1309
+ [x: string]: string;
1310
+ };
1311
+ frameColor: {
1312
+ stroke: string;
1313
+ fill: string;
1314
+ };
1267
1315
  invertBindingBehaviour: boolean;
1268
1316
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1269
1317
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1358,7 +1406,7 @@ export declare const actionToggleTheme: {
1358
1406
  name: string;
1359
1407
  tab?: string | undefined;
1360
1408
  } | null;
1361
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1409
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1362
1410
  defaultSidebarDockedPreference: boolean;
1363
1411
  lastPointerDownWith: import("../element/types").PointerType;
1364
1412
  selectedElementIds: Readonly<{
@@ -1422,7 +1470,13 @@ export declare const actionToggleTheme: {
1422
1470
  Regular: string;
1423
1471
  MajorGridFrequency?: number | undefined;
1424
1472
  };
1425
- dynamicStyle: string;
1473
+ dynamicStyle: {
1474
+ [x: string]: string;
1475
+ };
1476
+ frameColor: {
1477
+ stroke: string;
1478
+ fill: string;
1479
+ };
1426
1480
  invertBindingBehaviour: boolean;
1427
1481
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1428
1482
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1515,7 +1569,7 @@ export declare const actionToggleEraserTool: {
1515
1569
  name: string;
1516
1570
  tab?: string | undefined;
1517
1571
  } | null;
1518
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1572
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1519
1573
  defaultSidebarDockedPreference: boolean;
1520
1574
  lastPointerDownWith: import("../element/types").PointerType;
1521
1575
  previousSelectedElementIds: {
@@ -1574,7 +1628,13 @@ export declare const actionToggleEraserTool: {
1574
1628
  Regular: string;
1575
1629
  MajorGridFrequency?: number | undefined;
1576
1630
  };
1577
- dynamicStyle: string;
1631
+ dynamicStyle: {
1632
+ [x: string]: string;
1633
+ };
1634
+ frameColor: {
1635
+ stroke: string;
1636
+ fill: string;
1637
+ };
1578
1638
  invertBindingBehaviour: boolean;
1579
1639
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1580
1640
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1666,7 +1726,7 @@ export declare const actionToggleHandTool: {
1666
1726
  name: string;
1667
1727
  tab?: string | undefined;
1668
1728
  } | null;
1669
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1729
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1670
1730
  defaultSidebarDockedPreference: boolean;
1671
1731
  lastPointerDownWith: import("../element/types").PointerType;
1672
1732
  previousSelectedElementIds: {
@@ -1725,7 +1785,13 @@ export declare const actionToggleHandTool: {
1725
1785
  Regular: string;
1726
1786
  MajorGridFrequency?: number | undefined;
1727
1787
  };
1728
- dynamicStyle: string;
1788
+ dynamicStyle: {
1789
+ [x: string]: string;
1790
+ };
1791
+ frameColor: {
1792
+ stroke: string;
1793
+ fill: string;
1794
+ };
1729
1795
  invertBindingBehaviour: boolean;
1730
1796
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1731
1797
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1818,7 +1884,7 @@ export declare const actionToggleLaserPointer: {
1818
1884
  name: string;
1819
1885
  tab?: string | undefined;
1820
1886
  } | null;
1821
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1887
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1822
1888
  defaultSidebarDockedPreference: boolean;
1823
1889
  lastPointerDownWith: import("../element/types").PointerType;
1824
1890
  previousSelectedElementIds: {
@@ -1877,7 +1943,13 @@ export declare const actionToggleLaserPointer: {
1877
1943
  Regular: string;
1878
1944
  MajorGridFrequency?: number | undefined;
1879
1945
  };
1880
- dynamicStyle: string;
1946
+ dynamicStyle: {
1947
+ [x: string]: string;
1948
+ };
1949
+ frameColor: {
1950
+ stroke: string;
1951
+ fill: string;
1952
+ };
1881
1953
  invertBindingBehaviour: boolean;
1882
1954
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1883
1955
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1966,7 +2038,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
1966
2038
  name: string;
1967
2039
  tab?: string | undefined;
1968
2040
  } | null;
1969
- openDialog: "imageExport" | "help" | "jsonExport" | null;
2041
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1970
2042
  defaultSidebarDockedPreference: boolean;
1971
2043
  lastPointerDownWith: import("../element/types").PointerType;
1972
2044
  selectedElementIds: Readonly<{
@@ -2031,7 +2103,13 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2031
2103
  Regular: string;
2032
2104
  MajorGridFrequency?: number | undefined;
2033
2105
  };
2034
- dynamicStyle: string;
2106
+ dynamicStyle: {
2107
+ [x: string]: string;
2108
+ };
2109
+ frameColor: {
2110
+ stroke: string;
2111
+ fill: string;
2112
+ };
2035
2113
  invertBindingBehaviour: boolean;
2036
2114
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2037
2115
  snapLines: readonly import("../snapping").SnapLine[];