Skip to content

Commit c7b2913

Browse files
Add get methods to replace fetch_mob method. (#19)
* Add get methods to replace fetch_mob method. * Update src/manim_data_structures/m_array.py --------- Co-authored-by: Nikhil Iyer <[email protected]>
1 parent f0a36c2 commit c7b2913

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/manim_data_structures/m_array.py

+12
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,18 @@ def fetch_mob(self, mob_target: MArrayElementComp) -> Mobject:
371371
return self.fetch_mob_label()
372372
else:
373373
return self
374+
375+
def get_body(self) -> Square:
376+
return self.fetch_mob_square()
377+
378+
def get_value(self) -> Text:
379+
return self.fetch_mob_value()
380+
381+
def get_index(self) -> Text:
382+
return self.fetch_mob_index()
383+
384+
def get_label(self) -> Text:
385+
return self.fetch_mob_label()
374386

375387
def update_mob_value(
376388
self,

0 commit comments

Comments
 (0)