canvas-chessboard
This library is in pre-release, every help, collaborations and tips are welcome! you feel free to track anything
version 0.0.16 Breaking changes
- Figurine is no more an enum but a literal string type!
- Colors is no more an enum but a literal string type!
Use
install
# if you use yarn: yarn add canvas-chessboard # if you use npm: npm install canvas-chessboard --save
import font
/* add in your SCSS file (check the correct path): */;
import js module
/* typescript */;
render
/* typescript */;;; ;cb.SetPiecespieces;cb.Redraw;
Changing aspect of pieces
;// in the setup of canvas:;cb.AddFontConfigcfgKey, Configs.ScacchiPainter; // somewhere else in the codecb.SetFontcfgKey;cb.Redraw;