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

Function findNodeConfigById

src/pages/Workspace/BluePrint.jsx:172–178  ·  view source on GitHub ↗
(id, type)

Source from the content-addressed store, hash-verified

170 return result
171 }
172 const findNodeConfigById = (id, type) => {
173 // 根据id查找node
174 const result = allNodeConfig[type].find(item => {
175 return item.id === id
176 })
177 return result
178 }
179 const findEdgesById = (edges, id, type = "target") => {
180 // 查找taget为id的所有edges type : target source
181 const result = edges.map(item => {

Callers 1

getSetNodePropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected