Skip to content

Add last reference option to Mobject.arrange#4707

Open
rotempasharel1 wants to merge 9 commits intoManimCommunity:mainfrom
rotempasharel1:fix-arrange-last-reference
Open

Add last reference option to Mobject.arrange#4707
rotempasharel1 wants to merge 9 commits intoManimCommunity:mainfrom
rotempasharel1:fix-arrange-last-reference

Conversation

@rotempasharel1
Copy link
Copy Markdown

Summary

Adds support for arranging submobjects using the last submobject as the reference in Mobject.arrange().

Changes

  • Added a last parameter to Mobject.arrange()
  • Reverses the arrangement order when last=True
  • Added a unit test for the new behavior

Testing

  • Ran python -m py_compile manim/mobject/mobject.py
  • Ran python -m py_compile tests/module/mobject/mobject/test_mobject.py
  • Could not run the full pytest command locally because installing the dev dependencies failed due to insufficient disk space on my Windows environment.

Related issue

Closes #4183

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.

Select the last object of the group as the alignment target when using Mobject.arrange()

1 participant