documentationfor yFiles for HTML 3.0.0.2

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|stealth|open|diamond|cross|circle|ball|ellipse|triangle|chevron|deltoid|kite

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(Color.RED, 8),
    targetArrow: new Arrow({
      // the arrow should also be red
      stroke: Stroke.RED,
      // and larger, too
      widthScale: 4,
      lengthScale: 4,
      type: ArrowType.STEALTH,
    }),
  }),
)

Type Details

yFiles module
view

See Also

Constructors

Properties

Methods