0.2
New features and breaking changes
- Breaking change: node title bars can now be fully customized as any ImGui content can now be placed between the new
BeginNodeTitleBar
/EndNodeTitleBar
function calls. This change also removes theSetNodeName
function.
Calculator icon by DinosoftLabs from Flaticon
- Pins now come in different shapes: circle, quad, and triangle, in both filled and unfilled variants. The desired shape flag is passed as a function argument to
BeginInputAttribute
/BeginOutputAttribute
.
- Pins can now be offset from the node, controlled by the new
imnodes::Style::pin_offset
value.
-
Breaking change: removes
StyleFlags_PinOutline
andColorStyle_PinOutline
. -
Breaking change: replaces
SetNodePos
with two functions:SetNodeScreenSpacePos
andSetNodeGridSpacePos
. -
New editor panning utility functions:
EditorContextResetPanning
andEditorContextMoveToNode
. -
Added a multi-editor example! Check out
example/multi_editor.cpp
Fixes
- Selected nodes and links are now only deselected when clicking inside the same node editor window.
- Overlapping node UIs and backgrounds don't glitch out anymore.
A huge thanks to everyone who contributed to imnodes
!