oakmac / chessboard2

chessboard.js v2
ISC License
81 stars 7 forks source link

Added ability to override pieces image #53

Open reezpatel opened 6 months ago

reezpatel commented 6 months ago

Added ability to add custom images using pieceTheme property, which accepts a string.

Usage:

const board = Chessboard2('chess-board', {
        pieceTheme: `/assests/chess/{piece}.svg`,
});

Note: I haven't used Clojurescript before, did my best to come up with the solution.