{#if nodeListLocation} (searchTerm = detail)} bind:this={nodeSearchInput} />
{#each nodeCategories as nodeCategory}
{nodeCategory[0]} {#each nodeCategory[1].nodes as nodeType} createNode(nodeType.name)} /> {/each}
{:else} No search results {/each}
{/if}
{#each linkPaths as { pathString, dataType, thick }} {/each}
{#each $nodeGraph.nodes.flatMap((node, nodeIndex) => (node.isLayer ? [{ node, nodeIndex }] : [])) as { node, nodeIndex } (nodeIndex)} {@const clipPathId = String(Math.random()).substring(2)} {@const stackDataInput = node.exposedInputs[0]} {@const extraWidthToReachGridMultiple = 8} {@const labelWidthGridCells = Math.ceil(((layerNameLabelWidths?.[String(node.id)] || 0) - extraWidthToReachGridMultiple) / 24)}
{#if node.errors} {node.errors} {node.errors} {/if}
{#if node.primaryInput} {`${dataTypeTooltip(node.primaryInput)}\nConnected to ${node.primaryInput?.connected || "nothing"}`} {/if} {#if node.primaryInput?.connected} {:else} {/if}
{#if $nodeGraph.thumbnails.has(node.id)} {@html $nodeGraph.thumbnails.get(node.id)} {/if} {#if node.primaryOutput} {`${dataTypeTooltip(node.primaryOutput)}\nConnected to ${node.primaryOutput.connected || "nothing"}`} {#if node.primaryOutput.connected} {#if $nodeGraph.nodes.find((n) => n.id === node.primaryOutput?.connected)?.isLayer} {/if} {:else} {/if} {/if} {`${dataTypeTooltip(stackDataInput)}\nConnected to ${stackDataInput.connected || "nothing"}`} {#if stackDataInput.connected} {#if $nodeGraph.nodes.find((n) => n.id === stackDataInput.connected)?.isLayer} {/if} {:else} {/if}
{node.alias || "Layer"}
(toggleLayerVisibility(node.id), e?.stopPropagation())} size={24} icon={node.visible ? "EyeVisible" : "EyeHidden"} tooltip={node.visible ? "Visible" : "Hidden"} />
{/each} {#each $nodeGraph.nodes.flatMap((node, nodeIndex) => (node.isLayer ? [] : [{ node, nodeIndex }])) as { node, nodeIndex } (nodeIndex)} {@const exposedInputsOutputs = [...node.exposedInputs, ...node.exposedOutputs]} {@const clipPathId = String(Math.random()).substring(2)}
{#if node.errors} {node.errors} {node.errors} {/if}
{node.alias || node.name}
{#if exposedInputsOutputs.length > 0}
{#each exposedInputsOutputs as parameter, index}
{parameter.name}
{/each}
{/if}
{#if node.primaryInput?.dataType} {`${dataTypeTooltip(node.primaryInput)}\nConnected to ${node.primaryInput.connected || "nothing"}`} {#if node.primaryInput.connected} {:else} {/if} {/if} {#each node.exposedInputs as parameter, index} {#if index < node.exposedInputs.length} {`${dataTypeTooltip(parameter)}\nConnected to ${parameter.connected || "nothing"}`} {#if parameter.connected} {:else} {/if} {/if} {/each}
{#if node.primaryOutput} {`${dataTypeTooltip(node.primaryOutput)}\nConnected to ${node.primaryOutput.connected || "nothing"}`} {#if node.primaryOutput.connected} {:else} {/if} {/if} {#each node.exposedOutputs as parameter, outputIndex} {`${dataTypeTooltip(parameter)}\nConnected to ${parameter.connected || "nothing"}`} {#if parameter.connected} {:else} {/if} {/each}
{/each}
{#if boxSelection}
{/if}