Home > @jsplumbtoolkit/browser-ui > Surface > setVisible
Surface.setVisible() method
Sets the visible state of some model object or group of model objects. If the object is a vertex, the visible state will be applied to all edges connected to the given vertex.
By default this method will, for groups and nodes, cascade down to any nested vertices.
Signature:
setVisible(obj: FilterableDataset | ArrayLike<any> | Base, state: boolean, doNotCascade?: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
obj | FilterableDataset | ArrayLike<any> | Base | Edge, Group, Node or Port, and array of these, or a FilterableDataset , such as a Selection . |
state | boolean | True if edges should be visible, false otherwise. |
doNotCascade | boolean | Defaults to false. If true, don't cascade down to any nested vertices. |
Returns:
void