SVGMaskElementBuilder class

SVGMaskElementBuilder class

Builder class for constructing an SVG ‘mask’ element, which is used to define an alpha mask for compositing the current object into the background. This class enables the building of content within the ‘mask’ element and provides methods to set various attributes specific to the ‘mask’ element in SVG.

The SVGMaskElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGMaskElementBuilder

Methods

MethodDescription
build
build
mask_unitsSets the ‘maskUnits’ attribute of the SVG ‘mask’ element, specifying the coordinate system for the mask’s attributes.
mask_content_unitsSets the ‘maskContentUnits’ attribute of the SVG ‘mask’ element, specifying the coordinate system for the contents of the mask.
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