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

Annotations and Group Nodes #492

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

Annotations and Group Nodes #492

crystalthoughts opened this issue Jul 25, 2024 · 3 comments

Comments

@crystalthoughts
Copy link

Hello, I'm still evaluating this repo for use in a larger project so I have a couple more questions:

How easy is it to add annotations (tooltips, overlays etc) to nodes?

And is it possible to create a custom node type that acts like a sub-context ( a group with inputs and outputs and a titlebar for example?)

@atlasan
Copy link
Contributor

atlasan commented Jul 25, 2024

Hi @crystalthoughts
This library has been used successfully in some cool projects, anyway one have to dig and experiment to achieve custom solutions, there are more features than those exposed in the docs but we always need something that is no there.
You can take a look at ComfyUI and WebGLStudio and the other projects using it to see how they leverage LG.
About tooltips that would be not too difficult, I have an implementation on my personal fork https://github.com/atlasan/litegraph.js/blob/c2690fb91e72c776fc5195ce8fc5b21d31be297f/src/litegraph.js#L142
Regarding grouped nodes this original repo implements subgraphs that you can try in the demo.

@crystalthoughts
Copy link
Author

Thanks, I noticed those projects and have used them before :)

I've tried the subgraphs but I think I need to implement them in a way where you can see the contents in the same node field as the parent (like a group with added functionality). I wondered if the architecture allows for this.

Thanks for the tooltips source!

@atlasan
Copy link
Contributor

atlasan commented Jul 25, 2024

Could think of a subgraph rendered together in the main canvas, or a group with additional functionalities, finally a group of nodes with IN and OUT links is just that no?
All the best for your project, and keep us updated on how it goes ^_^

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