documentationfor yFiles for HTML 2.6

WebGL2Stroke

A utility class that holds all properties of a stroke.

Inheritance Hierarchy
WebGL2Stroke

Remarks

The stroke that is defined by instances of this type can be applied to the WebGL2 styles like WebGL2ShapeNodeStyle, WebGL2IconNodeStyle, WebGL2GroupNodeStyle, WebGL2PolylineEdgeStyle, WebGL2ArcEdgeStyle, WebGL2BridgeEdgeStyle, WebGL2DefaultLabelStyle, and WebGL2IconLabelStyle.

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

'[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 blue'
'thick blue'

Currently, all WebGL2Strokes are solid strokes. Dashed or dotted stroke patterns are not supported.

Type Details

yfiles module
view-webgl
yfiles-umd modules
view-webgl, view
Legacy UMD name
yfiles.view.WebGL2Stroke

Constructors

Properties

Constants

Static Methods