import { getRangeLength } from "@teselagen/range-utils";
export default function getXStartAndWidthFromNonCircularRange(range, charWidth) {
  var rangeLength = getRangeLength(range);
  return {
    width: rangeLength * charWidth,
    xStart: range.start * charWidth
  };
}