emphasis.retargetFocusContext
retargetFocusContext(nodeIds: string | string[], config?: FocusContextConfig): stringRetarget an existing focus+context effect to a new focused set WITHOUT disposing and recreating. Prevents the visual flicker that stop+restart causes (dispose restores pristine opacities before the new effect dims them again, producing one render frame at full opacity).
If no focusContext effect is currently active, this starts a new one with the given config. If an effect is active, the nodeIds update is in-place and the config argument is ignored (the running effect keeps its original config).
nodeIds | string | string[] | |
config | FocusContextConfig |
Returns: string