{# The MOMENTUM SPACE panel: the 2D map with its colorbar, the 3D density, and the header toggle between them. Nothing here is orbital-specific - what is being transformed is the controller's business. `subheader_id`, if the including template sets it, adds an empty band under the title for that page to name what it is transforming - the exciton page writes the Dyson orbital's equation there. `ekin_strip` adds a vertical energy spectrum at the left edge, mirroring the colorbar at the right. `band_map` adds the E vs k∥ view, which shares the 2D slot and its colorbar with the map; only a page with a list of ground-state orbitals has one. `real_space_view` brings the real-space scene into this panel as a third view, for a page that has no REAL SPACE panel of its own. #} {# Momentum Space #}

MOMENTUM SPACE {% if real_space_view %}{% endif %} (Ekin = 30 eV) {% if real_space_view %}{% endif %} {# Two groups, split by a rule: which space the panel is showing, then the options belonging to whichever one that is. #} {% if real_space_view %} {% endif %} {% if real_space_view %}{% endif %} {% if band_map %} {% endif %}

{% if subheader_id %}
{% endif %}
{# Left edge, opposite the colorbar: the kinetic energy the map is cut at is the other axis of the same measurement, so it belongs beside the map rather than in a panel of its own. #} {% if ekin_strip %}
{% endif %}
{# Shares the slot and the colorbar with the map: same intensity, same arbitrary units, and only one of the two is ever visible. #} {% if band_map %}{% endif %} {# Title is set live by viewer.js's updateColorbarScale() (shared by entry.js and exciton-page.js) - it has to name the unit and, for a signed (dichroism) map, the symmetric range, none of which a static string can say. #}
{# The stop handles are built by controls.js renderColorbarStops and sit over the gradient, so a colormap stop is edited where it is actually seen. The zero mark and cursor label are separate siblings so that layer's replaceChildren() never touches them. #}
{% if real_space_view %}{% endif %}