UNPKG

@devexperts/dxcharts-lite

Version:
29 lines (28 loc) 1.2 kB
/* * 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 { Bounds } from '../bounds.model'; import VisualCandle from '../visual-candle'; import { ViewportModelState } from './viewport.model'; /** * Return constraited state that handled zooming and moving chart near first/last candles * this and other constraits that works with state should mutate and return state * @param initialState * @param state * @param visualCandlesCoordinates * @param candleLimit * @param bounds * @returns * @doc-tags viewport,zoom,scaling */ export declare const candleEdgesConstrait: (state: ViewportModelState, visualCandlesCoordinates: VisualCandle[], candleLimit: number, bounds: Bounds) => { xStart: import("./viewport.model").Unit; xEnd: import("./viewport.model").Unit; yStart: import("./viewport.model").Unit; yEnd: import("./viewport.model").Unit; zoomX: import("./viewport.model").Zoom; zoomY: import("./viewport.model").Zoom; inverseY: boolean; };