mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
return default opacity and size
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,7 +1,7 @@
|
||||
.idea/
|
||||
build/
|
||||
node_modules/
|
||||
config.js
|
||||
*config.js
|
||||
dev.config.js
|
||||
tags
|
||||
tags.lock
|
||||
@@ -12,4 +12,4 @@ src/\.DS_Store
|
||||
\.DS_Store
|
||||
|
||||
package-lock.json
|
||||
tags
|
||||
tags
|
||||
|
||||
@@ -6,7 +6,7 @@ export const colors = {
|
||||
}
|
||||
|
||||
export const sizes = {
|
||||
eventDotR: 15
|
||||
eventDotR: 8
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
@@ -10,19 +10,7 @@ export default ({
|
||||
styleProps,
|
||||
extraRender
|
||||
}) => (
|
||||
|
||||
<rect
|
||||
onClick={onSelect}
|
||||
className='event'
|
||||
x={x}
|
||||
y={y - 0.5 * r}
|
||||
style={styleProps}
|
||||
width={r}
|
||||
height={r}
|
||||
/>
|
||||
)
|
||||
/**
|
||||
<circle
|
||||
<circle
|
||||
onClick={onSelect}
|
||||
className='event'
|
||||
cx={x}
|
||||
@@ -30,4 +18,4 @@ export default ({
|
||||
style={styleProps}
|
||||
r={r}
|
||||
/>
|
||||
**/
|
||||
)
|
||||
|
||||
23
src/components/presentational/Timeline/DatetimeSquare.js
Normal file
23
src/components/presentational/Timeline/DatetimeSquare.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from 'react'
|
||||
|
||||
export default ({
|
||||
category,
|
||||
events,
|
||||
x,
|
||||
y,
|
||||
r,
|
||||
onSelect,
|
||||
styleProps,
|
||||
extraRender
|
||||
}) => (
|
||||
|
||||
<rect
|
||||
onClick={onSelect}
|
||||
className='event'
|
||||
x={x}
|
||||
y={y - 0.5 * r}
|
||||
style={styleProps}
|
||||
width={r}
|
||||
height={r}
|
||||
/>
|
||||
)
|
||||
@@ -80,7 +80,7 @@ const TimelineEvents = ({
|
||||
fill: categoryColor,
|
||||
fillOpacity: HAS_PROJECTS
|
||||
? unlocatedEvents.some(ev => ev.projectOffset >= 0) ? getEventOpacity(unlocatedEvents) : 0.05
|
||||
: getEventOpacity(unlocatedEvents) / 3
|
||||
: getEventOpacity(unlocatedEvents)
|
||||
}
|
||||
|
||||
const extraRender = customStyles[1]
|
||||
|
||||
@@ -60,12 +60,12 @@ const initial = {
|
||||
},
|
||||
timeline: {
|
||||
dimensions: {
|
||||
height: 1000,
|
||||
height: 250,
|
||||
width: 0,
|
||||
marginLeft: 100,
|
||||
marginTop: 15,
|
||||
marginBottom: 60,
|
||||
contentHeight: 900,
|
||||
contentHeight: 200,
|
||||
width_controls: 100
|
||||
},
|
||||
range: [
|
||||
|
||||
Reference in New Issue
Block a user