@next-bricks/diagram 0.10.1 → 0.12.0
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/bricks.json +1 -1
- package/dist/chunks/1646.3940b90e.js +2 -0
- package/dist/chunks/{1646.6589b358.js.map → 1646.3940b90e.js.map} +1 -1
- package/dist/chunks/2955.b8369365.js +2 -0
- package/dist/chunks/2955.b8369365.js.map +1 -0
- package/dist/chunks/4504.e79a9a02.js +2 -0
- package/dist/chunks/4504.e79a9a02.js.map +1 -0
- package/dist/chunks/5381.a7719099.js +2 -0
- package/dist/chunks/{5381.8f21ae30.js.map → 5381.a7719099.js.map} +1 -1
- package/dist/chunks/{6205.414655fa.js → 6205.db76d647.js} +2 -2
- package/dist/chunks/{6205.414655fa.js.map → 6205.db76d647.js.map} +1 -1
- package/dist/chunks/6466.1f0e21e9.js +3 -0
- package/dist/chunks/6466.1f0e21e9.js.map +1 -0
- package/dist/chunks/6660.1d744653.js +2 -0
- package/dist/chunks/{6660.d75fdf74.js.map → 6660.1d744653.js.map} +1 -1
- package/dist/chunks/7067.f7da2b9f.js +2 -0
- package/dist/chunks/{7067.19be203a.js.map → 7067.f7da2b9f.js.map} +1 -1
- package/dist/chunks/{7164.6d67a26b.js → 7164.4b1dfdec.js} +2 -2
- package/dist/chunks/{7164.6d67a26b.js.map → 7164.4b1dfdec.js.map} +1 -1
- package/dist/chunks/9393.ed447ad9.js +2 -0
- package/dist/chunks/9393.ed447ad9.js.map +1 -0
- package/dist/chunks/9549.30b919fd.js +2 -0
- package/dist/chunks/{9549.09d4fb2e.js.map → 9549.30b919fd.js.map} +1 -1
- package/dist/chunks/{editable-label.4f364423.js → editable-label.fbee4c3a.js} +3 -3
- package/dist/chunks/{editable-label.4f364423.js.map → editable-label.fbee4c3a.js.map} +1 -1
- package/dist/chunks/eo-diagram.2229623d.js +2 -0
- package/dist/chunks/eo-diagram.2229623d.js.map +1 -0
- package/dist/chunks/main.50ac3866.js +2 -0
- package/dist/chunks/{main.bbea6758.js.map → main.50ac3866.js.map} +1 -1
- package/dist/examples.json +1 -1
- package/dist/index.fd427dff.js +2 -0
- package/dist/{index.aae74ff4.js.map → index.fd427dff.js.map} +1 -1
- package/dist/manifest.json +0 -7
- package/dist/types.json +448 -53
- package/dist-types/diagram/LineComponent.d.ts +6 -5
- package/dist-types/diagram/LineMaskComponent.d.ts +9 -0
- package/dist-types/diagram/MarkerComponent.d.ts +6 -2
- package/dist-types/diagram/MarkerComponent.spec.d.ts +1 -0
- package/dist-types/diagram/index.d.ts +1 -5
- package/dist-types/diagram/interfaces.d.ts +46 -24
- package/dist-types/diagram/lines/curveLine.d.ts +1 -1
- package/dist-types/diagram/lines/getPolyLinePoints.d.ts +2 -0
- package/dist-types/diagram/lines/getPolyLinePoints.spec.d.ts +1 -0
- package/dist-types/diagram/processors/doTwoNodesOverlap.d.ts +2 -0
- package/dist-types/diagram/processors/doTwoNodesOverlap.spec.d.ts +1 -0
- package/dist-types/diagram/processors/getLineMaskRects.d.ts +2 -0
- package/dist-types/diagram/processors/getRenderedEdges.d.ts +3 -9
- package/dist-types/diagram/processors/getRenderedLines.d.ts +2 -2
- package/dist-types/diagram/processors/handleKeyboard.d.ts +2 -3
- package/dist-types/diagram/processors/sameTarget.d.ts +2 -0
- package/dist-types/diagram/processors/sameTarget.spec.d.ts +1 -0
- package/docs/eo-diagram.md +22 -72
- package/package.json +3 -3
- package/dist/chunks/1646.6589b358.js +0 -2
- package/dist/chunks/266.7e221e82.js +0 -3
- package/dist/chunks/266.7e221e82.js.map +0 -1
- package/dist/chunks/4180.e1bb97aa.js +0 -2
- package/dist/chunks/4180.e1bb97aa.js.map +0 -1
- package/dist/chunks/4504.996b5ffa.js +0 -2
- package/dist/chunks/4504.996b5ffa.js.map +0 -1
- package/dist/chunks/5381.8f21ae30.js +0 -2
- package/dist/chunks/6660.d75fdf74.js +0 -2
- package/dist/chunks/7067.19be203a.js +0 -2
- package/dist/chunks/9393.760bb836.js +0 -2
- package/dist/chunks/9393.760bb836.js.map +0 -1
- package/dist/chunks/9549.09d4fb2e.js +0 -2
- package/dist/chunks/eo-diagram.8f82fc1b.js +0 -2
- package/dist/chunks/eo-diagram.8f82fc1b.js.map +0 -1
- package/dist/chunks/main.bbea6758.js +0 -2
- package/dist/index.aae74ff4.js +0 -2
- package/dist-types/diagram/ClipPathComponent.d.ts +0 -8
- package/dist-types/diagram/processors/getClipPathList.d.ts +0 -2
- /package/dist/chunks/{266.7e221e82.js.LICENSE.txt → 6466.1f0e21e9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{editable-label.4f364423.js.LICENSE.txt → editable-label.fbee4c3a.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -182,16 +182,6 @@
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
|
-
{
|
|
186
|
-
"name": "nodesConnect",
|
|
187
|
-
"annotation": {
|
|
188
|
-
"type": "reference",
|
|
189
|
-
"typeName": {
|
|
190
|
-
"type": "identifier",
|
|
191
|
-
"name": "ConnectNodesOptions"
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
185
|
{
|
|
196
186
|
"name": "dragNodes",
|
|
197
187
|
"annotation": {
|
|
@@ -612,34 +602,11 @@
|
|
|
612
602
|
"name": "type"
|
|
613
603
|
},
|
|
614
604
|
"annotation": {
|
|
615
|
-
"type": "
|
|
616
|
-
"
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"type": "propertySignature",
|
|
623
|
-
"key": {
|
|
624
|
-
"type": "identifier",
|
|
625
|
-
"name": "strokeColor"
|
|
626
|
-
},
|
|
627
|
-
"annotation": {
|
|
628
|
-
"type": "keyword",
|
|
629
|
-
"value": "string"
|
|
630
|
-
},
|
|
631
|
-
"optional": true,
|
|
632
|
-
"computed": false
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
"type": "propertySignature",
|
|
636
|
-
"key": {
|
|
637
|
-
"type": "identifier",
|
|
638
|
-
"name": "strokeWidth"
|
|
639
|
-
},
|
|
640
|
-
"annotation": {
|
|
641
|
-
"type": "keyword",
|
|
642
|
-
"value": "number"
|
|
605
|
+
"type": "reference",
|
|
606
|
+
"typeName": {
|
|
607
|
+
"type": "identifier",
|
|
608
|
+
"name": "LineType"
|
|
609
|
+
}
|
|
643
610
|
},
|
|
644
611
|
"optional": true,
|
|
645
612
|
"computed": false
|
|
@@ -657,19 +624,6 @@
|
|
|
657
624
|
"optional": true,
|
|
658
625
|
"computed": false
|
|
659
626
|
},
|
|
660
|
-
{
|
|
661
|
-
"type": "propertySignature",
|
|
662
|
-
"key": {
|
|
663
|
-
"type": "identifier",
|
|
664
|
-
"name": "interactStrokeWidth"
|
|
665
|
-
},
|
|
666
|
-
"annotation": {
|
|
667
|
-
"type": "keyword",
|
|
668
|
-
"value": "number"
|
|
669
|
-
},
|
|
670
|
-
"optional": true,
|
|
671
|
-
"computed": false
|
|
672
|
-
},
|
|
673
627
|
{
|
|
674
628
|
"type": "propertySignature",
|
|
675
629
|
"key": {
|
|
@@ -677,8 +631,11 @@
|
|
|
677
631
|
"name": "curveType"
|
|
678
632
|
},
|
|
679
633
|
"annotation": {
|
|
680
|
-
"type": "
|
|
681
|
-
"
|
|
634
|
+
"type": "reference",
|
|
635
|
+
"typeName": {
|
|
636
|
+
"type": "identifier",
|
|
637
|
+
"name": "CurveType"
|
|
638
|
+
}
|
|
682
639
|
},
|
|
683
640
|
"optional": true,
|
|
684
641
|
"computed": false
|
|
@@ -787,9 +744,86 @@
|
|
|
787
744
|
},
|
|
788
745
|
"optional": true,
|
|
789
746
|
"computed": false
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"type": "propertySignature",
|
|
750
|
+
"key": {
|
|
751
|
+
"type": "identifier",
|
|
752
|
+
"name": "overrides"
|
|
753
|
+
},
|
|
754
|
+
"annotation": {
|
|
755
|
+
"type": "reference",
|
|
756
|
+
"typeName": {
|
|
757
|
+
"type": "identifier",
|
|
758
|
+
"name": "LineConfOverrides"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"optional": true,
|
|
762
|
+
"computed": false
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"type": "propertySignature",
|
|
766
|
+
"key": {
|
|
767
|
+
"type": "identifier",
|
|
768
|
+
"name": "markers"
|
|
769
|
+
},
|
|
770
|
+
"annotation": {
|
|
771
|
+
"type": "array",
|
|
772
|
+
"elementType": {
|
|
773
|
+
"type": "reference",
|
|
774
|
+
"typeName": {
|
|
775
|
+
"type": "identifier",
|
|
776
|
+
"name": "LineMarkerConf"
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"optional": true,
|
|
781
|
+
"computed": false
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
"extends": [
|
|
785
|
+
{
|
|
786
|
+
"type": "expressionWithTypeArguments",
|
|
787
|
+
"expression": {
|
|
788
|
+
"type": "identifier",
|
|
789
|
+
"name": "LineConfOverridable"
|
|
790
|
+
}
|
|
790
791
|
}
|
|
791
792
|
]
|
|
792
793
|
},
|
|
794
|
+
{
|
|
795
|
+
"type": "typeAlias",
|
|
796
|
+
"name": "LineType",
|
|
797
|
+
"annotation": {
|
|
798
|
+
"type": "union",
|
|
799
|
+
"types": [
|
|
800
|
+
{
|
|
801
|
+
"type": "jsLiteral",
|
|
802
|
+
"value": "auto"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"type": "jsLiteral",
|
|
806
|
+
"value": "curve"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"type": "jsLiteral",
|
|
810
|
+
"value": "straight"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"type": "jsLiteral",
|
|
814
|
+
"value": "polyline"
|
|
815
|
+
}
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"type": "typeAlias",
|
|
821
|
+
"name": "CurveType",
|
|
822
|
+
"annotation": {
|
|
823
|
+
"type": "unsupported",
|
|
824
|
+
"source": "`curve${string}`"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
793
827
|
{
|
|
794
828
|
"type": "interface",
|
|
795
829
|
"name": "TextOptions",
|
|
@@ -924,6 +958,165 @@
|
|
|
924
958
|
}
|
|
925
959
|
]
|
|
926
960
|
},
|
|
961
|
+
{
|
|
962
|
+
"type": "interface",
|
|
963
|
+
"name": "LineConfOverrides",
|
|
964
|
+
"body": [
|
|
965
|
+
{
|
|
966
|
+
"type": "propertySignature",
|
|
967
|
+
"key": {
|
|
968
|
+
"type": "identifier",
|
|
969
|
+
"name": "active"
|
|
970
|
+
},
|
|
971
|
+
"annotation": {
|
|
972
|
+
"type": "reference",
|
|
973
|
+
"typeName": {
|
|
974
|
+
"type": "identifier",
|
|
975
|
+
"name": "LineConfOverridable"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
"optional": true,
|
|
979
|
+
"computed": false
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"type": "propertySignature",
|
|
983
|
+
"key": {
|
|
984
|
+
"type": "identifier",
|
|
985
|
+
"name": "activeRelated"
|
|
986
|
+
},
|
|
987
|
+
"annotation": {
|
|
988
|
+
"type": "reference",
|
|
989
|
+
"typeName": {
|
|
990
|
+
"type": "identifier",
|
|
991
|
+
"name": "LineConfOverridable"
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
"optional": true,
|
|
995
|
+
"computed": false
|
|
996
|
+
}
|
|
997
|
+
]
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"type": "interface",
|
|
1001
|
+
"name": "LineConfOverridable",
|
|
1002
|
+
"body": [
|
|
1003
|
+
{
|
|
1004
|
+
"type": "propertySignature",
|
|
1005
|
+
"key": {
|
|
1006
|
+
"type": "identifier",
|
|
1007
|
+
"name": "strokeColor"
|
|
1008
|
+
},
|
|
1009
|
+
"annotation": {
|
|
1010
|
+
"type": "keyword",
|
|
1011
|
+
"value": "string"
|
|
1012
|
+
},
|
|
1013
|
+
"optional": true,
|
|
1014
|
+
"computed": false
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"type": "propertySignature",
|
|
1018
|
+
"key": {
|
|
1019
|
+
"type": "identifier",
|
|
1020
|
+
"name": "strokeWidth"
|
|
1021
|
+
},
|
|
1022
|
+
"annotation": {
|
|
1023
|
+
"type": "keyword",
|
|
1024
|
+
"value": "number"
|
|
1025
|
+
},
|
|
1026
|
+
"optional": true,
|
|
1027
|
+
"computed": false
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"type": "propertySignature",
|
|
1031
|
+
"key": {
|
|
1032
|
+
"type": "identifier",
|
|
1033
|
+
"name": "interactStrokeWidth"
|
|
1034
|
+
},
|
|
1035
|
+
"annotation": {
|
|
1036
|
+
"type": "keyword",
|
|
1037
|
+
"value": "number"
|
|
1038
|
+
},
|
|
1039
|
+
"optional": true,
|
|
1040
|
+
"computed": false
|
|
1041
|
+
}
|
|
1042
|
+
]
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"type": "interface",
|
|
1046
|
+
"name": "LineMarkerConf",
|
|
1047
|
+
"body": [
|
|
1048
|
+
{
|
|
1049
|
+
"type": "propertySignature",
|
|
1050
|
+
"key": {
|
|
1051
|
+
"type": "identifier",
|
|
1052
|
+
"name": "placement"
|
|
1053
|
+
},
|
|
1054
|
+
"annotation": {
|
|
1055
|
+
"type": "reference",
|
|
1056
|
+
"typeName": {
|
|
1057
|
+
"type": "identifier",
|
|
1058
|
+
"name": "LineMarkerPlacement"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"optional": true,
|
|
1062
|
+
"computed": false
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"type": "propertySignature",
|
|
1066
|
+
"key": {
|
|
1067
|
+
"type": "identifier",
|
|
1068
|
+
"name": "type"
|
|
1069
|
+
},
|
|
1070
|
+
"annotation": {
|
|
1071
|
+
"type": "reference",
|
|
1072
|
+
"typeName": {
|
|
1073
|
+
"type": "identifier",
|
|
1074
|
+
"name": "LineMarkerType"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"optional": true,
|
|
1078
|
+
"computed": false
|
|
1079
|
+
}
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"type": "typeAlias",
|
|
1084
|
+
"name": "LineMarkerPlacement",
|
|
1085
|
+
"annotation": {
|
|
1086
|
+
"type": "union",
|
|
1087
|
+
"types": [
|
|
1088
|
+
{
|
|
1089
|
+
"type": "jsLiteral",
|
|
1090
|
+
"value": "start"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"type": "jsLiteral",
|
|
1094
|
+
"value": "end"
|
|
1095
|
+
}
|
|
1096
|
+
]
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"type": "typeAlias",
|
|
1101
|
+
"name": "LineMarkerType",
|
|
1102
|
+
"annotation": {
|
|
1103
|
+
"type": "union",
|
|
1104
|
+
"types": [
|
|
1105
|
+
{
|
|
1106
|
+
"type": "jsLiteral",
|
|
1107
|
+
"value": "arrow"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"type": "jsLiteral",
|
|
1111
|
+
"value": "0..1"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"type": "jsLiteral",
|
|
1115
|
+
"value": "0..N"
|
|
1116
|
+
}
|
|
1117
|
+
]
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
927
1120
|
{
|
|
928
1121
|
"type": "typeAlias",
|
|
929
1122
|
"name": "LayoutOptions",
|
|
@@ -1061,6 +1254,151 @@
|
|
|
1061
1254
|
}
|
|
1062
1255
|
]
|
|
1063
1256
|
},
|
|
1257
|
+
{
|
|
1258
|
+
"type": "interface",
|
|
1259
|
+
"name": "BaseLayoutOptions",
|
|
1260
|
+
"body": [
|
|
1261
|
+
{
|
|
1262
|
+
"type": "propertySignature",
|
|
1263
|
+
"key": {
|
|
1264
|
+
"type": "identifier",
|
|
1265
|
+
"name": "nodePadding"
|
|
1266
|
+
},
|
|
1267
|
+
"annotation": {
|
|
1268
|
+
"type": "reference",
|
|
1269
|
+
"typeName": {
|
|
1270
|
+
"type": "identifier",
|
|
1271
|
+
"name": "PartialRectTuple"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
"optional": true,
|
|
1275
|
+
"computed": false
|
|
1276
|
+
}
|
|
1277
|
+
]
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"type": "typeAlias",
|
|
1281
|
+
"name": "PartialRectTuple",
|
|
1282
|
+
"annotation": {
|
|
1283
|
+
"type": "union",
|
|
1284
|
+
"types": [
|
|
1285
|
+
{
|
|
1286
|
+
"type": "keyword",
|
|
1287
|
+
"value": "number"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"type": "tuple",
|
|
1291
|
+
"elementTypes": [
|
|
1292
|
+
{
|
|
1293
|
+
"type": "namedTupleMember",
|
|
1294
|
+
"label": "all",
|
|
1295
|
+
"optional": false,
|
|
1296
|
+
"elementType": {
|
|
1297
|
+
"type": "keyword",
|
|
1298
|
+
"value": "number"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
]
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"type": "tuple",
|
|
1305
|
+
"elementTypes": [
|
|
1306
|
+
{
|
|
1307
|
+
"type": "namedTupleMember",
|
|
1308
|
+
"label": "vertical",
|
|
1309
|
+
"optional": false,
|
|
1310
|
+
"elementType": {
|
|
1311
|
+
"type": "keyword",
|
|
1312
|
+
"value": "number"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"type": "namedTupleMember",
|
|
1317
|
+
"label": "horizontal",
|
|
1318
|
+
"optional": false,
|
|
1319
|
+
"elementType": {
|
|
1320
|
+
"type": "keyword",
|
|
1321
|
+
"value": "number"
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"type": "tuple",
|
|
1328
|
+
"elementTypes": [
|
|
1329
|
+
{
|
|
1330
|
+
"type": "namedTupleMember",
|
|
1331
|
+
"label": "top",
|
|
1332
|
+
"optional": false,
|
|
1333
|
+
"elementType": {
|
|
1334
|
+
"type": "keyword",
|
|
1335
|
+
"value": "number"
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"type": "namedTupleMember",
|
|
1340
|
+
"label": "horizontal",
|
|
1341
|
+
"optional": false,
|
|
1342
|
+
"elementType": {
|
|
1343
|
+
"type": "keyword",
|
|
1344
|
+
"value": "number"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"type": "namedTupleMember",
|
|
1349
|
+
"label": "bottom",
|
|
1350
|
+
"optional": false,
|
|
1351
|
+
"elementType": {
|
|
1352
|
+
"type": "keyword",
|
|
1353
|
+
"value": "number"
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
]
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"type": "tuple",
|
|
1360
|
+
"elementTypes": [
|
|
1361
|
+
{
|
|
1362
|
+
"type": "namedTupleMember",
|
|
1363
|
+
"label": "top",
|
|
1364
|
+
"optional": false,
|
|
1365
|
+
"elementType": {
|
|
1366
|
+
"type": "keyword",
|
|
1367
|
+
"value": "number"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"type": "namedTupleMember",
|
|
1372
|
+
"label": "right",
|
|
1373
|
+
"optional": false,
|
|
1374
|
+
"elementType": {
|
|
1375
|
+
"type": "keyword",
|
|
1376
|
+
"value": "number"
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"type": "namedTupleMember",
|
|
1381
|
+
"label": "bottom",
|
|
1382
|
+
"optional": false,
|
|
1383
|
+
"elementType": {
|
|
1384
|
+
"type": "keyword",
|
|
1385
|
+
"value": "number"
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"type": "namedTupleMember",
|
|
1390
|
+
"label": "left",
|
|
1391
|
+
"optional": false,
|
|
1392
|
+
"elementType": {
|
|
1393
|
+
"type": "keyword",
|
|
1394
|
+
"value": "number"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
}
|
|
1399
|
+
]
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1064
1402
|
{
|
|
1065
1403
|
"type": "interface",
|
|
1066
1404
|
"name": "LayoutOptionsForce",
|
|
@@ -1312,6 +1650,63 @@
|
|
|
1312
1650
|
}
|
|
1313
1651
|
]
|
|
1314
1652
|
},
|
|
1653
|
+
{
|
|
1654
|
+
"type": "interface",
|
|
1655
|
+
"name": "NodesFilterOptions",
|
|
1656
|
+
"body": [
|
|
1657
|
+
{
|
|
1658
|
+
"type": "propertySignature",
|
|
1659
|
+
"key": {
|
|
1660
|
+
"type": "identifier",
|
|
1661
|
+
"name": "sourceType"
|
|
1662
|
+
},
|
|
1663
|
+
"annotation": {
|
|
1664
|
+
"type": "union",
|
|
1665
|
+
"types": [
|
|
1666
|
+
{
|
|
1667
|
+
"type": "keyword",
|
|
1668
|
+
"value": "string"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"type": "array",
|
|
1672
|
+
"elementType": {
|
|
1673
|
+
"type": "keyword",
|
|
1674
|
+
"value": "string"
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
]
|
|
1678
|
+
},
|
|
1679
|
+
"optional": true,
|
|
1680
|
+
"computed": false
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"type": "propertySignature",
|
|
1684
|
+
"key": {
|
|
1685
|
+
"type": "identifier",
|
|
1686
|
+
"name": "if"
|
|
1687
|
+
},
|
|
1688
|
+
"annotation": {
|
|
1689
|
+
"type": "union",
|
|
1690
|
+
"types": [
|
|
1691
|
+
{
|
|
1692
|
+
"type": "keyword",
|
|
1693
|
+
"value": "string"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"type": "keyword",
|
|
1697
|
+
"value": "boolean"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"type": "keyword",
|
|
1701
|
+
"value": "null"
|
|
1702
|
+
}
|
|
1703
|
+
]
|
|
1704
|
+
},
|
|
1705
|
+
"optional": true,
|
|
1706
|
+
"computed": false
|
|
1707
|
+
}
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1315
1710
|
{
|
|
1316
1711
|
"type": "interface",
|
|
1317
1712
|
"name": "DragNodesOptions",
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { LineTarget, RenderedLine, LineMaskRects } from "./interfaces";
|
|
3
3
|
export interface LineComponentProps {
|
|
4
4
|
line: RenderedLine;
|
|
5
5
|
linePaths: Map<string, SVGPathElement | null>;
|
|
6
|
-
|
|
6
|
+
lineMaskRects: LineMaskRects;
|
|
7
|
+
maskPrefix: string;
|
|
7
8
|
markerPrefix: string;
|
|
8
|
-
clipPathPrefix: string;
|
|
9
9
|
activeLineMarkerPrefix: string;
|
|
10
|
-
|
|
10
|
+
active?: boolean;
|
|
11
|
+
activeRelated?: boolean;
|
|
11
12
|
onLineClick?(line: LineTarget): void;
|
|
12
13
|
onLineDoubleClick?(line: LineTarget): void;
|
|
13
14
|
}
|
|
14
|
-
export declare function LineComponent({ line: { line,
|
|
15
|
+
export declare function LineComponent({ line: { line, edge, d, markers }, linePaths, lineMaskRects, maskPrefix, markerPrefix, activeLineMarkerPrefix, active, activeRelated, onLineClick, onLineDoubleClick, }: LineComponentProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { RenderedLineLabel, SimpleRect } from "./interfaces";
|
|
3
|
+
export interface LineMaskComponentProps {
|
|
4
|
+
maskPrefix: string;
|
|
5
|
+
lineId: string;
|
|
6
|
+
rects: SimpleRect[];
|
|
7
|
+
renderedLineLabels: RenderedLineLabel[];
|
|
8
|
+
}
|
|
9
|
+
export declare function LineMaskComponent({ lineId, rects, maskPrefix, renderedLineLabels, }: LineMaskComponentProps): JSX.Element | null;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import type { LineMarkerType } from "./interfaces";
|
|
3
|
+
export interface MarkerComponentProps extends BaseMarkerComponentProps {
|
|
4
|
+
type: LineMarkerType;
|
|
5
|
+
}
|
|
6
|
+
export interface BaseMarkerComponentProps {
|
|
3
7
|
id: string;
|
|
4
8
|
strokeColor?: string;
|
|
5
9
|
}
|
|
6
|
-
export declare function MarkerComponent({ id, strokeColor, }: MarkerComponentProps): JSX.Element;
|
|
10
|
+
export declare function MarkerComponent({ id, type, strokeColor, }: MarkerComponentProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -39,10 +39,6 @@ export declare class EoDiagram extends ReactNextElement implements EoDiagramProp
|
|
|
39
39
|
accessor activeTarget: ActiveTarget | null | undefined;
|
|
40
40
|
accessor disableKeyboardAction: boolean | undefined;
|
|
41
41
|
accessor connectNodes: ConnectNodesOptions | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated use `connectNodes` instead
|
|
44
|
-
*/
|
|
45
|
-
accessor nodesConnect: ConnectNodesOptions | undefined;
|
|
46
42
|
accessor dragNodes: DragNodesOptions | undefined;
|
|
47
43
|
accessor zoomable: boolean | undefined;
|
|
48
44
|
accessor scrollable: boolean | undefined;
|
|
@@ -60,4 +56,4 @@ export interface EoDiagramComponentProps extends EoDiagramProps {
|
|
|
60
56
|
onLineDoubleClick?(line: LineTarget): void;
|
|
61
57
|
onNodesConnect?(detail: ConnectLineDetail): void;
|
|
62
58
|
}
|
|
63
|
-
export declare function LegacyEoDiagramComponent({ layout, nodes, edges, nodeBricks, lines, layoutOptions, connectNodes, dragNodes, activeTarget, disableKeyboardAction, zoomable, scrollable, pannable, scaleRange: _scaleRange, onActiveTargetChange, onSwitchActiveTarget, onNodeDelete, onEdgeDelete, onLineClick, onLineDoubleClick, onNodesConnect, }: EoDiagramComponentProps, ref: React.Ref<DiagramRef>): React.JSX.Element;
|
|
59
|
+
export declare function LegacyEoDiagramComponent({ layout, nodes, edges, nodeBricks, lines, layoutOptions, connectNodes, dragNodes, activeTarget: _activeTarget, disableKeyboardAction, zoomable, scrollable, pannable, scaleRange: _scaleRange, onActiveTargetChange, onSwitchActiveTarget, onNodeDelete, onEdgeDelete, onLineClick, onLineDoubleClick, onNodesConnect, }: EoDiagramComponentProps, ref: React.Ref<DiagramRef>): React.JSX.Element;
|