docs: function(
        x, y, padding, width, height, centerX, centerY) {
        
        var cornerRadius = $$.math.getRoundRectangleRadius(width, height);
        
        // Check hBox
        if ($$.math.pointInsidePolygon(x, y, nodeShapes['roundrectangle'].points,
          centerX, centerY, width, height - 2 * cornerRadius, [0, -1], padding)) {
          return true;
        }
        
        // Check vBox
        if ($$.math.pointInsidePolygon(x, y, nodeShapes['roundrectangle'].points,
          centerX, centerY, width - 2 * cornerRadius, height, [0, -1], padding)) {
          return true;
        }
        
        var checkInEllipse = function(x, y, centerX, centerY, width, height, padding) {
          x -= centerX;
          y -= centerY;
          
          x /= (width / 2 + padding);
          y /= (height / 2 + padding);
          
          return (Math.pow(x, 2) + Math.pow(y, 2) <= 1);
        }
        
        
        // Check top left quarter circle
        if (checkInEllipse(x, y,
          centerX - width / 2 + cornerRadius,
          centerY - height / 2 + cornerRadius,
          cornerRadius * 2, cornerRadius * 2, padding)) {
          
          return true;
        }
        
        /*
        if (renderer.boxIntersectEllipse(x, y, x, y, padding, 
          cornerRadius * 2, cornerRadius * 2,
          centerX - width + cornerRadius,
          centerY - height + cornerRadius)) {
          return true;
        }
        */
        
        // Check top right quarter circle
        if (checkInEllipse(x, y,
          centerX + width / 2 - cornerRadius,
          centerY - height / 2 + cornerRadius,
          cornerRadius * 2, cornerRadius * 2, padding)) {
          
          return true;
        }
        
        // Check bottom right quarter circle
        if (checkInEllipse(x, y,
          centerX + width / 2 - cornerRadius,
          centerY + height / 2 - cornerRadius,
          cornerRadius * 2, cornerRadius * 2, padding)) {
          
          return true;
        }
        
        // Check bottom left quarter circle
        if (checkInEllipse(x, y,
          centerX - width / 2 + cornerRadius,
          centerY + height / 2 - cornerRadius,
          cornerRadius * 2, cornerRadius * 2, padding)) {
          
          return true;
        }
        
        return false;
      }