better markers

This commit is contained in:
Lachlan Kermode
2020-04-06 19:56:51 +02:00
parent 044c6cd34a
commit 78e950d211
2 changed files with 8 additions and 11 deletions

View File

@@ -8,11 +8,12 @@ export default ({
end,
getX,
dims,
colour
colour,
onClick
}) => {
const length = getX(end) - getX(start)
return <rect
onClick={() => console.error('TODO: associate all events')}
onClick={onClick}
className='project'
x={getX(start)}
y={dims.trackHeight - offset}