Chenlei Hu
acfb95f8d4
Use LGraphNode.setSize ( #2555 )
2025-02-14 11:02:56 -05:00
Chenlei Hu
8bb785c5e4
Show convert to widget option slot context menu ( #2538 )
2025-02-12 16:07:19 -05:00
Chenlei Hu
340513e27f
Type INodeSlot.widget ( #2463 )
2025-02-07 14:33:21 -05:00
filtered
d2e9943e79
Add convert to input for the clicked widget ( #2357 )
...
Co-authored-by: github-actions <github-actions@github.com >
2025-01-26 07:06:41 -05:00
pythongosssss
c77a5cab5b
Add support for nested dynamic prompts ( #2117 )
2025-01-01 15:29:17 -05:00
Chenlei Hu
d8f074fea0
[Lint] Sort imports ( #2104 )
2024-12-30 17:26:37 -05:00
Chenlei Hu
ca9627cada
Move widget link drop conversion to widgetInputs ( #2001 )
...
Co-authored-by: github-actions <github-actions@github.com >
2024-12-20 16:10:18 -08:00
Chenlei Hu
c4d3c672ad
Enforce ComfyExtension types ( #1718 )
...
* Enforce extension types
* nit
2024-11-27 15:35:18 -05:00
filtered
7e245ba1cf
Update Litegraph: Canvas Pointer ( #1556 )
...
* Litegraph: canvas.pointer
Clear @ts-expect-error
Fix exception thrown on slot double-click
Long-standing bug but has no real impact in prod - just logs an error.
Required for new connecting_link features.
Add settings: CanvasPointer options
Update litegraph 0.8.28
Fix regression in snap to grid render
Fix snap to grid marker always on
Update snap to grid to use Positionable API
Fix test clicks registering as double-click
Improve test precision
Current test proves it has changed to something smaller.
New test proves it is exactly what was specified.
Will need refinement when a limit is put on latent width.
Fix test expects collapse node to select node
Remove redundant code
Resolved by CanvasPointer
Fix flaky test - ContextMenu
Fix settings group
* Update litegraph
* Remove snapToGrid extension
* Update test expectations [skip ci]
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
Co-authored-by: github-actions <github-actions@github.com >
2024-11-18 10:50:51 -05:00
filtered
45380f7ca0
Fix TypeError thrown ( #1461 )
...
Missing node type + reroute linked
2024-11-07 20:17:16 -05:00
filtered
394df49208
Fix primitive size on load ( #1407 )
2024-11-03 09:29:39 -05:00
filtered
1366c8cb44
Fix primitive resize when node size ref retained ( #1405 )
...
* Fix primitive resize when node size ref retained
Primitive assumes that setting node size property will replace the ref. Minimal change.
* Use explicit variable names
2024-11-02 16:14:49 -04:00
Chenlei Hu
5611e90fda
Add ts-strict-ignore plugin ( #1235 )
...
* Add ts-strict-ignore plugin
* nit
* Add to typecheck script
2024-10-12 11:56:49 -04:00
Chenlei Hu
dee1ec1a2a
Update Litegraph (TypeScript conversion) ( #1145 )
...
* Fix various type errors
* Fix rest of ts errors
* update litegraph
* nit
2024-10-07 11:31:54 -04:00
bymyself
9cbfc9856b
Fix widget/input conversion on text widgets ( #1129 )
...
* Support converting dynamically created text widgets to input
* Fix array contains
* Add test wait
* Try to fix test only failing in CI
* Fix test: Disable conversion option nesting in contextmenu
2024-10-07 11:22:28 -04:00
filtered
f2017291d6
Prevent converted widget being duplicated ( #1115 )
2024-10-05 08:49:17 -04:00
pythongosssss
a2bd2a9bae
Implement creating inputs by dragging link to widget ( #1021 )
...
* Implement creating inputs by dragging link to widget
* Update litegraph
* Add playwright test
* Update test expectations [skip ci]
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
Co-authored-by: github-actions <github-actions@github.com >
2024-10-01 12:53:38 -04:00
Chenlei Hu
2878952b1d
Makes forceInput node input slot correctly reflect option/required state ( #921 )
...
* Correctly style optional force input input slot
* Add force input playwright test
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-09-22 16:35:56 +09:00
Chenlei Hu
12c699cc87
Update litegraph (Getters) ( #829 )
...
* Update litegraph (Getters)
* Update
2024-09-14 17:10:57 +09:00
filtered
9483cfe915
Add graceful correction when widgets undef. ( #820 )
...
Fixes crash on load of workflow where `node.widgets` has no `.find()`
2024-09-14 08:33:43 +09:00
Chenlei Hu
8ce7b515a3
Fix ComfyExtension types ( #778 )
2024-09-11 10:43:01 +09:00
pythongosssss
d0067719b8
Fix primitive resize ( #683 )
...
* Fix primitive resize on load
Fixes #676
* Add test
* Add playwright test
* Update test expectations [skip ci]
---------
Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca >
Co-authored-by: github-actions <github-actions@github.com >
2024-08-29 18:01:57 -04:00
Chenlei Hu
6f9d2bfa17
Relands "Add support for LiteGraph to convert to classes" ( #667 )
...
* Revert "Revert "Add support for LiteGraph to convert to classes (#334 )" (#386 )"
This reverts commit d607f6c7f7 .
* Format
2024-08-28 15:35:05 -04:00
Chenlei Hu
0c53ab9177
Fix context menu on node with only optional input ( #514 )
2024-08-18 16:25:45 -04:00
Chenlei Hu
ec5f1152da
Organize setting display for new settings dialog ( #507 )
2024-08-18 11:31:50 -04:00
Yuta Hayashibe
9f3696e70f
Fix typos ( #404 )
...
* Fix typos: Interupt -> Interrupt
* Fix typos: tempateManagerRow -> templateManagerRow
* Fix some typos
* Fix typos: Convertable -> Convertible
* Fix some typos
2024-08-13 13:57:02 -04:00
Chenlei Hu
d607f6c7f7
Revert "Add support for LiteGraph to convert to classes ( #334 )" ( #386 )
...
This reverts commit e2141a81e2 .
2024-08-12 09:19:10 -04:00
filtered
e2141a81e2
Add support for LiteGraph to convert to classes ( #334 )
...
* Add support for LiteGraph to convert to classes
* Fix large context menu search regression
* Remove debug code
* Fix regression from rename & prototype change
* Fix super() calls to match LGraphNode
2024-08-11 09:46:54 -04:00
Chenlei Hu
3269b54aae
Sync 2666 Execution Model Inversion ( #312 )
...
* Sync 2666 Execution Model Inversion
* Fix unittest
* Fallback compatible
2024-08-05 16:42:37 -04:00
pythongosssss
7a980f46c9
Add support for node/input/output tooltips ( #287 )
...
* Add support for node/input/output tooltips
* pr feedback
* Remove
2024-08-04 11:54:46 -04:00
余腾靖
b5a919e8b2
fix: remove useless @ts-ignore and migrate to @ts-expect-error ( #293 )
...
* fix: vite primevue/treenode import error
* refactor: remove useless @ts-ignore and replace with @ts-expect-error
* build(tsconfig): enable incremental to speed up secondary time type check
2024-08-04 07:22:24 -04:00
Chenlei Hu
e179f75387
Apply new code format standard ( #217 )
2024-07-25 10:10:18 -04:00
pythongosssss
9762b7884c
Convert more js to ts ( #101 )
...
* Add testing for ComfyUI examples
* Remove examples, add test to github action
* Create dir
* Update readme
* Convert additional files to ts
2024-07-08 17:20:35 +01:00