"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.calcPctFromPx = calcPctFromPx;
var _constants = require("../../media-single/constants");
function calcPctFromPx(width, lineLength) {
  var maxWidth = lineLength + _constants.MEDIA_SINGLE_GUTTER_SIZE;
  return (width + _constants.MEDIA_SINGLE_GUTTER_SIZE) / maxWidth;
}