WIP: project bars starting to magic...

This commit is contained in:
Lachlan Kermode
2020-03-26 13:24:53 +01:00
parent f832215522
commit 678d63f78b
4 changed files with 67 additions and 13 deletions

View File

@@ -183,3 +183,7 @@ export function getEventOpacity (events) {
const base = events.length >= 1 ? 0.3 : 0
return base + (Math.min(0.5, 0.08 * (events.length - 1)))
}
export const dateMin = function () { return Array.prototype.slice.call(arguments).reduce(function (a, b) { return a < b ? a : b }) }
export const dateMax = function () { return Array.prototype.slice.call(arguments).reduce(function (a, b) { return a > b ? a : b }) }