manim-chess 0.0.37__py3-none-any.whl → 0.0.38__py3-none-any.whl

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.
manim_chess/board.py CHANGED
@@ -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
  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
@@ -1,5 +1,5 @@
1
1
  manim_chess/__init__.py,sha256=SEtbIVW1Lnh-ZF4_mMYWpI-UFQLOdnGkOD7W0iqK0uc,242
2
- manim_chess/board.py,sha256=ctQLT2OMsHLZcL_If8tAGBISduk4M7VA6D8TyLslzNM,20457
2
+ manim_chess/board.py,sha256=tNj2HCaxJ8hRZ9Br_Wc6XDDvWa33uG_pm3P3JjzqFYU,20477
3
3
  manim_chess/evaluation_bar.py,sha256=ELjhyFPi5x_Q4Gw3U0FLVhQqN55k8rYCu-lpkru4nPo,3655
4
4
  manim_chess/game_player.py,sha256=fESDu5eksZK9ic47CwQNgeq1rpkcMKt0O7_X7-E5lp0,31102
5
5
  manim_chess/piece_svgs/bB.svg,sha256=d-nev6XLgFKglq_9SdXU2EIxPM1RlNWoXji4p4MYhb8,683
@@ -15,7 +15,7 @@ manim_chess/piece_svgs/wP.svg,sha256=BZa3zm9xUXgAtRA_SrA3DUeebWbmnBQR8nSQ0gdy6NY
15
15
  manim_chess/piece_svgs/wQ.svg,sha256=3SCkD3QlZH7SwQ435sYe8uP3Dx9zy_xxdSy5_DbdwzU,1102
16
16
  manim_chess/piece_svgs/wR.svg,sha256=6ela3ONk9djAPG3E2pqfhPVewWSyCRAtRvfm9Ycspcc,481
17
17
  manim_chess/pieces.py,sha256=890HggU4vGv_PgLyUPnJj2p3ZdivoqG5BukjqsS6MeU,7634
18
- manim_chess-0.0.37.dist-info/LICENSE.txt,sha256=B-V-3Tb7v93ub_E_3quknwdeUDtveYnceR0DcdAgolc,1067
19
- manim_chess-0.0.37.dist-info/METADATA,sha256=UZy7Y_JdQxUU8j3Ak7wVtou3U1HBBDtP_5JBzk_xLmQ,7154
20
- manim_chess-0.0.37.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
21
- manim_chess-0.0.37.dist-info/RECORD,,
18
+ manim_chess-0.0.38.dist-info/LICENSE.txt,sha256=B-V-3Tb7v93ub_E_3quknwdeUDtveYnceR0DcdAgolc,1067
19
+ manim_chess-0.0.38.dist-info/METADATA,sha256=rw6LsxAFo8bzi8zzNkcICDFdVq2K5Ugonat8zgtKMv0,7154
20
+ manim_chess-0.0.38.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
21
+ manim_chess-0.0.38.dist-info/RECORD,,