Мне нужно определить стиль связи между каждым узлом по-разному. Теперь мои тредаты определены так, как показано ниже, в то время как стиль ссылок не работает. Может ли кто-нибудь помочь в этом?
const myTreeData = [
{
name: 'Top Level',
nodeSvgShape: {
shape: 'circle',
shapeProps:{r:30,fill:"red"}
},
Styles:{
links: {
fill:"none",
stroke: "#000",
strokeWidth: "2px",
strokeDasharray:"2,2"
},
}
children: [
{
name: 'Level 2: A',
nodeSvgShape: {
shape: 'circle',
shapeProps:{r:30,fill:”green”}
},
Styles:{
links: {
fill:"none",
stroke: "#222",
strokeWidth: "2px",
strokeDasharray:"2,2"
},
}
},
{
name: 'Level 2: B',
nodeSvgShape: {
shape: 'circle',
shapeProps:{r:30,fill:”yellowfins”}
},
Styles:{
links: {
fill:"none",
stroke: "#000",
strokeWidth: "2px",
strokeDasharray:"2,2"
},
}
},
],
},
];
nodeSvgShape работает так, что каждый узел показывает определенный цвет, но стили ссылок не работают.