yasmin_editor.editor_gui.selection_bundle_geometry module

Geometry helpers for clipboard bundles.

yasmin_editor.editor_gui.selection_bundle_geometry.get_bundle_bounds(bundle: SelectionBundle) tuple[float, float, float, float]

Return the selection bounding box as min_x, min_y, max_x, max_y.

yasmin_editor.editor_gui.selection_bundle_geometry.iter_bundle_points(bundle: SelectionBundle) Iterable[tuple[float, float]]

Yield all positions that participate in the selection bounds.