forked from drageelr/manim-data-structures
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathm_enum.py
35 lines (22 loc) · 893 Bytes
/
m_enum.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""Contains enums used throughout the package."""
from enum import Enum
class MArrayElementComp(Enum):
"""Refers to individual component :class:`~manim.mobject.mobject.Mobject`\0s of :class:`~.m_array.MArrayElement`."""
BODY = 0
""":class:`~manim.mobject.geometry.polygram.Square` that represents the body."""
VALUE = 1
""":class:`~manim.mobject.text.text_mobject.Text` that represents the value."""
INDEX = 2
""":class:`~manim.mobject.text.text_mobject.Text` that represents the index."""
LABEL = 3
""":class:`~manim.mobject.text.text_mobject.Text` that represents the label."""
class MArrayDirection(Enum):
"""Serves as the direction for :class:`~.m_array.MArray`."""
UP = 0
"""Upward direction."""
DOWN = 1
"""Downward direction."""
RIGHT = 2
"""Rightward direction."""
LEFT = 3
"""Leftward direction."""