UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

25 lines (24 loc) 741 B
import { BBox } from '@antv/g'; import { IScrollBarInteractionConfig } from '../interface/config'; import BaseInteraction from './base'; export default class ScrollBarInteraction extends BaseInteraction { static getInteractionRange(layerRange: BBox, interaction: IScrollBarInteractionConfig): BBox; private container; private scrollBar; private cnt; private step; private xScaleCfg; private yScalesCfg; private ratio; private thumbOffset; private trackLen; private thumbLen; private onChangeFn; protected render(): void; protected clear(): void; private renderScrollbar; private measureScrollBar; private getScrollRange; private changeViewData; private onChange; }