documentationfor yFiles for HTML 3.0.0.3

IOrthogonalEdgeHelper

An interface which provides methods that handle orthogonal editing of individual edges and can be decorated to the ILookup of IEdges.

Inheritance Hierarchy
IOrthogonalEdgeHelper

Remarks

The OrthogonalEdgeEditingContext queries implementations to achieve orthogonal edge editing from an edge's lookup. Edge styles can supply suitable instances in their renderer's lookup. For instance, the PolylineEdgeStyle offers an instance that enables orthogonal editing when the orthogonalEditing property is set to true.

Custom implementations can be decorated to EdgeDecorator's orthogonalEdgeHelper.

This interface is for editing edges in such a way that their path stays orthogonal, i.e. all segments are oriented either horizontally or vertically.

Rather than creating IOrthogonalEdgeHelper implementations from scratch, it is advisable to extend subclasses of OrthogonalEdgeHelper for better customization.

Examples

Setting a configured orthogonal edge helper
graph.decorator.edges.orthogonalEdgeHelper.addFactory(
  (edge) =>
    new OrthogonalEdgeHelper({
      edge,
      implicitlyMoveEnds: true,
    }),
)

Type Details

yFiles module
view

See Also

Methods

Static Methods