documentationfor yFiles for HTML 2.6

IEdgeDefaults

Interface used by IGraph to declare and obtain the defaults for edges and their labels and ports.

Inheritance Hierarchy
IEdgeDefaults

Remarks

Note that changing these defaults does not change properties of already created model items. Rather, only items created after the change are affected.

Examples

Setting defaults for edges
// the defaults for edges can be set on the IEdgeDefaults instance
// which can be retrieved from the graph's EdgeDefaults property
graph.edgeDefaults.style = new PolylineEdgeStyle({
  stroke: Stroke.BLACK,
  targetArrow: IArrow.DEFAULT
})

// the defaults for edge labels can be set on the ILabelDefaults instance
// found at the Labels property of the edge defaults
graph.edgeDefaults.labels.layoutParameter =
  new EdgeSegmentLabelModel().createDefaultParameter()
graph.edgeDefaults.labels.style = new DefaultLabelStyle()

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.IEdgeDefaults

See Also

Properties

Methods