UNPKG

ag-charts-enterprise

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

43 lines (42 loc) 1.54 kB
import { _ModuleSupport } from 'ag-charts-community'; import { type DynamicContext } from 'ag-charts-core'; import type { BoxBounds } from 'ag-charts-core'; export declare class ScrollbarDOMProxy { private readonly ctx; private readonly orientation; private readonly onChange; private readonly onHoverChange; private readonly container; private readonly slider; private readonly thumbFocus; private dragStartRatio; private interactionMode; private interactionBounds?; private readonly state; private readonly repeater; constructor(ctx: DynamicContext<_ModuleSupport.ChartRegistry>, orientation: 'horizontal' | 'vertical', onChange: (min: number, max: number) => void, onHoverChange: (hovered: boolean) => void); destroy(): void; updateBounds(bounds: BoxBounds): void; updateVisibility(visible: boolean): void; updateMinMax(min: number, max: number, thumbSpan?: number, options?: { skipSliderUpdate?: boolean; }): void; updateThumbBounds(thumb: BoxBounds, track: BoxBounds, cornerRadius?: number): void; private update; private onSliderChange; private onSliderKeyDown; private onDragMove; private onDragEnd; private onDragStart; private onMouseLeave; private getClickInfo; private getPointerRatio; private getPointerInfo; private jumpTo; private applyStepToward; private beginStepRepeat; private setInteraction; private getInteractionBounds; private isWithinThumb; private handleHoverEvent; }