documentationfor yFiles for HTML 2.6

A utility class that holds all properties of a Stroke.

Inheritance Hierarchy
Stroke
Implemented Interfaces

Remarks

The stroke that is defined by instances of this type can be applied to an SVG element using either the static helper setStroke or the instance method applyTo.

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 Strokes:

'[thickness] [type] color'

thickness = thickness in px|thin|medium|thick
type = solid|dashed|dotted
color = CSS color strings

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

Examples:

'3px dashed blue'
'thick blue'
'dotted blue'

Type Details

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

See Also

Constructors

Properties

Methods

Constants

Static Methods