documentationfor yFiles for HTML 3.0.0.3

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:

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
view

Constructors

Properties

Methods