documentationfor yFiles for HTML 3.0.0.3

WebGLStroke

A utility class that holds all properties of a stroke.

Inheritance Hierarchy
WebGLStroke

Remarks

The stroke that is defined by instances of this type can be applied to the WebGL2 styles like WebGLShapeNodeStyle, WebGLImageNodeStyle, WebGLGroupNodeStyle, WebGLPolylineEdgeStyle, WebGLArcEdgeStyle, WebGLBridgeEdgeStyle, WebGLLabelStyle, and WebGLIconLabelStyle.

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

'[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 WebGLStrokes are solid strokes. Dashed or dotted stroke patterns are not supported.

Type Details

yFiles module
view

Constructors

Properties

Constants

Static Methods