Closed jpdaut closed 5 years ago
Yes for sure! You just write callback for the rendering of the nodes (using the nodeRenderer
callback) then your nodes can be anything written in html, like a div containing an image and text.
Great. Can you direct me to a model on how to make the callback? That would be very appreciated, thank you.
Yes, I've updated the official JSFiddle to use the nodeRenderer callback. It just sets it to the default value but you can change it to include tags for images etc. Basically you can use any valid HTML for foreign objects in SVG.
Fantastic. This works great! Thank you
Instead of text, can nodes be images? Or, can nodes embed image and text?