thedmd / imgui-node-editor

Node Editor built using Dear ImGui
MIT License
3.73k stars 551 forks source link

Small gap between pin pivot rect and links #257

Closed tingyus839 closed 1 year ago

tingyus839 commented 1 year ago

It seems that there is always a small gap between pin pivot rect and the link itself when the width or height of pin pivot rect is greater than zero instead of a point like in Houdini example. Is it possible to remove this gap such that the links touch the border of the pin pivot rect? image

thedmd commented 1 year ago

Distance is controller by style variable PinRadius. Name is unfortunate. I think this is what you're looking for. ed::PushStyleVar(ed::StyleVar_PinRadius, 5.0f); if you change that to 0.0f, gap will be gone.