org.visallo.graph.edge.class

Function that can change cytoscape classes of edges

Register a function that can add or remove classes from cytoscape edges for custom styling.

Registration

registry.registerExtension("org.visallo.graph.edge.class", config)

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

Validation Function

Extensions registered must pass this validation check to be used.

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

Type Definitions

classFn(edges, type, classes)

Source:

Mutate the classes array to adjust the classes.

Example
function(edges, type, cls) {
    cls.push('org-example-cls');
}
Parameters:
Name Type Description
edges array.<object>

List of edges that are collapsed into the drawn line. length >= 1.

type string

EdgeLabel of the collapsed edges.

classes array.<string>

List of classes that will be added to cytoscape edge.