Methods
add(paa)
Adds a new path section to a piece description
This:
- {SvgPiece}
Parameters:
Name | Type | Description |
---|---|---|
paa |
PathAndAttributes | object to be added. |
- Source:
initialize(size) → {SvgPiece}
creates a new instance
This:
- {SvgPiece}
Parameters:
Name | Type | Description |
---|---|---|
size |
number | of the square of the piece. |
- Source:
Returns:
a new object of this type.
- Type
- SvgPiece
toSet(paper, transform) → {set}
Create a Raphael.js set from this object
This:
- {SvgPiece}
Parameters:
Name | Type | Description |
---|---|---|
paper |
paper | Raphael.js paper to work on. |
transform |
transform | Raphael.js transformating for this object. |
- Source:
Returns:
the set after the transformation.
- Type
- set