SVGPatternElementBuilder class

SVGPatternElementBuilder class

Builder class for constructing an SVG ‘pattern’ element, which is used to define a pattern to be used for filling graphics elements within SVG. This class provides methods to set various attributes specific to the ‘pattern’ element and to build its content.

The SVGPatternElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGPatternElementBuilder

Methods

MethodDescription
build
build
pattern_unitsSets the ‘patternUnits’ attribute of the SVG ‘pattern’ element, specifying the coordinate system for the pattern’s x, y, width, and height.
pattern_content_unitsSets the ‘patternContentUnits’ attribute of the SVG ‘pattern’ element, specifying the coordinate system for the contents of the pattern.
hrefSets the ‘href’ attribute of the SVG ‘pattern’ element, specifying a reference to another pattern which this pattern inherits attributes from.
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