visjs / vis-network

:dizzy: Display dynamic, automatically organised, customizable network views.
https://visjs.github.io/vis-network/
Apache License 2.0
3.09k stars 374 forks source link

Font awesome as icons inside a shape (circularImage) #1508

Open zigmok opened 3 years ago

zigmok commented 3 years ago

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!

neo6053 commented 3 years ago

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

nook24 commented 2 months ago

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