(data → string)
- generate inverse direction
function (data) {
  var inverse = [
    ['In', 'Out'],
    ['X', 'Y'],
    ['Down', 'Up'],
    ['Left', 'Right']
  ]
  var i = 0
  var size = inverse.length
  var result
  for (i; i < size; i++) {
    var index = inverse[i]
    if (index.indexOf(data) >= 0) {
      var colm = index.indexOf(data)
      result = colm === 0 ? index[1] : index[0]
    }
  }
  return result
}