litegraph.js icon indicating copy to clipboard operation
litegraph.js copied to clipboard

HIdden Wires

Open crystalthoughts opened this issue 1 year ago • 3 comments

Hi, is it possible to selectively hide connection wires based on node types? For example, only showing them when selected?

crystalthoughts avatar Jul 24 '24 14:07 crystalthoughts

Actually link has color by type, using LGraphCanvas.link_type_colors one could set the alpha of the color to 0, but will need to disable render_connections_border too to skip rendering the link shadow

Alternatively, one could override LGraphCanvas.drawConnections to achive wathever other solution https://github.com/jagenjo/litegraph.js/blob/0555a2f2a3df5d4657593c6d45eb192359888195/src/litegraph.js#L9360

atlasan avatar Jul 24 '24 15:07 atlasan

image

atlasan avatar Jul 24 '24 15:07 atlasan

Thanks, I'll give it a go!

crystalthoughts avatar Jul 25 '24 08:07 crystalthoughts