Description
When using compare(), highlighted nodes and tabs auto-clear after 10 seconds. There is no way for consumers to keep highlights persistent or to clear them programmatically.
Changes
- Add
persistentHighlight render option: when true, node and tab glows stay until the next highlight() or clearHighlight() call
- Extract
clearHighlight() from highlightChangeItem and expose it on the comparison object
- Gate both the tab glow timeout and node glow timeout on
!persistentHighlight
Context
Needed by FlowFuse's snapshot diff viewer (FlowFuse/flowfuse#7062), which navigates between changes and needs highlights to persist until the user moves to the next change.
Description
When using
compare(), highlighted nodes and tabs auto-clear after 10 seconds. There is no way for consumers to keep highlights persistent or to clear them programmatically.Changes
persistentHighlightrender option: whentrue, node and tab glows stay until the nexthighlight()orclearHighlight()callclearHighlight()fromhighlightChangeItemand expose it on the comparison object!persistentHighlightContext
Needed by FlowFuse's snapshot diff viewer (FlowFuse/flowfuse#7062), which navigates between changes and needs highlights to persist until the user moves to the next change.