feat: initial node groups #44

Merged
max merged 44 commits from feat/group-node-own into main 2026-05-05 22:08:18 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 63d5b8079d - Show all commits
@@ -41,9 +41,7 @@
{/each}
<span class="i-[tabler--arrow-right]"></span>
<button
class="bg-layer-2 opacity-100 cursor-pointer rounded-sm p-1 px-2"
>
<button class="bg-layer-2 opacity-100 cursor-pointer rounded-sm p-1 px-2">
{getGroupName(graph.currentGroupId!)}
</button>
</div>
@@ -876,7 +876,9 @@ export class GraphManager extends EventEmitter<{
const edge = groupOutputs.values().next().value!;
const outputType = edge[0].state.type?.outputs?.[edge[1]] || '*';
outputs.push({
label: outputType === '*' ? 'Output' : outputType.charAt(0).toUpperCase() + outputType.slice(1),
label: outputType === '*'
? 'Output'
: outputType.charAt(0).toUpperCase() + outputType.slice(1),
type: edge[2].state.type?.inputs?.[edge[3]].type || '*'
});
}