MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / doLayout

Function doLayout

src/components/graph/Graph.tsx:874–884  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872 }
873
874 function doLayout(): void {
875 const { filteredNodes, filteredEdges } = filterLayoutElements();
876 const newNodes: Node[] = setLayoutedElements(filteredNodes, filteredEdges);
877
878 setTimeout(() => {
879 fitView({
880 duration: 800,
881 nodes: newNodes,
882 });
883 }, 250);
884 }
885
886 // Link Share ----------------------------------------------------------------
887

Callers 1

HotbarFunction · 0.85

Calls 2

filterLayoutElementsFunction · 0.85
setLayoutedElementsFunction · 0.85

Tested by

no test coverage detected