biigpongsatorn / vue-slide-bar

🎢 A Simple Vue Slider Bar Component.
https://biigpongsatorn.github.io/#/vue-slide-bar
MIT License
154 stars 32 forks source link

True range locations #28

Open johnroper100 opened 5 years ago

johnroper100 commented 5 years ago

Hi,

I have ranges for parameters in my application that look like this:

{
 "begin": 0,
"default": 0,
 "end": 25,
"label": "Closed"
}

they are built so that any value in between would work (i.e. 0-25 is closed) and sometimes they allow for ranges of speed:

{
 "begin": 26,
"default": 26,
 "end": 50,
"label": "Strobe slow to fast"
}

(i.e. 26 is slow, 50 is fast, and 40 is medium).

I have two requests:

  1. Can you make a way to place the ranges on the graph in their actual location? Right now they are just evenly spread out. Maybe use the beginning and end values.

  2. The slider should not snap to range values because there are mini ranges inside each range. (like the speed example above)

Thanks!