Class: SparklineOverlay
Defined in: src/temporal/SparklineOverlay.ts:19
Lightweight hover tooltip that draws a vertex's time-series sparkline on a floating <canvas> element.
Canvas 2D is chosen over SVG for performance on the ~80 ms hover throttle. A single canvas is reused (show/hide) rather than created/destroyed per hover.
Constructors
Constructor
new SparklineOverlay(container, options?): SparklineOverlay;Defined in: src/temporal/SparklineOverlay.ts:31
Parameters
container
HTMLElement
options?
Returns
SparklineOverlay
Methods
show()
show(
timeSeries,
times,
currentTime,
screenX,
screenY,
factor?): void;Defined in: src/temporal/SparklineOverlay.ts:54
Show the sparkline at the given screen position.
Parameters
timeSeries
Float32Array
times
number[]
currentTime
number
screenX
number
screenY
number
factor?
Returns
void
hide()
hide(): void;Defined in: src/temporal/SparklineOverlay.ts:75
Hide the sparkline.
Returns
void
updateTimeMarker()
updateTimeMarker(currentTime): void;Defined in: src/temporal/SparklineOverlay.ts:84
Efficient redraw: update only the time marker without a full repaint.
Parameters
currentTime
number
Returns
void
dispose()
dispose(): void;Defined in: src/temporal/SparklineOverlay.ts:90
Returns
void