react-cytoscapejs icon indicating copy to clipboard operation
react-cytoscapejs copied to clipboard

How to use custom svg

Open knightswatch3 opened this issue 4 years ago • 3 comments

I am new to the react-cytoscape. Can someone please point me on how to use custom svgs for my diagrams.

TIA

knightswatch3 avatar Apr 12 '21 18:04 knightswatch3

Hi gays, I have the same problem. I went to know how to define a complex node like this. image

coder-xiaotian avatar Jun 03 '21 08:06 coder-xiaotian

@SatishChandraPalakoti @775146061 I'm using SVG in my project, usually I set the SVG by CSS. About a complex layout, you can do the same, created a CSS to style it and set the text using label, I think it will work.

{ selector: ".userBox", style: { "background-image": userBoxImage } }

tiago1994 avatar Nov 16 '21 17:11 tiago1994

@SatishChandraPalakoti @775146061 I'm using SVG in my project, usually I set the SVG by CSS. About a complex layout, you can do the same, created a CSS to style it and set the text using label, I think it will work.

{ selector: ".userBox", style: { "background-image": userBoxImage } }

Thank you!

coder-xiaotian avatar Jan 12 '22 07:01 coder-xiaotian