plugins/routers/joint.routers.manhattan.js
function getGridOffsets(directions, grid, opt) {

        var step = opt.step;

        util.toArray(opt.directions).forEach(function(direction) {

            direction.gridOffsetX = (direction.offsetX / step) * grid.x;
            direction.gridOffsetY = (direction.offsetY / step) * grid.y;
        });
    }
function getGridOffsets(directions, grid, opt) {

        var step = opt.step;

        util.toArray(opt.directions).forEach(function(direction) {

            direction.gridOffsetX = (direction.offsetX / step) * grid.x;
            direction.gridOffsetY = (direction.offsetY / step) * grid.y;
        });
    }
function getGridOffsets ( directions , grid , opt ) { var step = opt . step ; util . toArray ( opt . directions ) . forEach ( function ( direction ) { direction . gridOffsetX = ( direction . offsetX / step ) * grid . x ; direction . gridOffsetY = ( direction . offsetY / step ) * grid . y ; } ) ; }
fix direction offsets according to current grid
fix direction offsets according to current grid