Skip to content

Instantly share code, notes, and snippets.

@tswistak
Last active June 13, 2018 12:28
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/5e77b0b84cf45dd132fa213cdce305d4 to your computer and use it in GitHub Desktop.
Save tswistak/5e77b0b84cf45dd132fa213cdce305d4 to your computer and use it in GitHub Desktop.
GoJS tutorial part 2, listing 2
$(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