import * as echarts from 'echarts'; import { type SeriesModel } from 'echarts'; import type ExtensionAPI from 'echarts/types/src/core/ExtensionAPI.js'; import { type TrendCursorModel } from '../model'; import { type TrendCursor } from '../store'; import { getGrid } from './utils'; export type SeriesModelRenderInformation = { model: SeriesModel; polyline: any; }; type Position = { x: number; y: number; }; type Grid = ReturnType; type IntersectionPointValue = { id: string; value: number; name: string; }; export declare class TrendCursorView extends echarts.ComponentView { static type: string; readonly type: string; offset: number; grid: Grid | null; position: Position | null; trendCursor: Required | null; api: ExtensionAPI | null; chartId: string | null; reset(): void; dispose(): void; /** * helper methods below */ setTrendCursor(model: TrendCursorModel): void; validateModel(trendCursorModel: { id: string; group?: string; date: number | null; color?: string; }): trendCursorModel is Required; handleDeleteTrendCursor({ id, group }: { id: string; group: string; }): () => void; handleUpdateTrendCursor(): (e: echarts.ElementEvent) => void; handleUpdateTrendCursorValues(values: IntersectionPointValue[]): void; handleSetDragOffset(): (e: echarts.ElementEvent) => void; toDateTimeText(date: number): string; clipPathFromGrip(): echarts.graphic.Rect; setLayoutInformation(): void; createCursorDateText(date: number): echarts.graphic.Text; /** * Graphic methods below */ createColorBar(color: string): echarts.graphic.Rect; createDeleteButton({ id, group, }: { id: string; group: string; }): echarts.graphic.Image; createCursorHeader(): echarts.graphic.Group; createCursorLine(): echarts.graphic.Group; createIntersectionPoint({ model, polyline, }: SeriesModelRenderInformation): [echarts.graphic.Circle, IntersectionPointValue] | undefined; createCursor(): echarts.graphic.Group; drawCursor(chartId: string, trendCursorModel: TrendCursorModel, seriesData: SeriesModelRenderInformation[], api: ExtensionAPI): void; } export {}; //# sourceMappingURL=view.d.ts.map