Skip to content

Documentation / @ripl/charts / HoverHighlightOptions

Interface: HoverHighlightOptions<TElement>

Defined in: charts/src/core/interaction.ts:36

Options describing how an element should respond to hover.

Type Parameters

Type Parameter
TElement extends Element

Properties

PropertyTypeDescriptionDefined in
anchor?() => objectResolves the tooltip anchor point (called on enter).charts/src/core/interaction.ts:57
animation() => objectResolves the highlight/restore transition timing lazily, at hover time. Resolving on each hover (rather than baking a value in when the handler is bound) keeps navigator-driven animation suppression from freezing the hover into an instant snap.charts/src/core/interaction.ts:44
content?() => stringResolves the tooltip content (called on enter).charts/src/core/interaction.ts:64
highlightStateOf<TElement>Target state applied while hovered.charts/src/core/interaction.ts:51
onClick?(point) => voidCalled when the element is clicked, with the pointer position.charts/src/core/interaction.ts:70
onEnter?(point) => voidCalled when the pointer enters the element, with the current pointer position.charts/src/core/interaction.ts:66
onLeave?(point) => voidCalled when the pointer leaves the element, with the last known pointer position.charts/src/core/interaction.ts:68
rendererRendererRenderer used to run the highlight/restore transitions.charts/src/core/interaction.ts:38
restoreStateOf<TElement>Target state applied when the pointer leaves.charts/src/core/interaction.ts:53
tooltip?HoverTooltipOptional tooltip to show/hide alongside the highlight.charts/src/core/interaction.ts:55