2014-12-01 17:41:39 +00:00
|
|
|
<span ng-controller="PlotController as plot"
|
|
|
|
ng-mouseleave="representation.showControls = false">
|
|
|
|
|
2014-12-12 01:01:57 +00:00
|
|
|
<div class="gl-plot"
|
|
|
|
ng-style="{ height: 100 / plot.getSubPlots().length + '%'}"
|
|
|
|
ng-repeat="subplot in plot.getSubPlots()">
|
2014-12-11 02:55:47 +00:00
|
|
|
<div class="gl-plot-legend">
|
|
|
|
<span class='plot-legend-item'
|
2014-12-11 03:51:27 +00:00
|
|
|
ng-repeat="telemetryObject in subplot.getTelemetryObjects()">
|
2014-12-11 02:55:47 +00:00
|
|
|
<span class='plot-color-swatch'
|
|
|
|
ng-style="{ 'background-color': plot.getColor($index) }">
|
|
|
|
</span>
|
|
|
|
<span class='title-label'>{{telemetryObject.getModel().name}}</span>
|
2014-12-11 02:29:18 +00:00
|
|
|
</span>
|
2014-12-11 02:55:47 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-coords"
|
2014-12-12 23:03:47 +00:00
|
|
|
ng-if="subplot.isHovering() && subplot.getHoverCoordinates()">
|
|
|
|
{{subplot.getHoverCoordinates()}}
|
2014-12-11 02:55:47 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-axis-area gl-plot-y">
|
|
|
|
|
|
|
|
<div class="gl-plot-label gl-plot-y-label">
|
|
|
|
{{axes[1].active.name}}
|
|
|
|
</div>
|
2014-12-11 02:29:18 +00:00
|
|
|
|
2014-12-12 03:36:01 +00:00
|
|
|
<div ng-repeat="tick in subplot.getRangeTicks()"
|
2014-12-11 02:55:47 +00:00
|
|
|
class="gl-plot-tick gl-plot-y-tick-label"
|
2014-12-12 03:36:01 +00:00
|
|
|
ng-style="{ bottom: (100 * $index / (subplot.getRangeTicks().length - 1)) + '%' }">
|
2014-12-11 02:55:47 +00:00
|
|
|
{{tick.label}}
|
2014-12-11 02:29:18 +00:00
|
|
|
</div>
|
2014-12-11 02:55:47 +00:00
|
|
|
|
|
|
|
<div class="gl-plot-y-options gl-plot-local-controls"
|
|
|
|
ng-show="representation.showControls"
|
|
|
|
ng-if="axes[1].options.length > 0">
|
|
|
|
<div class='form-control shell select'>
|
|
|
|
<select class="form-control input shell select"
|
|
|
|
ng-model="axes[1].active"
|
|
|
|
ng-options="option.name for option in axes[1].options">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-12-11 02:29:18 +00:00
|
|
|
</div>
|
|
|
|
|
2014-12-11 02:55:47 +00:00
|
|
|
<div class="gl-plot-display-area"
|
2014-12-12 01:09:08 +00:00
|
|
|
ng-mouseenter="subplot.isHovering(true); representation.showControls = true;"
|
|
|
|
ng-mouseleave="subplot.isHovering(false)">
|
2014-12-01 17:41:39 +00:00
|
|
|
|
2014-12-11 02:55:47 +00:00
|
|
|
<div class="gl-plot-hash hash-v"
|
2014-12-11 03:51:27 +00:00
|
|
|
ng-repeat="tick in subplot.getDomainTicks()"
|
|
|
|
ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%', height: '100%' }"
|
|
|
|
ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)">
|
2014-12-11 02:55:47 +00:00
|
|
|
</div>
|
|
|
|
<div class="gl-plot-hash hash-h"
|
2014-12-11 03:51:27 +00:00
|
|
|
ng-repeat="tick in subplot.getRangeTicks()"
|
|
|
|
ng-style="{ bottom: (100 * $index / (subplot.getRangeTicks().length - 1)) + '%', width: '100%' }"
|
|
|
|
ng-show="$index > 0 && $index < (subplot.getRangeTicks().length - 1)">
|
2014-12-11 02:55:47 +00:00
|
|
|
</div>
|
|
|
|
|
2014-12-11 03:51:27 +00:00
|
|
|
<mct-chart draw="subplot.getDrawingObject()"
|
2014-12-11 02:55:47 +00:00
|
|
|
ng-mousemove="subplot.hover($event)"
|
|
|
|
ng-mousedown="subplot.startMarquee($event)"
|
2014-12-12 03:33:09 +00:00
|
|
|
ng-mouseup="subplot.endMarquee($event); plot.update()">
|
2014-12-11 02:55:47 +00:00
|
|
|
</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;">
|
|
|
|
|
|
|
|
<a href=""
|
|
|
|
class="t-btn l-btn s-btn s-icon-btn s-very-subtle"
|
|
|
|
ng-click="plot.stepBackPanZoom()"
|
|
|
|
ng-show="plot.isZoomed()"
|
|
|
|
title="Restore previous pan/zoom">
|
|
|
|
<span class="ui-symbol icon"><</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href=""
|
|
|
|
class="t-btn l-btn s-btn s-icon-btn s-very-subtle"
|
|
|
|
ng-click="plot.unzoom()"
|
|
|
|
ng-show="plot.isZoomed()"
|
|
|
|
title="Reset pan/zoom">
|
|
|
|
<span class="ui-symbol icon">I</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="menu-element btn icon-btn very-subtle btn-menu dropdown click-invoke"
|
|
|
|
ng-if="plot.getModeOptions().length > 1"
|
|
|
|
ng-controller="ClickAwayController as toggle">
|
|
|
|
|
2015-03-06 18:55:40 +00:00
|
|
|
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
|
|
|
|
|
|
|
<span class="ui-symbol icon type-icon">{{plot.getMode().glyph}}</span>
|
|
|
|
<span>{{plot.getMode().name}}</span>
|
|
|
|
<span class='ui-symbol icon invoke-menu'>v</span>
|
2014-12-11 02:55:47 +00:00
|
|
|
|
|
|
|
<div class="menu dropdown" ng-show="toggle.isActive()">
|
|
|
|
<ul>
|
|
|
|
<li ng-repeat="option in plot.getModeOptions()">
|
|
|
|
<a href="" ng-click="plot.setMode(option); toggle.setState(false)">
|
|
|
|
<span class="ui-symbol type-icon icon">
|
|
|
|
{{option.glyph}}
|
|
|
|
</span>
|
|
|
|
{{option.name}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-01-29 19:22:31 +00:00
|
|
|
<span class="t-wait-spinner loading" ng-show="plot.isRequestPending()">
|
2014-12-11 02:55:47 +00:00
|
|
|
</span>
|
2014-12-01 17:41:39 +00:00
|
|
|
</div>
|
2014-12-11 02:55:47 +00:00
|
|
|
<div ng-if="$last" class="gl-plot-axis-area gl-plot-x">
|
|
|
|
|
2014-12-11 03:51:27 +00:00
|
|
|
<div ng-repeat="tick in subplot.getDomainTicks()"
|
2014-12-11 02:55:47 +00:00
|
|
|
class="gl-plot-tick gl-plot-x-tick-label"
|
2014-12-11 03:51:27 +00:00
|
|
|
ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)"
|
|
|
|
ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%' }">
|
2014-12-11 02:55:47 +00:00
|
|
|
{{tick.label}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-label gl-plot-x-label">
|
|
|
|
{{axes[0].active.name}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="gl-plot-x-options gl-plot-local-controls"
|
|
|
|
ng-show="representation.showControls"
|
|
|
|
ng-if="axes[0].options.length > 0">
|
|
|
|
<div class='form-control shell select'>
|
|
|
|
<select class="form-control input shell select"
|
|
|
|
ng-model="axes[0].active"
|
|
|
|
ng-options="option.name for option in axes[0].options">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2015-01-29 17:05:40 +00:00
|
|
|
</div>
|
2014-12-01 17:41:39 +00:00
|
|
|
</span>
|
|
|
|
|