dist/klayjs-d3-ww.js
function(kgraph) {
        zoomToFit(kgraph);
        var nodeMap = {};
        // convert to absolute positions
        toAbsolutePositions(kgraph, {x: 0, y:0}, nodeMap);
        toAbsolutePositionsEdges(kgraph, nodeMap);
        // invoke the 'finish' event
        dispatch.finish({graph: kgraph});
      }
function(kgraph) {
        zoomToFit(kgraph);
        var nodeMap = {};
        // convert to absolute positions
        toAbsolutePositions(kgraph, {x: 0, y:0}, nodeMap);
        toAbsolutePositionsEdges(kgraph, nodeMap);
        // invoke the 'finish' event
        dispatch.finish({graph: kgraph});
      }
function ( kgraph ) { zoomToFit ( kgraph ) ; var nodeMap = { } ; // convert to absolute positions toAbsolutePositions ( kgraph , { x : 0 , y : 0 } , nodeMap ) ; toAbsolutePositionsEdges ( kgraph , nodeMap ) ; // invoke the 'finish' event dispatch . finish ( { graph : kgraph } ) ; }
Apply layout for the kgraph style.
Converts relative positions to absolute positions.
Apply layout for the kgraph style . Converts relative positions to absolute positions .