I am using multiple node templates in my diagram. Is there a way to convert node templates and link template to JSON? The model to json function does not incluse these. Thanks
No, there isn’t such a capability. Templates consist of complicated collections of arbitrarily complicated objects including instances of GraphObjects, and no GraphObject class is serializable, even if the functions and the references they use were somehow serializable.
What situation do you have where you would want to consider it?
Thanks for the quick reply. I was implementing a save diagram functionality. But I can just recreate the templates from the node info. I was just wondering if I could save template info as well.