UNPKG

@devexperts/dxcharts-lite

Version:
35 lines (34 loc) 1.88 kB
/* * Copyright (C) 2019 - 2025 Devexperts Solutions IE Limited * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { NumericAxisLabel } from '../labels_generator/numeric-axis-labels.generator'; import { BoundsProvider } from '../../model/bounds.model'; import { FullChartConfig, YAxisConfig } from '../../chart.config'; import { ChartBaseElement } from '../../model/chart-base-element'; import { CanvasModel } from '../../model/canvas.model'; import { CompositeDrawer } from '../../drawers/composite.drawer'; import { DrawingManager } from '../../drawers/drawing-manager'; import { Unit, ViewportModel } from '../../model/scaling/viewport.model'; export declare class GridComponent extends ChartBaseElement { private drawerName; private drawingManager; private readonly drawer; constructor(canvasModel: CanvasModel, viewportModel: ViewportModel, config: FullChartConfig, yAxisState: YAxisConfig, drawerName: string, drawingManager: DrawingManager | CompositeDrawer, xBoundsProvider: BoundsProvider, yBoundsProvider: BoundsProvider, xLabelsProvider: () => NumericAxisLabel[], yLabelsProvider: () => NumericAxisLabel[], extentIdx?: number, getBaseline?: () => Unit, drawPredicate?: () => boolean, mainExtentIdx?: number); /** * This method is used to deactivate the drawer and remove it from the drawing manager. * @protected * @function * @name doDeactivate * @returns {void} */ protected doDeactivate(): void; /** * This method is used to activate the drawer. It calls the parent class's doActivate method and adds the drawer to the drawing manager. * @protected * @function * @returns {void} */ protected doActivate(): void; }