{#if showGrid !== false}
{/if} {#if graphState.boxSelection && graphState.mouseDown}
{/if} {#if graph.status === "idle"} {#if graphState.addMenuPosition}
{/if} {#if graphState.activeSocket}
{/if} {#each graph.edges as edge (getEdgeId(edge))} {@const [x1, y1, x2, y2] = getEdgePosition(edge)}
{/each}
{#each graph.nodes.values() as node (node.id)}
{/each}
{:else if graph.status === "loading"}
Loading
{:else if graph.status === "error"}
Error
{/if}
{#if showHelp}
{/if}