Whether gojs have extensible API for enhancing gojs function?
such as, by default go.Model has fromJson method, but i want to add a custom method: from MongoDB.
myDiagram.model = go.Model.fromJson(document.getElementById("…)
Whether gojs have extensible API for enhancing gojs function?
such as, by default go.Model has fromJson method, but i want to add a custom method: from MongoDB.
myDiagram.model = go.Model.fromJson(document.getElementById("…)
Many parts of our API are extendable, you can read about that here: Extending GoJS -- Northwoods Software
But in this case, you don’t need to extend GoJS, all you need to do is get your data from MongoDB and transform it into either JSON or a JavaScript object format. Then you either use model.fromJSON
or set the model.nodeDataArray
and model.linkDataArray
.