Class: SvgPieceData

SvgPieceData

represents a position + graphics

Constructor

new SvgPieceData()

Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:

Methods

forEach(f)

ForEach method on all presentation elements
This:
Parameters:
Name Type Description
f function function to activate on each element.
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
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!!!
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
the new instance.
Type
SvgPieceData

toString() → {string}

toString method that allows you to get a nice printout for this type
This:
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
a string representation of this instance.
Type
string