(nodes, id)
| 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 => { |
no outgoing calls
no test coverage detected