@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
21 lines (20 loc) • 656 B
TypeScript
import { BBox } from '@antv/g';
import { ISliderInteractionConfig } from '../interface/config';
import BaseInteraction from './base';
export default class SliderInteraction extends BaseInteraction {
static getInteractionRange(layerRange: BBox, interaction: ISliderInteractionConfig): BBox;
private container;
private slider;
private curStart;
private curEnd;
private xScaleCfg;
private onChangeFn;
protected render(): void;
protected clear(): void;
private renderSlider;
private getSliderConfig;
private getSliderTrendData;
private getSliderData;
private getSliderMinMaxText;
private onChange;
}