Skip to content

Commit

Permalink
Pull request #5276: [DXCF-5484] Drawings - Drawings are jumping after…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
Keelaro1 authored and dxcity committed Nov 19, 2024
1 parent 031cb6e commit f10360d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chart/model/data-series.model.ts
Original file line number Diff line number Diff line change
@@ -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/.
*/
Expand All @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit f10360d

Please sign in to comment.