is there any way to fine hidden objects just like findObjectAt.
var node = myDiagram.findObjectAt(new go.Point(p1, p2)); // ?? this only find visible nodes
is there any way to fine hidden objects just like findObjectAt.
var node = myDiagram.findObjectAt(new go.Point(p1, p2)); // ?? this only find visible nodes
Sorry, but I think not.
is there any way to achieve this?
Actually I need to place multiple nodes on canvas, which should not overlap even some of them are not visible.
I haven’t tested this, but you could try:
function searchForNodeAt(p) {
var it = myDiagram.nodes;
while (it.next()) {
if (n.actualBounds.containsPoint(p)) return n;
}
return null;
}