How to change svg image color on gojs

hi walter sir,
i have no idea in gojs.
can you tell me how can i change svg image color in gojs?


If you are rendering the SVG by using a Picture, then that is not possible. The SVG is treated just like an image – as an atomic blob.

so node.findObject("") get(store) the rendered images? what if i pass svg in json?

Panel.findObject only works on the visual tree of GraphObjects in the node or link. One cannot embed HTML/SVG DOM in the GoJS visual tree, other than having a Picture rendering SVG.

So you would need to rewrite the SVG as GraphObjects. The Tiger sample does this, but that technique has to be adapted for each kind of SVG that you might read.