SVGRectElementBuilder class

SVGRectElementBuilder class

Builder class for constructing an SVG ‘rect’ element. The ‘rect’ element is used to create rectangles within SVG graphics. This class provides methods to set various attributes specific to the ‘rect’ element, including corner radii and dimensions.

The SVGRectElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGRectElementBuilder

Methods

MethodDescription
build
build
rxSets the ‘rx’ attribute of the SVG ‘rect’ element, specifying the horizontal radius of the rectangle’s rounded corners.
rySets the ‘ry’ attribute of the SVG ‘rect’ element, specifying the vertical radius of the rectangle’s rounded corners.
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