UNPKG

@kcuf/mere-color

Version:

Mere color utils for generating, manipulation, a11y purposes.

17 lines 449 B
import { EHueUnit } from '../enum'; var TURN = 360; var GRAD = TURN / 400; var RAD = TURN / (Math.PI * 2); export default function getAngleUnitValue(unit) { switch (unit === null || unit === void 0 ? void 0 : unit.toLowerCase()) { case EHueUnit.RADIAN: return RAD; case EHueUnit.GRADIAN: return GRAD; case EHueUnit.TURN: return TURN; default: return 1; } } //# sourceMappingURL=get-angle-unit-value.js.map