select

janim.gui.handlers.select.handler(viewer: AnimViewer, command: Timeline.GuiCommand) None
class janim.gui.handlers.select.SelectPanel(viewer: AnimViewer, command: Timeline.GuiCommand, item: Item)

Bases: HandlerPanel

compute_boxes() None
update_replacement() None
get_range_replacement(range: tuple[float, float]) str
eventFilter(watched: QObject, event: QEvent) bool
on_glw_mouse_press(event: QMouseEvent) None
on_glw_mouse_move(event: QMouseEvent) None
select_child_item(event: QMouseEvent) None
remove_child_item(event: QMouseEvent) None
on_overlay_paint(event: QPaintEvent) None
staticMetaObject = PySide6.QtCore.QMetaObject("SelectPanel" inherits "HandlerPanel": )
class janim.gui.handlers.select.ItemBox(item: Item, attrs: BasicAttrs)

Bases: object

Item and its selectable range in GL coordinates, with margins around the edges

contains(glx: float, gly: float) bool
janim.gui.handlers.select.select_next_item_at_position(viewer: AnimViewer, position: QPointF, current: ItemBox | None) ItemBox | None

Select the next item at the specified position

“Next item” means that for each list of selectable items found, if the original item current is in the list, select the next item in the list

janim.gui.handlers.select.compute_box_of_item(viewer: AnimViewer, item: Item) ItemBox

Compute the ItemBox of item

janim.gui.handlers.select.compute_boxes_of_children(viewer: AnimViewer, item: Item) list[ItemBox]

Iterate through the children of item and compute the ItemBox for each child

class janim.gui.handlers.select.BasicAttrs(viewer: AnimViewer)

Bases: object

janim.gui.handlers.select.get_fixed_camera_info() CameraInfo

The return value is used to help compute the bounding box of fixed-in-frame items