mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Allow for matched_pairs arg to TransformMatchingStrings
This commit is contained in:
parent
c8d1ee5c88
commit
bc38165d44
1 changed files with 2 additions and 1 deletions
|
@ -131,9 +131,10 @@ class TransformMatchingStrings(TransformMatchingParts):
|
|||
target: StringMobject,
|
||||
matched_keys: Iterable[str] = [],
|
||||
key_map: dict[str, str] = dict(),
|
||||
matched_pairs: Iterable[tuple[Mobject, Mobject]] = [],
|
||||
**kwargs,
|
||||
):
|
||||
matched_pairs = [
|
||||
matched_pairs = list(matched_pairs) + [
|
||||
*[(source[key], target[key]) for key in matched_keys],
|
||||
*[(source[key1], target[key2]) for key1, key2 in key_map.items()],
|
||||
*[
|
||||
|
|
Loading…
Add table
Reference in a new issue