MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / getGraph

Function getGraph

frontend/packages/systemRunning/src/pages/SystemRunning.tsx:480–489  ·  view source on GitHub ↗
(opts: {
    onClickEdge?: (model: { target: string; source: string }) => void
    onClickNode?: (item: NodeClickItem) => void
  })

Source from the content-addressed store, hash-verified

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) {

Callers 1

SystemRunningFunction · 0.85

Calls 2

initGraphEventFunction · 0.85
initGraphFunction · 0.70

Tested by

no test coverage detected