Comfy-Org / litegraph.js

A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently.
MIT License
52 stars 12 forks source link

Add litegraph:group-double-click event #109

Closed huchenlei closed 2 months ago

huchenlei commented 2 months ago

Other behavior change: double click on group no longer trigger the searchbox.

huchenlei commented 2 months ago

Expected error as we added type definition for pos and size for LGraphGroup in this PR.

Error: src/extensions/core/snapToGrid.ts(159,11): error TS2578: Unused '@ts-expect-error' directive.
Error: src/extensions/core/snapToGrid.ts(165,11): error TS2578: Unused '@ts-expect-error' directive.
Error: src/extensions/core/snapToGrid.ts(186,11): error TS2[57](https://github.com/Comfy-Org/litegraph.js/actions/runs/10673294666/job/29582122008?pr=109#step:11:58)8: Unused '@ts-expect-error' directive.
Error: src/extensions/core/snapToGrid.ts(188,11): error TS2578: Unused '@ts-expect-error' directive.