mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Added Mobject.stretch_to_fit_depth
This commit is contained in:
@ -389,6 +389,9 @@ class Mobject(Container):
|
||||
def stretch_to_fit_height(self, height, **kwargs):
|
||||
return self.rescale_to_fit(height, 1, stretch = True, **kwargs)
|
||||
|
||||
def stretch_to_fit_depth(self, depth, **kwargs):
|
||||
return self.rescale_to_fit(depth, 1, stretch = True, **kwargs)
|
||||
|
||||
def scale_to_fit_width(self, width, **kwargs):
|
||||
return self.rescale_to_fit(width, 0, stretch = False, **kwargs)
|
||||
|
||||
|
Reference in New Issue
Block a user