@devexperts/dxcharts-lite
Version:
24 lines (23 loc) • 1.14 kB
TypeScript
/*
* 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 { BarType, FullChartConfig } from '../../chart.config';
import { BoundsProvider } from '../../model/bounds.model';
import { DataSeriesModel, VisualSeriesPoint } from '../../model/data-series.model';
import { HTSeriesDrawerConfig, SeriesDrawer } from '../data-series.drawer';
export declare const candleTypesList: BarType[];
/**
* A decorator for drawers, that draw something depending on visual candles
*/
export declare class CandleSeriesWrapper implements SeriesDrawer {
private drawer;
private config;
private chartBounds;
constructor(drawer: SeriesDrawer, config: FullChartConfig, chartBounds: BoundsProvider);
draw(ctx: CanvasRenderingContext2D, allPoints: VisualSeriesPoint[][], model: DataSeriesModel, hitTestDrawerConfig: HTSeriesDrawerConfig): void;
private beforeDraw;
private isChartTypeAllowed;
private afterDraw;
}