enable modifying event radius from config

This commit is contained in:
Lachlan Kermode
2020-06-08 16:47:34 +02:00
parent c473e4a998
commit 12e309ed8a
9 changed files with 31 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
import React from 'react'
import { sizes } from '../../../common/global'
export default ({
offset,
@@ -10,6 +9,7 @@ export default ({
y,
dims,
colour,
eventRadius,
onClick
}) => {
const length = getX(end) - getX(start)
@@ -21,6 +21,6 @@ export default ({
y={dims.marginTop + offset}
width={length}
style={{ fill: colour, fillOpacity: 0.2 }}
height={2 * sizes.eventDotR}
height={2 * eventRadius}
/>
}