{"id":13731985,"url":"https://github.com/rokups/ImNodes","last_synced_at":"2025-05-08T06:31:02.826Z","repository":{"id":43064207,"uuid":"188405458","full_name":"rokups/ImNodes","owner":"rokups","description":"Node graph implementation for Dear ImGui. Used in https://github.com/rokups/rbfx","archived":false,"fork":false,"pushed_at":"2024-03-06T14:39:25.000Z","size":87,"stargazers_count":674,"open_issues_count":13,"forks_count":58,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-12T23:03:37.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rokups.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-24T10:49:07.000Z","updated_at":"2024-10-29T11:15:45.000Z","dependencies_parsed_at":"2024-10-30T03:27:43.907Z","dependency_job_id":null,"html_url":"https://github.com/rokups/ImNodes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokups%2FImNodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokups%2FImNodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokups%2FImNodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokups%2FImNodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rokups","download_url":"https://codeload.github.com/rokups/ImNodes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224707577,"owners_count":17356359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T02:01:43.094Z","updated_at":"2024-11-14T23:30:43.669Z","avatar_url":"https://github.com/rokups.png","language":"C++","readme":"ImNodes\n=======\n\nA standalone [Dear ImGui](https://github.com/ocornut/imgui) node graph implementation.\n\n![image](https://user-images.githubusercontent.com/19151258/59259827-23a19400-8c43-11e9-9fdb-a3e4465a98e5.png)\n\nLibrary provides core features needed to create a node graph, while leaving it to the user to define content of node.\nNode layouting is left to the user, however comprehensible example is available which can be used as a base.\n\n## A (very) trivial example\n\n```cpp\nstatic ImNodes::CanvasState canvas;\n\nif (ImGui::Begin(\"ImNodes\", nullptr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse))\n{\n    ImNodes::BeginCanvas(\u0026canvas);\n\n    struct Node\n    {\n        ImVec2 pos{};\n        bool selected{};\n        ImNodes::Ez::SlotInfo inputs[1];\n        ImNodes::Ez::SlotInfo outputs[1];\n    };\n\n    static Node nodes[3] = {\n        {{50, 100}, false, {{\"In\", 1}}, {{\"Out\", 1}}},\n        {{250, 50}, false, {{\"In\", 1}}, {{\"Out\", 1}}},\n        {{250, 100}, false, {{\"In\", 1}}, {{\"Out\", 1}}},\n    };\n\n    for (Node\u0026 node : nodes)\n    {\n        if (ImNodes::Ez::BeginNode(\u0026node, \"Node Title\", \u0026node.pos, \u0026node.selected))\n        {\n            ImNodes::Ez::InputSlots(node.inputs, 1);\n            ImNodes::Ez::OutputSlots(node.outputs, 1);\n            ImNodes::Ez::EndNode();\n        }\n    }\n\n    ImNodes::Connection(\u0026nodes[1], \"In\", \u0026nodes[0], \"Out\");\n    ImNodes::Connection(\u0026nodes[2], \"In\", \u0026nodes[0], \"Out\");\n\n    ImNodes::EndCanvas();\n}\nImGui::End();\n```\n\n![image](https://user-images.githubusercontent.com/19151258/59609404-ff045b00-911f-11e9-8dc0-361a083b6c37.png)\n","funding_links":[],"categories":["Graphics"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokups%2FImNodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokups%2FImNodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokups%2FImNodes/lists"}