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

Function findEdgesById

src/pages/Workspace/BluePrint.jsx:179–187  ·  view source on GitHub ↗
(edges, id, type = "target")

Source from the content-addressed store, hash-verified

177 return result
178 }
179 const findEdgesById = (edges, id, type = "target") => {
180 // 查找taget为id的所有edges type : target source
181 const result = edges.map(item => {
182 if (item[type] === id) {
183 return item
184 }
185 })
186 return result.filter(v => { return v })
187 }
188 const getStartNodeByEdges = (saveNodeData, edge) => {
189 // 根据edge获取当前线条的起点(事件开始)
190 const { sourceAnchor, source } = edge

Callers 2

findFunction · 0.85
onSelectNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected