MCPcopy Create free account
hub / github.com/nodejs/node / layoutGraph

Method layoutGraph

deps/v8/tools/turbolizer/src/views/graph-view.ts:478–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476 }
477
478 private layoutGraph(): void {
479 const layoutMessage = this.graph.graphPhase.stateType == GraphStateType.Cached
480 ? "Layout graph from cache"
481 : "Layout graph";
482
483 console.time(layoutMessage);
484 this.graphLayout.rebuild(this.state.showTypes);
485 const extent = this.graph.redetermineGraphBoundingBox(this.state.showTypes);
486 this.panZoom.translateExtent(extent);
487 this.minScale();
488 console.timeEnd(layoutMessage);
489 }
490
491 private appendInputAndOutputBubbles(svg: d3.Selection<SVGGElement, GraphNode, null, GraphNode>,
492 node: GraphNode): void {

Callers 2

createGraphMethod · 0.95
layoutActionMethod · 0.45

Calls 3

timeMethod · 0.45
rebuildMethod · 0.45

Tested by

no test coverage detected