emphasis

emphasis.setTraceDim

setTraceDim(keepNodeIds: string[], keepEdgeIds?: string[]): void

Apply trace-style dim: every node/edge outside the keep set fades out via the per-instance shader fade. Pass the result of traceNeighbor directly.

Independent of the hover-dim feature toggle. Pair with clearTrace.

keepNodeIdsstring[]Ids of nodes to leave bright.
keepEdgeIdsstring[]Ids of edges to leave bright. When omitted, defaults to every edge with both endpoints inside keepNodeIds (induced subgraph) — matches the legacy trace-neighbor visual.

Returns: void