Skip to content

fix(numbers): preserve rotation and size in DecimalNumber.set_value#4843

Open
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/4830-decimal-number-set-value-rotation
Open

fix(numbers): preserve rotation and size in DecimalNumber.set_value#4843
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/4830-decimal-number-set-value-rotation

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • set_value now keeps rotation and font size when the number was rotated or scaled
  • Fixes inflated sizing caused by using bounding-box height on rotated mobjects

Fixes #4830

Test plan

  • pytest tests/module/mobject/text/test_numbers.py -o addopts=\"\"

Made with Cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DecimalNumber.set_value ignores rotation

1 participant