Skip to content

Added ability to override pieces image - #53

Open
reezpatel wants to merge 1 commit into
oakmac:masterfrom
reezpatel:master
Open

Added ability to override pieces image#53
reezpatel wants to merge 1 commit into
oakmac:masterfrom
reezpatel:master

Conversation

@reezpatel

Copy link
Copy Markdown

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.

@ernes

ernes commented Feb 10, 2025

Copy link
Copy Markdown

Please @oakmac , it would be great if you merge this. Thanks!

@ernes

ernes commented Feb 13, 2025

Copy link
Copy Markdown

Couldn't this actually close #26 ?

@SC0d3r

SC0d3r commented Mar 17, 2025

Copy link
Copy Markdown

I tried this, and this works can we merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants