yasmin_editor.editor_gui.selection_models module

Clipboard and extraction data structures.

class yasmin_editor.editor_gui.selection_models.OutcomePlacementSnapshot(outcome_name: str, instance_id: str, position: Position)

Bases: object

Clipboard payload for one visual outcome alias.

instance_id: str
outcome_name: str
position: Position
class yasmin_editor.editor_gui.selection_models.OutcomeRuleSnapshot(outcome_name: str, state_name: str, state_outcome: str)

Bases: object

Clipboard payload for one concurrence outcome-map rule.

outcome_name: str
state_name: str
state_outcome: str
class yasmin_editor.editor_gui.selection_models.SelectionBundle(source_kind: str, states: dict[str, ~yasmin_editor.model.state.State] = <factory>, state_positions: dict[str, ~yasmin_editor.model.layout.Position] = <factory>, outcomes: dict[str, ~yasmin_editor.model.outcome.Outcome] = <factory>, outcome_placements: list[~yasmin_editor.editor_gui.selection_models.OutcomePlacementSnapshot] = <factory>, text_blocks: list[~yasmin_editor.model.text_block.TextBlock] = <factory>, transitions: list[~yasmin_editor.model.transition.Transition] = <factory>, transition_sources: list[str] = <factory>, outcome_rules: list[~yasmin_editor.editor_gui.selection_models.OutcomeRuleSnapshot] = <factory>, start_state: str | None = None)

Bases: object

Portable clipboard payload for selected editor items.

clone() SelectionBundle
property is_empty: bool
outcome_placements: list[OutcomePlacementSnapshot]
outcome_rules: list[OutcomeRuleSnapshot]
outcomes: dict[str, Outcome]
source_kind: str
start_state: str | None
state_positions: dict[str, Position]
states: dict[str, State]
text_blocks: list[TextBlock]
transition_sources: list[str]
transitions: list[Transition]