Add hover highlight and link dragging features (#222)

* Add new hover highlight and link dragging features

- Hovering effects added for node inputs and outputs
- Adds "mouseout" handler to properly clear node state when mousing off a node
- Fixes bug that causes outputs to always be dimmed out when connecting from inputs
- Slight performance improvement

* Add node highlight text colour option

* Add slot highlight colour fallback
This commit is contained in:
filtered
2024-10-28 07:57:41 +11:00
committed by GitHub
parent e27bbb1e71
commit 748d35b610
4 changed files with 92 additions and 43 deletions

View File

@@ -144,7 +144,7 @@ export class LGraphNode {
_shape?: RenderShape
subgraph?: LGraph
skip_subgraph_button?: boolean
mouseOver?: boolean
mouseOver?: IMouseOverData
is_selected?: boolean
redraw_on_mouse?: boolean
// Appears unused