Skip to content

Instantly share code, notes, and snippets.

@tswistak
Created June 4, 2018 09:51
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/b7b885a335be3a97dbf886970c680723 to your computer and use it in GitHub Desktop.
Save tswistak/b7b885a335be3a97dbf886970c680723 to your computer and use it in GitHub Desktop.
GoJS tutorial part 1, listing 6
diagram.nodeTemplate = $(go.Node,
'Vertical',
$(go.Shape,
'Rectangle', {
width: 50,
height: 50,
strokeWidth: 0,
fill: 'yellow',
}),
$(go.Shape,
'Rectangle', {
width: 100,
height: 50,
strokeWidth: 5,
stroke: 'red',
fill: 'green'
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment