SVGAElementBuilder class

SVGAElementBuilder class

Builder class for constructing an SVG ‘a’ element, which is used to define hyperlinks. It enables the building of content within ‘a’ element and provides methods to set various attributes specific to the ‘a’ element in SVG.

The SVGAElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGAElementBuilder

Methods

MethodDescription
build
build
set_targetSets the ’target’ attribute of the SVG ‘a’ element to a custom XML name.
hrefSets the ‘href’ attribute of the SVG ‘a’ element, specifying the URL of the linked resource.
downloadSets the ‘download’ attribute of the SVG ‘a’ element, indicating that the link is to be downloaded when activated.
pingSets the ‘ping’ attribute of the SVG ‘a’ element, containing a list of URLs to be notified if the link is followed.
relSets the ‘rel’ attribute of the SVG ‘a’ element, specifying the relationship of the target object to the link object.
href_langSets the ‘hreflang’ attribute of the SVG ‘a’ element, indicating the language of the linked resource.
typeSets the ’type’ attribute of the SVG ‘a’ element, specifying the media type of the linked resource.
referrer_policySets the ‘referrerPolicy’ attribute of the SVG ‘a’ element, specifying how much of the referrer to send along with requests.
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