code: 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;
          });
      }
docs: fix direction offsets according to current grid