diff --git a/platform/features/conductor-v2/conductor/res/sass/_time-of-interest.scss b/platform/features/conductor-v2/conductor/res/sass/_time-of-interest.scss index 93d0231b749..7a59cd8545c 100644 --- a/platform/features/conductor-v2/conductor/res/sass/_time-of-interest.scss +++ b/platform/features/conductor-v2/conductor/res/sass/_time-of-interest.scss @@ -140,7 +140,6 @@ } } - // TOI is showing value as well .show-val .l-toi-holder { .l-toi { diff --git a/platform/features/conductor-v2/conductor/res/templates/time-conductor.html b/platform/features/conductor-v2/conductor/res/templates/time-conductor.html index f338a6adbda..8b02990e4af 100644 --- a/platform/features/conductor-v2/conductor/res/templates/time-conductor.html +++ b/platform/features/conductor-v2/conductor/res/templates/time-conductor.html @@ -90,8 +90,7 @@
- +
diff --git a/platform/features/conductor-v2/conductor/src/ui/TimeOfInterestController.js b/platform/features/conductor-v2/conductor/src/ui/TimeOfInterestController.js index 5a1ca49739b..06427c3d9f2 100644 --- a/platform/features/conductor-v2/conductor/src/ui/TimeOfInterestController.js +++ b/platform/features/conductor-v2/conductor/src/ui/TimeOfInterestController.js @@ -47,6 +47,10 @@ define( conductor.on('timeSystem', this.changeTimeSystem); if (conductor.timeSystem()) { this.changeTimeSystem(conductor.timeSystem()); + var toi = conductor.timeOfInterest(); + if (toi) { + this.changeTimeOfInterest(toi); + } } $scope.$on('$destroy', this.destroy); diff --git a/platform/features/plot/bundle.js b/platform/features/plot/bundle.js index ec4e6f375af..5477eadeeef 100644 --- a/platform/features/plot/bundle.js +++ b/platform/features/plot/bundle.js @@ -77,7 +77,8 @@ define([ "telemetryFormatter", "telemetryHandler", "throttle", - "PLOT_FIXED_DURATION" + "PLOT_FIXED_DURATION", + "timeConductor" ] }, { diff --git a/platform/features/plot/res/templates/plot.html b/platform/features/plot/res/templates/plot.html index 3a83bdbd644..0c83a97b09b 100644 --- a/platform/features/plot/res/templates/plot.html +++ b/platform/features/plot/res/templates/plot.html @@ -19,6 +19,12 @@ this source code distribution or the Licensing information page available at runtime from the About dialog for additional information. --> +
@@ -71,9 +77,10 @@
- +
+ +
diff --git a/platform/features/plot/src/PlotController.js b/platform/features/plot/src/PlotController.js index 0c56b48f221..7c58d2ed786 100644 --- a/platform/features/plot/src/PlotController.js +++ b/platform/features/plot/src/PlotController.js @@ -68,7 +68,8 @@ define( telemetryFormatter, telemetryHandler, throttle, - PLOT_FIXED_DURATION + PLOT_FIXED_DURATION, + conductor ) { var self = this, plotTelemetryFormatter = @@ -200,6 +201,7 @@ define( if (handle) { handle.unsubscribe(); handle = undefined; + conductor.off(changeTimeOfInterest); } } @@ -242,6 +244,17 @@ define( requery(); } self.setUnsynchedStatus($scope.domainObject, follow && self.isZoomed()); + changeTimeOfInterest(conductor.timeOfInterest()); + } + + function changeTimeOfInterest(timeOfInterest) { + if (timeOfInterest !== undefined){ + var bounds = conductor.bounds(); + var range = bounds.end - bounds.start; + $scope.toiPerc = ((timeOfInterest - bounds.start) / range) * 100; + } else { + $scope.toiPerc = undefined; + } } this.modeOptions = new PlotModeOptions([], subPlotFactory); @@ -264,6 +277,10 @@ define( new PlotAxis("ranges", [], AXIS_DEFAULTS[1]) ]; + changeTimeOfInterest(conductor.timeOfInterest()); + + conductor.on("timeOfInterest", changeTimeOfInterest); + // Watch for changes to the selected axis $scope.$watch("axes[0].active.key", domainRequery); $scope.$watch("axes[1].active.key", rangeRequery); diff --git a/platform/features/table/res/templates/mct-table.html b/platform/features/table/res/templates/mct-table.html index 3525ec30f4d..6d666f65a8b 100644 --- a/platform/features/table/res/templates/mct-table.html +++ b/platform/features/table/res/templates/mct-table.html @@ -49,10 +49,8 @@ - - @@ -60,8 +58,8 @@ + ng-style="{ top: visibleRow.offsetY + 'px' }" + ng-click="table.onRowClick($event, visibleRow.rowIndex) ">