WIP: fade narrative lines

This commit is contained in:
Lachlan Kermode
2018-12-21 17:03:33 +00:00
parent 16d9207aa0
commit 65c7cb3962

View File

@@ -35,7 +35,7 @@ class MapNarratives extends React.Component {
getStrokeOpacity(narrative, step) {
if (this.props.narrative === null) return 0;
if (!step || narrative.id !== this.props.narrative.id) return 0.2;
if (!step || narrative.id !== this.props.narrative.id) return 0.1;
return 1;
}
@@ -53,8 +53,6 @@ class MapNarratives extends React.Component {
y1={y}
y2={p2.y}
markerStart="none"
markerEnd="url(#arrow)"
midMarker="url(#arrow)"
onClick={() => this.props.onSelectNarrative(n)}
style={{
strokeWidth: this.getStrokeWidth(n, step),
@@ -88,4 +86,4 @@ class MapNarratives extends React.Component {
}
}
export default MapNarratives;
export default MapNarratives;