UNPKG

ag-charts-community

Version:

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

55 lines (54 loc) 2.12 kB
import { type NormalisedLegendPaginationOptions } from 'ag-charts-core'; import type { AgChartLegendOrientation } from 'ag-charts-types'; import { Group } from '../../scene/group'; export type PaginationMarkerStyleValues = NormalisedLegendPaginationOptions['activeStyle']; export declare class Pagination { private readonly chartUpdateCallback; private readonly pageUpdateCallback; static readonly className = "Pagination"; readonly id: string; private readonly group; private readonly labelNode; private highlightActive?; private readonly nextButton; private readonly previousButton; totalPages: number; currentPage: number; translationX: number; translationY: number; private nextButtonDisabled; private previousButtonDisabled; private _visible; set visible(value: boolean); get visible(): boolean; private _enabled; set enabled(value: boolean); get enabled(): boolean; isRtl: boolean; orientation: AgChartLegendOrientation; constructor(chartUpdateCallback: () => void, pageUpdateCallback: (newPage: number) => void); private updateGroupVisibility; private applyRotations; private lastOpts?; update(opts: NormalisedLegendPaginationOptions): void; private updatePositions; private updateLabelPosition; private updateButtonPositions; private updateLabel; updateMarkers(opts: NormalisedLegendPaginationOptions): void; private updateMarker; private enableOrDisableButtons; setPage(pageNumber: number): void; getCursor(node: 'previous' | 'next'): "pointer" | undefined; onClick(event: MouseEvent | TouchEvent | KeyboardEvent, node: 'previous' | 'next'): void; onMouseHover(node: 'previous' | 'next' | undefined): void; private onPaginationChanged; private incrementPage; private decrementPage; attachPagination(node: Group): void; getBBox(): import("../../integrated-charts-scene").BBox; computeCSSBounds(): { prev: import("../../integrated-charts-scene").BBox; next: import("../../integrated-charts-scene").BBox; }; }