From 941423c04fb10a01940fcec04b9472b5701abdd8 Mon Sep 17 00:00:00 2001 From: Anton Vorobev Date: Thu, 21 Nov 2024 13:32:43 +0000 Subject: [PATCH] Pull request #5353: Feature/DXCF-5567 web multiple scales hide scale mode buttons if more than one scale Merge in DXCHARTS/dxchart5 from feature/DXCF-5567-web-multiple-scales-hide-scale-mode-buttons-if-more-than-one-scale to master * commit '231daa34b7a84de8d542eb831a41499720c22464': [DXCF-5567] [Web] Multiple scales - hide scale mode buttons if more than one scale // pr fix [DXCF-5567] [Web] Multiple scales - hide scale mode buttons if more than one scale // pr fix [DXCF-5567] [Web] Multiple scales - hide scale mode buttons if more than one scale // pr fix [DXCF-5567] [Web] Multiple scales - hide scale mode buttons if more than one scale // init [DXCF-5567] [Web] Multiple scales - hide scale mode buttons if more than one scale // init [DXCF-5567] [Web] Multiple scales - hide scale mode buttons if more than one scale // init GitOrigin-RevId: 7b8e722711e1ab0a51679ff38626841dcc8938a4 --- src/chart/components/pane/pane.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/chart/components/pane/pane.component.ts b/src/chart/components/pane/pane.component.ts index c964f4e..408dd10 100644 --- a/src/chart/components/pane/pane.component.ts +++ b/src/chart/components/pane/pane.component.ts @@ -1,3 +1,8 @@ +/* + * 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/. + */ /* * 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. @@ -49,6 +54,7 @@ export class PaneComponent extends ChartBaseElement { public ht: HitBoundsTest; public yExtentComponents: YExtentComponent[] = []; + public yExtentComponentsChangedSubject: Subject = new Subject(); get scale() { return this.mainExtent.scale; @@ -256,6 +262,7 @@ export class PaneComponent extends ChartBaseElement { yExtentComponent.activate(); this.yExtentComponents.push(yExtentComponent); this.canvasBoundsContainer.updateYAxisWidths(); + this.yExtentComponentsChangedSubject.next(); return yExtentComponent; } @@ -265,6 +272,7 @@ export class PaneComponent extends ChartBaseElement { // re-index extents this.yExtentComponents.forEach((c, idx) => (c.idx = idx)); this.canvasBoundsContainer.updateYAxisWidths(); + this.yExtentComponentsChangedSubject.next(); } /** @@ -293,6 +301,7 @@ export class PaneComponent extends ChartBaseElement { ) { dataSeries.forEach(series => series.moveToExtent(extentComponent)); initialExtent.dataSeries.size === 0 && initialPane.removeExtentComponent(initialExtent); + this.yExtentComponentsChangedSubject.next(); } /**