code: function(pos) {
              var obj, i, intersectionOffset, shape;
  
              if(this.hitGraphEnabled() && this.isVisible()) {
                  for (i=0; i<INTERSECTION_OFFSETS_LEN; i++) {
                      intersectionOffset = INTERSECTION_OFFSETS[i];
                      obj = this._getIntersection({
                          x: pos.x + intersectionOffset.x,
                          y: pos.y + intersectionOffset.y
                      });
                      shape = obj.shape;
                      if (shape) {
                          return shape;
                      }
                      else if (!obj.antialiased) {
                          return null;
                      }
                  }
              }
              else {
                  return null;
              }
          }
docs: get visible intersection shape. This is the preferred
  method for determining if a point intersects a shape or not
  @method
  @memberof Kinetic.Layer.prototype
  @param {Object} pos
  @param {Number} pos.x
  @param {Number} pos.y
  @returns {Kinetic.Shape}