mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +00:00
[Plot] Add notion of subplots to template
Add notion of subplots to the plot template; these are elements within a stacked plot. WTD-625.
This commit is contained in:
parent
01f1a92d09
commit
1c3d2d923f
@ -3,15 +3,17 @@
|
||||
<span ng-controller="PlotController as plot"
|
||||
ng-mouseleave="representation.showControls = false">
|
||||
|
||||
<span ng-repeat="subplot in plot.getSubPlots()">
|
||||
<div class="gl-plot-legend">
|
||||
<span class='plot-legend-item'
|
||||
ng-repeat="telemetryObject in telemetry.getTelemetryObjects() track by $index">
|
||||
<span class='plot-color-swatch' ng-style="{ 'background-color': plot.getColor($index) }"></span>
|
||||
ng-repeat="telemetryObject in subplot.telemetryObjects">
|
||||
<span class='plot-color-swatch'
|
||||
ng-style="{ 'background-color': plot.getColor($index) }">
|
||||
</span>
|
||||
<span class='title-label'>{{telemetryObject.getModel().name}}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="gl-plot-coords"
|
||||
ng-if="representation.showControls">
|
||||
{{plot.getHoverCoordinates().join(', ')}}
|
||||
@ -45,26 +47,26 @@
|
||||
<div class="gl-plot-display-area"
|
||||
ng-mouseenter="representation.showControls = true">
|
||||
|
||||
|
||||
<div class="gl-plot-hash hash-v"
|
||||
ng-repeat="tick in domainTicks"
|
||||
ng-style="{ left: (100 * $index / (domainTicks.length - 1)) + '%', height: '100%' }"
|
||||
ng-show="$index > 0 && $index < (domainTicks.length - 1)">
|
||||
ng-repeat="tick in subplot.domainTicks"
|
||||
ng-style="{ left: (100 * $index / (subplot.domainTicks.length - 1)) + '%', height: '100%' }"
|
||||
ng-show="$index > 0 && $index < (subplot.domainTicks.length - 1)">
|
||||
</div>
|
||||
<div class="gl-plot-hash hash-h"
|
||||
ng-repeat="tick in rangeTicks"
|
||||
ng-style="{ bottom: (100 * $index / (rangeTicks.length - 1)) + '%', width: '100%' }"
|
||||
ng-show="$index > 0 && $index < (rangeTicks.length - 1)">
|
||||
ng-style="{ bottom: (100 * $index / (subplot.rangeTicks.length - 1)) + '%', width: '100%' }"
|
||||
ng-show="$index > 0 && $index < (subplot.rangeTicks.length - 1)">
|
||||
</div>
|
||||
|
||||
<mct-chart draw="draw"
|
||||
ng-mousemove="plot.hover($event)"
|
||||
ng-mousedown="plot.startMarquee($event)"
|
||||
ng-mouseup="plot.endMarquee($event)">
|
||||
<mct-chart draw="subplot.draw"
|
||||
ng-mousemove="subplot.hover($event)"
|
||||
ng-mousedown="subplot.startMarquee($event)"
|
||||
ng-mouseup="subplot.endMarquee($event)">
|
||||
</mct-chart>
|
||||
|
||||
<!-- TODO: Move into correct position; make part of group; infer from set of actions -->
|
||||
<div class="gl-plot-local-controls"
|
||||
ng-if="$first"
|
||||
ng-show="representation.showControls"
|
||||
style="position: absolute; top: 8px; right: 8px;">
|
||||
|
||||
@ -113,8 +115,7 @@
|
||||
<span class="t-wait-spinner loading" ng-show="telemetry.isRequestPending()">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="gl-plot-axis-area gl-plot-x">
|
||||
<div ng-if="$last" class="gl-plot-axis-area gl-plot-x">
|
||||
|
||||
<div ng-repeat="tick in domainTicks"
|
||||
class="gl-plot-tick gl-plot-x-tick-label"
|
||||
@ -141,5 +142,8 @@
|
||||
|
||||
</div>
|
||||
</span>
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user