Selection Tools

Search
Feedback

Grouping nodes can be useful when the same action should be executed on more than one or a few nodes. With the selection tools module it is possible to create different node groups who can be hidden, fixated or dragged at once.

functions

Name Parameters description
createNewSelectionGroup() Creates a new node group and returns the id of it
deleteSelectionGroup(groupID) groupIDThe id of the group that should be deleted Deletes a node group
activateSelectionGroup(groupID) groupIDThe group with the given id will be selected and activated With this function it is possible to use and select different node groups.
activateSelectionLasso(status) statusTrue for activate, false for deactivate This will activate the lasso tool for the selection of multiple nodes. The lasso will add the selected nodes to the currently activated node group.
dropSelection(groupID) groupID This will drop all nodes from the given group.
deactivateSelectionTools() This will deactivate the module. The node groups will not be deleted.
hideSelectionGroup(groupID, status) groupIDThe id of the group
statusTrue for hidden, false for not hidden
Hides or unhides the nodes of the given node group.
hideSelectionGroup(groupID, status) groupIDThe id of the group
statusTrue for fixated, false for not fixated
Fixates or unfixates the nodes of the given node group.

Graph-Browser

About this article
Last change 2017-07-17
Topics ExperimentalStructr 2.0