hi walter sir,
i have no idea in gojs.
can you tell me how can i change svg image color in gojs?
using
node.findObject(“SVG_PUMP1”)
hi walter sir,
i have no idea in gojs.
can you tell me how can i change svg image color in gojs?
using
node.findObject(“SVG_PUMP1”)
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.
http://gojs.net/latest/intro/pictures.html#UsingSVGAsPictureSource
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.