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

Method match_width

manim/mobject/mobject.py:2376–2378  ·  view source on GitHub ↗

Match the width with the width of another :class:`~.Mobject`.

(self, mobject: Mobject, **kwargs)

Source from the content-addressed store, hash-verified

2374 return self.rescale_to_fit(mobject.length_over_dim(dim), dim, **kwargs)
2375
2376 def match_width(self, mobject: Mobject, **kwargs) -> Self:
2377 """Match the width with the width of another :class:`~.Mobject`."""
2378 return self.match_dim_size(mobject, 0, **kwargs)
2379
2380 def match_height(self, mobject: Mobject, **kwargs) -> Self:
2381 """Match the height with the height of another :class:`~.Mobject`."""

Callers 1

becomeMethod · 0.45

Calls 1

match_dim_sizeMethod · 0.95

Tested by

no test coverage detected