Methods
forEach(f)
ForEach method on all presentation elements
This:
Parameters:
Name | Type | Description |
---|---|---|
f |
function | function to activate on each element. |
- Source:
initialize(set, pixelPos) → {SvgPieceData}
creates a new instance
This:
Parameters:
Name | Type | Description |
---|---|---|
set |
set | raphael set for the piece. |
pixelPos |
SvgPixelPosition | position for the pieces origin. This is important to be able to move it to other places pixelPos is not the translation of pos to pixels!!! |
- Source:
Returns:
the new instance.
- Type
- SvgPieceData
toString() → {string}
toString method that allows you to get a nice printout for this type
This:
- Source:
Returns:
a string representation of this instance.
- Type
- string