mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 08:58:52 +00:00
[Plot] Make plot legend items clickable
Clicking on a plot legend item now selects that object. Currently that means that the view is switched to that object. (Therefore this only has an effect on telemetry panel plots.)
This commit is contained in:
parent
815b8e040e
commit
01f5a4886b
@ -54,7 +54,8 @@
|
|||||||
|
|
||||||
<div class='object-holder abs vscroll'>
|
<div class='object-holder abs vscroll'>
|
||||||
<mct-representation key="representation.selected.key"
|
<mct-representation key="representation.selected.key"
|
||||||
mct-object="representation.selected.key && domainObject">
|
mct-object="representation.selected.key && domainObject"
|
||||||
|
ng-model="ngModel">
|
||||||
</mct-representation>
|
</mct-representation>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -5351,3 +5351,28 @@ input[type="text"] {
|
|||||||
.split-pane-component.secondary-split.pane.right .split-pane-component.object-inspector.pane.right .holder.inspector-holder ul li .inspector-location:last-child:after {
|
.split-pane-component.secondary-split.pane.right .split-pane-component.object-inspector.pane.right .holder.inspector-holder ul li .inspector-location:last-child:after {
|
||||||
content: '';
|
content: '';
|
||||||
display: inline-block; }
|
display: inline-block; }
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
||||||
|
* as represented by the Administrator of the National Aeronautics and Space
|
||||||
|
* Administration. All rights reserved.
|
||||||
|
*
|
||||||
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
||||||
|
* "License"); you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
* License for the specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*
|
||||||
|
* Open MCT Web includes source code licensed under additional open source
|
||||||
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
||||||
|
* this source code distribution or the Licensing information page available
|
||||||
|
* at runtime from the About dialog for additional information.
|
||||||
|
*****************************************************************************/
|
||||||
|
/* line 26, ../sass/inspector/_inspector.scss */
|
||||||
|
.plot-legend-item {
|
||||||
|
cursor: pointer; }
|
||||||
|
@ -75,3 +75,4 @@
|
|||||||
@import "hide-non-functional";
|
@import "hide-non-functional";
|
||||||
@import "views";
|
@import "views";
|
||||||
@import "tree/pane";
|
@import "tree/pane";
|
||||||
|
@import "inspector/inspector";
|
||||||
|
28
platform/commonUI/general/res/sass/inspector/_inspector.scss
Normal file
28
platform/commonUI/general/res/sass/inspector/_inspector.scss
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
||||||
|
* as represented by the Administrator of the National Aeronautics and Space
|
||||||
|
* Administration. All rights reserved.
|
||||||
|
*
|
||||||
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
||||||
|
* "License"); you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
* License for the specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*
|
||||||
|
* Open MCT Web includes source code licensed under additional open source
|
||||||
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
||||||
|
* this source code distribution or the Licensing information page available
|
||||||
|
* at runtime from the About dialog for additional information.
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
// Added by shale on 08/26/2015. Additional styling for inspection.
|
||||||
|
|
||||||
|
// Make plot legend items clickable
|
||||||
|
.plot-legend-item {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
@ -27,11 +27,10 @@
|
|||||||
ng-repeat="subplot in plot.getSubPlots()">
|
ng-repeat="subplot in plot.getSubPlots()">
|
||||||
<div class="gl-plot-legend">
|
<div class="gl-plot-legend">
|
||||||
<!-- ng-class is temporarily hard-coded in next element -->
|
<!-- ng-class is temporarily hard-coded in next element -->
|
||||||
<span
|
<span class='plot-legend-item'
|
||||||
class='plot-legend-item'
|
ng-repeat="telemetryObject in subplot.getTelemetryObjects()"
|
||||||
ng-repeat="telemetryObject in subplot.getTelemetryObjects()"
|
ng-class="plot.getLegendClass(telemetryObject)"
|
||||||
ng-class="plot.getLegendClass(telemetryObject)"
|
ng-click="ngModel.selectedObject = telemetryObject">
|
||||||
>
|
|
||||||
<span class='plot-color-swatch'
|
<span class='plot-color-swatch'
|
||||||
ng-style="{ 'background-color': plot.getColor($index) }">
|
ng-style="{ 'background-color': plot.getColor($index) }">
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user