yasmin_editor.editor_gui.selection_bundle_ops module
Compatibility exports for selection bundle collection, paste, and removal.
- yasmin_editor.editor_gui.selection_bundle_ops.collect_selection_bundle(container_model: StateMachine | Concurrence, selected_state_names: set[str], selected_outcome_instance_ids: set[str], selected_text_blocks: list[TextBlock]) SelectionBundle
Build a portable snapshot from the selected model items.
- yasmin_editor.editor_gui.selection_bundle_ops.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_ops.paste_bundle_into_model(target_model: StateMachine | Concurrence, bundle: SelectionBundle, anchor_x: float, anchor_y: float) dict[str, str]
Paste a selection snapshot into a target container model.
- yasmin_editor.editor_gui.selection_bundle_ops.remove_selection_from_model(container_model: StateMachine | Concurrence, selected_state_names: set[str], selected_outcome_instance_ids: set[str], selected_text_blocks: list[TextBlock]) None
Remove the selected items from the source model.