rokups / ImNodes

Node graph implementation for Dear ImGui. Used in https://github.com/rokups/rbfx
MIT License
656 stars 57 forks source link

Fixes issue #10 #27

Closed roblunx closed 3 years ago

roblunx commented 3 years ago

Note that this only fixes zooming as how nodes are composed in ImNodes::Ez, not the general case.

Widgets used in the content area might need to alter the styles accordingly too.

rokups commented 3 years ago

Merged as this is a clear improvement, thanks!

It is not yet perfect though. If you place a node corner directly at the corner of background grid and zoom in/out, you can see a little gap sometimes appear between grid and node. This might be an issue with rounding/flooring of grid or node rect coordinates. But it is a battle for another day, thank you!