UNPKG

@zhouchangju/standard-chart

Version:

标准范式组件

84 lines (83 loc) 2.9 kB
import type { ECharts } from 'echarts'; import { Option } from '../../core/option'; import StandardChart from '../../core/StandardChart'; interface Point { seriesIndex?: number; dataIndex?: number; } interface Config { autoAdapt?: boolean; xNiceRangeConfig?: { absoluteInterval?: number; relativeInterval?: number; }; yNiceRangeConfig?: { absoluteInterval?: number; relativeInterval?: number; }; axisRangeMerge: 'both' | 'custom' | 'helper'; } export declare class DynamicDvScatterHelper { protected _options: Option[]; protected _historyOptions: Option[]; protected _config: Config; protected _chart: StandardChart; protected _dom: HTMLDivElement; protected _themeName: string; protected _timeline: unknown; protected _ecIns: ECharts; protected _zrIns: unknown; protected _isInit: boolean; protected _selectPoint: Point[]; protected _pauseAnimationTimer: any; protected _lastPointAnimationTimer: any; protected _playDuration: number; protected _historySeriesPlugin: Record<string, (...args: unknown[]) => unknown>; protected _historySeriesTemplate: any[]; protected _isHistory: boolean; protected _defaultAxisRange: { xRange: [number, number]; yRange: [number, number]; }; protected _historyAxisRange: { xRange: [number, number]; yRange: [number, number]; }; protected _symbolSize: [number, number]; protected _rValueRange: [number, number]; constructor(options: Option[], chart: StandardChart, timeline: unknown, config: Config); protected _init(): void; protected _preprocessOptions(): void; protected _getSymbolSize(): any; protected _getFlatValue(): any[]; protected _actionHandle(): void; protected _ecInsActionHandle(): void; protected _zrInsActionHandle(): void; protected _timelineActionHandle(): void; protected _timelinePlayHandle(): void; protected _timelinePauseHandle(): void; protected _timelineChangeHandle(params: any): void; protected _getHistorySeriesTemplate(): any[]; protected _getHistoryOption(currentIndex: number): Option; protected _highlightLastPoint(option: Option): void; _getAdaptFlatValue(): any[]; _autoAdaptHandle(): void; _selectLastPoint(): void; history(): void; /** * 打开历史轨迹 * @param outSelectPoint 外部手动指定的选中点 * @returns */ enterHistory(outSelectPoint?: { seriesIndex: number; dataIndex: number; }[]): void; exitHistory(): void; enterAdapt(play?: boolean): void; exitAdapt(play?: boolean): void; reset(option?: string[]): void; getHistorySeriesPlugin(): Record<string, (...args: unknown[]) => unknown>; setHistorySeriesPluginById(id: any, fn: (...args: unknown[]) => unknown): void; } export {};