plugins/routers/joint.routers.manhattan.js
function getGrid(step, source, target) {

        return {
            source: source.clone(),
            x: getGridDimension(target.x - source.x, step),
            y: getGridDimension(target.y - source.y, step)
        };
    }
function getGrid(step, source, target) {

        return {
            source: source.clone(),
            x: getGridDimension(target.x - source.x, step),
            y: getGridDimension(target.y - source.y, step)
        };
    }
function getGrid ( step , source , target ) { return { source : source . clone ( ) , x : getGridDimension ( target . x - source . x , step ) , y : getGridDimension ( target . y - source . y , step ) } ; }
get grid size in x and y dimensions, adapted to source and target positions
get grid size in x and y dimensions adapted to source and target positions