feat: initial node groups #44
@@ -41,9 +41,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
<span class="i-[tabler--arrow-right]"></span>
|
<span class="i-[tabler--arrow-right]"></span>
|
||||||
<button
|
<button class="bg-layer-2 opacity-100 cursor-pointer rounded-sm p-1 px-2">
|
||||||
class="bg-layer-2 opacity-100 cursor-pointer rounded-sm p-1 px-2"
|
|
||||||
>
|
|
||||||
{getGroupName(graph.currentGroupId!)}
|
{getGroupName(graph.currentGroupId!)}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -876,7 +876,9 @@ export class GraphManager extends EventEmitter<{
|
|||||||
const edge = groupOutputs.values().next().value!;
|
const edge = groupOutputs.values().next().value!;
|
||||||
const outputType = edge[0].state.type?.outputs?.[edge[1]] || '*';
|
const outputType = edge[0].state.type?.outputs?.[edge[1]] || '*';
|
||||||
outputs.push({
|
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 || '*'
|
type: edge[2].state.type?.inputs?.[edge[3]].type || '*'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user