{% import "partials/icons.html" as ic %} {# The junction editor: the map's movements, and this scenario's timings. Split the way the document is. `signal_groups` is the road -- which signals change as one, which movements cross -- and is the same for every scenario here. `traffic_signal_controllers` is the timing, which is this scenario's to choose. Every control posts on change and swaps the whole body, like the rest of the inspector, so a rename reaches the lists that offer the name immediately. #} {%- set groups = document.map.signal_groups -%} {%- set controllers = document.map.traffic_signal_controllers -%}
Movements belong to the map; timings belong to this scenario. A phase sets every movement at once, which is what keeps a junction consistent.
{# -- the road ---------------------------------------------------------- #}Signal groups
{% if not groups %}None yet. A group is the set of signals that change together — one approach, usually.
{% endif %} {% for group in groups %}Controllers
{% if not controllers %}None yet. A controller walks its phases in a loop, each for its own duration.
{% endif %} {% for controller in controllers %} {% set ci = loop.index0 %}