@devexperts/dxcharts-lite
Version:
40 lines (39 loc) • 1.97 kB
TypeScript
/*
* Copyright (C) 2019 - 2026 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 { FullChartConfig } from '../../chart.config';
import { ChartBaseElement } from '../../model/chart-base-element';
import { Pixel, Unit } from '../../model/scaling/viewport.model';
import { ChartComponent } from '../chart/chart.component';
import { PaneManager } from '../pane/pane-manager.component';
import { PaneComponent } from '../pane/pane.component';
import { VolumesModel } from './volumes.model';
export declare class SeparateVolumesComponent extends ChartBaseElement {
private chartComponent;
config: FullChartConfig;
private volumesModel;
private paneManager;
static UUID: string;
pane: PaneComponent | undefined;
constructor(chartComponent: ChartComponent, config: FullChartConfig, volumesModel: VolumesModel, paneManager: PaneManager);
protected doActivate(): void;
/**
* Activates the separate volumes feature.
* If the pane component for separate volumes does not exist, it creates a new pane with the specified UUID and options.
* It then sets the high-low provider for the volumes scale model and does an auto scale.
* A new VolumesDrawer is created and added to the drawing manager with the specified parameters.
*/
activateSeparateVolumes(): void;
/**
* Deactivates the separate volumes feature by removing the separate volumes pane, deleting the scale model, and removing the underlay volumes area drawer.
*/
deactiveSeparateVolumes(): void;
/**
* Converts a pixel value from the Y-axis of the scale model to the corresponding data value.
* @param {Pixel} y - The pixel value to convert.
* @returns {Unit} - The corresponding data value.
*/
fromY(y: Pixel): Unit;
}