documentationfor yFiles for HTML 2.6

A default implementation of the IArrow interface that can render ArrowTypes.

Inheritance Hierarchy
Arrow
Implemented Interfaces

Remarks

This is a convertible type that can be used with the following notation(s) in parameter lists, parameter objects or setters.

The strings applying to this scheme are converted to Arrows:

'[color] [scale] type'

color = CSS color strings
scale = xx-small|x-small|small|medium|large|x-large|xx-large
type = normal|none|default|simple|short|diamond|cross|circle|ball|triangle

Valid color strings are the same as for Color. Square brackets mark optional declarations.

Examples

Creating an arrow with custom color and size
const edge = graph.createEdge(
  node1,
  node2,
  new PolylineEdgeStyle({
    // a thick red edge
    stroke: new Stroke(Fill.RED, 8),
    targetArrow: new Arrow({
      // the arrow should also be red
      stroke: Stroke.RED,
      // and larger, too
      scale: 4,
      type: ArrowType.DEFAULT
    })
  })
)

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.styles.Arrow

See Also

Constructors

Properties

Methods