manim-chess 0.0.37__tar.gz → 0.0.38__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {manim_chess-0.0.37 → manim_chess-0.0.38}/PKG-INFO +1 -1
  2. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/board.py +1 -1
  3. {manim_chess-0.0.37 → manim_chess-0.0.38}/pyproject.toml +1 -1
  4. {manim_chess-0.0.37 → manim_chess-0.0.38}/LICENSE.txt +0 -0
  5. {manim_chess-0.0.37 → manim_chess-0.0.38}/README.md +0 -0
  6. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/__init__.py +0 -0
  7. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/evaluation_bar.py +0 -0
  8. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/game_player.py +0 -0
  9. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/bB.svg +0 -0
  10. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/bK.svg +0 -0
  11. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/bN.svg +0 -0
  12. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/bP.svg +0 -0
  13. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/bQ.svg +0 -0
  14. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/bR.svg +0 -0
  15. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/wB.svg +0 -0
  16. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/wK.svg +0 -0
  17. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/wN.svg +0 -0
  18. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/wP.svg +0 -0
  19. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/wQ.svg +0 -0
  20. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/piece_svgs/wR.svg +0 -0
  21. {manim_chess-0.0.37 → manim_chess-0.0.38}/manim_chess/pieces.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: manim-chess
3
- Version: 0.0.37
3
+ Version: 0.0.38
4
4
  Summary: A plugin for animating chessboards. Includes additional features such as PGN conversion, arrows, etc.
5
5
  Author: swoyer2
6
6
  Author-email: swoyer.logan@gmail.com
@@ -421,7 +421,7 @@ class Board(Mobject):
421
421
  subtracted_position_vectors = end_position - tip_position
422
422
  dir_x = subtracted_position_vectors[0]
423
423
  dir_y = subtracted_position_vectors[1]
424
- if dir_x == 0 or dir_y == 0 or abs(dir_x) == abs(dir_y):
424
+ if dir_x == 0 or dir_y == 0 or round(abs(dir_x), 1) == round(abs(dir_y), 1):
425
425
  arrow = Line(stroke_width=15, stroke_opacity=.8, fill_color=ARROW_COLOR, stroke_color=ARROW_COLOR)
426
426
  arrow.reset_endpoints_based_on_tip = lambda *args: None
427
427
  arrow.set_points_as_corners([end_position - end_position_buffer, tip_position - tip_position_buffer])
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "manim-chess"
3
- version = "0.0.37"
3
+ version = "0.0.38"
4
4
  description = "A plugin for animating chessboards. Includes additional features such as PGN conversion, arrows, etc."
5
5
  authors = [
6
6
  {name = "swoyer2",email = "swoyer.logan@gmail.com"}
File without changes
File without changes