Line

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:

Methods

public function setCoordinates($x1, $x2, $y1, $y2)
The x and y coordinates of a line.
Parameters:
$x1, $x2, $y1, $y2 are x and y coordinates of the line.
function __construct($itemId)
Parameters:
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