Skip to content
Alexandre M edited this page May 26, 2015 · 10 revisions

Ranges

Interface:

  • from: Start of the range 0-based. Always relative to the sense strand.
  • size: Can be 0.
  • reverse: Which strand the range applies to.
  • to: Value is exclusive (previously was inclusive for forward strand). Will always be >= from.
class Range {
  from: number;
  size: number;
  reverse: boolean;
  constructor({from, size, reverse = false}) {
    this.from = from;
    this.size = size;
    this.reverse = reverse;
  }
  get to() { return this.from + this.size; }
}

Range model added with 218756

Clone this wiki locally