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

Support allowing links to widgets #180

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Support allowing links to widgets #180

merged 2 commits into from
Oct 1, 2024

Conversation

pythongosssss
Copy link
Member

@pythongosssss pythongosssss commented Sep 27, 2024

Provides a mechanism for creating links to widgets, for widget->input support by dragging instead of Right Click->Convert to Input

By default, this doesn't do anything, getWidgetLinkType needs to be implemented externally.

Enables this:
https://github.com/user-attachments/assets/360013b2-d350-4fb0-bbce-cb860178d9ed
(Sorry poor quality)

@huchenlei huchenlei merged commit c23e610 into master Oct 1, 2024
4 checks passed
@huchenlei huchenlei deleted the support-link-widget branch October 1, 2024 15:03
webfiltered added a commit to webfiltered/litegraph.js that referenced this pull request Oct 5, 2024
Support allowing links to widgets (Comfy-Org#180)
c23e610
huchenlei added a commit that referenced this pull request Oct 7, 2024
* Convert litegraph.js to TS

* Overhaul static litegraph.d.ts with updated types

* Fix rename oversights and revert fix unused param

- Some functions were broken by merging updated TS function signatures which included param renames
- Removal of unused params does not belong in the TS conversion PR, and has been reverted

* Remove legacy static .d.ts file

* Add callback decl from #180

Support allowing links to widgets (#180)
c23e610

* Convert NodeId to string | number

Results in significantly less downstream changes, despite being a change from the old static file.

---------

Co-authored-by: filtered <[email protected]>
@huchenlei huchenlei mentioned this pull request Oct 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants