diff --git a/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.html b/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.html index 20bfc11ed..9ee189e1b 100644 --- a/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.html +++ b/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.html @@ -1 +1 @@ -
+ diff --git a/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.ts b/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.ts index 3e1ccf5ae..f614d3438 100644 --- a/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.ts +++ b/src/app/components/timeseries-chart/timeseries-chart-temporal-slider/timeseries-chart-temporal-slider.component.ts @@ -1,12 +1,13 @@ -import {Component, ElementRef, ViewChild, OnInit, OnDestroy} from '@angular/core'; +import {Component, ElementRef, OnDestroy, OnInit, ViewChild, Renderer2} from '@angular/core'; import * as noUiSlider from 'nouislider'; -import { Store } from "@ngrx/store"; -import { AppState } from "@store"; +import {PipsMode} from 'nouislider'; +import {Store} from '@ngrx/store'; +import {AppState} from '@store'; // import * as models from "@models"; // import {Observable, Subject} from 'rxjs'; // import {UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators} from "@angular/forms"; // import * as filtersStore from "@store/filters"; -import {SubSink} from "subsink"; +import {SubSink} from 'subsink'; // import {debounceTime, distinctUntilChanged} from "rxjs/operators"; // import wNumb from 'wnumb'; import * as filtersStore from '@store/filters'; @@ -14,6 +15,7 @@ import * as models from '@models'; // import moment from 'moment/moment'; import {Observable, Subject} from 'rxjs'; import {debounceTime, distinctUntilChanged} from 'rxjs/operators'; + // import {debounceTime, distinctUntilChanged} from 'rxjs/operators'; @Component({ @@ -36,9 +38,11 @@ export class TimeseriesChartTemporalSliderComponent implements OnInit, OnDestroy public endDate$ = this.store$.select(filtersStore.getEndDate); public startDate: Date = new Date(); public endDate: Date = new Date(); + private userChangedRange: boolean = false; constructor( - private store$: Store