Layout¶
- class manim_extensions.mindmap.LayoutConfig(direction=array([1., 0., 0.]), node_spacing=0.5, level_spacing=0.5, sides=(array([0., 1., 0.]), array([0., -1., 0.])))[source]¶
Bases:
object- __init__(direction=array([1., 0., 0.]), node_spacing=0.5, level_spacing=0.5, sides=(array([0., 1., 0.]), array([0., -1., 0.])))[source]¶
Layout parameters
- Parameters:
direction (
ndarray) – Layout direction. Defaults to RIGHT.node_spacing (
float) – Spacing between nodes. Defaults to 0.5.level_spacing (
float) – Spacing between layers. Defaults to 0.5.sides (
Union[ndarray,List[ndarray]]) – Sides used for alternating timeline layouts; a single value means single-sided. Defaults to (UP,DOWN).
- get_layout_direction(direction)[source]¶
Convert a direction vector to a LayoutDirection enum.
- Return type:
LayoutDirection
- property catalog¶
- property mindmap¶
- property timeline¶