intervaltree:用JS实现的间隔树

时间:2024-05-20 17:29:39
【文件属性】:

文件名称:intervaltree:用JS实现的间隔树

文件大小:39KB

文件格式:ZIP

更新时间:2024-05-20 17:29:39

JavaScript

intervaltree.js 用JS实现的间隔树 演示版 var tree = new IntervalTree(intervals); var intervals = [ {start: 5, end: 10, data: {color: "red"}}, {start: 7, end: 10, data: {color: "blue"}}, {start: 7, end: 21, data: {color: "pink"}}, ]; var matchedIntervals1 = tree.queryPoint(10); var matchedIntervals2 = tree.query(10, 20); 运行摩卡测试 npm测试


【文件预览】:
intervaltree-master
----package.json(716B)
----src()
--------intervaltree.js(7KB)
----examples()
--------example.html(6KB)
--------ruler.png(953B)
--------jquery-1.8.1.min.js(91KB)
----README.md(431B)
----test()
--------main.js(1KB)

网友评论