I have created palette data as defined below. It is my understanding that links should be defined using Point. But it is unpractical because i have to take into account the other items in the palette such as nodes. In the end, links will never have the right positioning as we add more nodes in the palette (see screenshot).
So is there a way to stack automatically nodes and links in the palette ? It is working fine with nodes, but not for links obviously.
public paletteNodeData: Array<go.ObjectData> = [
{ key: 'PaletteDecisionNode', color: 'firebrick', figure: 'Diamond', label: 'Decision' },
{ key: 'PaletteTaskNode', color: 'blueviolet', figure: 'RoundedRectangle', label: 'Task' },
{ key: 'PaletteProcessNode', color: 'yellow', figure: 'Procedure', label: 'Process' }
];
public paletteLinkData: Array<go.ObjectData> = [
{ points: new go.List(/*go.Point*/).addAll([new go.Point(0, 100), new go.Point(30, 100), new go.Point(30, 140), new go.Point(60, 140)]) }
];