Created
June 12, 2018 09:07
-
-
Save tswistak/a1da7cfed308c5339bcd007a264d4622 to your computer and use it in GitHub Desktop.
GoJS tutorial part 2, listing 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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