mirror of
https://github.com/helblazer811/ManimML.git
synced 2025-07-03 14:06:44 +08:00
Update parent_layers.py
This commit is contained in:
@ -7,8 +7,11 @@ class NeuralNetworkLayer(ABC, Group):
|
||||
def __init__(self, text=None, *args, **kwargs):
|
||||
super(Group, self).__init__()
|
||||
self.title_text = kwargs["title"] if "title" in kwargs else " "
|
||||
self.title = Text(self.title_text, font_size=DEFAULT_FONT_SIZE / 3).scale(0.6)
|
||||
self.title.next_to(self, UP, 1.2)
|
||||
if "title" in kwargs:
|
||||
self.title = Text(self.title_text, font_size=DEFAULT_FONT_SIZE / 3).scale(0.6)
|
||||
self.title.next_to(self, UP, 1.2)
|
||||
else:
|
||||
self.title = Group()
|
||||
# self.add(self.title)
|
||||
|
||||
@abstractmethod
|
||||
|
Reference in New Issue
Block a user