apply_graph_layout

Function apply_graph_layout 

Source
pub(super) fn apply_graph_layout(
    task: ResMut<'_, GraphLayoutTask>,
    stations: Query<'_, '_, (NameOrEntity, &mut Station)>,
    commands: Commands<'_, '_>,
    graph: Res<'_, Graph>,
    settings: ResMut<'_, ApplicationSettings>,
)
Expand description

Apply the graph layout once the task is complete This system should only be run if the GraphLayoutTask resource exists