litegraph.js
litegraph.js copied to clipboard
HIdden Wires
Hi, is it possible to selectively hide connection wires based on node types? For example, only showing them when selected?
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
Thanks, I'll give it a go!