"use strict";

exports.__esModule = true;
exports["default"] = getXStartAndWidthFromNonCircularRange;
var _rangeUtils = require("@teselagen/range-utils");
function getXStartAndWidthFromNonCircularRange(range, charWidth) {
  var rangeLength = (0, _rangeUtils.getRangeLength)(range);
  return {
    width: rangeLength * charWidth,
    xStart: range.start * charWidth
  };
}
module.exports = exports.default;