enrich

fun enrich(graph: Vista, demangle: (String) -> String? = { null }, metricsJsonText: String? = null, descriptionsJsonText: String? = null, codeBrowserContexts: List<CodeBrowserUrl.Context> = emptyList(), analyzedElement: Element? = null, showFileLayer: Boolean = true, showSourceLines: Boolean = false): Vista

Canonical-order convenience wrapper: demangle → class-nesting → source URLs → icons → metrics → descriptions.

Order matters:

  • Demangling first so class extraction has a readable name.

  • Class nesting before icons so the synthesised class views also get their iconKey (CLASS → cube-outline).

  • Source URLs before icons doesn't matter — they're orthogonal.

Inputs are optional; each step is a no-op when its input is null.

Generated with STIG