Have **kwargs in matrix pass on to elements

This commit is contained in:
Grant Sanderson 2022-12-28 19:40:02 -08:00
parent e76b673e63
commit cc9a4501ad

View file

@ -81,7 +81,6 @@ class Matrix(VMobject):
bracket_v_buff: float = 0.25,
add_background_rectangles_to_entries: bool = False,
include_background_rectangle: bool = False,
element_config: dict = dict(),
element_alignment_corner: Vect3 = DOWN,
**kwargs
):
@ -89,9 +88,9 @@ class Matrix(VMobject):
Matrix can either include numbers, tex_strings,
or mobjects
"""
super().__init__(**kwargs)
super().__init__()
mob_matrix = self.matrix_to_mob_matrix(matrix, **element_config)
mob_matrix = self.matrix_to_mob_matrix(matrix, **kwargs)
self.mob_matrix = mob_matrix
self.organize_mob_matrix(mob_matrix, v_buff, h_buff, element_alignment_corner)