issues
search
jniemann66
/
react-chessdiagram
Chess Diagram React Component
MIT License
26
stars
10
forks
source link
Added option to remove rank/file labels
#16
Open
JeffML
opened
4 years ago
JeffML
commented
4 years ago
Unfortunately there are code format changes, so I'll explain here:
added a boolean
labels
prop; if true, behavior is same as now
if false:
the labels are not shown
the board and pieces are shifted over (no left padding)
the board size is adjusted (no right padding)
added an input control to the demo
note that there is an existing bug for both
flip
(and now label) checkboxes : it will only re-render when checkbox is toggled twice
not fixed:
the piece selection square is now off-by-one; I'm not using this and will probably not get around to fixing it
also added package.lock.json to repo
npm audit reveals lots of issues, but I did not try to fix
Unfortunately there are code format changes, so I'll explain here: