WIP: gritty rewrite of timestamp handling

This commit is contained in:
Lachlan Kermode
2020-05-31 13:37:19 +02:00
parent cf354d1173
commit e49b0e2fb0
25 changed files with 174 additions and 156 deletions

View File

@@ -2,21 +2,23 @@ import React from 'react'
import { sizes } from '../../../common/global'
export default ({
id,
offset,
id,
start,
end,
getX,
y,
dims,
colour,
onClick
}) => {
const length = getX(end) - getX(start)
if (offset === undefined) return null
return <rect
onClick={onClick}
className='project'
x={getX(start)}
y={dims.trackHeight - (offset + sizes.eventDotR)}
y={dims.marginTop + 100}
width={length}
style={{ fill: colour, fillOpacity: 0.2 }}
height={2 * sizes.eventDotR}