nl_tokens: TODO : jsDocify this if it works see [ ChartConfig#calculateDimensions ] ( #chartconfig / calculatedimensions )
pl_tokens: function calculate_xy_dimensions ( width , opts ) { var height ; var aspectRatio = opts . displayConfig . aspectRatio ; var metadata = opts . metadata ; if ( metadata . size == "auto" || opts . enableResponsive ) { // use current width } else { width = chartSizes [ metadata . size ] . width ; } switch ( metadata . size ) { case "auto" : height = <mask> * aspectRatio . wide ; break ; case 'medium' : height = width * aspectRatio . wide ; break ; case "spotLong" : height = width * aspectRatio . longSpot ; break ; case "spotSmall" : height = width * aspectRatio . smallSpot ; break ; default : height = width * aspectRatio . wide ; } return { width : width , height : height } ; }