"use strict";

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