Commit 13a56db77e095500eb68f9e4a064587c2f48bbfa
Limit to max and min time
cel committed on 3/6/2021, 5:18:07 PMParent: ff98921335def95aebf4415c69f785dca02cbcc9
Files changed
run.js | changed |
run.js | |||
---|---|---|---|
@@ -71,8 +71,9 @@ | |||
71 | 71 … | pull.filter(Boolean), | |
72 | 72 … | pull.map(JSON.parse), | |
73 | 73 … | pull.drain(function (interval) { | |
74 | 74 … | var x = interval.time - startT | |
75 … | + if (x <= 0 || x > width) return | ||
75 | 76 … | var ids = interval.ids.sort(compareIds) | |
76 | 77 … | for (var i = 0; i < ids.length; i++) { | |
77 | 78 … | var id = ids[i] | |
78 | 79 … | var y = height - i |
Built with git-ssb-web