@zhouchangju/standard-chart
Version:
标准范式组件
26 lines (25 loc) • 632 B
TypeScript
interface IOption {
scrollWidth: number;
scrollTrackWidth: number;
scrollTrackHeight: number;
background: string;
thumbColor: string;
borderRadius: number;
maxRatio: number;
minRatio: number;
maxShowRatio: number;
scrollFn: Function | null;
}
export default class scrollHelper {
private chart;
private dom;
private scrollBarDom;
private option;
private scrollBarThumb;
constructor(chart: any, scrollBarDom: HTMLElement, option: IOption);
init(): void;
update(): void;
singleShow(): void;
scrollShow(domWidth: any, scrollWidth: any): void;
}
export {};