SVGStopElementBuilder class

SVGStopElementBuilder class

Builder class for constructing an SVG ‘stop’ element. The ‘stop’ element is used within a gradient definition (either linear or radial) to define the color stops. This class provides methods to set various attributes specific to the ‘stop’ element, such as the offset and color.

The SVGStopElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGStopElementBuilder

Methods

MethodDescription
build
build
offsetSets the ‘offset’ attribute of the SVG ‘stop’ element, specifying the position of the color stop within the gradient.
build_elementBuilds and returns an SVGElement instance based on the current configuration of the builder.
attributeSets or updates an attribute on an SVG element.

See Also