diff --git a/client/app/scripts/charts/node.js b/client/app/scripts/charts/node.js index b06c96dd0..f51154b5b 100644 --- a/client/app/scripts/charts/node.js +++ b/client/app/scripts/charts/node.js @@ -12,7 +12,7 @@ const Node = React.createClass({ render: function() { const props = this.props; - const scale = this.props.nodeScale; + const nodeScale = this.props.nodeScale; const zoomScale = this.props.zoomScale; let scaleFactor = 1; if (props.focused) { @@ -29,8 +29,8 @@ const Node = React.createClass({ const onMouseClick = this.handleMouseClick; const classNames = ['node']; const animConfig = [80, 20]; // stiffness, bounce - const label = this.ellipsis(props.label, 14, scale(4 * scaleFactor)); - const subLabel = this.ellipsis(props.subLabel, 12, scale(4 * scaleFactor)); + const label = this.ellipsis(props.label, 14, nodeScale(4 * scaleFactor)); + const subLabel = this.ellipsis(props.subLabel, 12, nodeScale(4 * scaleFactor)); let labelFontSize = 14; let subLabelFontSize = 12; @@ -66,16 +66,16 @@ const Node = React.createClass({ return ( - {props.highlighted && } - - - + {props.highlighted && } + + + + x="0" y={interpolated.labelOffsetY + nodeScale(0.5 * interpolated.f)}> {label} - + {subLabel}