This commit is contained in:
Maciej Caderek
2022-03-09 23:56:34 +01:00
parent db3c689727
commit 84bb4efd80
6 changed files with 49 additions and 21 deletions

View File

@@ -205,6 +205,12 @@ class Board {
return this;
}
toggleShadows() {
this.cfg.showShadows = !this.cfg.showShadows;
this.refresh();
return this;
}
private getFinalHeader() {
return this._anonymous
? {
@@ -341,7 +347,8 @@ class Board {
this.borderWidth,
this.cfg.flipped,
this.margin,
this.cfg.piecesStyle
this.cfg.piecesStyle,
this.cfg.showShadows
);
if (this.cfg.showExtraInfo && header) {