collectParts method
A convenient way of converting the Diagram|Group|Iterable argument to doLayout to an actual collection of eligible Parts. The resulting Set will not include any Nodes or Links for which Part#canLayout is false. If the argument includes a Group for which Group#layout is null, the resulting Set will include the member parts of that group rather than that group itself. You will not need to call collectParts if you call #makeNetwork, because that method does effectively the same thing when building the LayoutNetwork.
Typical usage:
public doLayout(coll) {
// COLL might be a Diagram or a Group or some Iterable<Part>
var it = this.collectParts(coll).iterator;
while (it.next()) {
var node = it.value;
if (node instanceof go.Node) {
. . . position the node . . .
}
}
}
Implementation
_i3.Set<_i3.Part> collectParts(_i2.Object coll) => _i4.callMethod(
this,
'collectParts',
[coll],
);