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

Fix LGraphNode.pos serialization #107

Closed huchenlei closed 2 months ago

huchenlei commented 2 months ago

Related issue: https://github.com/Comfy-Org/ComfyUI_frontend/issues/710

The issue has been there for a long while, only surfaced by the previous refactor on node construction in #98. The code in question is creating a float array of length 10, while the real intention should be create a float array that initializes to [10, 10].