mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-20 22:10:30 +00:00
color nodes by rank
This commit is contained in:
@@ -45,7 +45,7 @@ const Node = React.createClass({
|
||||
const textOffsetX = 0;
|
||||
const textOffsetY = scale(0.5) + 18;
|
||||
const isPseudo = !!this.props.pseudo;
|
||||
const color = isPseudo ? '' : this.getNodeColor(this.props.label);
|
||||
const color = isPseudo ? '' : this.getNodeColor(this.props.rank);
|
||||
const onClick = this.props.onClick;
|
||||
const onMouseEnter = this.handleMouseEnter;
|
||||
const onMouseLeave = this.handleMouseLeave;
|
||||
|
||||
@@ -87,6 +87,7 @@ const NodesChart = React.createClass({
|
||||
label={node.label}
|
||||
pseudo={node.pseudo}
|
||||
subLabel={node.subLabel}
|
||||
rank={node.rank}
|
||||
scale={scale}
|
||||
dx={node.x}
|
||||
dy={node.y}
|
||||
|
||||
Reference in New Issue
Block a user