ClipPathBuilder class

ClipPathBuilder class

A builder class for constructing CSS clip-path values. This class provides methods to define clip paths using basic shapes, external references, or geometry boxes. It allows for the creation of complex clipping paths in a structured and readable manner.

The ClipPathBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of ClipPathBuilder

Methods

MethodDescription
clip_source_idSets the clip path to reference an external source.
noneSets the clip path to ’none’, effectively disabling clipping.
circleDefines a circular clip path.
ellipseDefines an elliptical clip path.
rectangleDefines a rectangular clip path with optional rounded corners.
polygonDefines a polygonal clip path.
geometry_boxSets the geometry box for the clip path.
buildBuilds the clip path value as a string.

See Also