extract plot detail view into its own component
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user