From 65c7cb396274b552a75539dab39aaa008e9a7dbf Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Fri, 21 Dec 2018 17:03:33 +0000 Subject: [PATCH] WIP: fade narrative lines --- src/components/MapNarratives.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/MapNarratives.jsx b/src/components/MapNarratives.jsx index 666df0e..8835fec 100644 --- a/src/components/MapNarratives.jsx +++ b/src/components/MapNarratives.jsx @@ -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; \ No newline at end of file +export default MapNarratives;