SVGMarkerElementBuilder class

SVGMarkerElementBuilder class

Builder class for constructing an SVG ‘marker’ element, which is used to define graphical markers, such as arrowheads or bullets, that can be attached to the ‘path’, ’line’, ‘polyline’, and ‘polygon’ elements. This class enables the building of content within the ‘marker’ element and provides methods to set various attributes specific to the ‘marker’ element in SVG.

The SVGMarkerElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGMarkerElementBuilder

Methods

MethodDescription
orientSets the ‘orient’ attribute of the SVG ‘marker’ element, specifying the orientation of the marker.
orientSets the ‘orient’ attribute of the SVG ‘marker’ element, specifying the orientation angle of the marker.
build
build
marker_widthSets the ‘markerWidth’ attribute of the SVG ‘marker’ element, specifying the width of the marker’s viewport.
marker_heightSets the ‘markerHeight’ attribute of the SVG ‘marker’ element, specifying the height of the marker’s viewport.
marker_unitsSets the ‘markerUnits’ attribute of the SVG ‘marker’ element, specifying the coordinate system for the marker’s attributes.
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