Based on the sample about the ports (GoJS Ports in Nodes-- Northwoods Software), there are a few weird things:
- using
$
to create GraphLinksModel does not sound correct. Since $ is a shorthand for GraphObject.make and since Model does not seem to extend the GraphObject - The instantiation is done with an object, whereas the documentation for the GraphLinksModel’s constructor mentions only passing 2 arguments: nodeDataArray and linkDataArray
So, how can I, correctly, set the ports while instantiating the model?