Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Change Major ticks on Radial Compasses to Degrees #62

Closed
RhumbRunner opened this issue Jun 23, 2020 · 3 comments
Closed

Comments

@RhumbRunner
Copy link

Have the ability to change the major Ticks on the radial compasses to 0,45,90, etc. in place of N,NE,E, etc. I can see where it is in the widget-gauge-ng-radial.component.ts file but wouldn't know how to begin to make it a check box or something as part of the setup when you create the widget.

Thanks,

Chuck

@godind
Copy link
Collaborator

godind commented Jun 23, 2020

Hi Chuck

All widget options are in the modal-widget control. They are tied to panels. Take a look and let me know if you have questions.

I noticed the marine compass looks broken. Compass should have a fixed needle to 0 and only the faceplate turns. Other compass types the meddle turns.

Do you see that problem on your end?

@godind
Copy link
Collaborator

godind commented Jun 23, 2020

Just better read your question!

They way it works at a high level is: you need to bind the modal panel option to a widget config option. Say Cardinal Points or Degrees display checkbox, then create a gauge major-tick conditional setting based on the Widget options.

The widget options properties is what gets saved in the config. Find one existing property you could reuse to store this. Look up the widget option interface definition and you will see all possible property you could use to store the Boolean value. You cloud add one also but make it optional using « ? ». Else all widgets will require this property.

I’m not in front of a computer so working from memory. Let me know if you have questions.

@mxtommy
Copy link
Owner

mxtommy commented Jun 3, 2021

Added numeric ticks in dcc253a

Note there's a bug in canvas-gauges which is preventing the needle from being fixed at top. I opened a PR ( Mikhus/canvas-gauges#240 ) but not sure how active the repo is, last commit was a long time ago. Fingers crossed!

@mxtommy mxtommy closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants