daniel-lewis-ab / 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
11 stars 2 forks source link

Widgets overflow node until resized #2

Open daniel-lewis-ab opened 1 month ago

daniel-lewis-ab commented 1 month ago

image It doing that thing too.

daniel-lewis-ab commented 1 month ago

This is likely due to LGraphNode.configure() simply setting size rather than recalculating it.

daniel-lewis-ab commented 1 month ago

Went through the lgraphnode.js computeSize(). Didn't sentinel or print out, just refactored a bit and pondered and didn't get it yet.

atlasan commented 4 weeks ago

image That is solely due to old json: node was upgraded after creating the json, there is stored and old sizing that a computeSize would resolve. Notice the same node newly placed is correct. Solution is replace the Benchmark demo. About sizing I was working a little on that on previous branches, will try to restore free_resize option.