@jsobell wrote:
Hi,
I've got a nice working chart based on the http://gojs.net/latest/samples/adornmentButtons.html demonstration, but of course as the number of outgoing links increases they eventually run out of space and the link labels begin to overlap.
I'd like to increase the minSize to ensure it has x*(links on that side), but I can't see how I would know which points are locked to each direction. Is there an easy way to identify this?
Here's how I set the size in code, but I'll obviously have to take the max of LEFT/RIGHT and max TOP/BOTTOM link points:
new go.Binding("minSize", "", (v:go.Node, obj) => {
let cnt = v.findLinksOutOf().count;
return new go.Size(150, 40+(cnt*20));
}).ofObject(),
Posts: 2
Participants: 2