Skip to content

Refactor next_to and align_to #113

Open
@leotrs

Description

@leotrs

There are several issues with mobject.next_to and mobject.align_to.

  1. align_to accepts an argument called alignment_vector that is never used in the code.
  2. align_to has a docstring that is stale (it refers to this alignment_vector argument that is never used).
  3. Both next_to and align_to accept a mobject or a point as target, but next_to accepts the specification of a submobject, while align_to doesn't. For symmetry and completeness, I think align_to should also accept a submobject.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr:deprecationDeprecation, or removal of deprecated coderefactorRefactor or redesign of existing code

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions