RadMie / ng-knob

Angular.js directive to Knob component powered by d3.js (without jQuery)
http://radmie.github.io/ng-knob
MIT License
117 stars 48 forks source link

How to "scale" the knob control? #3

Open dec opened 8 years ago

dec commented 8 years ago

Hello,

First of all, many thanks for this great piece of software. In fact this is not a "problem" or "error" report since the knob control works just fine, but, what about a possible control's "responsive" option? Too much complicated?

Anyway thanks very much for ng-knob.

RadMie commented 8 years ago

Responsive options will be added in the next version

Join the chat at https://gitter.im/RadMie/ng-knob

dec commented 8 years ago

Thanks very much @RadMie.

basedrop commented 8 years ago

Hi, I see you have a property called "dynamicOptions", was wondering how to use that? I've been trying to resize the knob (make larger) on hover:

oxideous commented 8 years ago

Great job on the directive. It's working perfectly in my project. Any update on the responsive options?

basedrop commented 8 years ago

Right now, the build of the knob requires every scope option to relate to one another in a pixel perfect way. A temp solution could be to change the scope options based on a media query, i.e. get your display type, then deliver knobs custom to that display type (instead of trying to make it responsive with percentages.)

markterrill commented 7 years ago

Hi @basedrop, you may be interested in https://github.com/RadMie/ng-knob/pull/42. I found this thread after I built a solution for myself as I couldn't easily handle all the various device types from ipad to nexus5 with a hard coded size.