UNPKG

@devexperts/dxcharts-lite

Version:
22 lines (21 loc) 989 B
/* * 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 { DataSeriesModel, VisualSeriesPoint } from '../../model/data-series.model'; import { HTSeriesDrawerConfig, SeriesDrawer } from '../data-series.drawer'; /** * Point used to draw difference type indicator (clouds) (e.g. Ichimoku indicator) */ export interface DifferencePoint { diffPoints: [VisualSeriesPoint, VisualSeriesPoint]; } export declare class DifferenceCloudDrawer implements SeriesDrawer { constructor(); draw(ctx: CanvasRenderingContext2D, allPoints: VisualSeriesPoint[][], model: DataSeriesModel, hitTestDrawerConfig: HTSeriesDrawerConfig): void; private drawLine; private drawDifference; private fillCloud; } export declare const isDifferenceTool: (type: string) => boolean;