MCPcopy
hub / github.com/ManimCommunity/manim / align_submobjects

Method align_submobjects

manim/mobject/mobject.py:2949–2956  ·  view source on GitHub ↗
(self, mobject: Mobject)

Source from the content-addressed store, hash-verified

2947 raise NotImplementedError("Please override in a child class.")
2948
2949 def align_submobjects(self, mobject: Mobject) -> Self:
2950 mob1 = self
2951 mob2 = mobject
2952 n1 = len(mob1.submobjects)
2953 n2 = len(mob2.submobjects)
2954 mob1.add_n_more_submobjects(max(0, n2 - n1))
2955 mob2.add_n_more_submobjects(max(0, n1 - n2))
2956 return self
2957
2958 def null_point_align(self, mobject: Mobject):
2959 """If a :class:`~.Mobject` with points is being aligned to

Callers 2

align_dataMethod · 0.95
beginMethod · 0.80

Calls 1

Tested by

no test coverage detected