diff --git a/client/app/scripts/charts/edge.js b/client/app/scripts/charts/edge.js
index f443a1953..84836dd4b 100644
--- a/client/app/scripts/charts/edge.js
+++ b/client/app/scripts/charts/edge.js
@@ -14,19 +14,35 @@ class Edge extends React.Component {
}
render() {
- const { id, path, highlighted, blurred, focused, scale, contrastMode } = this.props;
+ const {
+ id,
+ path,
+ highlighted,
+ blurred,
+ focused,
+ scale,
+ source,
+ target
+ } = this.props;
const className = classNames('edge', { highlighted, blurred, focused });
- const thickness = scale * (contrastMode ? 0.02 : 0.01) * NODE_BASE_SIZE;
-
+ const thickness = (scale * 0.01) * NODE_BASE_SIZE;
+ const strokeWidth = focused ? thickness * 3 : thickness;
+ const shouldRenderMarker = (focused || highlighted) && (source !== target);
// Draws the edge so that its thickness reflects the zoom scale.
// Edge shadow is always made 10x thicker than the edge itself.
return (
-
-
+ onMouseLeave={this.handleMouseLeave}
+ >
+
+
);
}
diff --git a/client/app/scripts/charts/nodes-chart.js b/client/app/scripts/charts/nodes-chart.js
index 14e80aa37..1307a3962 100644
--- a/client/app/scripts/charts/nodes-chart.js
+++ b/client/app/scripts/charts/nodes-chart.js
@@ -84,12 +84,29 @@ class NodesChart extends React.Component {
const { panTranslateX, panTranslateY, zoomScale } = this.state;
const transform = `translate(${panTranslateX}, ${panTranslateY}) scale(${zoomScale})`;
const svgClassNames = this.props.isEmpty ? 'hide' : '';
+ const markerOffset = this.props.selectedNodeId ? '35' : '40';
+ const markerSize = this.props.selectedNodeId ? '10' : '30';
return (