interval-tree2 icon indicating copy to clipboard operation
interval-tree2 copied to clipboard

Doesn't allow minimal intervals

Open loveencounterflow opened this issue 9 years ago • 4 comments

When trying to add an interval whose start and end points coincide, an error is thrown. However, since both start and end are inclusive, that means the minimal length for an interval is 2, not 1. Conceptually, even intervals of length zero should be possible; however, since those can never match, they can be safely skipped. OTOH, intervals of length 1 are practically useful and should be supported IMHO.

loveencounterflow avatar Sep 28 '15 00:09 loveencounterflow

+1

tnrich avatar Nov 17 '15 22:11 tnrich

Any follow up on this @shinout ?

tnrich avatar Nov 20 '15 08:11 tnrich

for the time being, if people need this fix, they can install from https://github.com/tnrich/interval-tree2 npm i -S tnrich/interval-tree2

tnrich avatar Nov 24 '15 07:11 tnrich

@tnrich not working mate. any solution?

vahobrsti avatar Mar 25 '17 12:03 vahobrsti