mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Added kwargs to match_width, etc. methods
This commit is contained in:
@ -454,14 +454,14 @@ class Mobject(object):
|
|||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
def match_width(self, mobject):
|
def match_width(self, mobject, **kwargs):
|
||||||
return self.match_dim(mobject, 0)
|
return self.match_dim(mobject, 0, **kwargs)
|
||||||
|
|
||||||
def match_height(self, mobject):
|
def match_height(self, mobject, **kwargs):
|
||||||
return self.match_dim(mobject, 1)
|
return self.match_dim(mobject, 1, **kwargs)
|
||||||
|
|
||||||
def match_depth(self, mobject):
|
def match_depth(self, mobject, **kwargs):
|
||||||
return self.match_dim(mobject, 2)
|
return self.match_dim(mobject, 2, **kwargs)
|
||||||
|
|
||||||
## Color functions
|
## Color functions
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user