{#each waypoints as w (w.data.symbol)} {@const p = systemPos(w.data)} {@const click = (e: IntersectionEvent) => { e.stopPropagation(); onSelect(w.data.symbol); }} {@const enter = (e: IntersectionEvent) => { e.stopPropagation(); hovered = w.data.symbol; }} {@const leave = () => { if (hovered === w.data.symbol) hovered = null; }} {#if w.data.kind === 'planet' || w.data.kind === 'gas_giant' || w.data.kind === 'moon'} {:else if w.data.kind === 'station'} {:else if w.data.kind === 'jump_gate'} {:else if w.data.kind === 'asteroid_field'} {:else if w.data.kind === 'wormhole'} {:else if w.data.kind === 'derelict'} {:else} {/if} {#if selected === w.data.symbol} {/if} {#if highlights.has(w.data.symbol)} {/if} {w.data.symbol} {/each} {#each ships as ship (ship.data.symbol)} {/each}