Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/opentrace/opentrace
/ getNodeColor
Function
getNodeColor
ui/src/components/colors/nodeColors.ts:105–108 ·
view source on GitHub ↗
(type: string)
Source
from the content-addressed store, hash-verified
103
}
104
105
export
function
getNodeColor(
type
: string): string {
106
const
{ known, palette } = resolveColors();
107
return
known.get(
type
) ?? palette[djb2(
type
) % palette.length];
108
}
Callers
15
GetNodeResult
Function · 0.90
NodeListResult
Function · 0.90
TraverseResult
Function · 0.90
TreeRow
Function · 0.90
GraphPlayground
Function · 0.90
StreamingGraphPlayground
Function · 0.90
InternalGraphInteractionProvider
Function · 0.90
SidePanel
Function · 0.90
useGraphViewer
Function · 0.90
useGraphVisuals
Function · 0.85
useGraphInstance
Function · 0.85
nodeColors.test.ts
File · 0.85
Calls
3
resolveColors
Function · 0.70
djb2
Function · 0.70
get
Method · 0.65
Tested by
no test coverage detected