Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIdden Wires #491

Open
crystalthoughts opened this issue Jul 24, 2024 · 3 comments
Open

HIdden Wires #491

crystalthoughts opened this issue Jul 24, 2024 · 3 comments

Comments

@crystalthoughts
Copy link

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

@atlasan
Copy link
Contributor

atlasan commented Jul 24, 2024

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

LGraphCanvas.prototype.drawConnections = function(ctx) {

@atlasan
Copy link
Contributor

atlasan commented Jul 24, 2024

image

@crystalthoughts
Copy link
Author

Thanks, I'll give it a go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants