|
45 | 45 | ng-style="{ height: 100 / plot.getSubPlots().length + '%'}"
|
46 | 46 | ng-repeat="subplot in plot.getSubPlots()">
|
47 | 47 | <div class="gl-plot-legend">
|
48 |
| - <!-- ng-class is temporarily hard-coded in next element --> |
49 |
| - <span |
50 |
| - class='plot-legend-item' |
51 |
| - ng-repeat="telemetryObject in subplot.getTelemetryObjects()" |
52 |
| - ng-class="plot.getLegendClass(telemetryObject)"> |
53 |
| - <span class='plot-color-swatch' |
54 |
| - ng-style="{ 'background-color': plot.getColor($index) }"> |
| 48 | + <span class='plot-legend-item' |
| 49 | + ng-repeat="telemetryObject in subplot.getTelemetryObjects()" |
| 50 | + ng-class="plot.getLegendClass(telemetryObject)"> |
| 51 | + <span class='plot-color-swatch' |
| 52 | + ng-style="{ 'background-color': plot.getColor($index) }"> |
| 53 | + </span> |
| 54 | + <span class='title-label'>{{telemetryObject.getModel().name}}</span> |
55 | 55 | </span>
|
56 |
| - <span class='title-label'>{{telemetryObject.getModel().name}}</span> |
57 |
| - </span> |
58 |
| - </div> |
59 |
| - <div class="gl-plot-coords" |
60 |
| - ng-if="subplot.isHovering() && subplot.getHoverCoordinates()"> |
61 |
| - {{subplot.getHoverCoordinates()}} |
62 | 56 | </div>
|
| 57 | + |
63 | 58 | <div class="gl-plot-axis-area gl-plot-y">
|
64 | 59 | <div class="gl-plot-label gl-plot-y-label">
|
65 | 60 | {{axes[1].active.name}}
|
|
79 | 74 | </div>
|
80 | 75 | </div>
|
81 | 76 | </div>
|
82 |
| - <div class="gl-plot-display-area" |
83 |
| - ng-mouseenter="subplot.isHovering(true);" |
84 |
| - ng-mouseleave="subplot.isHovering(false)" |
85 |
| - ng-class="{ loading: plot.isRequestPending() }"> |
| 77 | + |
| 78 | + <!-- new wrapper inserted here --> |
| 79 | + <div class="gl-plot-wrapper-display-area-and-x-axis"> |
86 | 80 |
|
87 | 81 | <!-- TOI element -->
|
88 |
| - <div class="l-toi-holder"> |
89 |
| - <!-- Need text vals at top and bottom, plus vertical line --> |
90 |
| - <div class="l-toi-val"> |
91 |
| - <span class="val">{{subplot.getHoverCoordinates()}}</span> |
92 |
| - <a class="s-icon-button icon-x"></a> |
| 82 | + <div class="l-toi-holder" |
| 83 | + style="left: 20%"> |
| 84 | + <!-- Need text val at bottom, plus vertical line --> |
| 85 | + <div class="l-toi-val l-flex-row"> |
| 86 | + <span class="val flex-elem grows">Z000.04:45:00 71-90-6102</span> |
| 87 | + <a class="s-icon-button icon-x-in-circle t-unpin-button flex-elem"></a> |
93 | 88 | </div>
|
94 | 89 | </div>
|
95 | 90 |
|
96 |
| - <!-- Out-of-bounds data indicators --> |
97 |
| - <!-- ng-show is temporarily hard-coded in next element --> |
98 |
| - <div ng-show="false" class="l-oob-data l-oob-data-up"></div> |
99 |
| - <div ng-show="false" class="l-oob-data l-oob-data-dwn"></div> |
100 |
| - <div class="gl-plot-hash hash-v" |
101 |
| - ng-repeat="tick in subplot.getDomainTicks()" |
102 |
| - ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%', height: '100%' }" |
103 |
| - ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)"> |
| 91 | + <div class="gl-plot-coords" |
| 92 | + ng-if="subplot.isHovering() && subplot.getHoverCoordinates()"> |
| 93 | + {{subplot.getHoverCoordinates()}} |
104 | 94 | </div>
|
105 |
| - <div class="gl-plot-hash hash-h" |
106 |
| - ng-repeat="tick in subplot.getRangeTicks()" |
107 |
| - ng-style="{ bottom: (100 * $index / (subplot.getRangeTicks().length - 1)) + '%', width: '100%' }" |
108 |
| - ng-show="$index > 0 && $index < (subplot.getRangeTicks().length - 1)"> |
109 |
| - </div> |
110 |
| - <mct-chart draw="subplot.getDrawingObject()" |
111 |
| - ng-if="subplot.getTelemetryObjects().length > 0" |
112 |
| - ng-mousemove="subplot.hover($event)" |
113 |
| - mct-drag="subplot.continueDrag($event)" |
114 |
| - mct-drag-down="subplot.startDrag($event)" |
115 |
| - mct-drag-up="subplot.endDrag($event); plot.update()"> |
116 |
| - </mct-chart> |
117 |
| - <!-- TODO: Move into correct position; make part of group; infer from set of actions --> |
118 |
| - <div class="l-local-controls gl-plot-local-controls t-plot-display-controls" |
119 |
| - ng-if="$first"> |
120 |
| - <a class="s-button icon-arrow-left" |
121 |
| - ng-click="plot.stepBackPanZoom()" |
122 |
| - ng-show="plot.isZoomed()" |
123 |
| - title="Restore previous pan/zoom"> |
124 |
| - </a> |
125 |
| - <a class="s-button icon-arrows-out" |
126 |
| - ng-click="plot.unzoom()" |
127 |
| - ng-show="plot.isZoomed()" |
128 |
| - title="Reset pan/zoom"> |
129 |
| - </a> |
130 |
| - <div class="menu-element s-menu-button menus-to-left {{plot.getMode().cssclass}}" |
131 |
| - ng-if="plot.getModeOptions().length > 1" |
132 |
| - ng-controller="ClickAwayController as toggle"> |
133 |
| - <span class="l-click-area" ng-click="toggle.toggle()"></span> |
134 |
| - <span>{{plot.getMode().name}}</span> |
135 |
| - <div class="menu" ng-show="toggle.isActive()"> |
136 |
| - <ul> |
137 |
| - <li ng-repeat="option in plot.getModeOptions()" |
138 |
| - ng-click="plot.setMode(option); toggle.setState(false)" |
139 |
| - class="{{option.cssclass}}"> |
140 |
| - {{option.name}} |
141 |
| - </li> |
142 |
| - </ul> |
| 95 | + |
| 96 | + <div class="gl-plot-display-area" |
| 97 | + ng-mouseenter="subplot.isHovering(true);" |
| 98 | + ng-mouseleave="subplot.isHovering(false)" |
| 99 | + ng-class="{ loading: plot.isRequestPending() }"> |
| 100 | + |
| 101 | + <!-- Out-of-bounds data indicators --> |
| 102 | + <!-- ng-show is temporarily hard-coded in next element --> |
| 103 | + <div ng-show="false" class="l-oob-data l-oob-data-up"></div> |
| 104 | + <div ng-show="false" class="l-oob-data l-oob-data-dwn"></div> |
| 105 | + <div class="gl-plot-hash hash-v" |
| 106 | + ng-repeat="tick in subplot.getDomainTicks()" |
| 107 | + ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%', height: '100%' }" |
| 108 | + ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)"> |
| 109 | + </div> |
| 110 | + <div class="gl-plot-hash hash-h" |
| 111 | + ng-repeat="tick in subplot.getRangeTicks()" |
| 112 | + ng-style="{ bottom: (100 * $index / (subplot.getRangeTicks().length - 1)) + '%', width: '100%' }" |
| 113 | + ng-show="$index > 0 && $index < (subplot.getRangeTicks().length - 1)"> |
| 114 | + </div> |
| 115 | + <mct-chart draw="subplot.getDrawingObject()" |
| 116 | + ng-if="subplot.getTelemetryObjects().length > 0" |
| 117 | + ng-mousemove="subplot.hover($event)" |
| 118 | + mct-drag="subplot.continueDrag($event)" |
| 119 | + mct-drag-down="subplot.startDrag($event)" |
| 120 | + mct-drag-up="subplot.endDrag($event); plot.update()"> |
| 121 | + </mct-chart> |
| 122 | + <!-- TODO: Move into correct position; make part of group; infer from set of actions --> |
| 123 | + <div class="l-local-controls gl-plot-local-controls t-plot-display-controls" |
| 124 | + ng-if="$first"> |
| 125 | + <a class="s-button icon-arrow-left" |
| 126 | + ng-click="plot.stepBackPanZoom()" |
| 127 | + ng-show="plot.isZoomed()" |
| 128 | + title="Restore previous pan/zoom"> |
| 129 | + </a> |
| 130 | + <a class="s-button icon-arrows-out" |
| 131 | + ng-click="plot.unzoom()" |
| 132 | + ng-show="plot.isZoomed()" |
| 133 | + title="Reset pan/zoom"> |
| 134 | + </a> |
| 135 | + <div class="menu-element s-menu-button menus-to-left {{plot.getMode().cssclass}}" |
| 136 | + ng-if="plot.getModeOptions().length > 1" |
| 137 | + ng-controller="ClickAwayController as toggle"> |
| 138 | + <span class="l-click-area" ng-click="toggle.toggle()"></span> |
| 139 | + <span>{{plot.getMode().name}}</span> |
| 140 | + <div class="menu" ng-show="toggle.isActive()"> |
| 141 | + <ul> |
| 142 | + <li ng-repeat="option in plot.getModeOptions()" |
| 143 | + ng-click="plot.setMode(option); toggle.setState(false)" |
| 144 | + class="{{option.cssclass}}"> |
| 145 | + {{option.name}} |
| 146 | + </li> |
| 147 | + </ul> |
| 148 | + </div> |
143 | 149 | </div>
|
144 | 150 | </div>
|
145 | 151 | </div>
|
146 |
| - </div> |
147 |
| - <div ng-if="$last" class="gl-plot-axis-area gl-plot-x"> |
148 |
| - <div ng-repeat="tick in subplot.getDomainTicks()" |
149 |
| - class="gl-plot-tick gl-plot-x-tick-label" |
150 |
| - ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)" |
151 |
| - ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%' }"> |
152 |
| - {{tick.label | reverse}} |
153 |
| - </div> |
154 |
| - <div class="gl-plot-label gl-plot-x-label"> |
155 |
| - {{axes[0].active.name}} |
156 |
| - </div> |
157 |
| - <div class="gl-plot-x-options gl-plot-local-controls" |
158 |
| - ng-if="axes[0].options.length > 1"> |
159 |
| - <div class='form-control shell select'> |
160 |
| - <select class="form-control input shell" |
161 |
| - ng-model="axes[0].active" |
162 |
| - ng-options="option.name for option in axes[0].options"> |
163 |
| - </select> |
| 152 | + <div ng-if="$last" class="gl-plot-axis-area gl-plot-x"> |
| 153 | + <div ng-repeat="tick in subplot.getDomainTicks()" |
| 154 | + class="gl-plot-tick gl-plot-x-tick-label" |
| 155 | + ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)" |
| 156 | + ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%' }"> |
| 157 | + {{tick.label | reverse}} |
| 158 | + </div> |
| 159 | + <div class="gl-plot-label gl-plot-x-label"> |
| 160 | + {{axes[0].active.name}} |
| 161 | + </div> |
| 162 | + <div class="gl-plot-x-options gl-plot-local-controls" |
| 163 | + ng-if="axes[0].options.length > 1"> |
| 164 | + <div class='form-control shell select'> |
| 165 | + <select class="form-control input shell" |
| 166 | + ng-model="axes[0].active" |
| 167 | + ng-options="option.name for option in axes[0].options"> |
| 168 | + </select> |
| 169 | + </div> |
164 | 170 | </div>
|
165 |
| - </div> |
166 | 171 |
|
| 172 | + </div> |
167 | 173 | </div>
|
168 | 174 | </div>
|
169 | 175 | </div>
|
|
0 commit comments