Sigma.js - Adding node borders and other styling tips

Viewed 33

I've just started using Sigma.js/Graphology to draw node trees. I haven't found any good Sigma.js documentation, so all I've learnt is from examples. So, among other things, I'd like to add a border to certain nodes, but this doesn't seem to be something I can do out of the box...or? From what I can tell, you have to stick with a solid colored circle. There's a plugin called Custom Shapes, which allows for even images to be shown, but this sets the renderer to "canvas", which I suppose I should avoid if I want performance, or? There's and example of usage where you have shapes inside nodes and also nodes drawn as a "hollow" circle here:

https://codesandbox.io/s/github/jacomyal/sigma.js/tree/main/examples/custom-rendering?file=/index.ts

In this example you include custom shaders, and a whole lot of code I don't understand since I've never worked with this tech.

Are there simpler ways of getting some customizable rendering of the nodes? Am I barking up the wrong tree?

0 Answers
Related