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

Support logarithmic scale #224

Closed
netstuff opened this issue Aug 7, 2018 · 6 comments
Closed

Support logarithmic scale #224

netstuff opened this issue Aug 7, 2018 · 6 comments

Comments

@netstuff
Copy link

netstuff commented Aug 7, 2018

Is it possible to redefine getValue and setValue methods to release logarithmic scale. It very useful when min/max value limits has a huge difference (e.g. 1000/10000000).

It can looks like this:

getValue () {
    return Math.round(Math.pow(10, this.val));
}

setValue (val, ...) {
    this.val = Math.log(val) / Math.log(10);
}

Thank u very much!

@NightCatSama
Copy link
Owner

Sorry, I don’t understand the meaning of doing this very well.

However, I think setValue and getValue should not be redefine. If you want to reprocess the value, you can use watch or computed (getter/setter).

@sbusso
Copy link

sbusso commented Nov 4, 2018

Seconding this request, a logarithmic scale would be nice.

@tvld
Copy link

tvld commented Dec 10, 2018

Would indeed be perfect... Cant find good log-scale slider

@zhiyishou
Copy link

4th request for this scale

@NightCatSama
Copy link
Owner

@zhiyishou Logarithmic scale can be more easily implemented in the 3.x version.

https://jsfiddle.net/hsgzpoy3/

@ThermScissorpunch
Copy link

Logarithmic scale would be very helpfull!

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

6 participants