documentationfor yFiles for HTML 2.6

ArrowNodeStyle

Node style that supports different kinds of arrow shapes with configurable arrow tip angle and arrow shaft thickness.

Inheritance Hierarchy
ArrowNodeStyle
Implemented Interfaces

Remarks

The final shape is defined by:

This style can be used together with ArrowNodeStyleRenderer instances.

Examples

The following example shows an ArrowNodeStyle pointing upwards.

graph.createNode(
  new Rect(0, 0, 60, 80),
  new ArrowNodeStyle({
    direction: 'up'
  })
)

The following example shows a ArrowNodeStyle with a thick notched shaft and a short head

graph.createNode(
  new Rect(0, 100, 80, 60),
  new ArrowNodeStyle({
    shape: 'notched-arrow',
    shaftRatio: 0.8,
    angle: 0.15 * Math.PI
  })
)

Type Details

yfiles module
styles-other
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.styles.ArrowNodeStyle

See Also

Constructors

Properties

Methods