HoverData
Import from @pibbl/core/viz. Evaluates an ordinary synchronous query and renders its typed result.
query(context) reads current signals and context.scale(id) snapshots. Its synchronous result (including undefined) goes to children(result). Callbacks cannot call hooks or write signals; return components for hooks. Query function identity does not determine child identity. The context cannot be retained.
API details from source
Section titled “API details from source”
HoverData
Section titled “HoverData”Evaluates an ordinary synchronous query under the current scale scope.
HoverData: <T>({ query, children }: HoverDataProps<T>) => PibblNodeRelated API: HoverData, HoverDataProps, PibblNode.
Parameters
Section titled “Parameters”props— Hover query and child renderer receiving its result. See HoverDataProps.
Returns
Section titled “Returns”Content rendered from the current hover query result. See PibblNode.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/hover-data.tsx:15
HoverQueryContext
Section titled “HoverQueryContext”Scale lookup context supplied when evaluating a hover query.
interface HoverQueryContextRelated API: HoverQueryContext.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/hover-types.ts:13
Properties and methods
Section titled “Properties and methods”
scale
scale: (id: ScaleId) => ResolvedContinuousScaleRelated API: ScaleId, ResolvedContinuousScale.
Looks up a resolved continuous scale by its identifier. See ResolvedContinuousScale.
Parameters
Section titled “Parameters”id— Identity of the scale needed by the query. See ScaleId.
Returns
Section titled “Returns”The resolved continuous scale. See ResolvedContinuousScale.
View source — packages/core/src/features/viz/lib/hover-types.ts:19
HoverQuery
Section titled “HoverQuery”A query that resolves reactive hover input into a hit or no result.
type HoverQuery<T> = (context: HoverQueryContext) => T | undefinedRelated API: HoverQuery, HoverQueryContext.
Parameters
Section titled “Parameters”context— Pointer position and scale lookup for this query. See HoverQueryContext.
Returns
Section titled “Returns”The current match, or undefined when there is no match.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/hover-types.ts:32
HoverDataProps
Section titled “HoverDataProps”Authored inputs for HoverData, including the declared data and presentation options.
interface HoverDataProps<T>Related API: HoverDataProps.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/hover-types.ts:40
Properties and methods
Section titled “Properties and methods”
query
readonly query: HoverQuery<T> & (T extends PromiseLike<unknown> ? never : unknown)Related API: HoverQuery.
Query that selects a style rule or resolves a hover result. See HoverQuery.
View source — packages/core/src/features/viz/lib/hover-types.ts:42
children
readonly children: (result: T | undefined) => PibblNodeRelated API: PibblNode.
Descendant content or the callback that supplies it. See PibblNode.
Parameters
Section titled “Parameters”result— Current query match, or undefined when there is no match.
Returns
Section titled “Returns”Pibbl content to render for the hover state. See PibblNode.
View source — packages/core/src/features/viz/lib/hover-types.ts:48
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Authoring, signals, and lifecycle companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal examples
Section titled “Complete minimal examples”- Hover inspection card: Display a measured point in a bounded hover card. Plain source
- Hover query helpers: Run closest-point, closest-x, and interpolated-x queries against a scale context. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 380919b. ALPHA — NOT FOR PRODUCTION USE.