emphasis

emphasis.pathHighlight

pathHighlight(path: string[], config?: PathHighlightConfig): string

Start a path highlight effect that sequentially illuminates nodes and edges along a path.

path should alternate node IDs and edge IDs in traversal order (e.g. ["n1", "e1", "n2", "e2", "n3"]). The effect fades in each element one-by-one and self-terminates when the path is complete.

Not undoable. Not recorded in history.

pathstring[]Ordered array of alternating node and edge IDs.
configPathHighlightConfigOptional PathHighlightConfig (stepDelay, color, fadeOut).

Returns: string