Interface ISvgLine
interface ISvgLine
Extends ISvgNode
Represents an SVG line element.
The line element defines a line segment between two points (x1, y1) and (x2, y2).
See also - ISvgNode.
Methods
setX1()
Sets the x1 coordinate of the line’s starting point. Default value is 0.0 withvoidsetX1(SvgLengthx1)
SvgUnit::Number
Parameters
x1
SvgLength — Required
SvgLength to set as the X-coordinate of the starting point.
setY1()
Sets the y1 coordinate of the line’s starting point. Default value is 0.0 withvoidsetY1(SvgLengthy1)
SvgUnit::Number
Parameters
y1
SvgLength — Required
SvgLength to set as the Y-coordinate of the starting point.
setX2()
Sets the x2 coordinate of the line’s ending point. Default value is 0.0 withvoidsetX2(SvgLengthx2)
SvgUnit::Number
Parameters
x2
SvgLength — Required
SvgLength the value to set as the X-coordinate of the ending point.
setY2()
Sets the y2 coordinate of the line’s ending point. Default value is 0.0 withvoidsetY2(SvgLengthy2)
SvgUnit::Number
Parameters
y2
SvgLength — Required
SvgLength the value to set as the Y-coordinate of the ending point.

