MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / findNodeById

Function findNodeById

src/pages/Workspace/BluePrint.jsx:165–171  ·  view source on GitHub ↗
(nodes, id)

Source from the content-addressed store, hash-verified

163 }
164 }
165 const findNodeById = (nodes, id) => {
166 // 根据id查找node
167 const result = nodes.find(item => {
168 return item.id === id
169 })
170 return result
171 }
172 const findNodeConfigById = (id, type) => {
173 // 根据id查找node
174 const result = allNodeConfig[type].find(item => {

Callers 3

getStartNodeByEdgesFunction · 0.85
findFunction · 0.85
onSelectNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected