{#each edges as e (e.id)} {#if e.cableLabel} {@const m = cableLabelPos(e)} {e.cableLabel} {/if} {/each} {#each nodes as n (n.id)} onSelect?.(n)} onkeydown={(e) => handleKey(e, n)} > {#if nodesWithChildren.has(n.id)} {displayNodeLabel(n)} {#if n.kind === 'pte' && pteAttributes[n.label]?.box_telecom} {displayBoxTelecom(pteAttributes[n.label].box_telecom)} {/if} {:else} {displayNodeLabel(n)} {#if n.kind === 'pte' && pteAttributes[n.label]?.box_telecom} {displayBoxTelecom(pteAttributes[n.label].box_telecom)} {/if} {/if} {/each}