emphasis

emphasis.dimExcept

dimExcept(keepNodeIds: string[], opts: object): void

Programmatic dim. Apply an arbitrary keep set — every node / edge outside it fades out via the same per-instance shader path that hover-neighbor-highlight uses. Hover events are ignored while the external dim is active; call clearDim to release control.

keepNodeIdsstring[]node ids to leave undimmed
optsobject

Returns: void

Example

api.emphasis.dimExcept(["n1", "n2", "n3"]);
// ... later
api.emphasis.clearDim();