MCPcopy Create free account
hub / github.com/weaveworks/scope / getNodeColor

Function getNodeColor

client/app/scripts/utils/color-utils.js:48–53  ·  view source on GitHub ↗
(text = '', secondText = '', isPseudo = false)

Source from the content-addressed store, hash-verified

46}
47
48export function getNodeColor(text = '', secondText = '', isPseudo = false) {
49 if (isPseudo) {
50 return PSEUDO_COLOR;
51 }
52 return colors(text, secondText).toString();
53}
54
55export function getNodeColorDark(text = '', secondText = '', isPseudo = false) {
56 if (isPseudo) {

Callers 1

Calls 1

colorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…