interval-tree2
interval-tree2 copied to clipboard
interval tree in CoffeeScript, available in any JS runtime
Hello, Please see the code below to find the issue that I have faced. var itree = new IntervalTree(10); itree.add(50, 80, 'foo'); itree.add(44, 199, 'bar'); itree.pointSearch(55); The result of the...
My data is this: ```javascript { id: 1, startTime: '1015', endTime: '1115'}, { id: 2, startTime: '1025', endTime: '1120'}, { id: 3, startTime: '1035', endTime: '1115'}, { id: 4, startTime:...
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...
Could you add details about how to compile your code for use in the web? On your homepage, you show: `` but there is no `dist/`folder in your repository.
Please see the gist here: https://gist.github.com/jedierikb/2b05cde2f51f65fc8e46 In the gist, I create an intervaltree with 1000 intervals. Then I do two rangesearches on that tree. There are some results missing from...
I have found what appears to be a problem with this snippet: ``` var iTreeTest = new IntervalTree(12979); iTreeTest.add(25908, 25916, '26a24e54ba5f4b098fb6bf797e57884a'); iTreeTest.add(25916, 25923, '6db3f7dee7014010bbd0b450109add3f'); //this returns both ranges, as expected...
_enhancement_ serialization / deserialization of the tree
I monkey patched the lib to allow an optional 4th param to be set on the intervals. This helps in my case because I'm interested in the objects that "own"...
Hey there, just wondering if there exists the option to not supply a midpoint for the interval tree. I'm wondering in my case because I'm not always sure what that...