brace¶
- class janim.items.svg.brace.Cmpt_VPoints_BraceImpl(*args, **kwargs)¶
Further implementation of
Cmpt_VPointsinBrace- match(item: Points | None, direction: Vect | None = None, buff: float = 0.1, root_only: bool = False) Self¶
Stretch the brace so that it matches the width of
itemin thedirectiondirection
- property tip_point: ndarray¶
Get the coordinates of the protrusion in the middle of the brace
- property brace_left: ndarray¶
Get the coordinates of the tip on the left side of the brace’s pointing direction
- property brace_right: ndarray¶
Get the coordinates of the tip on the right side of the brace’s pointing direction
- property direction: ndarray¶
Get the direction the brace points to
- put_at_tip(item: Points, use_next_to: bool = True, buff: float = 0.25, **kwargs) Self¶
Place the item at the protrusion in the middle of the brace
- class janim.items.svg.brace.Brace(item: Points | None = None, direction: ndarray = array([0., -1., 0.]), buff: float = 0.1, root_only: bool = False, stroke_alpha: float = 0, fill_alpha: float = 1, **kwargs)¶
Brace item
Will match the width of the item in the
directiondirection- points¶
- janim.items.svg.brace.get_brace_unique_points() ndarray¶
- janim.items.svg.brace.get_brace_default_length() float¶
- janim.items.svg.brace.get_brace_default_thickness() float¶
- janim.items.svg.brace.get_brace_tip_point_index() int¶
- janim.items.svg.brace.get_brace_left_index() int¶
- janim.items.svg.brace.get_brace_right_index() int¶
- janim.items.svg.brace.get_brace_paths() tuple[ndarray, ndarray, ndarray, ndarray]¶