feat: initial node groups #44
@@ -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 || '*'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user