function parsePercent(value, maxValue) {
	        if (typeof value === 'string') {
	            if (value.lastIndexOf('%') >= 0) {
	                return parseFloat(value) / 100 * maxValue;
	            }
	            return parseFloat(value);
	        }
	        return value;
	    }
Draw text in a rect with specified position.
@param  {CanvasRenderingContext} ctx
@param  {Object} rect Displayable rect
@return {Object} textRect Alternative precalculated text bounding rect