PathBuilder class

PathBuilder class

Builder class for creating SVG path data strings.

The PathBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of PathBuilder

Methods

MethodDescription
mAdds a ‘Move To’ command to the path data.
mrAdds a relative ‘Move To’ command to the path data.
lAdds a ‘Line To’ command to the path data.
lrAdds a relative ‘Line To’ command to the path data.
cAdds a ‘Cubic Bezier Curve’ command to the path data.
crAdds a relative ‘Cubic Bezier Curve’ command to the path data.
qAdds a ‘Quadratic Bezier Curve’ command to the path data.
qrAdds a relative ‘Quadratic Bezier Curve’ command to the path data.
aAdds an ‘Elliptical Arc Curve’ command to the path data.
arAdds a relative ‘Elliptical Arc Curve’ command to the path data.
hAdds a ‘Horizontal Line To’ command to the path data.
hrAdds a relative ‘Horizontal Line To’ command to the path data.
vAdds a ‘Vertical Line To’ command to the path data.
vrAdds a relative ‘Vertical Line To’ command to the path data.
sAdds a ‘Smooth Cubic Bezier Curve To’ command to the path data.
srAdds a relative ‘Smooth Cubic Bezier Curve To’ command to the path data.
tAdds a ‘Smooth Quadratic Bezier Curve To’ command to the path data.
trAdds a relative ‘Smooth Quadratic Bezier Curve To’ command to the path data.
zAdds a ‘Close Path’ command to the path data.
add_path_segmentAdds a custom path segment to the path data.
buildBuilds the path data string.

See Also