Skip to content

Instantly share code, notes, and snippets.

@tswistak
Created June 12, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tswistak/a1da7cfed308c5339bcd007a264d4622 to your computer and use it in GitHub Desktop.
Save tswistak/a1da7cfed308c5339bcd007a264d4622 to your computer and use it in GitHub Desktop.
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