mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add TransformMatchingMTex
This commit is contained in:
parent
17d31045b2
commit
5a1f00b1cb
1 changed files with 15 additions and 0 deletions
|
@ -139,3 +139,18 @@ class TransformMatchingTex(TransformMatchingParts):
|
|||
@staticmethod
|
||||
def get_mobject_key(mobject):
|
||||
return mobject.get_tex()
|
||||
|
||||
|
||||
class TransformMatchingMTex(TransformMatchingParts):
|
||||
CONFIG = {
|
||||
"mobject_type": VMobject,
|
||||
"group_type": VGroup,
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def get_mobject_parts(mobject):
|
||||
return mobject.submobjects
|
||||
|
||||
@staticmethod
|
||||
def get_mobject_key(mobject):
|
||||
return mobject.submob_id_tuple
|
||||
|
|
Loading…
Add table
Reference in a new issue