org.visallo.graph.node.transformer

Function that can change cytoscape node structure

Allows extensions to adjust the data attribute of cytoscape nodes.

Registration

registry.registerExtension("org.visallo.graph.node.transformer", config)

Source:
Tutorials:
See:
Configuration Properties:
Name Type Description
config transformerFn

Validation Function

Extensions registered must pass this validation check to be used.

function extensionValidator(e) {
    return _.isFunction(e);
}

Type Definitions

transformerFn(vertex, data)

Source:

Mutate the data object that gets passed to Cytoscape.

Example
function transformer(vertex, data) {
    data.myCustomAttr = '...';
}
Parameters:
Name Type Description
vertex object

The vertex representing this node

data object

The cytoscape data object