Line in svg defines a line based on given coordinates and style attributes. SvgDreams library has a class for defining a line.
$lineObj = new Line("line1");
   $lineObj->setCoordinates(10, 240, 10, 70);
   $lineObj->stroke = "#000";
Sample line in SVG:


public function setCoordinates($x1, $x2, $y1, $y2)
The x and y coordinates of a line.
$x1, $x2, $y1, $y2 are x and y coordinates of the line.
function __construct($itemId)
Constructor of the line class needs an id for the line element. We suggest you to define a unique ID.

All rights reserved. See license