Class: SvgCreator

SvgCreator

static class to have just static methods for creating pieces

Constructor

new SvgCreator()

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

Methods

(static) createPiece(config, pieceColor, pieceType) → {SvgPiece}

Method which creates a piece according to color and type
Parameters:
Name Type Description
config Config A configuration to work with.
pieceColor PieceColor the color of the piece.
pieceType PieceType the type of the piece.
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
the newly created piece.
Type
SvgPiece

initialize() → {SvgCreator}

creates a new instance
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
the new instance.
Type
SvgCreator