extract plot detail view into its own component

This commit is contained in:
2020-11-01 09:15:01 +01:00
parent 50c9e56f2e
commit 08328ec1e5
15 changed files with 201 additions and 118 deletions

View File

@@ -1,5 +1,5 @@
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { DataType, AxesTypes } from '../plot.service';
import { DataType, AxesTypes, PlotResponseStats } from '../plot.service';
@Component({
selector: 'pdb-plot-view',
@@ -16,6 +16,7 @@ export class PlotViewComponent implements OnInit {
imageUrl : string;
stats : PlotResponseStats;
axes: AxesTypes;
@@ -38,6 +39,8 @@ export class PlotViewComponent implements OnInit {
zoomInSliderStyleLeft = "0";
zoomInSliderStyleWidth = "0";
showStats = false;
constructor() { }
ngOnInit() {
@@ -175,6 +178,14 @@ export class PlotViewComponent implements OnInit {
this.zoomWithDateAnchor.emit(new DateAnchor(cursorPercentOfDateRange, zoomFactor));
}
}
showDetails() {
this.showStats = true;
}
hideDetails() {
this.showStats = false;
}
}
export class SelectionRange {