Skip to content

Commit c7ccfc3

Browse files
committed
fix orientation bug
1 parent 6cd2dcd commit c7ccfc3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

chess/svg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ def __render_arrow(arrow, svg, colors, margin, orientation):
539539
tail_rank - head_rank,
540540
)
541541
)
542+
if not orientation:
543+
# flip this angle if the board is flipped
544+
angle = angle - 180
542545
svg_transform = "rotate({},{},{})".format(angle, xtail, ytail)
543546

544547
lwo = 0.1 * SQUARE_SIZE # line width offset

0 commit comments

Comments
 (0)