Labelable¶
Qualified name: manim\_dsa.utils.utils.Labelable
- class Labelable[source]¶
Bases:
objectA mixin class that provides functionality to add a label to Manim objects.
Methods
- add_label(text, direction=array([0., 1., 0.]), buff=0.5, **kwargs)[source]¶
Add a label to the object.
- Parameters:
text (
Text) – The Text object to use as the label.direction (
Vector3D, optional) – The direction to place the label relative to the object (default isUP).buff (float, optional) – The distance between the object and the label (default is
0.5).**kwargs (dict) – Additional keyword arguments for positioning.
- Returns:
The instance with the label added.
- Return type: