Text Builder
Builder for SVG text (<text>) element. This class provides methods to set attributes specific to the <text> element, such as position, font properties, and content.
Functions
Sets the fill-opacity attribute of the SVG element.
Sets the font-family attribute of the text, which defines the font family used to render the text.
Sets the font-weight attribute of the text, which defines the weight (thickness) of the font.
Sets the stroke-dasharray attribute of the SVG element.
Sets the stroke-dashoffset attribute of the SVG element.
Sets the stroke-linecap attribute of the SVG element.
Sets the stroke-linejoin attribute of the SVG element.
Sets the stroke-opacity attribute of the SVG element.
Sets the stroke-width attribute of the SVG element.
Sets the text-anchor attribute of the text, which defines the alignment of the text relative to its starting point.
Sets the text-decoration attribute of the text, which defines the decoration applied to the text (e.g., "underline", "line-through").
Adds a <tspan> child element to the text element.