Class Line
represents line connecting two points
Defined in: raphaeltools.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Line(raphael, point1, point2)
Line
|
Field Attributes | Field Name and Description |
---|---|
array of copies of receiver
|
|
array of points of copies of receiver
|
|
pointer to actual raphael object
|
|
first point of line
|
|
second point of line
|
|
Raphael instance
|
Method Attributes | Method Name and Description |
---|---|
Set this.pathList to this.obj raphael object
|
|
copy(points)
Copy receiver
|
|
<static> |
Line.create(raphael, point1, point2)
Creates new Line object, for parameters meaning see Line
|
makeCopy(point1, point2)
Returns copy of receiver
|
|
Sets svg path of receiver
|
|
update()
Update receiver (set this.pathList for given internal variables - x,y,angle.
|
Class Detail
Line(raphael, point1, point2)
Line
- Parameters:
- {Raphael} raphael
- raphael instance
- {Point} point1
- 1st Point2d
- {Point} point2
- 2nd Point2d
Field Detail
{[Lines]}
copies
array of copies of receiver
{[[Points]|[Points]]}
copiesPoints
array of points of copies of receiver
{Raphael.el}
obj
pointer to actual raphael object
{Point}
point1
first point of line
{Point}
point2
second point of line
{Raphael}
raphael
Raphael instance
Method Detail
attrObjPath()
Set this.pathList to this.obj raphael object
copy(points)
Copy receiver
- Parameters:
- {[[Points]|[Points]]} points
- points of to be copied lines
<static>
{Line}
Line.create(raphael, point1, point2)
Creates new Line object, for parameters meaning see Line
- Parameters:
- raphael
- point1
- point2
- Returns:
- {Line} new Line object
{Line}
makeCopy(point1, point2)
Returns copy of receiver
- Parameters:
- point1
- point2
- Returns:
- {Line} copy of receiver
setPathList()
Sets svg path of receiver
update()
Update receiver (set this.pathList for given internal variables - x,y,angle... - as well as its copies)