-
+
+
+
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) ">
|