Extends mxGraphLayout to implement an edge label layout. This layout makes use of cell states, which means the graph must be validated in a graph view (so that the label bounds are available) before this layout can be executed.
let layout = new mxEdgeLabelLayout(graph); layout.execute(graph.getDefaultParent());
mxEdgeLabelLayout | Extends mxGraphLayout to implement an edge label layout. |
Functions | |
mxEdgeLabelLayout | Constructs a new edge label layout. |
execute | Implements mxGraphLayout.execute. |
placeLabels | Places the labels of the given edges. |
avoid | Places the labels of the given edges. |
function mxEdgeLabelLayout( graph, radius )
Constructs a new edge label layout.
graph | mxGraph that contains the cells. |
mxEdgeLabelLayout.prototype.execute = function( parent )
Implements mxGraphLayout.execute.
Constructs a new edge label layout.
function mxEdgeLabelLayout( graph, radius )
Implements mxGraphLayout.execute.
mxEdgeLabelLayout.prototype.execute = function( parent )
Executes the layout algorithm for the children of the given parent.
mxGraphLayout.prototype.execute = function( parent )
Places the labels of the given edges.
mxEdgeLabelLayout.prototype.placeLabels = function( v, e )
Places the labels of the given edges.
mxEdgeLabelLayout.prototype.avoid = function( edge, vertex )