code: function inTableSide(table, cell, evt, top) {
          var pos = mouseCoords(evt),
              state = getRelation(cell, pos);
  
          if (top) {
              var caption = table.getElementsByTagName("caption")[0],
                  capHeight = caption ? caption.offsetHeight : 0;
              return (state == "v1") && ((pos.y - domUtils.getXY(table).y - capHeight) < 8);
          } else {
              return (state == "h1") && ((pos.x - domUtils.getXY(table).x) < 8);
          }
      }
docs: function inPosition(table, pos) { var tablePos = domUtils.getXY(table), width = table.offsetWidth, height = table.offsetHeight; if (pos.x - tablePos.x < 5 && pos.y - tablePos.y < 5) { return "topLeft"; } else if (tablePos.x + width - pos.x < 5 && tablePos.y + height - pos.y < 5) { return "bottomRight"; } }