{#each systems as s (s.symbol)} {@const p = galaxyPos(s)} {@const color = colorFor(s)} {@const isSel = selected === s.symbol} {@const isHover = hovered === s.symbol} ) => { e.stopPropagation(); onSelect(s.symbol); }} onpointerenter={(e: IntersectionEvent) => { e.stopPropagation(); hovered = s.symbol; }} onpointerleave={() => { if (hovered === s.symbol) hovered = null; }} /> {#if isSel} {/if} {#if fleet.has(s.symbol)} {/if} {#if highlights.has(s.symbol)} {/if} {#if isSel || isHover || fleet.has(s.symbol) || highlights.has(s.symbol) || activeEvents.has(s.symbol) || near.has(s.symbol)}
{s.symbol}
{/if} {/each}