Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align pieces to their squares center when generating SVG images with border #1103

Closed
Lukasel opened this issue Sep 5, 2024 · 0 comments · Fixed by #1104
Closed

Align pieces to their squares center when generating SVG images with border #1103

Lukasel opened this issue Sep 5, 2024 · 0 comments · Fixed by #1104

Comments

@Lukasel
Copy link

Lukasel commented Sep 5, 2024

When generating board SVGs with a border around the board, then the border displaces the squares but not the pieces. That results in the pieces being drawn of center from their squares.

A lichess puzzle rendered with border, the pieces are of center to the top left:
3r3k_p5pp_2r2q2_2p4Q_8_8_P5PP_3R1R1K b - - 5 29_border

The same position without border, the pieces are centered:
3r3k_p5pp_2r2q2_2p4Q_8_8_P5PP_3R1R1K b - - 5 29_no-border

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant