mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Adds node.networks to the debug toolbar nodes
This commit is contained in:
@@ -30,12 +30,14 @@ function getPoints(h) {
|
||||
}
|
||||
|
||||
|
||||
export default function NodeShapeHex({id, highlighted, size, color, metric}) {
|
||||
export default function NodeShapeHex({id, highlighted, size, color, metric, networks}) {
|
||||
const pathProps = v => ({
|
||||
d: getPoints(size * v * 2),
|
||||
transform: `rotate(90) translate(-${size * getWidth(v)}, -${size * v})`
|
||||
});
|
||||
|
||||
console.log('netz', networks);
|
||||
|
||||
const shadowSize = 0.45;
|
||||
const upperHexBitHeight = -0.25 * size * shadowSize;
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ class NodesChartNodes extends React.Component {
|
||||
matches={searchNodeMatches.get(node.get('id'))}
|
||||
highlighted={node.get('highlighted')}
|
||||
shape={node.get('shape')}
|
||||
networks={node.get('networks')}
|
||||
stack={node.get('stack')}
|
||||
key={node.get('id')}
|
||||
id={node.get('id')}
|
||||
|
||||
@@ -178,7 +178,8 @@ class NodesChart extends React.Component {
|
||||
metrics: node.get('metrics'),
|
||||
rank: node.get('rank'),
|
||||
shape: node.get('shape'),
|
||||
stack: node.get('stack')
|
||||
stack: node.get('stack'),
|
||||
networks: node.get('networknetworks'),
|
||||
}));
|
||||
});
|
||||
|
||||
|
||||
@@ -51,9 +51,9 @@ const deltaAdd = (name, adjacency = [], shape = 'circle', stack = false, nodeCou
|
||||
label: name,
|
||||
label_minor: name,
|
||||
latest: {},
|
||||
metadata: {},
|
||||
origins: [],
|
||||
rank: name
|
||||
rank: name,
|
||||
networks: ['fe', 'be'],
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user