From f10360dbf77b220c301b60adce19b5511e0dafbf Mon Sep 17 00:00:00 2001 From: Anton Vorobev Date: Mon, 2 Sep 2024 12:03:16 +0000 Subject: [PATCH] Pull request #5276: [DXCF-5484] Drawings - Drawings are jumping after zoom in/out // init Merge in DXCHARTS/dxchart5 from bugfix/DXCF-5484-new-drawings-drawings-are-jumping-after-zoom-in-out to master * commit '63821e70e83657534841133fcf822cfd77fb9bc2': [DXCF-5484] Drawings - Drawings are jumping after zoom in/out // fix fibonacci rays jumping [DXCF-5484] Drawings - Drawings are jumping after zoom in/out // remove unnecessary copyright header [DXCF-5484] Drawings - Drawings are jumping after zoom in/out // init GitOrigin-RevId: 21c8d37b4525c65ba6cdcc0a9ac7f0ffe06292e7 --- src/chart/model/data-series.model.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chart/model/data-series.model.ts b/src/chart/model/data-series.model.ts index 558d0734..c18341a4 100644 --- a/src/chart/model/data-series.model.ts +++ b/src/chart/model/data-series.model.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited + * Copyright (C) 2019 - 2024 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/. */ @@ -20,7 +20,7 @@ import { } from './data-series.config'; import { HighLowWithIndex, ScaleModel } from './scale.model'; import { HighLowProvider } from './scaling/auto-scale.model'; -import { Index, Unit, Viewable } from './scaling/viewport.model'; +import { Index, Pixel, Unit, Viewable } from './scaling/viewport.model'; /** * Properties are named in order to match VisualCandle interface @@ -30,14 +30,14 @@ export class VisualSeriesPoint { /** * returns y coordinate in pixels */ - y(viewable: Viewable): Unit { + y(viewable: Viewable): Pixel { return floorToDPR(viewable.toY(this.close)); } /** * returns x coordinate in pixels */ - x(viewable: Viewable): Unit { - return floorToDPR(viewable.toX(this.centerUnit)); + x(viewable: Viewable): Pixel { + return viewable.toX(this.centerUnit); } clone(): VisualSeriesPoint {