@dschz/solid-uplot
Version:
SolidJS wrapper for uPlot — ultra-fast, tiny time-series & charting library
24 lines (20 loc) • 877 B
TypeScript
export { C as CursorData, S as SeriesDatum, g as getCursorData, a as getSeriesData } from '../getSeriesData-04wGQord.js';
import uPlot from 'uplot';
/**
* Utility to get a color string from uPlot stroke or fill values
*
* @param fillOrStroke - The uPlot series fill or stroke value
* @param fallback - The fallback color string
* @returns The color string
*/
declare const getColorString: (fillOrStroke?: string | CanvasGradient | CanvasPattern, fallback?: string) => string;
/**
* Returns the indices where a new calendar day (in UTC) begins within the given x-values series.
*
* This uses `toISOString().split("T")[0]` to derive a "YYYY-MM-DD" key.
*
* @param u - The uPlot instance.
* @returns The indices where a new calendar day begins.
*/
declare function getNewCalendarDayIndices(u: uPlot): number[];
export { getColorString, getNewCalendarDayIndices };