Last active
June 13, 2018 12:28
-
-
Save tswistak/5e77b0b84cf45dd132fa213cdce305d4 to your computer and use it in GitHub Desktop.
GoJS tutorial part 2, listing 2
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
$(go.Node, | |
'Spot', | |
$(go.Shape, { | |
// ... | |
}), | |
$(go.Shape, | |
'Rectangle', { | |
portId: 'entry', | |
width: 20, | |
height: 20, | |
fill: 'black', | |
alignment: go.Spot.Left, | |
fromLinkable: false, | |
toLinkable: true | |
}), | |
$(go.Shape, | |
'Rectangle', { | |
portId: 'exit', | |
width: 20, | |
height: 20, | |
fill: 'black', | |
alignment: go.Spot.Right, | |
fromLinkable: true, | |
toLinkable: false | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment