Skip to content

Instantly share code, notes, and snippets.

@tswistak

tswistak/diagram.js

Last active Jun 13, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.