You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you specify both shapes and fen in the initial config, the fen is honored but the shapes are not rendered. I could reproduce this on both Firefox (version 85) and Chromium (version 88). I am using chessground 7.9.3.
Here's the code:
exportconstfromFen: Unit={name: 'From FEN, from black POV without shapes',run(el){returnChessground(el,{fen:'2r3k1/pp2Qpbp/4b1p1/3p4/3n1PP1/2N4P/Pq6/R2K1B1R w -',orientation: 'black'});}};exportconstfromFenWithShapes: Unit={name: 'From FEN, from black POV with shapes',run(el){returnChessground(el,{fen:'2r3k1/pp2Qpbp/4b1p1/3p4/3n1PP1/2N4P/Pq6/R2K1B1R w -',orientation: 'black',drawable: {shapes: [{orig: 'e4',brush: 'green'}]}});}};exportconstwithoutFenWithShapes: Unit={name: 'Without FEN, from black POV with shapes',run(el){returnChessground(el,{orientation: 'black',drawable: {shapes: [{orig: 'e4',brush: 'green'}]}});}};
Expected behavior: fromFenWithShapes looks the same as fromFen but with a green ring on e4.
Actual behavior: fromFenWithShapes looks identical to fromFen.
Specifying the shapes programmatically with setShapes works as expected.
The text was updated successfully, but these errors were encountered:
I don't understand if it is intentional. Removing this line fixes the issue for me, but I don't know if anyone else is relying on the current behavior.
If you specify both shapes and fen in the initial config, the fen is honored but the shapes are not rendered. I could reproduce this on both Firefox (version 85) and Chromium (version 88). I am using chessground 7.9.3.
Here's the code:
Expected behavior:
fromFenWithShapes
looks the same asfromFen
but with a green ring on e4.Actual behavior:
fromFenWithShapes
looks identical tofromFen
.Specifying the shapes programmatically with
setShapes
works as expected.The text was updated successfully, but these errors were encountered: