react-d3-tree
react-d3-tree copied to clipboard
Add mulitple svg in nodeSvgShape
[Question] Is there a way to add multiple svg shape in one nodeSvgShape?
This can help some people to use multiple layer in one node.
Maybe nodeSvgShape structure can be this?
{
name: "Node1",
nodeSvgShape: [{
shape: 'circle',
shapeProps: {
r: 30,
x: -30,
y: -30,
},
},{
shape: 'image',
shapeProps: {
href: 'https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg' ,
x: -20,
y: -20,
width: 40,
height: 40 },
}],
}