(opts: {
onClickEdge?: (model: { target: string; source: string }) => void
onClickNode?: (item: NodeClickItem) => void
})
| 478 | } |
| 479 | |
| 480 | const getGraph = (opts: { |
| 481 | onClickEdge?: (model: { target: string; source: string }) => void |
| 482 | onClickNode?: (item: NodeClickItem) => void |
| 483 | }) => { |
| 484 | const graph = initGraph() |
| 485 | graph.setMaxZoom(3) |
| 486 | graph.setMinZoom(0.2) |
| 487 | initGraphEvent(graph, opts) |
| 488 | return graph |
| 489 | } |
| 490 | |
| 491 | useEffect(() => { |
| 492 | if (topologyId !== undefined) { |
no test coverage detected