nasa / openmct

A web based mission control framework.
https://nasa.github.io/openmct/
Other
11.99k stars 1.24k forks source link

Gauge type Needle Dial not working #7820

Open charlesh88 opened 2 weeks ago

charlesh88 commented 2 weeks ago

Summary

Selecting "Needle Dial" as the visualization type in a Gauge doesn't display the needle.

Gauge using Filled Dial: works as expected

Screenshot 2024-08-27 at 3 36 42 PM

Gauge using Needle Dial: does not work

Screenshot 2024-08-27 at 3 34 26 PM

Steps to Reproduce

  1. Make or edit a Gauge.
  2. Choose "Filled Dial" in the Gauge Type in the object's Properties dialog.
  3. Add a data source and set the Gauge's min and max values such that current values will fall within the Gauge's display range.
  4. Verify that you can see the Gauge filled similar to as shown above.
  5. Edit properties on the Gauge and select "Needle Dial" in the Gauge Type in the object's Properties dialog. Save, nav away and back to the Gauge.
  6. Verify that you cannot see the needle visualization in the Gauge.

Environment

Impact Check List

Additional Information

charlesh88 commented 2 weeks ago

Here's the problem - the needle path fill color is set to rgba 0 opacity: image

And in Espresso: image

charlesh88 commented 2 weeks ago

Testing Notes

  1. Follow Steps to Reproduce 1 - 5 above.
  2. Now, verify that the needle is not hidden and is visible. Compare against reference images below for the current theme.
  3. Use the console to load all themes Espresso, Snow and DarkmatterTheme (this.openmct.install(this.openmct.plugins.<theme name>()), and verify the previous step in these notes for each.

DarkmatterTheme

Screenshot 2024-08-27 at 4 50 31 PM

Espresso

Screenshot 2024-08-27 at 4 47 03 PM

Snow

Screenshot 2024-08-27 at 4 47 11 PM