Skip to content

Instantly share code, notes, and snippets.

@tswistak
Created June 12, 2018 09:06
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/a3d551088a9f5e4cdb32017f127ed771 to your computer and use it in GitHub Desktop.
Save tswistak/a3d551088a9f5e4cdb32017f127ed771 to your computer and use it in GitHub Desktop.
GoJS tutorial part 2, listing 1
$(go.Node, 'Auto',
$(go.Shape,
'Circle', {
width: 100,
height: 100,
fill: 'white'
}),
$(go.Shape,
'Rectangle', {
portId: '',
width: 20,
height: 20,
fill: 'black',
fromLinkable: true,
toLinkable: true
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment