vis-network icon indicating copy to clipboard operation
vis-network copied to clipboard

Font awesome as icons inside a shape (circularImage)

Open zigmok opened this issue 4 years ago • 2 comments

Is there any way to mix them both (shapes and icons)? Basically I have managed to use images of fontawesome with circularImage, but gets too slow when using multiple nodes. Is there any way to have the same effect as with circularImage but adding the icon instead of the image? Maybe with ctxRenderer? Regards!

zigmok avatar Jun 03 '21 15:06 zigmok

Yes, you can. Check icon square : https://visjs.github.io/vis-network/examples/network/nodeStyles/shapes.html

neo6053 avatar Jun 07 '21 15:06 neo6053

You can, how ever in my case, vis uses the regular font by default which is not available for all Font Awesome icons. So some icons are working combined with a shape and some are not. I was not able to resolve this for now, but have descried the issue in detail in this comment: https://github.com/visjs/vis-network/issues/1967#issuecomment-2379657020

This is also broken on the vis demo @neo6053 mentioned grafik

nook24 avatar Sep 27 '24 16:09 nook24