documentationfor yFiles for HTML 3.0.0.3

Represents any object that fills an area.

Inheritance Hierarchy
Implemented Interfaces

Remarks

The fill that is defined by instances of this type can be applied to an SVG element using either the static helper setFill 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.

CSS color strings are converted to CssFills. For example:

'blue'
'#369'
'#336699'
'#369A',
'#336699AA'
'rgb(51, 102, 153)'
'rgba(51, 102, 153 / 0.5)'
'hsl(225, 98%, 60%)'
'hsla(225, 98%, 60% / 0.5)',

Additionally, SVG strings are supported. For example:

'none'
'url(#gradient)'

Arrays are converted to Color.

Type Details

yFiles module
view

See Also

Methods

Static Methods