Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ve-range-utils

TeselaGen3.2kMITdeprecated2.6.6

ve-range-utils has moved to @teselagen/range-utils

range utility functions

range, utils, teselagen, biojs

readme

CHANGELOG

About this Repo

This is a collection of range utility functions.

A range must be an object with a start and end property. Eg:

const myRange = {
    start: 10,
    end: 40
}

A "circular" range has a start > end. Eg:

const myRange2 = {
    start: 50,
    end: 40
}

All ranges are assumed to have 0-based inclusive indices:

rrrr 0123 start = 0, end = 3

Editing This Repo:

All collaborators:

Edit/create a new file and update/add any relevant tests. You can run npm test to make sure all tests pass. Tests will automatically be run pre-commit.

Updating this repo:

Teselagen collaborators:

Commit and push all changes Sign into npm using the teselagen npm account (npm whoami)

npm version patch|minor|major
npm publish

Outside collaborators:

fork and pull request please :)

changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

v2.6.6

  • adding getMiddleOfRange function 6431951
  • removing in-publish in favor of prepublishOnly d67ecf1
  • removing prepublishOnly in favor of prepare 596860f

v2.6.5

13 October 2021

v2.6.4

13 October 2021

v2.6.3

23 September 2021

  • fixing center angle calculation that was incorrectly taking the overlapsSelf flag into account f5be2d6

v2.6.2

23 September 2021

  • removing validate.io-nonnegative-integer-array 63cc0c8

v2.6.1

15 September 2021

  • removing fsevents as an optional dep 69b3398

v2.6.0

2 September 2021

  • Bump mocha from 2.5.3 to 6.2.0 #9
  • [Security] Bump extend from 3.0.1 to 3.0.2 #2
  • [Security] Bump eslint-utils from 1.4.0 to 1.4.2 #15
  • [Security] Bump fstream from 1.0.11 to 1.0.12 #3
  • [Security] Bump macaddress from 0.2.8 to 0.2.9 #5
  • [Security] Bump sshpk from 1.13.1 to 1.16.1 #8
  • [Security] Bump stringstream from 0.0.5 to 0.0.6 #10
  • Bump jest from 23.6.0 to 24.9.0 #13
  • [Security] Bump lodash from 4.17.4 to 4.17.13 #14
  • [Security] Bump mixin-deep from 1.3.1 to 1.3.2 #16
  • fixed bug that sends NaN start when flipped coordinates still cross… #1
  • adding a new overlapsSelf option to getRangeLength 9b89c77
  • Merge pull request #177 from TeselaGen/dependabot/npm_and_yarn/auto-changelog-2.3.0 34b9f3e
  • Merge pull request #176 from TeselaGen/dependabot/npm_and_yarn/eslint-config-teselagen-5.0.9 7dc6203

2.0.11

10 April 2016

2.0.10

8 April 2016

  • updating name of invertCircularRange to more general invertRange e0e76fd
  • adding generalized expand or contract function 7011e18

2.0.9

1 April 2016

  • adding expandOrContractRange helper function d4f0952

2.0.8

7 March 2016

  • reverting es6 syntax to es5 a591044

2.0.6

1 March 2016

2.0.5

1 March 2016

  • getRangeAngles now exports a 'centerAngle' as well 03cf63a

2.0.4

22 February 2016

  • fixing normalizePosition error where a negative position could be returned in certain cases 66cf15e

2.0.3

21 February 2016

  • adding getPositionFromAngle 4c07916

2.0.2

21 February 2016

  • adding getPositionFromAngle 2544701

2.0.1

20 February 2016

2.0.0

20 February 2016

  • Fixed: Error getting range length (which trickled into error getting range angles) 586dac0

1.0.7

10 February 2016

  • fixing es6 incompatibilities d981d91

1.0.6

10 February 2016

1.0.5

10 February 2016

1.0.4

10 February 2016

1.0.3

10 February 2016

1.0.2

10 February 2016

  • moving to Teselagen github 4fd5d3d
  • adding circular range utils 25ccbae