emphasis.pathHighlight
pathHighlight(path: string[], config?: PathHighlightConfig): stringStart 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.
path | string[] | Ordered array of alternating node and edge IDs. |
config | PathHighlightConfig | Optional PathHighlightConfig (stepDelay, color, fadeOut). |
Returns: string