Commit Graph

1246 Commits

Author SHA1 Message Date
bymyself
e800eeb202 type selected_nodes (#541) 2025-02-18 11:48:54 -05:00
Chenlei Hu
f010180b79 0.8.84 (#540) 2025-02-17 17:23:03 -05:00
Chenlei Hu
9288709497 Trigger onSelectionChange on deleteSelected (#539) 2025-02-17 17:22:32 -05:00
Chenlei Hu
8c6979223d 0.8.83 (#538) 2025-02-16 20:25:29 -05:00
Chenlei Hu
28e86820d6 Trigger LGraphCanvas.onSelectionChange on drag-select (#537) 2025-02-16 20:24:59 -05:00
Chenlei Hu
7d97a6e505 0.8.82 (#536) 2025-02-16 11:38:28 -05:00
Chenlei Hu
1e71da9a38 Show widget input inplace (#535)
* Show widget input inplace

* nit

* nit
2025-02-16 11:37:47 -05:00
Chenlei Hu
52a96a14d6 0.8.81 (#534) 2025-02-15 14:36:25 -05:00
Chenlei Hu
7a25899ecc Reverse computeSize and computeLayoutSize priority (#533) 2025-02-15 14:35:09 -05:00
Chenlei Hu
62254c1d4d 0.8.80 (#532) 2025-02-14 19:27:28 -05:00
Chenlei Hu
d23a320f9f Upstream frontend widgets layout logic (#531)
* Upstream frontend widgets layout logic

* Add back LGraphNode.freeWidgetSpace

* nit

* update expectations
2025-02-14 19:22:37 -05:00
Chenlei Hu
5bed4fbb70 0.8.79 (#530) 2025-02-14 14:16:54 -05:00
Chenlei Hu
a5c89c0152 [Performance] Avoid double measure on node rendering (#529)
* [Performance] Avoid double measure on node rendering

* Move _collapsed_width calc

* nit

* nit

* nit

* nit

* nit
2025-02-14 14:15:40 -05:00
Chenlei Hu
de10bf0c3a [Cleanup] Remove LGraphCanvas.adjustNodesSize (#528) 2025-02-14 11:10:40 -05:00
Chenlei Hu
75267957d5 Use LGraphNode.setSize (#527) 2025-02-14 11:06:49 -05:00
Chenlei Hu
ce44cea409 Split layout and draw for slots (#524)
* Split layout and draw for slots

* nit

* nit

* Fix serialization

* Move effect (highlight/invalid) to layout calculation

* nit

* Fix type issue

* Resolve review comments
2025-02-13 20:20:57 -05:00
Chenlei Hu
5d03f4477e 0.8.78 (#523) 2025-02-12 15:53:12 -05:00
Chenlei Hu
361a1a76ef Add LGraphNode.getExtraSlotMenuOptions hook (#522) 2025-02-12 15:52:27 -05:00
Chenlei Hu
9abcf0fd32 Remove LGraphNode.horizontal (#521)
* Remove LGraphNode.horizontal

* nit
2025-02-12 15:11:59 -05:00
Chenlei Hu
aa25db1dfd Update test-comfyui-frontend.yml (#520)
Update devtools ref
2025-02-12 11:40:13 -05:00
Chenlei Hu
550a65bf7a 0.8.77 (#519) 2025-02-12 11:07:15 -05:00
Chenlei Hu
7813e5207a Revert "Revert "Convert i/o slot to class in LGraphNode.configure"" (#518)
* Revert "Revert "Convert i/o slot to class in LGraphNode.configure (#506)" (#511)"

This reverts commit d029bd8924.

* nit
2025-02-12 11:06:35 -05:00
Chenlei Hu
e87b17fb27 0.8.76 (#515) 2025-02-10 14:38:00 -05:00
Chenlei Hu
f0eca030c4 [BugFix] Trigger IWidget.callback on widget drag (#514) 2025-02-10 14:37:16 -05:00
Chenlei Hu
adff23bb84 Add ISerialisedNode.widgets_values documentation (#513) 2025-02-10 11:17:09 -05:00
Chenlei Hu
38ef72cd90 0.8.75 (#512) 2025-02-09 23:36:59 -05:00
Chenlei Hu
d029bd8924 Revert "Convert i/o slot to class in LGraphNode.configure (#506)" (#511)
This reverts commit c75157e86e.
2025-02-09 23:35:40 -05:00
Chenlei Hu
6dd93a54a6 0.8.74 (#509) 2025-02-09 20:22:47 -05:00
Chenlei Hu
c75157e86e Convert i/o slot to class in LGraphNode.configure (#506) 2025-02-09 15:23:38 -05:00
Chenlei Hu
997d673bd9 [Refactor] LgraphNode.drawSlots (#503)
* wip

* nit
2025-02-09 12:53:41 -05:00
Chenlei Hu
62adcf7184 [CI] Update ComfyUI_devtools (#504) 2025-02-09 12:42:38 -05:00
Chenlei Hu
048fa5bb88 [Refactor] NodeSlot.isValidTarget (#501) 2025-02-09 11:59:52 -05:00
Chenlei Hu
a5ee5bfbad Fix ComfyUI_devtools ref (#502)
* Fix ComfyUI_devtools_ref

* nit
2025-02-09 11:59:41 -05:00
Chenlei Hu
120c606f07 [Refactor] LGraphNode.drawCollapsedSlots (#500) 2025-02-09 11:02:20 -05:00
Chenlei Hu
01b8ae5bb8 [Refactor] LGraphNode.drawWidgets (#499) 2025-02-08 23:41:01 -05:00
Chenlei Hu
f26807f931 [Refactor] NodeSlot.drawCollapsed (#498) 2025-02-08 23:00:58 -05:00
Chenlei Hu
7472d1d9a1 [nit] Move labelPosition to NodeSlot.draw (#497) 2025-02-08 22:39:32 -05:00
Chenlei Hu
64fddc078c [nit] Simplifiy node i/o slot loop (#496) 2025-02-08 22:35:18 -05:00
Chenlei Hu
7e76fd58a1 [nit] Use void return type on LGraphCanvas.drawNodeWidgets (#495) 2025-02-08 22:07:13 -05:00
Chenlei Hu
0d5f7d79bd [CI] Add lint/format/typecheck to ci (#494) 2025-02-08 21:24:06 -05:00
Chenlei Hu
de74d8a08c [Lint] Lint unused imports (#493) 2025-02-08 21:20:39 -05:00
Chenlei Hu
12f8d33b78 [Cleanup] Remove unused param on LGraphCanvas.drawWidgets (#492) 2025-02-08 19:30:16 -05:00
Chenlei Hu
4d36369cd8 Refactor widget switch statement (#491) 2025-02-08 19:28:38 -05:00
Chenlei Hu
64365acf7d Revert "Revert "[Refactor] Update style (#473)" (#487)" (#490)
This reverts commit aa358403ac.
2025-02-08 18:29:54 -05:00
Chenlei Hu
92b0783a9b Prevent modification on zooming_center arg in DragAndScale (#489) 2025-02-08 18:29:45 -05:00
Chenlei Hu
51144e956c 0.8.73 (#488) 2025-02-08 17:52:32 -05:00
Chenlei Hu
aa358403ac Revert "[Refactor] Update style (#473)" (#487)
This reverts commit c9f6b5ece8.
2025-02-08 17:51:50 -05:00
Chenlei Hu
8ca184c0f8 0.8.72 (#486) 2025-02-08 17:29:33 -05:00
Chenlei Hu
cdaceebcaa Implement SliderWidget (#485) 2025-02-08 17:28:25 -05:00
Chenlei Hu
2d688a896d Implement TextWidget (#484) 2025-02-08 17:01:54 -05:00