How can I set the foreground color of an SVG element used as a node in cytoscape.js?
I'm familiar with setting id's for SVG path elements in the DOM and then using CSS to style them. Is something similar possible?
What I was really looking for is a way to have scalable SVG node icons that can be colored dynamically to indicate app-defined status of the node. I didn't want to statically create all the possible colored variants ahead of time. In the end, I used svg.js to dynamically apply styles to SVG icons that are used for nodes (actually for node backgrounds), then convert it to base64 for the data url to pass to cytoscape.js as the background svg.