feat: 增加根据选中节点功能

This commit is contained in:
黎智洲
2021-09-09 23:22:11 +08:00
parent e155269533
commit 9f98b0abde
5 changed files with 67 additions and 18 deletions
+14 -1
View File
@@ -106,7 +106,20 @@ SV.registerLayouter('GeneralizedList', {
},
link: {
loopSub: {},
loopNext: {},
loopNext: {
type: 'quadratic',
curveOffset: -50,
sourceAnchor: 2,
targetAnchor: 4,
style: {
stroke: '#333',
endArrow: 'default',
startArrow: {
path: G6.Arrow.circle(2, -1),
fill: '#333'
}
}
},
sub: {
type: 'line',
sourceAnchor: 2,