Allows a component to interact with the Highlighter handler component.
Highlighter
const highlighter = useHighlighter()return ( <Wellbore id={wellbore.id} ... onPointerEnter={async (event) => { if (!isSelected) { highlighter.highlight(event.target) } }} onPointerLeave={async () => { highlighter.removeAll() }} ... />) Copy
const highlighter = useHighlighter()return ( <Wellbore id={wellbore.id} ... onPointerEnter={async (event) => { if (!isSelected) { highlighter.highlight(event.target) } }} onPointerLeave={async () => { highlighter.removeAll() }} ... />)
Allows a component to interact with the
Highlighterhandler component.