Initializes a line from point x1, y1
to x2, y2
. Optional parameter
properties
,if given, should be an object with key-value pairs. See
raphael.attr for valid keys and values.
Initializes a polyline or polygon. Parameter points
should be an array of arrays with
x and y coordinates. For example:
Optional parameter properties
, if given, should be an object with key-value pairs. See
raphael.attr for valid keys and values.
Translates the given point
in the (poly)line by the given amount of pixels. The point is a zero-indexed list of points used to initialize the polyline. For line, start point is index 0 and endpoint index 1.
Moves the given points to the given pixel positions. Parameter points
should be an array of arrays with each item specifying point, px, and py.