UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

14 lines (13 loc) 715 B
/// <reference types="web" /> import { Annotation } from '../components/annotation.js'; import { AnnotationLineOption } from '../types/options.js'; export declare enum ScaleOrientation { Horizontal = 0, Vertical = 1 } export declare function addAreas(u: uPlot, yScaleKey: string, steps: AnnotationLineOption[], self: Annotation): void; declare type ValueStop = [value: number, color: string]; declare type ScaleValueStops = ValueStop[]; export declare function scaleGradient(u: uPlot, scaleKey: string, scaleStops: ScaleValueStops, discrete?: boolean): string | CanvasGradient; export declare function addLines(u: uPlot, yScaleKey: string, steps: AnnotationLineOption[], self: Annotation): void; export {};