react-d3-tree icon indicating copy to clipboard operation
react-d3-tree copied to clipboard

Add mulitple svg in nodeSvgShape

Open kamira opened this issue 5 years ago • 0 comments

[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 },
        }],
 }

kamira avatar Mar 26 '20 05:03 kamira