implements first attempt of unlocated bars

needs profiling and better calculated styles
This commit is contained in:
Lachlan Kermode
2020-02-24 08:11:59 +13:00
parent afc84e61ac
commit 958afb6a41
9 changed files with 130 additions and 47 deletions

View File

@@ -9,18 +9,12 @@ export default ({
styleProps,
extraRender
}) => (
<g
className='datetime'
transform={`translate(${x}, ${y})`}
onClick={() => onSelect(events)}
>
<circle
className='event'
cx={0}
cy={0}
style={styleProps}
r={5}
/>
{ extraRender ? extraRender() : null }
</g>
<circle
onClick={onSelect}
className='event'
cx={x}
cy={y}
style={styleProps}
r={5}
/>
)