Commit Graph

1168 Commits

Author SHA1 Message Date
Chenlei Hu
dc24c6617f Revert "[Refactor] Move node title background draw logic to LGraphNode (#452)" (#455)
This reverts commit 047bf68dc9.
2025-02-03 23:34:46 -05:00
Chenlei Hu
f2fada0eab Remove LGraphCanvas._graph_stack (legacy subgraph) (#454) 2025-02-03 23:32:22 -05:00
Chenlei Hu
b3dbc41368 Remove LGraphNode.subgraph (Legacy subgraph) (#453)
* Remove LGraphNode.subgraph (Legacy subgraph)

* Update snapshot
2025-02-03 23:27:11 -05:00
Chenlei Hu
047bf68dc9 [Refactor] Move node title background draw logic to LGraphNode (#452) 2025-02-03 23:20:51 -05:00
Chenlei Hu
9a1c322490 Remove unnecessary getter/setter register on LGraphNode.shape (#450) 2025-02-03 23:02:55 -05:00
Chenlei Hu
6cf1f2d627 [Refactor] Move shape fallback from LGraphCanvas to LGraphNode (#451)
* [Refactor] Move shape fallback from LGraphCanvas to LGraphNode

* nit
2025-02-03 23:02:42 -05:00
Chenlei Hu
610ebd6ffe 0.8.66 (#449) 2025-02-03 20:27:20 -05:00
Chenlei Hu
9d8e49b8f8 Remove LGraphNode.supported_extensions (#448) 2025-02-03 20:26:37 -05:00
Chenlei Hu
0500d77665 Replace zoom scale check with low_quality flag check (#447)
* Replace zoom scale check with low_quality flag check

* nit
2025-02-03 20:07:27 -05:00
filtered
108af616d8 Remove unused code - wrapFunctionAsNode (#445) 2025-02-03 17:33:55 -05:00
Chenlei Hu
f7db430da8 0.8.65 (#446) 2025-02-03 17:33:35 -05:00
Chenlei Hu
1da2c8a914 [Refactor] Move node color fallback from LGraphCanvas to LGraphNode (#444)
* [Refactor] Move node color fallback from LGraphCanvas to LGraphNode

* nit
2025-02-03 16:51:01 -05:00
Chenlei Hu
4844311f3b Add ts-strict-ignore plugin (#443)
* Add ts-strict-ignore plugin

* nit
2025-02-03 15:49:58 -05:00
Chenlei Hu
0ee671843b Use consistent low_quality threshold in LGraphCanvas (#442)
* Use consistent low_quality threshold in LGraphCanvas

* Add LGraphCanvas.low_quality_zoom_threshold
2025-02-03 15:04:04 -05:00
Chenlei Hu
682f4c624f 0.8.64 (#441) 2025-02-03 14:15:36 -05:00
Chenlei Hu
5ba6472c70 Remove LGraphCanvas.render_title_colored (#440)
* Remove LGraphCanvas.render_title_colored

* Simplify logic
2025-02-03 14:12:04 -05:00
Chenlei Hu
3e133b71e6 [Refactor] Add LGraphNode.title_mode (#439) 2025-02-03 13:57:14 -05:00
Chenlei Hu
00de6ae960 Fix LGraphNode.height (#438)
* Fix LGraphNode.height

* nit
2025-02-03 12:42:27 -05:00
Chenlei Hu
eb47a3aab2 0.8.63 (#437) 2025-02-02 23:04:02 -05:00
Chenlei Hu
655ddfd1df Fix strokeShape default option values (#436)
* Move comments

* Fix strokeShape default values
2025-02-02 23:03:42 -05:00
Chenlei Hu
817214e6da [Refactor] Move strokeShape from LGraphCanvas to draw (#435)
* [Refactor] Move strokeShape from LGraphCanvas to draw

* Fix round radius

* nit

* nit

* nit
2025-02-02 22:29:26 -05:00
Chenlei Hu
a4791f6e6b Remove unused LGraphCanvas.onConnectingChange (#434) 2025-01-30 15:40:55 -08:00
filtered
33d41a452e 0.8.62 (#433) 2025-01-27 19:41:49 +11:00
bymyself
9a8c3dff89 Remove scaling of context menus (#431)
* remove scaling of context menus based on graph scale

* deprecate scale in interface

* Add option to restore old context scaling behaviour

Revert "remove scaling of context menus based on graph scale"

This reverts commit d91ecaa86c671aea272844c3900a18da1af7bf01.

* Update test expectations

---------

Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2025-01-27 19:41:08 +11:00
Chenlei Hu
f48cbb6a82 0.8.61 (#429) 2025-01-20 14:03:11 -05:00
filtered
604a3e651c Fix TS types - Widgets (#428)
* Remove downstream types

These optional type definitions were test code and should not have been upstreamed.

* Remove unnecessary workaround

Build workaround TS conversion; no longer relevant.

* Fix TS type - widget size callback
2025-01-20 14:02:37 -05:00
Chenlei Hu
76ebabb2e2 0.8.60 (#425) 2025-01-04 20:28:56 -05:00
christian-byrne
b1f8afea2f fix nullish condition 2025-01-04 20:27:42 -05:00
bymyself
06b6da1353 Update src/LGraphCanvas.ts
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2025-01-04 20:27:42 -05:00
christian-byrne
6c037ca629 Fix dragging behavior in LGraphCanvas to depend on pointer state 2025-01-04 20:27:42 -05:00
huchenlei
34eb1c2add 0.8.59 2025-01-03 11:12:18 -05:00
filtered
a548a72f66 Fix selection box is always a square 2025-01-03 11:11:11 -05:00
huchenlei
318c4e27a2 0.8.58 2025-01-02 16:47:58 -05:00
huchenlei
459e0909a5 0.8.57 2025-01-02 15:53:12 -05:00
Chenlei Hu
f2d257a469 0.8.56 (#416) 2025-01-02 15:51:42 -05:00
Chenlei Hu
c480dca814 0.8.55 (#415) 2025-01-02 15:46:27 -05:00
bymyself
bee9c18a31 Enhance context menu scrolling behavior (#414) 2025-01-02 14:57:05 -05:00
Chenlei Hu
b308a81e38 0.8.54 (#413) 2025-01-01 19:35:30 -05:00
filtered
c64c81882c Add workaround for Firefox pointer events (#412)
* Add workaround for Firefox pointer events

Co-Authored-By: catboxanon <122327233+catboxanon@users.noreply.github.com>

* nit

---------

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>
Co-authored-by: huchenlei <huchenlei@proton.me>
2025-01-01 19:34:58 -05:00
Chenlei Hu
e11e7f8052 0.8.53 (#410) 2024-12-30 00:20:33 -05:00
Chenlei Hu
edaf2933e1 Track LGraphState.draggingCanvas (#409)
* Track LGraphState.draggingCanvas

* nit
2024-12-30 00:20:01 -05:00
Chenlei Hu
3579436817 0.8.52 (#408) 2024-12-30 00:11:08 -05:00
Chenlei Hu
7d77fceffa Properly update cursor style on mouse/keyboard events (#407)
* Properly update cursor style on mouse/keyboard events

* nit
2024-12-30 00:10:26 -05:00
Chenlei Hu
757560f6e2 0.8.51 (#406) 2024-12-29 23:40:02 -05:00
Chenlei Hu
8856983597 Upstream cursor style (#405) 2024-12-29 23:39:23 -05:00
Chenlei Hu
1c6d34e948 Update test-comfyui-frontend (#404) 2024-12-29 16:40:01 -05:00
Chenlei Hu
6396e246f8 0.8.50 (#402) 2024-12-27 13:53:34 -05:00
filtered
802e734657 Fix deeply nested context menus remain open (#399)
* nit - Remove redundant workaround

* Fix deeply nested context menus remain open
2024-12-27 13:52:35 -05:00
filtered
0b161c1195 Fix scaled font blurriness in context menus (#400)
Requires that fonts scale in increments of 0.25.
2024-12-27 13:51:53 -05:00
Chenlei Hu
54d7292d24 Stricter return value check on LGraphCanvas.getExtraMenuOptions (#401) 2024-12-27 13:51:31 -05:00