@zsviczian/excalidraw 0.17.0-obsidian-3 → 0.17.1-obsidian-2
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.
- package/dist/excalidraw.development.js +90 -35
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +12 -9
- package/types/actions/actionBoundText.d.ts +8 -6
- package/types/actions/actionCanvas.d.ts +52 -39
- package/types/actions/actionClipboard.d.ts +28 -21
- package/types/actions/actionDeleteSelected.d.ts +12 -9
- package/types/actions/actionElementLock.d.ts +8 -6
- package/types/actions/actionExport.d.ts +32 -24
- package/types/actions/actionFinalize.d.ts +8 -6
- package/types/actions/actionFrame.d.ts +12 -9
- package/types/actions/actionGroup.d.ts +8 -6
- package/types/actions/actionLinearEditor.d.ts +4 -3
- package/types/actions/actionMenu.d.ts +8 -6
- package/types/actions/actionProperties.d.ts +52 -39
- package/types/actions/actionSelectAll.d.ts +4 -3
- package/types/actions/actionStyles.d.ts +4 -3
- package/types/actions/actionToggleGridMode.d.ts +4 -3
- package/types/actions/actionToggleObjectsSnapMode.d.ts +4 -3
- package/types/actions/actionToggleStats.d.ts +4 -3
- package/types/actions/actionToggleViewMode.d.ts +4 -3
- package/types/actions/actionToggleZenMode.d.ts +4 -3
- package/types/components/IconPicker.d.ts +3 -2
- package/types/components/MagicSettings.d.ts +1 -1
- package/types/components/TTDDialog/TTDDialog.d.ts +1 -1
- package/types/components/TTDDialog/TTDDialogPanel.d.ts +2 -1
- package/types/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -0
- package/types/components/TTDDialog/TTDDialogTabs.d.ts +8 -3
- package/types/components/TTDDialog/common.d.ts +3 -4
- package/types/components/icons.d.ts +13 -1
- package/types/constants.d.ts +1 -0
- package/types/element/Hyperlink.d.ts +4 -3
- package/types/element/bounds.d.ts +4 -0
- package/types/element/embeddable.d.ts +4 -3
- package/types/element/linearElementEditor.d.ts +4 -3
- package/types/element/types.d.ts +1 -1
- package/types/math.d.ts +1 -1
- package/types/packages/excalidraw/webpack.preact.config.d.ts +126 -22
- package/types/renderer/renderElement.d.ts +2 -7
- package/types/renderer/renderScene.d.ts +3 -14
- package/types/scene/Shape.d.ts +4 -1
- package/types/scene/ShapeCache.d.ts +5 -1
- package/types/scene/types.d.ts +12 -1
- package/types/types.d.ts +3 -2
|
@@ -99,11 +99,12 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
99
99
|
openDialog: {
|
|
100
100
|
name: "imageExport" | "help" | "jsonExport";
|
|
101
101
|
} | {
|
|
102
|
-
name: "
|
|
103
|
-
source: "
|
|
102
|
+
name: "settings";
|
|
103
|
+
source: "settings" | "tool" | "generation";
|
|
104
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
104
105
|
} | {
|
|
105
106
|
name: "ttd";
|
|
106
|
-
tab:
|
|
107
|
+
tab: "mermaid" | "text-to-diagram";
|
|
107
108
|
} | null;
|
|
108
109
|
defaultSidebarDockedPreference: boolean;
|
|
109
110
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -276,11 +277,12 @@ export declare const actionupdateFrameRendering: {
|
|
|
276
277
|
openDialog: {
|
|
277
278
|
name: "imageExport" | "help" | "jsonExport";
|
|
278
279
|
} | {
|
|
279
|
-
name: "
|
|
280
|
-
source: "
|
|
280
|
+
name: "settings";
|
|
281
|
+
source: "settings" | "tool" | "generation";
|
|
282
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
281
283
|
} | {
|
|
282
284
|
name: "ttd";
|
|
283
|
-
tab:
|
|
285
|
+
tab: "mermaid" | "text-to-diagram";
|
|
284
286
|
} | null;
|
|
285
287
|
defaultSidebarDockedPreference: boolean;
|
|
286
288
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -451,11 +453,12 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
451
453
|
openDialog: {
|
|
452
454
|
name: "imageExport" | "help" | "jsonExport";
|
|
453
455
|
} | {
|
|
454
|
-
name: "
|
|
455
|
-
source: "
|
|
456
|
+
name: "settings";
|
|
457
|
+
source: "settings" | "tool" | "generation";
|
|
458
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
456
459
|
} | {
|
|
457
460
|
name: "ttd";
|
|
458
|
-
tab:
|
|
461
|
+
tab: "mermaid" | "text-to-diagram";
|
|
459
462
|
} | null;
|
|
460
463
|
defaultSidebarDockedPreference: boolean;
|
|
461
464
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -91,11 +91,12 @@ export declare const actionGroup: {
|
|
|
91
91
|
openDialog: {
|
|
92
92
|
name: "imageExport" | "help" | "jsonExport";
|
|
93
93
|
} | {
|
|
94
|
-
name: "
|
|
95
|
-
source: "
|
|
94
|
+
name: "settings";
|
|
95
|
+
source: "settings" | "tool" | "generation";
|
|
96
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
96
97
|
} | {
|
|
97
98
|
name: "ttd";
|
|
98
|
-
tab:
|
|
99
|
+
tab: "mermaid" | "text-to-diagram";
|
|
99
100
|
} | null;
|
|
100
101
|
defaultSidebarDockedPreference: boolean;
|
|
101
102
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -272,11 +273,12 @@ export declare const actionUngroup: {
|
|
|
272
273
|
openDialog: {
|
|
273
274
|
name: "imageExport" | "help" | "jsonExport";
|
|
274
275
|
} | {
|
|
275
|
-
name: "
|
|
276
|
-
source: "
|
|
276
|
+
name: "settings";
|
|
277
|
+
source: "settings" | "tool" | "generation";
|
|
278
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
277
279
|
} | {
|
|
278
280
|
name: "ttd";
|
|
279
|
-
tab:
|
|
281
|
+
tab: "mermaid" | "text-to-diagram";
|
|
280
282
|
} | null;
|
|
281
283
|
defaultSidebarDockedPreference: boolean;
|
|
282
284
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -81,11 +81,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
81
81
|
openDialog: {
|
|
82
82
|
name: "imageExport" | "help" | "jsonExport";
|
|
83
83
|
} | {
|
|
84
|
-
name: "
|
|
85
|
-
source: "
|
|
84
|
+
name: "settings";
|
|
85
|
+
source: "settings" | "tool" | "generation";
|
|
86
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
86
87
|
} | {
|
|
87
88
|
name: "ttd";
|
|
88
|
-
tab:
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
90
|
} | null;
|
|
90
91
|
defaultSidebarDockedPreference: boolean;
|
|
91
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -78,11 +78,12 @@ export declare const actionToggleCanvasMenu: {
|
|
|
78
78
|
openDialog: {
|
|
79
79
|
name: "imageExport" | "help" | "jsonExport";
|
|
80
80
|
} | {
|
|
81
|
-
name: "
|
|
82
|
-
source: "
|
|
81
|
+
name: "settings";
|
|
82
|
+
source: "settings" | "tool" | "generation";
|
|
83
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
83
84
|
} | {
|
|
84
85
|
name: "ttd";
|
|
85
|
-
tab:
|
|
86
|
+
tab: "mermaid" | "text-to-diagram";
|
|
86
87
|
} | null;
|
|
87
88
|
defaultSidebarDockedPreference: boolean;
|
|
88
89
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -251,11 +252,12 @@ export declare const actionToggleEditMenu: {
|
|
|
251
252
|
openDialog: {
|
|
252
253
|
name: "imageExport" | "help" | "jsonExport";
|
|
253
254
|
} | {
|
|
254
|
-
name: "
|
|
255
|
-
source: "
|
|
255
|
+
name: "settings";
|
|
256
|
+
source: "settings" | "tool" | "generation";
|
|
257
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
256
258
|
} | {
|
|
257
259
|
name: "ttd";
|
|
258
|
-
tab:
|
|
260
|
+
tab: "mermaid" | "text-to-diagram";
|
|
259
261
|
} | null;
|
|
260
262
|
defaultSidebarDockedPreference: boolean;
|
|
261
263
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -97,11 +97,12 @@ export declare const actionChangeFillStyle: {
|
|
|
97
97
|
openDialog: {
|
|
98
98
|
name: "imageExport" | "help" | "jsonExport";
|
|
99
99
|
} | {
|
|
100
|
-
name: "
|
|
101
|
-
source: "
|
|
100
|
+
name: "settings";
|
|
101
|
+
source: "settings" | "tool" | "generation";
|
|
102
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
102
103
|
} | {
|
|
103
104
|
name: "ttd";
|
|
104
|
-
tab:
|
|
105
|
+
tab: "mermaid" | "text-to-diagram";
|
|
105
106
|
} | null;
|
|
106
107
|
defaultSidebarDockedPreference: boolean;
|
|
107
108
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -269,11 +270,12 @@ export declare const actionChangeStrokeWidth: {
|
|
|
269
270
|
openDialog: {
|
|
270
271
|
name: "imageExport" | "help" | "jsonExport";
|
|
271
272
|
} | {
|
|
272
|
-
name: "
|
|
273
|
-
source: "
|
|
273
|
+
name: "settings";
|
|
274
|
+
source: "settings" | "tool" | "generation";
|
|
275
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
274
276
|
} | {
|
|
275
277
|
name: "ttd";
|
|
276
|
-
tab:
|
|
278
|
+
tab: "mermaid" | "text-to-diagram";
|
|
277
279
|
} | null;
|
|
278
280
|
defaultSidebarDockedPreference: boolean;
|
|
279
281
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -441,11 +443,12 @@ export declare const actionChangeSloppiness: {
|
|
|
441
443
|
openDialog: {
|
|
442
444
|
name: "imageExport" | "help" | "jsonExport";
|
|
443
445
|
} | {
|
|
444
|
-
name: "
|
|
445
|
-
source: "
|
|
446
|
+
name: "settings";
|
|
447
|
+
source: "settings" | "tool" | "generation";
|
|
448
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
446
449
|
} | {
|
|
447
450
|
name: "ttd";
|
|
448
|
-
tab:
|
|
451
|
+
tab: "mermaid" | "text-to-diagram";
|
|
449
452
|
} | null;
|
|
450
453
|
defaultSidebarDockedPreference: boolean;
|
|
451
454
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -613,11 +616,12 @@ export declare const actionChangeStrokeStyle: {
|
|
|
613
616
|
openDialog: {
|
|
614
617
|
name: "imageExport" | "help" | "jsonExport";
|
|
615
618
|
} | {
|
|
616
|
-
name: "
|
|
617
|
-
source: "
|
|
619
|
+
name: "settings";
|
|
620
|
+
source: "settings" | "tool" | "generation";
|
|
621
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
618
622
|
} | {
|
|
619
623
|
name: "ttd";
|
|
620
|
-
tab:
|
|
624
|
+
tab: "mermaid" | "text-to-diagram";
|
|
621
625
|
} | null;
|
|
622
626
|
defaultSidebarDockedPreference: boolean;
|
|
623
627
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -785,11 +789,12 @@ export declare const actionChangeOpacity: {
|
|
|
785
789
|
openDialog: {
|
|
786
790
|
name: "imageExport" | "help" | "jsonExport";
|
|
787
791
|
} | {
|
|
788
|
-
name: "
|
|
789
|
-
source: "
|
|
792
|
+
name: "settings";
|
|
793
|
+
source: "settings" | "tool" | "generation";
|
|
794
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
790
795
|
} | {
|
|
791
796
|
name: "ttd";
|
|
792
|
-
tab:
|
|
797
|
+
tab: "mermaid" | "text-to-diagram";
|
|
793
798
|
} | null;
|
|
794
799
|
defaultSidebarDockedPreference: boolean;
|
|
795
800
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -957,11 +962,12 @@ export declare const actionChangeFontSize: {
|
|
|
957
962
|
openDialog: {
|
|
958
963
|
name: "imageExport" | "help" | "jsonExport";
|
|
959
964
|
} | {
|
|
960
|
-
name: "
|
|
961
|
-
source: "
|
|
965
|
+
name: "settings";
|
|
966
|
+
source: "settings" | "tool" | "generation";
|
|
967
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
962
968
|
} | {
|
|
963
969
|
name: "ttd";
|
|
964
|
-
tab:
|
|
970
|
+
tab: "mermaid" | "text-to-diagram";
|
|
965
971
|
} | null;
|
|
966
972
|
defaultSidebarDockedPreference: boolean;
|
|
967
973
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1129,11 +1135,12 @@ export declare const actionDecreaseFontSize: {
|
|
|
1129
1135
|
openDialog: {
|
|
1130
1136
|
name: "imageExport" | "help" | "jsonExport";
|
|
1131
1137
|
} | {
|
|
1132
|
-
name: "
|
|
1133
|
-
source: "
|
|
1138
|
+
name: "settings";
|
|
1139
|
+
source: "settings" | "tool" | "generation";
|
|
1140
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1134
1141
|
} | {
|
|
1135
1142
|
name: "ttd";
|
|
1136
|
-
tab:
|
|
1143
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1137
1144
|
} | null;
|
|
1138
1145
|
defaultSidebarDockedPreference: boolean;
|
|
1139
1146
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1301,11 +1308,12 @@ export declare const actionIncreaseFontSize: {
|
|
|
1301
1308
|
openDialog: {
|
|
1302
1309
|
name: "imageExport" | "help" | "jsonExport";
|
|
1303
1310
|
} | {
|
|
1304
|
-
name: "
|
|
1305
|
-
source: "
|
|
1311
|
+
name: "settings";
|
|
1312
|
+
source: "settings" | "tool" | "generation";
|
|
1313
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1306
1314
|
} | {
|
|
1307
1315
|
name: "ttd";
|
|
1308
|
-
tab:
|
|
1316
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1309
1317
|
} | null;
|
|
1310
1318
|
defaultSidebarDockedPreference: boolean;
|
|
1311
1319
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1473,11 +1481,12 @@ export declare const actionChangeFontFamily: {
|
|
|
1473
1481
|
openDialog: {
|
|
1474
1482
|
name: "imageExport" | "help" | "jsonExport";
|
|
1475
1483
|
} | {
|
|
1476
|
-
name: "
|
|
1477
|
-
source: "
|
|
1484
|
+
name: "settings";
|
|
1485
|
+
source: "settings" | "tool" | "generation";
|
|
1486
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1478
1487
|
} | {
|
|
1479
1488
|
name: "ttd";
|
|
1480
|
-
tab:
|
|
1489
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1481
1490
|
} | null;
|
|
1482
1491
|
defaultSidebarDockedPreference: boolean;
|
|
1483
1492
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1645,11 +1654,12 @@ export declare const actionChangeTextAlign: {
|
|
|
1645
1654
|
openDialog: {
|
|
1646
1655
|
name: "imageExport" | "help" | "jsonExport";
|
|
1647
1656
|
} | {
|
|
1648
|
-
name: "
|
|
1649
|
-
source: "
|
|
1657
|
+
name: "settings";
|
|
1658
|
+
source: "settings" | "tool" | "generation";
|
|
1659
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1650
1660
|
} | {
|
|
1651
1661
|
name: "ttd";
|
|
1652
|
-
tab:
|
|
1662
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1653
1663
|
} | null;
|
|
1654
1664
|
defaultSidebarDockedPreference: boolean;
|
|
1655
1665
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1819,11 +1829,12 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1819
1829
|
openDialog: {
|
|
1820
1830
|
name: "imageExport" | "help" | "jsonExport";
|
|
1821
1831
|
} | {
|
|
1822
|
-
name: "
|
|
1823
|
-
source: "
|
|
1832
|
+
name: "settings";
|
|
1833
|
+
source: "settings" | "tool" | "generation";
|
|
1834
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1824
1835
|
} | {
|
|
1825
1836
|
name: "ttd";
|
|
1826
|
-
tab:
|
|
1837
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1827
1838
|
} | null;
|
|
1828
1839
|
defaultSidebarDockedPreference: boolean;
|
|
1829
1840
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1991,11 +2002,12 @@ export declare const actionChangeRoundness: {
|
|
|
1991
2002
|
openDialog: {
|
|
1992
2003
|
name: "imageExport" | "help" | "jsonExport";
|
|
1993
2004
|
} | {
|
|
1994
|
-
name: "
|
|
1995
|
-
source: "
|
|
2005
|
+
name: "settings";
|
|
2006
|
+
source: "settings" | "tool" | "generation";
|
|
2007
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1996
2008
|
} | {
|
|
1997
2009
|
name: "ttd";
|
|
1998
|
-
tab:
|
|
2010
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1999
2011
|
} | null;
|
|
2000
2012
|
defaultSidebarDockedPreference: boolean;
|
|
2001
2013
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2166,11 +2178,12 @@ export declare const actionChangeArrowhead: {
|
|
|
2166
2178
|
openDialog: {
|
|
2167
2179
|
name: "imageExport" | "help" | "jsonExport";
|
|
2168
2180
|
} | {
|
|
2169
|
-
name: "
|
|
2170
|
-
source: "
|
|
2181
|
+
name: "settings";
|
|
2182
|
+
source: "settings" | "tool" | "generation";
|
|
2183
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
2171
2184
|
} | {
|
|
2172
2185
|
name: "ttd";
|
|
2173
|
-
tab:
|
|
2186
|
+
tab: "mermaid" | "text-to-diagram";
|
|
2174
2187
|
} | null;
|
|
2175
2188
|
defaultSidebarDockedPreference: boolean;
|
|
2176
2189
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -88,11 +88,12 @@ export declare const actionSelectAll: {
|
|
|
88
88
|
openDialog: {
|
|
89
89
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
90
|
} | {
|
|
91
|
-
name: "
|
|
92
|
-
source: "
|
|
91
|
+
name: "settings";
|
|
92
|
+
source: "settings" | "tool" | "generation";
|
|
93
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
93
94
|
} | {
|
|
94
95
|
name: "ttd";
|
|
95
|
-
tab:
|
|
96
|
+
tab: "mermaid" | "text-to-diagram";
|
|
96
97
|
} | null;
|
|
97
98
|
defaultSidebarDockedPreference: boolean;
|
|
98
99
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -82,11 +82,12 @@ export declare const actionCopyStyles: {
|
|
|
82
82
|
openDialog: {
|
|
83
83
|
name: "imageExport" | "help" | "jsonExport";
|
|
84
84
|
} | {
|
|
85
|
-
name: "
|
|
86
|
-
source: "
|
|
85
|
+
name: "settings";
|
|
86
|
+
source: "settings" | "tool" | "generation";
|
|
87
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
87
88
|
} | {
|
|
88
89
|
name: "ttd";
|
|
89
|
-
tab:
|
|
90
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
91
|
} | null;
|
|
91
92
|
defaultSidebarDockedPreference: boolean;
|
|
92
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -83,11 +83,12 @@ export declare const actionToggleGridMode: {
|
|
|
83
83
|
openDialog: {
|
|
84
84
|
name: "imageExport" | "help" | "jsonExport";
|
|
85
85
|
} | {
|
|
86
|
-
name: "
|
|
87
|
-
source: "
|
|
86
|
+
name: "settings";
|
|
87
|
+
source: "settings" | "tool" | "generation";
|
|
88
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
88
89
|
} | {
|
|
89
90
|
name: "ttd";
|
|
90
|
-
tab:
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
91
92
|
} | null;
|
|
92
93
|
defaultSidebarDockedPreference: boolean;
|
|
93
94
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -82,11 +82,12 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
82
82
|
openDialog: {
|
|
83
83
|
name: "imageExport" | "help" | "jsonExport";
|
|
84
84
|
} | {
|
|
85
|
-
name: "
|
|
86
|
-
source: "
|
|
85
|
+
name: "settings";
|
|
86
|
+
source: "settings" | "tool" | "generation";
|
|
87
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
87
88
|
} | {
|
|
88
89
|
name: "ttd";
|
|
89
|
-
tab:
|
|
90
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
91
|
} | null;
|
|
91
92
|
defaultSidebarDockedPreference: boolean;
|
|
92
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -80,11 +80,12 @@ export declare const actionToggleStats: {
|
|
|
80
80
|
openDialog: {
|
|
81
81
|
name: "imageExport" | "help" | "jsonExport";
|
|
82
82
|
} | {
|
|
83
|
-
name: "
|
|
84
|
-
source: "
|
|
83
|
+
name: "settings";
|
|
84
|
+
source: "settings" | "tool" | "generation";
|
|
85
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
85
86
|
} | {
|
|
86
87
|
name: "ttd";
|
|
87
|
-
tab:
|
|
88
|
+
tab: "mermaid" | "text-to-diagram";
|
|
88
89
|
} | null;
|
|
89
90
|
defaultSidebarDockedPreference: boolean;
|
|
90
91
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -81,11 +81,12 @@ export declare const actionToggleViewMode: {
|
|
|
81
81
|
openDialog: {
|
|
82
82
|
name: "imageExport" | "help" | "jsonExport";
|
|
83
83
|
} | {
|
|
84
|
-
name: "
|
|
85
|
-
source: "
|
|
84
|
+
name: "settings";
|
|
85
|
+
source: "settings" | "tool" | "generation";
|
|
86
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
86
87
|
} | {
|
|
87
88
|
name: "ttd";
|
|
88
|
-
tab:
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
90
|
} | null;
|
|
90
91
|
defaultSidebarDockedPreference: boolean;
|
|
91
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -81,11 +81,12 @@ export declare const actionToggleZenMode: {
|
|
|
81
81
|
openDialog: {
|
|
82
82
|
name: "imageExport" | "help" | "jsonExport";
|
|
83
83
|
} | {
|
|
84
|
-
name: "
|
|
85
|
-
source: "
|
|
84
|
+
name: "settings";
|
|
85
|
+
source: "settings" | "tool" | "generation";
|
|
86
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
86
87
|
} | {
|
|
87
88
|
name: "ttd";
|
|
88
|
-
tab:
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
90
|
} | null;
|
|
90
91
|
defaultSidebarDockedPreference: boolean;
|
|
91
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2,11 +2,12 @@ import "./IconPicker.scss";
|
|
|
2
2
|
export declare function IconPicker<T>({ value, label, options, onChange, group, }: {
|
|
3
3
|
label: string;
|
|
4
4
|
value: T;
|
|
5
|
-
options: {
|
|
5
|
+
options: readonly {
|
|
6
6
|
value: T;
|
|
7
7
|
text: string;
|
|
8
8
|
icon: JSX.Element;
|
|
9
|
-
keyBinding: string;
|
|
9
|
+
keyBinding: string | null;
|
|
10
|
+
showInPicker?: boolean;
|
|
10
11
|
}[];
|
|
11
12
|
onChange: (value: T) => void;
|
|
12
13
|
group?: string;
|
|
@@ -5,4 +5,4 @@ export declare const MagicSettings: (props: {
|
|
|
5
5
|
onChange: (key: string, shouldPersist: boolean) => void;
|
|
6
6
|
onConfirm: (key: string, shouldPersist: boolean) => void;
|
|
7
7
|
onClose: () => void;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -18,7 +18,7 @@ export declare const TTDDialog: (props: {
|
|
|
18
18
|
* Text to diagram (TTD) dialog
|
|
19
19
|
*/
|
|
20
20
|
export declare const TTDDialogBase: import("react").FC<({
|
|
21
|
-
tab:
|
|
21
|
+
tab: "text-to-diagram" | "mermaid";
|
|
22
22
|
} & ({
|
|
23
23
|
onTextSubmit(value: string): Promise<OnTestSubmitRetValue>;
|
|
24
24
|
} | {
|
|
@@ -10,7 +10,8 @@ interface TTDDialogPanelProps {
|
|
|
10
10
|
panelActionDisabled?: boolean;
|
|
11
11
|
onTextSubmitInProgess?: boolean;
|
|
12
12
|
renderTopRight?: () => ReactNode;
|
|
13
|
+
renderSubmitShortcut?: () => ReactNode;
|
|
13
14
|
renderBottomRight?: () => ReactNode;
|
|
14
15
|
}
|
|
15
|
-
export declare const TTDDialogPanel: ({ label, children, panelAction, panelActionDisabled, onTextSubmitInProgess, renderTopRight, renderBottomRight, }: TTDDialogPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TTDDialogPanel: ({ label, children, panelAction, panelActionDisabled, onTextSubmitInProgess, renderTopRight, renderSubmitShortcut, renderBottomRight, }: TTDDialogPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TTDDialogSubmitShortcut: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
declare const TTDDialogTabs: {
|
|
3
|
-
(
|
|
3
|
+
(props: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
} & ({
|
|
6
|
+
dialog: "ttd";
|
|
7
|
+
tab: "text-to-diagram" | "mermaid";
|
|
8
|
+
} | {
|
|
9
|
+
dialog: "settings";
|
|
10
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
11
|
+
})): import("react/jsx-runtime").JSX.Element;
|
|
7
12
|
displayName: string;
|
|
8
13
|
};
|
|
9
14
|
export default TTDDialogTabs;
|
|
@@ -11,16 +11,15 @@ export interface MermaidToExcalidrawLibProps {
|
|
|
11
11
|
interface ConvertMermaidToExcalidrawFormatProps {
|
|
12
12
|
canvasRef: React.RefObject<HTMLDivElement>;
|
|
13
13
|
mermaidToExcalidrawLib: MermaidToExcalidrawLibProps;
|
|
14
|
-
|
|
14
|
+
mermaidDefinition: string;
|
|
15
15
|
setError: (error: Error | null) => void;
|
|
16
16
|
data: React.MutableRefObject<{
|
|
17
17
|
elements: readonly NonDeletedExcalidrawElement[];
|
|
18
18
|
files: BinaryFiles | null;
|
|
19
19
|
}>;
|
|
20
20
|
}
|
|
21
|
-
export declare const convertMermaidToExcalidraw: ({ canvasRef, mermaidToExcalidrawLib,
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const saveMermaidDataToStorage: (data: string) => void;
|
|
21
|
+
export declare const convertMermaidToExcalidraw: ({ canvasRef, mermaidToExcalidrawLib, mermaidDefinition, setError, data, }: ConvertMermaidToExcalidrawFormatProps) => Promise<void>;
|
|
22
|
+
export declare const saveMermaidDataToStorage: (mermaidDefinition: string) => void;
|
|
24
23
|
export declare const insertToEditor: ({ app, data, text, shouldSaveMermaidDataToStorage, }: {
|
|
25
24
|
app: AppClassProperties;
|
|
26
25
|
data: React.MutableRefObject<{
|
|
@@ -111,7 +111,10 @@ export declare const ArrowheadNoneIcon: import("react/jsx-runtime").JSX.Element;
|
|
|
111
111
|
export declare const ArrowheadArrowIcon: React.MemoExoticComponent<({ flip }: {
|
|
112
112
|
flip?: boolean | undefined;
|
|
113
113
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
114
|
-
export declare const
|
|
114
|
+
export declare const ArrowheadCircleIcon: React.MemoExoticComponent<({ flip }: {
|
|
115
|
+
flip?: boolean | undefined;
|
|
116
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
117
|
+
export declare const ArrowheadCircleOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
115
118
|
flip?: boolean | undefined;
|
|
116
119
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
117
120
|
export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
|
|
@@ -120,6 +123,15 @@ export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
|
|
|
120
123
|
export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
|
|
121
124
|
flip?: boolean | undefined;
|
|
122
125
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
126
|
+
export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
127
|
+
flip?: boolean | undefined;
|
|
128
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
129
|
+
export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
|
|
130
|
+
flip?: boolean | undefined;
|
|
131
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
132
|
+
export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
133
|
+
flip?: boolean | undefined;
|
|
134
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
123
135
|
export declare const FontSizeSmallIcon: import("react/jsx-runtime").JSX.Element;
|
|
124
136
|
export declare const FontSizeMediumIcon: import("react/jsx-runtime").JSX.Element;
|
|
125
137
|
export declare const FontSizeLargeIcon: import("react/jsx-runtime").JSX.Element;
|
package/types/constants.d.ts
CHANGED
|
@@ -92,11 +92,12 @@ export declare const actionLink: {
|
|
|
92
92
|
openDialog: {
|
|
93
93
|
name: "imageExport" | "help" | "jsonExport";
|
|
94
94
|
} | {
|
|
95
|
-
name: "
|
|
96
|
-
source: "
|
|
95
|
+
name: "settings";
|
|
96
|
+
source: "settings" | "tool" | "generation";
|
|
97
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
97
98
|
} | {
|
|
98
99
|
name: "ttd";
|
|
99
|
-
tab:
|
|
100
|
+
tab: "mermaid" | "text-to-diagram";
|
|
100
101
|
} | null;
|
|
101
102
|
defaultSidebarDockedPreference: boolean;
|
|
102
103
|
lastPointerDownWith: import("./types").PointerType;
|
|
@@ -32,6 +32,10 @@ export declare const getDiamondPoints: (element: ExcalidrawElement) => number[];
|
|
|
32
32
|
export declare const getCurvePathOps: (shape: Drawable) => Op[];
|
|
33
33
|
export declare const getMinMaxXYFromCurvePathOps: (ops: Op[], transformXY?: ((x: number, y: number) => [number, number]) | undefined) => Bounds;
|
|
34
34
|
export declare const getBoundsFromPoints: (points: ExcalidrawFreeDrawElement["points"]) => Bounds;
|
|
35
|
+
/** @returns number in pixels */
|
|
36
|
+
export declare const getArrowheadSize: (arrowhead: Arrowhead) => number;
|
|
37
|
+
/** @returns number in degrees */
|
|
38
|
+
export declare const getArrowheadAngle: (arrowhead: Arrowhead) => number;
|
|
35
39
|
export declare const getArrowheadPoints: (element: ExcalidrawLinearElement, shape: Drawable[], position: "start" | "end", arrowhead: Arrowhead) => number[] | null;
|
|
36
40
|
export declare const getElementBounds: (element: ExcalidrawElement) => Bounds;
|
|
37
41
|
export declare const getCommonBounds: (elements: readonly ExcalidrawElement[]) => Bounds;
|
|
@@ -85,11 +85,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
85
85
|
openDialog: {
|
|
86
86
|
name: "imageExport" | "help" | "jsonExport";
|
|
87
87
|
} | {
|
|
88
|
-
name: "
|
|
89
|
-
source: "
|
|
88
|
+
name: "settings";
|
|
89
|
+
source: "settings" | "tool" | "generation";
|
|
90
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
90
91
|
} | {
|
|
91
92
|
name: "ttd";
|
|
92
|
-
tab:
|
|
93
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
94
|
} | null;
|
|
94
95
|
defaultSidebarDockedPreference: boolean;
|
|
95
96
|
lastPointerDownWith: import("./types").PointerType;
|