Skip to content

Instantly share code, notes, and snippets.

@tswistak

tswistak/diagram.js

Created Jun 12, 2018
Embed
What would you like to do?
GoJS tutorial part 2, listing 3
diagram.model = $(go.GraphLinksModel, {
linkFromPortIdProperty: 'fromPort',
linkToPortIdProperty: 'toPort',
nodeDataArray: [
// ...
],
linkDataArray: [
{from: 1, to: 2, toPort: 'entry'},
{from: 2, to: 3, fromPort: 'exit', toPort: 'entry'},
{from: 1, to: 3, toPort: 'entry'},
{from: 3, to: 4, fromPort: 'exit'}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.