{"size": 468, "ext": "js", "max_stars_repo_path": "src/getLightHelper.es6.js", "max_stars_repo_name": "lagora/proc.edu.ria", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/getLightHelper.es6.js", "max_issues_repo_name": "lagora/proc.edu.ria", "max_issues_repo_issues_event_min_datetime": "2017-11-15T12:17:45.000Z", "max_issues_repo_issues_event_max_datetime": "2017-11-15T12:17:45.000Z", "max_forks_repo_path": "src/getLightHelper.es6.js", "max_forks_repo_name": "lagora/proc.edu.ria", "max_forks_repo_forks_event_min_datetime": "2016-05-25T14:53:14.000Z", "max_forks_repo_forks_event_max_datetime": "2016-05-25T14:53:14.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 23.4, "max_line_length": 69, "alphanum_fraction": 0.6730769231}
import THREE from "three";

function getLightHelpers(cfg, lightType, light) {
  let helper;
  switch (lightType) {
    case "HemisphereLight":
      helper = new THREE.HemisphereLightHelper(light, 4);
      break;
    case "DirectionalLight":
      helper = new THREE.DirectionalLightHelper(light, cfg.size + 1);
      break;
    case "spotLight":
      helper = new THREE.SpotLightHelper(light);
      break;
    }
  return helper;
}

export default getLightHelpers;
