MaskBuilder class

MaskBuilder class

A builder class for creating CSS mask properties. This class allows for the construction of complex mask styles using various properties such as mask source, position, size, repeat style, and more. The resulting string can be used in CSS to define the masking behavior of an element.

The MaskBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of MaskBuilder

Methods

MethodDescription
positionSets the position of the mask.
positionSets the position of the mask using horizontal and vertical values.
positionSets the position of the mask using a predefined horizontal position and a vertical value.
positionSets the position of the mask using a predefined vertical position and a horizontal value.
positionSets the position of the mask using predefined horizontal and vertical positions.
positionSets the position of the mask using edges and values.
mask_source_idSets the mask source ID for the mask.
background_sizeSets the background size for the mask.
repeat_styleSets the repeat style of the mask.
geometry_boxSets the geometry box of the mask.
geometry_box_noclipSets the geometry box of the mask with no clipping.
compositing_operatorSets the compositing operator for the mask.
buildBuilds the mask property value as a string.

See Also